]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 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=: | |
ec6a6fbe | 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 | ||
ec6a6fbe AK |
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' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
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' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
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 | |
ec6a6fbe | 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. | |
ec6a6fbe AK |
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 || |
ec6a6fbe | 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 | ||
ec6a6fbe | 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=: | |
ec6a6fbe | 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=: | |
ec6a6fbe | 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 | |
ec6a6fbe AK |
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. | |
ec6a6fbe AK |
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" || |
ec6a6fbe | 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 | |
ec6a6fbe AK |
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' |
ec6a6fbe | 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 | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 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 |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe AK |
641 | usrlibdir |
642 | tmpdir | |
643 | kernelvsn | |
644 | missingkernel | |
645 | kerneldir | |
646 | interface | |
647 | LIB_PTHREAD | |
648 | STATIC_LINK | |
649 | STATICDIR | |
650 | SNAPSHOTS | |
651 | POOL | |
652 | PKGCONFIG | |
653 | OWNER | |
654 | MIRRORS | |
655 | LVM_RELEASE_DATE | |
656 | LVM_RELEASE | |
657 | LVM_PATCHLEVEL | |
658 | LVM_MINOR | |
659 | LVM_MAJOR | |
660 | LVM_VERSION | |
ec6a6fbe AK |
661 | LVM1_FALLBACK |
662 | LVM1 | |
663 | LOCALEDIR | |
664 | LIB_SUFFIX | |
665 | LDDEPS | |
666 | JOBS | |
667 | INTL_PACKAGE | |
668 | INTL | |
669 | HAVE_SELINUX | |
670 | HAVE_REALTIME | |
671 | HAVE_LIBDL | |
672 | GROUP | |
673 | FSADM | |
674 | DM_LIB_PATCHLEVEL | |
675 | DM_LIB_VERSION | |
676 | DM_IOCTLS | |
677 | DM_DEVICE_UID | |
678 | DM_DEVICE_MODE | |
679 | DM_DEVICE_GID | |
680 | DM_COMPAT | |
681 | DMEVENTD | |
682 | DEVMAPPER | |
683 | DEBUG | |
684 | COPTIMISE_FLAG | |
e2997b73 | 685 | CONFDIR |
ec6a6fbe AK |
686 | CMDLIB |
687 | CLVMD | |
688 | CLUSTER | |
689 | CLDWHOLEARCHIVE | |
690 | CLDNOWHOLEARCHIVE | |
691 | CLDFLAGS | |
692 | BUILD_DMEVENTD | |
693 | MODPROBE_CMD | |
694 | MSGFMT | |
695 | LVM2CMD_LIB | |
696 | GENHTML | |
697 | LCOV | |
e2997b73 AK |
698 | CPG_LIBS |
699 | CPG_CFLAGS | |
700 | CONFDB_LIBS | |
701 | CONFDB_CFLAGS | |
702 | QUORUM_LIBS | |
703 | QUORUM_CFLAGS | |
704 | PKG_CONFIG | |
ec6a6fbe AK |
705 | POW_LIB |
706 | LIBOBJS | |
707 | ALLOCA | |
708 | CSCOPE_CMD | |
709 | CFLOW_CMD | |
710 | RANLIB | |
711 | MKDIR_P | |
712 | SET_MAKE | |
713 | LN_S | |
714 | INSTALL_DATA | |
715 | INSTALL_SCRIPT | |
716 | INSTALL_PROGRAM | |
717 | EGREP | |
718 | GREP | |
719 | CPP | |
720 | OBJEXT | |
721 | EXEEXT | |
722 | ac_ct_CC | |
723 | CPPFLAGS | |
724 | LDFLAGS | |
725 | CFLAGS | |
726 | CC | |
727 | AWK | |
728 | SED | |
729 | target_os | |
730 | target_vendor | |
731 | target_cpu | |
732 | target | |
733 | host_os | |
734 | host_vendor | |
735 | host_cpu | |
736 | host | |
737 | build_os | |
738 | build_vendor | |
739 | build_cpu | |
740 | build | |
741 | target_alias | |
742 | host_alias | |
743 | build_alias | |
744 | LIBS | |
745 | ECHO_T | |
746 | ECHO_N | |
747 | ECHO_C | |
748 | DEFS | |
749 | mandir | |
750 | localedir | |
751 | libdir | |
752 | psdir | |
753 | pdfdir | |
754 | dvidir | |
755 | htmldir | |
756 | infodir | |
757 | docdir | |
758 | oldincludedir | |
759 | includedir | |
760 | localstatedir | |
761 | sharedstatedir | |
762 | sysconfdir | |
763 | datadir | |
764 | datarootdir | |
765 | libexecdir | |
766 | sbindir | |
767 | bindir | |
768 | program_transform_name | |
769 | prefix | |
770 | exec_prefix | |
771 | PACKAGE_BUGREPORT | |
772 | PACKAGE_STRING | |
773 | PACKAGE_VERSION | |
774 | PACKAGE_TARNAME | |
775 | PACKAGE_NAME | |
776 | PATH_SEPARATOR | |
777 | SHELL' | |
ad6254c5 | 778 | ac_subst_files='' |
ec6a6fbe AK |
779 | ac_user_opts=' |
780 | enable_option_checking | |
781 | enable_static_link | |
782 | with_user | |
783 | with_group | |
784 | with_device_uid | |
785 | with_device_gid | |
786 | with_device_mode | |
787 | enable_lvm1_fallback | |
788 | with_lvm1 | |
789 | with_pool | |
790 | with_cluster | |
791 | with_snapshots | |
792 | with_mirrors | |
793 | enable_readline | |
794 | enable_realtime | |
795 | with_clvmd | |
796 | enable_debug | |
797 | with_optimisation | |
798 | enable_profiling | |
799 | enable_devmapper | |
800 | enable_compat | |
801 | enable_ioctl | |
802 | enable_o_direct | |
803 | enable_cmdlib | |
804 | enable_pkgconfig | |
805 | enable_fsadm | |
806 | enable_dmeventd | |
807 | enable_selinux | |
808 | enable_nls | |
809 | with_localedir | |
810 | with_confdir | |
811 | with_staticdir | |
812 | with_usrlibdir | |
813 | with_usrsbindir | |
814 | with_dmeventd_pidfile | |
815 | with_dmeventd_path | |
816 | with_interface | |
817 | ' | |
7a197a62 AK |
818 | ac_precious_vars='build_alias |
819 | host_alias | |
820 | target_alias | |
821 | CC | |
822 | CFLAGS | |
823 | LDFLAGS | |
25fbec5b | 824 | LIBS |
7a197a62 | 825 | CPPFLAGS |
e2997b73 AK |
826 | CPP |
827 | PKG_CONFIG | |
828 | QUORUM_CFLAGS | |
829 | QUORUM_LIBS | |
830 | CONFDB_CFLAGS | |
831 | CONFDB_LIBS | |
832 | CPG_CFLAGS | |
833 | CPG_LIBS' | |
7a197a62 | 834 | |
795ca3e5 AK |
835 | |
836 | # Initialize some variables set by options. | |
ad6254c5 AK |
837 | ac_init_help= |
838 | ac_init_version=false | |
ec6a6fbe AK |
839 | ac_unrecognized_opts= |
840 | ac_unrecognized_sep= | |
795ca3e5 AK |
841 | # The variables have the same names as the options, with |
842 | # dashes changed to underlines. | |
ad6254c5 | 843 | cache_file=/dev/null |
795ca3e5 | 844 | exec_prefix=NONE |
795ca3e5 | 845 | no_create= |
795ca3e5 AK |
846 | no_recursion= |
847 | prefix=NONE | |
848 | program_prefix=NONE | |
849 | program_suffix=NONE | |
850 | program_transform_name=s,x,x, | |
851 | silent= | |
852 | site= | |
853 | srcdir= | |
795ca3e5 AK |
854 | verbose= |
855 | x_includes=NONE | |
856 | x_libraries=NONE | |
ad6254c5 AK |
857 | |
858 | # Installation directory options. | |
859 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
860 | # and all the variables that are supposed to be based on exec_prefix | |
861 | # by default will actually change. | |
862 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 863 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
864 | bindir='${exec_prefix}/bin' |
865 | sbindir='${exec_prefix}/sbin' | |
866 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
867 | datarootdir='${prefix}/share' |
868 | datadir='${datarootdir}' | |
795ca3e5 AK |
869 | sysconfdir='${prefix}/etc' |
870 | sharedstatedir='${prefix}/com' | |
871 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
872 | includedir='${prefix}/include' |
873 | oldincludedir='/usr/include' | |
7a197a62 AK |
874 | docdir='${datarootdir}/doc/${PACKAGE}' |
875 | infodir='${datarootdir}/info' | |
876 | htmldir='${docdir}' | |
877 | dvidir='${docdir}' | |
878 | pdfdir='${docdir}' | |
879 | psdir='${docdir}' | |
880 | libdir='${exec_prefix}/lib' | |
881 | localedir='${datarootdir}/locale' | |
882 | mandir='${datarootdir}/man' | |
795ca3e5 | 883 | |
795ca3e5 | 884 | ac_prev= |
7a197a62 | 885 | ac_dashdash= |
795ca3e5 AK |
886 | for ac_option |
887 | do | |
795ca3e5 AK |
888 | # If the previous option needs an argument, assign it. |
889 | if test -n "$ac_prev"; then | |
7a197a62 | 890 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
891 | ac_prev= |
892 | continue | |
893 | fi | |
894 | ||
7a197a62 AK |
895 | case $ac_option in |
896 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
897 | *) ac_optarg=yes ;; | |
898 | esac | |
795ca3e5 AK |
899 | |
900 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
901 | ||
7a197a62 AK |
902 | case $ac_dashdash$ac_option in |
903 | --) | |
904 | ac_dashdash=yes ;; | |
795ca3e5 AK |
905 | |
906 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
907 | ac_prev=bindir ;; | |
908 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 909 | bindir=$ac_optarg ;; |
795ca3e5 AK |
910 | |
911 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 912 | ac_prev=build_alias ;; |
795ca3e5 | 913 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 914 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
915 | |
916 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
917 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
918 | ac_prev=cache_file ;; | |
919 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
920 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
921 | cache_file=$ac_optarg ;; |
922 | ||
923 | --config-cache | -C) | |
924 | cache_file=config.cache ;; | |
795ca3e5 | 925 | |
7a197a62 | 926 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 927 | ac_prev=datadir ;; |
7a197a62 | 928 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 929 | datadir=$ac_optarg ;; |
795ca3e5 | 930 | |
7a197a62 AK |
931 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
932 | | --dataroo | --dataro | --datar) | |
933 | ac_prev=datarootdir ;; | |
934 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
935 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
936 | datarootdir=$ac_optarg ;; | |
937 | ||
795ca3e5 | 938 | -disable-* | --disable-*) |
ec6a6fbe | 939 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 940 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
941 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
942 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 943 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
944 | ac_useropt_orig=$ac_useropt |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
952 | esac | |
953 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
954 | |
955 | -docdir | --docdir | --docdi | --doc | --do) | |
956 | ac_prev=docdir ;; | |
957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
958 | docdir=$ac_optarg ;; | |
959 | ||
960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
961 | ac_prev=dvidir ;; | |
962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
963 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
964 | |
965 | -enable-* | --enable-*) | |
ec6a6fbe | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 967 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
969 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 970 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
971 | ac_useropt_orig=$ac_useropt |
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
973 | case $ac_user_opts in | |
974 | *" | |
975 | "enable_$ac_useropt" | |
976 | "*) ;; | |
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
978 | ac_unrecognized_sep=', ';; | |
979 | esac | |
980 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
981 | |
982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
984 | | --exec | --exe | --ex) | |
985 | ac_prev=exec_prefix ;; | |
986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
988 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 989 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
990 | |
991 | -gas | --gas | --ga | --g) | |
992 | # Obsolete; use --with-gas. | |
993 | with_gas=yes ;; | |
994 | ||
ad6254c5 AK |
995 | -help | --help | --hel | --he | -h) |
996 | ac_init_help=long ;; | |
997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
998 | ac_init_help=recursive ;; | |
999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1000 | ac_init_help=short ;; | |
795ca3e5 AK |
1001 | |
1002 | -host | --host | --hos | --ho) | |
ad6254c5 | 1003 | ac_prev=host_alias ;; |
795ca3e5 | 1004 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1005 | host_alias=$ac_optarg ;; |
795ca3e5 | 1006 | |
7a197a62 AK |
1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1008 | ac_prev=htmldir ;; | |
1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1010 | | --ht=*) | |
1011 | htmldir=$ac_optarg ;; | |
1012 | ||
795ca3e5 AK |
1013 | -includedir | --includedir | --includedi | --included | --include \ |
1014 | | --includ | --inclu | --incl | --inc) | |
1015 | ac_prev=includedir ;; | |
1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1017 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1018 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1019 | |
1020 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1021 | ac_prev=infodir ;; | |
1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1023 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1024 | |
1025 | -libdir | --libdir | --libdi | --libd) | |
1026 | ac_prev=libdir ;; | |
1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1028 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1029 | |
1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1031 | | --libexe | --libex | --libe) | |
1032 | ac_prev=libexecdir ;; | |
1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1034 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1035 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1036 | |
7a197a62 AK |
1037 | -localedir | --localedir | --localedi | --localed | --locale) |
1038 | ac_prev=localedir ;; | |
1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1040 | localedir=$ac_optarg ;; | |
1041 | ||
795ca3e5 | 1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1043 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1044 | ac_prev=localstatedir ;; |
1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1047 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1048 | |
1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1050 | ac_prev=mandir ;; | |
1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1052 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1053 | |
1054 | -nfp | --nfp | --nf) | |
1055 | # Obsolete; use --without-fp. | |
1056 | with_fp=no ;; | |
1057 | ||
1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1059 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1060 | no_create=yes ;; |
1061 | ||
1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1064 | no_recursion=yes ;; | |
1065 | ||
1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1068 | | --oldin | --oldi | --old | --ol | --o) | |
1069 | ac_prev=oldincludedir ;; | |
1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1073 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1074 | |
1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1076 | ac_prev=prefix ;; | |
1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1078 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1079 | |
1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1081 | | --program-pre | --program-pr | --program-p) | |
1082 | ac_prev=program_prefix ;; | |
1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1085 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1086 | |
1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1088 | | --program-suf | --program-su | --program-s) | |
1089 | ac_prev=program_suffix ;; | |
1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1092 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1093 | |
1094 | -program-transform-name | --program-transform-name \ | |
1095 | | --program-transform-nam | --program-transform-na \ | |
1096 | | --program-transform-n | --program-transform- \ | |
1097 | | --program-transform | --program-transfor \ | |
1098 | | --program-transfo | --program-transf \ | |
1099 | | --program-trans | --program-tran \ | |
1100 | | --progr-tra | --program-tr | --program-t) | |
1101 | ac_prev=program_transform_name ;; | |
1102 | -program-transform-name=* | --program-transform-name=* \ | |
1103 | | --program-transform-nam=* | --program-transform-na=* \ | |
1104 | | --program-transform-n=* | --program-transform-=* \ | |
1105 | | --program-transform=* | --program-transfor=* \ | |
1106 | | --program-transfo=* | --program-transf=* \ | |
1107 | | --program-trans=* | --program-tran=* \ | |
1108 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1109 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1110 | |
7a197a62 AK |
1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1112 | ac_prev=pdfdir ;; | |
1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1114 | pdfdir=$ac_optarg ;; | |
1115 | ||
1116 | -psdir | --psdir | --psdi | --psd | --ps) | |
1117 | ac_prev=psdir ;; | |
1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1119 | psdir=$ac_optarg ;; | |
1120 | ||
795ca3e5 AK |
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1122 | | -silent | --silent | --silen | --sile | --sil) | |
1123 | silent=yes ;; | |
1124 | ||
1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1126 | ac_prev=sbindir ;; | |
1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1128 | | --sbi=* | --sb=*) | |
ad6254c5 | 1129 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1130 | |
1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1133 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1134 | | --sha | --sh) | |
1135 | ac_prev=sharedstatedir ;; | |
1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1139 | | --sha=* | --sh=*) | |
ad6254c5 | 1140 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1141 | |
1142 | -site | --site | --sit) | |
1143 | ac_prev=site ;; | |
1144 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1145 | site=$ac_optarg ;; |
795ca3e5 AK |
1146 | |
1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1148 | ac_prev=srcdir ;; | |
1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1150 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1151 | |
1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1153 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1154 | ac_prev=sysconfdir ;; | |
1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1157 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1158 | |
1159 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1160 | ac_prev=target_alias ;; |
795ca3e5 | 1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1162 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1163 | |
1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1165 | verbose=yes ;; | |
1166 | ||
ad6254c5 AK |
1167 | -version | --version | --versio | --versi | --vers | -V) |
1168 | ac_init_version=: ;; | |
795ca3e5 AK |
1169 | |
1170 | -with-* | --with-*) | |
ec6a6fbe | 1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1172 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1174 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1175 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1176 | ac_useropt_orig=$ac_useropt |
1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1178 | case $ac_user_opts in | |
1179 | *" | |
1180 | "with_$ac_useropt" | |
1181 | "*) ;; | |
1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1183 | ac_unrecognized_sep=', ';; | |
1184 | esac | |
1185 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1186 | |
1187 | -without-* | --without-*) | |
ec6a6fbe | 1188 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1189 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1191 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1192 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1193 | ac_useropt_orig=$ac_useropt |
1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1195 | case $ac_user_opts in | |
1196 | *" | |
1197 | "with_$ac_useropt" | |
1198 | "*) ;; | |
1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1200 | ac_unrecognized_sep=', ';; | |
1201 | esac | |
1202 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1203 | |
1204 | --x) | |
1205 | # Obsolete; use --with-x. | |
1206 | with_x=yes ;; | |
1207 | ||
1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1209 | | --x-incl | --x-inc | --x-in | --x-i) | |
1210 | ac_prev=x_includes ;; | |
1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1213 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1214 | |
1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1217 | ac_prev=x_libraries ;; | |
1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1220 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1221 | |
ec6a6fbe | 1222 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1223 | Try \`$0 --help' for more information." >&2 |
1224 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1225 | ;; |
1226 | ||
ad6254c5 AK |
1227 | *=*) |
1228 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1229 | # Reject names that are not valid shell variable names. | |
1230 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1231 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1232 | { (exit 1); exit 1; }; } |
7a197a62 | 1233 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1234 | export $ac_envvar ;; |
1235 | ||
795ca3e5 | 1236 | *) |
ad6254c5 | 1237 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1241 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1242 | ;; |
1243 | ||
1244 | esac | |
1245 | done | |
1246 | ||
1247 | if test -n "$ac_prev"; then | |
ad6254c5 | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1249 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1250 | { (exit 1); exit 1; }; } |
795ca3e5 | 1251 | fi |
795ca3e5 | 1252 | |
ec6a6fbe AK |
1253 | if test -n "$ac_unrecognized_opts"; then |
1254 | case $enable_option_checking in | |
1255 | no) ;; | |
1256 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1257 | { (exit 1); exit 1; }; } ;; | |
1258 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1259 | esac | |
1260 | fi | |
1261 | ||
1262 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1263 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1264 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1265 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1266 | libdir localedir mandir | |
795ca3e5 | 1267 | do |
7a197a62 | 1268 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1269 | # Remove trailing slashes. |
1270 | case $ac_val in | |
1271 | */ ) | |
1272 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1273 | eval $ac_var=\$ac_val;; | |
1274 | esac | |
1275 | # Be sure to have absolute directory names. | |
ad6254c5 | 1276 | case $ac_val in |
7a197a62 AK |
1277 | [\\/$]* | ?:[\\/]* ) continue;; |
1278 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1279 | esac |
ec6a6fbe | 1280 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1281 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1282 | done |
1283 | ||
ad6254c5 AK |
1284 | # There might be people who depend on the old broken behavior: `$host' |
1285 | # used to hold the argument of --host etc. | |
1286 | # FIXME: To remove some day. | |
1287 | build=$build_alias | |
1288 | host=$host_alias | |
1289 | target=$target_alias | |
1290 | ||
1291 | # FIXME: To remove some day. | |
1292 | if test "x$host_alias" != x; then | |
1293 | if test "x$build_alias" = x; then | |
1294 | cross_compiling=maybe | |
ec6a6fbe | 1295 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1296 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1297 | elif test "x$build_alias" != "x$host_alias"; then | |
1298 | cross_compiling=yes | |
1299 | fi | |
1300 | fi | |
8106cdd5 | 1301 | |
ad6254c5 AK |
1302 | ac_tool_prefix= |
1303 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1304 | ||
1305 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1306 | |
795ca3e5 | 1307 | |
7a197a62 AK |
1308 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1309 | ac_ls_di=`ls -di .` && | |
1310 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1311 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1312 | { (exit 1); exit 1; }; } |
1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1314 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1315 | { (exit 1); exit 1; }; } |
1316 | ||
1317 | ||
795ca3e5 AK |
1318 | # Find the source files, if location was not specified. |
1319 | if test -z "$srcdir"; then | |
1320 | ac_srcdir_defaulted=yes | |
7a197a62 | 1321 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1322 | ac_confdir=`$as_dirname -- "$as_myself" || |
1323 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1324 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1325 | X"$as_myself" : 'X\(//\)$' \| \ | |
1326 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1327 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\/\)[^/].*/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)$/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\).*/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | s/.*/./; q'` | |
795ca3e5 | 1345 | srcdir=$ac_confdir |
7a197a62 | 1346 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1347 | srcdir=.. |
1348 | fi | |
1349 | else | |
1350 | ac_srcdir_defaulted=no | |
1351 | fi | |
7a197a62 AK |
1352 | if test ! -r "$srcdir/$ac_unique_file"; then |
1353 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1354 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1355 | { (exit 1); exit 1; }; } |
795ca3e5 | 1356 | fi |
7a197a62 AK |
1357 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1358 | ac_abs_confdir=`( | |
ec6a6fbe | 1359 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1360 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1361 | pwd)` |
1362 | # When building in place, set srcdir=. | |
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 | srcdir=. | |
1365 | fi | |
1366 | # Remove unnecessary trailing slashes from srcdir. | |
1367 | # Double slashes in file names in object file debugging info | |
1368 | # mess up M-x gdb in Emacs. | |
1369 | case $srcdir in | |
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 | esac | |
1372 | for ac_var in $ac_precious_vars; do | |
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1377 | done | |
ad6254c5 AK |
1378 | |
1379 | # | |
1380 | # Report the --help message. | |
1381 | # | |
1382 | if test "$ac_init_help" = "long"; then | |
1383 | # Omit some internal or obsolete options to make the list less imposing. | |
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1385 | cat <<_ACEOF | |
1386 | \`configure' configures this package to adapt to many kinds of systems. | |
1387 | ||
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1389 | ||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1392 | ||
1393 | Defaults for the options are specified in brackets. | |
1394 | ||
1395 | Configuration: | |
1396 | -h, --help display this help and exit | |
1397 | --help=short display options specific to this package | |
1398 | --help=recursive display the short help of all the included packages | |
1399 | -V, --version display version information and exit | |
1400 | -q, --quiet, --silent do not print \`checking...' messages | |
1401 | --cache-file=FILE cache test results in FILE [disabled] | |
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1403 | -n, --no-create do not create output files | |
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1405 | ||
ad6254c5 AK |
1406 | Installation directories: |
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1408 | [$ac_default_prefix] |
ad6254c5 | 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1410 | [PREFIX] |
ad6254c5 AK |
1411 | |
1412 | By default, \`make install' will install all the files in | |
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1415 | for instance \`--prefix=\$HOME'. | |
1416 | ||
1417 | For better control, use the options below. | |
1418 | ||
1419 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1420 | --bindir=DIR user executables [EPREFIX/bin] |
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1426 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1427 | --includedir=DIR C header files [PREFIX/include] | |
1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1431 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1433 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1435 | --htmldir=DIR html documentation [DOCDIR] | |
1436 | --dvidir=DIR dvi documentation [DOCDIR] | |
1437 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1438 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1439 | _ACEOF |
1440 | ||
1441 | cat <<\_ACEOF | |
1442 | ||
1443 | System types: | |
1444 | --build=BUILD configure for building on BUILD [guessed] | |
1445 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1446 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1447 | _ACEOF | |
1448 | fi | |
1449 | ||
1450 | if test -n "$ac_init_help"; then | |
1451 | ||
1452 | cat <<\_ACEOF | |
1453 | ||
1454 | Optional Features: | |
ec6a6fbe | 1455 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1456 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1457 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1458 | --enable-static_link Use this to link the tools to their libraries |
1459 | statically. Default is dynamic linking | |
ad6254c5 AK |
1460 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1461 | device-mapper is missing from the kernel | |
1b523347 | 1462 | --disable-readline Disable readline support |
3d978351 | 1463 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1464 | --enable-debug Enable debugging |
5556819a | 1465 | --enable-profiling Gather gcov profiling data |
93bd259b AK |
1466 | --disable-devmapper Disable LVM2 device-mapper interaction |
1467 | --enable-compat Enable support for old device-mapper versions | |
1468 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 AK |
1469 | --disable-o_direct Disable O_DIRECT |
1470 | --enable-cmdlib Build shared command library | |
93bd259b | 1471 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1472 | --enable-fsadm Enable fsadm |
15d91f5a | 1473 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1474 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1475 | --enable-nls Enable Native Language Support |
1476 | ||
1477 | Optional Packages: | |
1478 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1479 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1480 | --with-user=USER Set the owner of installed files [USER=root] |
1481 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1482 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1483 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1484 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1485 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1486 | TYPE=internal | |
1487 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1488 | TYPE=internal | |
1489 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1490 | TYPE=internal | |
1491 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1492 | TYPE=internal | |
1493 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1494 | TYPE=internal | |
ec6a6fbe | 1495 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all |
a266258f | 1496 | TYPE=none |
d0191583 JM |
1497 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1498 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1499 | --with-confdir=DIR Configuration files in DIR /etc |
1500 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
68f2de6d AK |
1501 | --with-usrlibdir=DIR |
1502 | --with-usrsbindir=DIR | |
93bd259b AK |
1503 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
1504 | --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd] | |
1505 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1506 | |
1507 | Some influential environment variables: | |
1508 | CC C compiler command | |
1509 | CFLAGS C compiler flags | |
1510 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1511 | nonstandard directory <lib dir> | |
25fbec5b | 1512 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1513 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1514 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1515 | CPP C preprocessor |
e2997b73 AK |
1516 | PKG_CONFIG path to pkg-config utility |
1517 | QUORUM_CFLAGS | |
1518 | C compiler flags for QUORUM, overriding pkg-config | |
1519 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
1520 | CONFDB_CFLAGS | |
1521 | C compiler flags for CONFDB, overriding pkg-config | |
1522 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1523 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1524 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
ad6254c5 AK |
1525 | |
1526 | Use these variables to override the choices made by `configure' or to help | |
1527 | it to find libraries and programs with nonstandard names/locations. | |
1528 | ||
1529 | _ACEOF | |
7a197a62 | 1530 | ac_status=$? |
ad6254c5 AK |
1531 | fi |
1532 | ||
1533 | if test "$ac_init_help" = "recursive"; then | |
1534 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1535 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1536 | test -d "$ac_dir" || |
1537 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1538 | continue | |
ad6254c5 AK |
1539 | ac_builddir=. |
1540 | ||
7a197a62 AK |
1541 | case "$ac_dir" in |
1542 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1543 | *) | |
ec6a6fbe | 1544 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1545 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1546 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1547 | case $ac_top_builddir_sub in |
1548 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1549 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1550 | esac ;; | |
1551 | esac | |
1552 | ac_abs_top_builddir=$ac_pwd | |
1553 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1554 | # for backward compatibility: | |
1555 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1556 | |
1557 | case $srcdir in | |
7a197a62 | 1558 | .) # We are building in place. |
ad6254c5 | 1559 | ac_srcdir=. |
7a197a62 AK |
1560 | ac_top_srcdir=$ac_top_builddir_sub |
1561 | ac_abs_top_srcdir=$ac_pwd ;; | |
1562 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1563 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1564 | ac_top_srcdir=$srcdir |
1565 | ac_abs_top_srcdir=$srcdir ;; | |
1566 | *) # Relative name. | |
1567 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1568 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1569 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1570 | esac |
7a197a62 AK |
1571 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1572 | ||
1573 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1574 | # Check for guested configure. | |
1575 | if test -f "$ac_srcdir/configure.gnu"; then | |
1576 | echo && | |
1577 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1578 | elif test -f "$ac_srcdir/configure"; then | |
1579 | echo && | |
1580 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1581 | else |
ec6a6fbe | 1582 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1583 | fi || ac_status=$? |
1584 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1585 | done |
1586 | fi | |
1587 | ||
7a197a62 | 1588 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1589 | if $ac_init_version; then |
1590 | cat <<\_ACEOF | |
7a197a62 | 1591 | configure |
ec6a6fbe | 1592 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1593 | |
7a197a62 | 1594 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1595 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1596 | This configure script is free software; the Free Software Foundation |
1597 | gives unlimited permission to copy, distribute and modify it. | |
1598 | _ACEOF | |
7a197a62 | 1599 | exit |
ad6254c5 | 1600 | fi |
7a197a62 | 1601 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1602 | This file contains any messages produced by compilers while |
1603 | running configure, to aid debugging if configure makes a mistake. | |
1604 | ||
1605 | It was created by $as_me, which was | |
ec6a6fbe | 1606 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1607 | |
1608 | $ $0 $@ | |
1609 | ||
1610 | _ACEOF | |
7a197a62 | 1611 | exec 5>>config.log |
ad6254c5 AK |
1612 | { |
1613 | cat <<_ASUNAME | |
1614 | ## --------- ## | |
1615 | ## Platform. ## | |
1616 | ## --------- ## | |
1617 | ||
1618 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1619 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1620 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1621 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1622 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1623 | ||
1624 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1625 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1626 | ||
1627 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1628 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1629 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1630 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1631 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1632 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1633 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1634 | ||
1635 | _ASUNAME | |
1636 | ||
1637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1638 | for as_dir in $PATH | |
1639 | do | |
1640 | IFS=$as_save_IFS | |
1641 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1642 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1643 | done |
7a197a62 | 1644 | IFS=$as_save_IFS |
ad6254c5 AK |
1645 | |
1646 | } >&5 | |
1647 | ||
1648 | cat >&5 <<_ACEOF | |
1649 | ||
1650 | ||
1651 | ## ----------- ## | |
1652 | ## Core tests. ## | |
1653 | ## ----------- ## | |
1654 | ||
1655 | _ACEOF | |
1656 | ||
1657 | ||
1658 | # Keep a trace of the command line. | |
1659 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1660 | # Strip out --silent because we don't want to record it for future runs. | |
1661 | # Also quote any args containing shell meta-characters. | |
1662 | # Make two passes to allow for proper duplicate-argument suppression. | |
1663 | ac_configure_args= | |
1664 | ac_configure_args0= | |
1665 | ac_configure_args1= | |
ad6254c5 AK |
1666 | ac_must_keep_next=false |
1667 | for ac_pass in 1 2 | |
1668 | do | |
1669 | for ac_arg | |
1670 | do | |
1671 | case $ac_arg in | |
1672 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1673 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1674 | | -silent | --silent | --silen | --sile | --sil) | |
1675 | continue ;; | |
7a197a62 | 1676 | *\'*) |
ec6a6fbe | 1677 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1678 | esac |
1679 | case $ac_pass in | |
1680 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1681 | 2) | |
1682 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1683 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1684 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1685 | else |
8a2fc586 AK |
1686 | case $ac_arg in |
1687 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1688 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1689 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1690 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1691 | case "$ac_configure_args0 " in | |
1692 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1693 | esac | |
1694 | ;; | |
1695 | -* ) ac_must_keep_next=true ;; | |
1696 | esac | |
ad6254c5 | 1697 | fi |
7a197a62 | 1698 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1699 | ;; |
1700 | esac | |
1701 | done | |
1702 | done | |
1703 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1704 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1705 | ||
1706 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1707 | # config.log. We remove comments because anyway the quotes in there | |
1708 | # would cause problems or look ugly. | |
7a197a62 AK |
1709 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1710 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1711 | trap 'exit_status=$? |
1712 | # Save into config.log some information that might help in debugging. | |
1713 | { | |
1714 | echo | |
1715 | ||
1716 | cat <<\_ASBOX | |
1717 | ## ---------------- ## | |
1718 | ## Cache variables. ## | |
1719 | ## ---------------- ## | |
1720 | _ASBOX | |
1721 | echo | |
1722 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1723 | ( |
1724 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1725 | eval ac_val=\$$ac_var | |
1726 | case $ac_val in #( | |
1727 | *${as_nl}*) | |
1728 | case $ac_var in #( | |
ec6a6fbe AK |
1729 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1730 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1731 | esac |
1732 | case $ac_var in #( | |
1733 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1734 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1735 | *) $as_unset $ac_var ;; |
1736 | esac ;; | |
1737 | esac | |
1738 | done | |
ad6254c5 | 1739 | (set) 2>&1 | |
7a197a62 AK |
1740 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1741 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1742 | sed -n \ |
7a197a62 AK |
1743 | "s/'\''/'\''\\\\'\'''\''/g; |
1744 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1745 | ;; #( | |
ad6254c5 | 1746 | *) |
7a197a62 | 1747 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1748 | ;; |
7a197a62 AK |
1749 | esac | |
1750 | sort | |
1751 | ) | |
ad6254c5 AK |
1752 | echo |
1753 | ||
1754 | cat <<\_ASBOX | |
1755 | ## ----------------- ## | |
1756 | ## Output variables. ## | |
1757 | ## ----------------- ## | |
1758 | _ASBOX | |
1759 | echo | |
1760 | for ac_var in $ac_subst_vars | |
1761 | do | |
7a197a62 AK |
1762 | eval ac_val=\$$ac_var |
1763 | case $ac_val in | |
ec6a6fbe | 1764 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1765 | esac |
ec6a6fbe | 1766 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1767 | done | sort |
1768 | echo | |
1769 | ||
1770 | if test -n "$ac_subst_files"; then | |
1771 | cat <<\_ASBOX | |
7a197a62 AK |
1772 | ## ------------------- ## |
1773 | ## File substitutions. ## | |
1774 | ## ------------------- ## | |
ad6254c5 AK |
1775 | _ASBOX |
1776 | echo | |
1777 | for ac_var in $ac_subst_files | |
1778 | do | |
7a197a62 AK |
1779 | eval ac_val=\$$ac_var |
1780 | case $ac_val in | |
ec6a6fbe | 1781 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1782 | esac |
ec6a6fbe | 1783 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1784 | done | sort |
1785 | echo | |
1786 | fi | |
1787 | ||
1788 | if test -s confdefs.h; then | |
1789 | cat <<\_ASBOX | |
1790 | ## ----------- ## | |
1791 | ## confdefs.h. ## | |
1792 | ## ----------- ## | |
1793 | _ASBOX | |
1794 | echo | |
7a197a62 | 1795 | cat confdefs.h |
ad6254c5 AK |
1796 | echo |
1797 | fi | |
1798 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1799 | $as_echo "$as_me: caught signal $ac_signal" |
1800 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1801 | } >&5 |
7a197a62 AK |
1802 | rm -f core *.core core.conftest.* && |
1803 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1804 | exit $exit_status |
7a197a62 | 1805 | ' 0 |
ad6254c5 AK |
1806 | for ac_signal in 1 2 13 15; do |
1807 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1808 | done | |
1809 | ac_signal=0 | |
1810 | ||
1811 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1812 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1813 | |
1814 | # Predefined preprocessor variables. | |
1815 | ||
1816 | cat >>confdefs.h <<_ACEOF | |
1817 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1818 | _ACEOF | |
1819 | ||
1820 | ||
1821 | cat >>confdefs.h <<_ACEOF | |
1822 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1823 | _ACEOF | |
1824 | ||
1825 | ||
1826 | cat >>confdefs.h <<_ACEOF | |
1827 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1828 | _ACEOF | |
8106cdd5 | 1829 | |
ad6254c5 AK |
1830 | |
1831 | cat >>confdefs.h <<_ACEOF | |
1832 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1833 | _ACEOF | |
1834 | ||
1835 | ||
1836 | cat >>confdefs.h <<_ACEOF | |
1837 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1838 | _ACEOF | |
1839 | ||
1840 | ||
1841 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1842 | # Prefer an explicitly selected file to automatically selected ones. |
1843 | ac_site_file1=NONE | |
1844 | ac_site_file2=NONE | |
7a197a62 | 1845 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1846 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1847 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1848 | ac_site_file1=$prefix/share/config.site |
1849 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1850 | else |
ec6a6fbe AK |
1851 | ac_site_file1=$ac_default_prefix/share/config.site |
1852 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1853 | fi |
ec6a6fbe | 1854 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1855 | do |
ec6a6fbe | 1856 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1857 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1858 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1859 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1860 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1861 | . "$ac_site_file" |
1862 | fi | |
1863 | done | |
1864 | ||
1865 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1866 | # Some versions of bash will fail to source /dev/null (special |
1867 | # files actually), so we avoid doing that. | |
1868 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1869 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1870 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1871 | case $cache_file in |
7a197a62 AK |
1872 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1873 | *) . "./$cache_file";; | |
ad6254c5 AK |
1874 | esac |
1875 | fi | |
795ca3e5 | 1876 | else |
ec6a6fbe AK |
1877 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1878 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1879 | >$cache_file |
1880 | fi | |
1881 | ||
1882 | # Check that the precious variables saved in the cache have kept the same | |
1883 | # value. | |
1884 | ac_cache_corrupted=false | |
7a197a62 | 1885 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1886 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1887 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1888 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1889 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1890 | case $ac_old_set,$ac_new_set in |
1891 | set,) | |
ec6a6fbe AK |
1892 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1893 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1894 | ac_cache_corrupted=: ;; |
1895 | ,set) | |
ec6a6fbe AK |
1896 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1897 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1898 | ac_cache_corrupted=: ;; |
1899 | ,);; | |
1900 | *) | |
1901 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1902 | # differences in whitespace do not lead to failure. |
1903 | ac_old_val_w=`echo x $ac_old_val` | |
1904 | ac_new_val_w=`echo x $ac_new_val` | |
1905 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1906 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1907 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1908 | ac_cache_corrupted=: | |
1909 | else | |
1910 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1911 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1912 | eval $ac_var=\$ac_old_val | |
1913 | fi | |
1914 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1915 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1916 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1917 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1918 | fi;; |
1919 | esac | |
1920 | # Pass precious variables to config.status. | |
1921 | if test "$ac_new_set" = set; then | |
1922 | case $ac_new_val in | |
ec6a6fbe | 1923 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1924 | *) ac_arg=$ac_var=$ac_new_val ;; |
1925 | esac | |
1926 | case " $ac_configure_args " in | |
1927 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1928 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1929 | esac | |
1930 | fi | |
1931 | done | |
1932 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
1933 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1934 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1935 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1936 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1937 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1938 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1939 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1940 | fi |
1941 | ||
ad6254c5 AK |
1942 | |
1943 | ||
1944 | ||
1945 | ||
1946 | ||
1947 | ||
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | ||
1957 | ||
7a197a62 AK |
1958 | ac_ext=c |
1959 | ac_cpp='$CPP $CPPFLAGS' | |
1960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1963 | |
795ca3e5 AK |
1964 | |
1965 | ||
7a197a62 | 1966 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1967 | |
1968 | ||
80992638 | 1969 | ################################################################################ |
795ca3e5 | 1970 | ac_aux_dir= |
7a197a62 AK |
1971 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1972 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1973 | ac_aux_dir=$ac_dir |
1974 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1975 | break | |
7a197a62 | 1976 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1977 | ac_aux_dir=$ac_dir |
1978 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1979 | break | |
7a197a62 | 1980 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1981 | ac_aux_dir=$ac_dir |
1982 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1983 | break | |
795ca3e5 AK |
1984 | fi |
1985 | done | |
1986 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
1987 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1988 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1989 | { (exit 1); exit 1; }; } |
795ca3e5 | 1990 | fi |
7a197a62 AK |
1991 | |
1992 | # These three variables are undocumented and unsupported, | |
1993 | # and are intended to be withdrawn in a future Autoconf release. | |
1994 | # They can cause serious problems if a builder's source tree is in a directory | |
1995 | # whose full name contains unusual characters. | |
1996 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1997 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1998 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1999 | ||
8ce0cbda AK |
2000 | |
2001 | ||
ad6254c5 | 2002 | ################################################################################ |
8ce0cbda | 2003 | # Make sure we can run config.sub. |
7a197a62 | 2004 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2005 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2006 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2007 | { (exit 1); exit 1; }; } |
2008 | ||
ec6a6fbe AK |
2009 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2010 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2011 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2012 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2013 | else |
7a197a62 AK |
2014 | ac_build_alias=$build_alias |
2015 | test "x$ac_build_alias" = x && | |
2016 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2017 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2018 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2019 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2020 | { (exit 1); exit 1; }; } |
7a197a62 | 2021 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2022 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2023 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2024 | { (exit 1); exit 1; }; } |
2025 | ||
2026 | fi | |
ec6a6fbe AK |
2027 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2028 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2029 | case $ac_cv_build in |
2030 | *-*-*) ;; | |
ec6a6fbe AK |
2031 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2032 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2033 | { (exit 1); exit 1; }; };; |
2034 | esac | |
ad6254c5 | 2035 | build=$ac_cv_build |
7a197a62 AK |
2036 | ac_save_IFS=$IFS; IFS='-' |
2037 | set x $ac_cv_build | |
2038 | shift | |
2039 | build_cpu=$1 | |
2040 | build_vendor=$2 | |
2041 | shift; shift | |
2042 | # Remember, the first character of IFS is used to create $*, | |
2043 | # except with old shells: | |
2044 | build_os=$* | |
2045 | IFS=$ac_save_IFS | |
2046 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2047 | |
2048 | ||
ec6a6fbe AK |
2049 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2050 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2051 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2052 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2053 | else |
7a197a62 AK |
2054 | if test "x$host_alias" = x; then |
2055 | ac_cv_host=$ac_cv_build | |
2056 | else | |
2057 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2058 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2059 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2060 | { (exit 1); exit 1; }; } |
7a197a62 | 2061 | fi |
ad6254c5 AK |
2062 | |
2063 | fi | |
ec6a6fbe AK |
2064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2065 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2066 | case $ac_cv_host in |
2067 | *-*-*) ;; | |
ec6a6fbe AK |
2068 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2069 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2070 | { (exit 1); exit 1; }; };; |
2071 | esac | |
ad6254c5 | 2072 | host=$ac_cv_host |
7a197a62 AK |
2073 | ac_save_IFS=$IFS; IFS='-' |
2074 | set x $ac_cv_host | |
2075 | shift | |
2076 | host_cpu=$1 | |
2077 | host_vendor=$2 | |
2078 | shift; shift | |
2079 | # Remember, the first character of IFS is used to create $*, | |
2080 | # except with old shells: | |
2081 | host_os=$* | |
2082 | IFS=$ac_save_IFS | |
2083 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2084 | |
2085 | ||
ec6a6fbe AK |
2086 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2087 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2088 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2089 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2090 | else |
7a197a62 AK |
2091 | if test "x$target_alias" = x; then |
2092 | ac_cv_target=$ac_cv_host | |
2093 | else | |
2094 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2095 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2096 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2097 | { (exit 1); exit 1; }; } |
7a197a62 | 2098 | fi |
8ce0cbda | 2099 | |
ad6254c5 | 2100 | fi |
ec6a6fbe AK |
2101 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2102 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2103 | case $ac_cv_target in |
2104 | *-*-*) ;; | |
ec6a6fbe AK |
2105 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2106 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2107 | { (exit 1); exit 1; }; };; |
2108 | esac | |
ad6254c5 | 2109 | target=$ac_cv_target |
7a197a62 AK |
2110 | ac_save_IFS=$IFS; IFS='-' |
2111 | set x $ac_cv_target | |
2112 | shift | |
2113 | target_cpu=$1 | |
2114 | target_vendor=$2 | |
2115 | shift; shift | |
2116 | # Remember, the first character of IFS is used to create $*, | |
2117 | # except with old shells: | |
2118 | target_os=$* | |
2119 | IFS=$ac_save_IFS | |
2120 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2121 | |
8ce0cbda | 2122 | |
ad6254c5 AK |
2123 | # The aliases save the names the user supplied, while $host etc. |
2124 | # will get canonicalized. | |
2125 | test -n "$target_alias" && | |
8ce0cbda AK |
2126 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2127 | NONENONEs,x,x, && | |
2128 | program_prefix=${target_alias}- | |
2129 | ||
8ce0cbda AK |
2130 | case "$host_os" in |
2131 | linux*) | |
7f54ef36 | 2132 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2133 | COPTIMISE_FLAG="-O2" |
2134 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2135 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2136 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2137 | LDDEPS="$LDDEPS .export.sym" | |
2138 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2139 | LIB_SUFFIX=so |
8ce0cbda AK |
2140 | DEVMAPPER=yes |
2141 | ODIRECT=yes | |
d0191583 | 2142 | DM_IOCTLS=yes |
8ce0cbda | 2143 | SELINUX=yes |
8b1a3214 | 2144 | REALTIME=yes |
8ce0cbda | 2145 | CLUSTER=internal |
93bd259b | 2146 | FSADM=yes |
d0191583 | 2147 | ;; |
8ce0cbda AK |
2148 | darwin*) |
2149 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2150 | COPTIMISE_FLAG="-O2" | |
2151 | CLDFLAGS="$CLDFLAGS" | |
2152 | CLDWHOLEARCHIVE="-all_load" | |
2153 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2154 | LIB_SUFFIX=dylib |
a653923f | 2155 | DEVMAPPER=yes |
8ce0cbda | 2156 | ODIRECT=no |
d0191583 | 2157 | DM_IOCTLS=no |
8ce0cbda | 2158 | SELINUX=no |
8b1a3214 | 2159 | REALTIME=no |
8ce0cbda | 2160 | CLUSTER=none |
d0191583 JM |
2161 | FSADM=no |
2162 | ;; | |
8ce0cbda AK |
2163 | esac |
2164 | ||
80992638 | 2165 | ################################################################################ |
ec6a6fbe AK |
2166 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2167 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2168 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2169 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2170 | else |
2171 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2172 | for ac_i in 1 2 3 4 5 6 7; do | |
2173 | ac_script="$ac_script$as_nl$ac_script" | |
2174 | done | |
ec6a6fbe | 2175 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2176 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2177 | if test -z "$SED"; then |
5951ef33 | 2178 | ac_path_SED_found=false |
ec6a6fbe AK |
2179 | # Loop through the user's path and test for each of PROGNAME-LIST |
2180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2181 | for as_dir in $PATH |
2182 | do | |
2183 | IFS=$as_save_IFS | |
2184 | test -z "$as_dir" && as_dir=. | |
2185 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2186 | for ac_exec_ext in '' $ac_executable_extensions; do |
2187 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2188 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2189 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2190 | # Check for GNU $ac_path_SED |
2191 | case `"$ac_path_SED" --version 2>&1` in | |
2192 | *GNU*) | |
2193 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2194 | *) | |
2195 | ac_count=0 | |
ec6a6fbe | 2196 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2197 | while : |
2198 | do | |
2199 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2200 | mv "conftest.tmp" "conftest.in" | |
2201 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2202 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2203 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2204 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2205 | ac_count=`expr $ac_count + 1` | |
2206 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2207 | # Best one so far, save it but keep looking for a better one | |
2208 | ac_cv_path_SED="$ac_path_SED" | |
2209 | ac_path_SED_max=$ac_count | |
2210 | fi | |
2211 | # 10*(2^10) chars as input seems more than enough | |
2212 | test $ac_count -gt 10 && break | |
2213 | done | |
2214 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2215 | esac | |
2216 | ||
ec6a6fbe AK |
2217 | $ac_path_SED_found && break 3 |
2218 | done | |
5951ef33 AK |
2219 | done |
2220 | done | |
5951ef33 | 2221 | IFS=$as_save_IFS |
ec6a6fbe AK |
2222 | if test -z "$ac_cv_path_SED"; then |
2223 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2224 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2225 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2226 | fi |
5951ef33 AK |
2227 | else |
2228 | ac_cv_path_SED=$SED | |
2229 | fi | |
2230 | ||
2231 | fi | |
ec6a6fbe AK |
2232 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2233 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2234 | SED="$ac_cv_path_SED" |
2235 | rm -f conftest.sed | |
2236 | ||
ad6254c5 | 2237 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2238 | do |
ad6254c5 | 2239 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2240 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2241 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2242 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2243 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2244 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2245 | else |
2246 | if test -n "$AWK"; then | |
2247 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2248 | else | |
ad6254c5 AK |
2249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2250 | for as_dir in $PATH | |
2251 | do | |
2252 | IFS=$as_save_IFS | |
2253 | test -z "$as_dir" && as_dir=. | |
2254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2256 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2257 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2258 | break 2 |
2259 | fi | |
2260 | done | |
2261 | done | |
7a197a62 | 2262 | IFS=$as_save_IFS |
ad6254c5 | 2263 | |
795ca3e5 AK |
2264 | fi |
2265 | fi | |
ad6254c5 | 2266 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2267 | if test -n "$AWK"; then |
ec6a6fbe AK |
2268 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2269 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2270 | else |
ec6a6fbe AK |
2271 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2272 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2273 | fi |
2274 | ||
7a197a62 | 2275 | |
ad6254c5 AK |
2276 | test -n "$AWK" && break |
2277 | done | |
2278 | ||
2279 | ac_ext=c | |
2280 | ac_cpp='$CPP $CPPFLAGS' | |
2281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2284 | if test -n "$ac_tool_prefix"; then | |
2285 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2286 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2287 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2288 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2289 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2290 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2291 | else |
2292 | if test -n "$CC"; then | |
2293 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2294 | else | |
2295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2296 | for as_dir in $PATH | |
2297 | do | |
2298 | IFS=$as_save_IFS | |
2299 | test -z "$as_dir" && as_dir=. | |
2300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2302 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2303 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2304 | break 2 |
2305 | fi | |
2306 | done | |
8106cdd5 | 2307 | done |
7a197a62 | 2308 | IFS=$as_save_IFS |
8106cdd5 | 2309 | |
ad6254c5 AK |
2310 | fi |
2311 | fi | |
2312 | CC=$ac_cv_prog_CC | |
2313 | if test -n "$CC"; then | |
ec6a6fbe AK |
2314 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2315 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2316 | else |
ec6a6fbe AK |
2317 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2318 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2319 | fi |
2320 | ||
7a197a62 | 2321 | |
ad6254c5 AK |
2322 | fi |
2323 | if test -z "$ac_cv_prog_CC"; then | |
2324 | ac_ct_CC=$CC | |
2325 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2326 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2327 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2328 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2329 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2330 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2331 | else |
2332 | if test -n "$ac_ct_CC"; then | |
2333 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2334 | else | |
2335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2336 | for as_dir in $PATH | |
2337 | do | |
2338 | IFS=$as_save_IFS | |
2339 | test -z "$as_dir" && as_dir=. | |
2340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2342 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2343 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2344 | break 2 |
2345 | fi | |
2346 | done | |
2347 | done | |
7a197a62 | 2348 | IFS=$as_save_IFS |
ad6254c5 AK |
2349 | |
2350 | fi | |
2351 | fi | |
2352 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2353 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2354 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2355 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2356 | else |
ec6a6fbe AK |
2357 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2358 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2359 | fi |
2360 | ||
7a197a62 AK |
2361 | if test "x$ac_ct_CC" = x; then |
2362 | CC="" | |
2363 | else | |
2364 | case $cross_compiling:$ac_tool_warned in | |
2365 | yes:) | |
ec6a6fbe AK |
2366 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2367 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2368 | ac_tool_warned=yes ;; |
2369 | esac | |
2370 | CC=$ac_ct_CC | |
2371 | fi | |
ad6254c5 AK |
2372 | else |
2373 | CC="$ac_cv_prog_CC" | |
2374 | fi | |
2375 | ||
2376 | if test -z "$CC"; then | |
7a197a62 AK |
2377 | if test -n "$ac_tool_prefix"; then |
2378 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2379 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2380 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2381 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2382 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2383 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2384 | else |
2385 | if test -n "$CC"; then | |
2386 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2387 | else | |
ad6254c5 AK |
2388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2389 | for as_dir in $PATH | |
2390 | do | |
2391 | IFS=$as_save_IFS | |
2392 | test -z "$as_dir" && as_dir=. | |
2393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2395 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2396 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2397 | break 2 |
2398 | fi | |
2399 | done | |
2400 | done | |
7a197a62 | 2401 | IFS=$as_save_IFS |
ad6254c5 | 2402 | |
8106cdd5 AK |
2403 | fi |
2404 | fi | |
ad6254c5 | 2405 | CC=$ac_cv_prog_CC |
8106cdd5 | 2406 | if test -n "$CC"; then |
ec6a6fbe AK |
2407 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2408 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2409 | else |
ec6a6fbe AK |
2410 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2411 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2412 | fi |
2413 | ||
8106cdd5 | 2414 | |
7a197a62 | 2415 | fi |
ad6254c5 | 2416 | fi |
795ca3e5 AK |
2417 | if test -z "$CC"; then |
2418 | # Extract the first word of "cc", so it can be a program name with args. | |
2419 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2420 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2421 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2422 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2423 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2424 | else |
2425 | if test -n "$CC"; then | |
2426 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2427 | else | |
795ca3e5 | 2428 | ac_prog_rejected=no |
ad6254c5 AK |
2429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2430 | for as_dir in $PATH | |
2431 | do | |
2432 | IFS=$as_save_IFS | |
2433 | test -z "$as_dir" && as_dir=. | |
2434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2435 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2436 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2437 | ac_prog_rejected=yes | |
2438 | continue | |
2439 | fi | |
2440 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2441 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2442 | break 2 |
2443 | fi | |
2444 | done | |
2445 | done | |
7a197a62 | 2446 | IFS=$as_save_IFS |
ad6254c5 | 2447 | |
795ca3e5 AK |
2448 | if test $ac_prog_rejected = yes; then |
2449 | # We found a bogon in the path, so make sure we never use it. | |
2450 | set dummy $ac_cv_prog_CC | |
2451 | shift | |
ad6254c5 | 2452 | if test $# != 0; then |
795ca3e5 AK |
2453 | # We chose a different compiler from the bogus one. |
2454 | # However, it has the same basename, so the bogon will be chosen | |
2455 | # first if we set CC to just the basename; use the full file name. | |
2456 | shift | |
ad6254c5 | 2457 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2458 | fi |
2459 | fi | |
2460 | fi | |
2461 | fi | |
ad6254c5 | 2462 | CC=$ac_cv_prog_CC |
795ca3e5 | 2463 | if test -n "$CC"; then |
ec6a6fbe AK |
2464 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2465 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2466 | else |
ec6a6fbe AK |
2467 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2468 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2469 | fi |
2470 | ||
7a197a62 | 2471 | |
ad6254c5 AK |
2472 | fi |
2473 | if test -z "$CC"; then | |
2474 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2475 | for ac_prog in cl.exe |
ad6254c5 AK |
2476 | do |
2477 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2478 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2479 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2480 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2481 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2482 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2483 | else |
2484 | if test -n "$CC"; then | |
2485 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2486 | else | |
ad6254c5 AK |
2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2488 | for as_dir in $PATH | |
2489 | do | |
2490 | IFS=$as_save_IFS | |
2491 | test -z "$as_dir" && as_dir=. | |
2492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2494 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2495 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2496 | break 2 |
2497 | fi | |
2498 | done | |
2499 | done | |
7a197a62 | 2500 | IFS=$as_save_IFS |
ad6254c5 | 2501 | |
795ca3e5 AK |
2502 | fi |
2503 | fi | |
ad6254c5 | 2504 | CC=$ac_cv_prog_CC |
795ca3e5 | 2505 | if test -n "$CC"; then |
ec6a6fbe AK |
2506 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2507 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2508 | else |
ec6a6fbe AK |
2509 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2510 | $as_echo "no" >&6; } | |
795ca3e5 | 2511 | fi |
ad6254c5 | 2512 | |
7a197a62 | 2513 | |
ad6254c5 AK |
2514 | test -n "$CC" && break |
2515 | done | |
2516 | fi | |
2517 | if test -z "$CC"; then | |
2518 | ac_ct_CC=$CC | |
7a197a62 | 2519 | for ac_prog in cl.exe |
ad6254c5 AK |
2520 | do |
2521 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2522 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2523 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2524 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2525 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2526 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2527 | else |
2528 | if test -n "$ac_ct_CC"; then | |
2529 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2530 | else | |
2531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2532 | for as_dir in $PATH | |
2533 | do | |
2534 | IFS=$as_save_IFS | |
2535 | test -z "$as_dir" && as_dir=. | |
2536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2538 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2539 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2540 | break 2 |
795ca3e5 | 2541 | fi |
ad6254c5 AK |
2542 | done |
2543 | done | |
7a197a62 | 2544 | IFS=$as_save_IFS |
ad6254c5 AK |
2545 | |
2546 | fi | |
2547 | fi | |
2548 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2549 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2550 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2551 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2552 | else |
ec6a6fbe AK |
2553 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2554 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2555 | fi |
2556 | ||
7a197a62 | 2557 | |
ad6254c5 AK |
2558 | test -n "$ac_ct_CC" && break |
2559 | done | |
795ca3e5 | 2560 | |
7a197a62 AK |
2561 | if test "x$ac_ct_CC" = x; then |
2562 | CC="" | |
2563 | else | |
2564 | case $cross_compiling:$ac_tool_warned in | |
2565 | yes:) | |
ec6a6fbe AK |
2566 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2567 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2568 | ac_tool_warned=yes ;; |
2569 | esac | |
2570 | CC=$ac_ct_CC | |
2571 | fi | |
ad6254c5 AK |
2572 | fi |
2573 | ||
2574 | fi | |
2575 | ||
2576 | ||
ec6a6fbe AK |
2577 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2579 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2580 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2581 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2582 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2583 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2584 | |
2585 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2586 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2587 | set X $ac_compile | |
2588 | ac_compiler=$2 | |
7a197a62 AK |
2589 | { (ac_try="$ac_compiler --version >&5" |
2590 | case "(($ac_try" in | |
2591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2592 | *) ac_try_echo=$ac_try;; | |
2593 | esac | |
ec6a6fbe AK |
2594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2595 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2596 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2597 | ac_status=$? |
ec6a6fbe | 2598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2599 | (exit $ac_status); } |
7a197a62 AK |
2600 | { (ac_try="$ac_compiler -v >&5" |
2601 | case "(($ac_try" in | |
2602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2603 | *) ac_try_echo=$ac_try;; | |
2604 | esac | |
ec6a6fbe AK |
2605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2606 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2607 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2608 | ac_status=$? |
ec6a6fbe | 2609 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2610 | (exit $ac_status); } |
7a197a62 AK |
2611 | { (ac_try="$ac_compiler -V >&5" |
2612 | case "(($ac_try" in | |
2613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2614 | *) ac_try_echo=$ac_try;; | |
2615 | esac | |
ec6a6fbe AK |
2616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2617 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2618 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2619 | ac_status=$? |
ec6a6fbe | 2620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2621 | (exit $ac_status); } |
2622 | ||
2623 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2624 | /* confdefs.h. */ |
2625 | _ACEOF | |
2626 | cat confdefs.h >>conftest.$ac_ext | |
2627 | cat >>conftest.$ac_ext <<_ACEOF | |
2628 | /* end confdefs.h. */ | |
2629 | ||
2630 | int | |
2631 | main () | |
2632 | { | |
2633 | ||
2634 | ; | |
2635 | return 0; | |
2636 | } | |
2637 | _ACEOF | |
2638 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2639 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2640 | # Try to create an executable without -o first, disregard a.out. |
2641 | # It will help us diagnose broken compilers, and finding out an intuition | |
2642 | # of exeext. | |
ec6a6fbe AK |
2643 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2644 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2645 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2646 | ||
2647 | # The possible output files: | |
2648 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2649 | ||
7a197a62 AK |
2650 | ac_rmfiles= |
2651 | for ac_file in $ac_files | |
2652 | do | |
2653 | case $ac_file in | |
ec6a6fbe | 2654 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2655 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2656 | esac | |
2657 | done | |
2658 | rm -f $ac_rmfiles | |
2659 | ||
2660 | if { (ac_try="$ac_link_default" | |
2661 | case "(($ac_try" in | |
2662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2663 | *) ac_try_echo=$ac_try;; | |
2664 | esac | |
ec6a6fbe AK |
2665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2666 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2667 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2668 | ac_status=$? |
ec6a6fbe | 2669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2670 | (exit $ac_status); }; then |
7a197a62 AK |
2671 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2672 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2673 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2674 | # so that the user can short-circuit this test for compilers unknown to | |
2675 | # Autoconf. | |
25fbec5b | 2676 | for ac_file in $ac_files '' |
ad6254c5 AK |
2677 | do |
2678 | test -f "$ac_file" || continue | |
2679 | case $ac_file in | |
ec6a6fbe | 2680 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2681 | ;; |
ad6254c5 | 2682 | [ab].out ) |
8a2fc586 AK |
2683 | # We found the default executable, but exeext='' is most |
2684 | # certainly right. | |
2685 | break;; | |
ad6254c5 | 2686 | *.* ) |
7a197a62 AK |
2687 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2688 | then :; else | |
2689 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2690 | fi | |
2691 | # We set ac_cv_exeext here because the later test for it is not | |
2692 | # safe: cross compilers may not add the suffix if given an `-o' | |
2693 | # argument, so we may need to know it at that point already. | |
2694 | # Even if this section looks crufty: it has the advantage of | |
2695 | # actually working. | |
8a2fc586 | 2696 | break;; |
ad6254c5 | 2697 | * ) |
8a2fc586 | 2698 | break;; |
ad6254c5 AK |
2699 | esac |
2700 | done | |
7a197a62 AK |
2701 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2702 | ||
ad6254c5 | 2703 | else |
25fbec5b AK |
2704 | ac_file='' |
2705 | fi | |
2706 | ||
ec6a6fbe AK |
2707 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2708 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2709 | if test -z "$ac_file"; then |
ec6a6fbe | 2710 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2711 | sed 's/^/| /' conftest.$ac_ext >&5 |
2712 | ||
ec6a6fbe AK |
2713 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2714 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2715 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2716 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2717 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2718 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2719 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2720 | fi |
2721 | ||
2722 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2723 | |
7a197a62 | 2724 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2725 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2726 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2727 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2728 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2729 | # If not cross compiling, check that we can run a simple program. | |
2730 | if test "$cross_compiling" != yes; then | |
2731 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2732 | { (case "(($ac_try" in |
2733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2734 | *) ac_try_echo=$ac_try;; | |
2735 | esac | |
ec6a6fbe AK |
2736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2737 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2738 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2739 | ac_status=$? |
ec6a6fbe | 2740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2741 | (exit $ac_status); }; }; then |
2742 | cross_compiling=no | |
795ca3e5 | 2743 | else |
ad6254c5 AK |
2744 | if test "$cross_compiling" = maybe; then |
2745 | cross_compiling=yes | |
2746 | else | |
ec6a6fbe AK |
2747 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2749 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2750 | If you meant to cross compile, use \`--host'. |
2751 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2752 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2753 | If you meant to cross compile, use \`--host'. |
2754 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2755 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2756 | fi |
795ca3e5 | 2757 | fi |
80992638 | 2758 | fi |
ec6a6fbe AK |
2759 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2760 | $as_echo "yes" >&6; } | |
ad6254c5 | 2761 | |
ec6a6fbe | 2762 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2763 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2764 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2765 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2766 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2767 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2768 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2769 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2770 | |
ec6a6fbe AK |
2771 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2772 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2773 | if { (ac_try="$ac_link" |
2774 | case "(($ac_try" in | |
2775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2776 | *) ac_try_echo=$ac_try;; | |
2777 | esac | |
ec6a6fbe AK |
2778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2779 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2780 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2781 | ac_status=$? |
ec6a6fbe | 2782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2783 | (exit $ac_status); }; then |
2784 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2785 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2786 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2787 | # `rm'. | |
2788 | for ac_file in conftest.exe conftest conftest.*; do | |
2789 | test -f "$ac_file" || continue | |
2790 | case $ac_file in | |
ec6a6fbe | 2791 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2792 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2793 | break;; |
ad6254c5 AK |
2794 | * ) break;; |
2795 | esac | |
2796 | done | |
80992638 | 2797 | else |
ec6a6fbe AK |
2798 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2799 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2800 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2801 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2802 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2803 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2804 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2805 | fi |
2806 | ||
2807 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2808 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2809 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2810 | |
2811 | rm -f conftest.$ac_ext | |
2812 | EXEEXT=$ac_cv_exeext | |
2813 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2814 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2815 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2816 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2817 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2818 | else |
ad6254c5 | 2819 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2820 | /* confdefs.h. */ |
2821 | _ACEOF | |
2822 | cat confdefs.h >>conftest.$ac_ext | |
2823 | cat >>conftest.$ac_ext <<_ACEOF | |
2824 | /* end confdefs.h. */ | |
2825 | ||
2826 | int | |
2827 | main () | |
2828 | { | |
2829 | ||
2830 | ; | |
2831 | return 0; | |
2832 | } | |
2833 | _ACEOF | |
2834 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2835 | if { (ac_try="$ac_compile" |
2836 | case "(($ac_try" in | |
2837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2838 | *) ac_try_echo=$ac_try;; | |
2839 | esac | |
ec6a6fbe AK |
2840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2841 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2842 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2843 | ac_status=$? |
ec6a6fbe | 2844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2845 | (exit $ac_status); }; then |
7a197a62 AK |
2846 | for ac_file in conftest.o conftest.obj conftest.*; do |
2847 | test -f "$ac_file" || continue; | |
ad6254c5 | 2848 | case $ac_file in |
ec6a6fbe | 2849 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2850 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2851 | break;; | |
2852 | esac | |
2853 | done | |
2854 | else | |
ec6a6fbe | 2855 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2856 | sed 's/^/| /' conftest.$ac_ext >&5 |
2857 | ||
ec6a6fbe AK |
2858 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2860 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2861 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2862 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2863 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2864 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2865 | fi |
2866 | ||
2867 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2868 | fi | |
ec6a6fbe AK |
2869 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2870 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2871 | OBJEXT=$ac_cv_objext |
2872 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2873 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2874 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2875 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2876 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2877 | else |
2878 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2879 | /* confdefs.h. */ |
2880 | _ACEOF | |
2881 | cat confdefs.h >>conftest.$ac_ext | |
2882 | cat >>conftest.$ac_ext <<_ACEOF | |
2883 | /* end confdefs.h. */ | |
2884 | ||
2885 | int | |
2886 | main () | |
2887 | { | |
2888 | #ifndef __GNUC__ | |
2889 | choke me | |
2890 | #endif | |
80992638 | 2891 | |
ad6254c5 AK |
2892 | ; |
2893 | return 0; | |
2894 | } | |
2895 | _ACEOF | |
2896 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2897 | if { (ac_try="$ac_compile" |
2898 | case "(($ac_try" in | |
2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2900 | *) ac_try_echo=$ac_try;; | |
2901 | esac | |
ec6a6fbe AK |
2902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2903 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2904 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2905 | ac_status=$? |
8a2fc586 AK |
2906 | grep -v '^ *+' conftest.er1 >conftest.err |
2907 | rm -f conftest.er1 | |
2908 | cat conftest.err >&5 | |
ec6a6fbe | 2909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2910 | (exit $ac_status); } && { |
2911 | test -z "$ac_c_werror_flag" || | |
2912 | test ! -s conftest.err | |
2913 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2914 | ac_compiler_gnu=yes |
80992638 | 2915 | else |
ec6a6fbe | 2916 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2917 | sed 's/^/| /' conftest.$ac_ext >&5 |
2918 | ||
7a197a62 | 2919 | ac_compiler_gnu=no |
8106cdd5 | 2920 | fi |
7a197a62 AK |
2921 | |
2922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2923 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2924 | |
ad6254c5 | 2925 | fi |
ec6a6fbe AK |
2926 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2927 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2928 | if test $ac_compiler_gnu = yes; then | |
2929 | GCC=yes | |
2930 | else | |
2931 | GCC= | |
2932 | fi | |
ad6254c5 AK |
2933 | ac_test_CFLAGS=${CFLAGS+set} |
2934 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
2935 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2936 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2937 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 2938 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2939 | else |
7a197a62 AK |
2940 | ac_save_c_werror_flag=$ac_c_werror_flag |
2941 | ac_c_werror_flag=yes | |
2942 | ac_cv_prog_cc_g=no | |
2943 | CFLAGS="-g" | |
2944 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2945 | /* confdefs.h. */ |
2946 | _ACEOF | |
2947 | cat confdefs.h >>conftest.$ac_ext | |
2948 | cat >>conftest.$ac_ext <<_ACEOF | |
2949 | /* end confdefs.h. */ | |
2950 | ||
2951 | int | |
2952 | main () | |
2953 | { | |
2954 | ||
2955 | ; | |
2956 | return 0; | |
2957 | } | |
2958 | _ACEOF | |
2959 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2960 | if { (ac_try="$ac_compile" |
2961 | case "(($ac_try" in | |
2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2963 | *) ac_try_echo=$ac_try;; | |
2964 | esac | |
ec6a6fbe AK |
2965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2966 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2967 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2968 | ac_status=$? |
8a2fc586 AK |
2969 | grep -v '^ *+' conftest.er1 >conftest.err |
2970 | rm -f conftest.er1 | |
2971 | cat conftest.err >&5 | |
ec6a6fbe | 2972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2973 | (exit $ac_status); } && { |
2974 | test -z "$ac_c_werror_flag" || | |
2975 | test ! -s conftest.err | |
2976 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2977 | ac_cv_prog_cc_g=yes |
2978 | else | |
ec6a6fbe | 2979 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2980 | sed 's/^/| /' conftest.$ac_ext >&5 |
2981 | ||
2982 | CFLAGS="" | |
2983 | cat >conftest.$ac_ext <<_ACEOF | |
2984 | /* confdefs.h. */ | |
2985 | _ACEOF | |
2986 | cat confdefs.h >>conftest.$ac_ext | |
2987 | cat >>conftest.$ac_ext <<_ACEOF | |
2988 | /* end confdefs.h. */ | |
2989 | ||
2990 | int | |
2991 | main () | |
2992 | { | |
2993 | ||
2994 | ; | |
2995 | return 0; | |
2996 | } | |
2997 | _ACEOF | |
2998 | rm -f conftest.$ac_objext | |
2999 | if { (ac_try="$ac_compile" | |
3000 | case "(($ac_try" in | |
3001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3002 | *) ac_try_echo=$ac_try;; | |
3003 | esac | |
ec6a6fbe AK |
3004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3005 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3006 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3007 | ac_status=$? |
7a197a62 AK |
3008 | grep -v '^ *+' conftest.er1 >conftest.err |
3009 | rm -f conftest.er1 | |
3010 | cat conftest.err >&5 | |
ec6a6fbe | 3011 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3012 | (exit $ac_status); } && { |
3013 | test -z "$ac_c_werror_flag" || | |
3014 | test ! -s conftest.err | |
3015 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3016 | : |
3017 | else | |
ec6a6fbe | 3018 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3019 | sed 's/^/| /' conftest.$ac_ext >&5 |
3020 | ||
3021 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3022 | CFLAGS="-g" | |
3023 | cat >conftest.$ac_ext <<_ACEOF | |
3024 | /* confdefs.h. */ | |
3025 | _ACEOF | |
3026 | cat confdefs.h >>conftest.$ac_ext | |
3027 | cat >>conftest.$ac_ext <<_ACEOF | |
3028 | /* end confdefs.h. */ | |
3029 | ||
3030 | int | |
3031 | main () | |
3032 | { | |
3033 | ||
3034 | ; | |
3035 | return 0; | |
3036 | } | |
3037 | _ACEOF | |
3038 | rm -f conftest.$ac_objext | |
3039 | if { (ac_try="$ac_compile" | |
3040 | case "(($ac_try" in | |
3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3042 | *) ac_try_echo=$ac_try;; | |
3043 | esac | |
ec6a6fbe AK |
3044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3045 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3046 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3047 | ac_status=$? |
7a197a62 AK |
3048 | grep -v '^ *+' conftest.er1 >conftest.err |
3049 | rm -f conftest.er1 | |
3050 | cat conftest.err >&5 | |
ec6a6fbe | 3051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3052 | (exit $ac_status); } && { |
3053 | test -z "$ac_c_werror_flag" || | |
3054 | test ! -s conftest.err | |
3055 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3056 | ac_cv_prog_cc_g=yes |
3057 | else | |
ec6a6fbe | 3058 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3059 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3060 | |
7a197a62 AK |
3061 | |
3062 | fi | |
3063 | ||
3064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3065 | fi | |
3066 | ||
3067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3068 | fi |
7a197a62 AK |
3069 | |
3070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3071 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3072 | fi |
ec6a6fbe AK |
3073 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3074 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3075 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3076 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3077 | elif test $ac_cv_prog_cc_g = yes; then |
3078 | if test "$GCC" = yes; then | |
3079 | CFLAGS="-g -O2" | |
3080 | else | |
3081 | CFLAGS="-g" | |
3082 | fi | |
3083 | else | |
3084 | if test "$GCC" = yes; then | |
3085 | CFLAGS="-O2" | |
3086 | else | |
3087 | CFLAGS= | |
3088 | fi | |
3089 | fi | |
ec6a6fbe AK |
3090 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3091 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3092 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3093 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3094 | else |
7a197a62 | 3095 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3096 | ac_save_CC=$CC |
3097 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3098 | /* confdefs.h. */ |
3099 | _ACEOF | |
3100 | cat confdefs.h >>conftest.$ac_ext | |
3101 | cat >>conftest.$ac_ext <<_ACEOF | |
3102 | /* end confdefs.h. */ | |
3103 | #include <stdarg.h> | |
3104 | #include <stdio.h> | |
3105 | #include <sys/types.h> | |
3106 | #include <sys/stat.h> | |
3107 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3108 | struct buf { int x; }; | |
3109 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3110 | static char *e (p, i) | |
3111 | char **p; | |
3112 | int i; | |
3113 | { | |
3114 | return p[i]; | |
3115 | } | |
3116 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3117 | { | |
3118 | char *s; | |
3119 | va_list v; | |
3120 | va_start (v,p); | |
3121 | s = g (p, va_arg (v,int)); | |
3122 | va_end (v); | |
3123 | return s; | |
3124 | } | |
8a2fc586 AK |
3125 | |
3126 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3127 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3128 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3129 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3130 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3131 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3132 | that's true only with -std. */ |
8a2fc586 AK |
3133 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3134 | ||
7a197a62 AK |
3135 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3136 | inside strings and character constants. */ | |
3137 | #define FOO(x) 'x' | |
3138 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3139 | ||
ad6254c5 AK |
3140 | int test (int i, double x); |
3141 | struct s1 {int (*f) (int a);}; | |
3142 | struct s2 {int (*f) (double a);}; | |
3143 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3144 | int argc; | |
3145 | char **argv; | |
3146 | int | |
3147 | main () | |
3148 | { | |
3149 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3150 | ; | |
3151 | return 0; | |
3152 | } | |
3153 | _ACEOF | |
7a197a62 AK |
3154 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3155 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3156 | do |
3157 | CC="$ac_save_CC $ac_arg" | |
3158 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3159 | if { (ac_try="$ac_compile" |
3160 | case "(($ac_try" in | |
3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3162 | *) ac_try_echo=$ac_try;; | |
3163 | esac | |
ec6a6fbe AK |
3164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3165 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3166 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3167 | ac_status=$? |
8a2fc586 AK |
3168 | grep -v '^ *+' conftest.er1 >conftest.err |
3169 | rm -f conftest.er1 | |
3170 | cat conftest.err >&5 | |
ec6a6fbe | 3171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3172 | (exit $ac_status); } && { |
3173 | test -z "$ac_c_werror_flag" || | |
3174 | test ! -s conftest.err | |
3175 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3176 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3177 | else |
ec6a6fbe | 3178 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3179 | sed 's/^/| /' conftest.$ac_ext >&5 |
3180 | ||
7a197a62 | 3181 | |
ad6254c5 | 3182 | fi |
7a197a62 AK |
3183 | |
3184 | rm -f core conftest.err conftest.$ac_objext | |
3185 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3186 | done |
7a197a62 | 3187 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3188 | CC=$ac_save_CC |
3189 | ||
3190 | fi | |
7a197a62 AK |
3191 | # AC_CACHE_VAL |
3192 | case "x$ac_cv_prog_cc_c89" in | |
3193 | x) | |
ec6a6fbe AK |
3194 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3195 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3196 | xno) |
ec6a6fbe AK |
3197 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3198 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3199 | *) |
7a197a62 | 3200 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3201 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3202 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3203 | esac |
3204 | ||
ad6254c5 | 3205 | |
ad6254c5 AK |
3206 | ac_ext=c |
3207 | ac_cpp='$CPP $CPPFLAGS' | |
3208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3211 | |
d0191583 JM |
3212 | |
3213 | ||
3214 | ac_ext=c | |
3215 | ac_cpp='$CPP $CPPFLAGS' | |
3216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3219 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3220 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3221 | # On Suns, sometimes $CPP names a directory. |
3222 | if test -n "$CPP" && test -d "$CPP"; then | |
3223 | CPP= | |
3224 | fi | |
3225 | if test -z "$CPP"; then | |
3226 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3227 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3228 | else |
d0191583 JM |
3229 | # Double quotes because CPP needs to be expanded |
3230 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3231 | do | |
3232 | ac_preproc_ok=false | |
3233 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3234 | do |
d0191583 JM |
3235 | # Use a header file that comes with gcc, so configuring glibc |
3236 | # with a fresh cross-compiler works. | |
3237 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3238 | # <limits.h> exists even on freestanding compilers. | |
3239 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3240 | # not just through cpp. "Syntax error" is here to catch this case. | |
3241 | cat >conftest.$ac_ext <<_ACEOF | |
3242 | /* confdefs.h. */ | |
3243 | _ACEOF | |
3244 | cat confdefs.h >>conftest.$ac_ext | |
3245 | cat >>conftest.$ac_ext <<_ACEOF | |
3246 | /* end confdefs.h. */ | |
3247 | #ifdef __STDC__ | |
3248 | # include <limits.h> | |
3249 | #else | |
3250 | # include <assert.h> | |
3251 | #endif | |
3252 | Syntax error | |
3253 | _ACEOF | |
3254 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3255 | case "(($ac_try" in | |
3256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3257 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3258 | esac |
ec6a6fbe AK |
3259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3260 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3261 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3262 | ac_status=$? | |
3263 | grep -v '^ *+' conftest.er1 >conftest.err | |
3264 | rm -f conftest.er1 | |
3265 | cat conftest.err >&5 | |
ec6a6fbe | 3266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3267 | (exit $ac_status); } >/dev/null && { |
3268 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3269 | test ! -s conftest.err | |
3270 | }; then | |
3271 | : | |
3272 | else | |
ec6a6fbe | 3273 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3274 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3275 | |
d0191583 JM |
3276 | # Broken: fails on valid input. |
3277 | continue | |
795ca3e5 | 3278 | fi |
795ca3e5 | 3279 | |
d0191583 | 3280 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3281 | |
d0191583 JM |
3282 | # OK, works on sane cases. Now check whether nonexistent headers |
3283 | # can be detected and how. | |
3284 | cat >conftest.$ac_ext <<_ACEOF | |
3285 | /* confdefs.h. */ | |
3286 | _ACEOF | |
3287 | cat confdefs.h >>conftest.$ac_ext | |
3288 | cat >>conftest.$ac_ext <<_ACEOF | |
3289 | /* end confdefs.h. */ | |
3290 | #include <ac_nonexistent.h> | |
3291 | _ACEOF | |
3292 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3293 | case "(($ac_try" in | |
3294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3295 | *) ac_try_echo=$ac_try;; | |
3296 | esac | |
ec6a6fbe AK |
3297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3298 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3299 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3300 | ac_status=$? | |
3301 | grep -v '^ *+' conftest.er1 >conftest.err | |
3302 | rm -f conftest.er1 | |
3303 | cat conftest.err >&5 | |
ec6a6fbe | 3304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3305 | (exit $ac_status); } >/dev/null && { |
3306 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3307 | test ! -s conftest.err | |
3308 | }; then | |
3309 | # Broken: success on invalid input. | |
3310 | continue | |
3311 | else | |
ec6a6fbe | 3312 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3313 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3314 | |
d0191583 JM |
3315 | # Passes both tests. |
3316 | ac_preproc_ok=: | |
3317 | break | |
3318 | fi | |
795ca3e5 | 3319 | |
d0191583 JM |
3320 | rm -f conftest.err conftest.$ac_ext |
3321 | ||
3322 | done | |
3323 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3324 | rm -f conftest.err conftest.$ac_ext | |
3325 | if $ac_preproc_ok; then | |
3326 | break | |
795ca3e5 AK |
3327 | fi |
3328 | ||
d0191583 JM |
3329 | done |
3330 | ac_cv_prog_CPP=$CPP | |
3331 | ||
3332 | fi | |
3333 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3334 | else |
d0191583 JM |
3335 | ac_cv_prog_CPP=$CPP |
3336 | fi | |
ec6a6fbe AK |
3337 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3338 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3339 | ac_preproc_ok=false |
3340 | for ac_c_preproc_warn_flag in '' yes | |
3341 | do | |
3342 | # Use a header file that comes with gcc, so configuring glibc | |
3343 | # with a fresh cross-compiler works. | |
3344 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3345 | # <limits.h> exists even on freestanding compilers. | |
3346 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3347 | # not just through cpp. "Syntax error" is here to catch this case. | |
3348 | cat >conftest.$ac_ext <<_ACEOF | |
3349 | /* confdefs.h. */ | |
ad6254c5 | 3350 | _ACEOF |
d0191583 JM |
3351 | cat confdefs.h >>conftest.$ac_ext |
3352 | cat >>conftest.$ac_ext <<_ACEOF | |
3353 | /* end confdefs.h. */ | |
3354 | #ifdef __STDC__ | |
3355 | # include <limits.h> | |
3356 | #else | |
3357 | # include <assert.h> | |
3358 | #endif | |
3359 | Syntax error | |
3360 | _ACEOF | |
3361 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3362 | case "(($ac_try" in | |
3363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3364 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3365 | esac |
ec6a6fbe AK |
3366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3367 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3368 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3369 | ac_status=$? | |
3370 | grep -v '^ *+' conftest.er1 >conftest.err | |
3371 | rm -f conftest.er1 | |
3372 | cat conftest.err >&5 | |
ec6a6fbe | 3373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3374 | (exit $ac_status); } >/dev/null && { |
3375 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3376 | test ! -s conftest.err | |
3377 | }; then | |
3378 | : | |
795ca3e5 | 3379 | else |
ec6a6fbe | 3380 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3381 | sed 's/^/| /' conftest.$ac_ext >&5 |
3382 | ||
3383 | # Broken: fails on valid input. | |
3384 | continue | |
795ca3e5 AK |
3385 | fi |
3386 | ||
d0191583 JM |
3387 | rm -f conftest.err conftest.$ac_ext |
3388 | ||
3389 | # OK, works on sane cases. Now check whether nonexistent headers | |
3390 | # can be detected and how. | |
3391 | cat >conftest.$ac_ext <<_ACEOF | |
3392 | /* confdefs.h. */ | |
3393 | _ACEOF | |
3394 | cat confdefs.h >>conftest.$ac_ext | |
3395 | cat >>conftest.$ac_ext <<_ACEOF | |
3396 | /* end confdefs.h. */ | |
3397 | #include <ac_nonexistent.h> | |
3398 | _ACEOF | |
3399 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3400 | case "(($ac_try" in | |
3401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3402 | *) ac_try_echo=$ac_try;; | |
3403 | esac | |
ec6a6fbe AK |
3404 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3405 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3407 | ac_status=$? | |
3408 | grep -v '^ *+' conftest.er1 >conftest.err | |
3409 | rm -f conftest.er1 | |
3410 | cat conftest.err >&5 | |
ec6a6fbe | 3411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3412 | (exit $ac_status); } >/dev/null && { |
3413 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3414 | test ! -s conftest.err | |
3415 | }; then | |
3416 | # Broken: success on invalid input. | |
3417 | continue | |
795ca3e5 | 3418 | else |
ec6a6fbe | 3419 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3420 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3421 | |
d0191583 JM |
3422 | # Passes both tests. |
3423 | ac_preproc_ok=: | |
3424 | break | |
795ca3e5 | 3425 | fi |
d0191583 JM |
3426 | |
3427 | rm -f conftest.err conftest.$ac_ext | |
3428 | ||
3429 | done | |
3430 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3431 | rm -f conftest.err conftest.$ac_ext | |
3432 | if $ac_preproc_ok; then | |
3433 | : | |
8106cdd5 | 3434 | else |
ec6a6fbe AK |
3435 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3437 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3438 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3439 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3440 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3441 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3442 | fi |
3443 | ||
d0191583 JM |
3444 | ac_ext=c |
3445 | ac_cpp='$CPP $CPPFLAGS' | |
3446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3449 | ||
7a197a62 | 3450 | |
ec6a6fbe AK |
3451 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3452 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3453 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3454 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3455 | else |
ec6a6fbe | 3456 | if test -z "$GREP"; then |
d0191583 | 3457 | ac_path_GREP_found=false |
ec6a6fbe AK |
3458 | # Loop through the user's path and test for each of PROGNAME-LIST |
3459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3460 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3461 | do |
3462 | IFS=$as_save_IFS | |
3463 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3464 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3465 | for ac_exec_ext in '' $ac_executable_extensions; do |
3466 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3467 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3468 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3469 | # Check for GNU $ac_path_GREP |
3470 | case `"$ac_path_GREP" --version 2>&1` in | |
3471 | *GNU*) | |
3472 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3473 | *) | |
3474 | ac_count=0 | |
ec6a6fbe | 3475 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3476 | while : |
3477 | do | |
3478 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3479 | mv "conftest.tmp" "conftest.in" | |
3480 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3481 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3482 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3483 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3484 | ac_count=`expr $ac_count + 1` | |
3485 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3486 | # Best one so far, save it but keep looking for a better one | |
3487 | ac_cv_path_GREP="$ac_path_GREP" | |
3488 | ac_path_GREP_max=$ac_count | |
3489 | fi | |
3490 | # 10*(2^10) chars as input seems more than enough | |
3491 | test $ac_count -gt 10 && break | |
3492 | done | |
3493 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3494 | esac | |
3495 | ||
ec6a6fbe AK |
3496 | $ac_path_GREP_found && break 3 |
3497 | done | |
d0191583 | 3498 | done |
ad6254c5 | 3499 | done |
7a197a62 | 3500 | IFS=$as_save_IFS |
ec6a6fbe AK |
3501 | if test -z "$ac_cv_path_GREP"; then |
3502 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3503 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3504 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3505 | fi |
80992638 | 3506 | else |
d0191583 | 3507 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3508 | fi |
8106cdd5 | 3509 | |
80992638 | 3510 | fi |
ec6a6fbe AK |
3511 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3512 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3513 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3514 | |
d0191583 | 3515 | |
ec6a6fbe AK |
3516 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3517 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3518 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3519 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3520 | else |
d0191583 JM |
3521 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3522 | then ac_cv_path_EGREP="$GREP -E" | |
3523 | else | |
ec6a6fbe | 3524 | if test -z "$EGREP"; then |
d0191583 | 3525 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3526 | # Loop through the user's path and test for each of PROGNAME-LIST |
3527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3528 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3529 | do |
3530 | IFS=$as_save_IFS | |
3531 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3532 | for ac_prog in egrep; do |
ec6a6fbe AK |
3533 | for ac_exec_ext in '' $ac_executable_extensions; do |
3534 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3535 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3536 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3537 | # Check for GNU $ac_path_EGREP |
3538 | case `"$ac_path_EGREP" --version 2>&1` in | |
3539 | *GNU*) | |
3540 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3541 | *) | |
3542 | ac_count=0 | |
ec6a6fbe | 3543 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3544 | while : |
3545 | do | |
3546 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3547 | mv "conftest.tmp" "conftest.in" | |
3548 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3549 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3550 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3551 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3552 | ac_count=`expr $ac_count + 1` | |
3553 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3554 | # Best one so far, save it but keep looking for a better one | |
3555 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3556 | ac_path_EGREP_max=$ac_count | |
3557 | fi | |
3558 | # 10*(2^10) chars as input seems more than enough | |
3559 | test $ac_count -gt 10 && break | |
3560 | done | |
3561 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3562 | esac |
8a2fc586 | 3563 | |
ec6a6fbe AK |
3564 | $ac_path_EGREP_found && break 3 |
3565 | done | |
d0191583 | 3566 | done |
8a2fc586 | 3567 | done |
7a197a62 | 3568 | IFS=$as_save_IFS |
ec6a6fbe AK |
3569 | if test -z "$ac_cv_path_EGREP"; then |
3570 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3571 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3572 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3573 | fi |
d0191583 JM |
3574 | else |
3575 | ac_cv_path_EGREP=$EGREP | |
3576 | fi | |
ad6254c5 | 3577 | |
d0191583 JM |
3578 | fi |
3579 | fi | |
ec6a6fbe AK |
3580 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3581 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3582 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3583 | |
3584 | ||
d0191583 | 3585 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3586 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3587 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3588 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3589 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3590 | else |
d0191583 | 3591 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3592 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3593 | /* confdefs.h. */ |
3594 | _ACEOF | |
3595 | cat confdefs.h >>conftest.$ac_ext | |
3596 | cat >>conftest.$ac_ext <<_ACEOF | |
3597 | /* end confdefs.h. */ | |
d0191583 JM |
3598 | #include <sgtty.h> |
3599 | Autoconf TIOCGETP | |
ad6254c5 | 3600 | _ACEOF |
d0191583 JM |
3601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3602 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3603 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3604 | else |
d0191583 | 3605 | ac_cv_prog_gcc_traditional=no |
80992638 | 3606 | fi |
d0191583 | 3607 | rm -f conftest* |
ad6254c5 | 3608 | |
8106cdd5 | 3609 | |
d0191583 JM |
3610 | if test $ac_cv_prog_gcc_traditional = no; then |
3611 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3612 | /* confdefs.h. */ |
3613 | _ACEOF | |
3614 | cat confdefs.h >>conftest.$ac_ext | |
3615 | cat >>conftest.$ac_ext <<_ACEOF | |
3616 | /* end confdefs.h. */ | |
d0191583 JM |
3617 | #include <termio.h> |
3618 | Autoconf TCGETA | |
ad6254c5 | 3619 | _ACEOF |
d0191583 JM |
3620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3621 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3622 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3623 | fi |
d0191583 | 3624 | rm -f conftest* |
795ca3e5 | 3625 | |
d0191583 | 3626 | fi |
795ca3e5 | 3627 | fi |
ec6a6fbe AK |
3628 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3629 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3630 | if test $ac_cv_prog_gcc_traditional = yes; then |
3631 | CC="$CC -traditional" | |
3632 | fi | |
795ca3e5 AK |
3633 | fi |
3634 | ||
d0191583 JM |
3635 | # Find a good install program. We prefer a C program (faster), |
3636 | # so one script is as good as another. But avoid the broken or | |
3637 | # incompatible versions: | |
3638 | # SysV /etc/install, /usr/sbin/install | |
3639 | # SunOS /usr/etc/install | |
3640 | # IRIX /sbin/install | |
3641 | # AIX /bin/install | |
3642 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3643 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3644 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3645 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3646 | # OS/2's system install, which has a completely different semantic | |
3647 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3648 | # Reject install programs that cannot install multiple files. |
3649 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3650 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3651 | if test -z "$INSTALL"; then |
3652 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3653 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3654 | else |
d0191583 JM |
3655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3656 | for as_dir in $PATH | |
3657 | do | |
3658 | IFS=$as_save_IFS | |
3659 | test -z "$as_dir" && as_dir=. | |
3660 | # Account for people who put trailing slashes in PATH elements. | |
3661 | case $as_dir/ in | |
3662 | ./ | .// | /cC/* | \ | |
3663 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3664 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3665 | /usr/ucb/* ) ;; | |
3666 | *) | |
3667 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3668 | # Don't use installbsd from OSF since it installs stuff as root | |
3669 | # by default. | |
3670 | for ac_prog in ginstall scoinst install; do | |
3671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3672 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3673 | if test $ac_prog = install && | |
3674 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3675 | # AIX install. It has an incompatible calling convention. | |
3676 | : | |
3677 | elif test $ac_prog = install && | |
3678 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3679 | # program-specific install script used by HP pwplus--don't use. | |
3680 | : | |
3681 | else | |
ec6a6fbe AK |
3682 | rm -rf conftest.one conftest.two conftest.dir |
3683 | echo one > conftest.one | |
3684 | echo two > conftest.two | |
3685 | mkdir conftest.dir | |
3686 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3687 | test -s conftest.one && test -s conftest.two && | |
3688 | test -s conftest.dir/conftest.one && | |
3689 | test -s conftest.dir/conftest.two | |
3690 | then | |
3691 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3692 | break 3 | |
3693 | fi | |
d0191583 JM |
3694 | fi |
3695 | fi | |
3696 | done | |
3697 | done | |
3698 | ;; | |
3699 | esac | |
ec6a6fbe | 3700 | |
d0191583 JM |
3701 | done |
3702 | IFS=$as_save_IFS | |
80992638 | 3703 | |
ec6a6fbe | 3704 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3705 | |
3706 | fi | |
3707 | if test "${ac_cv_path_install+set}" = set; then | |
3708 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3709 | else |
d0191583 JM |
3710 | # As a last resort, use the slow shell script. Don't cache a |
3711 | # value for INSTALL within a source directory, because that will | |
3712 | # break other packages using the cache if that directory is | |
3713 | # removed, or if the value is a relative name. | |
3714 | INSTALL=$ac_install_sh | |
7a197a62 | 3715 | fi |
d0191583 | 3716 | fi |
ec6a6fbe AK |
3717 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3718 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3719 | |
d0191583 JM |
3720 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3721 | # It thinks the first close brace ends the variable substitution. | |
3722 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3723 | |
d0191583 | 3724 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3725 | |
d0191583 JM |
3726 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3727 | ||
ec6a6fbe AK |
3728 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3729 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3730 | LN_S=$as_ln_s |
3731 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3732 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3733 | $as_echo "yes" >&6; } | |
d0191583 | 3734 | else |
ec6a6fbe AK |
3735 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3736 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3737 | fi |
d0191583 | 3738 | |
ec6a6fbe AK |
3739 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3740 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3741 | set x ${MAKE-make} | |
3742 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3743 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3744 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3745 | else |
d0191583 JM |
3746 | cat >conftest.make <<\_ACEOF |
3747 | SHELL = /bin/sh | |
3748 | all: | |
3749 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3750 | _ACEOF | |
3751 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3752 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3753 | *@@@%%%=?*=@@@%%%*) | |
3754 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3755 | *) | |
3756 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3757 | esac | |
3758 | rm -f conftest.make | |
ad6254c5 | 3759 | fi |
d0191583 | 3760 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3761 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3762 | $as_echo "yes" >&6; } | |
d0191583 JM |
3763 | SET_MAKE= |
3764 | else | |
ec6a6fbe AK |
3765 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3766 | $as_echo "no" >&6; } | |
d0191583 | 3767 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3768 | fi |
8106cdd5 | 3769 | |
ec6a6fbe AK |
3770 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3771 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3772 | if test -z "$MKDIR_P"; then |
3773 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3774 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3775 | else |
3776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3777 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3778 | do | |
3779 | IFS=$as_save_IFS | |
3780 | test -z "$as_dir" && as_dir=. | |
3781 | for ac_prog in mkdir gmkdir; do | |
3782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3783 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3784 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3785 | 'mkdir (GNU coreutils) '* | \ | |
3786 | 'mkdir (coreutils) '* | \ | |
3787 | 'mkdir (fileutils) '4.1*) | |
3788 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3789 | break 3;; | |
3790 | esac | |
3791 | done | |
3792 | done | |
3793 | done | |
3794 | IFS=$as_save_IFS | |
3795 | ||
3796 | fi | |
3797 | ||
3798 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3799 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3800 | else | |
3801 | # As a last resort, use the slow shell script. Don't cache a | |
3802 | # value for MKDIR_P within a source directory, because that will | |
3803 | # break other packages using the cache if that directory is | |
3804 | # removed, or if the value is a relative name. | |
3805 | test -d ./--version && rmdir ./--version | |
3806 | MKDIR_P="$ac_install_sh -d" | |
3807 | fi | |
3808 | fi | |
ec6a6fbe AK |
3809 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3810 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3811 | |
d0191583 JM |
3812 | if test -n "$ac_tool_prefix"; then |
3813 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3814 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3815 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3816 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3817 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3818 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3819 | else |
3820 | if test -n "$RANLIB"; then | |
3821 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3822 | else | |
3823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3824 | for as_dir in $PATH | |
3825 | do | |
3826 | IFS=$as_save_IFS | |
3827 | test -z "$as_dir" && as_dir=. | |
3828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3830 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3831 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3832 | break 2 |
3833 | fi | |
3834 | done | |
3835 | done | |
3836 | IFS=$as_save_IFS | |
8106cdd5 | 3837 | |
795ca3e5 | 3838 | fi |
d0191583 JM |
3839 | fi |
3840 | RANLIB=$ac_cv_prog_RANLIB | |
3841 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3842 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3843 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3844 | else |
ec6a6fbe AK |
3845 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3846 | $as_echo "no" >&6; } | |
d0191583 JM |
3847 | fi |
3848 | ||
8106cdd5 | 3849 | |
ad6254c5 | 3850 | fi |
d0191583 JM |
3851 | if test -z "$ac_cv_prog_RANLIB"; then |
3852 | ac_ct_RANLIB=$RANLIB | |
3853 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3854 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3855 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3856 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3857 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3858 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3859 | else |
d0191583 JM |
3860 | if test -n "$ac_ct_RANLIB"; then |
3861 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3862 | else | |
3863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3864 | for as_dir in $PATH | |
8106cdd5 | 3865 | do |
d0191583 JM |
3866 | IFS=$as_save_IFS |
3867 | test -z "$as_dir" && as_dir=. | |
3868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3870 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3871 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3872 | break 2 |
3873 | fi | |
3874 | done | |
3875 | done | |
3876 | IFS=$as_save_IFS | |
3877 | ||
3878 | fi | |
3879 | fi | |
3880 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3881 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3882 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3883 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3884 | else |
ec6a6fbe AK |
3885 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3886 | $as_echo "no" >&6; } | |
d0191583 | 3887 | fi |
ad6254c5 | 3888 | |
d0191583 JM |
3889 | if test "x$ac_ct_RANLIB" = x; then |
3890 | RANLIB=":" | |
3891 | else | |
3892 | case $cross_compiling:$ac_tool_warned in | |
3893 | yes:) | |
ec6a6fbe AK |
3894 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3895 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3896 | ac_tool_warned=yes ;; |
3897 | esac | |
3898 | RANLIB=$ac_ct_RANLIB | |
3899 | fi | |
3900 | else | |
3901 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3902 | fi |
7a197a62 | 3903 | |
d0191583 JM |
3904 | # Extract the first word of "cflow", so it can be a program name with args. |
3905 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3906 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3907 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3908 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3909 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3910 | else |
3911 | case $CFLOW_CMD in | |
3912 | [\\/]* | ?:[\\/]*) | |
3913 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3914 | ;; | |
3915 | *) | |
3916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3917 | for as_dir in $PATH | |
3918 | do | |
3919 | IFS=$as_save_IFS | |
3920 | test -z "$as_dir" && as_dir=. | |
3921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3923 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3924 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3925 | break 2 |
3926 | fi | |
3927 | done | |
3928 | done | |
3929 | IFS=$as_save_IFS | |
ad6254c5 | 3930 | |
d0191583 | 3931 | ;; |
7a197a62 | 3932 | esac |
d0191583 JM |
3933 | fi |
3934 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3935 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
3936 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3937 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 3938 | else |
ec6a6fbe AK |
3939 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3940 | $as_echo "no" >&6; } | |
795ca3e5 | 3941 | fi |
7a197a62 | 3942 | |
ad6254c5 | 3943 | |
d0191583 JM |
3944 | # Extract the first word of "cscope", so it can be a program name with args. |
3945 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
3946 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3947 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3948 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 3949 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3950 | else |
3951 | case $CSCOPE_CMD in | |
3952 | [\\/]* | ?:[\\/]*) | |
3953 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3954 | ;; | |
3955 | *) | |
3956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3957 | for as_dir in $PATH | |
3958 | do | |
3959 | IFS=$as_save_IFS | |
3960 | test -z "$as_dir" && as_dir=. | |
3961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3963 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3964 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3965 | break 2 |
3966 | fi | |
795ca3e5 | 3967 | done |
d0191583 JM |
3968 | done |
3969 | IFS=$as_save_IFS | |
795ca3e5 | 3970 | |
d0191583 JM |
3971 | ;; |
3972 | esac | |
ad6254c5 | 3973 | fi |
d0191583 JM |
3974 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3975 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
3976 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3977 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3978 | else |
ec6a6fbe AK |
3979 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3980 | $as_echo "no" >&6; } | |
795ca3e5 | 3981 | fi |
ad6254c5 | 3982 | |
7a197a62 | 3983 | |
ad6254c5 | 3984 | |
d0191583 JM |
3985 | ################################################################################ |
3986 | ||
3987 | ||
3988 | ||
3989 | ||
3990 | ||
3991 | ac_header_dirent=no | |
3992 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
3993 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3994 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3995 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 3996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3997 | $as_echo_n "(cached) " >&6 |
d0191583 | 3998 | else |
ad6254c5 | 3999 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4000 | /* confdefs.h. */ |
4001 | _ACEOF | |
4002 | cat confdefs.h >>conftest.$ac_ext | |
4003 | cat >>conftest.$ac_ext <<_ACEOF | |
4004 | /* end confdefs.h. */ | |
d0191583 JM |
4005 | #include <sys/types.h> |
4006 | #include <$ac_hdr> | |
4007 | ||
4008 | int | |
4009 | main () | |
4010 | { | |
4011 | if ((DIR *) 0) | |
4012 | return 0; | |
4013 | ; | |
4014 | return 0; | |
4015 | } | |
ad6254c5 | 4016 | _ACEOF |
d0191583 JM |
4017 | rm -f conftest.$ac_objext |
4018 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4019 | case "(($ac_try" in |
4020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4021 | *) ac_try_echo=$ac_try;; | |
4022 | esac | |
ec6a6fbe AK |
4023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4024 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4025 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4026 | ac_status=$? |
4027 | grep -v '^ *+' conftest.er1 >conftest.err | |
4028 | rm -f conftest.er1 | |
4029 | cat conftest.err >&5 | |
ec6a6fbe | 4030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4031 | (exit $ac_status); } && { |
4032 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4033 | test ! -s conftest.err |
d0191583 JM |
4034 | } && test -s conftest.$ac_objext; then |
4035 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4036 | else |
ec6a6fbe | 4037 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4038 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4039 | |
d0191583 | 4040 | eval "$as_ac_Header=no" |
795ca3e5 | 4041 | fi |
7a197a62 | 4042 | |
d0191583 | 4043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4044 | fi |
ec6a6fbe AK |
4045 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4046 | $as_echo "$as_val"'` | |
4047 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4048 | $as_echo "$ac_res" >&6; } | |
4049 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4050 | $as_echo "$as_val"'` | |
4051 | if test "x$as_val" = x""yes; then | |
d0191583 | 4052 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4053 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4054 | _ACEOF |
795ca3e5 | 4055 | |
d0191583 JM |
4056 | ac_header_dirent=$ac_hdr; break |
4057 | fi | |
ad6254c5 | 4058 | |
d0191583 JM |
4059 | done |
4060 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4061 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4062 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4063 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4064 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4065 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4066 | else |
d0191583 JM |
4067 | ac_func_search_save_LIBS=$LIBS |
4068 | cat >conftest.$ac_ext <<_ACEOF | |
4069 | /* confdefs.h. */ | |
4070 | _ACEOF | |
4071 | cat confdefs.h >>conftest.$ac_ext | |
4072 | cat >>conftest.$ac_ext <<_ACEOF | |
4073 | /* end confdefs.h. */ | |
ad6254c5 | 4074 | |
d0191583 JM |
4075 | /* Override any GCC internal prototype to avoid an error. |
4076 | Use char because int might match the return type of a GCC | |
4077 | builtin and then its argument prototype would still apply. */ | |
4078 | #ifdef __cplusplus | |
4079 | extern "C" | |
4080 | #endif | |
4081 | char opendir (); | |
4082 | int | |
4083 | main () | |
4084 | { | |
4085 | return opendir (); | |
4086 | ; | |
4087 | return 0; | |
4088 | } | |
4089 | _ACEOF | |
4090 | for ac_lib in '' dir; do | |
4091 | if test -z "$ac_lib"; then | |
4092 | ac_res="none required" | |
4093 | else | |
4094 | ac_res=-l$ac_lib | |
4095 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4096 | fi | |
4097 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4098 | if { (ac_try="$ac_link" | |
4099 | case "(($ac_try" in | |
4100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4101 | *) ac_try_echo=$ac_try;; | |
4102 | esac | |
ec6a6fbe AK |
4103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4104 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4105 | (eval "$ac_link") 2>conftest.er1 |
4106 | ac_status=$? | |
4107 | grep -v '^ *+' conftest.er1 >conftest.err | |
4108 | rm -f conftest.er1 | |
4109 | cat conftest.err >&5 | |
ec6a6fbe | 4110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4111 | (exit $ac_status); } && { |
4112 | test -z "$ac_c_werror_flag" || | |
4113 | test ! -s conftest.err | |
ec6a6fbe AK |
4114 | } && test -s conftest$ac_exeext && { |
4115 | test "$cross_compiling" = yes || | |
4116 | $as_test_x conftest$ac_exeext | |
4117 | }; then | |
d0191583 JM |
4118 | ac_cv_search_opendir=$ac_res |
4119 | else | |
ec6a6fbe | 4120 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4121 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4122 | |
ad6254c5 | 4123 | |
795ca3e5 | 4124 | fi |
ad6254c5 | 4125 | |
ec6a6fbe | 4126 | rm -rf conftest.dSYM |
d0191583 JM |
4127 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4128 | conftest$ac_exeext | |
4129 | if test "${ac_cv_search_opendir+set}" = set; then | |
4130 | break | |
7a197a62 | 4131 | fi |
d0191583 JM |
4132 | done |
4133 | if test "${ac_cv_search_opendir+set}" = set; then | |
4134 | : | |
7a197a62 | 4135 | else |
d0191583 | 4136 | ac_cv_search_opendir=no |
7a197a62 | 4137 | fi |
d0191583 JM |
4138 | rm conftest.$ac_ext |
4139 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4140 | fi |
ec6a6fbe AK |
4141 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4142 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4143 | ac_res=$ac_cv_search_opendir |
4144 | if test "$ac_res" != no; then | |
4145 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4146 | |
d0191583 | 4147 | fi |
7a197a62 | 4148 | |
7a197a62 | 4149 | else |
ec6a6fbe AK |
4150 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4151 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4152 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4153 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4154 | else |
d0191583 JM |
4155 | ac_func_search_save_LIBS=$LIBS |
4156 | cat >conftest.$ac_ext <<_ACEOF | |
4157 | /* confdefs.h. */ | |
4158 | _ACEOF | |
4159 | cat confdefs.h >>conftest.$ac_ext | |
4160 | cat >>conftest.$ac_ext <<_ACEOF | |
4161 | /* end confdefs.h. */ | |
7a197a62 | 4162 | |
d0191583 JM |
4163 | /* Override any GCC internal prototype to avoid an error. |
4164 | Use char because int might match the return type of a GCC | |
4165 | builtin and then its argument prototype would still apply. */ | |
4166 | #ifdef __cplusplus | |
4167 | extern "C" | |
4168 | #endif | |
4169 | char opendir (); | |
4170 | int | |
4171 | main () | |
4172 | { | |
4173 | return opendir (); | |
4174 | ; | |
4175 | return 0; | |
4176 | } | |
4177 | _ACEOF | |
4178 | for ac_lib in '' x; do | |
4179 | if test -z "$ac_lib"; then | |
4180 | ac_res="none required" | |
4181 | else | |
4182 | ac_res=-l$ac_lib | |
4183 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4184 | fi | |
4185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4186 | if { (ac_try="$ac_link" | |
4187 | case "(($ac_try" in | |
4188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4189 | *) ac_try_echo=$ac_try;; | |
4190 | esac | |
ec6a6fbe AK |
4191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4192 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4193 | (eval "$ac_link") 2>conftest.er1 |
4194 | ac_status=$? | |
4195 | grep -v '^ *+' conftest.er1 >conftest.err | |
4196 | rm -f conftest.er1 | |
4197 | cat conftest.err >&5 | |
ec6a6fbe | 4198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4199 | (exit $ac_status); } && { |
4200 | test -z "$ac_c_werror_flag" || | |
4201 | test ! -s conftest.err | |
ec6a6fbe AK |
4202 | } && test -s conftest$ac_exeext && { |
4203 | test "$cross_compiling" = yes || | |
4204 | $as_test_x conftest$ac_exeext | |
4205 | }; then | |
d0191583 JM |
4206 | ac_cv_search_opendir=$ac_res |
4207 | else | |
ec6a6fbe | 4208 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4210 | |
4211 | ||
4212 | fi | |
4213 | ||
ec6a6fbe | 4214 | rm -rf conftest.dSYM |
d0191583 JM |
4215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4216 | conftest$ac_exeext | |
4217 | if test "${ac_cv_search_opendir+set}" = set; then | |
4218 | break | |
7a197a62 | 4219 | fi |
d0191583 JM |
4220 | done |
4221 | if test "${ac_cv_search_opendir+set}" = set; then | |
4222 | : | |
7a197a62 | 4223 | else |
d0191583 | 4224 | ac_cv_search_opendir=no |
7a197a62 | 4225 | fi |
d0191583 JM |
4226 | rm conftest.$ac_ext |
4227 | LIBS=$ac_func_search_save_LIBS | |
4228 | fi | |
ec6a6fbe AK |
4229 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4230 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4231 | ac_res=$ac_cv_search_opendir |
4232 | if test "$ac_res" != no; then | |
4233 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4234 | |
7a197a62 | 4235 | fi |
7a197a62 | 4236 | |
d0191583 | 4237 | fi |
7a197a62 | 4238 | |
ec6a6fbe AK |
4239 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4240 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4241 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4242 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4243 | else |
4244 | cat >conftest.$ac_ext <<_ACEOF | |
4245 | /* confdefs.h. */ | |
4246 | _ACEOF | |
4247 | cat confdefs.h >>conftest.$ac_ext | |
4248 | cat >>conftest.$ac_ext <<_ACEOF | |
4249 | /* end confdefs.h. */ | |
4250 | #include <stdlib.h> | |
4251 | #include <stdarg.h> | |
4252 | #include <string.h> | |
4253 | #include <float.h> | |
4254 | ||
4255 | int | |
4256 | main () | |
4257 | { | |
4258 | ||
4259 | ; | |
4260 | return 0; | |
4261 | } | |
4262 | _ACEOF | |
4263 | rm -f conftest.$ac_objext | |
4264 | if { (ac_try="$ac_compile" | |
4265 | case "(($ac_try" in | |
4266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4267 | *) ac_try_echo=$ac_try;; | |
4268 | esac | |
ec6a6fbe AK |
4269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4270 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4271 | (eval "$ac_compile") 2>conftest.er1 |
4272 | ac_status=$? | |
4273 | grep -v '^ *+' conftest.er1 >conftest.err | |
4274 | rm -f conftest.er1 | |
4275 | cat conftest.err >&5 | |
ec6a6fbe | 4276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4277 | (exit $ac_status); } && { |
4278 | test -z "$ac_c_werror_flag" || | |
4279 | test ! -s conftest.err | |
4280 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4281 | ac_cv_header_stdc=yes |
4282 | else | |
ec6a6fbe | 4283 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4284 | sed 's/^/| /' conftest.$ac_ext >&5 |
4285 | ||
4286 | ac_cv_header_stdc=no | |
4287 | fi | |
4288 | ||
4289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4290 | ||
4291 | if test $ac_cv_header_stdc = yes; then | |
4292 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4293 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4294 | /* confdefs.h. */ |
4295 | _ACEOF | |
4296 | cat confdefs.h >>conftest.$ac_ext | |
4297 | cat >>conftest.$ac_ext <<_ACEOF | |
4298 | /* end confdefs.h. */ | |
4299 | #include <string.h> | |
8106cdd5 | 4300 | |
ad6254c5 AK |
4301 | _ACEOF |
4302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4303 | $EGREP "memchr" >/dev/null 2>&1; then | |
4304 | : | |
4305 | else | |
4306 | ac_cv_header_stdc=no | |
80992638 | 4307 | fi |
ad6254c5 | 4308 | rm -f conftest* |
795ca3e5 AK |
4309 | |
4310 | fi | |
4311 | ||
ad6254c5 AK |
4312 | if test $ac_cv_header_stdc = yes; then |
4313 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4314 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4315 | /* confdefs.h. */ |
4316 | _ACEOF | |
4317 | cat confdefs.h >>conftest.$ac_ext | |
4318 | cat >>conftest.$ac_ext <<_ACEOF | |
4319 | /* end confdefs.h. */ | |
80992638 | 4320 | #include <stdlib.h> |
ad6254c5 AK |
4321 | |
4322 | _ACEOF | |
80992638 | 4323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4324 | $EGREP "free" >/dev/null 2>&1; then |
4325 | : | |
795ca3e5 | 4326 | else |
ad6254c5 | 4327 | ac_cv_header_stdc=no |
795ca3e5 | 4328 | fi |
80992638 | 4329 | rm -f conftest* |
8106cdd5 | 4330 | |
795ca3e5 AK |
4331 | fi |
4332 | ||
ad6254c5 AK |
4333 | if test $ac_cv_header_stdc = yes; then |
4334 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4335 | if test "$cross_compiling" = yes; then | |
4336 | : | |
795ca3e5 | 4337 | else |
ad6254c5 | 4338 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4339 | /* confdefs.h. */ |
4340 | _ACEOF | |
4341 | cat confdefs.h >>conftest.$ac_ext | |
4342 | cat >>conftest.$ac_ext <<_ACEOF | |
4343 | /* end confdefs.h. */ | |
4344 | #include <ctype.h> | |
7a197a62 | 4345 | #include <stdlib.h> |
ad6254c5 AK |
4346 | #if ((' ' & 0x0FF) == 0x020) |
4347 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4348 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4349 | #else | |
4350 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4351 | (('a' <= (c) && (c) <= 'i') \ |
4352 | || ('j' <= (c) && (c) <= 'r') \ | |
4353 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4354 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4355 | #endif |
ad6254c5 AK |
4356 | |
4357 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4358 | int | |
4359 | main () | |
4360 | { | |
4361 | int i; | |
4362 | for (i = 0; i < 256; i++) | |
4363 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4364 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4365 | return 2; |
4366 | return 0; | |
ad6254c5 AK |
4367 | } |
4368 | _ACEOF | |
4369 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4370 | if { (ac_try="$ac_link" |
4371 | case "(($ac_try" in | |
4372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4373 | *) ac_try_echo=$ac_try;; | |
4374 | esac | |
ec6a6fbe AK |
4375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4376 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4377 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4378 | ac_status=$? |
ec6a6fbe | 4379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4381 | { (case "(($ac_try" in |
4382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4383 | *) ac_try_echo=$ac_try;; | |
4384 | esac | |
ec6a6fbe AK |
4385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4386 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4387 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4388 | ac_status=$? |
ec6a6fbe | 4389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4390 | (exit $ac_status); }; }; then |
4391 | : | |
795ca3e5 | 4392 | else |
ec6a6fbe AK |
4393 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4394 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4395 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4396 | |
ad6254c5 AK |
4397 | ( exit $ac_status ) |
4398 | ac_cv_header_stdc=no | |
80992638 | 4399 | fi |
ec6a6fbe | 4400 | rm -rf conftest.dSYM |
7a197a62 | 4401 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4402 | fi |
7a197a62 AK |
4403 | |
4404 | ||
ad6254c5 AK |
4405 | fi |
4406 | fi | |
ec6a6fbe AK |
4407 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4408 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4409 | if test $ac_cv_header_stdc = yes; then |
4410 | ||
4411 | cat >>confdefs.h <<\_ACEOF | |
4412 | #define STDC_HEADERS 1 | |
4413 | _ACEOF | |
795ca3e5 AK |
4414 | |
4415 | fi | |
4416 | ||
ec6a6fbe AK |
4417 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4418 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4419 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4420 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4421 | else |
ad6254c5 | 4422 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4423 | /* confdefs.h. */ |
4424 | _ACEOF | |
4425 | cat confdefs.h >>conftest.$ac_ext | |
4426 | cat >>conftest.$ac_ext <<_ACEOF | |
4427 | /* end confdefs.h. */ | |
80992638 | 4428 | #include <sys/types.h> |
ad6254c5 AK |
4429 | #include <sys/wait.h> |
4430 | #ifndef WEXITSTATUS | |
7a197a62 | 4431 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4432 | #endif |
4433 | #ifndef WIFEXITED | |
4434 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4435 | #endif | |
4436 | ||
4437 | int | |
4438 | main () | |
4439 | { | |
4440 | int s; | |
4441 | wait (&s); | |
4442 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4443 | ; | |
4444 | return 0; | |
4445 | } | |
4446 | _ACEOF | |
4447 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4448 | if { (ac_try="$ac_compile" |
4449 | case "(($ac_try" in | |
4450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4451 | *) ac_try_echo=$ac_try;; | |
4452 | esac | |
ec6a6fbe AK |
4453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4454 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4455 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4456 | ac_status=$? |
8a2fc586 AK |
4457 | grep -v '^ *+' conftest.er1 >conftest.err |
4458 | rm -f conftest.er1 | |
4459 | cat conftest.err >&5 | |
ec6a6fbe | 4460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4461 | (exit $ac_status); } && { |
4462 | test -z "$ac_c_werror_flag" || | |
4463 | test ! -s conftest.err | |
4464 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4465 | ac_cv_header_sys_wait_h=yes |
4466 | else | |
ec6a6fbe | 4467 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4468 | sed 's/^/| /' conftest.$ac_ext >&5 |
4469 | ||
7a197a62 | 4470 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4471 | fi |
7a197a62 AK |
4472 | |
4473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4474 | fi |
ec6a6fbe AK |
4475 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4476 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4477 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4478 | |
ad6254c5 AK |
4479 | cat >>confdefs.h <<\_ACEOF |
4480 | #define HAVE_SYS_WAIT_H 1 | |
4481 | _ACEOF | |
795ca3e5 AK |
4482 | |
4483 | fi | |
4484 | ||
ec6a6fbe AK |
4485 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4486 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4487 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4488 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4489 | else |
ad6254c5 | 4490 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4491 | /* confdefs.h. */ |
4492 | _ACEOF | |
4493 | cat confdefs.h >>conftest.$ac_ext | |
4494 | cat >>conftest.$ac_ext <<_ACEOF | |
4495 | /* end confdefs.h. */ | |
795ca3e5 AK |
4496 | #include <sys/types.h> |
4497 | #include <sys/time.h> | |
4498 | #include <time.h> | |
ad6254c5 AK |
4499 | |
4500 | int | |
4501 | main () | |
4502 | { | |
4503 | if ((struct tm *) 0) | |
4504 | return 0; | |
4505 | ; | |
4506 | return 0; | |
4507 | } | |
4508 | _ACEOF | |
4509 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4510 | if { (ac_try="$ac_compile" |
4511 | case "(($ac_try" in | |
4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4513 | *) ac_try_echo=$ac_try;; | |
4514 | esac | |
ec6a6fbe AK |
4515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4516 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4517 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4518 | ac_status=$? |
8a2fc586 AK |
4519 | grep -v '^ *+' conftest.er1 >conftest.err |
4520 | rm -f conftest.er1 | |
4521 | cat conftest.err >&5 | |
ec6a6fbe | 4522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4523 | (exit $ac_status); } && { |
4524 | test -z "$ac_c_werror_flag" || | |
4525 | test ! -s conftest.err | |
4526 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4527 | ac_cv_header_time=yes |
4528 | else | |
ec6a6fbe | 4529 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4530 | sed 's/^/| /' conftest.$ac_ext >&5 |
4531 | ||
7a197a62 | 4532 | ac_cv_header_time=no |
795ca3e5 | 4533 | fi |
7a197a62 AK |
4534 | |
4535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4536 | fi |
ec6a6fbe AK |
4537 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4538 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4539 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4540 | |
4541 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4542 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4543 | _ACEOF |
b896caa1 | 4544 | |
8106cdd5 | 4545 | fi |
b896caa1 | 4546 | |
b896caa1 | 4547 | |
d0191583 JM |
4548 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4549 | ||
4550 | ||
4551 | ||
4552 | ||
4553 | ||
4554 | ||
4555 | ||
4556 | ||
4557 | ||
4558 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4559 | inttypes.h stdint.h unistd.h | |
4560 | do | |
ec6a6fbe AK |
4561 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4562 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4563 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4564 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4565 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4566 | else |
4567 | cat >conftest.$ac_ext <<_ACEOF | |
4568 | /* confdefs.h. */ | |
4569 | _ACEOF | |
4570 | cat confdefs.h >>conftest.$ac_ext | |
4571 | cat >>conftest.$ac_ext <<_ACEOF | |
4572 | /* end confdefs.h. */ | |
4573 | $ac_includes_default | |
4574 | ||
4575 | #include <$ac_header> | |
4576 | _ACEOF | |
4577 | rm -f conftest.$ac_objext | |
4578 | if { (ac_try="$ac_compile" | |
4579 | case "(($ac_try" in | |
4580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4581 | *) ac_try_echo=$ac_try;; | |
4582 | esac | |
ec6a6fbe AK |
4583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4584 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4585 | (eval "$ac_compile") 2>conftest.er1 |
4586 | ac_status=$? | |
4587 | grep -v '^ *+' conftest.er1 >conftest.err | |
4588 | rm -f conftest.er1 | |
4589 | cat conftest.err >&5 | |
ec6a6fbe | 4590 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4591 | (exit $ac_status); } && { |
4592 | test -z "$ac_c_werror_flag" || | |
4593 | test ! -s conftest.err | |
4594 | } && test -s conftest.$ac_objext; then | |
4595 | eval "$as_ac_Header=yes" | |
4596 | else | |
ec6a6fbe | 4597 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4598 | sed 's/^/| /' conftest.$ac_ext >&5 |
4599 | ||
4600 | eval "$as_ac_Header=no" | |
4601 | fi | |
4602 | ||
4603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4604 | fi | |
ec6a6fbe AK |
4605 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4606 | $as_echo "$as_val"'` | |
4607 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4608 | $as_echo "$ac_res" >&6; } | |
4609 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4610 | $as_echo "$as_val"'` | |
4611 | if test "x$as_val" = x""yes; then | |
d0191583 | 4612 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4613 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4614 | _ACEOF |
4615 | ||
4616 | fi | |
4617 | ||
4618 | done | |
4619 | ||
b896caa1 | 4620 | |
b896caa1 AK |
4621 | |
4622 | ||
795ca3e5 | 4623 | |
8106cdd5 | 4624 | |
80992638 | 4625 | |
795ca3e5 | 4626 | |
a38df97f | 4627 | |
80992638 | 4628 | |
d0191583 JM |
4629 | |
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4635 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4636 | do |
ec6a6fbe | 4637 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4639 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4640 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4641 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4642 | $as_echo_n "(cached) " >&6 |
d0191583 | 4643 | fi |
ec6a6fbe AK |
4644 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4645 | $as_echo "$as_val"'` | |
4646 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4647 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4648 | else |
d0191583 | 4649 | # Is the header compilable? |
ec6a6fbe AK |
4650 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4651 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4652 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4653 | /* confdefs.h. */ |
4654 | _ACEOF | |
4655 | cat confdefs.h >>conftest.$ac_ext | |
4656 | cat >>conftest.$ac_ext <<_ACEOF | |
4657 | /* end confdefs.h. */ | |
4658 | $ac_includes_default | |
ad6254c5 AK |
4659 | #include <$ac_header> |
4660 | _ACEOF | |
4661 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4662 | if { (ac_try="$ac_compile" |
4663 | case "(($ac_try" in | |
4664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4665 | *) ac_try_echo=$ac_try;; | |
4666 | esac | |
ec6a6fbe AK |
4667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4668 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4669 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4670 | ac_status=$? |
8a2fc586 AK |
4671 | grep -v '^ *+' conftest.er1 >conftest.err |
4672 | rm -f conftest.er1 | |
4673 | cat conftest.err >&5 | |
ec6a6fbe | 4674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4675 | (exit $ac_status); } && { |
4676 | test -z "$ac_c_werror_flag" || | |
4677 | test ! -s conftest.err | |
4678 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4679 | ac_header_compiler=yes |
ad6254c5 | 4680 | else |
ec6a6fbe | 4681 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4682 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4683 | |
d0191583 | 4684 | ac_header_compiler=no |
ad6254c5 | 4685 | fi |
7a197a62 AK |
4686 | |
4687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4688 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4689 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4690 | |
4691 | # Is the header present? | |
ec6a6fbe AK |
4692 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4693 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4694 | cat >conftest.$ac_ext <<_ACEOF |
4695 | /* confdefs.h. */ | |
4696 | _ACEOF | |
4697 | cat confdefs.h >>conftest.$ac_ext | |
4698 | cat >>conftest.$ac_ext <<_ACEOF | |
4699 | /* end confdefs.h. */ | |
4700 | #include <$ac_header> | |
4701 | _ACEOF | |
4702 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4703 | case "(($ac_try" in | |
4704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4705 | *) ac_try_echo=$ac_try;; | |
4706 | esac | |
ec6a6fbe AK |
4707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4708 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4709 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4710 | ac_status=$? | |
4711 | grep -v '^ *+' conftest.er1 >conftest.err | |
4712 | rm -f conftest.er1 | |
4713 | cat conftest.err >&5 | |
ec6a6fbe | 4714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4715 | (exit $ac_status); } >/dev/null && { |
4716 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4717 | test ! -s conftest.err | |
4718 | }; then | |
4719 | ac_header_preproc=yes | |
4720 | else | |
ec6a6fbe | 4721 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4722 | sed 's/^/| /' conftest.$ac_ext >&5 |
4723 | ||
4724 | ac_header_preproc=no | |
4725 | fi | |
4726 | ||
4727 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4728 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4729 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4730 | |
4731 | # So? What about this header? | |
4732 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4733 | yes:no: ) | |
ec6a6fbe AK |
4734 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4735 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4736 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4737 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4738 | ac_header_preproc=yes |
4739 | ;; | |
4740 | no:yes:* ) | |
ec6a6fbe AK |
4741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4742 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4744 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4745 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4746 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4747 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4748 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4749 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4750 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4751 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4752 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4753 | |
4754 | ;; | |
4755 | esac | |
ec6a6fbe AK |
4756 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4757 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4759 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4760 | else |
4761 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4762 | fi |
ec6a6fbe AK |
4763 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4764 | $as_echo "$as_val"'` | |
4765 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4766 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4767 | |
4768 | fi | |
ec6a6fbe AK |
4769 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4770 | $as_echo "$as_val"'` | |
4771 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4772 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4773 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4774 | _ACEOF |
a38df97f | 4775 | |
d0191583 | 4776 | else |
ec6a6fbe AK |
4777 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4778 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4779 | { (exit 1); exit 1; }; } |
80992638 AK |
4780 | fi |
4781 | ||
ad6254c5 AK |
4782 | done |
4783 | ||
7d1552c9 | 4784 | |
d0191583 JM |
4785 | case "$host_os" in |
4786 | linux*) | |
7d1552c9 | 4787 | |
80992638 | 4788 | |
5a52dca9 | 4789 | |
d0191583 | 4790 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4791 | do |
ec6a6fbe | 4792 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4793 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4794 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4795 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4796 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4797 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4798 | fi |
ec6a6fbe AK |
4799 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4800 | $as_echo "$as_val"'` | |
4801 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4802 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4803 | else |
4804 | # Is the header compilable? | |
ec6a6fbe AK |
4805 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4806 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4807 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4808 | /* confdefs.h. */ |
4809 | _ACEOF | |
4810 | cat confdefs.h >>conftest.$ac_ext | |
4811 | cat >>conftest.$ac_ext <<_ACEOF | |
4812 | /* end confdefs.h. */ | |
4813 | $ac_includes_default | |
4814 | #include <$ac_header> | |
4815 | _ACEOF | |
4816 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4817 | if { (ac_try="$ac_compile" |
4818 | case "(($ac_try" in | |
4819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4820 | *) ac_try_echo=$ac_try;; | |
4821 | esac | |
ec6a6fbe AK |
4822 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4823 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4824 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4825 | ac_status=$? |
8a2fc586 AK |
4826 | grep -v '^ *+' conftest.er1 >conftest.err |
4827 | rm -f conftest.er1 | |
4828 | cat conftest.err >&5 | |
ec6a6fbe | 4829 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4830 | (exit $ac_status); } && { |
4831 | test -z "$ac_c_werror_flag" || | |
4832 | test ! -s conftest.err | |
4833 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4834 | ac_header_compiler=yes |
4835 | else | |
ec6a6fbe | 4836 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4837 | sed 's/^/| /' conftest.$ac_ext >&5 |
4838 | ||
4839 | ac_header_compiler=no | |
4840 | fi | |
4841 | ||
4842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4843 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4844 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4845 | |
4846 | # Is the header present? | |
ec6a6fbe AK |
4847 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4848 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4849 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4850 | /* confdefs.h. */ |
4851 | _ACEOF | |
4852 | cat confdefs.h >>conftest.$ac_ext | |
4853 | cat >>conftest.$ac_ext <<_ACEOF | |
4854 | /* end confdefs.h. */ | |
4855 | #include <$ac_header> | |
4856 | _ACEOF | |
7a197a62 AK |
4857 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4858 | case "(($ac_try" in | |
4859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4860 | *) ac_try_echo=$ac_try;; | |
4861 | esac | |
ec6a6fbe AK |
4862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4863 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4864 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4865 | ac_status=$? |
4866 | grep -v '^ *+' conftest.er1 >conftest.err | |
4867 | rm -f conftest.er1 | |
4868 | cat conftest.err >&5 | |
ec6a6fbe | 4869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4870 | (exit $ac_status); } >/dev/null && { |
4871 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4872 | test ! -s conftest.err | |
4873 | }; then | |
ad6254c5 AK |
4874 | ac_header_preproc=yes |
4875 | else | |
ec6a6fbe | 4876 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4877 | sed 's/^/| /' conftest.$ac_ext >&5 |
4878 | ||
4879 | ac_header_preproc=no | |
4880 | fi | |
7a197a62 | 4881 | |
ad6254c5 | 4882 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4883 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4884 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4885 | |
4886 | # So? What about this header? | |
8a2fc586 AK |
4887 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4888 | yes:no: ) | |
ec6a6fbe AK |
4889 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4890 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4891 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4892 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4893 | ac_header_preproc=yes |
ad6254c5 | 4894 | ;; |
8a2fc586 | 4895 | no:yes:* ) |
ec6a6fbe AK |
4896 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4897 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4898 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4899 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4901 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4902 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4903 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4904 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4905 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4906 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4907 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4908 | |
ad6254c5 AK |
4909 | ;; |
4910 | esac | |
ec6a6fbe AK |
4911 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4912 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4914 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4915 | else |
8a2fc586 | 4916 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4917 | fi |
ec6a6fbe AK |
4918 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4919 | $as_echo "$as_val"'` | |
4920 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4921 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4922 | |
4923 | fi | |
ec6a6fbe AK |
4924 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4925 | $as_echo "$as_val"'` | |
4926 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4927 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4928 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4929 | _ACEOF |
b896caa1 | 4930 | |
d8ac0fbc | 4931 | else |
ec6a6fbe AK |
4932 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4933 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4934 | { (exit 1); exit 1; }; } |
80992638 AK |
4935 | fi |
4936 | ||
ad6254c5 | 4937 | done |
d0191583 JM |
4938 | ;; |
4939 | darwin*) | |
d8ac0fbc | 4940 | |
d8ac0fbc | 4941 | |
d0191583 | 4942 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4943 | do |
ec6a6fbe | 4944 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4945 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4946 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4947 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4948 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4949 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4950 | fi |
ec6a6fbe AK |
4951 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4952 | $as_echo "$as_val"'` | |
4953 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4954 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4955 | else |
4956 | # Is the header compilable? | |
ec6a6fbe AK |
4957 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4958 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4959 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4960 | /* confdefs.h. */ |
4961 | _ACEOF | |
4962 | cat confdefs.h >>conftest.$ac_ext | |
4963 | cat >>conftest.$ac_ext <<_ACEOF | |
4964 | /* end confdefs.h. */ | |
4965 | $ac_includes_default | |
4966 | #include <$ac_header> | |
4967 | _ACEOF | |
4968 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4969 | if { (ac_try="$ac_compile" |
4970 | case "(($ac_try" in | |
4971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4972 | *) ac_try_echo=$ac_try;; | |
4973 | esac | |
ec6a6fbe AK |
4974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4975 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4976 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4977 | ac_status=$? |
8a2fc586 AK |
4978 | grep -v '^ *+' conftest.er1 >conftest.err |
4979 | rm -f conftest.er1 | |
4980 | cat conftest.err >&5 | |
ec6a6fbe | 4981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4982 | (exit $ac_status); } && { |
4983 | test -z "$ac_c_werror_flag" || | |
4984 | test ! -s conftest.err | |
4985 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4986 | ac_header_compiler=yes |
4987 | else | |
ec6a6fbe | 4988 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4989 | sed 's/^/| /' conftest.$ac_ext >&5 |
4990 | ||
7a197a62 | 4991 | ac_header_compiler=no |
ad6254c5 | 4992 | fi |
7a197a62 AK |
4993 | |
4994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4995 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4996 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4997 | |
4998 | # Is the header present? | |
ec6a6fbe AK |
4999 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5000 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5001 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5002 | /* confdefs.h. */ |
5003 | _ACEOF | |
5004 | cat confdefs.h >>conftest.$ac_ext | |
5005 | cat >>conftest.$ac_ext <<_ACEOF | |
5006 | /* end confdefs.h. */ | |
5007 | #include <$ac_header> | |
5008 | _ACEOF | |
7a197a62 AK |
5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5010 | case "(($ac_try" in | |
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5012 | *) ac_try_echo=$ac_try;; | |
5013 | esac | |
ec6a6fbe AK |
5014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5015 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5016 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5017 | ac_status=$? |
5018 | grep -v '^ *+' conftest.er1 >conftest.err | |
5019 | rm -f conftest.er1 | |
5020 | cat conftest.err >&5 | |
ec6a6fbe | 5021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5022 | (exit $ac_status); } >/dev/null && { |
5023 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5024 | test ! -s conftest.err | |
5025 | }; then | |
ad6254c5 AK |
5026 | ac_header_preproc=yes |
5027 | else | |
ec6a6fbe | 5028 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5029 | sed 's/^/| /' conftest.$ac_ext >&5 |
5030 | ||
5031 | ac_header_preproc=no | |
5032 | fi | |
7a197a62 | 5033 | |
ad6254c5 | 5034 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5035 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5036 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5037 | |
5038 | # So? What about this header? | |
8a2fc586 AK |
5039 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5040 | yes:no: ) | |
ec6a6fbe AK |
5041 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5042 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5043 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5044 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5045 | ac_header_preproc=yes |
ad6254c5 | 5046 | ;; |
8a2fc586 | 5047 | no:yes:* ) |
ec6a6fbe AK |
5048 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5049 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5050 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5051 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5052 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5053 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5054 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5055 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5056 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5057 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5058 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5059 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5060 | |
ad6254c5 AK |
5061 | ;; |
5062 | esac | |
ec6a6fbe AK |
5063 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5064 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5065 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5066 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5067 | else |
8a2fc586 | 5068 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5069 | fi |
ec6a6fbe AK |
5070 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5071 | $as_echo "$as_val"'` | |
5072 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5073 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5074 | |
5075 | fi | |
ec6a6fbe AK |
5076 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5077 | $as_echo "$as_val"'` | |
5078 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5079 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5080 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5081 | _ACEOF |
4922197a | 5082 | |
4922197a | 5083 | else |
ec6a6fbe AK |
5084 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5085 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5086 | { (exit 1); exit 1; }; } |
80992638 AK |
5087 | fi |
5088 | ||
ad6254c5 | 5089 | done |
d0191583 JM |
5090 | ;; |
5091 | esac | |
4922197a | 5092 | |
4922197a | 5093 | |
4922197a | 5094 | |
ad6254c5 AK |
5095 | |
5096 | ||
d0191583 JM |
5097 | |
5098 | ||
5099 | ||
5100 | ||
5101 | ||
5102 | ||
5103 | ||
5104 | ||
5105 | ||
5106 | ||
5107 | ||
5108 | ||
5109 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5110 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5111 | sys/types.h unistd.h | |
ad6254c5 | 5112 | do |
ec6a6fbe | 5113 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5114 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5115 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5116 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5117 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5118 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5119 | fi |
ec6a6fbe AK |
5120 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5121 | $as_echo "$as_val"'` | |
5122 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5123 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5124 | else |
ad6254c5 | 5125 | # Is the header compilable? |
ec6a6fbe AK |
5126 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5127 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5128 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5129 | /* confdefs.h. */ |
5130 | _ACEOF | |
5131 | cat confdefs.h >>conftest.$ac_ext | |
5132 | cat >>conftest.$ac_ext <<_ACEOF | |
5133 | /* end confdefs.h. */ | |
5134 | $ac_includes_default | |
5135 | #include <$ac_header> | |
5136 | _ACEOF | |
5137 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5138 | if { (ac_try="$ac_compile" |
5139 | case "(($ac_try" in | |
5140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5141 | *) ac_try_echo=$ac_try;; | |
5142 | esac | |
ec6a6fbe AK |
5143 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5144 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5145 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5146 | ac_status=$? |
8a2fc586 AK |
5147 | grep -v '^ *+' conftest.er1 >conftest.err |
5148 | rm -f conftest.er1 | |
5149 | cat conftest.err >&5 | |
ec6a6fbe | 5150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5151 | (exit $ac_status); } && { |
5152 | test -z "$ac_c_werror_flag" || | |
5153 | test ! -s conftest.err | |
5154 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5155 | ac_header_compiler=yes |
5156 | else | |
ec6a6fbe | 5157 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5158 | sed 's/^/| /' conftest.$ac_ext >&5 |
5159 | ||
7a197a62 | 5160 | ac_header_compiler=no |
ad6254c5 | 5161 | fi |
7a197a62 AK |
5162 | |
5163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5164 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5165 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5166 | |
5167 | # Is the header present? | |
ec6a6fbe AK |
5168 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5169 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5170 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5171 | /* confdefs.h. */ |
5172 | _ACEOF | |
5173 | cat confdefs.h >>conftest.$ac_ext | |
5174 | cat >>conftest.$ac_ext <<_ACEOF | |
5175 | /* end confdefs.h. */ | |
5176 | #include <$ac_header> | |
5177 | _ACEOF | |
7a197a62 AK |
5178 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5179 | case "(($ac_try" in | |
5180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5181 | *) ac_try_echo=$ac_try;; | |
5182 | esac | |
ec6a6fbe AK |
5183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5184 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5185 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5186 | ac_status=$? |
5187 | grep -v '^ *+' conftest.er1 >conftest.err | |
5188 | rm -f conftest.er1 | |
5189 | cat conftest.err >&5 | |
ec6a6fbe | 5190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5191 | (exit $ac_status); } >/dev/null && { |
5192 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5193 | test ! -s conftest.err | |
5194 | }; then | |
ad6254c5 AK |
5195 | ac_header_preproc=yes |
5196 | else | |
ec6a6fbe | 5197 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5198 | sed 's/^/| /' conftest.$ac_ext >&5 |
5199 | ||
5200 | ac_header_preproc=no | |
5201 | fi | |
7a197a62 | 5202 | |
ad6254c5 | 5203 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5204 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5205 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5206 | |
5207 | # So? What about this header? | |
8a2fc586 AK |
5208 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5209 | yes:no: ) | |
ec6a6fbe AK |
5210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5211 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5212 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5213 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5214 | ac_header_preproc=yes |
ad6254c5 | 5215 | ;; |
8a2fc586 | 5216 | no:yes:* ) |
ec6a6fbe AK |
5217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5218 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5219 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5220 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5221 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5222 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5223 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5224 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5225 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5226 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5227 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5228 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5229 | |
ad6254c5 AK |
5230 | ;; |
5231 | esac | |
ec6a6fbe AK |
5232 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5233 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5234 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5235 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5236 | else |
8a2fc586 | 5237 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5238 | fi |
ec6a6fbe AK |
5239 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5240 | $as_echo "$as_val"'` | |
5241 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5242 | $as_echo "$ac_res" >&6; } | |
80992638 | 5243 | |
ad6254c5 | 5244 | fi |
ec6a6fbe AK |
5245 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5246 | $as_echo "$as_val"'` | |
5247 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5248 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5249 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5250 | _ACEOF |
795ca3e5 | 5251 | |
795ca3e5 | 5252 | else |
ec6a6fbe AK |
5253 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5254 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5255 | { (exit 1); exit 1; }; } |
80992638 AK |
5256 | fi |
5257 | ||
ad6254c5 | 5258 | done |
ad6254c5 | 5259 | |
795ca3e5 | 5260 | |
d0191583 JM |
5261 | |
5262 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5263 | do |
ec6a6fbe | 5264 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5265 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5266 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5267 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5269 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5270 | fi |
ec6a6fbe AK |
5271 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5272 | $as_echo "$as_val"'` | |
5273 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5274 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5275 | else |
5276 | # Is the header compilable? | |
ec6a6fbe AK |
5277 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5278 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5279 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5280 | /* confdefs.h. */ |
5281 | _ACEOF | |
5282 | cat confdefs.h >>conftest.$ac_ext | |
5283 | cat >>conftest.$ac_ext <<_ACEOF | |
5284 | /* end confdefs.h. */ | |
5285 | $ac_includes_default | |
5286 | #include <$ac_header> | |
5287 | _ACEOF | |
5288 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5289 | if { (ac_try="$ac_compile" |
5290 | case "(($ac_try" in | |
5291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5292 | *) ac_try_echo=$ac_try;; | |
5293 | esac | |
ec6a6fbe AK |
5294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5295 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5296 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5297 | ac_status=$? |
8a2fc586 AK |
5298 | grep -v '^ *+' conftest.er1 >conftest.err |
5299 | rm -f conftest.er1 | |
5300 | cat conftest.err >&5 | |
ec6a6fbe | 5301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5302 | (exit $ac_status); } && { |
5303 | test -z "$ac_c_werror_flag" || | |
5304 | test ! -s conftest.err | |
5305 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5306 | ac_header_compiler=yes |
5307 | else | |
ec6a6fbe | 5308 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5309 | sed 's/^/| /' conftest.$ac_ext >&5 |
5310 | ||
7a197a62 | 5311 | ac_header_compiler=no |
ad6254c5 | 5312 | fi |
7a197a62 AK |
5313 | |
5314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5315 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5316 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5317 | |
5318 | # Is the header present? | |
ec6a6fbe AK |
5319 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5320 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5321 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5322 | /* confdefs.h. */ |
5323 | _ACEOF | |
5324 | cat confdefs.h >>conftest.$ac_ext | |
5325 | cat >>conftest.$ac_ext <<_ACEOF | |
5326 | /* end confdefs.h. */ | |
5327 | #include <$ac_header> | |
5328 | _ACEOF | |
7a197a62 AK |
5329 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5330 | case "(($ac_try" in | |
5331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5332 | *) ac_try_echo=$ac_try;; | |
5333 | esac | |
ec6a6fbe AK |
5334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5335 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5336 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5337 | ac_status=$? |
5338 | grep -v '^ *+' conftest.er1 >conftest.err | |
5339 | rm -f conftest.er1 | |
5340 | cat conftest.err >&5 | |
ec6a6fbe | 5341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5342 | (exit $ac_status); } >/dev/null && { |
5343 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5344 | test ! -s conftest.err | |
5345 | }; then | |
ad6254c5 AK |
5346 | ac_header_preproc=yes |
5347 | else | |
ec6a6fbe | 5348 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5349 | sed 's/^/| /' conftest.$ac_ext >&5 |
5350 | ||
5351 | ac_header_preproc=no | |
5352 | fi | |
7a197a62 | 5353 | |
ad6254c5 | 5354 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5355 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5356 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5357 | |
5358 | # So? What about this header? | |
8a2fc586 AK |
5359 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5360 | yes:no: ) | |
ec6a6fbe AK |
5361 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5362 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5363 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5364 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5365 | ac_header_preproc=yes |
ad6254c5 | 5366 | ;; |
8a2fc586 | 5367 | no:yes:* ) |
ec6a6fbe AK |
5368 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5369 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5370 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5371 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5372 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5373 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5374 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5375 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5376 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5377 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5378 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5379 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5380 | |
ad6254c5 AK |
5381 | ;; |
5382 | esac | |
ec6a6fbe AK |
5383 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5384 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5386 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5387 | else |
8a2fc586 | 5388 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5389 | fi |
ec6a6fbe AK |
5390 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5391 | $as_echo "$as_val"'` | |
5392 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5393 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5394 | |
ad6254c5 | 5395 | fi |
ec6a6fbe AK |
5396 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5397 | $as_echo "$as_val"'` | |
5398 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5399 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5400 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5401 | _ACEOF |
5402 | ||
80992638 AK |
5403 | fi |
5404 | ||
ad6254c5 | 5405 | done |
d0191583 | 5406 | |
d3c8211f | 5407 | |
80992638 | 5408 | ################################################################################ |
ec6a6fbe AK |
5409 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5410 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5411 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5412 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5413 | else |
ad6254c5 | 5414 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5415 | /* confdefs.h. */ |
5416 | _ACEOF | |
5417 | cat confdefs.h >>conftest.$ac_ext | |
5418 | cat >>conftest.$ac_ext <<_ACEOF | |
5419 | /* end confdefs.h. */ | |
5420 | ||
5421 | int | |
5422 | main () | |
5423 | { | |
5424 | /* FIXME: Include the comments suggested by Paul. */ | |
5425 | #ifndef __cplusplus | |
5426 | /* Ultrix mips cc rejects this. */ | |
5427 | typedef int charset[2]; | |
25fbec5b | 5428 | const charset cs; |
ad6254c5 | 5429 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5430 | char const *const *pcpcc; |
5431 | char **ppc; | |
ad6254c5 AK |
5432 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5433 | struct point {int x, y;}; | |
5434 | static struct point const zero = {0,0}; | |
5435 | /* AIX XL C 1.02.0.0 rejects this. | |
5436 | It does not let you subtract one const X* pointer from another in | |
5437 | an arm of an if-expression whose if-part is not a constant | |
5438 | expression */ | |
5439 | const char *g = "string"; | |
25fbec5b | 5440 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5441 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5442 | ++pcpcc; |
5443 | ppc = (char**) pcpcc; | |
5444 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5445 | { /* SCO 3.2v4 cc rejects this. */ |
5446 | char *t; | |
5447 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5448 | ||
5449 | *t++ = 0; | |
7a197a62 | 5450 | if (s) return 0; |
ad6254c5 AK |
5451 | } |
5452 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5453 | int x[] = {25, 17}; | |
5454 | const int *foo = &x[0]; | |
5455 | ++foo; | |
5456 | } | |
5457 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5458 | typedef const int *iptr; | |
5459 | iptr p = 0; | |
5460 | ++p; | |
5461 | } | |
5462 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5463 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5464 | struct s { int j; const int *ap[3]; }; | |
5465 | struct s *b; b->j = 5; | |
5466 | } | |
5467 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5468 | const int foo = 10; | |
7a197a62 | 5469 | if (!foo) return 0; |
ad6254c5 | 5470 | } |
25fbec5b | 5471 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5472 | #endif |
5473 | ||
5474 | ; | |
5475 | return 0; | |
5476 | } | |
5477 | _ACEOF | |
5478 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5479 | if { (ac_try="$ac_compile" |
5480 | case "(($ac_try" in | |
5481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5482 | *) ac_try_echo=$ac_try;; | |
5483 | esac | |
ec6a6fbe AK |
5484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5485 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5486 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5487 | ac_status=$? |
8a2fc586 AK |
5488 | grep -v '^ *+' conftest.er1 >conftest.err |
5489 | rm -f conftest.er1 | |
5490 | cat conftest.err >&5 | |
ec6a6fbe | 5491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5492 | (exit $ac_status); } && { |
5493 | test -z "$ac_c_werror_flag" || | |
5494 | test ! -s conftest.err | |
5495 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5496 | ac_cv_c_const=yes |
5497 | else | |
ec6a6fbe | 5498 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5499 | sed 's/^/| /' conftest.$ac_ext >&5 |
5500 | ||
7a197a62 | 5501 | ac_cv_c_const=no |
ad6254c5 | 5502 | fi |
7a197a62 AK |
5503 | |
5504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5505 | fi |
ec6a6fbe AK |
5506 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5507 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5508 | if test $ac_cv_c_const = no; then |
80992638 | 5509 | |
ad6254c5 | 5510 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5511 | #define const /**/ |
ad6254c5 | 5512 | _ACEOF |
80992638 | 5513 | |
d3c8211f | 5514 | fi |
d3c8211f | 5515 | |
ec6a6fbe AK |
5516 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5517 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5518 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5519 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5520 | else |
ad6254c5 AK |
5521 | ac_cv_c_inline=no |
5522 | for ac_kw in inline __inline__ __inline; do | |
5523 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5524 | /* confdefs.h. */ |
5525 | _ACEOF | |
5526 | cat confdefs.h >>conftest.$ac_ext | |
5527 | cat >>conftest.$ac_ext <<_ACEOF | |
5528 | /* end confdefs.h. */ | |
5529 | #ifndef __cplusplus | |
5530 | typedef int foo_t; | |
5531 | static $ac_kw foo_t static_foo () {return 0; } | |
5532 | $ac_kw foo_t foo () {return 0; } | |
5533 | #endif | |
80992638 | 5534 | |
ad6254c5 AK |
5535 | _ACEOF |
5536 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5537 | if { (ac_try="$ac_compile" |
5538 | case "(($ac_try" in | |
5539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5540 | *) ac_try_echo=$ac_try;; | |
5541 | esac | |
ec6a6fbe AK |
5542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5543 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5544 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5545 | ac_status=$? |
8a2fc586 AK |
5546 | grep -v '^ *+' conftest.er1 >conftest.err |
5547 | rm -f conftest.er1 | |
5548 | cat conftest.err >&5 | |
ec6a6fbe | 5549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5550 | (exit $ac_status); } && { |
5551 | test -z "$ac_c_werror_flag" || | |
5552 | test ! -s conftest.err | |
5553 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5554 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5555 | else |
ec6a6fbe | 5556 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5557 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5558 | |
7a197a62 | 5559 | |
8ce0cbda | 5560 | fi |
7a197a62 AK |
5561 | |
5562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5563 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5564 | done |
8ce0cbda | 5565 | |
8ce0cbda | 5566 | fi |
ec6a6fbe AK |
5567 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5568 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5569 | |
5570 | ||
ad6254c5 AK |
5571 | case $ac_cv_c_inline in |
5572 | inline | yes) ;; | |
8a2fc586 AK |
5573 | *) |
5574 | case $ac_cv_c_inline in | |
5575 | no) ac_val=;; | |
5576 | *) ac_val=$ac_cv_c_inline;; | |
5577 | esac | |
5578 | cat >>confdefs.h <<_ACEOF | |
5579 | #ifndef __cplusplus | |
5580 | #define inline $ac_val | |
5581 | #endif | |
c1c065a3 | 5582 | _ACEOF |
d0191583 JM |
5583 | ;; |
5584 | esac | |
5585 | ||
ec6a6fbe AK |
5586 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5587 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5588 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5589 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5590 | else |
5591 | cat >conftest.$ac_ext <<_ACEOF | |
5592 | /* confdefs.h. */ | |
5593 | _ACEOF | |
5594 | cat confdefs.h >>conftest.$ac_ext | |
5595 | cat >>conftest.$ac_ext <<_ACEOF | |
5596 | /* end confdefs.h. */ | |
5597 | $ac_includes_default | |
5598 | int | |
5599 | main () | |
5600 | { | |
5601 | static struct stat ac_aggr; | |
5602 | if (ac_aggr.st_rdev) | |
5603 | return 0; | |
5604 | ; | |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
5608 | rm -f conftest.$ac_objext | |
5609 | if { (ac_try="$ac_compile" | |
5610 | case "(($ac_try" in | |
5611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5612 | *) ac_try_echo=$ac_try;; | |
5613 | esac | |
ec6a6fbe AK |
5614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5615 | $as_echo "$ac_try_echo") >&5 | |
5616 | (eval "$ac_compile") 2>conftest.er1 | |
5617 | ac_status=$? | |
5618 | grep -v '^ *+' conftest.er1 >conftest.err | |
5619 | rm -f conftest.er1 | |
5620 | cat conftest.err >&5 | |
5621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5622 | (exit $ac_status); } && { | |
5623 | test -z "$ac_c_werror_flag" || | |
5624 | test ! -s conftest.err | |
5625 | } && test -s conftest.$ac_objext; then | |
5626 | ac_cv_member_struct_stat_st_rdev=yes | |
5627 | else | |
5628 | $as_echo "$as_me: failed program was:" >&5 | |
5629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5630 | ||
5631 | cat >conftest.$ac_ext <<_ACEOF | |
5632 | /* confdefs.h. */ | |
5633 | _ACEOF | |
5634 | cat confdefs.h >>conftest.$ac_ext | |
5635 | cat >>conftest.$ac_ext <<_ACEOF | |
5636 | /* end confdefs.h. */ | |
5637 | $ac_includes_default | |
5638 | int | |
5639 | main () | |
5640 | { | |
5641 | static struct stat ac_aggr; | |
5642 | if (sizeof ac_aggr.st_rdev) | |
5643 | return 0; | |
5644 | ; | |
5645 | return 0; | |
5646 | } | |
5647 | _ACEOF | |
5648 | rm -f conftest.$ac_objext | |
5649 | if { (ac_try="$ac_compile" | |
5650 | case "(($ac_try" in | |
5651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5652 | *) ac_try_echo=$ac_try;; | |
5653 | esac | |
5654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5655 | $as_echo "$ac_try_echo") >&5 | |
5656 | (eval "$ac_compile") 2>conftest.er1 | |
5657 | ac_status=$? | |
5658 | grep -v '^ *+' conftest.er1 >conftest.err | |
5659 | rm -f conftest.er1 | |
5660 | cat conftest.err >&5 | |
5661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5662 | (exit $ac_status); } && { | |
5663 | test -z "$ac_c_werror_flag" || | |
5664 | test ! -s conftest.err | |
5665 | } && test -s conftest.$ac_objext; then | |
5666 | ac_cv_member_struct_stat_st_rdev=yes | |
5667 | else | |
5668 | $as_echo "$as_me: failed program was:" >&5 | |
5669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5670 | ||
5671 | ac_cv_member_struct_stat_st_rdev=no | |
5672 | fi | |
5673 | ||
5674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5675 | fi | |
5676 | ||
5677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5678 | fi | |
5679 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5680 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5681 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5682 | ||
5683 | cat >>confdefs.h <<_ACEOF | |
5684 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5685 | _ACEOF | |
5686 | ||
5687 | ||
5688 | fi | |
5689 | ||
5690 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5691 | $as_echo_n "checking for off_t... " >&6; } | |
5692 | if test "${ac_cv_type_off_t+set}" = set; then | |
5693 | $as_echo_n "(cached) " >&6 | |
5694 | else | |
5695 | ac_cv_type_off_t=no | |
5696 | cat >conftest.$ac_ext <<_ACEOF | |
5697 | /* confdefs.h. */ | |
5698 | _ACEOF | |
5699 | cat confdefs.h >>conftest.$ac_ext | |
5700 | cat >>conftest.$ac_ext <<_ACEOF | |
5701 | /* end confdefs.h. */ | |
5702 | $ac_includes_default | |
5703 | int | |
5704 | main () | |
5705 | { | |
5706 | if (sizeof (off_t)) | |
5707 | return 0; | |
5708 | ; | |
5709 | return 0; | |
5710 | } | |
5711 | _ACEOF | |
5712 | rm -f conftest.$ac_objext | |
5713 | if { (ac_try="$ac_compile" | |
5714 | case "(($ac_try" in | |
5715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5716 | *) ac_try_echo=$ac_try;; | |
5717 | esac | |
5718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5719 | $as_echo "$ac_try_echo") >&5 | |
5720 | (eval "$ac_compile") 2>conftest.er1 | |
5721 | ac_status=$? | |
5722 | grep -v '^ *+' conftest.er1 >conftest.err | |
5723 | rm -f conftest.er1 | |
5724 | cat conftest.err >&5 | |
5725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5726 | (exit $ac_status); } && { | |
5727 | test -z "$ac_c_werror_flag" || | |
5728 | test ! -s conftest.err | |
5729 | } && test -s conftest.$ac_objext; then | |
5730 | cat >conftest.$ac_ext <<_ACEOF | |
5731 | /* confdefs.h. */ | |
5732 | _ACEOF | |
5733 | cat confdefs.h >>conftest.$ac_ext | |
5734 | cat >>conftest.$ac_ext <<_ACEOF | |
5735 | /* end confdefs.h. */ | |
5736 | $ac_includes_default | |
5737 | int | |
5738 | main () | |
5739 | { | |
5740 | if (sizeof ((off_t))) | |
5741 | return 0; | |
5742 | ; | |
5743 | return 0; | |
5744 | } | |
5745 | _ACEOF | |
5746 | rm -f conftest.$ac_objext | |
5747 | if { (ac_try="$ac_compile" | |
5748 | case "(($ac_try" in | |
5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5750 | *) ac_try_echo=$ac_try;; | |
5751 | esac | |
5752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5753 | $as_echo "$ac_try_echo") >&5 | |
5754 | (eval "$ac_compile") 2>conftest.er1 | |
5755 | ac_status=$? | |
5756 | grep -v '^ *+' conftest.er1 >conftest.err | |
5757 | rm -f conftest.er1 | |
5758 | cat conftest.err >&5 | |
5759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5760 | (exit $ac_status); } && { | |
5761 | test -z "$ac_c_werror_flag" || | |
5762 | test ! -s conftest.err | |
5763 | } && test -s conftest.$ac_objext; then | |
5764 | : | |
5765 | else | |
5766 | $as_echo "$as_me: failed program was:" >&5 | |
5767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5768 | ||
5769 | ac_cv_type_off_t=yes | |
5770 | fi | |
5771 | ||
5772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5773 | else | |
5774 | $as_echo "$as_me: failed program was:" >&5 | |
5775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5776 | ||
5777 | ||
5778 | fi | |
5779 | ||
5780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5781 | fi | |
5782 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5783 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5784 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5785 | : | |
5786 | else | |
5787 | ||
5788 | cat >>confdefs.h <<_ACEOF | |
5789 | #define off_t long int | |
5790 | _ACEOF | |
5791 | ||
5792 | fi | |
5793 | ||
5794 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5795 | $as_echo_n "checking for pid_t... " >&6; } | |
5796 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5797 | $as_echo_n "(cached) " >&6 | |
5798 | else | |
5799 | ac_cv_type_pid_t=no | |
5800 | cat >conftest.$ac_ext <<_ACEOF | |
5801 | /* confdefs.h. */ | |
5802 | _ACEOF | |
5803 | cat confdefs.h >>conftest.$ac_ext | |
5804 | cat >>conftest.$ac_ext <<_ACEOF | |
5805 | /* end confdefs.h. */ | |
5806 | $ac_includes_default | |
5807 | int | |
5808 | main () | |
5809 | { | |
5810 | if (sizeof (pid_t)) | |
5811 | return 0; | |
5812 | ; | |
5813 | return 0; | |
5814 | } | |
5815 | _ACEOF | |
5816 | rm -f conftest.$ac_objext | |
5817 | if { (ac_try="$ac_compile" | |
5818 | case "(($ac_try" in | |
5819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5820 | *) ac_try_echo=$ac_try;; | |
5821 | esac | |
5822 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5823 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5824 | (eval "$ac_compile") 2>conftest.er1 |
5825 | ac_status=$? | |
5826 | grep -v '^ *+' conftest.er1 >conftest.err | |
5827 | rm -f conftest.er1 | |
5828 | cat conftest.err >&5 | |
ec6a6fbe | 5829 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5830 | (exit $ac_status); } && { |
5831 | test -z "$ac_c_werror_flag" || | |
5832 | test ! -s conftest.err | |
5833 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5834 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5835 | /* confdefs.h. */ |
5836 | _ACEOF | |
5837 | cat confdefs.h >>conftest.$ac_ext | |
5838 | cat >>conftest.$ac_ext <<_ACEOF | |
5839 | /* end confdefs.h. */ | |
5840 | $ac_includes_default | |
5841 | int | |
5842 | main () | |
5843 | { | |
ec6a6fbe AK |
5844 | if (sizeof ((pid_t))) |
5845 | return 0; | |
d0191583 JM |
5846 | ; |
5847 | return 0; | |
5848 | } | |
5849 | _ACEOF | |
5850 | rm -f conftest.$ac_objext | |
5851 | if { (ac_try="$ac_compile" | |
5852 | case "(($ac_try" in | |
5853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5854 | *) ac_try_echo=$ac_try;; | |
5855 | esac | |
ec6a6fbe AK |
5856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5857 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5858 | (eval "$ac_compile") 2>conftest.er1 |
5859 | ac_status=$? | |
5860 | grep -v '^ *+' conftest.er1 >conftest.err | |
5861 | rm -f conftest.er1 | |
5862 | cat conftest.err >&5 | |
ec6a6fbe | 5863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5864 | (exit $ac_status); } && { |
5865 | test -z "$ac_c_werror_flag" || | |
5866 | test ! -s conftest.err | |
5867 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5868 | : |
d0191583 | 5869 | else |
ec6a6fbe | 5870 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 |
5872 | ||
ec6a6fbe | 5873 | ac_cv_type_pid_t=yes |
d0191583 JM |
5874 | fi |
5875 | ||
5876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5877 | else |
5878 | $as_echo "$as_me: failed program was:" >&5 | |
5879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5880 | ||
5881 | ||
d0191583 JM |
5882 | fi |
5883 | ||
5884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5885 | fi | |
ec6a6fbe AK |
5886 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5887 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5888 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5889 | : | |
5890 | else | |
d0191583 JM |
5891 | |
5892 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5893 | #define pid_t int |
d0191583 JM |
5894 | _ACEOF |
5895 | ||
d0191583 | 5896 | fi |
8ce0cbda | 5897 | |
ec6a6fbe AK |
5898 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5899 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5900 | if test "${ac_cv_type_signal+set}" = set; then | |
5901 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5902 | else |
b145d876 ZK |
5903 | cat >conftest.$ac_ext <<_ACEOF |
5904 | /* confdefs.h. */ | |
5905 | _ACEOF | |
5906 | cat confdefs.h >>conftest.$ac_ext | |
5907 | cat >>conftest.$ac_ext <<_ACEOF | |
5908 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5909 | #include <sys/types.h> |
5910 | #include <signal.h> | |
5911 | ||
b145d876 ZK |
5912 | int |
5913 | main () | |
5914 | { | |
ec6a6fbe | 5915 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5916 | ; |
5917 | return 0; | |
5918 | } | |
5919 | _ACEOF | |
5920 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5921 | if { (ac_try="$ac_compile" |
5922 | case "(($ac_try" in | |
5923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5924 | *) ac_try_echo=$ac_try;; | |
5925 | esac | |
ec6a6fbe AK |
5926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5927 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5928 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5929 | ac_status=$? |
8a2fc586 AK |
5930 | grep -v '^ *+' conftest.er1 >conftest.err |
5931 | rm -f conftest.er1 | |
5932 | cat conftest.err >&5 | |
ec6a6fbe | 5933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5934 | (exit $ac_status); } && { |
5935 | test -z "$ac_c_werror_flag" || | |
5936 | test ! -s conftest.err | |
5937 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5938 | ac_cv_type_signal=int |
b145d876 | 5939 | else |
ec6a6fbe | 5940 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5941 | sed 's/^/| /' conftest.$ac_ext >&5 |
5942 | ||
ec6a6fbe | 5943 | ac_cv_type_signal=void |
ad6254c5 | 5944 | fi |
b145d876 ZK |
5945 | |
5946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5947 | fi | |
ec6a6fbe AK |
5948 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5949 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 5950 | |
ad6254c5 | 5951 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5952 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 5953 | _ACEOF |
199e490e | 5954 | |
b896caa1 | 5955 | |
ec6a6fbe AK |
5956 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5957 | $as_echo_n "checking for size_t... " >&6; } | |
5958 | if test "${ac_cv_type_size_t+set}" = set; then | |
5959 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5960 | else |
ec6a6fbe AK |
5961 | ac_cv_type_size_t=no |
5962 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
5963 | /* confdefs.h. */ |
5964 | _ACEOF | |
5965 | cat confdefs.h >>conftest.$ac_ext | |
5966 | cat >>conftest.$ac_ext <<_ACEOF | |
5967 | /* end confdefs.h. */ | |
5968 | $ac_includes_default | |
5969 | int | |
5970 | main () | |
5971 | { | |
ec6a6fbe AK |
5972 | if (sizeof (size_t)) |
5973 | return 0; | |
ad6254c5 AK |
5974 | ; |
5975 | return 0; | |
5976 | } | |
5977 | _ACEOF | |
5978 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5979 | if { (ac_try="$ac_compile" |
5980 | case "(($ac_try" in | |
5981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5982 | *) ac_try_echo=$ac_try;; | |
5983 | esac | |
ec6a6fbe AK |
5984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5985 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5986 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5987 | ac_status=$? |
8a2fc586 AK |
5988 | grep -v '^ *+' conftest.er1 >conftest.err |
5989 | rm -f conftest.er1 | |
5990 | cat conftest.err >&5 | |
ec6a6fbe | 5991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5992 | (exit $ac_status); } && { |
5993 | test -z "$ac_c_werror_flag" || | |
5994 | test ! -s conftest.err | |
5995 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
5996 | cat >conftest.$ac_ext <<_ACEOF |
5997 | /* confdefs.h. */ | |
5998 | _ACEOF | |
5999 | cat confdefs.h >>conftest.$ac_ext | |
6000 | cat >>conftest.$ac_ext <<_ACEOF | |
6001 | /* end confdefs.h. */ | |
ec6a6fbe | 6002 | $ac_includes_default |
d0191583 JM |
6003 | int |
6004 | main () | |
6005 | { | |
ec6a6fbe AK |
6006 | if (sizeof ((size_t))) |
6007 | return 0; | |
d0191583 JM |
6008 | ; |
6009 | return 0; | |
6010 | } | |
6011 | _ACEOF | |
6012 | rm -f conftest.$ac_objext | |
6013 | if { (ac_try="$ac_compile" | |
6014 | case "(($ac_try" in | |
6015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6016 | *) ac_try_echo=$ac_try;; | |
6017 | esac | |
ec6a6fbe AK |
6018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6019 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6020 | (eval "$ac_compile") 2>conftest.er1 |
6021 | ac_status=$? | |
6022 | grep -v '^ *+' conftest.er1 >conftest.err | |
6023 | rm -f conftest.er1 | |
6024 | cat conftest.err >&5 | |
ec6a6fbe | 6025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6026 | (exit $ac_status); } && { |
6027 | test -z "$ac_c_werror_flag" || | |
6028 | test ! -s conftest.err | |
6029 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6030 | : |
d0191583 | 6031 | else |
ec6a6fbe | 6032 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6033 | sed 's/^/| /' conftest.$ac_ext >&5 |
6034 | ||
ec6a6fbe AK |
6035 | ac_cv_type_size_t=yes |
6036 | fi | |
6037 | ||
6038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6039 | else | |
6040 | $as_echo "$as_me: failed program was:" >&5 | |
6041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6042 | ||
6043 | ||
d0191583 JM |
6044 | fi |
6045 | ||
6046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6047 | fi | |
ec6a6fbe AK |
6048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6049 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6050 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6051 | : | |
6052 | else | |
d0191583 JM |
6053 | |
6054 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6055 | #define size_t unsigned int |
d0191583 JM |
6056 | _ACEOF |
6057 | ||
ec6a6fbe | 6058 | fi |
d0191583 | 6059 | |
ec6a6fbe AK |
6060 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6061 | $as_echo_n "checking for mode_t... " >&6; } | |
6062 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6063 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6064 | else |
ec6a6fbe AK |
6065 | ac_cv_type_mode_t=no |
6066 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6067 | /* confdefs.h. */ |
6068 | _ACEOF | |
6069 | cat confdefs.h >>conftest.$ac_ext | |
6070 | cat >>conftest.$ac_ext <<_ACEOF | |
6071 | /* end confdefs.h. */ | |
6072 | $ac_includes_default | |
6073 | int | |
6074 | main () | |
6075 | { | |
ec6a6fbe AK |
6076 | if (sizeof (mode_t)) |
6077 | return 0; | |
ad6254c5 AK |
6078 | ; |
6079 | return 0; | |
6080 | } | |
6081 | _ACEOF | |
6082 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6083 | if { (ac_try="$ac_compile" |
6084 | case "(($ac_try" in | |
6085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6086 | *) ac_try_echo=$ac_try;; | |
6087 | esac | |
ec6a6fbe AK |
6088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6089 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6090 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6091 | ac_status=$? |
8a2fc586 AK |
6092 | grep -v '^ *+' conftest.er1 >conftest.err |
6093 | rm -f conftest.er1 | |
6094 | cat conftest.err >&5 | |
ec6a6fbe | 6095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6096 | (exit $ac_status); } && { |
6097 | test -z "$ac_c_werror_flag" || | |
6098 | test ! -s conftest.err | |
6099 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6100 | cat >conftest.$ac_ext <<_ACEOF |
6101 | /* confdefs.h. */ | |
6102 | _ACEOF | |
6103 | cat confdefs.h >>conftest.$ac_ext | |
6104 | cat >>conftest.$ac_ext <<_ACEOF | |
6105 | /* end confdefs.h. */ | |
6106 | $ac_includes_default | |
6107 | int | |
6108 | main () | |
6109 | { | |
ec6a6fbe AK |
6110 | if (sizeof ((mode_t))) |
6111 | return 0; | |
ad6254c5 AK |
6112 | ; |
6113 | return 0; | |
6114 | } | |
6115 | _ACEOF | |
6116 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6117 | if { (ac_try="$ac_compile" |
6118 | case "(($ac_try" in | |
6119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6120 | *) ac_try_echo=$ac_try;; | |
6121 | esac | |
ec6a6fbe AK |
6122 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6123 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6124 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6125 | ac_status=$? |
8a2fc586 AK |
6126 | grep -v '^ *+' conftest.er1 >conftest.err |
6127 | rm -f conftest.er1 | |
6128 | cat conftest.err >&5 | |
ec6a6fbe | 6129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6130 | (exit $ac_status); } && { |
6131 | test -z "$ac_c_werror_flag" || | |
6132 | test ! -s conftest.err | |
6133 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6134 | : |
6135 | else | |
6136 | $as_echo "$as_me: failed program was:" >&5 | |
6137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6138 | ||
6139 | ac_cv_type_mode_t=yes | |
6140 | fi | |
6141 | ||
6142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6143 | else |
ec6a6fbe | 6144 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6145 | sed 's/^/| /' conftest.$ac_ext >&5 |
6146 | ||
ec6a6fbe | 6147 | |
80992638 | 6148 | fi |
7a197a62 AK |
6149 | |
6150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6151 | fi |
ec6a6fbe AK |
6152 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6153 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6154 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6155 | : |
6156 | else | |
80992638 | 6157 | |
ad6254c5 AK |
6158 | cat >>confdefs.h <<_ACEOF |
6159 | #define mode_t int | |
6160 | _ACEOF | |
6161 | ||
6162 | fi | |
6163 | ||
ec6a6fbe AK |
6164 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6165 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6166 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6167 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6168 | else |
6169 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6170 | /* confdefs.h. */ |
6171 | _ACEOF | |
6172 | cat confdefs.h >>conftest.$ac_ext | |
6173 | cat >>conftest.$ac_ext <<_ACEOF | |
6174 | /* end confdefs.h. */ | |
6175 | $ac_includes_default | |
6176 | int | |
6177 | main () | |
6178 | { | |
6179 | static struct stat ac_aggr; | |
6180 | if (ac_aggr.st_rdev) | |
6181 | return 0; | |
6182 | ; | |
6183 | return 0; | |
6184 | } | |
6185 | _ACEOF | |
6186 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6187 | if { (ac_try="$ac_compile" |
6188 | case "(($ac_try" in | |
6189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6190 | *) ac_try_echo=$ac_try;; | |
6191 | esac | |
ec6a6fbe AK |
6192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6193 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6194 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6195 | ac_status=$? |
8a2fc586 AK |
6196 | grep -v '^ *+' conftest.er1 >conftest.err |
6197 | rm -f conftest.er1 | |
6198 | cat conftest.err >&5 | |
ec6a6fbe | 6199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6200 | (exit $ac_status); } && { |
6201 | test -z "$ac_c_werror_flag" || | |
6202 | test ! -s conftest.err | |
6203 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6204 | ac_cv_member_struct_stat_st_rdev=yes |
6205 | else | |
ec6a6fbe | 6206 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6207 | sed 's/^/| /' conftest.$ac_ext >&5 |
6208 | ||
7a197a62 | 6209 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6210 | /* confdefs.h. */ |
6211 | _ACEOF | |
6212 | cat confdefs.h >>conftest.$ac_ext | |
6213 | cat >>conftest.$ac_ext <<_ACEOF | |
6214 | /* end confdefs.h. */ | |
6215 | $ac_includes_default | |
6216 | int | |
6217 | main () | |
6218 | { | |
6219 | static struct stat ac_aggr; | |
6220 | if (sizeof ac_aggr.st_rdev) | |
6221 | return 0; | |
6222 | ; | |
6223 | return 0; | |
6224 | } | |
6225 | _ACEOF | |
6226 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6227 | if { (ac_try="$ac_compile" |
6228 | case "(($ac_try" in | |
6229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6230 | *) ac_try_echo=$ac_try;; | |
6231 | esac | |
ec6a6fbe AK |
6232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6233 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6234 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6235 | ac_status=$? |
8a2fc586 AK |
6236 | grep -v '^ *+' conftest.er1 >conftest.err |
6237 | rm -f conftest.er1 | |
6238 | cat conftest.err >&5 | |
ec6a6fbe | 6239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6240 | (exit $ac_status); } && { |
6241 | test -z "$ac_c_werror_flag" || | |
6242 | test ! -s conftest.err | |
6243 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6244 | ac_cv_member_struct_stat_st_rdev=yes |
6245 | else | |
ec6a6fbe | 6246 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6247 | sed 's/^/| /' conftest.$ac_ext >&5 |
6248 | ||
7a197a62 | 6249 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6250 | fi |
7a197a62 AK |
6251 | |
6252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6253 | fi |
7a197a62 AK |
6254 | |
6255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6256 | fi |
ec6a6fbe AK |
6257 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6258 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6259 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6260 | |
6261 | cat >>confdefs.h <<_ACEOF | |
6262 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6263 | _ACEOF | |
6264 | ||
6265 | ||
ad6254c5 AK |
6266 | fi |
6267 | ||
ec6a6fbe AK |
6268 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6269 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6270 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6271 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6272 | else |
6273 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6274 | /* confdefs.h. */ |
6275 | _ACEOF | |
6276 | cat confdefs.h >>conftest.$ac_ext | |
6277 | cat >>conftest.$ac_ext <<_ACEOF | |
6278 | /* end confdefs.h. */ | |
6279 | #include <sys/types.h> | |
6280 | #include <time.h> | |
6281 | ||
6282 | int | |
6283 | main () | |
6284 | { | |
25fbec5b AK |
6285 | struct tm tm; |
6286 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6287 | return !p; |
ad6254c5 AK |
6288 | ; |
6289 | return 0; | |
6290 | } | |
6291 | _ACEOF | |
6292 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6293 | if { (ac_try="$ac_compile" |
6294 | case "(($ac_try" in | |
6295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6296 | *) ac_try_echo=$ac_try;; | |
6297 | esac | |
ec6a6fbe AK |
6298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6299 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6300 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6301 | ac_status=$? |
8a2fc586 AK |
6302 | grep -v '^ *+' conftest.er1 >conftest.err |
6303 | rm -f conftest.er1 | |
6304 | cat conftest.err >&5 | |
ec6a6fbe | 6305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6306 | (exit $ac_status); } && { |
6307 | test -z "$ac_c_werror_flag" || | |
6308 | test ! -s conftest.err | |
6309 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6310 | ac_cv_struct_tm=time.h |
6311 | else | |
ec6a6fbe | 6312 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6313 | sed 's/^/| /' conftest.$ac_ext >&5 |
6314 | ||
7a197a62 | 6315 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6316 | fi |
7a197a62 AK |
6317 | |
6318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6319 | fi |
ec6a6fbe AK |
6320 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6321 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6322 | if test $ac_cv_struct_tm = sys/time.h; then |
6323 | ||
6324 | cat >>confdefs.h <<\_ACEOF | |
6325 | #define TM_IN_SYS_TIME 1 | |
6326 | _ACEOF | |
6327 | ||
6328 | fi | |
809fae91 | 6329 | |
795ca3e5 | 6330 | |
80992638 | 6331 | ################################################################################ |
ad6254c5 AK |
6332 | |
6333 | ||
6334 | ||
6335 | ||
6336 | ||
6337 | ||
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
d0191583 JM |
6346 | |
6347 | ||
6348 | ||
6349 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6350 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6351 | uname | |
ad6254c5 | 6352 | do |
ec6a6fbe AK |
6353 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6354 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6355 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6356 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6357 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6358 | else |
ad6254c5 | 6359 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6360 | /* confdefs.h. */ |
6361 | _ACEOF | |
6362 | cat confdefs.h >>conftest.$ac_ext | |
6363 | cat >>conftest.$ac_ext <<_ACEOF | |
6364 | /* end confdefs.h. */ | |
8a2fc586 AK |
6365 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6366 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6367 | #define $ac_func innocuous_$ac_func | |
6368 | ||
ad6254c5 AK |
6369 | /* System header to define __stub macros and hopefully few prototypes, |
6370 | which can conflict with char $ac_func (); below. | |
6371 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6372 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6373 | |
ad6254c5 AK |
6374 | #ifdef __STDC__ |
6375 | # include <limits.h> | |
6376 | #else | |
6377 | # include <assert.h> | |
6378 | #endif | |
8a2fc586 AK |
6379 | |
6380 | #undef $ac_func | |
6381 | ||
7a197a62 AK |
6382 | /* Override any GCC internal prototype to avoid an error. |
6383 | Use char because int might match the return type of a GCC | |
6384 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6385 | #ifdef __cplusplus |
6386 | extern "C" | |
ad6254c5 | 6387 | #endif |
ad6254c5 AK |
6388 | char $ac_func (); |
6389 | /* The GNU C library defines this for functions which it implements | |
6390 | to always fail with ENOSYS. Some functions are actually named | |
6391 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6392 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6393 | choke me |
ad6254c5 AK |
6394 | #endif |
6395 | ||
6396 | int | |
6397 | main () | |
6398 | { | |
7a197a62 | 6399 | return $ac_func (); |
ad6254c5 AK |
6400 | ; |
6401 | return 0; | |
6402 | } | |
6403 | _ACEOF | |
6404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6405 | if { (ac_try="$ac_link" |
6406 | case "(($ac_try" in | |
6407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6408 | *) ac_try_echo=$ac_try;; | |
6409 | esac | |
ec6a6fbe AK |
6410 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6411 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6412 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6413 | ac_status=$? |
8a2fc586 AK |
6414 | grep -v '^ *+' conftest.er1 >conftest.err |
6415 | rm -f conftest.er1 | |
6416 | cat conftest.err >&5 | |
ec6a6fbe | 6417 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6418 | (exit $ac_status); } && { |
6419 | test -z "$ac_c_werror_flag" || | |
6420 | test ! -s conftest.err | |
ec6a6fbe AK |
6421 | } && test -s conftest$ac_exeext && { |
6422 | test "$cross_compiling" = yes || | |
6423 | $as_test_x conftest$ac_exeext | |
6424 | }; then | |
fc54be10 AK |
6425 | eval "$as_ac_var=yes" |
6426 | else | |
ec6a6fbe | 6427 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6428 | sed 's/^/| /' conftest.$ac_ext >&5 |
6429 | ||
6430 | eval "$as_ac_var=no" | |
6431 | fi | |
6432 | ||
ec6a6fbe | 6433 | rm -rf conftest.dSYM |
25fbec5b | 6434 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6435 | conftest$ac_exeext conftest.$ac_ext |
6436 | fi | |
ec6a6fbe AK |
6437 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6438 | $as_echo "$as_val"'` | |
6439 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6440 | $as_echo "$ac_res" >&6; } | |
6441 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6442 | $as_echo "$as_val"'` | |
6443 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6444 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6445 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6446 | _ACEOF |
6447 | ||
6448 | else | |
ec6a6fbe AK |
6449 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6450 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6451 | { (exit 1); exit 1; }; } |
6452 | fi | |
6453 | done | |
795ca3e5 | 6454 | |
ad6254c5 AK |
6455 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6456 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6457 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6458 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6459 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6460 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6461 | else |
6462 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6463 | /* confdefs.h. */ |
6464 | _ACEOF | |
6465 | cat confdefs.h >>conftest.$ac_ext | |
6466 | cat >>conftest.$ac_ext <<_ACEOF | |
6467 | /* end confdefs.h. */ | |
6468 | #include <alloca.h> | |
6469 | int | |
6470 | main () | |
6471 | { | |
6472 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6473 | if (p) return 0; |
ad6254c5 AK |
6474 | ; |
6475 | return 0; | |
6476 | } | |
6477 | _ACEOF | |
6478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6479 | if { (ac_try="$ac_link" |
6480 | case "(($ac_try" in | |
6481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6482 | *) ac_try_echo=$ac_try;; | |
6483 | esac | |
ec6a6fbe AK |
6484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6485 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6486 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6487 | ac_status=$? |
8a2fc586 AK |
6488 | grep -v '^ *+' conftest.er1 >conftest.err |
6489 | rm -f conftest.er1 | |
6490 | cat conftest.err >&5 | |
ec6a6fbe | 6491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6492 | (exit $ac_status); } && { |
6493 | test -z "$ac_c_werror_flag" || | |
6494 | test ! -s conftest.err | |
ec6a6fbe AK |
6495 | } && test -s conftest$ac_exeext && { |
6496 | test "$cross_compiling" = yes || | |
6497 | $as_test_x conftest$ac_exeext | |
6498 | }; then | |
ad6254c5 AK |
6499 | ac_cv_working_alloca_h=yes |
6500 | else | |
ec6a6fbe | 6501 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6502 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6503 | |
7a197a62 | 6504 | ac_cv_working_alloca_h=no |
ad6254c5 | 6505 | fi |
7a197a62 | 6506 | |
ec6a6fbe | 6507 | rm -rf conftest.dSYM |
25fbec5b | 6508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6509 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6510 | fi |
ec6a6fbe AK |
6511 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6512 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6513 | if test $ac_cv_working_alloca_h = yes; then |
6514 | ||
6515 | cat >>confdefs.h <<\_ACEOF | |
6516 | #define HAVE_ALLOCA_H 1 | |
6517 | _ACEOF | |
6518 | ||
6519 | fi | |
6520 | ||
ec6a6fbe AK |
6521 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6522 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6523 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6524 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6525 | else |
6526 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6527 | /* confdefs.h. */ |
6528 | _ACEOF | |
6529 | cat confdefs.h >>conftest.$ac_ext | |
6530 | cat >>conftest.$ac_ext <<_ACEOF | |
6531 | /* end confdefs.h. */ | |
6532 | #ifdef __GNUC__ | |
6533 | # define alloca __builtin_alloca | |
6534 | #else | |
6535 | # ifdef _MSC_VER | |
6536 | # include <malloc.h> | |
6537 | # define alloca _alloca | |
6538 | # else | |
25fbec5b | 6539 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6540 | # include <alloca.h> |
6541 | # else | |
6542 | # ifdef _AIX | |
6543 | #pragma alloca | |
6544 | # else | |
6545 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6546 | char *alloca (); | |
6547 | # endif | |
6548 | # endif | |
6549 | # endif | |
6550 | # endif | |
6551 | #endif | |
6552 | ||
6553 | int | |
6554 | main () | |
6555 | { | |
6556 | char *p = (char *) alloca (1); | |
7a197a62 | 6557 | if (p) return 0; |
ad6254c5 AK |
6558 | ; |
6559 | return 0; | |
6560 | } | |
6561 | _ACEOF | |
6562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6563 | if { (ac_try="$ac_link" |
6564 | case "(($ac_try" in | |
6565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6566 | *) ac_try_echo=$ac_try;; | |
6567 | esac | |
ec6a6fbe AK |
6568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6569 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6570 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6571 | ac_status=$? |
8a2fc586 AK |
6572 | grep -v '^ *+' conftest.er1 >conftest.err |
6573 | rm -f conftest.er1 | |
6574 | cat conftest.err >&5 | |
ec6a6fbe | 6575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6576 | (exit $ac_status); } && { |
6577 | test -z "$ac_c_werror_flag" || | |
6578 | test ! -s conftest.err | |
ec6a6fbe AK |
6579 | } && test -s conftest$ac_exeext && { |
6580 | test "$cross_compiling" = yes || | |
6581 | $as_test_x conftest$ac_exeext | |
6582 | }; then | |
ad6254c5 AK |
6583 | ac_cv_func_alloca_works=yes |
6584 | else | |
ec6a6fbe | 6585 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6586 | sed 's/^/| /' conftest.$ac_ext >&5 |
6587 | ||
7a197a62 | 6588 | ac_cv_func_alloca_works=no |
ad6254c5 | 6589 | fi |
7a197a62 | 6590 | |
ec6a6fbe | 6591 | rm -rf conftest.dSYM |
25fbec5b | 6592 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6593 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6594 | fi |
ec6a6fbe AK |
6595 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6596 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6597 | |
6598 | if test $ac_cv_func_alloca_works = yes; then | |
6599 | ||
6600 | cat >>confdefs.h <<\_ACEOF | |
6601 | #define HAVE_ALLOCA 1 | |
6602 | _ACEOF | |
6603 | ||
6604 | else | |
6605 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6606 | # that cause trouble. Some versions do not even contain alloca or | |
6607 | # contain a buggy version. If you still want to use their alloca, | |
6608 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6609 | ||
7a197a62 | 6610 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6611 | |
6612 | cat >>confdefs.h <<\_ACEOF | |
6613 | #define C_ALLOCA 1 | |
6614 | _ACEOF | |
6615 | ||
6616 | ||
ec6a6fbe AK |
6617 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6618 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6619 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6620 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6621 | else |
6622 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6623 | /* confdefs.h. */ |
6624 | _ACEOF | |
6625 | cat confdefs.h >>conftest.$ac_ext | |
6626 | cat >>conftest.$ac_ext <<_ACEOF | |
6627 | /* end confdefs.h. */ | |
7a197a62 | 6628 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6629 | webecray |
6630 | #else | |
6631 | wenotbecray | |
6632 | #endif | |
6633 | ||
6634 | _ACEOF | |
795ca3e5 | 6635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6636 | $EGREP "webecray" >/dev/null 2>&1; then |
6637 | ac_cv_os_cray=yes | |
6638 | else | |
6639 | ac_cv_os_cray=no | |
795ca3e5 AK |
6640 | fi |
6641 | rm -f conftest* | |
6642 | ||
795ca3e5 | 6643 | fi |
ec6a6fbe AK |
6644 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6645 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6646 | if test $ac_cv_os_cray = yes; then |
6647 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6648 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6649 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6650 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6651 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6652 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6653 | else |
6654 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6655 | /* confdefs.h. */ |
6656 | _ACEOF | |
6657 | cat confdefs.h >>conftest.$ac_ext | |
6658 | cat >>conftest.$ac_ext <<_ACEOF | |
6659 | /* end confdefs.h. */ | |
8a2fc586 AK |
6660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6662 | #define $ac_func innocuous_$ac_func | |
6663 | ||
ad6254c5 AK |
6664 | /* System header to define __stub macros and hopefully few prototypes, |
6665 | which can conflict with char $ac_func (); below. | |
6666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6667 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6668 | |
ad6254c5 AK |
6669 | #ifdef __STDC__ |
6670 | # include <limits.h> | |
6671 | #else | |
6672 | # include <assert.h> | |
6673 | #endif | |
8a2fc586 AK |
6674 | |
6675 | #undef $ac_func | |
6676 | ||
7a197a62 AK |
6677 | /* Override any GCC internal prototype to avoid an error. |
6678 | Use char because int might match the return type of a GCC | |
6679 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6680 | #ifdef __cplusplus |
6681 | extern "C" | |
ad6254c5 | 6682 | #endif |
ad6254c5 AK |
6683 | char $ac_func (); |
6684 | /* The GNU C library defines this for functions which it implements | |
6685 | to always fail with ENOSYS. Some functions are actually named | |
6686 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6687 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6688 | choke me |
ad6254c5 AK |
6689 | #endif |
6690 | ||
6691 | int | |
6692 | main () | |
6693 | { | |
7a197a62 | 6694 | return $ac_func (); |
ad6254c5 AK |
6695 | ; |
6696 | return 0; | |
6697 | } | |
6698 | _ACEOF | |
6699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6700 | if { (ac_try="$ac_link" |
6701 | case "(($ac_try" in | |
6702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6703 | *) ac_try_echo=$ac_try;; | |
6704 | esac | |
ec6a6fbe AK |
6705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6706 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6707 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6708 | ac_status=$? |
8a2fc586 AK |
6709 | grep -v '^ *+' conftest.er1 >conftest.err |
6710 | rm -f conftest.er1 | |
6711 | cat conftest.err >&5 | |
ec6a6fbe | 6712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6713 | (exit $ac_status); } && { |
6714 | test -z "$ac_c_werror_flag" || | |
6715 | test ! -s conftest.err | |
ec6a6fbe AK |
6716 | } && test -s conftest$ac_exeext && { |
6717 | test "$cross_compiling" = yes || | |
6718 | $as_test_x conftest$ac_exeext | |
6719 | }; then | |
ad6254c5 AK |
6720 | eval "$as_ac_var=yes" |
6721 | else | |
ec6a6fbe | 6722 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6723 | sed 's/^/| /' conftest.$ac_ext >&5 |
6724 | ||
7a197a62 | 6725 | eval "$as_ac_var=no" |
ad6254c5 | 6726 | fi |
7a197a62 | 6727 | |
ec6a6fbe | 6728 | rm -rf conftest.dSYM |
25fbec5b | 6729 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6730 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6731 | fi |
ec6a6fbe AK |
6732 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6733 | $as_echo "$as_val"'` | |
6734 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6735 | $as_echo "$ac_res" >&6; } | |
6736 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6737 | $as_echo "$as_val"'` | |
6738 | if test "x$as_val" = x""yes; then | |
80992638 | 6739 | |
ad6254c5 AK |
6740 | cat >>confdefs.h <<_ACEOF |
6741 | #define CRAY_STACKSEG_END $ac_func | |
6742 | _ACEOF | |
6743 | ||
6744 | break | |
6745 | fi | |
6746 | ||
6747 | done | |
6748 | fi | |
6749 | ||
ec6a6fbe AK |
6750 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6751 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6752 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6753 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6754 | else |
6755 | if test "$cross_compiling" = yes; then | |
6756 | ac_cv_c_stack_direction=0 | |
6757 | else | |
6758 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6759 | /* confdefs.h. */ |
6760 | _ACEOF | |
6761 | cat confdefs.h >>conftest.$ac_ext | |
6762 | cat >>conftest.$ac_ext <<_ACEOF | |
6763 | /* end confdefs.h. */ | |
7a197a62 | 6764 | $ac_includes_default |
ad6254c5 AK |
6765 | int |
6766 | find_stack_direction () | |
6767 | { | |
6768 | static char *addr = 0; | |
6769 | auto char dummy; | |
6770 | if (addr == 0) | |
6771 | { | |
6772 | addr = &dummy; | |
6773 | return find_stack_direction (); | |
6774 | } | |
6775 | else | |
6776 | return (&dummy > addr) ? 1 : -1; | |
6777 | } | |
6778 | ||
6779 | int | |
6780 | main () | |
6781 | { | |
7a197a62 | 6782 | return find_stack_direction () < 0; |
ad6254c5 AK |
6783 | } |
6784 | _ACEOF | |
6785 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6786 | if { (ac_try="$ac_link" |
6787 | case "(($ac_try" in | |
6788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6789 | *) ac_try_echo=$ac_try;; | |
6790 | esac | |
ec6a6fbe AK |
6791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6792 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6793 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6794 | ac_status=$? |
ec6a6fbe | 6795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6796 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6797 | { (case "(($ac_try" in |
6798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6799 | *) ac_try_echo=$ac_try;; | |
6800 | esac | |
ec6a6fbe AK |
6801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6802 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6803 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6804 | ac_status=$? |
ec6a6fbe | 6805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6806 | (exit $ac_status); }; }; then |
6807 | ac_cv_c_stack_direction=1 | |
6808 | else | |
ec6a6fbe AK |
6809 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6810 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6811 | sed 's/^/| /' conftest.$ac_ext >&5 |
6812 | ||
6813 | ( exit $ac_status ) | |
6814 | ac_cv_c_stack_direction=-1 | |
6815 | fi | |
ec6a6fbe | 6816 | rm -rf conftest.dSYM |
7a197a62 | 6817 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6818 | fi |
7a197a62 AK |
6819 | |
6820 | ||
ad6254c5 | 6821 | fi |
ec6a6fbe AK |
6822 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6823 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6824 | |
6825 | cat >>confdefs.h <<_ACEOF | |
6826 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6827 | _ACEOF | |
6828 | ||
6829 | ||
6830 | fi | |
6831 | ||
ec6a6fbe AK |
6832 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6833 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6834 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6835 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6836 | else |
6837 | if test "$cross_compiling" = yes; then | |
6838 | ac_cv_func_closedir_void=yes | |
6839 | else | |
6840 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6841 | /* confdefs.h. */ |
6842 | _ACEOF | |
6843 | cat confdefs.h >>conftest.$ac_ext | |
6844 | cat >>conftest.$ac_ext <<_ACEOF | |
6845 | /* end confdefs.h. */ | |
6846 | $ac_includes_default | |
6847 | #include <$ac_header_dirent> | |
6848 | #ifndef __cplusplus | |
6849 | int closedir (); | |
6850 | #endif | |
6851 | ||
6852 | int | |
6853 | main () | |
6854 | { | |
7a197a62 | 6855 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6856 | ; |
6857 | return 0; | |
6858 | } | |
6859 | _ACEOF | |
6860 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6861 | if { (ac_try="$ac_link" |
6862 | case "(($ac_try" in | |
6863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6864 | *) ac_try_echo=$ac_try;; | |
6865 | esac | |
ec6a6fbe AK |
6866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6867 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6868 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6869 | ac_status=$? |
ec6a6fbe | 6870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6872 | { (case "(($ac_try" in |
6873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6874 | *) ac_try_echo=$ac_try;; | |
6875 | esac | |
ec6a6fbe AK |
6876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6877 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6878 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6879 | ac_status=$? |
ec6a6fbe | 6880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6881 | (exit $ac_status); }; }; then |
6882 | ac_cv_func_closedir_void=no | |
6883 | else | |
ec6a6fbe AK |
6884 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6885 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6886 | sed 's/^/| /' conftest.$ac_ext >&5 |
6887 | ||
6888 | ( exit $ac_status ) | |
6889 | ac_cv_func_closedir_void=yes | |
6890 | fi | |
ec6a6fbe | 6891 | rm -rf conftest.dSYM |
7a197a62 | 6892 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6893 | fi |
7a197a62 AK |
6894 | |
6895 | ||
ad6254c5 | 6896 | fi |
ec6a6fbe AK |
6897 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6898 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6899 | if test $ac_cv_func_closedir_void = yes; then |
6900 | ||
6901 | cat >>confdefs.h <<\_ACEOF | |
6902 | #define CLOSEDIR_VOID 1 | |
6903 | _ACEOF | |
6904 | ||
6905 | fi | |
6906 | ||
6907 | ||
7a197a62 | 6908 | for ac_header in vfork.h |
ad6254c5 | 6909 | do |
ec6a6fbe | 6910 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6911 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6912 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6913 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6915 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6916 | fi |
ec6a6fbe AK |
6917 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6918 | $as_echo "$as_val"'` | |
6919 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6920 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6921 | else |
6922 | # Is the header compilable? | |
ec6a6fbe AK |
6923 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6924 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6925 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6926 | /* confdefs.h. */ |
6927 | _ACEOF | |
6928 | cat confdefs.h >>conftest.$ac_ext | |
6929 | cat >>conftest.$ac_ext <<_ACEOF | |
6930 | /* end confdefs.h. */ | |
6931 | $ac_includes_default | |
6932 | #include <$ac_header> | |
6933 | _ACEOF | |
6934 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6935 | if { (ac_try="$ac_compile" |
6936 | case "(($ac_try" in | |
6937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6938 | *) ac_try_echo=$ac_try;; | |
6939 | esac | |
ec6a6fbe AK |
6940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6941 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6942 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6943 | ac_status=$? |
8a2fc586 AK |
6944 | grep -v '^ *+' conftest.er1 >conftest.err |
6945 | rm -f conftest.er1 | |
6946 | cat conftest.err >&5 | |
ec6a6fbe | 6947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6948 | (exit $ac_status); } && { |
6949 | test -z "$ac_c_werror_flag" || | |
6950 | test ! -s conftest.err | |
6951 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6952 | ac_header_compiler=yes |
6953 | else | |
ec6a6fbe | 6954 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6955 | sed 's/^/| /' conftest.$ac_ext >&5 |
6956 | ||
7a197a62 | 6957 | ac_header_compiler=no |
ad6254c5 | 6958 | fi |
7a197a62 AK |
6959 | |
6960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
6961 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6962 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6963 | |
6964 | # Is the header present? | |
ec6a6fbe AK |
6965 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6966 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6967 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6968 | /* confdefs.h. */ |
6969 | _ACEOF | |
6970 | cat confdefs.h >>conftest.$ac_ext | |
6971 | cat >>conftest.$ac_ext <<_ACEOF | |
6972 | /* end confdefs.h. */ | |
6973 | #include <$ac_header> | |
6974 | _ACEOF | |
7a197a62 AK |
6975 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6976 | case "(($ac_try" in | |
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6978 | *) ac_try_echo=$ac_try;; | |
6979 | esac | |
ec6a6fbe AK |
6980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6981 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6982 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6983 | ac_status=$? |
6984 | grep -v '^ *+' conftest.er1 >conftest.err | |
6985 | rm -f conftest.er1 | |
6986 | cat conftest.err >&5 | |
ec6a6fbe | 6987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6988 | (exit $ac_status); } >/dev/null && { |
6989 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6990 | test ! -s conftest.err | |
6991 | }; then | |
ad6254c5 AK |
6992 | ac_header_preproc=yes |
6993 | else | |
ec6a6fbe | 6994 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6995 | sed 's/^/| /' conftest.$ac_ext >&5 |
6996 | ||
6997 | ac_header_preproc=no | |
6998 | fi | |
7a197a62 | 6999 | |
ad6254c5 | 7000 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7001 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7002 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7003 | |
7004 | # So? What about this header? | |
8a2fc586 AK |
7005 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7006 | yes:no: ) | |
ec6a6fbe AK |
7007 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7008 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7010 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7011 | ac_header_preproc=yes |
ad6254c5 | 7012 | ;; |
8a2fc586 | 7013 | no:yes:* ) |
ec6a6fbe AK |
7014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7015 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7017 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7019 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7021 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7023 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7025 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7026 | |
ad6254c5 AK |
7027 | ;; |
7028 | esac | |
ec6a6fbe AK |
7029 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7030 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7032 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7033 | else |
8a2fc586 | 7034 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7035 | fi |
ec6a6fbe AK |
7036 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7037 | $as_echo "$as_val"'` | |
7038 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7039 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7040 | |
795ca3e5 | 7041 | fi |
ec6a6fbe AK |
7042 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7043 | $as_echo "$as_val"'` | |
7044 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7045 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7046 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7047 | _ACEOF |
7048 | ||
7049 | fi | |
7050 | ||
7051 | done | |
795ca3e5 | 7052 | |
ad6254c5 AK |
7053 | |
7054 | ||
7055 | for ac_func in fork vfork | |
7056 | do | |
ec6a6fbe AK |
7057 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7058 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7059 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7060 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7061 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7062 | else |
ad6254c5 | 7063 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7064 | /* confdefs.h. */ |
7065 | _ACEOF | |
7066 | cat confdefs.h >>conftest.$ac_ext | |
7067 | cat >>conftest.$ac_ext <<_ACEOF | |
7068 | /* end confdefs.h. */ | |
8a2fc586 AK |
7069 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7070 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7071 | #define $ac_func innocuous_$ac_func | |
7072 | ||
ad6254c5 AK |
7073 | /* System header to define __stub macros and hopefully few prototypes, |
7074 | which can conflict with char $ac_func (); below. | |
7075 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7076 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7077 | |
ad6254c5 AK |
7078 | #ifdef __STDC__ |
7079 | # include <limits.h> | |
7080 | #else | |
7081 | # include <assert.h> | |
795ca3e5 | 7082 | #endif |
8a2fc586 AK |
7083 | |
7084 | #undef $ac_func | |
7085 | ||
7a197a62 AK |
7086 | /* Override any GCC internal prototype to avoid an error. |
7087 | Use char because int might match the return type of a GCC | |
7088 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7089 | #ifdef __cplusplus |
ad6254c5 | 7090 | extern "C" |
ad6254c5 | 7091 | #endif |
ad6254c5 AK |
7092 | char $ac_func (); |
7093 | /* The GNU C library defines this for functions which it implements | |
7094 | to always fail with ENOSYS. Some functions are actually named | |
7095 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7096 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7097 | choke me |
795ca3e5 AK |
7098 | #endif |
7099 | ||
ad6254c5 AK |
7100 | int |
7101 | main () | |
7102 | { | |
7a197a62 | 7103 | return $ac_func (); |
ad6254c5 AK |
7104 | ; |
7105 | return 0; | |
7106 | } | |
7107 | _ACEOF | |
7108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7109 | if { (ac_try="$ac_link" |
7110 | case "(($ac_try" in | |
7111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7112 | *) ac_try_echo=$ac_try;; | |
7113 | esac | |
ec6a6fbe AK |
7114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7115 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7116 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7117 | ac_status=$? |
8a2fc586 AK |
7118 | grep -v '^ *+' conftest.er1 >conftest.err |
7119 | rm -f conftest.er1 | |
7120 | cat conftest.err >&5 | |
ec6a6fbe | 7121 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7122 | (exit $ac_status); } && { |
7123 | test -z "$ac_c_werror_flag" || | |
7124 | test ! -s conftest.err | |
ec6a6fbe AK |
7125 | } && test -s conftest$ac_exeext && { |
7126 | test "$cross_compiling" = yes || | |
7127 | $as_test_x conftest$ac_exeext | |
7128 | }; then | |
ad6254c5 | 7129 | eval "$as_ac_var=yes" |
795ca3e5 | 7130 | else |
ec6a6fbe | 7131 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7132 | sed 's/^/| /' conftest.$ac_ext >&5 |
7133 | ||
7a197a62 | 7134 | eval "$as_ac_var=no" |
795ca3e5 | 7135 | fi |
7a197a62 | 7136 | |
ec6a6fbe | 7137 | rm -rf conftest.dSYM |
25fbec5b | 7138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7139 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7140 | fi |
ec6a6fbe AK |
7141 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7142 | $as_echo "$as_val"'` | |
7143 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7144 | $as_echo "$ac_res" >&6; } | |
7145 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7146 | $as_echo "$as_val"'` | |
7147 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7148 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7149 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7150 | _ACEOF |
7151 | ||
7152 | fi | |
7153 | done | |
7154 | ||
7155 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7156 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7157 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7158 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7159 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7160 | else |
7161 | if test "$cross_compiling" = yes; then | |
7162 | ac_cv_func_fork_works=cross | |
7163 | else | |
7164 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7165 | /* confdefs.h. */ |
7166 | _ACEOF | |
7167 | cat confdefs.h >>conftest.$ac_ext | |
7168 | cat >>conftest.$ac_ext <<_ACEOF | |
7169 | /* end confdefs.h. */ | |
7170 | $ac_includes_default | |
7171 | int | |
7172 | main () | |
7173 | { | |
7174 | ||
7175 | /* By Ruediger Kuhlmann. */ | |
7176 | return fork () < 0; | |
7177 | ||
7178 | ; | |
7179 | return 0; | |
7180 | } | |
ad6254c5 AK |
7181 | _ACEOF |
7182 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7183 | if { (ac_try="$ac_link" |
7184 | case "(($ac_try" in | |
7185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7186 | *) ac_try_echo=$ac_try;; | |
7187 | esac | |
ec6a6fbe AK |
7188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7189 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7190 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7191 | ac_status=$? |
ec6a6fbe | 7192 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7193 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7194 | { (case "(($ac_try" in |
7195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7196 | *) ac_try_echo=$ac_try;; | |
7197 | esac | |
ec6a6fbe AK |
7198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7199 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7200 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7201 | ac_status=$? |
ec6a6fbe | 7202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7203 | (exit $ac_status); }; }; then |
7204 | ac_cv_func_fork_works=yes | |
7205 | else | |
ec6a6fbe AK |
7206 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7207 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7208 | sed 's/^/| /' conftest.$ac_ext >&5 |
7209 | ||
7210 | ( exit $ac_status ) | |
7211 | ac_cv_func_fork_works=no | |
7212 | fi | |
ec6a6fbe | 7213 | rm -rf conftest.dSYM |
7a197a62 | 7214 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7215 | fi |
7a197a62 AK |
7216 | |
7217 | ||
ad6254c5 | 7218 | fi |
ec6a6fbe AK |
7219 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7220 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7221 | |
7222 | else | |
7223 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7224 | fi | |
7225 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7226 | case $host in | |
7227 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7228 | # Override, as these systems have only a dummy fork() stub | |
7229 | ac_cv_func_fork_works=no | |
7230 | ;; | |
7231 | *) | |
7232 | ac_cv_func_fork_works=yes | |
7233 | ;; | |
7234 | esac | |
ec6a6fbe AK |
7235 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7236 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7237 | fi |
7238 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7239 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7240 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7241 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7242 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7243 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7244 | else |
7245 | if test "$cross_compiling" = yes; then | |
7246 | ac_cv_func_vfork_works=cross | |
7247 | else | |
7248 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7249 | /* confdefs.h. */ |
7250 | _ACEOF | |
7251 | cat confdefs.h >>conftest.$ac_ext | |
7252 | cat >>conftest.$ac_ext <<_ACEOF | |
7253 | /* end confdefs.h. */ | |
7254 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7255 | $ac_includes_default |
ad6254c5 | 7256 | #include <sys/wait.h> |
25fbec5b | 7257 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7258 | # include <vfork.h> |
7259 | #endif | |
7260 | /* On some sparc systems, changes by the child to local and incoming | |
7261 | argument registers are propagated back to the parent. The compiler | |
7262 | is told about this with #include <vfork.h>, but some compilers | |
7263 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7264 | static variable whose address is put into a register that is | |
7265 | clobbered by the vfork. */ | |
7266 | static void | |
7267 | #ifdef __cplusplus | |
7268 | sparc_address_test (int arg) | |
7269 | # else | |
7270 | sparc_address_test (arg) int arg; | |
7271 | #endif | |
7272 | { | |
7273 | static pid_t child; | |
7274 | if (!child) { | |
7275 | child = vfork (); | |
7276 | if (child < 0) { | |
7277 | perror ("vfork"); | |
7278 | _exit(2); | |
7279 | } | |
7280 | if (!child) { | |
7281 | arg = getpid(); | |
7282 | write(-1, "", 0); | |
7283 | _exit (arg); | |
7284 | } | |
7285 | } | |
7286 | } | |
7287 | ||
7288 | int | |
7289 | main () | |
7290 | { | |
7291 | pid_t parent = getpid (); | |
7292 | pid_t child; | |
7293 | ||
7294 | sparc_address_test (0); | |
7295 | ||
7296 | child = vfork (); | |
7297 | ||
7298 | if (child == 0) { | |
7299 | /* Here is another test for sparc vfork register problems. This | |
7300 | test uses lots of local variables, at least as many local | |
7301 | variables as main has allocated so far including compiler | |
7302 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7303 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7304 | reuse the register of parent for one of the local variables, | |
7305 | since it will think that parent can't possibly be used any more | |
7306 | in this routine. Assigning to the local variable will thus | |
7307 | munge parent in the parent process. */ | |
7308 | pid_t | |
7309 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7310 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7311 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7312 | use the same hardware register for all 8 local variables. */ | |
7313 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7314 | || p != p5 || p != p6 || p != p7) | |
7315 | _exit(1); | |
7316 | ||
7317 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7318 | from child file descriptors. If the child closes a descriptor | |
7319 | before it execs or exits, this munges the parent's descriptor | |
7320 | as well. Test for this by closing stdout in the child. */ | |
7321 | _exit(close(fileno(stdout)) != 0); | |
7322 | } else { | |
7323 | int status; | |
7324 | struct stat st; | |
7325 | ||
7326 | while (wait(&status) != child) | |
7327 | ; | |
7a197a62 | 7328 | return ( |
ad6254c5 AK |
7329 | /* Was there some problem with vforking? */ |
7330 | child < 0 | |
7331 | ||
7332 | /* Did the child fail? (This shouldn't happen.) */ | |
7333 | || status | |
7334 | ||
7335 | /* Did the vfork/compiler bug occur? */ | |
7336 | || parent != getpid() | |
7337 | ||
7338 | /* Did the file descriptor bug occur? */ | |
7339 | || fstat(fileno(stdout), &st) != 0 | |
7340 | ); | |
7341 | } | |
7342 | } | |
7343 | _ACEOF | |
7344 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7345 | if { (ac_try="$ac_link" |
7346 | case "(($ac_try" in | |
7347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7348 | *) ac_try_echo=$ac_try;; | |
7349 | esac | |
ec6a6fbe AK |
7350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7351 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7352 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7353 | ac_status=$? |
ec6a6fbe | 7354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7355 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7356 | { (case "(($ac_try" in |
7357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7358 | *) ac_try_echo=$ac_try;; | |
7359 | esac | |
ec6a6fbe AK |
7360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7361 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7362 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7363 | ac_status=$? |
ec6a6fbe | 7364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7365 | (exit $ac_status); }; }; then |
7366 | ac_cv_func_vfork_works=yes | |
7367 | else | |
ec6a6fbe AK |
7368 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7369 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7370 | sed 's/^/| /' conftest.$ac_ext >&5 |
7371 | ||
7372 | ( exit $ac_status ) | |
7373 | ac_cv_func_vfork_works=no | |
7374 | fi | |
ec6a6fbe | 7375 | rm -rf conftest.dSYM |
7a197a62 | 7376 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7377 | fi |
7a197a62 AK |
7378 | |
7379 | ||
ad6254c5 | 7380 | fi |
ec6a6fbe AK |
7381 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7382 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7383 | |
7384 | fi; | |
7385 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7386 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7387 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7388 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7389 | fi |
7390 | ||
7391 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7392 | ||
7393 | cat >>confdefs.h <<\_ACEOF | |
7394 | #define HAVE_WORKING_VFORK 1 | |
7395 | _ACEOF | |
7396 | ||
7397 | else | |
7398 | ||
7399 | cat >>confdefs.h <<\_ACEOF | |
7400 | #define vfork fork | |
7401 | _ACEOF | |
7402 | ||
7403 | fi | |
7404 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7405 | ||
7406 | cat >>confdefs.h <<\_ACEOF | |
7407 | #define HAVE_WORKING_FORK 1 | |
7408 | _ACEOF | |
7409 | ||
7410 | fi | |
7411 | ||
ec6a6fbe AK |
7412 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7413 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7414 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7415 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7416 | else |
7417 | rm -f conftest.sym conftest.file | |
7418 | echo >conftest.file | |
7419 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7420 | if test "$cross_compiling" = yes; then | |
7421 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7422 | else | |
7423 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7424 | /* confdefs.h. */ |
7425 | _ACEOF | |
7426 | cat confdefs.h >>conftest.$ac_ext | |
7427 | cat >>conftest.$ac_ext <<_ACEOF | |
7428 | /* end confdefs.h. */ | |
7429 | $ac_includes_default | |
7430 | int | |
7431 | main () | |
7432 | { | |
7433 | struct stat sbuf; | |
7434 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7435 | That is better in the sense that it means we will not |
7436 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7437 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7438 | ; |
7439 | return 0; | |
7440 | } | |
7441 | _ACEOF | |
7442 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7443 | if { (ac_try="$ac_link" |
7444 | case "(($ac_try" in | |
7445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7446 | *) ac_try_echo=$ac_try;; | |
7447 | esac | |
ec6a6fbe AK |
7448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7449 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7450 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7451 | ac_status=$? |
ec6a6fbe | 7452 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7454 | { (case "(($ac_try" in |
7455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7456 | *) ac_try_echo=$ac_try;; | |
7457 | esac | |
ec6a6fbe AK |
7458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7459 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7460 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7461 | ac_status=$? |
ec6a6fbe | 7462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7463 | (exit $ac_status); }; }; then |
7464 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7465 | else | |
ec6a6fbe AK |
7466 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7467 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7468 | sed 's/^/| /' conftest.$ac_ext >&5 |
7469 | ||
7470 | ( exit $ac_status ) | |
7471 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7472 | fi | |
ec6a6fbe | 7473 | rm -rf conftest.dSYM |
7a197a62 | 7474 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7475 | fi |
7a197a62 AK |
7476 | |
7477 | ||
ad6254c5 AK |
7478 | else |
7479 | # If the `ln -s' command failed, then we probably don't even | |
7480 | # have an lstat function. | |
7481 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7482 | fi | |
7483 | rm -f conftest.sym conftest.file | |
7484 | ||
7485 | fi | |
ec6a6fbe AK |
7486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7487 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7488 | |
7489 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7490 | ||
7491 | cat >>confdefs.h <<_ACEOF | |
7492 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7493 | _ACEOF | |
7494 | ||
7495 | ||
7496 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7497 | case " $LIBOBJS " in |
8a2fc586 | 7498 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7499 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7500 | ;; | |
8a2fc586 AK |
7501 | esac |
7502 | ||
ad6254c5 AK |
7503 | fi |
7504 | ||
ec6a6fbe AK |
7505 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7506 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7507 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7508 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7509 | else |
7510 | if test "$cross_compiling" = yes; then | |
7511 | ac_cv_func_lstat_empty_string_bug=yes | |
7512 | else | |
7513 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7514 | /* confdefs.h. */ |
7515 | _ACEOF | |
7516 | cat confdefs.h >>conftest.$ac_ext | |
7517 | cat >>conftest.$ac_ext <<_ACEOF | |
7518 | /* end confdefs.h. */ | |
7519 | $ac_includes_default | |
7520 | int | |
7521 | main () | |
7522 | { | |
7523 | struct stat sbuf; | |
7a197a62 | 7524 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7525 | ; |
7526 | return 0; | |
7527 | } | |
7528 | _ACEOF | |
7529 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7530 | if { (ac_try="$ac_link" |
7531 | case "(($ac_try" in | |
7532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7533 | *) ac_try_echo=$ac_try;; | |
7534 | esac | |
ec6a6fbe AK |
7535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7536 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7537 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7538 | ac_status=$? |
ec6a6fbe | 7539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7541 | { (case "(($ac_try" in |
7542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7543 | *) ac_try_echo=$ac_try;; | |
7544 | esac | |
ec6a6fbe AK |
7545 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7546 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7547 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7548 | ac_status=$? |
ec6a6fbe | 7549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7550 | (exit $ac_status); }; }; then |
7a197a62 | 7551 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7552 | else |
ec6a6fbe AK |
7553 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7554 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7555 | sed 's/^/| /' conftest.$ac_ext >&5 |
7556 | ||
7557 | ( exit $ac_status ) | |
7a197a62 | 7558 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7559 | fi |
ec6a6fbe | 7560 | rm -rf conftest.dSYM |
7a197a62 | 7561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7562 | fi |
7a197a62 AK |
7563 | |
7564 | ||
ad6254c5 | 7565 | fi |
ec6a6fbe AK |
7566 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7567 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7568 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7569 | case " $LIBOBJS " in |
8a2fc586 | 7570 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7571 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7572 | ;; | |
8a2fc586 AK |
7573 | esac |
7574 | ||
ad6254c5 AK |
7575 | |
7576 | cat >>confdefs.h <<_ACEOF | |
7577 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7578 | _ACEOF | |
7579 | ||
7580 | fi | |
7581 | ||
7582 | ||
7583 | for ac_header in stdlib.h | |
7584 | do | |
ec6a6fbe | 7585 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7587 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7588 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7589 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7590 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7591 | fi |
ec6a6fbe AK |
7592 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7593 | $as_echo "$as_val"'` | |
7594 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7595 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7596 | else |
7597 | # Is the header compilable? | |
ec6a6fbe AK |
7598 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7599 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7600 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7601 | /* confdefs.h. */ |
7602 | _ACEOF | |
7603 | cat confdefs.h >>conftest.$ac_ext | |
7604 | cat >>conftest.$ac_ext <<_ACEOF | |
7605 | /* end confdefs.h. */ | |
7606 | $ac_includes_default | |
7607 | #include <$ac_header> | |
7608 | _ACEOF | |
7609 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7610 | if { (ac_try="$ac_compile" |
7611 | case "(($ac_try" in | |
7612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7613 | *) ac_try_echo=$ac_try;; | |
7614 | esac | |
ec6a6fbe AK |
7615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7616 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7617 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7618 | ac_status=$? |
8a2fc586 AK |
7619 | grep -v '^ *+' conftest.er1 >conftest.err |
7620 | rm -f conftest.er1 | |
7621 | cat conftest.err >&5 | |
ec6a6fbe | 7622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7623 | (exit $ac_status); } && { |
7624 | test -z "$ac_c_werror_flag" || | |
7625 | test ! -s conftest.err | |
7626 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7627 | ac_header_compiler=yes |
7628 | else | |
ec6a6fbe | 7629 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7630 | sed 's/^/| /' conftest.$ac_ext >&5 |
7631 | ||
7a197a62 | 7632 | ac_header_compiler=no |
ad6254c5 | 7633 | fi |
7a197a62 AK |
7634 | |
7635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7636 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7637 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7638 | |
7639 | # Is the header present? | |
ec6a6fbe AK |
7640 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7641 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7642 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7643 | /* confdefs.h. */ |
7644 | _ACEOF | |
7645 | cat confdefs.h >>conftest.$ac_ext | |
7646 | cat >>conftest.$ac_ext <<_ACEOF | |
7647 | /* end confdefs.h. */ | |
7648 | #include <$ac_header> | |
7649 | _ACEOF | |
7a197a62 AK |
7650 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7651 | case "(($ac_try" in | |
7652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7653 | *) ac_try_echo=$ac_try;; | |
7654 | esac | |
ec6a6fbe AK |
7655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7656 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7657 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7658 | ac_status=$? |
7659 | grep -v '^ *+' conftest.er1 >conftest.err | |
7660 | rm -f conftest.er1 | |
7661 | cat conftest.err >&5 | |
ec6a6fbe | 7662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7663 | (exit $ac_status); } >/dev/null && { |
7664 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7665 | test ! -s conftest.err | |
7666 | }; then | |
ad6254c5 AK |
7667 | ac_header_preproc=yes |
7668 | else | |
ec6a6fbe | 7669 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7670 | sed 's/^/| /' conftest.$ac_ext >&5 |
7671 | ||
7672 | ac_header_preproc=no | |
7673 | fi | |
7a197a62 | 7674 | |
ad6254c5 | 7675 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7676 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7677 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7678 | |
7679 | # So? What about this header? | |
8a2fc586 AK |
7680 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7681 | yes:no: ) | |
ec6a6fbe AK |
7682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7683 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7685 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7686 | ac_header_preproc=yes |
ad6254c5 | 7687 | ;; |
8a2fc586 | 7688 | no:yes:* ) |
ec6a6fbe AK |
7689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7690 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7692 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7694 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7696 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7698 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7700 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7701 | |
ad6254c5 AK |
7702 | ;; |
7703 | esac | |
ec6a6fbe AK |
7704 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7705 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7707 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7708 | else |
8a2fc586 | 7709 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7710 | fi |
ec6a6fbe AK |
7711 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7712 | $as_echo "$as_val"'` | |
7713 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7714 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7715 | |
7716 | fi | |
ec6a6fbe AK |
7717 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7718 | $as_echo "$as_val"'` | |
7719 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7720 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7721 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7722 | _ACEOF |
7723 | ||
7724 | fi | |
7725 | ||
7726 | done | |
7727 | ||
ec6a6fbe AK |
7728 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7729 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7730 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7731 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7732 | else |
7733 | if test "$cross_compiling" = yes; then | |
7734 | ac_cv_func_malloc_0_nonnull=no | |
7735 | else | |
7736 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7737 | /* confdefs.h. */ |
7738 | _ACEOF | |
7739 | cat confdefs.h >>conftest.$ac_ext | |
7740 | cat >>conftest.$ac_ext <<_ACEOF | |
7741 | /* end confdefs.h. */ | |
25fbec5b | 7742 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7743 | # include <stdlib.h> |
7744 | #else | |
7745 | char *malloc (); | |
7746 | #endif | |
7747 | ||
7748 | int | |
7749 | main () | |
7750 | { | |
7a197a62 | 7751 | return ! malloc (0); |
ad6254c5 AK |
7752 | ; |
7753 | return 0; | |
7754 | } | |
7755 | _ACEOF | |
7756 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7757 | if { (ac_try="$ac_link" |
7758 | case "(($ac_try" in | |
7759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7760 | *) ac_try_echo=$ac_try;; | |
7761 | esac | |
ec6a6fbe AK |
7762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7763 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7764 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7765 | ac_status=$? |
ec6a6fbe | 7766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7767 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7768 | { (case "(($ac_try" in |
7769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7770 | *) ac_try_echo=$ac_try;; | |
7771 | esac | |
ec6a6fbe AK |
7772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7773 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7774 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7775 | ac_status=$? |
ec6a6fbe | 7776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7777 | (exit $ac_status); }; }; then |
7778 | ac_cv_func_malloc_0_nonnull=yes | |
7779 | else | |
ec6a6fbe AK |
7780 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7781 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7782 | sed 's/^/| /' conftest.$ac_ext >&5 |
7783 | ||
7784 | ( exit $ac_status ) | |
7785 | ac_cv_func_malloc_0_nonnull=no | |
7786 | fi | |
ec6a6fbe | 7787 | rm -rf conftest.dSYM |
7a197a62 | 7788 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7789 | fi |
7a197a62 AK |
7790 | |
7791 | ||
ad6254c5 | 7792 | fi |
ec6a6fbe AK |
7793 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7794 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7795 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7796 | ||
7797 | cat >>confdefs.h <<\_ACEOF | |
7798 | #define HAVE_MALLOC 1 | |
7799 | _ACEOF | |
7800 | ||
7801 | else | |
7802 | cat >>confdefs.h <<\_ACEOF | |
7803 | #define HAVE_MALLOC 0 | |
7804 | _ACEOF | |
7805 | ||
7a197a62 | 7806 | case " $LIBOBJS " in |
8a2fc586 | 7807 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7808 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7809 | ;; | |
8a2fc586 AK |
7810 | esac |
7811 | ||
ad6254c5 AK |
7812 | |
7813 | cat >>confdefs.h <<\_ACEOF | |
7814 | #define malloc rpl_malloc | |
7815 | _ACEOF | |
7816 | ||
7817 | fi | |
7818 | ||
7819 | ||
7820 | ||
ec6a6fbe AK |
7821 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7822 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7823 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7824 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7825 | else |
7826 | if test "$cross_compiling" = yes; then | |
7827 | ac_cv_func_memcmp_working=no | |
7828 | else | |
7829 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7830 | /* confdefs.h. */ |
7831 | _ACEOF | |
7832 | cat confdefs.h >>conftest.$ac_ext | |
7833 | cat >>conftest.$ac_ext <<_ACEOF | |
7834 | /* end confdefs.h. */ | |
8a2fc586 | 7835 | $ac_includes_default |
ad6254c5 AK |
7836 | int |
7837 | main () | |
7838 | { | |
7839 | ||
7840 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7841 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7842 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7843 | return 1; |
ad6254c5 AK |
7844 | |
7845 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7846 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7847 | William Lewis provided this test program. */ | |
7848 | { | |
7849 | char foo[21]; | |
7850 | char bar[21]; | |
7851 | int i; | |
7852 | for (i = 0; i < 4; i++) | |
7853 | { | |
8a2fc586 AK |
7854 | char *a = foo + i; |
7855 | char *b = bar + i; | |
7856 | strcpy (a, "--------01111111"); | |
7857 | strcpy (b, "--------10000000"); | |
7858 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7859 | return 1; |
ad6254c5 | 7860 | } |
7a197a62 | 7861 | return 0; |
ad6254c5 AK |
7862 | } |
7863 | ||
7864 | ; | |
7865 | return 0; | |
7866 | } | |
7867 | _ACEOF | |
7868 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7869 | if { (ac_try="$ac_link" |
7870 | case "(($ac_try" in | |
7871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7872 | *) ac_try_echo=$ac_try;; | |
7873 | esac | |
ec6a6fbe AK |
7874 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7875 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7876 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7877 | ac_status=$? |
ec6a6fbe | 7878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7879 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7880 | { (case "(($ac_try" in |
7881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7882 | *) ac_try_echo=$ac_try;; | |
7883 | esac | |
ec6a6fbe AK |
7884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7885 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7886 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7887 | ac_status=$? |
ec6a6fbe | 7888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7889 | (exit $ac_status); }; }; then |
7890 | ac_cv_func_memcmp_working=yes | |
7891 | else | |
ec6a6fbe AK |
7892 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7893 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7894 | sed 's/^/| /' conftest.$ac_ext >&5 |
7895 | ||
7896 | ( exit $ac_status ) | |
7897 | ac_cv_func_memcmp_working=no | |
7898 | fi | |
ec6a6fbe | 7899 | rm -rf conftest.dSYM |
7a197a62 | 7900 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7901 | fi |
7a197a62 AK |
7902 | |
7903 | ||
ad6254c5 | 7904 | fi |
ec6a6fbe AK |
7905 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7906 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7907 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7908 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7909 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7910 | ;; | |
8a2fc586 AK |
7911 | esac |
7912 | ||
ad6254c5 AK |
7913 | |
7914 | ||
7915 | ||
7916 | for ac_header in stdlib.h unistd.h | |
7917 | do | |
ec6a6fbe | 7918 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7919 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7920 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7921 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7923 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7924 | fi |
ec6a6fbe AK |
7925 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7926 | $as_echo "$as_val"'` | |
7927 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7928 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7929 | else |
7930 | # Is the header compilable? | |
ec6a6fbe AK |
7931 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7932 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7933 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7934 | /* confdefs.h. */ |
7935 | _ACEOF | |
7936 | cat confdefs.h >>conftest.$ac_ext | |
7937 | cat >>conftest.$ac_ext <<_ACEOF | |
7938 | /* end confdefs.h. */ | |
7939 | $ac_includes_default | |
7940 | #include <$ac_header> | |
7941 | _ACEOF | |
7942 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7943 | if { (ac_try="$ac_compile" |
7944 | case "(($ac_try" in | |
7945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7946 | *) ac_try_echo=$ac_try;; | |
7947 | esac | |
ec6a6fbe AK |
7948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7949 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7950 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7951 | ac_status=$? |
8a2fc586 AK |
7952 | grep -v '^ *+' conftest.er1 >conftest.err |
7953 | rm -f conftest.er1 | |
7954 | cat conftest.err >&5 | |
ec6a6fbe | 7955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7956 | (exit $ac_status); } && { |
7957 | test -z "$ac_c_werror_flag" || | |
7958 | test ! -s conftest.err | |
7959 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7960 | ac_header_compiler=yes |
7961 | else | |
ec6a6fbe | 7962 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7963 | sed 's/^/| /' conftest.$ac_ext >&5 |
7964 | ||
7a197a62 | 7965 | ac_header_compiler=no |
ad6254c5 | 7966 | fi |
7a197a62 AK |
7967 | |
7968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7969 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7970 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7971 | |
7972 | # Is the header present? | |
ec6a6fbe AK |
7973 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7974 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7975 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7976 | /* confdefs.h. */ |
7977 | _ACEOF | |
7978 | cat confdefs.h >>conftest.$ac_ext | |
7979 | cat >>conftest.$ac_ext <<_ACEOF | |
7980 | /* end confdefs.h. */ | |
7981 | #include <$ac_header> | |
7982 | _ACEOF | |
7a197a62 AK |
7983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7984 | case "(($ac_try" in | |
7985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7986 | *) ac_try_echo=$ac_try;; | |
7987 | esac | |
ec6a6fbe AK |
7988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7989 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7990 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7991 | ac_status=$? |
7992 | grep -v '^ *+' conftest.er1 >conftest.err | |
7993 | rm -f conftest.er1 | |
7994 | cat conftest.err >&5 | |
ec6a6fbe | 7995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7996 | (exit $ac_status); } >/dev/null && { |
7997 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7998 | test ! -s conftest.err | |
7999 | }; then | |
ad6254c5 AK |
8000 | ac_header_preproc=yes |
8001 | else | |
ec6a6fbe | 8002 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8003 | sed 's/^/| /' conftest.$ac_ext >&5 |
8004 | ||
8005 | ac_header_preproc=no | |
8006 | fi | |
7a197a62 | 8007 | |
ad6254c5 | 8008 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8009 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8010 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8011 | |
8012 | # So? What about this header? | |
8a2fc586 AK |
8013 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8014 | yes:no: ) | |
ec6a6fbe AK |
8015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8016 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8018 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8019 | ac_header_preproc=yes |
ad6254c5 | 8020 | ;; |
8a2fc586 | 8021 | no:yes:* ) |
ec6a6fbe AK |
8022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8023 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8025 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8027 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8029 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8031 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8033 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8034 | |
ad6254c5 AK |
8035 | ;; |
8036 | esac | |
ec6a6fbe AK |
8037 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8038 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8040 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8041 | else |
8a2fc586 | 8042 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8043 | fi |
ec6a6fbe AK |
8044 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8045 | $as_echo "$as_val"'` | |
8046 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8047 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8048 | |
8049 | fi | |
ec6a6fbe AK |
8050 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8051 | $as_echo "$as_val"'` | |
8052 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8053 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8054 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8055 | _ACEOF |
8056 | ||
8057 | fi | |
8058 | ||
8059 | done | |
8060 | ||
8061 | ||
8062 | for ac_func in getpagesize | |
8063 | do | |
ec6a6fbe AK |
8064 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8065 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8066 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8067 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8068 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8069 | else |
8070 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8071 | /* confdefs.h. */ |
8072 | _ACEOF | |
8073 | cat confdefs.h >>conftest.$ac_ext | |
8074 | cat >>conftest.$ac_ext <<_ACEOF | |
8075 | /* end confdefs.h. */ | |
8a2fc586 AK |
8076 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8077 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8078 | #define $ac_func innocuous_$ac_func | |
8079 | ||
ad6254c5 AK |
8080 | /* System header to define __stub macros and hopefully few prototypes, |
8081 | which can conflict with char $ac_func (); below. | |
8082 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8083 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8084 | |
ad6254c5 AK |
8085 | #ifdef __STDC__ |
8086 | # include <limits.h> | |
8087 | #else | |
8088 | # include <assert.h> | |
8089 | #endif | |
8a2fc586 AK |
8090 | |
8091 | #undef $ac_func | |
8092 | ||
7a197a62 AK |
8093 | /* Override any GCC internal prototype to avoid an error. |
8094 | Use char because int might match the return type of a GCC | |
8095 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8096 | #ifdef __cplusplus |
8097 | extern "C" | |
ad6254c5 | 8098 | #endif |
ad6254c5 AK |
8099 | char $ac_func (); |
8100 | /* The GNU C library defines this for functions which it implements | |
8101 | to always fail with ENOSYS. Some functions are actually named | |
8102 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8103 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8104 | choke me |
ad6254c5 AK |
8105 | #endif |
8106 | ||
8107 | int | |
8108 | main () | |
8109 | { | |
7a197a62 | 8110 | return $ac_func (); |
ad6254c5 AK |
8111 | ; |
8112 | return 0; | |
8113 | } | |
8114 | _ACEOF | |
8115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8116 | if { (ac_try="$ac_link" |
8117 | case "(($ac_try" in | |
8118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8119 | *) ac_try_echo=$ac_try;; | |
8120 | esac | |
ec6a6fbe AK |
8121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8122 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8123 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8124 | ac_status=$? |
8a2fc586 AK |
8125 | grep -v '^ *+' conftest.er1 >conftest.err |
8126 | rm -f conftest.er1 | |
8127 | cat conftest.err >&5 | |
ec6a6fbe | 8128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8129 | (exit $ac_status); } && { |
8130 | test -z "$ac_c_werror_flag" || | |
8131 | test ! -s conftest.err | |
ec6a6fbe AK |
8132 | } && test -s conftest$ac_exeext && { |
8133 | test "$cross_compiling" = yes || | |
8134 | $as_test_x conftest$ac_exeext | |
8135 | }; then | |
ad6254c5 AK |
8136 | eval "$as_ac_var=yes" |
8137 | else | |
ec6a6fbe | 8138 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8139 | sed 's/^/| /' conftest.$ac_ext >&5 |
8140 | ||
7a197a62 | 8141 | eval "$as_ac_var=no" |
ad6254c5 | 8142 | fi |
7a197a62 | 8143 | |
ec6a6fbe | 8144 | rm -rf conftest.dSYM |
25fbec5b | 8145 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8146 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8147 | fi |
ec6a6fbe AK |
8148 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8149 | $as_echo "$as_val"'` | |
8150 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8151 | $as_echo "$ac_res" >&6; } | |
8152 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8153 | $as_echo "$as_val"'` | |
8154 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8155 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8156 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8157 | _ACEOF |
8158 | ||
8159 | fi | |
8160 | done | |
8161 | ||
ec6a6fbe AK |
8162 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8163 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8164 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8165 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8166 | else |
8167 | if test "$cross_compiling" = yes; then | |
8168 | ac_cv_func_mmap_fixed_mapped=no | |
8169 | else | |
8170 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8171 | /* confdefs.h. */ |
8172 | _ACEOF | |
8173 | cat confdefs.h >>conftest.$ac_ext | |
8174 | cat >>conftest.$ac_ext <<_ACEOF | |
8175 | /* end confdefs.h. */ | |
8176 | $ac_includes_default | |
8177 | /* malloc might have been renamed as rpl_malloc. */ | |
8178 | #undef malloc | |
8179 | ||
8180 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8181 | Here is a matrix of mmap possibilities: | |
8182 | mmap private not fixed | |
8183 | mmap private fixed at somewhere currently unmapped | |
8184 | mmap private fixed at somewhere already mapped | |
8185 | mmap shared not fixed | |
8186 | mmap shared fixed at somewhere currently unmapped | |
8187 | mmap shared fixed at somewhere already mapped | |
8188 | For private mappings, we should verify that changes cannot be read() | |
8189 | back from the file, nor mmap's back from the file at a different | |
8190 | address. (There have been systems where private was not correctly | |
8191 | implemented like the infamous i386 svr4.0, and systems where the | |
8192 | VM page cache was not coherent with the file system buffer cache | |
8193 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8194 | For shared mappings, we should conversely verify that changes get | |
8195 | propagated back to all the places they're supposed to be. | |
8196 | ||
8197 | Grep wants private fixed already mapped. | |
8198 | The main things grep needs to know about mmap are: | |
8199 | * does it exist and is it safe to write into the mmap'd area | |
8200 | * how to use it (BSD variants) */ | |
8201 | ||
8202 | #include <fcntl.h> | |
8203 | #include <sys/mman.h> | |
8204 | ||
25fbec5b | 8205 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8206 | char *malloc (); |
8207 | #endif | |
8208 | ||
8209 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8210 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8211 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8212 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8213 | # define HAVE_SYS_PARAM_H 1 |
8214 | # endif | |
8215 | ||
8216 | # ifdef _SC_PAGESIZE | |
8217 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8218 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8219 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8220 | # include <sys/param.h> |
8221 | # ifdef EXEC_PAGESIZE | |
8222 | # define getpagesize() EXEC_PAGESIZE | |
8223 | # else /* no EXEC_PAGESIZE */ | |
8224 | # ifdef NBPG | |
8225 | # define getpagesize() NBPG * CLSIZE | |
8226 | # ifndef CLSIZE | |
8227 | # define CLSIZE 1 | |
8228 | # endif /* no CLSIZE */ | |
8229 | # else /* no NBPG */ | |
8230 | # ifdef NBPC | |
8231 | # define getpagesize() NBPC | |
8232 | # else /* no NBPC */ | |
8233 | # ifdef PAGESIZE | |
8234 | # define getpagesize() PAGESIZE | |
8235 | # endif /* PAGESIZE */ | |
8236 | # endif /* no NBPC */ | |
8237 | # endif /* no NBPG */ | |
8238 | # endif /* no EXEC_PAGESIZE */ | |
8239 | # else /* no HAVE_SYS_PARAM_H */ | |
8240 | # define getpagesize() 8192 /* punt totally */ | |
8241 | # endif /* no HAVE_SYS_PARAM_H */ | |
8242 | # endif /* no _SC_PAGESIZE */ | |
8243 | ||
8244 | #endif /* no HAVE_GETPAGESIZE */ | |
8245 | ||
8246 | int | |
8247 | main () | |
8248 | { | |
8249 | char *data, *data2, *data3; | |
8250 | int i, pagesize; | |
8251 | int fd; | |
8252 | ||
8253 | pagesize = getpagesize (); | |
8254 | ||
8255 | /* First, make a file with some known garbage in it. */ | |
8256 | data = (char *) malloc (pagesize); | |
8257 | if (!data) | |
7a197a62 | 8258 | return 1; |
ad6254c5 AK |
8259 | for (i = 0; i < pagesize; ++i) |
8260 | *(data + i) = rand (); | |
8261 | umask (0); | |
8262 | fd = creat ("conftest.mmap", 0600); | |
8263 | if (fd < 0) | |
7a197a62 | 8264 | return 1; |
ad6254c5 | 8265 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8266 | return 1; |
ad6254c5 AK |
8267 | close (fd); |
8268 | ||
8269 | /* Next, try to mmap the file at a fixed address which already has | |
8270 | something else allocated at it. If we can, also make sure that | |
8271 | we see the same garbage. */ | |
8272 | fd = open ("conftest.mmap", O_RDWR); | |
8273 | if (fd < 0) | |
7a197a62 | 8274 | return 1; |
ad6254c5 AK |
8275 | data2 = (char *) malloc (2 * pagesize); |
8276 | if (!data2) | |
7a197a62 AK |
8277 | return 1; |
8278 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8279 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8280 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8281 | return 1; |
ad6254c5 AK |
8282 | for (i = 0; i < pagesize; ++i) |
8283 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8284 | return 1; |
ad6254c5 AK |
8285 | |
8286 | /* Finally, make sure that changes to the mapped area do not | |
8287 | percolate back to the file as seen by read(). (This is a bug on | |
8288 | some variants of i386 svr4.0.) */ | |
8289 | for (i = 0; i < pagesize; ++i) | |
8290 | *(data2 + i) = *(data2 + i) + 1; | |
8291 | data3 = (char *) malloc (pagesize); | |
8292 | if (!data3) | |
7a197a62 | 8293 | return 1; |
ad6254c5 | 8294 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8295 | return 1; |
ad6254c5 AK |
8296 | for (i = 0; i < pagesize; ++i) |
8297 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8298 | return 1; |
ad6254c5 | 8299 | close (fd); |
7a197a62 | 8300 | return 0; |
ad6254c5 AK |
8301 | } |
8302 | _ACEOF | |
8303 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8304 | if { (ac_try="$ac_link" |
8305 | case "(($ac_try" in | |
8306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8307 | *) ac_try_echo=$ac_try;; | |
8308 | esac | |
ec6a6fbe AK |
8309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8310 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8311 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8312 | ac_status=$? |
ec6a6fbe | 8313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8314 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8315 | { (case "(($ac_try" in |
8316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8317 | *) ac_try_echo=$ac_try;; | |
8318 | esac | |
ec6a6fbe AK |
8319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8320 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8321 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8322 | ac_status=$? |
ec6a6fbe | 8323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8324 | (exit $ac_status); }; }; then |
8325 | ac_cv_func_mmap_fixed_mapped=yes | |
8326 | else | |
ec6a6fbe AK |
8327 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8328 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8329 | sed 's/^/| /' conftest.$ac_ext >&5 |
8330 | ||
8331 | ( exit $ac_status ) | |
8332 | ac_cv_func_mmap_fixed_mapped=no | |
8333 | fi | |
ec6a6fbe | 8334 | rm -rf conftest.dSYM |
7a197a62 | 8335 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8336 | fi |
7a197a62 AK |
8337 | |
8338 | ||
ad6254c5 | 8339 | fi |
ec6a6fbe AK |
8340 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8341 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8342 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8343 | ||
8344 | cat >>confdefs.h <<\_ACEOF | |
8345 | #define HAVE_MMAP 1 | |
8346 | _ACEOF | |
8347 | ||
8348 | fi | |
8349 | rm -f conftest.mmap | |
8350 | ||
ec6a6fbe AK |
8351 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8352 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8353 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8354 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8355 | else |
8356 | if test "$cross_compiling" = yes; then | |
8357 | ac_cv_func_stat_empty_string_bug=yes | |
8358 | else | |
8359 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8360 | /* confdefs.h. */ |
8361 | _ACEOF | |
8362 | cat confdefs.h >>conftest.$ac_ext | |
8363 | cat >>conftest.$ac_ext <<_ACEOF | |
8364 | /* end confdefs.h. */ | |
8365 | $ac_includes_default | |
8366 | int | |
8367 | main () | |
8368 | { | |
8369 | struct stat sbuf; | |
7a197a62 | 8370 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8371 | ; |
8372 | return 0; | |
8373 | } | |
8374 | _ACEOF | |
8375 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8376 | if { (ac_try="$ac_link" |
8377 | case "(($ac_try" in | |
8378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8379 | *) ac_try_echo=$ac_try;; | |
8380 | esac | |
ec6a6fbe AK |
8381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8382 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8383 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8384 | ac_status=$? |
ec6a6fbe | 8385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8387 | { (case "(($ac_try" in |
8388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8389 | *) ac_try_echo=$ac_try;; | |
8390 | esac | |
ec6a6fbe AK |
8391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8392 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8393 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8394 | ac_status=$? |
ec6a6fbe | 8395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8396 | (exit $ac_status); }; }; then |
7a197a62 | 8397 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8398 | else |
ec6a6fbe AK |
8399 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8400 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8401 | sed 's/^/| /' conftest.$ac_ext >&5 |
8402 | ||
8403 | ( exit $ac_status ) | |
7a197a62 | 8404 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8405 | fi |
ec6a6fbe | 8406 | rm -rf conftest.dSYM |
7a197a62 | 8407 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8408 | fi |
7a197a62 AK |
8409 | |
8410 | ||
ad6254c5 | 8411 | fi |
ec6a6fbe AK |
8412 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8413 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8414 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8415 | case " $LIBOBJS " in |
8a2fc586 | 8416 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8417 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8418 | ;; | |
8a2fc586 AK |
8419 | esac |
8420 | ||
ad6254c5 AK |
8421 | |
8422 | cat >>confdefs.h <<_ACEOF | |
8423 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8424 | _ACEOF | |
8425 | ||
8426 | fi | |
8427 | ||
ec6a6fbe AK |
8428 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8429 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8430 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8431 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8432 | else |
8433 | if test "$cross_compiling" = yes; then | |
8434 | ac_cv_func_strtod=no | |
8435 | else | |
8436 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8437 | /* confdefs.h. */ |
8438 | _ACEOF | |
8439 | cat confdefs.h >>conftest.$ac_ext | |
8440 | cat >>conftest.$ac_ext <<_ACEOF | |
8441 | /* end confdefs.h. */ | |
8442 | ||
7a197a62 AK |
8443 | $ac_includes_default |
8444 | #ifndef strtod | |
ad6254c5 | 8445 | double strtod (); |
7a197a62 | 8446 | #endif |
ad6254c5 AK |
8447 | int |
8448 | main() | |
8449 | { | |
8450 | { | |
8451 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8452 | char *string = " +69"; | |
8453 | char *term; | |
8454 | double value; | |
8455 | value = strtod (string, &term); | |
8456 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8457 | return 1; |
ad6254c5 AK |
8458 | } |
8459 | ||
8460 | { | |
8461 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8462 | terminating character under some conditions. */ | |
8463 | char *string = "NaN"; | |
8464 | char *term; | |
8465 | strtod (string, &term); | |
8466 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8467 | return 1; |
ad6254c5 | 8468 | } |
7a197a62 | 8469 | return 0; |
ad6254c5 AK |
8470 | } |
8471 | ||
8472 | _ACEOF | |
8473 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8474 | if { (ac_try="$ac_link" |
8475 | case "(($ac_try" in | |
8476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8477 | *) ac_try_echo=$ac_try;; | |
8478 | esac | |
ec6a6fbe AK |
8479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8480 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8481 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8482 | ac_status=$? |
ec6a6fbe | 8483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8484 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8485 | { (case "(($ac_try" in |
8486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8487 | *) ac_try_echo=$ac_try;; | |
8488 | esac | |
ec6a6fbe AK |
8489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8490 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8491 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8492 | ac_status=$? |
ec6a6fbe | 8493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8494 | (exit $ac_status); }; }; then |
8495 | ac_cv_func_strtod=yes | |
8496 | else | |
ec6a6fbe AK |
8497 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8498 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8499 | sed 's/^/| /' conftest.$ac_ext >&5 |
8500 | ||
8501 | ( exit $ac_status ) | |
8502 | ac_cv_func_strtod=no | |
8503 | fi | |
ec6a6fbe | 8504 | rm -rf conftest.dSYM |
7a197a62 | 8505 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8506 | fi |
7a197a62 AK |
8507 | |
8508 | ||
ad6254c5 | 8509 | fi |
ec6a6fbe AK |
8510 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8511 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8512 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8513 | case " $LIBOBJS " in |
8a2fc586 | 8514 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8515 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8516 | ;; | |
8a2fc586 AK |
8517 | esac |
8518 | ||
ec6a6fbe AK |
8519 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8520 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8521 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8522 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8523 | else |
8524 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8525 | /* confdefs.h. */ |
8526 | _ACEOF | |
8527 | cat confdefs.h >>conftest.$ac_ext | |
8528 | cat >>conftest.$ac_ext <<_ACEOF | |
8529 | /* end confdefs.h. */ | |
8a2fc586 AK |
8530 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8532 | #define pow innocuous_pow | |
8533 | ||
ad6254c5 AK |
8534 | /* System header to define __stub macros and hopefully few prototypes, |
8535 | which can conflict with char pow (); below. | |
8536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8537 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8538 | |
ad6254c5 AK |
8539 | #ifdef __STDC__ |
8540 | # include <limits.h> | |
8541 | #else | |
8542 | # include <assert.h> | |
8543 | #endif | |
8a2fc586 AK |
8544 | |
8545 | #undef pow | |
8546 | ||
7a197a62 AK |
8547 | /* Override any GCC internal prototype to avoid an error. |
8548 | Use char because int might match the return type of a GCC | |
8549 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8550 | #ifdef __cplusplus |
8551 | extern "C" | |
ad6254c5 | 8552 | #endif |
ad6254c5 AK |
8553 | char pow (); |
8554 | /* The GNU C library defines this for functions which it implements | |
8555 | to always fail with ENOSYS. Some functions are actually named | |
8556 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8557 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8558 | choke me |
ad6254c5 AK |
8559 | #endif |
8560 | ||
8561 | int | |
8562 | main () | |
8563 | { | |
7a197a62 | 8564 | return pow (); |
ad6254c5 AK |
8565 | ; |
8566 | return 0; | |
8567 | } | |
8568 | _ACEOF | |
8569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8570 | if { (ac_try="$ac_link" |
8571 | case "(($ac_try" in | |
8572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8573 | *) ac_try_echo=$ac_try;; | |
8574 | esac | |
ec6a6fbe AK |
8575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8576 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8577 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8578 | ac_status=$? |
8a2fc586 AK |
8579 | grep -v '^ *+' conftest.er1 >conftest.err |
8580 | rm -f conftest.er1 | |
8581 | cat conftest.err >&5 | |
ec6a6fbe | 8582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8583 | (exit $ac_status); } && { |
8584 | test -z "$ac_c_werror_flag" || | |
8585 | test ! -s conftest.err | |
ec6a6fbe AK |
8586 | } && test -s conftest$ac_exeext && { |
8587 | test "$cross_compiling" = yes || | |
8588 | $as_test_x conftest$ac_exeext | |
8589 | }; then | |
ad6254c5 AK |
8590 | ac_cv_func_pow=yes |
8591 | else | |
ec6a6fbe | 8592 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8593 | sed 's/^/| /' conftest.$ac_ext >&5 |
8594 | ||
7a197a62 | 8595 | ac_cv_func_pow=no |
ad6254c5 | 8596 | fi |
7a197a62 | 8597 | |
ec6a6fbe | 8598 | rm -rf conftest.dSYM |
25fbec5b | 8599 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8600 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8601 | fi |
ec6a6fbe AK |
8602 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8603 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8604 | |
8605 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8606 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8607 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8608 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8609 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8610 | else |
8611 | ac_check_lib_save_LIBS=$LIBS | |
8612 | LIBS="-lm $LIBS" | |
8613 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8614 | /* confdefs.h. */ |
8615 | _ACEOF | |
8616 | cat confdefs.h >>conftest.$ac_ext | |
8617 | cat >>conftest.$ac_ext <<_ACEOF | |
8618 | /* end confdefs.h. */ | |
8619 | ||
7a197a62 AK |
8620 | /* Override any GCC internal prototype to avoid an error. |
8621 | Use char because int might match the return type of a GCC | |
8622 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8623 | #ifdef __cplusplus |
8624 | extern "C" | |
8625 | #endif | |
ad6254c5 AK |
8626 | char pow (); |
8627 | int | |
8628 | main () | |
8629 | { | |
7a197a62 | 8630 | return pow (); |
ad6254c5 AK |
8631 | ; |
8632 | return 0; | |
8633 | } | |
8634 | _ACEOF | |
8635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8636 | if { (ac_try="$ac_link" |
8637 | case "(($ac_try" in | |
8638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8639 | *) ac_try_echo=$ac_try;; | |
8640 | esac | |
ec6a6fbe AK |
8641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8642 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8643 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8644 | ac_status=$? |
8a2fc586 AK |
8645 | grep -v '^ *+' conftest.er1 >conftest.err |
8646 | rm -f conftest.er1 | |
8647 | cat conftest.err >&5 | |
ec6a6fbe | 8648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8649 | (exit $ac_status); } && { |
8650 | test -z "$ac_c_werror_flag" || | |
8651 | test ! -s conftest.err | |
ec6a6fbe AK |
8652 | } && test -s conftest$ac_exeext && { |
8653 | test "$cross_compiling" = yes || | |
8654 | $as_test_x conftest$ac_exeext | |
8655 | }; then | |
ad6254c5 AK |
8656 | ac_cv_lib_m_pow=yes |
8657 | else | |
ec6a6fbe | 8658 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8659 | sed 's/^/| /' conftest.$ac_ext >&5 |
8660 | ||
7a197a62 | 8661 | ac_cv_lib_m_pow=no |
ad6254c5 | 8662 | fi |
7a197a62 | 8663 | |
ec6a6fbe | 8664 | rm -rf conftest.dSYM |
25fbec5b | 8665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8666 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8667 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8668 | fi |
ec6a6fbe AK |
8669 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8670 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8671 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8672 | POW_LIB=-lm |
8673 | else | |
ec6a6fbe AK |
8674 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8675 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8676 | fi |
72b2cb61 | 8677 | |
d0191583 | 8678 | fi |
72b2cb61 | 8679 | |
ad6254c5 AK |
8680 | fi |
8681 | ||
ad6254c5 | 8682 | |
d0191583 JM |
8683 | for ac_func in vprintf |
8684 | do | |
ec6a6fbe AK |
8685 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8686 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8687 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8688 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8689 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8690 | else |
d0191583 JM |
8691 | cat >conftest.$ac_ext <<_ACEOF |
8692 | /* confdefs.h. */ | |
8693 | _ACEOF | |
8694 | cat confdefs.h >>conftest.$ac_ext | |
8695 | cat >>conftest.$ac_ext <<_ACEOF | |
8696 | /* end confdefs.h. */ | |
8697 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8699 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8700 | |
d0191583 JM |
8701 | /* System header to define __stub macros and hopefully few prototypes, |
8702 | which can conflict with char $ac_func (); below. | |
8703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8704 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8705 | |
d0191583 JM |
8706 | #ifdef __STDC__ |
8707 | # include <limits.h> | |
8708 | #else | |
8709 | # include <assert.h> | |
8710 | #endif | |
ad6254c5 | 8711 | |
d0191583 | 8712 | #undef $ac_func |
72b2cb61 | 8713 | |
d0191583 JM |
8714 | /* Override any GCC internal prototype to avoid an error. |
8715 | Use char because int might match the return type of a GCC | |
8716 | builtin and then its argument prototype would still apply. */ | |
8717 | #ifdef __cplusplus | |
8718 | extern "C" | |
8719 | #endif | |
8720 | char $ac_func (); | |
8721 | /* The GNU C library defines this for functions which it implements | |
8722 | to always fail with ENOSYS. Some functions are actually named | |
8723 | something starting with __ and the normal name is an alias. */ | |
8724 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8725 | choke me | |
8726 | #endif | |
8727 | ||
8728 | int | |
8729 | main () | |
8730 | { | |
8731 | return $ac_func (); | |
8732 | ; | |
8733 | return 0; | |
8734 | } | |
72b2cb61 | 8735 | _ACEOF |
d0191583 JM |
8736 | rm -f conftest.$ac_objext conftest$ac_exeext |
8737 | if { (ac_try="$ac_link" | |
8738 | case "(($ac_try" in | |
8739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8740 | *) ac_try_echo=$ac_try;; | |
8741 | esac | |
ec6a6fbe AK |
8742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8743 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8744 | (eval "$ac_link") 2>conftest.er1 |
8745 | ac_status=$? | |
8746 | grep -v '^ *+' conftest.er1 >conftest.err | |
8747 | rm -f conftest.er1 | |
8748 | cat conftest.err >&5 | |
ec6a6fbe | 8749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8750 | (exit $ac_status); } && { |
8751 | test -z "$ac_c_werror_flag" || | |
8752 | test ! -s conftest.err | |
ec6a6fbe AK |
8753 | } && test -s conftest$ac_exeext && { |
8754 | test "$cross_compiling" = yes || | |
8755 | $as_test_x conftest$ac_exeext | |
8756 | }; then | |
d0191583 JM |
8757 | eval "$as_ac_var=yes" |
8758 | else | |
ec6a6fbe | 8759 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8760 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8761 | |
d0191583 | 8762 | eval "$as_ac_var=no" |
ad6254c5 AK |
8763 | fi |
8764 | ||
ec6a6fbe | 8765 | rm -rf conftest.dSYM |
d0191583 JM |
8766 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8767 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8768 | fi |
ec6a6fbe AK |
8769 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8770 | $as_echo "$as_val"'` | |
8771 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8772 | $as_echo "$ac_res" >&6; } | |
8773 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8774 | $as_echo "$as_val"'` | |
8775 | if test "x$as_val" = x""yes; then | |
d0191583 | 8776 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8777 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8778 | _ACEOF |
7a197a62 | 8779 | |
ec6a6fbe AK |
8780 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8781 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8782 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8783 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8784 | else |
d0191583 JM |
8785 | cat >conftest.$ac_ext <<_ACEOF |
8786 | /* confdefs.h. */ | |
8787 | _ACEOF | |
8788 | cat confdefs.h >>conftest.$ac_ext | |
8789 | cat >>conftest.$ac_ext <<_ACEOF | |
8790 | /* end confdefs.h. */ | |
8791 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8792 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8793 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8794 | |
d0191583 JM |
8795 | /* System header to define __stub macros and hopefully few prototypes, |
8796 | which can conflict with char _doprnt (); below. | |
8797 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8798 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8799 | |
d0191583 JM |
8800 | #ifdef __STDC__ |
8801 | # include <limits.h> | |
8802 | #else | |
8803 | # include <assert.h> | |
8804 | #endif | |
72b2cb61 | 8805 | |
d0191583 JM |
8806 | #undef _doprnt |
8807 | ||
8808 | /* Override any GCC internal prototype to avoid an error. | |
8809 | Use char because int might match the return type of a GCC | |
8810 | builtin and then its argument prototype would still apply. */ | |
8811 | #ifdef __cplusplus | |
8812 | extern "C" | |
8813 | #endif | |
8814 | char _doprnt (); | |
8815 | /* The GNU C library defines this for functions which it implements | |
8816 | to always fail with ENOSYS. Some functions are actually named | |
8817 | something starting with __ and the normal name is an alias. */ | |
8818 | #if defined __stub__doprnt || defined __stub____doprnt | |
8819 | choke me | |
8820 | #endif | |
8821 | ||
8822 | int | |
8823 | main () | |
8824 | { | |
8825 | return _doprnt (); | |
8826 | ; | |
8827 | return 0; | |
8828 | } | |
72b2cb61 | 8829 | _ACEOF |
d0191583 JM |
8830 | rm -f conftest.$ac_objext conftest$ac_exeext |
8831 | if { (ac_try="$ac_link" | |
8832 | case "(($ac_try" in | |
8833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8834 | *) ac_try_echo=$ac_try;; | |
8835 | esac | |
ec6a6fbe AK |
8836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8837 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8838 | (eval "$ac_link") 2>conftest.er1 |
8839 | ac_status=$? | |
8840 | grep -v '^ *+' conftest.er1 >conftest.err | |
8841 | rm -f conftest.er1 | |
8842 | cat conftest.err >&5 | |
ec6a6fbe | 8843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8844 | (exit $ac_status); } && { |
8845 | test -z "$ac_c_werror_flag" || | |
8846 | test ! -s conftest.err | |
ec6a6fbe AK |
8847 | } && test -s conftest$ac_exeext && { |
8848 | test "$cross_compiling" = yes || | |
8849 | $as_test_x conftest$ac_exeext | |
8850 | }; then | |
d0191583 JM |
8851 | ac_cv_func__doprnt=yes |
8852 | else | |
ec6a6fbe | 8853 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8854 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8855 | |
d0191583 | 8856 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8857 | fi |
8858 | ||
ec6a6fbe | 8859 | rm -rf conftest.dSYM |
d0191583 JM |
8860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8861 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8862 | fi |
ec6a6fbe AK |
8863 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8864 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8865 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8866 | |
d0191583 JM |
8867 | cat >>confdefs.h <<\_ACEOF |
8868 | #define HAVE_DOPRNT 1 | |
8869 | _ACEOF | |
ad6254c5 | 8870 | |
7a197a62 AK |
8871 | fi |
8872 | ||
d0191583 JM |
8873 | fi |
8874 | done | |
8b1a3214 | 8875 | |
ad6254c5 | 8876 | |
7a197a62 | 8877 | |
9c961554 | 8878 | ################################################################################ |
ec6a6fbe AK |
8879 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8880 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8881 | # Check whether --enable-static_link was given. |
8882 | if test "${enable_static_link+set}" = set; then | |
8883 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8884 | else | |
8885 | STATIC_LINK=no | |
8886 | fi | |
8887 | ||
ec6a6fbe AK |
8888 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8889 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8890 | |
d0191583 | 8891 | ################################################################################ |
ad6254c5 | 8892 | |
ad6254c5 AK |
8893 | |
8894 | ################################################################################ | |
ec6a6fbe AK |
8895 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8896 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8897 | OWNER="root" |
8898 | ||
8899 | ||
8900 | # Check whether --with-user was given. | |
8901 | if test "${with_user+set}" = set; then | |
8902 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8903 | fi |
8904 | ||
ec6a6fbe AK |
8905 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8906 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8907 | |
d0191583 JM |
8908 | if test x$OWNER != x; then |
8909 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8910 | fi |
8911 | ||
8912 | ################################################################################ | |
ec6a6fbe AK |
8913 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8914 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8915 | GROUP="root" |
ad6254c5 | 8916 | |
d0191583 JM |
8917 | # Check whether --with-group was given. |
8918 | if test "${with_group+set}" = set; then | |
8919 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8920 | fi |
8921 | ||
ec6a6fbe AK |
8922 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8923 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8924 | |
8925 | if test x$GROUP != x; then | |
8926 | GROUP="-g $GROUP" | |
8927 | fi | |
ad6254c5 | 8928 | |
24bbc4d7 | 8929 | ################################################################################ |
ec6a6fbe AK |
8930 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
8931 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
8932 | |
8933 | ||
8934 | # Check whether --with-device-uid was given. | |
8935 | if test "${with_device_uid+set}" = set; then | |
8936 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8937 | else | |
8938 | DM_DEVICE_UID="0" | |
8939 | fi | |
8940 | ||
ec6a6fbe AK |
8941 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
8942 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
8943 | |
8944 | ################################################################################ | |
ec6a6fbe AK |
8945 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
8946 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
8947 | |
8948 | ||
8949 | # Check whether --with-device-gid was given. | |
8950 | if test "${with_device_gid+set}" = set; then | |
8951 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8952 | else | |
8953 | DM_DEVICE_GID="0" | |
8954 | fi | |
8955 | ||
ec6a6fbe AK |
8956 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
8957 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 8958 | |
93bd259b | 8959 | ################################################################################ |
ec6a6fbe AK |
8960 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
8961 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
8962 | |
8963 | ||
8964 | # Check whether --with-device-mode was given. | |
8965 | if test "${with_device_mode+set}" = set; then | |
8966 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8967 | else | |
8968 | DM_DEVICE_MODE="0600" | |
8969 | fi | |
8970 | ||
ec6a6fbe AK |
8971 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
8972 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 8973 | |
ad6254c5 | 8974 | ################################################################################ |
ec6a6fbe AK |
8975 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8976 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
8977 | # Check whether --enable-lvm1_fallback was given. |
8978 | if test "${enable_lvm1_fallback+set}" = set; then | |
8979 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8980 | else | |
8981 | LVM1_FALLBACK=no | |
7a197a62 AK |
8982 | fi |
8983 | ||
ec6a6fbe AK |
8984 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8985 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8986 | |
d0191583 | 8987 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8988 | |
8989 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8990 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8991 | _ACEOF |
8992 | ||
ad6254c5 AK |
8993 | fi |
8994 | ||
8995 | ################################################################################ | |
ec6a6fbe AK |
8996 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8997 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
8998 | |
8999 | # Check whether --with-lvm1 was given. | |
9000 | if test "${with_lvm1+set}" = set; then | |
9001 | withval=$with_lvm1; LVM1="$withval" | |
9002 | else | |
9003 | LVM1="internal" | |
7a197a62 AK |
9004 | fi |
9005 | ||
ec6a6fbe AK |
9006 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9007 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9008 | |
d0191583 | 9009 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9010 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9011 | " >&5 |
ec6a6fbe | 9012 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9013 | " >&2;} |
9014 | { (exit 1); exit 1; }; } | |
9015 | fi; | |
9016 | ||
9017 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9018 | |
9019 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9020 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9021 | _ACEOF |
9022 | ||
ad6254c5 AK |
9023 | fi |
9024 | ||
9025 | ################################################################################ | |
ec6a6fbe AK |
9026 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9027 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9028 | |
9029 | # Check whether --with-pool was given. | |
9030 | if test "${with_pool+set}" = set; then | |
9031 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9032 | else |
d0191583 | 9033 | POOL="internal" |
7a197a62 AK |
9034 | fi |
9035 | ||
ec6a6fbe AK |
9036 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9037 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9038 | |
d0191583 | 9039 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9040 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9041 | " >&5 |
ec6a6fbe | 9042 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9043 | " >&2;} |
9044 | { (exit 1); exit 1; }; } | |
9045 | fi; | |
7a197a62 | 9046 | |
d0191583 JM |
9047 | if test x$POOL = xinternal; then |
9048 | ||
9049 | cat >>confdefs.h <<\_ACEOF | |
9050 | #define POOL_INTERNAL 1 | |
9051 | _ACEOF | |
9052 | ||
9053 | fi | |
ad6254c5 | 9054 | |
06f62ad1 | 9055 | ################################################################################ |
ec6a6fbe AK |
9056 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9057 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9058 | |
9059 | # Check whether --with-cluster was given. | |
9060 | if test "${with_cluster+set}" = set; then | |
9061 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9062 | fi |
9063 | ||
ec6a6fbe AK |
9064 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9065 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9066 | |
d0191583 | 9067 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9068 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9069 | " >&5 |
ec6a6fbe | 9070 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9071 | " >&2;} |
9072 | { (exit 1); exit 1; }; } | |
d0191583 | 9073 | fi; |
06f62ad1 | 9074 | |
d0191583 | 9075 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9076 | |
9077 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9078 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9079 | _ACEOF |
9080 | ||
15d91f5a | 9081 | fi |
ad6254c5 AK |
9082 | |
9083 | ################################################################################ | |
ec6a6fbe AK |
9084 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9085 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9086 | |
d0191583 JM |
9087 | # Check whether --with-snapshots was given. |
9088 | if test "${with_snapshots+set}" = set; then | |
9089 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9090 | else | |
9091 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9092 | fi |
9093 | ||
ec6a6fbe AK |
9094 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9095 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9096 | |
d0191583 | 9097 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9098 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9099 | " >&5 |
ec6a6fbe | 9100 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9101 | " >&2;} |
9102 | { (exit 1); exit 1; }; } | |
9103 | fi; | |
9104 | ||
9105 | if test x$SNAPSHOTS = xinternal; then | |
9106 | ||
9107 | cat >>confdefs.h <<\_ACEOF | |
9108 | #define SNAPSHOT_INTERNAL 1 | |
9109 | _ACEOF | |
ad6254c5 | 9110 | |
ad6254c5 | 9111 | fi |
7a197a62 | 9112 | |
d0191583 | 9113 | ################################################################################ |
ec6a6fbe AK |
9114 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9115 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9116 | |
9117 | # Check whether --with-mirrors was given. | |
9118 | if test "${with_mirrors+set}" = set; then | |
9119 | withval=$with_mirrors; MIRRORS="$withval" | |
9120 | else | |
9121 | MIRRORS="internal" | |
ad6254c5 | 9122 | fi |
ad6254c5 | 9123 | |
ec6a6fbe AK |
9124 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9125 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9126 | |
d0191583 | 9127 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9128 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9129 | " >&5 |
ec6a6fbe | 9130 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9131 | " >&2;} |
9132 | { (exit 1); exit 1; }; } | |
9133 | fi; | |
ad6254c5 | 9134 | |
d0191583 | 9135 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9136 | |
d0191583 JM |
9137 | cat >>confdefs.h <<\_ACEOF |
9138 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9139 | _ACEOF |
8a2fc586 | 9140 | |
d0191583 | 9141 | fi |
8a2fc586 | 9142 | |
d0191583 | 9143 | ################################################################################ |
ec6a6fbe AK |
9144 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9145 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9146 | # Check whether --enable-readline was given. |
9147 | if test "${enable_readline+set}" = set; then | |
9148 | enableval=$enable_readline; READLINE=$enableval | |
9149 | else | |
06e459df | 9150 | READLINE=maybe |
d0191583 | 9151 | fi |
8a2fc586 | 9152 | |
ec6a6fbe AK |
9153 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9154 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9155 | |
d0191583 | 9156 | ################################################################################ |
ec6a6fbe AK |
9157 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9158 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9159 | # Check whether --enable-realtime was given. |
9160 | if test "${enable_realtime+set}" = set; then | |
9161 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9162 | fi |
ad6254c5 | 9163 | |
ec6a6fbe AK |
9164 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9165 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9166 | |
9167 | ################################################################################ | |
ec6a6fbe AK |
9168 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
9169 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
9170 | |
9171 | # Check whether --with-clvmd was given. | |
9172 | if test "${with_clvmd+set}" = set; then | |
9173 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 9174 | else |
d0191583 JM |
9175 | CLVMD="none" |
9176 | fi | |
8a2fc586 | 9177 | |
d0191583 JM |
9178 | if test x$CLVMD = xyes; then |
9179 | CLVMD=all | |
9180 | fi | |
ec6a6fbe AK |
9181 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
9182 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 9183 | |
d0191583 JM |
9184 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
9185 | CLUSTER=internal | |
9186 | fi | |
8a2fc586 | 9187 | |
e2997b73 AK |
9188 | if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then |
9189 | ||
9190 | ||
9191 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9192 | if test -n "$ac_tool_prefix"; then | |
9193 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9194 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9195 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9196 | $as_echo_n "checking for $ac_word... " >&6; } | |
9197 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9198 | $as_echo_n "(cached) " >&6 | |
9199 | else | |
9200 | case $PKG_CONFIG in | |
9201 | [\\/]* | ?:[\\/]*) | |
9202 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9203 | ;; | |
9204 | *) | |
9205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9206 | for as_dir in $PATH | |
9207 | do | |
9208 | IFS=$as_save_IFS | |
9209 | test -z "$as_dir" && as_dir=. | |
9210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9212 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9213 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9214 | break 2 | |
9215 | fi | |
9216 | done | |
9217 | done | |
9218 | IFS=$as_save_IFS | |
9219 | ||
9220 | ;; | |
9221 | esac | |
9222 | fi | |
9223 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9224 | if test -n "$PKG_CONFIG"; then | |
9225 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9226 | $as_echo "$PKG_CONFIG" >&6; } | |
9227 | else | |
9228 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9229 | $as_echo "no" >&6; } | |
9230 | fi | |
9231 | ||
9232 | ||
9233 | fi | |
9234 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9235 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9236 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9237 | set dummy pkg-config; ac_word=$2 | |
9238 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9239 | $as_echo_n "checking for $ac_word... " >&6; } | |
9240 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9241 | $as_echo_n "(cached) " >&6 | |
9242 | else | |
9243 | case $ac_pt_PKG_CONFIG in | |
9244 | [\\/]* | ?:[\\/]*) | |
9245 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9246 | ;; | |
9247 | *) | |
9248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9249 | for as_dir in $PATH | |
9250 | do | |
9251 | IFS=$as_save_IFS | |
9252 | test -z "$as_dir" && as_dir=. | |
9253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9255 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9256 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9257 | break 2 | |
9258 | fi | |
9259 | done | |
9260 | done | |
9261 | IFS=$as_save_IFS | |
9262 | ||
9263 | ;; | |
9264 | esac | |
9265 | fi | |
9266 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9267 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9268 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9269 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9270 | else | |
9271 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9272 | $as_echo "no" >&6; } | |
9273 | fi | |
9274 | ||
9275 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9276 | PKG_CONFIG="" | |
9277 | else | |
9278 | case $cross_compiling:$ac_tool_warned in | |
9279 | yes:) | |
9280 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9281 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9282 | ac_tool_warned=yes ;; | |
9283 | esac | |
9284 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9285 | fi | |
9286 | else | |
9287 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9288 | fi | |
9289 | ||
9290 | fi | |
9291 | if test -n "$PKG_CONFIG"; then | |
9292 | _pkg_min_version=0.9.0 | |
9293 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9294 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9295 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9296 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9297 | $as_echo "yes" >&6; } | |
9298 | else | |
9299 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9300 | $as_echo "no" >&6; } | |
9301 | PKG_CONFIG="" | |
9302 | fi | |
9303 | ||
9304 | fi | |
9305 | ||
9306 | pkg_failed=no | |
9307 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
9308 | $as_echo_n "checking for QUORUM... " >&6; } | |
9309 | ||
9310 | if test -n "$QUORUM_CFLAGS"; then | |
9311 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
9312 | elif test -n "$PKG_CONFIG"; then | |
9313 | if test -n "$PKG_CONFIG" && \ | |
9314 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9315 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9316 | ac_status=$? | |
9317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9318 | (exit $ac_status); }; then | |
9319 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
9320 | else | |
9321 | pkg_failed=yes | |
9322 | fi | |
9323 | else | |
9324 | pkg_failed=untried | |
9325 | fi | |
9326 | if test -n "$QUORUM_LIBS"; then | |
9327 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
9328 | elif test -n "$PKG_CONFIG"; then | |
9329 | if test -n "$PKG_CONFIG" && \ | |
9330 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9331 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9332 | ac_status=$? | |
9333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9334 | (exit $ac_status); }; then | |
9335 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
9336 | else | |
9337 | pkg_failed=yes | |
9338 | fi | |
9339 | else | |
9340 | pkg_failed=untried | |
9341 | fi | |
9342 | ||
9343 | ||
9344 | ||
9345 | if test $pkg_failed = yes; then | |
9346 | ||
9347 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9348 | _pkg_short_errors_supported=yes | |
9349 | else | |
9350 | _pkg_short_errors_supported=no | |
9351 | fi | |
9352 | if test $_pkg_short_errors_supported = yes; then | |
9353 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
9354 | else | |
9355 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
9356 | fi | |
9357 | # Put the nasty error message in config.log where it belongs | |
9358 | echo "$QUORUM_PKG_ERRORS" >&5 | |
9359 | ||
9360 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9361 | $as_echo "no" >&6; } | |
9362 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9363 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9364 | QUORUM_LIBS="-lquorum" | |
9365 | elif test $pkg_failed = untried; then | |
9366 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9367 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9368 | QUORUM_LIBS="-lquorum" | |
9369 | else | |
9370 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
9371 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
9372 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9373 | $as_echo "yes" >&6; } | |
9374 | : | |
9375 | fi | |
9376 | ||
9377 | pkg_failed=no | |
9378 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
9379 | $as_echo_n "checking for CONFDB... " >&6; } | |
9380 | ||
9381 | if test -n "$CONFDB_CFLAGS"; then | |
9382 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
9383 | elif test -n "$PKG_CONFIG"; then | |
9384 | if test -n "$PKG_CONFIG" && \ | |
9385 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9386 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9387 | ac_status=$? | |
9388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9389 | (exit $ac_status); }; then | |
9390 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
9391 | else | |
9392 | pkg_failed=yes | |
9393 | fi | |
9394 | else | |
9395 | pkg_failed=untried | |
9396 | fi | |
9397 | if test -n "$CONFDB_LIBS"; then | |
9398 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
9399 | elif test -n "$PKG_CONFIG"; then | |
9400 | if test -n "$PKG_CONFIG" && \ | |
9401 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9402 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9403 | ac_status=$? | |
9404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9405 | (exit $ac_status); }; then | |
9406 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
9407 | else | |
9408 | pkg_failed=yes | |
9409 | fi | |
9410 | else | |
9411 | pkg_failed=untried | |
9412 | fi | |
9413 | ||
9414 | ||
9415 | ||
9416 | if test $pkg_failed = yes; then | |
9417 | ||
9418 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9419 | _pkg_short_errors_supported=yes | |
9420 | else | |
9421 | _pkg_short_errors_supported=no | |
9422 | fi | |
9423 | if test $_pkg_short_errors_supported = yes; then | |
9424 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
9425 | else | |
9426 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
9427 | fi | |
9428 | # Put the nasty error message in config.log where it belongs | |
9429 | echo "$CONFDB_PKG_ERRORS" >&5 | |
9430 | ||
9431 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9432 | $as_echo "no" >&6; } | |
9433 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9434 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9435 | CONFDB_LIBS="-lconfdb" | |
9436 | elif test $pkg_failed = untried; then | |
9437 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9438 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9439 | CONFDB_LIBS="-lconfdb" | |
9440 | else | |
9441 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
9442 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
9443 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9444 | $as_echo "yes" >&6; } | |
9445 | : | |
9446 | fi | |
9447 | ||
9448 | pkg_failed=no | |
9449 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
9450 | $as_echo_n "checking for CPG... " >&6; } | |
9451 | ||
9452 | if test -n "$CPG_CFLAGS"; then | |
9453 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
9454 | elif test -n "$PKG_CONFIG"; then | |
9455 | if test -n "$PKG_CONFIG" && \ | |
9456 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9457 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9458 | ac_status=$? | |
9459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9460 | (exit $ac_status); }; then | |
9461 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
9462 | else | |
9463 | pkg_failed=yes | |
9464 | fi | |
9465 | else | |
9466 | pkg_failed=untried | |
9467 | fi | |
9468 | if test -n "$CPG_LIBS"; then | |
9469 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
9470 | elif test -n "$PKG_CONFIG"; then | |
9471 | if test -n "$PKG_CONFIG" && \ | |
9472 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9473 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9474 | ac_status=$? | |
9475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9476 | (exit $ac_status); }; then | |
9477 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
9478 | else | |
9479 | pkg_failed=yes | |
9480 | fi | |
9481 | else | |
9482 | pkg_failed=untried | |
9483 | fi | |
9484 | ||
9485 | ||
9486 | ||
9487 | if test $pkg_failed = yes; then | |
9488 | ||
9489 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9490 | _pkg_short_errors_supported=yes | |
9491 | else | |
9492 | _pkg_short_errors_supported=no | |
9493 | fi | |
9494 | if test $_pkg_short_errors_supported = yes; then | |
9495 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
9496 | else | |
9497 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
9498 | fi | |
9499 | # Put the nasty error message in config.log where it belongs | |
9500 | echo "$CPG_PKG_ERRORS" >&5 | |
9501 | ||
9502 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9503 | $as_echo "no" >&6; } | |
9504 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9505 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9506 | CPG_LIBS="-lcpg" | |
9507 | elif test $pkg_failed = untried; then | |
9508 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9509 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9510 | CPG_LIBS="-lcpg" | |
9511 | else | |
9512 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
9513 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
9514 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9515 | $as_echo "yes" >&6; } | |
9516 | : | |
9517 | fi | |
9518 | fi | |
9519 | ||
d0191583 | 9520 | ################################################################################ |
ec6a6fbe AK |
9521 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
9522 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
d0191583 JM |
9523 | # Check whether --enable-debug was given. |
9524 | if test "${enable_debug+set}" = set; then | |
9525 | enableval=$enable_debug; DEBUG=$enableval | |
9526 | else | |
9527 | DEBUG=no | |
9528 | fi | |
8a2fc586 | 9529 | |
ec6a6fbe AK |
9530 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
9531 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 | 9532 | |
d0191583 JM |
9533 | if test x$DEBUG = xyes; then |
9534 | COPTIMISE_FLAG= | |
fc54be10 | 9535 | else |
d0191583 JM |
9536 | CSCOPE_CMD= |
9537 | fi | |
fc54be10 | 9538 | |
d0191583 | 9539 | ################################################################################ |
ec6a6fbe AK |
9540 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
9541 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
d0191583 JM |
9542 | |
9543 | # Check whether --with-optimisation was given. | |
9544 | if test "${with_optimisation+set}" = set; then | |
9545 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
9546 | fi | |
9547 | ||
ec6a6fbe AK |
9548 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
9549 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
9550 | |
9551 | ################################################################################ | |
ec6a6fbe AK |
9552 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
9553 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
fddafd51 ZK |
9554 | # Check whether --enable-profiling was given. |
9555 | if test "${enable_profiling+set}" = set; then | |
5556819a | 9556 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 9557 | else |
5556819a | 9558 | PROFILING=no |
fddafd51 ZK |
9559 | fi |
9560 | ||
ec6a6fbe AK |
9561 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
9562 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
9563 | |
9564 | if test "x$PROFILING" = xyes; then | |
9565 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
9566 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 9567 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
9568 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9569 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9570 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 9571 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9572 | else |
9573 | case $LCOV in | |
9574 | [\\/]* | ?:[\\/]*) | |
9575 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
9576 | ;; | |
9577 | *) | |
9578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9579 | for as_dir in $PATH | |
9580 | do | |
9581 | IFS=$as_save_IFS | |
9582 | test -z "$as_dir" && as_dir=. | |
9583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9585 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9586 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9587 | break 2 |
9588 | fi | |
9589 | done | |
9590 | done | |
9591 | IFS=$as_save_IFS | |
9592 | ||
b145d876 | 9593 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
9594 | ;; |
9595 | esac | |
9596 | fi | |
9597 | LCOV=$ac_cv_path_LCOV | |
9598 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
9599 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
9600 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 9601 | else |
ec6a6fbe AK |
9602 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9603 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9604 | fi |
9605 | ||
9606 | ||
5556819a | 9607 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 9608 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
9609 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9610 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9611 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 9612 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9613 | else |
9614 | case $GENHTML in | |
9615 | [\\/]* | ?:[\\/]*) | |
9616 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
9617 | ;; | |
9618 | *) | |
9619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9620 | for as_dir in $PATH | |
9621 | do | |
9622 | IFS=$as_save_IFS | |
9623 | test -z "$as_dir" && as_dir=. | |
9624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9626 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9627 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9628 | break 2 |
9629 | fi | |
9630 | done | |
9631 | done | |
9632 | IFS=$as_save_IFS | |
9633 | ||
b145d876 | 9634 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
9635 | ;; |
9636 | esac | |
9637 | fi | |
9638 | GENHTML=$ac_cv_path_GENHTML | |
9639 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
9640 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
9641 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 9642 | else |
ec6a6fbe AK |
9643 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9644 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9645 | fi |
9646 | ||
9647 | ||
b145d876 | 9648 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
9649 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
9650 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
9651 | { (exit 1); exit 1; }; } |
9652 | fi | |
5556819a | 9653 | fi |
d0191583 JM |
9654 | |
9655 | ################################################################################ | |
ec6a6fbe AK |
9656 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
9657 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
9658 | # Check whether --enable-devmapper was given. |
9659 | if test "${enable_devmapper+set}" = set; then | |
9660 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
9661 | fi |
9662 | ||
ec6a6fbe AK |
9663 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
9664 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
9665 | |
9666 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
9667 | |
9668 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9669 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
9670 | _ACEOF |
9671 | ||
9672 | fi | |
9673 | ||
93bd259b AK |
9674 | ################################################################################ |
9675 | # Check whether --enable-compat was given. | |
9676 | if test "${enable_compat+set}" = set; then | |
9677 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9678 | else | |
9679 | DM_COMPAT=no | |
9680 | fi | |
9681 | ||
9682 | ||
9683 | ################################################################################ | |
9684 | # Check whether --enable-ioctl was given. | |
9685 | if test "${enable_ioctl+set}" = set; then | |
9686 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
9687 | fi | |
9688 | ||
9689 | ||
d0191583 | 9690 | ################################################################################ |
ec6a6fbe AK |
9691 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
9692 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
9693 | # Check whether --enable-o_direct was given. |
9694 | if test "${enable_o_direct+set}" = set; then | |
9695 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 9696 | fi |
ad6254c5 | 9697 | |
ec6a6fbe AK |
9698 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
9699 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 9700 | |
d0191583 | 9701 | if test x$ODIRECT = xyes; then |
ad6254c5 | 9702 | |
d0191583 JM |
9703 | cat >>confdefs.h <<\_ACEOF |
9704 | #define O_DIRECT_SUPPORT 1 | |
9705 | _ACEOF | |
ad6254c5 | 9706 | |
d0191583 | 9707 | fi |
ad6254c5 | 9708 | |
d0191583 | 9709 | ################################################################################ |
ec6a6fbe AK |
9710 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
9711 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
9712 | # Check whether --enable-cmdlib was given. |
9713 | if test "${enable_cmdlib+set}" = set; then | |
9714 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 9715 | else |
d0191583 JM |
9716 | CMDLIB=no |
9717 | fi | |
8a2fc586 | 9718 | |
ec6a6fbe AK |
9719 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
9720 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 9721 | |
2a9a80c9 | 9722 | test x$CMDLIB = xyes \ |
d179cc7a JM |
9723 | && LVM2CMD_LIB=-llvm2cmd \ |
9724 | || LVM2CMD_LIB= | |
9725 | ||
93bd259b AK |
9726 | ################################################################################ |
9727 | # Check whether --enable-pkgconfig was given. | |
9728 | if test "${enable_pkgconfig+set}" = set; then | |
9729 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
9730 | else | |
9731 | PKGCONFIG=no | |
9732 | fi | |
9733 | ||
2a9a80c9 | 9734 | |
d0191583 | 9735 | ################################################################################ |
ec6a6fbe AK |
9736 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
9737 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
9738 | # Check whether --enable-fsadm was given. |
9739 | if test "${enable_fsadm+set}" = set; then | |
9740 | enableval=$enable_fsadm; FSADM=$enableval | |
9741 | fi | |
8a2fc586 | 9742 | |
ec6a6fbe AK |
9743 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
9744 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 9745 | |
d0191583 | 9746 | ################################################################################ |
ec6a6fbe AK |
9747 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
9748 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
9749 | # Check whether --enable-dmeventd was given. |
9750 | if test "${enable_dmeventd+set}" = set; then | |
9751 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9752 | fi | |
ad6254c5 | 9753 | |
ec6a6fbe AK |
9754 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
9755 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9756 | |
93bd259b AK |
9757 | BUILD_DMEVENTD=$DMEVENTD |
9758 | ||
2a9a80c9 PR |
9759 | if test x$DMEVENTD = xyes; then |
9760 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 9761 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9762 | " >&5 |
ec6a6fbe | 9763 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9764 | " >&2;} |
d0191583 | 9765 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
9766 | fi |
9767 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 9768 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 9769 | " >&5 |
ec6a6fbe | 9770 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
9771 | " >&2;} |
9772 | { (exit 1); exit 1; }; } | |
9773 | fi | |
ad6254c5 | 9774 | fi |
7a197a62 | 9775 | |
d0191583 JM |
9776 | if test x$DMEVENTD = xyes; then |
9777 | ||
9778 | cat >>confdefs.h <<\_ACEOF | |
9779 | #define DMEVENTD 1 | |
ad6254c5 AK |
9780 | _ACEOF |
9781 | ||
ad6254c5 | 9782 | fi |
93bd259b AK |
9783 | |
9784 | ################################################################################ | |
9785 | ||
ec6a6fbe AK |
9786 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
9787 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 9788 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 9789 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9790 | else |
9791 | ac_check_lib_save_LIBS=$LIBS | |
9792 | LIBS="-lc $LIBS" | |
9793 | cat >conftest.$ac_ext <<_ACEOF | |
9794 | /* confdefs.h. */ | |
9795 | _ACEOF | |
9796 | cat confdefs.h >>conftest.$ac_ext | |
9797 | cat >>conftest.$ac_ext <<_ACEOF | |
9798 | /* end confdefs.h. */ | |
9799 | ||
9800 | /* Override any GCC internal prototype to avoid an error. | |
9801 | Use char because int might match the return type of a GCC | |
9802 | builtin and then its argument prototype would still apply. */ | |
9803 | #ifdef __cplusplus | |
9804 | extern "C" | |
9805 | #endif | |
9806 | char getline (); | |
9807 | int | |
9808 | main () | |
9809 | { | |
9810 | return getline (); | |
9811 | ; | |
9812 | return 0; | |
9813 | } | |
9814 | _ACEOF | |
9815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9816 | if { (ac_try="$ac_link" | |
9817 | case "(($ac_try" in | |
9818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9819 | *) ac_try_echo=$ac_try;; | |
9820 | esac | |
ec6a6fbe AK |
9821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9822 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9823 | (eval "$ac_link") 2>conftest.er1 |
9824 | ac_status=$? | |
9825 | grep -v '^ *+' conftest.er1 >conftest.err | |
9826 | rm -f conftest.er1 | |
9827 | cat conftest.err >&5 | |
ec6a6fbe | 9828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9829 | (exit $ac_status); } && { |
9830 | test -z "$ac_c_werror_flag" || | |
9831 | test ! -s conftest.err | |
ec6a6fbe AK |
9832 | } && test -s conftest$ac_exeext && { |
9833 | test "$cross_compiling" = yes || | |
9834 | $as_test_x conftest$ac_exeext | |
9835 | }; then | |
93bd259b AK |
9836 | ac_cv_lib_c_getline=yes |
9837 | else | |
ec6a6fbe | 9838 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9839 | sed 's/^/| /' conftest.$ac_ext >&5 |
9840 | ||
9841 | ac_cv_lib_c_getline=no | |
9842 | fi | |
9843 | ||
ec6a6fbe | 9844 | rm -rf conftest.dSYM |
93bd259b AK |
9845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9846 | conftest$ac_exeext conftest.$ac_ext | |
9847 | LIBS=$ac_check_lib_save_LIBS | |
9848 | fi | |
ec6a6fbe AK |
9849 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
9850 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9851 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
9852 | |
9853 | cat >>confdefs.h <<\_ACEOF | |
9854 | #define HAVE_GETLINE 1 | |
9855 | _ACEOF | |
9856 | ||
9857 | fi | |
9858 | ||
9859 | ||
9860 | ################################################################################ | |
9861 | ||
ec6a6fbe AK |
9862 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
9863 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 9864 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 9865 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9866 | else |
9867 | ac_check_lib_save_LIBS=$LIBS | |
9868 | LIBS="-lc $LIBS" | |
9869 | cat >conftest.$ac_ext <<_ACEOF | |
9870 | /* confdefs.h. */ | |
9871 | _ACEOF | |
9872 | cat confdefs.h >>conftest.$ac_ext | |
9873 | cat >>conftest.$ac_ext <<_ACEOF | |
9874 | /* end confdefs.h. */ | |
9875 | ||
9876 | /* Override any GCC internal prototype to avoid an error. | |
9877 | Use char because int might match the return type of a GCC | |
9878 | builtin and then its argument prototype would still apply. */ | |
9879 | #ifdef __cplusplus | |
9880 | extern "C" | |
9881 | #endif | |
9882 | char canonicalize_file_name (); | |
9883 | int | |
9884 | main () | |
9885 | { | |
9886 | return canonicalize_file_name (); | |
9887 | ; | |
9888 | return 0; | |
9889 | } | |
9890 | _ACEOF | |
9891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9892 | if { (ac_try="$ac_link" | |
9893 | case "(($ac_try" in | |
9894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9895 | *) ac_try_echo=$ac_try;; | |
9896 | esac | |
ec6a6fbe AK |
9897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9898 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9899 | (eval "$ac_link") 2>conftest.er1 |
9900 | ac_status=$? | |
9901 | grep -v '^ *+' conftest.er1 >conftest.err | |
9902 | rm -f conftest.er1 | |
9903 | cat conftest.err >&5 | |
ec6a6fbe | 9904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9905 | (exit $ac_status); } && { |
9906 | test -z "$ac_c_werror_flag" || | |
9907 | test ! -s conftest.err | |
ec6a6fbe AK |
9908 | } && test -s conftest$ac_exeext && { |
9909 | test "$cross_compiling" = yes || | |
9910 | $as_test_x conftest$ac_exeext | |
9911 | }; then | |
93bd259b AK |
9912 | ac_cv_lib_c_canonicalize_file_name=yes |
9913 | else | |
ec6a6fbe | 9914 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9915 | sed 's/^/| /' conftest.$ac_ext >&5 |
9916 | ||
9917 | ac_cv_lib_c_canonicalize_file_name=no | |
9918 | fi | |
9919 | ||
ec6a6fbe | 9920 | rm -rf conftest.dSYM |
93bd259b AK |
9921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9922 | conftest$ac_exeext conftest.$ac_ext | |
9923 | LIBS=$ac_check_lib_save_LIBS | |
9924 | fi | |
ec6a6fbe AK |
9925 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
9926 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9927 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
9928 | |
9929 | cat >>confdefs.h <<\_ACEOF | |
9930 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9931 | _ACEOF | |
9932 | ||
9933 | fi | |
9934 | ||
9935 | ||
d0191583 JM |
9936 | ################################################################################ |
9937 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9938 | then exec_prefix=""; | |
9939 | fi; | |
ad6254c5 AK |
9940 | |
9941 | ################################################################################ | |
06e459df | 9942 | if test x$READLINE != xno; then |
ec6a6fbe AK |
9943 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9944 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 9945 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 9946 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9947 | else |
9948 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9949 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9950 | /* confdefs.h. */ |
9951 | _ACEOF | |
9952 | cat confdefs.h >>conftest.$ac_ext | |
9953 | cat >>conftest.$ac_ext <<_ACEOF | |
9954 | /* end confdefs.h. */ | |
9955 | ||
7a197a62 AK |
9956 | /* Override any GCC internal prototype to avoid an error. |
9957 | Use char because int might match the return type of a GCC | |
9958 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9959 | #ifdef __cplusplus |
9960 | extern "C" | |
9961 | #endif | |
ad6254c5 AK |
9962 | char tgetent (); |
9963 | int | |
9964 | main () | |
9965 | { | |
7a197a62 | 9966 | return tgetent (); |
ad6254c5 AK |
9967 | ; |
9968 | return 0; | |
9969 | } | |
9970 | _ACEOF | |
18dcfb69 | 9971 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
9972 | if test -z "$ac_lib"; then |
9973 | ac_res="none required" | |
9974 | else | |
9975 | ac_res=-l$ac_lib | |
9976 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9977 | fi | |
9978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9979 | if { (ac_try="$ac_link" | |
9980 | case "(($ac_try" in | |
9981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9982 | *) ac_try_echo=$ac_try;; | |
9983 | esac | |
ec6a6fbe AK |
9984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9985 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9986 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9987 | ac_status=$? |
8a2fc586 AK |
9988 | grep -v '^ *+' conftest.er1 >conftest.err |
9989 | rm -f conftest.er1 | |
9990 | cat conftest.err >&5 | |
ec6a6fbe | 9991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9992 | (exit $ac_status); } && { |
9993 | test -z "$ac_c_werror_flag" || | |
9994 | test ! -s conftest.err | |
ec6a6fbe AK |
9995 | } && test -s conftest$ac_exeext && { |
9996 | test "$cross_compiling" = yes || | |
9997 | $as_test_x conftest$ac_exeext | |
9998 | }; then | |
7a197a62 | 9999 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 10000 | else |
ec6a6fbe | 10001 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10002 | sed 's/^/| /' conftest.$ac_ext >&5 |
10003 | ||
ad6254c5 | 10004 | |
7a197a62 | 10005 | fi |
ad6254c5 | 10006 | |
ec6a6fbe | 10007 | rm -rf conftest.dSYM |
25fbec5b | 10008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
10009 | conftest$ac_exeext |
10010 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10011 | break | |
ad6254c5 | 10012 | fi |
7a197a62 AK |
10013 | done |
10014 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10015 | : | |
10016 | else | |
10017 | ac_cv_search_tgetent=no | |
ad6254c5 | 10018 | fi |
7a197a62 | 10019 | rm conftest.$ac_ext |
ad6254c5 AK |
10020 | LIBS=$ac_func_search_save_LIBS |
10021 | fi | |
ec6a6fbe AK |
10022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
10023 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
10024 | ac_res=$ac_cv_search_tgetent |
10025 | if test "$ac_res" != no; then | |
10026 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 10027 | tg_found=yes |
ad6254c5 | 10028 | else |
06e459df JM |
10029 | tg_found=no |
10030 | fi | |
10031 | ||
10032 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 10033 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
10034 | --enable-readline option (which is enabled by default). Either disable readline |
10035 | support with --disable-readline or download and install termcap from: | |
10036 | ftp.gnu.org/gnu/termcap | |
10037 | Note: if you are using precompiled packages you will also need the development | |
10038 | package as well (which may be called termcap-devel or something similar). | |
10039 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10040 | not found either - but you could try installing that as well. | |
10041 | " >&5 | |
ec6a6fbe | 10042 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
10043 | --enable-readline option (which is enabled by default). Either disable readline |
10044 | support with --disable-readline or download and install termcap from: | |
10045 | ftp.gnu.org/gnu/termcap | |
10046 | Note: if you are using precompiled packages you will also need the development | |
10047 | package as well (which may be called termcap-devel or something similar). | |
10048 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10049 | not found either - but you could try installing that as well. | |
10050 | " >&2;} | |
10051 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
10052 | fi |
10053 | ||
10054 | ################################################################################ | |
ec6a6fbe AK |
10055 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10056 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 10057 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 10058 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10059 | else |
10060 | ac_check_lib_save_LIBS=$LIBS | |
10061 | LIBS="-ldl $LIBS" | |
10062 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10063 | /* confdefs.h. */ |
10064 | _ACEOF | |
10065 | cat confdefs.h >>conftest.$ac_ext | |
10066 | cat >>conftest.$ac_ext <<_ACEOF | |
10067 | /* end confdefs.h. */ | |
10068 | ||
7a197a62 AK |
10069 | /* Override any GCC internal prototype to avoid an error. |
10070 | Use char because int might match the return type of a GCC | |
10071 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10072 | #ifdef __cplusplus |
10073 | extern "C" | |
10074 | #endif | |
ad6254c5 AK |
10075 | char dlopen (); |
10076 | int | |
10077 | main () | |
10078 | { | |
7a197a62 | 10079 | return dlopen (); |
ad6254c5 AK |
10080 | ; |
10081 | return 0; | |
10082 | } | |
10083 | _ACEOF | |
10084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10085 | if { (ac_try="$ac_link" |
10086 | case "(($ac_try" in | |
10087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10088 | *) ac_try_echo=$ac_try;; | |
10089 | esac | |
ec6a6fbe AK |
10090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10091 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10092 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10093 | ac_status=$? |
8a2fc586 AK |
10094 | grep -v '^ *+' conftest.er1 >conftest.err |
10095 | rm -f conftest.er1 | |
10096 | cat conftest.err >&5 | |
ec6a6fbe | 10097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10098 | (exit $ac_status); } && { |
10099 | test -z "$ac_c_werror_flag" || | |
10100 | test ! -s conftest.err | |
ec6a6fbe AK |
10101 | } && test -s conftest$ac_exeext && { |
10102 | test "$cross_compiling" = yes || | |
10103 | $as_test_x conftest$ac_exeext | |
10104 | }; then | |
ad6254c5 AK |
10105 | ac_cv_lib_dl_dlopen=yes |
10106 | else | |
ec6a6fbe | 10107 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10108 | sed 's/^/| /' conftest.$ac_ext >&5 |
10109 | ||
7a197a62 | 10110 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 10111 | fi |
7a197a62 | 10112 | |
ec6a6fbe | 10113 | rm -rf conftest.dSYM |
25fbec5b | 10114 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10115 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10116 | LIBS=$ac_check_lib_save_LIBS |
10117 | fi | |
ec6a6fbe AK |
10118 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10119 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10120 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
10121 | HAVE_LIBDL=yes |
10122 | else | |
10123 | HAVE_LIBDL=no | |
10124 | fi | |
10125 | ||
10126 | ||
7e9e9502 | 10127 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
10128 | |
10129 | cat >>confdefs.h <<\_ACEOF | |
10130 | #define HAVE_LIBDL 1 | |
10131 | _ACEOF | |
10132 | ||
ad6254c5 AK |
10133 | LIBS="-ldl $LIBS" |
10134 | else | |
10135 | HAVE_LIBDL=no | |
10136 | fi | |
10137 | ||
10138 | ################################################################################ | |
10139 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
10140 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
10141 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 10142 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 10143 | " >&5 |
ec6a6fbe | 10144 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
10145 | " >&2;} |
10146 | { (exit 1); exit 1; }; } | |
10147 | fi | |
10148 | ||
d0191583 | 10149 | ################################################################################ |
ec6a6fbe AK |
10150 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
10151 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
10152 | # Check whether --enable-selinux was given. |
10153 | if test "${enable_selinux+set}" = set; then | |
10154 | enableval=$enable_selinux; SELINUX=$enableval | |
10155 | fi | |
10156 | ||
ec6a6fbe AK |
10157 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
10158 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 10159 | |
ad6254c5 AK |
10160 | ################################################################################ |
10161 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
10162 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
10163 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 10164 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 10165 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
10166 | else |
10167 | ac_check_lib_save_LIBS=$LIBS | |
10168 | LIBS="-lsepol $LIBS" | |
10169 | cat >conftest.$ac_ext <<_ACEOF | |
10170 | /* confdefs.h. */ | |
10171 | _ACEOF | |
10172 | cat confdefs.h >>conftest.$ac_ext | |
10173 | cat >>conftest.$ac_ext <<_ACEOF | |
10174 | /* end confdefs.h. */ | |
10175 | ||
7a197a62 AK |
10176 | /* Override any GCC internal prototype to avoid an error. |
10177 | Use char because int might match the return type of a GCC | |
10178 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
10179 | #ifdef __cplusplus |
10180 | extern "C" | |
10181 | #endif | |
8a2fc586 AK |
10182 | char sepol_check_context (); |
10183 | int | |
10184 | main () | |
10185 | { | |
7a197a62 | 10186 | return sepol_check_context (); |
8a2fc586 AK |
10187 | ; |
10188 | return 0; | |
10189 | } | |
10190 | _ACEOF | |
10191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10192 | if { (ac_try="$ac_link" |
10193 | case "(($ac_try" in | |
10194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10195 | *) ac_try_echo=$ac_try;; | |
10196 | esac | |
ec6a6fbe AK |
10197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10198 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10199 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
10200 | ac_status=$? |
10201 | grep -v '^ *+' conftest.er1 >conftest.err | |
10202 | rm -f conftest.er1 | |
10203 | cat conftest.err >&5 | |
ec6a6fbe | 10204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10205 | (exit $ac_status); } && { |
10206 | test -z "$ac_c_werror_flag" || | |
10207 | test ! -s conftest.err | |
ec6a6fbe AK |
10208 | } && test -s conftest$ac_exeext && { |
10209 | test "$cross_compiling" = yes || | |
10210 | $as_test_x conftest$ac_exeext | |
10211 | }; then | |
8a2fc586 AK |
10212 | ac_cv_lib_sepol_sepol_check_context=yes |
10213 | else | |
ec6a6fbe | 10214 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
10215 | sed 's/^/| /' conftest.$ac_ext >&5 |
10216 | ||
7a197a62 | 10217 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 10218 | fi |
7a197a62 | 10219 | |
ec6a6fbe | 10220 | rm -rf conftest.dSYM |
25fbec5b | 10221 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
10222 | conftest$ac_exeext conftest.$ac_ext |
10223 | LIBS=$ac_check_lib_save_LIBS | |
10224 | fi | |
ec6a6fbe AK |
10225 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
10226 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
10227 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
10228 | HAVE_SEPOL=yes |
10229 | else | |
10230 | HAVE_SEPOL=no | |
10231 | fi | |
10232 | ||
8a2fc586 AK |
10233 | |
10234 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
10235 | |
10236 | cat >>confdefs.h <<\_ACEOF | |
10237 | #define HAVE_SEPOL 1 | |
10238 | _ACEOF | |
10239 | ||
8a2fc586 AK |
10240 | LIBS="-lsepol $LIBS" |
10241 | fi | |
10242 | ||
ec6a6fbe AK |
10243 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
10244 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 10245 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 10246 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10247 | else |
10248 | ac_check_lib_save_LIBS=$LIBS | |
10249 | LIBS="-lselinux $LIBS" | |
10250 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10251 | /* confdefs.h. */ |
10252 | _ACEOF | |
10253 | cat confdefs.h >>conftest.$ac_ext | |
10254 | cat >>conftest.$ac_ext <<_ACEOF | |
10255 | /* end confdefs.h. */ | |
10256 | ||
7a197a62 AK |
10257 | /* Override any GCC internal prototype to avoid an error. |
10258 | Use char because int might match the return type of a GCC | |
10259 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10260 | #ifdef __cplusplus |
10261 | extern "C" | |
10262 | #endif | |
ad6254c5 AK |
10263 | char is_selinux_enabled (); |
10264 | int | |
10265 | main () | |
10266 | { | |
7a197a62 | 10267 | return is_selinux_enabled (); |
ad6254c5 AK |
10268 | ; |
10269 | return 0; | |
10270 | } | |
10271 | _ACEOF | |
10272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10273 | if { (ac_try="$ac_link" |
10274 | case "(($ac_try" in | |
10275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10276 | *) ac_try_echo=$ac_try;; | |
10277 | esac | |
ec6a6fbe AK |
10278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10279 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10280 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10281 | ac_status=$? |
8a2fc586 AK |
10282 | grep -v '^ *+' conftest.er1 >conftest.err |
10283 | rm -f conftest.er1 | |
10284 | cat conftest.err >&5 | |
ec6a6fbe | 10285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10286 | (exit $ac_status); } && { |
10287 | test -z "$ac_c_werror_flag" || | |
10288 | test ! -s conftest.err | |
ec6a6fbe AK |
10289 | } && test -s conftest$ac_exeext && { |
10290 | test "$cross_compiling" = yes || | |
10291 | $as_test_x conftest$ac_exeext | |
10292 | }; then | |
ad6254c5 AK |
10293 | ac_cv_lib_selinux_is_selinux_enabled=yes |
10294 | else | |
ec6a6fbe | 10295 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10296 | sed 's/^/| /' conftest.$ac_ext >&5 |
10297 | ||
7a197a62 | 10298 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 10299 | fi |
7a197a62 | 10300 | |
ec6a6fbe | 10301 | rm -rf conftest.dSYM |
25fbec5b | 10302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10303 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10304 | LIBS=$ac_check_lib_save_LIBS |
10305 | fi | |
ec6a6fbe AK |
10306 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
10307 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
10308 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
10309 | HAVE_SELINUX=yes |
10310 | else | |
10311 | HAVE_SELINUX=no | |
10312 | fi | |
10313 | ||
ad6254c5 AK |
10314 | |
10315 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
10316 | |
10317 | cat >>confdefs.h <<\_ACEOF | |
10318 | #define HAVE_SELINUX 1 | |
10319 | _ACEOF | |
10320 | ||
ad6254c5 AK |
10321 | LIBS="-lselinux $LIBS" |
10322 | else | |
ec6a6fbe AK |
10323 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
10324 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
10325 | fi |
10326 | ||
d0191583 | 10327 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
10328 | # fails on at least Debian unstable due to unsatisfied references |
10329 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
10330 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
10331 | lvm_saved_libs=$LIBS | |
10332 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
10333 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
10334 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 10335 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 10336 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
10337 | else |
10338 | ac_func_search_save_LIBS=$LIBS | |
10339 | cat >conftest.$ac_ext <<_ACEOF | |
10340 | /* confdefs.h. */ | |
10341 | _ACEOF | |
10342 | cat confdefs.h >>conftest.$ac_ext | |
10343 | cat >>conftest.$ac_ext <<_ACEOF | |
10344 | /* end confdefs.h. */ | |
10345 | ||
10346 | /* Override any GCC internal prototype to avoid an error. | |
10347 | Use char because int might match the return type of a GCC | |
10348 | builtin and then its argument prototype would still apply. */ | |
10349 | #ifdef __cplusplus | |
10350 | extern "C" | |
10351 | #endif | |
10352 | char pthread_mutex_lock (); | |
10353 | int | |
10354 | main () | |
10355 | { | |
10356 | return pthread_mutex_lock (); | |
10357 | ; | |
10358 | return 0; | |
10359 | } | |
10360 | _ACEOF | |
10361 | for ac_lib in '' pthread; do | |
10362 | if test -z "$ac_lib"; then | |
10363 | ac_res="none required" | |
10364 | else | |
10365 | ac_res=-l$ac_lib | |
10366 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10367 | fi | |
10368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10369 | if { (ac_try="$ac_link" | |
10370 | case "(($ac_try" in | |
10371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10372 | *) ac_try_echo=$ac_try;; | |
10373 | esac | |
ec6a6fbe AK |
10374 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10375 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
10376 | (eval "$ac_link") 2>conftest.er1 |
10377 | ac_status=$? | |
10378 | grep -v '^ *+' conftest.er1 >conftest.err | |
10379 | rm -f conftest.er1 | |
10380 | cat conftest.err >&5 | |
ec6a6fbe | 10381 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10382 | (exit $ac_status); } && { |
10383 | test -z "$ac_c_werror_flag" || | |
10384 | test ! -s conftest.err | |
ec6a6fbe AK |
10385 | } && test -s conftest$ac_exeext && { |
10386 | test "$cross_compiling" = yes || | |
10387 | $as_test_x conftest$ac_exeext | |
10388 | }; then | |
66e941e8 JM |
10389 | ac_cv_search_pthread_mutex_lock=$ac_res |
10390 | else | |
ec6a6fbe | 10391 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
10392 | sed 's/^/| /' conftest.$ac_ext >&5 |
10393 | ||
10394 | ||
10395 | fi | |
10396 | ||
ec6a6fbe | 10397 | rm -rf conftest.dSYM |
25fbec5b | 10398 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
10399 | conftest$ac_exeext |
10400 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10401 | break | |
10402 | fi | |
10403 | done | |
10404 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10405 | : | |
10406 | else | |
10407 | ac_cv_search_pthread_mutex_lock=no | |
10408 | fi | |
10409 | rm conftest.$ac_ext | |
10410 | LIBS=$ac_func_search_save_LIBS | |
10411 | fi | |
ec6a6fbe AK |
10412 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
10413 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
10414 | ac_res=$ac_cv_search_pthread_mutex_lock |
10415 | if test "$ac_res" != no; then | |
10416 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10417 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
10418 | LIB_PTHREAD=-lpthread | |
10419 | fi | |
10420 | ||
10421 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
10422 | fi |
10423 | fi | |
10424 | ||
8b1a3214 AK |
10425 | ################################################################################ |
10426 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
10427 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
10428 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 10429 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 10430 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
10431 | else |
10432 | ac_check_lib_save_LIBS=$LIBS | |
10433 | LIBS="-lrt $LIBS" | |
10434 | cat >conftest.$ac_ext <<_ACEOF | |
10435 | /* confdefs.h. */ | |
10436 | _ACEOF | |
10437 | cat confdefs.h >>conftest.$ac_ext | |
10438 | cat >>conftest.$ac_ext <<_ACEOF | |
10439 | /* end confdefs.h. */ | |
10440 | ||
7a197a62 AK |
10441 | /* Override any GCC internal prototype to avoid an error. |
10442 | Use char because int might match the return type of a GCC | |
10443 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
10444 | #ifdef __cplusplus |
10445 | extern "C" | |
10446 | #endif | |
8b1a3214 AK |
10447 | char clock_gettime (); |
10448 | int | |
10449 | main () | |
10450 | { | |
7a197a62 | 10451 | return clock_gettime (); |
8b1a3214 AK |
10452 | ; |
10453 | return 0; | |
10454 | } | |
10455 | _ACEOF | |
10456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10457 | if { (ac_try="$ac_link" |
10458 | case "(($ac_try" in | |
10459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10460 | *) ac_try_echo=$ac_try;; | |
10461 | esac | |
ec6a6fbe AK |
10462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10463 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10464 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
10465 | ac_status=$? |
10466 | grep -v '^ *+' conftest.er1 >conftest.err | |
10467 | rm -f conftest.er1 | |
10468 | cat conftest.err >&5 | |
ec6a6fbe | 10469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10470 | (exit $ac_status); } && { |
10471 | test -z "$ac_c_werror_flag" || | |
10472 | test ! -s conftest.err | |
ec6a6fbe AK |
10473 | } && test -s conftest$ac_exeext && { |
10474 | test "$cross_compiling" = yes || | |
10475 | $as_test_x conftest$ac_exeext | |
10476 | }; then | |
8b1a3214 AK |
10477 | ac_cv_lib_rt_clock_gettime=yes |
10478 | else | |
ec6a6fbe | 10479 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
10480 | sed 's/^/| /' conftest.$ac_ext >&5 |
10481 | ||
7a197a62 | 10482 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 10483 | fi |
7a197a62 | 10484 | |
ec6a6fbe | 10485 | rm -rf conftest.dSYM |
25fbec5b | 10486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
10487 | conftest$ac_exeext conftest.$ac_ext |
10488 | LIBS=$ac_check_lib_save_LIBS | |
10489 | fi | |
ec6a6fbe AK |
10490 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
10491 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
10492 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
10493 | HAVE_REALTIME=yes |
10494 | else | |
10495 | HAVE_REALTIME=no | |
10496 | fi | |
10497 | ||
8b1a3214 AK |
10498 | |
10499 | if test x$HAVE_REALTIME = xyes; then | |
10500 | ||
10501 | cat >>confdefs.h <<\_ACEOF | |
10502 | #define HAVE_REALTIME 1 | |
10503 | _ACEOF | |
10504 | ||
10505 | LIBS="-lrt $LIBS" | |
10506 | else | |
ec6a6fbe AK |
10507 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
10508 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
10509 | fi |
10510 | fi | |
10511 | ||
ad6254c5 AK |
10512 | ################################################################################ |
10513 | ||
10514 | for ac_header in getopt.h | |
10515 | do | |
ec6a6fbe | 10516 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10518 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10519 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10521 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10522 | fi |
ec6a6fbe AK |
10523 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10524 | $as_echo "$as_val"'` | |
10525 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10526 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10527 | else |
10528 | # Is the header compilable? | |
ec6a6fbe AK |
10529 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10530 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10531 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10532 | /* confdefs.h. */ |
10533 | _ACEOF | |
10534 | cat confdefs.h >>conftest.$ac_ext | |
10535 | cat >>conftest.$ac_ext <<_ACEOF | |
10536 | /* end confdefs.h. */ | |
10537 | $ac_includes_default | |
10538 | #include <$ac_header> | |
10539 | _ACEOF | |
10540 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10541 | if { (ac_try="$ac_compile" |
10542 | case "(($ac_try" in | |
10543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10544 | *) ac_try_echo=$ac_try;; | |
10545 | esac | |
ec6a6fbe AK |
10546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10547 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10548 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10549 | ac_status=$? |
8a2fc586 AK |
10550 | grep -v '^ *+' conftest.er1 >conftest.err |
10551 | rm -f conftest.er1 | |
10552 | cat conftest.err >&5 | |
ec6a6fbe | 10553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10554 | (exit $ac_status); } && { |
10555 | test -z "$ac_c_werror_flag" || | |
10556 | test ! -s conftest.err | |
10557 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10558 | ac_header_compiler=yes |
10559 | else | |
ec6a6fbe | 10560 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10561 | sed 's/^/| /' conftest.$ac_ext >&5 |
10562 | ||
7a197a62 | 10563 | ac_header_compiler=no |
ad6254c5 | 10564 | fi |
7a197a62 AK |
10565 | |
10566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10567 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10568 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10569 | |
10570 | # Is the header present? | |
ec6a6fbe AK |
10571 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10572 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10573 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10574 | /* confdefs.h. */ |
10575 | _ACEOF | |
10576 | cat confdefs.h >>conftest.$ac_ext | |
10577 | cat >>conftest.$ac_ext <<_ACEOF | |
10578 | /* end confdefs.h. */ | |
10579 | #include <$ac_header> | |
10580 | _ACEOF | |
7a197a62 AK |
10581 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10582 | case "(($ac_try" in | |
10583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10584 | *) ac_try_echo=$ac_try;; | |
10585 | esac | |
ec6a6fbe AK |
10586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10587 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10588 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10589 | ac_status=$? |
10590 | grep -v '^ *+' conftest.er1 >conftest.err | |
10591 | rm -f conftest.er1 | |
10592 | cat conftest.err >&5 | |
ec6a6fbe | 10593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10594 | (exit $ac_status); } >/dev/null && { |
10595 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10596 | test ! -s conftest.err | |
10597 | }; then | |
ad6254c5 AK |
10598 | ac_header_preproc=yes |
10599 | else | |
ec6a6fbe | 10600 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10601 | sed 's/^/| /' conftest.$ac_ext >&5 |
10602 | ||
10603 | ac_header_preproc=no | |
10604 | fi | |
7a197a62 | 10605 | |
ad6254c5 | 10606 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10607 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10608 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10609 | |
10610 | # So? What about this header? | |
8a2fc586 AK |
10611 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10612 | yes:no: ) | |
ec6a6fbe AK |
10613 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10614 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10615 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10616 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10617 | ac_header_preproc=yes |
ad6254c5 | 10618 | ;; |
8a2fc586 | 10619 | no:yes:* ) |
ec6a6fbe AK |
10620 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10621 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10622 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10623 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10624 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10625 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10626 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10627 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10629 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10630 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10631 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10632 | |
ad6254c5 AK |
10633 | ;; |
10634 | esac | |
ec6a6fbe AK |
10635 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10636 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10637 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10638 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10639 | else |
8a2fc586 | 10640 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10641 | fi |
ec6a6fbe AK |
10642 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10643 | $as_echo "$as_val"'` | |
10644 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10645 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10646 | |
10647 | fi | |
ec6a6fbe AK |
10648 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10649 | $as_echo "$as_val"'` | |
10650 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10651 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10652 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10653 | _ACEOF |
72b2cb61 AK |
10654 | |
10655 | cat >>confdefs.h <<\_ACEOF | |
10656 | #define HAVE_GETOPTLONG 1 | |
10657 | _ACEOF | |
10658 | ||
ad6254c5 AK |
10659 | fi |
10660 | ||
10661 | done | |
10662 | ||
10663 | ||
10664 | ################################################################################ | |
06e459df | 10665 | if test x$READLINE != xno; then |
bc1024f8 JM |
10666 | rl_found=yes |
10667 | ||
ec6a6fbe AK |
10668 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10669 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 10670 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 10671 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10672 | else |
10673 | ac_check_lib_save_LIBS=$LIBS | |
10674 | LIBS="-lreadline $LIBS" | |
10675 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10676 | /* confdefs.h. */ |
10677 | _ACEOF | |
10678 | cat confdefs.h >>conftest.$ac_ext | |
10679 | cat >>conftest.$ac_ext <<_ACEOF | |
10680 | /* end confdefs.h. */ | |
10681 | ||
7a197a62 AK |
10682 | /* Override any GCC internal prototype to avoid an error. |
10683 | Use char because int might match the return type of a GCC | |
10684 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10685 | #ifdef __cplusplus |
10686 | extern "C" | |
10687 | #endif | |
ad6254c5 AK |
10688 | char readline (); |
10689 | int | |
10690 | main () | |
10691 | { | |
7a197a62 | 10692 | return readline (); |
ad6254c5 AK |
10693 | ; |
10694 | return 0; | |
10695 | } | |
10696 | _ACEOF | |
10697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10698 | if { (ac_try="$ac_link" |
10699 | case "(($ac_try" in | |
10700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10701 | *) ac_try_echo=$ac_try;; | |
10702 | esac | |
ec6a6fbe AK |
10703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10704 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10705 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10706 | ac_status=$? |
8a2fc586 AK |
10707 | grep -v '^ *+' conftest.er1 >conftest.err |
10708 | rm -f conftest.er1 | |
10709 | cat conftest.err >&5 | |
ec6a6fbe | 10710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10711 | (exit $ac_status); } && { |
10712 | test -z "$ac_c_werror_flag" || | |
10713 | test ! -s conftest.err | |
ec6a6fbe AK |
10714 | } && test -s conftest$ac_exeext && { |
10715 | test "$cross_compiling" = yes || | |
10716 | $as_test_x conftest$ac_exeext | |
10717 | }; then | |
ad6254c5 AK |
10718 | ac_cv_lib_readline_readline=yes |
10719 | else | |
ec6a6fbe | 10720 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10721 | sed 's/^/| /' conftest.$ac_ext >&5 |
10722 | ||
7a197a62 | 10723 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10724 | fi |
7a197a62 | 10725 | |
ec6a6fbe | 10726 | rm -rf conftest.dSYM |
25fbec5b | 10727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10728 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10729 | LIBS=$ac_check_lib_save_LIBS |
10730 | fi | |
ec6a6fbe AK |
10731 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10732 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
10733 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
10734 | cat >>confdefs.h <<_ACEOF |
10735 | #define HAVE_LIBREADLINE 1 | |
10736 | _ACEOF | |
10737 | ||
10738 | LIBS="-lreadline $LIBS" | |
10739 | ||
ad6254c5 | 10740 | else |
06e459df JM |
10741 | rl_found=no |
10742 | fi | |
10743 | ||
10744 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 10745 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10746 | --enable-readline option (which is enabled by default). Either disable readline |
10747 | support with --disable-readline or download and install readline from: | |
10748 | ftp.gnu.org/gnu/readline | |
10749 | Note: if you are using precompiled packages you will also need the development | |
10750 | package as well (which may be called readline-devel or something similar). | |
10751 | " >&5 | |
ec6a6fbe | 10752 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10753 | --enable-readline option (which is enabled by default). Either disable readline |
10754 | support with --disable-readline or download and install readline from: | |
10755 | ftp.gnu.org/gnu/readline | |
10756 | Note: if you are using precompiled packages you will also need the development | |
10757 | package as well (which may be called readline-devel or something similar). | |
10758 | " >&2;} | |
10759 | { (exit 1); exit 1; }; } | |
06e459df | 10760 | if test $rl_found = yes; then |
bc1024f8 JM |
10761 | |
10762 | for ac_func in rl_completion_matches | |
10763 | do | |
ec6a6fbe AK |
10764 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10765 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10766 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 10767 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10768 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10769 | else |
10770 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10771 | /* confdefs.h. */ |
10772 | _ACEOF | |
10773 | cat confdefs.h >>conftest.$ac_ext | |
10774 | cat >>conftest.$ac_ext <<_ACEOF | |
10775 | /* end confdefs.h. */ | |
bc1024f8 | 10776 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 10777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 10778 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 10779 | |
ad6254c5 | 10780 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 10781 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
10782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10783 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10784 | |
ad6254c5 AK |
10785 | #ifdef __STDC__ |
10786 | # include <limits.h> | |
10787 | #else | |
10788 | # include <assert.h> | |
10789 | #endif | |
8a2fc586 | 10790 | |
bc1024f8 | 10791 | #undef $ac_func |
8a2fc586 | 10792 | |
7a197a62 AK |
10793 | /* Override any GCC internal prototype to avoid an error. |
10794 | Use char because int might match the return type of a GCC | |
10795 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10796 | #ifdef __cplusplus |
10797 | extern "C" | |
ad6254c5 | 10798 | #endif |
bc1024f8 | 10799 | char $ac_func (); |
ad6254c5 AK |
10800 | /* The GNU C library defines this for functions which it implements |
10801 | to always fail with ENOSYS. Some functions are actually named | |
10802 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 10803 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10804 | choke me |
ad6254c5 AK |
10805 | #endif |
10806 | ||
10807 | int | |
10808 | main () | |
10809 | { | |
bc1024f8 | 10810 | return $ac_func (); |
ad6254c5 AK |
10811 | ; |
10812 | return 0; | |
10813 | } | |
10814 | _ACEOF | |
10815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10816 | if { (ac_try="$ac_link" |
10817 | case "(($ac_try" in | |
10818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10819 | *) ac_try_echo=$ac_try;; | |
10820 | esac | |
ec6a6fbe AK |
10821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10822 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10823 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10824 | ac_status=$? |
8a2fc586 AK |
10825 | grep -v '^ *+' conftest.er1 >conftest.err |
10826 | rm -f conftest.er1 | |
10827 | cat conftest.err >&5 | |
ec6a6fbe | 10828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10829 | (exit $ac_status); } && { |
10830 | test -z "$ac_c_werror_flag" || | |
10831 | test ! -s conftest.err | |
ec6a6fbe AK |
10832 | } && test -s conftest$ac_exeext && { |
10833 | test "$cross_compiling" = yes || | |
10834 | $as_test_x conftest$ac_exeext | |
10835 | }; then | |
bc1024f8 | 10836 | eval "$as_ac_var=yes" |
ad6254c5 | 10837 | else |
ec6a6fbe | 10838 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10839 | sed 's/^/| /' conftest.$ac_ext >&5 |
10840 | ||
bc1024f8 | 10841 | eval "$as_ac_var=no" |
ad6254c5 | 10842 | fi |
7a197a62 | 10843 | |
ec6a6fbe | 10844 | rm -rf conftest.dSYM |
25fbec5b | 10845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10846 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10847 | fi |
ec6a6fbe AK |
10848 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10849 | $as_echo "$as_val"'` | |
10850 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10851 | $as_echo "$ac_res" >&6; } | |
10852 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10853 | $as_echo "$as_val"'` | |
10854 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 10855 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10856 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
10857 | _ACEOF |
10858 | ||
10859 | fi | |
bc1024f8 | 10860 | done |
ad6254c5 | 10861 | |
d179cc7a JM |
10862 | |
10863 | cat >>confdefs.h <<\_ACEOF | |
10864 | #define READLINE_SUPPORT 1 | |
10865 | _ACEOF | |
10866 | ||
06e459df | 10867 | fi |
ad6254c5 AK |
10868 | fi |
10869 | ||
10870 | ################################################################################ | |
ec6a6fbe AK |
10871 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10872 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 10873 | # Check whether --enable-nls was given. |
ad6254c5 | 10874 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10875 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10876 | else |
10877 | INTL=no | |
7a197a62 AK |
10878 | fi |
10879 | ||
ec6a6fbe AK |
10880 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
10881 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
10882 | |
10883 | if test x$INTL = xyes; then | |
93bd259b | 10884 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10885 | INTL_PACKAGE="lvm2" |
10886 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10887 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
10888 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10889 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 10890 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 10891 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10892 | else |
10893 | case $MSGFMT in | |
10894 | [\\/]* | ?:[\\/]*) | |
10895 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10896 | ;; | |
10897 | *) | |
10898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10899 | for as_dir in $PATH | |
10900 | do | |
10901 | IFS=$as_save_IFS | |
10902 | test -z "$as_dir" && as_dir=. | |
10903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10905 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 10906 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10907 | break 2 |
10908 | fi | |
10909 | done | |
10910 | done | |
7a197a62 | 10911 | IFS=$as_save_IFS |
ad6254c5 AK |
10912 | |
10913 | ;; | |
10914 | esac | |
10915 | fi | |
10916 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10917 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
10918 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10919 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 10920 | else |
ec6a6fbe AK |
10921 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10922 | $as_echo "no" >&6; } | |
ad6254c5 AK |
10923 | fi |
10924 | ||
7a197a62 | 10925 | |
ad6254c5 | 10926 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 10927 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10928 | " >&5 |
ec6a6fbe | 10929 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10930 | " >&2;} |
10931 | { (exit 1); exit 1; }; } | |
10932 | fi; | |
10933 | ||
10934 | ||
7a197a62 | 10935 | # Check whether --with-localedir was given. |
ad6254c5 | 10936 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10937 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10938 | else |
10939 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10940 | fi |
10941 | ||
ad6254c5 AK |
10942 | fi |
10943 | ||
10944 | ################################################################################ | |
10945 | ||
7a197a62 | 10946 | # Check whether --with-confdir was given. |
ad6254c5 | 10947 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10948 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10949 | else |
10950 | CONFDIR='/etc' | |
7a197a62 AK |
10951 | fi |
10952 | ||
ad6254c5 AK |
10953 | |
10954 | ||
7a197a62 | 10955 | # Check whether --with-staticdir was given. |
ad6254c5 | 10956 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10957 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10958 | else |
10959 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10960 | fi |
ad6254c5 | 10961 | |
33f732c5 | 10962 | |
7a197a62 | 10963 | |
68f2de6d AK |
10964 | # Check whether --with-usrlibdir was given. |
10965 | if test "${with_usrlibdir+set}" = set; then | |
10966 | withval=$with_usrlibdir; usrlibdir="$withval" | |
10967 | else | |
10968 | usrlibdir='${prefix}/lib' | |
10969 | fi | |
10970 | ||
10971 | ||
10972 | ||
10973 | # Check whether --with-usrsbindir was given. | |
10974 | if test "${with_usrsbindir+set}" = set; then | |
10975 | withval=$with_usrsbindir; usrsbindir="$withval" | |
10976 | else | |
10977 | usrsbindir='${prefix}/sbin' | |
10978 | fi | |
10979 | ||
10980 | ||
ad6254c5 AK |
10981 | ################################################################################ |
10982 | if test x$READLINE = xyes; then | |
10983 | ||
10984 | ||
10985 | for ac_header in readline/readline.h readline/history.h | |
10986 | do | |
ec6a6fbe | 10987 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10989 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10990 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10992 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10993 | fi |
ec6a6fbe AK |
10994 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10995 | $as_echo "$as_val"'` | |
10996 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10997 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10998 | else |
10999 | # Is the header compilable? | |
ec6a6fbe AK |
11000 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11001 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11002 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11003 | /* confdefs.h. */ |
11004 | _ACEOF | |
11005 | cat confdefs.h >>conftest.$ac_ext | |
11006 | cat >>conftest.$ac_ext <<_ACEOF | |
11007 | /* end confdefs.h. */ | |
11008 | $ac_includes_default | |
11009 | #include <$ac_header> | |
11010 | _ACEOF | |
11011 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11012 | if { (ac_try="$ac_compile" |
11013 | case "(($ac_try" in | |
11014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11015 | *) ac_try_echo=$ac_try;; | |
11016 | esac | |
ec6a6fbe AK |
11017 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11018 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11019 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11020 | ac_status=$? |
8a2fc586 AK |
11021 | grep -v '^ *+' conftest.er1 >conftest.err |
11022 | rm -f conftest.er1 | |
11023 | cat conftest.err >&5 | |
ec6a6fbe | 11024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11025 | (exit $ac_status); } && { |
11026 | test -z "$ac_c_werror_flag" || | |
11027 | test ! -s conftest.err | |
11028 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11029 | ac_header_compiler=yes |
11030 | else | |
ec6a6fbe | 11031 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11032 | sed 's/^/| /' conftest.$ac_ext >&5 |
11033 | ||
7a197a62 | 11034 | ac_header_compiler=no |
ad6254c5 | 11035 | fi |
7a197a62 AK |
11036 | |
11037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11038 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11039 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11040 | |
11041 | # Is the header present? | |
ec6a6fbe AK |
11042 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11043 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11044 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11045 | /* confdefs.h. */ |
11046 | _ACEOF | |
11047 | cat confdefs.h >>conftest.$ac_ext | |
11048 | cat >>conftest.$ac_ext <<_ACEOF | |
11049 | /* end confdefs.h. */ | |
11050 | #include <$ac_header> | |
11051 | _ACEOF | |
7a197a62 AK |
11052 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11053 | case "(($ac_try" in | |
11054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11055 | *) ac_try_echo=$ac_try;; | |
11056 | esac | |
ec6a6fbe AK |
11057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11058 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11059 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11060 | ac_status=$? |
11061 | grep -v '^ *+' conftest.er1 >conftest.err | |
11062 | rm -f conftest.er1 | |
11063 | cat conftest.err >&5 | |
ec6a6fbe | 11064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11065 | (exit $ac_status); } >/dev/null && { |
11066 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11067 | test ! -s conftest.err | |
11068 | }; then | |
ad6254c5 AK |
11069 | ac_header_preproc=yes |
11070 | else | |
ec6a6fbe | 11071 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11072 | sed 's/^/| /' conftest.$ac_ext >&5 |
11073 | ||
11074 | ac_header_preproc=no | |
11075 | fi | |
7a197a62 | 11076 | |
ad6254c5 | 11077 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11078 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11079 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11080 | |
11081 | # So? What about this header? | |
8a2fc586 AK |
11082 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11083 | yes:no: ) | |
ec6a6fbe AK |
11084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11085 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11086 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11087 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11088 | ac_header_preproc=yes |
ad6254c5 | 11089 | ;; |
8a2fc586 | 11090 | no:yes:* ) |
ec6a6fbe AK |
11091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11092 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11094 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11096 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11098 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11100 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11102 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11103 | |
ad6254c5 AK |
11104 | ;; |
11105 | esac | |
ec6a6fbe AK |
11106 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11107 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11108 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11109 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11110 | else |
8a2fc586 | 11111 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11112 | fi |
ec6a6fbe AK |
11113 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11114 | $as_echo "$as_val"'` | |
11115 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11116 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11117 | |
11118 | fi | |
ec6a6fbe AK |
11119 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11120 | $as_echo "$as_val"'` | |
11121 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11122 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11123 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11124 | _ACEOF |
11125 | ||
11126 | else | |
ec6a6fbe AK |
11127 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11128 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11129 | { (exit 1); exit 1; }; } |
11130 | fi | |
11131 | ||
11132 | done | |
11133 | ||
11134 | fi | |
11135 | ||
5c7fc7c4 | 11136 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
11137 | |
11138 | ||
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | 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 | |
11148 | do | |
ec6a6fbe | 11149 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11150 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11151 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11152 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11153 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11154 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11155 | fi |
ec6a6fbe AK |
11156 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11157 | $as_echo "$as_val"'` | |
11158 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11159 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11160 | else |
11161 | # Is the header compilable? | |
ec6a6fbe AK |
11162 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11163 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11164 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11165 | /* confdefs.h. */ |
11166 | _ACEOF | |
11167 | cat confdefs.h >>conftest.$ac_ext | |
11168 | cat >>conftest.$ac_ext <<_ACEOF | |
11169 | /* end confdefs.h. */ | |
11170 | $ac_includes_default | |
11171 | #include <$ac_header> | |
11172 | _ACEOF | |
11173 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11174 | if { (ac_try="$ac_compile" |
11175 | case "(($ac_try" in | |
11176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11177 | *) ac_try_echo=$ac_try;; | |
11178 | esac | |
ec6a6fbe AK |
11179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11180 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11181 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11182 | ac_status=$? |
8a2fc586 AK |
11183 | grep -v '^ *+' conftest.er1 >conftest.err |
11184 | rm -f conftest.er1 | |
11185 | cat conftest.err >&5 | |
ec6a6fbe | 11186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11187 | (exit $ac_status); } && { |
11188 | test -z "$ac_c_werror_flag" || | |
11189 | test ! -s conftest.err | |
11190 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11191 | ac_header_compiler=yes |
11192 | else | |
ec6a6fbe | 11193 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11194 | sed 's/^/| /' conftest.$ac_ext >&5 |
11195 | ||
7a197a62 | 11196 | ac_header_compiler=no |
ad6254c5 | 11197 | fi |
7a197a62 AK |
11198 | |
11199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11200 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11201 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11202 | |
11203 | # Is the header present? | |
ec6a6fbe AK |
11204 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11205 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11206 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11207 | /* confdefs.h. */ |
11208 | _ACEOF | |
11209 | cat confdefs.h >>conftest.$ac_ext | |
11210 | cat >>conftest.$ac_ext <<_ACEOF | |
11211 | /* end confdefs.h. */ | |
11212 | #include <$ac_header> | |
11213 | _ACEOF | |
7a197a62 AK |
11214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11215 | case "(($ac_try" in | |
11216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11217 | *) ac_try_echo=$ac_try;; | |
11218 | esac | |
ec6a6fbe AK |
11219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11220 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11221 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11222 | ac_status=$? |
11223 | grep -v '^ *+' conftest.er1 >conftest.err | |
11224 | rm -f conftest.er1 | |
11225 | cat conftest.err >&5 | |
ec6a6fbe | 11226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11227 | (exit $ac_status); } >/dev/null && { |
11228 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11229 | test ! -s conftest.err | |
11230 | }; then | |
ad6254c5 AK |
11231 | ac_header_preproc=yes |
11232 | else | |
ec6a6fbe | 11233 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11234 | sed 's/^/| /' conftest.$ac_ext >&5 |
11235 | ||
11236 | ac_header_preproc=no | |
11237 | fi | |
7a197a62 | 11238 | |
ad6254c5 | 11239 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11240 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11241 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11242 | |
11243 | # So? What about this header? | |
8a2fc586 AK |
11244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11245 | yes:no: ) | |
ec6a6fbe AK |
11246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11247 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11249 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11250 | ac_header_preproc=yes |
ad6254c5 | 11251 | ;; |
8a2fc586 | 11252 | no:yes:* ) |
ec6a6fbe AK |
11253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11254 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11256 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11258 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11260 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11261 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11262 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11263 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11264 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11265 | |
ad6254c5 AK |
11266 | ;; |
11267 | esac | |
ec6a6fbe AK |
11268 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11269 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11270 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11271 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11272 | else |
8a2fc586 | 11273 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11274 | fi |
ec6a6fbe AK |
11275 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11276 | $as_echo "$as_val"'` | |
11277 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11278 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11279 | |
11280 | fi | |
ec6a6fbe AK |
11281 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11282 | $as_echo "$as_val"'` | |
11283 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11284 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11285 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11286 | _ACEOF |
11287 | ||
11288 | else | |
ec6a6fbe AK |
11289 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11290 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11291 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11292 | fi |
11293 | ||
ad6254c5 AK |
11294 | done |
11295 | ||
11296 | ||
795ca3e5 | 11297 | |
8106cdd5 | 11298 | |
ad6254c5 AK |
11299 | |
11300 | ||
11301 | for ac_func in dup2 getmntent memmove select socket | |
11302 | do | |
ec6a6fbe AK |
11303 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11304 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11305 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11306 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11307 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11308 | else |
ad6254c5 | 11309 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11310 | /* confdefs.h. */ |
11311 | _ACEOF | |
11312 | cat confdefs.h >>conftest.$ac_ext | |
11313 | cat >>conftest.$ac_ext <<_ACEOF | |
11314 | /* end confdefs.h. */ | |
8a2fc586 AK |
11315 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11316 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11317 | #define $ac_func innocuous_$ac_func | |
11318 | ||
795ca3e5 | 11319 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
11320 | which can conflict with char $ac_func (); below. |
11321 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11322 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11323 | |
ad6254c5 AK |
11324 | #ifdef __STDC__ |
11325 | # include <limits.h> | |
11326 | #else | |
11327 | # include <assert.h> | |
11328 | #endif | |
8a2fc586 AK |
11329 | |
11330 | #undef $ac_func | |
11331 | ||
7a197a62 AK |
11332 | /* Override any GCC internal prototype to avoid an error. |
11333 | Use char because int might match the return type of a GCC | |
11334 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11335 | #ifdef __cplusplus |
11336 | extern "C" | |
ad6254c5 | 11337 | #endif |
ad6254c5 | 11338 | char $ac_func (); |
795ca3e5 AK |
11339 | /* The GNU C library defines this for functions which it implements |
11340 | to always fail with ENOSYS. Some functions are actually named | |
11341 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11342 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 11343 | choke me |
795ca3e5 AK |
11344 | #endif |
11345 | ||
ad6254c5 AK |
11346 | int |
11347 | main () | |
11348 | { | |
7a197a62 | 11349 | return $ac_func (); |
ad6254c5 AK |
11350 | ; |
11351 | return 0; | |
11352 | } | |
11353 | _ACEOF | |
11354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11355 | if { (ac_try="$ac_link" |
11356 | case "(($ac_try" in | |
11357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11358 | *) ac_try_echo=$ac_try;; | |
11359 | esac | |
ec6a6fbe AK |
11360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11361 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11362 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11363 | ac_status=$? |
8a2fc586 AK |
11364 | grep -v '^ *+' conftest.er1 >conftest.err |
11365 | rm -f conftest.er1 | |
11366 | cat conftest.err >&5 | |
ec6a6fbe | 11367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11368 | (exit $ac_status); } && { |
11369 | test -z "$ac_c_werror_flag" || | |
11370 | test ! -s conftest.err | |
ec6a6fbe AK |
11371 | } && test -s conftest$ac_exeext && { |
11372 | test "$cross_compiling" = yes || | |
11373 | $as_test_x conftest$ac_exeext | |
11374 | }; then | |
ad6254c5 | 11375 | eval "$as_ac_var=yes" |
795ca3e5 | 11376 | else |
ec6a6fbe | 11377 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11378 | sed 's/^/| /' conftest.$ac_ext >&5 |
11379 | ||
7a197a62 | 11380 | eval "$as_ac_var=no" |
80992638 | 11381 | fi |
7a197a62 | 11382 | |
ec6a6fbe | 11383 | rm -rf conftest.dSYM |
25fbec5b | 11384 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11385 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 11386 | fi |
ec6a6fbe AK |
11387 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11388 | $as_echo "$as_val"'` | |
11389 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11390 | $as_echo "$ac_res" >&6; } | |
11391 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11392 | $as_echo "$as_val"'` | |
11393 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11394 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11395 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 11396 | _ACEOF |
80992638 AK |
11397 | |
11398 | else | |
ec6a6fbe AK |
11399 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11400 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11401 | { (exit 1); exit 1; }; } |
8106cdd5 | 11402 | fi |
ad6254c5 | 11403 | done |
795ca3e5 | 11404 | |
25fbec5b AK |
11405 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
11406 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
11407 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
11408 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 11409 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 11410 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
11411 | else |
11412 | ac_func_search_save_LIBS=$LIBS | |
11413 | cat >conftest.$ac_ext <<_ACEOF | |
11414 | /* confdefs.h. */ | |
11415 | _ACEOF | |
11416 | cat confdefs.h >>conftest.$ac_ext | |
11417 | cat >>conftest.$ac_ext <<_ACEOF | |
11418 | /* end confdefs.h. */ | |
80992638 | 11419 | |
7a197a62 AK |
11420 | /* Override any GCC internal prototype to avoid an error. |
11421 | Use char because int might match the return type of a GCC | |
ad6254c5 | 11422 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
11423 | #ifdef __cplusplus |
11424 | extern "C" | |
11425 | #endif | |
25fbec5b | 11426 | char getmntent (); |
ad6254c5 AK |
11427 | int |
11428 | main () | |
11429 | { | |
25fbec5b | 11430 | return getmntent (); |
ad6254c5 AK |
11431 | ; |
11432 | return 0; | |
11433 | } | |
11434 | _ACEOF | |
25fbec5b AK |
11435 | for ac_lib in '' sun seq gen; do |
11436 | if test -z "$ac_lib"; then | |
11437 | ac_res="none required" | |
11438 | else | |
11439 | ac_res=-l$ac_lib | |
11440 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11441 | fi | |
11442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11443 | if { (ac_try="$ac_link" |
11444 | case "(($ac_try" in | |
11445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11446 | *) ac_try_echo=$ac_try;; | |
11447 | esac | |
ec6a6fbe AK |
11448 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11449 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11450 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11451 | ac_status=$? |
8a2fc586 AK |
11452 | grep -v '^ *+' conftest.er1 >conftest.err |
11453 | rm -f conftest.er1 | |
11454 | cat conftest.err >&5 | |
ec6a6fbe | 11455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11456 | (exit $ac_status); } && { |
11457 | test -z "$ac_c_werror_flag" || | |
11458 | test ! -s conftest.err | |
ec6a6fbe AK |
11459 | } && test -s conftest$ac_exeext && { |
11460 | test "$cross_compiling" = yes || | |
11461 | $as_test_x conftest$ac_exeext | |
11462 | }; then | |
25fbec5b | 11463 | ac_cv_search_getmntent=$ac_res |
80992638 | 11464 | else |
ec6a6fbe | 11465 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11466 | sed 's/^/| /' conftest.$ac_ext >&5 |
11467 | ||
25fbec5b | 11468 | |
795ca3e5 AK |
11469 | fi |
11470 | ||
ec6a6fbe | 11471 | rm -rf conftest.dSYM |
25fbec5b AK |
11472 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11473 | conftest$ac_exeext | |
11474 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11475 | break | |
795ca3e5 | 11476 | fi |
25fbec5b AK |
11477 | done |
11478 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11479 | : | |
11480 | else | |
11481 | ac_cv_search_getmntent=no | |
11482 | fi | |
11483 | rm conftest.$ac_ext | |
11484 | LIBS=$ac_func_search_save_LIBS | |
11485 | fi | |
ec6a6fbe AK |
11486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
11487 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
11488 | ac_res=$ac_cv_search_getmntent |
11489 | if test "$ac_res" != no; then | |
11490 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11491 | ac_cv_func_getmntent=yes | |
11492 | ||
11493 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 11494 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 11495 | _ACEOF |
795ca3e5 | 11496 | |
25fbec5b AK |
11497 | else |
11498 | ac_cv_func_getmntent=no | |
795ca3e5 | 11499 | fi |
795ca3e5 AK |
11500 | |
11501 | ||
ad6254c5 AK |
11502 | # AC_FUNC_REALLOC |
11503 | ||
11504 | ||
11505 | for ac_header in sys/select.h sys/socket.h | |
11506 | do | |
ec6a6fbe | 11507 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11509 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11510 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11511 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11512 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11513 | fi |
ec6a6fbe AK |
11514 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11515 | $as_echo "$as_val"'` | |
11516 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11517 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 11518 | else |
ad6254c5 | 11519 | # Is the header compilable? |
ec6a6fbe AK |
11520 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11521 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11522 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11523 | /* confdefs.h. */ |
11524 | _ACEOF | |
11525 | cat confdefs.h >>conftest.$ac_ext | |
11526 | cat >>conftest.$ac_ext <<_ACEOF | |
11527 | /* end confdefs.h. */ | |
11528 | $ac_includes_default | |
11529 | #include <$ac_header> | |
11530 | _ACEOF | |
11531 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11532 | if { (ac_try="$ac_compile" |
11533 | case "(($ac_try" in | |
11534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11535 | *) ac_try_echo=$ac_try;; | |
11536 | esac | |
ec6a6fbe AK |
11537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11538 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11539 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11540 | ac_status=$? |
8a2fc586 AK |
11541 | grep -v '^ *+' conftest.er1 >conftest.err |
11542 | rm -f conftest.er1 | |
11543 | cat conftest.err >&5 | |
ec6a6fbe | 11544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11545 | (exit $ac_status); } && { |
11546 | test -z "$ac_c_werror_flag" || | |
11547 | test ! -s conftest.err | |
11548 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 11549 | ac_header_compiler=yes |
80992638 | 11550 | else |
ec6a6fbe | 11551 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11552 | sed 's/^/| /' conftest.$ac_ext >&5 |
11553 | ||
7a197a62 | 11554 | ac_header_compiler=no |
ad6254c5 | 11555 | fi |
7a197a62 AK |
11556 | |
11557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11558 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11559 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11560 | |
11561 | # Is the header present? | |
ec6a6fbe AK |
11562 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11563 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11564 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11565 | /* confdefs.h. */ |
11566 | _ACEOF | |
11567 | cat confdefs.h >>conftest.$ac_ext | |
11568 | cat >>conftest.$ac_ext <<_ACEOF | |
11569 | /* end confdefs.h. */ | |
11570 | #include <$ac_header> | |
11571 | _ACEOF | |
7a197a62 AK |
11572 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11573 | case "(($ac_try" in | |
11574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11575 | *) ac_try_echo=$ac_try;; | |
11576 | esac | |
ec6a6fbe AK |
11577 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11578 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11580 | ac_status=$? |
11581 | grep -v '^ *+' conftest.er1 >conftest.err | |
11582 | rm -f conftest.er1 | |
11583 | cat conftest.err >&5 | |
ec6a6fbe | 11584 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11585 | (exit $ac_status); } >/dev/null && { |
11586 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11587 | test ! -s conftest.err | |
11588 | }; then | |
ad6254c5 AK |
11589 | ac_header_preproc=yes |
11590 | else | |
ec6a6fbe | 11591 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11592 | sed 's/^/| /' conftest.$ac_ext >&5 |
11593 | ||
11594 | ac_header_preproc=no | |
11595 | fi | |
7a197a62 | 11596 | |
ad6254c5 | 11597 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11598 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11599 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11600 | |
11601 | # So? What about this header? | |
8a2fc586 AK |
11602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11603 | yes:no: ) | |
ec6a6fbe AK |
11604 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11605 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11606 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11607 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11608 | ac_header_preproc=yes |
ad6254c5 | 11609 | ;; |
8a2fc586 | 11610 | no:yes:* ) |
ec6a6fbe AK |
11611 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11612 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11613 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11614 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11615 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11616 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11617 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11618 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11619 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11620 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11621 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11622 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11623 | |
ad6254c5 AK |
11624 | ;; |
11625 | esac | |
ec6a6fbe AK |
11626 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11627 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11628 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11629 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11630 | else |
8a2fc586 | 11631 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 11632 | fi |
ec6a6fbe AK |
11633 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11634 | $as_echo "$as_val"'` | |
11635 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11636 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 11637 | |
795ca3e5 | 11638 | fi |
ec6a6fbe AK |
11639 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11640 | $as_echo "$as_val"'` | |
11641 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11642 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11643 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11644 | _ACEOF |
11645 | ||
795ca3e5 AK |
11646 | fi |
11647 | ||
ad6254c5 AK |
11648 | done |
11649 | ||
ec6a6fbe AK |
11650 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11651 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 11652 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 11653 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 11654 | else |
ad6254c5 | 11655 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 11656 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
11657 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11658 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11659 | /* confdefs.h. */ |
11660 | _ACEOF | |
11661 | cat confdefs.h >>conftest.$ac_ext | |
11662 | cat >>conftest.$ac_ext <<_ACEOF | |
11663 | /* end confdefs.h. */ | |
11664 | $ac_includes_default | |
25fbec5b | 11665 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
11666 | # include <sys/select.h> |
11667 | #endif | |
25fbec5b | 11668 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
11669 | # include <sys/socket.h> |
11670 | #endif | |
11671 | ||
11672 | int | |
11673 | main () | |
11674 | { | |
11675 | extern int select ($ac_arg1, | |
8a2fc586 AK |
11676 | $ac_arg234, $ac_arg234, $ac_arg234, |
11677 | $ac_arg5); | |
ad6254c5 AK |
11678 | ; |
11679 | return 0; | |
11680 | } | |
11681 | _ACEOF | |
11682 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11683 | if { (ac_try="$ac_compile" |
11684 | case "(($ac_try" in | |
11685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11686 | *) ac_try_echo=$ac_try;; | |
11687 | esac | |
ec6a6fbe AK |
11688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11689 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11690 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11691 | ac_status=$? |
8a2fc586 AK |
11692 | grep -v '^ *+' conftest.er1 >conftest.err |
11693 | rm -f conftest.er1 | |
11694 | cat conftest.err >&5 | |
ec6a6fbe | 11695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11696 | (exit $ac_status); } && { |
11697 | test -z "$ac_c_werror_flag" || | |
11698 | test ! -s conftest.err | |
11699 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11700 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11701 | else | |
ec6a6fbe | 11702 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11703 | sed 's/^/| /' conftest.$ac_ext >&5 |
11704 | ||
7a197a62 | 11705 | |
ad6254c5 | 11706 | fi |
7a197a62 AK |
11707 | |
11708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
11709 | done |
11710 | done | |
11711 | done | |
11712 | # Provide a safe default value. | |
11713 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11714 | ||
26e7f2e0 | 11715 | fi |
ec6a6fbe AK |
11716 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11717 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11718 | ac_save_IFS=$IFS; IFS=',' |
11719 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11720 | IFS=$ac_save_IFS | |
11721 | shift | |
11722 | ||
11723 | cat >>confdefs.h <<_ACEOF | |
11724 | #define SELECT_TYPE_ARG1 $1 | |
11725 | _ACEOF | |
11726 | ||
11727 | ||
11728 | cat >>confdefs.h <<_ACEOF | |
11729 | #define SELECT_TYPE_ARG234 ($2) | |
11730 | _ACEOF | |
11731 | ||
11732 | ||
11733 | cat >>confdefs.h <<_ACEOF | |
11734 | #define SELECT_TYPE_ARG5 ($3) | |
11735 | _ACEOF | |
11736 | ||
80992638 | 11737 | rm -f conftest* |
80992638 | 11738 | |
8106cdd5 | 11739 | fi |
ad6254c5 | 11740 | |
ad6254c5 AK |
11741 | if test x$CLUSTER != xnone; then |
11742 | ||
11743 | ||
11744 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11745 | do |
ec6a6fbe | 11746 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11747 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11748 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11749 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11750 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11751 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11752 | fi |
ec6a6fbe AK |
11753 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11754 | $as_echo "$as_val"'` | |
11755 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11756 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11757 | else |
11758 | # Is the header compilable? | |
ec6a6fbe AK |
11759 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11760 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11761 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11762 | /* confdefs.h. */ |
11763 | _ACEOF | |
11764 | cat confdefs.h >>conftest.$ac_ext | |
11765 | cat >>conftest.$ac_ext <<_ACEOF | |
11766 | /* end confdefs.h. */ | |
11767 | $ac_includes_default | |
11768 | #include <$ac_header> | |
11769 | _ACEOF | |
11770 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11771 | if { (ac_try="$ac_compile" |
11772 | case "(($ac_try" in | |
11773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11774 | *) ac_try_echo=$ac_try;; | |
11775 | esac | |
ec6a6fbe AK |
11776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11777 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11778 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11779 | ac_status=$? |
8a2fc586 AK |
11780 | grep -v '^ *+' conftest.er1 >conftest.err |
11781 | rm -f conftest.er1 | |
11782 | cat conftest.err >&5 | |
ec6a6fbe | 11783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11784 | (exit $ac_status); } && { |
11785 | test -z "$ac_c_werror_flag" || | |
11786 | test ! -s conftest.err | |
11787 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11788 | ac_header_compiler=yes |
11789 | else | |
ec6a6fbe | 11790 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11791 | sed 's/^/| /' conftest.$ac_ext >&5 |
11792 | ||
7a197a62 | 11793 | ac_header_compiler=no |
ad6254c5 | 11794 | fi |
7a197a62 AK |
11795 | |
11796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11797 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11798 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11799 | |
11800 | # Is the header present? | |
ec6a6fbe AK |
11801 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11802 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11803 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11804 | /* confdefs.h. */ |
11805 | _ACEOF | |
11806 | cat confdefs.h >>conftest.$ac_ext | |
11807 | cat >>conftest.$ac_ext <<_ACEOF | |
11808 | /* end confdefs.h. */ | |
11809 | #include <$ac_header> | |
11810 | _ACEOF | |
7a197a62 AK |
11811 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11812 | case "(($ac_try" in | |
11813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11814 | *) ac_try_echo=$ac_try;; | |
11815 | esac | |
ec6a6fbe AK |
11816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11817 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11819 | ac_status=$? |
11820 | grep -v '^ *+' conftest.er1 >conftest.err | |
11821 | rm -f conftest.er1 | |
11822 | cat conftest.err >&5 | |
ec6a6fbe | 11823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11824 | (exit $ac_status); } >/dev/null && { |
11825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11826 | test ! -s conftest.err | |
11827 | }; then | |
ad6254c5 AK |
11828 | ac_header_preproc=yes |
11829 | else | |
ec6a6fbe | 11830 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11831 | sed 's/^/| /' conftest.$ac_ext >&5 |
11832 | ||
11833 | ac_header_preproc=no | |
11834 | fi | |
7a197a62 | 11835 | |
ad6254c5 | 11836 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11837 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11838 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11839 | |
11840 | # So? What about this header? | |
8a2fc586 AK |
11841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11842 | yes:no: ) | |
ec6a6fbe AK |
11843 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11844 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11846 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11847 | ac_header_preproc=yes |
ad6254c5 | 11848 | ;; |
8a2fc586 | 11849 | no:yes:* ) |
ec6a6fbe AK |
11850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11851 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11853 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11855 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11857 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11859 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11861 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11862 | |
ad6254c5 AK |
11863 | ;; |
11864 | esac | |
ec6a6fbe AK |
11865 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11866 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11867 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11868 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11869 | else |
8a2fc586 | 11870 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11871 | fi |
ec6a6fbe AK |
11872 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11873 | $as_echo "$as_val"'` | |
11874 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11875 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11876 | |
11877 | fi | |
ec6a6fbe AK |
11878 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11879 | $as_echo "$as_val"'` | |
11880 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11881 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11882 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11883 | _ACEOF |
11884 | ||
80992638 | 11885 | else |
ec6a6fbe AK |
11886 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11887 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11888 | { (exit 1); exit 1; }; } |
b896caa1 | 11889 | fi |
ad6254c5 | 11890 | |
b896caa1 AK |
11891 | done |
11892 | ||
11893 | ||
ad6254c5 AK |
11894 | for ac_func in socket |
11895 | do | |
ec6a6fbe AK |
11896 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11897 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11898 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11899 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11900 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11901 | else |
ad6254c5 | 11902 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11903 | /* confdefs.h. */ |
11904 | _ACEOF | |
11905 | cat confdefs.h >>conftest.$ac_ext | |
11906 | cat >>conftest.$ac_ext <<_ACEOF | |
11907 | /* end confdefs.h. */ | |
8a2fc586 AK |
11908 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11910 | #define $ac_func innocuous_$ac_func | |
11911 | ||
ad6254c5 AK |
11912 | /* System header to define __stub macros and hopefully few prototypes, |
11913 | which can conflict with char $ac_func (); below. | |
11914 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11915 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11916 | |
ad6254c5 AK |
11917 | #ifdef __STDC__ |
11918 | # include <limits.h> | |
11919 | #else | |
11920 | # include <assert.h> | |
11921 | #endif | |
8a2fc586 AK |
11922 | |
11923 | #undef $ac_func | |
11924 | ||
7a197a62 AK |
11925 | /* Override any GCC internal prototype to avoid an error. |
11926 | Use char because int might match the return type of a GCC | |
11927 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11928 | #ifdef __cplusplus |
11929 | extern "C" | |
ad6254c5 | 11930 | #endif |
ad6254c5 AK |
11931 | char $ac_func (); |
11932 | /* The GNU C library defines this for functions which it implements | |
11933 | to always fail with ENOSYS. Some functions are actually named | |
11934 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11935 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11936 | choke me |
ad6254c5 AK |
11937 | #endif |
11938 | ||
11939 | int | |
11940 | main () | |
11941 | { | |
7a197a62 | 11942 | return $ac_func (); |
ad6254c5 AK |
11943 | ; |
11944 | return 0; | |
11945 | } | |
11946 | _ACEOF | |
11947 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11948 | if { (ac_try="$ac_link" |
11949 | case "(($ac_try" in | |
11950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11951 | *) ac_try_echo=$ac_try;; | |
11952 | esac | |
ec6a6fbe AK |
11953 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11954 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11955 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11956 | ac_status=$? |
8a2fc586 AK |
11957 | grep -v '^ *+' conftest.er1 >conftest.err |
11958 | rm -f conftest.er1 | |
11959 | cat conftest.err >&5 | |
ec6a6fbe | 11960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11961 | (exit $ac_status); } && { |
11962 | test -z "$ac_c_werror_flag" || | |
11963 | test ! -s conftest.err | |
ec6a6fbe AK |
11964 | } && test -s conftest$ac_exeext && { |
11965 | test "$cross_compiling" = yes || | |
11966 | $as_test_x conftest$ac_exeext | |
11967 | }; then | |
ad6254c5 AK |
11968 | eval "$as_ac_var=yes" |
11969 | else | |
ec6a6fbe | 11970 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11971 | sed 's/^/| /' conftest.$ac_ext >&5 |
11972 | ||
7a197a62 | 11973 | eval "$as_ac_var=no" |
ad6254c5 | 11974 | fi |
7a197a62 | 11975 | |
ec6a6fbe | 11976 | rm -rf conftest.dSYM |
25fbec5b | 11977 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11978 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 11979 | fi |
ec6a6fbe AK |
11980 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11981 | $as_echo "$as_val"'` | |
11982 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11983 | $as_echo "$ac_res" >&6; } | |
11984 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11985 | $as_echo "$as_val"'` | |
11986 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11987 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11988 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
11989 | _ACEOF |
11990 | ||
11991 | else | |
ec6a6fbe AK |
11992 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11993 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11994 | { (exit 1); exit 1; }; } |
11995 | fi | |
11996 | done | |
11997 | ||
11998 | fi | |
11999 | ||
12000 | if test x$HAVE_LIBDL = xyes; then | |
12001 | ||
12002 | for ac_header in dlfcn.h | |
12003 | do | |
ec6a6fbe | 12004 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12006 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12007 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12008 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12009 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12010 | fi |
ec6a6fbe AK |
12011 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12012 | $as_echo "$as_val"'` | |
12013 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12014 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
12015 | else |
12016 | # Is the header compilable? | |
ec6a6fbe AK |
12017 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12018 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12019 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12020 | /* confdefs.h. */ |
12021 | _ACEOF | |
12022 | cat confdefs.h >>conftest.$ac_ext | |
12023 | cat >>conftest.$ac_ext <<_ACEOF | |
12024 | /* end confdefs.h. */ | |
12025 | $ac_includes_default | |
12026 | #include <$ac_header> | |
12027 | _ACEOF | |
12028 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12029 | if { (ac_try="$ac_compile" |
12030 | case "(($ac_try" in | |
12031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12032 | *) ac_try_echo=$ac_try;; | |
12033 | esac | |
ec6a6fbe AK |
12034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12035 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12036 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12037 | ac_status=$? |
8a2fc586 AK |
12038 | grep -v '^ *+' conftest.er1 >conftest.err |
12039 | rm -f conftest.er1 | |
12040 | cat conftest.err >&5 | |
ec6a6fbe | 12041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12042 | (exit $ac_status); } && { |
12043 | test -z "$ac_c_werror_flag" || | |
12044 | test ! -s conftest.err | |
12045 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12046 | ac_header_compiler=yes |
12047 | else | |
ec6a6fbe | 12048 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12049 | sed 's/^/| /' conftest.$ac_ext >&5 |
12050 | ||
7a197a62 | 12051 | ac_header_compiler=no |
ad6254c5 | 12052 | fi |
7a197a62 AK |
12053 | |
12054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12055 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12056 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12057 | |
12058 | # Is the header present? | |
ec6a6fbe AK |
12059 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12060 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12061 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12062 | /* confdefs.h. */ |
12063 | _ACEOF | |
12064 | cat confdefs.h >>conftest.$ac_ext | |
12065 | cat >>conftest.$ac_ext <<_ACEOF | |
12066 | /* end confdefs.h. */ | |
12067 | #include <$ac_header> | |
12068 | _ACEOF | |
7a197a62 AK |
12069 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12070 | case "(($ac_try" in | |
12071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12072 | *) ac_try_echo=$ac_try;; | |
12073 | esac | |
ec6a6fbe AK |
12074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12075 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12077 | ac_status=$? |
12078 | grep -v '^ *+' conftest.er1 >conftest.err | |
12079 | rm -f conftest.er1 | |
12080 | cat conftest.err >&5 | |
ec6a6fbe | 12081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12082 | (exit $ac_status); } >/dev/null && { |
12083 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12084 | test ! -s conftest.err | |
12085 | }; then | |
ad6254c5 AK |
12086 | ac_header_preproc=yes |
12087 | else | |
ec6a6fbe | 12088 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12089 | sed 's/^/| /' conftest.$ac_ext >&5 |
12090 | ||
12091 | ac_header_preproc=no | |
12092 | fi | |
7a197a62 | 12093 | |
ad6254c5 | 12094 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12095 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12096 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12097 | |
12098 | # So? What about this header? | |
8a2fc586 AK |
12099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12100 | yes:no: ) | |
ec6a6fbe AK |
12101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12102 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12104 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12105 | ac_header_preproc=yes |
ad6254c5 | 12106 | ;; |
8a2fc586 | 12107 | no:yes:* ) |
ec6a6fbe AK |
12108 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12109 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12110 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12111 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12112 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12113 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12114 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12115 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12116 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12117 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12118 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12119 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12120 | |
ad6254c5 AK |
12121 | ;; |
12122 | esac | |
ec6a6fbe AK |
12123 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12124 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12125 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12126 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12127 | else |
8a2fc586 | 12128 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 12129 | fi |
ec6a6fbe AK |
12130 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12131 | $as_echo "$as_val"'` | |
12132 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12133 | $as_echo "$ac_res" >&6; } | |
80992638 | 12134 | |
8106cdd5 | 12135 | fi |
ec6a6fbe AK |
12136 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12137 | $as_echo "$as_val"'` | |
12138 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12139 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12140 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12141 | _ACEOF |
795ca3e5 AK |
12142 | |
12143 | else | |
ec6a6fbe AK |
12144 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12145 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12146 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
12147 | fi |
12148 | ||
ad6254c5 | 12149 | done |
80992638 | 12150 | |
ad6254c5 | 12151 | fi |
80992638 | 12152 | |
ad6254c5 | 12153 | if test x$INTL = xyes; then |
83912faa | 12154 | |
ad6254c5 AK |
12155 | for ac_header in libintl.h |
12156 | do | |
ec6a6fbe | 12157 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12159 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12160 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12162 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12163 | fi |
ec6a6fbe AK |
12164 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12165 | $as_echo "$as_val"'` | |
12166 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12167 | $as_echo "$ac_res" >&6; } | |
83912faa | 12168 | else |
ad6254c5 | 12169 | # Is the header compilable? |
ec6a6fbe AK |
12170 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12171 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12172 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12173 | /* confdefs.h. */ |
12174 | _ACEOF | |
12175 | cat confdefs.h >>conftest.$ac_ext | |
12176 | cat >>conftest.$ac_ext <<_ACEOF | |
12177 | /* end confdefs.h. */ | |
12178 | $ac_includes_default | |
12179 | #include <$ac_header> | |
12180 | _ACEOF | |
12181 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12182 | if { (ac_try="$ac_compile" |
12183 | case "(($ac_try" in | |
12184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12185 | *) ac_try_echo=$ac_try;; | |
12186 | esac | |
ec6a6fbe AK |
12187 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12188 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12189 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12190 | ac_status=$? |
8a2fc586 AK |
12191 | grep -v '^ *+' conftest.er1 >conftest.err |
12192 | rm -f conftest.er1 | |
12193 | cat conftest.err >&5 | |
ec6a6fbe | 12194 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12195 | (exit $ac_status); } && { |
12196 | test -z "$ac_c_werror_flag" || | |
12197 | test ! -s conftest.err | |
12198 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12199 | ac_header_compiler=yes |
12200 | else | |
ec6a6fbe | 12201 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12202 | sed 's/^/| /' conftest.$ac_ext >&5 |
12203 | ||
7a197a62 | 12204 | ac_header_compiler=no |
ad6254c5 | 12205 | fi |
7a197a62 AK |
12206 | |
12207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12208 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12209 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12210 | |
12211 | # Is the header present? | |
ec6a6fbe AK |
12212 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12213 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12215 | /* confdefs.h. */ |
12216 | _ACEOF | |
12217 | cat confdefs.h >>conftest.$ac_ext | |
12218 | cat >>conftest.$ac_ext <<_ACEOF | |
12219 | /* end confdefs.h. */ | |
12220 | #include <$ac_header> | |
12221 | _ACEOF | |
7a197a62 AK |
12222 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12223 | case "(($ac_try" in | |
12224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12225 | *) ac_try_echo=$ac_try;; | |
12226 | esac | |
ec6a6fbe AK |
12227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12228 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12229 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12230 | ac_status=$? |
12231 | grep -v '^ *+' conftest.er1 >conftest.err | |
12232 | rm -f conftest.er1 | |
12233 | cat conftest.err >&5 | |
ec6a6fbe | 12234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12235 | (exit $ac_status); } >/dev/null && { |
12236 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12237 | test ! -s conftest.err | |
12238 | }; then | |
ad6254c5 AK |
12239 | ac_header_preproc=yes |
12240 | else | |
ec6a6fbe | 12241 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12242 | sed 's/^/| /' conftest.$ac_ext >&5 |
12243 | ||
12244 | ac_header_preproc=no | |
12245 | fi | |
7a197a62 | 12246 | |
ad6254c5 | 12247 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12248 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12249 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12250 | |
12251 | # So? What about this header? | |
8a2fc586 AK |
12252 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12253 | yes:no: ) | |
ec6a6fbe AK |
12254 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12255 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12256 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12257 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12258 | ac_header_preproc=yes |
ad6254c5 | 12259 | ;; |
8a2fc586 | 12260 | no:yes:* ) |
ec6a6fbe AK |
12261 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12262 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12263 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12264 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12265 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12266 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12267 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12268 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12269 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12270 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12271 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12272 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12273 | |
ad6254c5 AK |
12274 | ;; |
12275 | esac | |
ec6a6fbe AK |
12276 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12277 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12279 | $as_echo_n "(cached) " >&6 |
80992638 | 12280 | else |
8a2fc586 | 12281 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 12282 | fi |
ec6a6fbe AK |
12283 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12284 | $as_echo "$as_val"'` | |
12285 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12286 | $as_echo "$ac_res" >&6; } | |
83912faa | 12287 | |
69792976 | 12288 | fi |
ec6a6fbe AK |
12289 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12290 | $as_echo "$as_val"'` | |
12291 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12292 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12293 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12294 | _ACEOF |
69792976 | 12295 | |
69792976 | 12296 | else |
ec6a6fbe AK |
12297 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12298 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12299 | { (exit 1); exit 1; }; } |
80992638 AK |
12300 | fi |
12301 | ||
ad6254c5 | 12302 | done |
69792976 | 12303 | |
ad6254c5 AK |
12304 | fi |
12305 | ||
ad6254c5 AK |
12306 | if test x$HAVE_SELINUX = xyes; then |
12307 | ||
12308 | for ac_header in selinux/selinux.h | |
12309 | do | |
ec6a6fbe | 12310 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12312 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12313 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12315 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12316 | fi |
ec6a6fbe AK |
12317 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12318 | $as_echo "$as_val"'` | |
12319 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12320 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12321 | else |
ad6254c5 | 12322 | # Is the header compilable? |
ec6a6fbe AK |
12323 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12324 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12325 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12326 | /* confdefs.h. */ |
12327 | _ACEOF | |
12328 | cat confdefs.h >>conftest.$ac_ext | |
12329 | cat >>conftest.$ac_ext <<_ACEOF | |
12330 | /* end confdefs.h. */ | |
12331 | $ac_includes_default | |
12332 | #include <$ac_header> | |
12333 | _ACEOF | |
12334 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12335 | if { (ac_try="$ac_compile" |
12336 | case "(($ac_try" in | |
12337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12338 | *) ac_try_echo=$ac_try;; | |
12339 | esac | |
ec6a6fbe AK |
12340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12341 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12342 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12343 | ac_status=$? |
8a2fc586 AK |
12344 | grep -v '^ *+' conftest.er1 >conftest.err |
12345 | rm -f conftest.er1 | |
12346 | cat conftest.err >&5 | |
ec6a6fbe | 12347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12348 | (exit $ac_status); } && { |
12349 | test -z "$ac_c_werror_flag" || | |
12350 | test ! -s conftest.err | |
12351 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12352 | ac_header_compiler=yes |
12353 | else | |
ec6a6fbe | 12354 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12355 | sed 's/^/| /' conftest.$ac_ext >&5 |
12356 | ||
7a197a62 | 12357 | ac_header_compiler=no |
ad6254c5 | 12358 | fi |
7a197a62 AK |
12359 | |
12360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12361 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12362 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12363 | |
12364 | # Is the header present? | |
ec6a6fbe AK |
12365 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12366 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12367 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12368 | /* confdefs.h. */ |
12369 | _ACEOF | |
12370 | cat confdefs.h >>conftest.$ac_ext | |
12371 | cat >>conftest.$ac_ext <<_ACEOF | |
12372 | /* end confdefs.h. */ | |
12373 | #include <$ac_header> | |
12374 | _ACEOF | |
7a197a62 AK |
12375 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12376 | case "(($ac_try" in | |
12377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12378 | *) ac_try_echo=$ac_try;; | |
12379 | esac | |
ec6a6fbe AK |
12380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12381 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12383 | ac_status=$? |
12384 | grep -v '^ *+' conftest.er1 >conftest.err | |
12385 | rm -f conftest.er1 | |
12386 | cat conftest.err >&5 | |
ec6a6fbe | 12387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12388 | (exit $ac_status); } >/dev/null && { |
12389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12390 | test ! -s conftest.err | |
12391 | }; then | |
ad6254c5 AK |
12392 | ac_header_preproc=yes |
12393 | else | |
ec6a6fbe | 12394 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12395 | sed 's/^/| /' conftest.$ac_ext >&5 |
12396 | ||
12397 | ac_header_preproc=no | |
12398 | fi | |
7a197a62 | 12399 | |
ad6254c5 | 12400 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12401 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12402 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12403 | |
12404 | # So? What about this header? | |
8a2fc586 AK |
12405 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12406 | yes:no: ) | |
ec6a6fbe AK |
12407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12408 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12410 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12411 | ac_header_preproc=yes |
ad6254c5 | 12412 | ;; |
8a2fc586 | 12413 | no:yes:* ) |
ec6a6fbe AK |
12414 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12415 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12416 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12417 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12418 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12419 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12420 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12421 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12422 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12423 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12424 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12425 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12426 | |
ad6254c5 AK |
12427 | ;; |
12428 | esac | |
ec6a6fbe AK |
12429 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12430 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12432 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12433 | else |
8a2fc586 | 12434 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 12435 | fi |
ec6a6fbe AK |
12436 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12437 | $as_echo "$as_val"'` | |
12438 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12439 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12440 | |
ad6254c5 | 12441 | fi |
ec6a6fbe AK |
12442 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12443 | $as_echo "$as_val"'` | |
12444 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12445 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12446 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12447 | _ACEOF |
0a62c911 | 12448 | |
0a62c911 | 12449 | else |
ec6a6fbe AK |
12450 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12451 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12452 | { (exit 1); exit 1; }; } |
80992638 AK |
12453 | fi |
12454 | ||
ad6254c5 | 12455 | done |
0a62c911 | 12456 | |
ad6254c5 | 12457 | fi |
0a62c911 | 12458 | |
a653923f AK |
12459 | ################################################################################ |
12460 | # Extract the first word of "modprobe", so it can be a program name with args. | |
12461 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
12462 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12463 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 12464 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 12465 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
12466 | else |
12467 | case $MODPROBE_CMD in | |
12468 | [\\/]* | ?:[\\/]*) | |
12469 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
12470 | ;; | |
12471 | *) | |
12472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12473 | for as_dir in $PATH | |
12474 | do | |
12475 | IFS=$as_save_IFS | |
12476 | test -z "$as_dir" && as_dir=. | |
12477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 12478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 12479 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 12480 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
12481 | break 2 |
12482 | fi | |
12483 | done | |
12484 | done | |
7a197a62 | 12485 | IFS=$as_save_IFS |
72b2cb61 AK |
12486 | |
12487 | ;; | |
12488 | esac | |
12489 | fi | |
12490 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 12491 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
12492 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
12493 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 12494 | else |
ec6a6fbe AK |
12495 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12496 | $as_echo "no" >&6; } | |
72b2cb61 AK |
12497 | fi |
12498 | ||
a653923f | 12499 | |
7a197a62 | 12500 | |
a653923f | 12501 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
12502 | |
12503 | cat >>confdefs.h <<_ACEOF | |
12504 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
12505 | _ACEOF | |
12506 | ||
a653923f AK |
12507 | fi |
12508 | ||
80992638 | 12509 | ################################################################################ |
93bd259b AK |
12510 | |
12511 | ||
12512 | if test "$BUILD_DMEVENTD" = yes; then | |
12513 | ||
12514 | # Check whether --with-dmeventd-pidfile was given. | |
12515 | if test "${with_dmeventd_pidfile+set}" = set; then | |
12516 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
12517 | #define DMEVENTD_PIDFILE "$withval" | |
12518 | _ACEOF | |
12519 | ||
12520 | else | |
12521 | cat >>confdefs.h <<_ACEOF | |
12522 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
12523 | _ACEOF | |
12524 | ||
12525 | fi | |
12526 | ||
12527 | fi | |
12528 | ||
12529 | ||
12530 | ||
12531 | if test "$BUILD_DMEVENTD" = yes; then | |
12532 | dmeventd_prefix="$exec_prefix" | |
12533 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12534 | dmeventd_prefix="$prefix" | |
12535 | fi | |
12536 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12537 | dmeventd_prefix="" | |
12538 | fi | |
12539 | ||
12540 | # Check whether --with-dmeventd-path was given. | |
12541 | if test "${with_dmeventd_path+set}" = set; then | |
12542 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
12543 | #define DMEVENTD_PATH "$withval" | |
12544 | _ACEOF | |
12545 | ||
12546 | else | |
12547 | cat >>confdefs.h <<_ACEOF | |
12548 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
12549 | _ACEOF | |
12550 | ||
12551 | fi | |
12552 | ||
12553 | fi | |
12554 | ||
12555 | ################################################################################ | |
ec6a6fbe AK |
12556 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
12557 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
12558 | |
12559 | # Check whether --with-interface was given. | |
12560 | if test "${with_interface+set}" = set; then | |
12561 | withval=$with_interface; interface="$withval" | |
12562 | else | |
12563 | interface=ioctl | |
12564 | fi | |
12565 | ||
12566 | if [ "x$interface" != xioctl ]; | |
12567 | then | |
ec6a6fbe AK |
12568 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
12569 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
12570 | { (exit 1); exit 1; }; } |
12571 | fi | |
ec6a6fbe AK |
12572 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
12573 | $as_echo "$interface" >&6; } | |
93bd259b AK |
12574 | |
12575 | ################################################################################ | |
2c44337b | 12576 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
12577 | |
12578 | cat >>confdefs.h <<_ACEOF | |
12579 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
12580 | _ACEOF | |
12581 | ||
12582 | ||
ec6a6fbe | 12583 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 12584 | |
d0191583 | 12585 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 12586 | |
ec6a6fbe AK |
12587 | VER=`cat VERSION` |
12588 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\"" | |
12589 | VER=`echo "$VER" | $AWK '{print $1}'` | |
12590 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
12591 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
12592 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
12593 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
12594 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'` | |
12595 | ||
80992638 | 12596 | ################################################################################ |
fae0c576 | 12597 | |
83912faa | 12598 | |
795ca3e5 AK |
12599 | |
12600 | ||
12601 | ||
12602 | ||
12603 | ||
12604 | ||
5a52dca9 | 12605 | |
8ef2b021 | 12606 | |
199e490e | 12607 | |
69792976 AK |
12608 | |
12609 | ||
12610 | ||
d0191583 | 12611 | |
69792976 | 12612 | |
8106cdd5 AK |
12613 | |
12614 | ||
12615 | ||
12616 | ||
12617 | ||
d68a82ec | 12618 | |
036f273a | 12619 | |
7d1552c9 | 12620 | |
8106cdd5 | 12621 | |
0a62c911 | 12622 | |
8106cdd5 | 12623 | |
4a7f3eb2 | 12624 | |
4922197a AK |
12625 | |
12626 | ||
d8ac0fbc | 12627 | |
1a9ea74d | 12628 | |
8a2fc586 AK |
12629 | |
12630 | ||
d0191583 | 12631 | |
93bd259b AK |
12632 | |
12633 | ||
12634 | ||
12635 | ||
12636 | ||
d0191583 JM |
12637 | |
12638 | ||
12639 | ||
12640 | ||
12641 | ||
8a2fc586 | 12642 | |
8ce0cbda | 12643 | |
8b1a3214 | 12644 | |
ec6a6fbe AK |
12645 | |
12646 | ||
12647 | ||
12648 | ||
e2997b73 AK |
12649 | |
12650 | ||
12651 | ||
12652 | ||
12653 | ||
12654 | ||
ec6a6fbe | 12655 | |
33f732c5 | 12656 | |
66e941e8 | 12657 | |
d3c8211f | 12658 | |
7e3fe830 | 12659 | |
68f2de6d AK |
12660 | |
12661 | ||
80992638 | 12662 | ################################################################################ |
e0c64c6c | 12663 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile" |
7a197a62 | 12664 | |
ad6254c5 | 12665 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12666 | # This file is a shell script that caches the results of configure |
12667 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12668 | # scripts and configure runs, see configure's option --config-cache. |
12669 | # It is not useful on other systems. If it contains results you don't | |
12670 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12671 | # |
ad6254c5 AK |
12672 | # config.status only pays attention to the cache file if you give it |
12673 | # the --recheck option to rerun configure. | |
795ca3e5 | 12674 | # |
ad6254c5 AK |
12675 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12676 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12677 | # following values. | |
12678 | ||
12679 | _ACEOF | |
12680 | ||
795ca3e5 AK |
12681 | # The following way of writing the cache mishandles newlines in values, |
12682 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12683 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12684 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12685 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12686 | ( |
12687 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12688 | eval ac_val=\$$ac_var | |
12689 | case $ac_val in #( | |
12690 | *${as_nl}*) | |
12691 | case $ac_var in #( | |
ec6a6fbe AK |
12692 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
12693 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
12694 | esac |
12695 | case $ac_var in #( | |
12696 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 12697 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
12698 | *) $as_unset $ac_var ;; |
12699 | esac ;; | |
12700 | esac | |
12701 | done | |
12702 | ||
ad6254c5 | 12703 | (set) 2>&1 | |
7a197a62 AK |
12704 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12705 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12706 | # `set' does not quote correctly, so add quotes (double-quote |
12707 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12708 | sed -n \ | |
8a2fc586 AK |
12709 | "s/'/'\\\\''/g; |
12710 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12711 | ;; #( |
ad6254c5 AK |
12712 | *) |
12713 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12714 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12715 | ;; |
7a197a62 AK |
12716 | esac | |
12717 | sort | |
12718 | ) | | |
ad6254c5 | 12719 | sed ' |
7a197a62 | 12720 | /^ac_cv_env_/b end |
ad6254c5 | 12721 | t clear |
7a197a62 | 12722 | :clear |
ad6254c5 AK |
12723 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12724 | t end | |
7a197a62 AK |
12725 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12726 | :end' >>confcache | |
12727 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12728 | if test -w "$cache_file"; then | |
12729 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
12730 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12731 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12732 | cat confcache >$cache_file |
795ca3e5 | 12733 | else |
ec6a6fbe AK |
12734 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12735 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12736 | fi |
12737 | fi | |
12738 | rm -f confcache | |
12739 | ||
795ca3e5 AK |
12740 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12741 | # Let make expand exec_prefix. | |
12742 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12743 | ||
72b2cb61 | 12744 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12745 | |
12746 | ac_libobjs= | |
12747 | ac_ltlibobjs= | |
12748 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12749 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12750 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 12751 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12752 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12753 | # will be set to the directory where LIBOBJS objects are built. | |
12754 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12755 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
12756 | done |
12757 | LIBOBJS=$ac_libobjs | |
80992638 | 12758 | |
ad6254c5 AK |
12759 | LTLIBOBJS=$ac_ltlibobjs |
12760 | ||
12761 | ||
12762 | ||
12763 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 12764 | ac_write_fail=0 |
ad6254c5 AK |
12765 | ac_clean_files_save=$ac_clean_files |
12766 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
12767 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
12768 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12769 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
12770 | #! $SHELL |
12771 | # Generated by $as_me. | |
795ca3e5 | 12772 | # Run this file to recreate the current configuration. |
795ca3e5 | 12773 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
12774 | # configure, is in config.log if it exists. |
12775 | ||
12776 | debug=false | |
12777 | ac_cs_recheck=false | |
12778 | ac_cs_silent=false | |
12779 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12780 | _ACEOF | |
12781 | ||
ec6a6fbe | 12782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12783 | ## --------------------- ## |
12784 | ## M4sh Initialization. ## | |
12785 | ## --------------------- ## | |
12786 | ||
25fbec5b AK |
12787 | # Be more Bourne compatible |
12788 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
12789 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12790 | emulate sh | |
12791 | NULLCMD=: | |
ec6a6fbe | 12792 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
12793 | # is contrary to our usage. Disable this feature. |
12794 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
12795 | setopt NO_GLOB_SUBST |
12796 | else | |
25fbec5b AK |
12797 | case `(set -o) 2>/dev/null` in |
12798 | *posix*) set -o posix ;; | |
12799 | esac | |
12800 | ||
7a197a62 | 12801 | fi |
25fbec5b AK |
12802 | |
12803 | ||
7a197a62 AK |
12804 | |
12805 | ||
12806 | # PATH needs CR | |
12807 | # Avoid depending upon Character Ranges. | |
12808 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12809 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12810 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12811 | as_cr_digits='0123456789' | |
12812 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12813 | ||
ec6a6fbe AK |
12814 | as_nl=' |
12815 | ' | |
12816 | export as_nl | |
12817 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12818 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12819 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12820 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12821 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12822 | as_echo='printf %s\n' | |
12823 | as_echo_n='printf %s' | |
12824 | else | |
12825 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12826 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12827 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 12828 | else |
ec6a6fbe AK |
12829 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12830 | as_echo_n_body='eval | |
12831 | arg=$1; | |
12832 | case $arg in | |
12833 | *"$as_nl"*) | |
12834 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12835 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12836 | esac; | |
12837 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12838 | ' | |
12839 | export as_echo_n_body | |
12840 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 12841 | fi |
ec6a6fbe AK |
12842 | export as_echo_body |
12843 | as_echo='sh -c $as_echo_body as_echo' | |
12844 | fi | |
12845 | ||
12846 | # The user is always right. | |
12847 | if test "${PATH_SEPARATOR+set}" != set; then | |
12848 | PATH_SEPARATOR=: | |
12849 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12850 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12851 | PATH_SEPARATOR=';' | |
12852 | } | |
ad6254c5 AK |
12853 | fi |
12854 | ||
12855 | # Support unset when possible. | |
8a2fc586 | 12856 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
12857 | as_unset=unset |
12858 | else | |
12859 | as_unset=false | |
12860 | fi | |
8106cdd5 | 12861 | |
ad6254c5 | 12862 | |
7a197a62 AK |
12863 | # IFS |
12864 | # We need space, tab and new line, in precisely that order. Quoting is | |
12865 | # there to prevent editors from complaining about space-tab. | |
12866 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12867 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
12868 | IFS=" "" $as_nl" |
12869 | ||
12870 | # Find who we are. Look in the path if we contain no directory separator. | |
12871 | case $0 in | |
12872 | *[\\/]* ) as_myself=$0 ;; | |
12873 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12874 | for as_dir in $PATH | |
12875 | do | |
12876 | IFS=$as_save_IFS | |
12877 | test -z "$as_dir" && as_dir=. | |
12878 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12879 | done | |
12880 | IFS=$as_save_IFS | |
12881 | ||
12882 | ;; | |
12883 | esac | |
12884 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12885 | # in which case we are not to be found in the path. | |
12886 | if test "x$as_myself" = x; then | |
12887 | as_myself=$0 | |
12888 | fi | |
12889 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 12890 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12891 | { (exit 1); exit 1; } |
12892 | fi | |
12893 | ||
ad6254c5 | 12894 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12895 | for as_var in ENV MAIL MAILPATH |
12896 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12897 | done | |
ad6254c5 AK |
12898 | PS1='$ ' |
12899 | PS2='> ' | |
12900 | PS4='+ ' | |
12901 | ||
12902 | # NLS nuisances. | |
ec6a6fbe AK |
12903 | LC_ALL=C |
12904 | export LC_ALL | |
12905 | LANGUAGE=C | |
12906 | export LANGUAGE | |
8106cdd5 | 12907 | |
ad6254c5 | 12908 | # Required to use basename. |
7a197a62 AK |
12909 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12910 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12911 | as_expr=expr |
12912 | else | |
12913 | as_expr=false | |
12914 | fi | |
8106cdd5 | 12915 | |
7a197a62 | 12916 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12917 | as_basename=basename |
12918 | else | |
12919 | as_basename=false | |
12920 | fi | |
12921 | ||
12922 | ||
12923 | # Name of the executable. | |
7a197a62 | 12924 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12925 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12926 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12927 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 12928 | $as_echo X/"$0" | |
7a197a62 AK |
12929 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12930 | s//\1/ | |
12931 | q | |
12932 | } | |
12933 | /^X\/\(\/\/\)$/{ | |
12934 | s//\1/ | |
12935 | q | |
12936 | } | |
12937 | /^X\/\(\/\).*/{ | |
12938 | s//\1/ | |
12939 | q | |
12940 | } | |
12941 | s/.*/./; q'` | |
ad6254c5 | 12942 | |
7a197a62 AK |
12943 | # CDPATH. |
12944 | $as_unset CDPATH | |
ad6254c5 AK |
12945 | |
12946 | ||
ad6254c5 | 12947 | |
ad6254c5 AK |
12948 | as_lineno_1=$LINENO |
12949 | as_lineno_2=$LINENO | |
ad6254c5 | 12950 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12951 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12952 | |
ad6254c5 AK |
12953 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12954 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12955 | # line-number line after each line using $LINENO; the second 'sed' |
12956 | # does the real work. The second script uses 'N' to pair each | |
12957 | # line-number line with the line containing $LINENO, and appends | |
12958 | # trailing '-' during substitution so that $LINENO is not a special | |
12959 | # case at line end. | |
ad6254c5 | 12960 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12961 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12962 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12963 | sed -n ' | |
12964 | p | |
12965 | /[$]LINENO/= | |
12966 | ' <$as_myself | | |
ad6254c5 | 12967 | sed ' |
7a197a62 AK |
12968 | s/[$]LINENO.*/&-/ |
12969 | t lineno | |
12970 | b | |
12971 | :lineno | |
ad6254c5 | 12972 | N |
7a197a62 AK |
12973 | :loop |
12974 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12975 | t loop |
7a197a62 | 12976 | s/-\n.*// |
ad6254c5 | 12977 | ' >$as_me.lineno && |
7a197a62 | 12978 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 12979 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
12980 | { (exit 1); exit 1; }; } |
12981 | ||
12982 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12983 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
12984 | # original and so on. Autoconf is especially sensitive to this). |
12985 | . "./$as_me.lineno" | |
ad6254c5 AK |
12986 | # Exit status is that of the last command. |
12987 | exit | |
12988 | } | |
12989 | ||
12990 | ||
7a197a62 AK |
12991 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12992 | as_dirname=dirname | |
12993 | else | |
12994 | as_dirname=false | |
12995 | fi | |
12996 | ||
12997 | ECHO_C= ECHO_N= ECHO_T= | |
12998 | case `echo -n x` in | |
12999 | -n*) | |
13000 | case `echo 'x\c'` in | |
13001 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13002 | *) ECHO_C='\c';; | |
13003 | esac;; | |
13004 | *) | |
13005 | ECHO_N='-n';; | |
ad6254c5 | 13006 | esac |
7a197a62 AK |
13007 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13008 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
13009 | as_expr=expr |
13010 | else | |
13011 | as_expr=false | |
13012 | fi | |
80992638 | 13013 | |
ad6254c5 | 13014 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
13015 | if test -d conf$$.dir; then |
13016 | rm -f conf$$.dir/conf$$.file | |
13017 | else | |
13018 | rm -f conf$$.dir | |
ec6a6fbe AK |
13019 | mkdir conf$$.dir 2>/dev/null |
13020 | fi | |
13021 | if (echo >conf$$.file) 2>/dev/null; then | |
13022 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13023 | as_ln_s='ln -s' | |
13024 | # ... but there are two gotchas: | |
13025 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13026 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13027 | # In both cases, we have to default to `cp -p'. | |
13028 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13029 | as_ln_s='cp -p' | |
13030 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13031 | as_ln_s=ln | |
13032 | else | |
ad6254c5 | 13033 | as_ln_s='cp -p' |
ec6a6fbe | 13034 | fi |
ad6254c5 AK |
13035 | else |
13036 | as_ln_s='cp -p' | |
13037 | fi | |
7a197a62 AK |
13038 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13039 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 13040 | |
ad6254c5 AK |
13041 | if mkdir -p . 2>/dev/null; then |
13042 | as_mkdir_p=: | |
13043 | else | |
8a2fc586 | 13044 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
13045 | as_mkdir_p=false |
13046 | fi | |
13047 | ||
25fbec5b AK |
13048 | if test -x / >/dev/null 2>&1; then |
13049 | as_test_x='test -x' | |
7a197a62 | 13050 | else |
25fbec5b AK |
13051 | if ls -dL / >/dev/null 2>&1; then |
13052 | as_ls_L_option=L | |
13053 | else | |
13054 | as_ls_L_option= | |
13055 | fi | |
13056 | as_test_x=' | |
13057 | eval sh -c '\'' | |
13058 | if test -d "$1"; then | |
ec6a6fbe | 13059 | test -d "$1/."; |
25fbec5b AK |
13060 | else |
13061 | case $1 in | |
ec6a6fbe | 13062 | -*)set "./$1";; |
25fbec5b AK |
13063 | esac; |
13064 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
13065 | ???[sx]*):;;*)false;;esac;fi | |
13066 | '\'' sh | |
13067 | ' | |
7a197a62 | 13068 | fi |
25fbec5b | 13069 | as_executable_p=$as_test_x |
ad6254c5 AK |
13070 | |
13071 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 13072 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13073 | |
13074 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 13075 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13076 | |
13077 | ||
ad6254c5 AK |
13078 | exec 6>&1 |
13079 | ||
7a197a62 | 13080 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 13081 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
13082 | # values after options handling. |
13083 | ac_log=" | |
ad6254c5 | 13084 | This file was extended by $as_me, which was |
ec6a6fbe | 13085 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
13086 | |
13087 | CONFIG_FILES = $CONFIG_FILES | |
13088 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13089 | CONFIG_LINKS = $CONFIG_LINKS | |
13090 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13091 | $ $0 $@ | |
13092 | ||
7a197a62 AK |
13093 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13094 | " | |
13095 | ||
ad6254c5 AK |
13096 | _ACEOF |
13097 | ||
ec6a6fbe AK |
13098 | case $ac_config_files in *" |
13099 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13100 | esac | |
13101 | ||
13102 | case $ac_config_headers in *" | |
13103 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13104 | esac | |
13105 | ||
13106 | ||
13107 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 13108 | # Files that config.status was made for. |
68f2de6d AK |
13109 | config_files="$ac_config_files" |
13110 | config_headers="$ac_config_headers" | |
ad6254c5 | 13111 | |
7a197a62 | 13112 | _ACEOF |
ad6254c5 | 13113 | |
ec6a6fbe | 13114 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13115 | ac_cs_usage="\ |
13116 | \`$as_me' instantiates files from templates according to the | |
13117 | current configuration. | |
13118 | ||
ec6a6fbe | 13119 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
13120 | |
13121 | -h, --help print this help, then exit | |
25fbec5b | 13122 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
13123 | -q, --quiet, --silent |
13124 | do not print progress messages | |
ad6254c5 AK |
13125 | -d, --debug don't remove temporary files |
13126 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
13127 | --file=FILE[:TEMPLATE] |
13128 | instantiate the configuration file FILE | |
13129 | --header=FILE[:TEMPLATE] | |
13130 | instantiate the configuration header FILE | |
ad6254c5 AK |
13131 | |
13132 | Configuration files: | |
13133 | $config_files | |
13134 | ||
72b2cb61 AK |
13135 | Configuration headers: |
13136 | $config_headers | |
13137 | ||
ad6254c5 | 13138 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 13139 | |
7a197a62 | 13140 | _ACEOF |
ec6a6fbe | 13141 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13142 | ac_cs_version="\\ |
13143 | config.status | |
ec6a6fbe AK |
13144 | configured by $0, generated by GNU Autoconf 2.63, |
13145 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 13146 | |
ec6a6fbe | 13147 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
13148 | This config.status script is free software; the Free Software Foundation |
13149 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
13150 | |
13151 | ac_pwd='$ac_pwd' | |
13152 | srcdir='$srcdir' | |
13153 | INSTALL='$INSTALL' | |
fddafd51 | 13154 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
13155 | AWK='$AWK' |
13156 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
13157 | _ACEOF |
13158 | ||
ec6a6fbe AK |
13159 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13160 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
13161 | ac_need_defaults=: |
13162 | while test $# != 0 | |
13163 | do | |
13164 | case $1 in | |
13165 | --*=*) | |
7a197a62 AK |
13166 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13167 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
13168 | ac_shift=: |
13169 | ;; | |
7a197a62 | 13170 | *) |
ad6254c5 AK |
13171 | ac_option=$1 |
13172 | ac_optarg=$2 | |
13173 | ac_shift=shift | |
13174 | ;; | |
ad6254c5 AK |
13175 | esac |
13176 | ||
13177 | case $ac_option in | |
13178 | # Handling of the options. | |
ad6254c5 AK |
13179 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13180 | ac_cs_recheck=: ;; | |
7a197a62 | 13181 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 13182 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 13183 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
13184 | debug=: ;; |
13185 | --file | --fil | --fi | --f ) | |
13186 | $ac_shift | |
ec6a6fbe AK |
13187 | case $ac_optarg in |
13188 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13189 | esac | |
13190 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
13191 | ac_need_defaults=false;; |
13192 | --header | --heade | --head | --hea ) | |
13193 | $ac_shift | |
ec6a6fbe AK |
13194 | case $ac_optarg in |
13195 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13196 | esac | |
13197 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 13198 | ac_need_defaults=false;; |
7a197a62 AK |
13199 | --he | --h) |
13200 | # Conflict between --help and --header | |
ec6a6fbe | 13201 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
13202 | Try \`$0 --help' for more information." >&2 |
13203 | { (exit 1); exit 1; }; };; | |
13204 | --help | --hel | -h ) | |
ec6a6fbe | 13205 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
13206 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13207 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13208 | ac_cs_silent=: ;; | |
13209 | ||
13210 | # This is an error. | |
ec6a6fbe | 13211 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 13212 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
13213 | { (exit 1); exit 1; }; } ;; |
13214 | ||
7a197a62 AK |
13215 | *) ac_config_targets="$ac_config_targets $1" |
13216 | ac_need_defaults=false ;; | |
ad6254c5 AK |
13217 | |
13218 | esac | |
13219 | shift | |
13220 | done | |
13221 | ||
13222 | ac_configure_extra_args= | |
13223 | ||
13224 | if $ac_cs_silent; then | |
13225 | exec 6>/dev/null | |
13226 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13227 | fi | |
13228 | ||
13229 | _ACEOF | |
ec6a6fbe | 13230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 13231 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
13232 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13233 | shift | |
13234 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13235 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 13236 | export CONFIG_SHELL |
ec6a6fbe | 13237 | exec "\$@" |
ad6254c5 AK |
13238 | fi |
13239 | ||
13240 | _ACEOF | |
ec6a6fbe | 13241 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13242 | exec 5>>config.log |
13243 | { | |
13244 | echo | |
13245 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13246 | ## Running $as_me. ## | |
13247 | _ASBOX | |
ec6a6fbe | 13248 | $as_echo "$ac_log" |
7a197a62 | 13249 | } >&5 |
ad6254c5 | 13250 | |
7a197a62 | 13251 | _ACEOF |
ec6a6fbe | 13252 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 13253 | _ACEOF |
ad6254c5 | 13254 | |
ec6a6fbe | 13255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13256 | |
13257 | # Handling of arguments. | |
ad6254c5 AK |
13258 | for ac_config_target in $ac_config_targets |
13259 | do | |
7a197a62 AK |
13260 | case $ac_config_target in |
13261 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
13262 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13263 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
13264 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
13265 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
13266 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
13267 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 13268 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
13269 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
13270 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 13271 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
13272 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
13273 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
13274 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
13275 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
13276 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
13277 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 13278 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 13279 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
13280 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
13281 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 13282 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
93bd259b AK |
13283 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
13284 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 13285 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 13286 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 13287 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 13288 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 13289 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
7a197a62 | 13290 | |
ec6a6fbe AK |
13291 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13292 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 13293 | { (exit 1); exit 1; }; };; |
80992638 | 13294 | esac |
ad6254c5 AK |
13295 | done |
13296 | ||
7a197a62 | 13297 | |
ad6254c5 AK |
13298 | # If the user did not use the arguments to specify the items to instantiate, |
13299 | # then the envvar interface is used. Set only those that are not. | |
13300 | # We use the long form for the default assignment because of an extremely | |
13301 | # bizarre bug on SunOS 4.1.3. | |
13302 | if $ac_need_defaults; then | |
13303 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 13304 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
13305 | fi |
13306 | ||
13307 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 13308 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 13309 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
13310 | # Hook for its removal unless debugging. |
13311 | # Note that there is a small window in which the directory will not be cleaned: | |
13312 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
13313 | $debug || |
13314 | { | |
7a197a62 AK |
13315 | tmp= |
13316 | trap 'exit_status=$? | |
13317 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13318 | ' 0 | |
ad6254c5 AK |
13319 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13320 | } | |
ad6254c5 AK |
13321 | # Create a (secure) tmp directory for tmp files. |
13322 | ||
13323 | { | |
7a197a62 | 13324 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
13325 | test -n "$tmp" && test -d "$tmp" |
13326 | } || | |
13327 | { | |
7a197a62 AK |
13328 | tmp=./conf$$-$RANDOM |
13329 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
13330 | } || |
13331 | { | |
ec6a6fbe | 13332 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
13333 | { (exit 1); exit 1; } |
13334 | } | |
13335 | ||
ec6a6fbe AK |
13336 | # Set up the scripts for CONFIG_FILES section. |
13337 | # No need to generate them if there are no CONFIG_FILES. | |
13338 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 13339 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 13340 | |
68f2de6d | 13341 | |
ec6a6fbe AK |
13342 | ac_cr='\r' |
13343 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13344 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13345 | ac_cs_awk_cr='\\r' | |
13346 | else | |
13347 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 13348 | fi |
7a197a62 | 13349 | |
ec6a6fbe | 13350 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 13351 | _ACEOF |
7a197a62 | 13352 | |
8106cdd5 | 13353 | |
ec6a6fbe AK |
13354 | { |
13355 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13356 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13357 | echo "_ACEOF" | |
13358 | } >conf$$subs.sh || | |
13359 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13360 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13361 | { (exit 1); exit 1; }; } | |
13362 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
13363 | ac_delim='%!_!# ' |
13364 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
13365 | . ./conf$$subs.sh || |
13366 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13367 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13368 | { (exit 1); exit 1; }; } | |
13369 | ||
13370 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13371 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
13372 | break |
13373 | elif $ac_last_try; then | |
ec6a6fbe AK |
13374 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13375 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
13376 | { (exit 1); exit 1; }; } |
13377 | else | |
13378 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13379 | fi | |
13380 | done | |
ec6a6fbe AK |
13381 | rm -f conf$$subs.sh |
13382 | ||
13383 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13384 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13385 | _ACEOF | |
13386 | sed -n ' | |
13387 | h | |
13388 | s/^/S["/; s/!.*/"]=/ | |
13389 | p | |
13390 | g | |
13391 | s/^[^!]*!// | |
13392 | :repl | |
13393 | t repl | |
13394 | s/'"$ac_delim"'$// | |
13395 | t delim | |
13396 | :nl | |
13397 | h | |
13398 | s/\(.\{148\}\).*/\1/ | |
13399 | t more1 | |
13400 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13401 | p | |
13402 | n | |
13403 | b repl | |
13404 | :more1 | |
13405 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13406 | p | |
13407 | g | |
13408 | s/.\{148\}// | |
13409 | t nl | |
13410 | :delim | |
13411 | h | |
13412 | s/\(.\{148\}\).*/\1/ | |
13413 | t more2 | |
13414 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13415 | p | |
13416 | b | |
13417 | :more2 | |
13418 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13419 | p | |
13420 | g | |
13421 | s/.\{148\}// | |
13422 | t delim | |
13423 | ' <conf$$subs.awk | sed ' | |
13424 | /^[^""]/{ | |
13425 | N | |
13426 | s/\n// | |
13427 | } | |
13428 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13429 | rm -f conf$$subs.awk | |
13430 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13431 | _ACAWK | |
13432 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13433 | for (key in S) S_is_set[key] = 1 | |
13434 | FS = "\a" | |
7a197a62 | 13435 | |
ec6a6fbe AK |
13436 | } |
13437 | { | |
13438 | line = $ 0 | |
13439 | nfields = split(line, field, "@") | |
13440 | substed = 0 | |
13441 | len = length(field[1]) | |
13442 | for (i = 2; i < nfields; i++) { | |
13443 | key = field[i] | |
13444 | keylen = length(key) | |
13445 | if (S_is_set[key]) { | |
13446 | value = S[key] | |
13447 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13448 | len += length(value) + length(field[++i]) | |
13449 | substed = 1 | |
13450 | } else | |
13451 | len += 1 + keylen | |
13452 | } | |
13453 | ||
13454 | print line | |
13455 | } | |
fddafd51 | 13456 | |
ec6a6fbe | 13457 | _ACAWK |
1995c9ff | 13458 | _ACEOF |
ec6a6fbe AK |
13459 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13460 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13461 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13462 | else | |
13463 | cat | |
13464 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13465 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
13466 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
13467 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13468 | _ACEOF |
13469 | ||
7a197a62 AK |
13470 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13471 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13472 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13473 | # (actually we leave an empty line to preserve line numbers). | |
13474 | if test "x$srcdir" = x.; then | |
13475 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13476 | s/:*\$(srcdir):*/:/ | |
13477 | s/:*\${srcdir}:*/:/ | |
13478 | s/:*@srcdir@:*/:/ | |
13479 | s/^\([^=]*=[ ]*\):*/\1/ | |
13480 | s/:*$// | |
13481 | s/^[^=]*=[ ]*$// | |
13482 | }' | |
13483 | fi | |
13484 | ||
ec6a6fbe | 13485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13486 | fi # test -n "$CONFIG_FILES" |
13487 | ||
ec6a6fbe AK |
13488 | # Set up the scripts for CONFIG_HEADERS section. |
13489 | # No need to generate them if there are no CONFIG_HEADERS. | |
13490 | # This happens for instance with `./config.status Makefile'. | |
13491 | if test -n "$CONFIG_HEADERS"; then | |
13492 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13493 | BEGIN { | |
13494 | _ACEOF | |
13495 | ||
13496 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13497 | # here-document in config.status, that substitutes the proper values into | |
13498 | # config.h.in to produce config.h. | |
13499 | ||
13500 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13501 | # handling of long lines. | |
13502 | ac_delim='%!_!# ' | |
13503 | for ac_last_try in false false :; do | |
13504 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13505 | if test -z "$ac_t"; then | |
13506 | break | |
13507 | elif $ac_last_try; then | |
13508 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
13509 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
13510 | { (exit 1); exit 1; }; } | |
13511 | else | |
13512 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13513 | fi | |
13514 | done | |
13515 | ||
13516 | # For the awk script, D is an array of macro values keyed by name, | |
13517 | # likewise P contains macro parameters if any. Preserve backslash | |
13518 | # newline sequences. | |
13519 | ||
13520 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13521 | sed -n ' | |
13522 | s/.\{148\}/&'"$ac_delim"'/g | |
13523 | t rset | |
13524 | :rset | |
13525 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13526 | t def | |
13527 | d | |
13528 | :def | |
13529 | s/\\$// | |
13530 | t bsnl | |
13531 | s/["\\]/\\&/g | |
13532 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13533 | D["\1"]=" \3"/p | |
13534 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13535 | d | |
13536 | :bsnl | |
13537 | s/["\\]/\\&/g | |
13538 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13539 | D["\1"]=" \3\\\\\\n"\\/p | |
13540 | t cont | |
13541 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13542 | t cont | |
13543 | d | |
13544 | :cont | |
13545 | n | |
13546 | s/.\{148\}/&'"$ac_delim"'/g | |
13547 | t clear | |
13548 | :clear | |
13549 | s/\\$// | |
13550 | t bsnlc | |
13551 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13552 | d | |
13553 | :bsnlc | |
13554 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13555 | b cont | |
13556 | ' <confdefs.h | sed ' | |
13557 | s/'"$ac_delim"'/"\\\ | |
13558 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13559 | ||
13560 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13561 | for (key in D) D_is_set[key] = 1 | |
13562 | FS = "\a" | |
13563 | } | |
13564 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13565 | line = \$ 0 | |
13566 | split(line, arg, " ") | |
13567 | if (arg[1] == "#") { | |
13568 | defundef = arg[2] | |
13569 | mac1 = arg[3] | |
13570 | } else { | |
13571 | defundef = substr(arg[1], 2) | |
13572 | mac1 = arg[2] | |
13573 | } | |
13574 | split(mac1, mac2, "(") #) | |
13575 | macro = mac2[1] | |
13576 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13577 | if (D_is_set[macro]) { | |
13578 | # Preserve the white space surrounding the "#". | |
13579 | print prefix "define", macro P[macro] D[macro] | |
13580 | next | |
13581 | } else { | |
13582 | # Replace #undef with comments. This is necessary, for example, | |
13583 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13584 | # on some systems where configure will not decide to define it. | |
13585 | if (defundef == "undef") { | |
13586 | print "/*", prefix defundef, macro, "*/" | |
13587 | next | |
13588 | } | |
13589 | } | |
13590 | } | |
13591 | { print } | |
13592 | _ACAWK | |
13593 | _ACEOF | |
13594 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13595 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
13596 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
13597 | { (exit 1); exit 1; }; } | |
13598 | fi # test -n "$CONFIG_HEADERS" | |
13599 | ||
7a197a62 | 13600 | |
ec6a6fbe AK |
13601 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
13602 | shift | |
13603 | for ac_tag | |
7a197a62 AK |
13604 | do |
13605 | case $ac_tag in | |
13606 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13607 | esac | |
13608 | case $ac_mode$ac_tag in | |
13609 | :[FHL]*:*);; | |
ec6a6fbe AK |
13610 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
13611 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
13612 | { (exit 1); exit 1; }; };; |
13613 | :[FH]-) ac_tag=-:-;; | |
13614 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13615 | esac | |
13616 | ac_save_IFS=$IFS | |
13617 | IFS=: | |
13618 | set x $ac_tag | |
13619 | IFS=$ac_save_IFS | |
13620 | shift | |
13621 | ac_file=$1 | |
13622 | shift | |
13623 | ||
13624 | case $ac_mode in | |
13625 | :L) ac_source=$1;; | |
13626 | :[FH]) | |
13627 | ac_file_inputs= | |
13628 | for ac_f | |
13629 | do | |
13630 | case $ac_f in | |
13631 | -) ac_f="$tmp/stdin";; | |
13632 | *) # Look for the file first in the build tree, then in the source tree | |
13633 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13634 | # because $ac_f cannot contain `:'. | |
13635 | test -f "$ac_f" || | |
13636 | case $ac_f in | |
13637 | [\\/$]*) false;; | |
13638 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13639 | esac || | |
ec6a6fbe AK |
13640 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
13641 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
13642 | { (exit 1); exit 1; }; };; |
13643 | esac | |
ec6a6fbe AK |
13644 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
13645 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
13646 | done |
13647 | ||
13648 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13649 | # use $as_me), people would be surprised to read: | |
13650 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
13651 | configure_input='Generated from '` |
13652 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13653 | `' by configure.' | |
7a197a62 AK |
13654 | if test x"$ac_file" != x-; then |
13655 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
13656 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
13657 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 13658 | fi |
ec6a6fbe AK |
13659 | # Neutralize special characters interpreted by sed in replacement strings. |
13660 | case $configure_input in #( | |
13661 | *\&* | *\|* | *\\* ) | |
13662 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13663 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13664 | *) ac_sed_conf_input=$configure_input;; | |
13665 | esac | |
7a197a62 AK |
13666 | |
13667 | case $ac_tag in | |
ec6a6fbe AK |
13668 | *:-:* | *:-) cat >"$tmp/stdin" \ |
13669 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13670 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13671 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
13672 | esac |
13673 | ;; | |
80992638 | 13674 | esac |
8106cdd5 | 13675 | |
7a197a62 | 13676 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 13677 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13678 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13679 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 13680 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13681 | $as_echo X"$ac_file" | |
7a197a62 AK |
13682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13683 | s//\1/ | |
13684 | q | |
13685 | } | |
13686 | /^X\(\/\/\)[^/].*/{ | |
13687 | s//\1/ | |
13688 | q | |
13689 | } | |
13690 | /^X\(\/\/\)$/{ | |
13691 | s//\1/ | |
13692 | q | |
13693 | } | |
13694 | /^X\(\/\).*/{ | |
13695 | s//\1/ | |
13696 | q | |
13697 | } | |
13698 | s/.*/./; q'` | |
13699 | { as_dir="$ac_dir" | |
13700 | case $as_dir in #( | |
13701 | -*) as_dir=./$as_dir;; | |
13702 | esac | |
13703 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13704 | as_dirs= |
7a197a62 AK |
13705 | while :; do |
13706 | case $as_dir in #( | |
ec6a6fbe | 13707 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
13708 | *) as_qdir=$as_dir;; |
13709 | esac | |
13710 | as_dirs="'$as_qdir' $as_dirs" | |
13711 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13712 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13713 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13714 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13715 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13716 | $as_echo X"$as_dir" | |
7a197a62 AK |
13717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13718 | s//\1/ | |
13719 | q | |
13720 | } | |
13721 | /^X\(\/\/\)[^/].*/{ | |
13722 | s//\1/ | |
13723 | q | |
13724 | } | |
13725 | /^X\(\/\/\)$/{ | |
13726 | s//\1/ | |
13727 | q | |
13728 | } | |
13729 | /^X\(\/\).*/{ | |
13730 | s//\1/ | |
13731 | q | |
13732 | } | |
13733 | s/.*/./; q'` | |
13734 | test -d "$as_dir" && break | |
ad6254c5 | 13735 | done |
7a197a62 | 13736 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
13737 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13738 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13739 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13740 | ac_builddir=. |
13741 | ||
7a197a62 AK |
13742 | case "$ac_dir" in |
13743 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13744 | *) | |
ec6a6fbe | 13745 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 13746 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 13747 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
13748 | case $ac_top_builddir_sub in |
13749 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13750 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13751 | esac ;; | |
13752 | esac | |
13753 | ac_abs_top_builddir=$ac_pwd | |
13754 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13755 | # for backward compatibility: | |
13756 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
13757 | |
13758 | case $srcdir in | |
7a197a62 | 13759 | .) # We are building in place. |
ad6254c5 | 13760 | ac_srcdir=. |
7a197a62 AK |
13761 | ac_top_srcdir=$ac_top_builddir_sub |
13762 | ac_abs_top_srcdir=$ac_pwd ;; | |
13763 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 13764 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
13765 | ac_top_srcdir=$srcdir |
13766 | ac_abs_top_srcdir=$srcdir ;; | |
13767 | *) # Relative name. | |
13768 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13769 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13770 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 13771 | esac |
7a197a62 | 13772 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 13773 | |
ad6254c5 | 13774 | |
7a197a62 AK |
13775 | case $ac_mode in |
13776 | :F) | |
13777 | # | |
13778 | # CONFIG_FILE | |
13779 | # | |
ad6254c5 AK |
13780 | |
13781 | case $INSTALL in | |
13782 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 13783 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 13784 | esac |
fddafd51 ZK |
13785 | ac_MKDIR_P=$MKDIR_P |
13786 | case $MKDIR_P in | |
13787 | [\\/$]* | ?:[\\/]* ) ;; | |
13788 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13789 | esac | |
7a197a62 | 13790 | _ACEOF |
795ca3e5 | 13791 | |
ec6a6fbe | 13792 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13793 | # If the template does not know about datarootdir, expand it. |
13794 | # FIXME: This hack should be removed a few years after 2.60. | |
13795 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13796 | ||
ec6a6fbe AK |
13797 | ac_sed_dataroot=' |
13798 | /datarootdir/ { | |
7a197a62 AK |
13799 | p |
13800 | q | |
13801 | } | |
13802 | /@datadir@/p | |
13803 | /@docdir@/p | |
13804 | /@infodir@/p | |
13805 | /@localedir@/p | |
13806 | /@mandir@/p | |
ec6a6fbe AK |
13807 | ' |
13808 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
13809 | *datarootdir*) ac_datarootdir_seen=yes;; |
13810 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
13811 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
13812 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 13813 | _ACEOF |
ec6a6fbe | 13814 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13815 | ac_datarootdir_hack=' |
13816 | s&@datadir@&$datadir&g | |
13817 | s&@docdir@&$docdir&g | |
13818 | s&@infodir@&$infodir&g | |
13819 | s&@localedir@&$localedir&g | |
13820 | s&@mandir@&$mandir&g | |
13821 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13822 | esac | |
13823 | _ACEOF | |
13824 | ||
13825 | # Neutralize VPATH when `$srcdir' = `.'. | |
13826 | # Shell code in configure.ac might set extrasub. | |
13827 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
13828 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13829 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
13830 | $extrasub |
13831 | _ACEOF | |
ec6a6fbe | 13832 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13833 | :t |
13834 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 13835 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 13836 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 13837 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
13838 | s&@srcdir@&$ac_srcdir&;t t |
13839 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13840 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13841 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13842 | s&@builddir@&$ac_builddir&;t t | |
13843 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13844 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13845 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 13846 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 13847 | $ac_datarootdir_hack |
ec6a6fbe AK |
13848 | " |
13849 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13850 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13851 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13852 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13853 | |
13854 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13855 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13856 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 13857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 13858 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 13859 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
13860 | which seems to be undefined. Please make sure it is defined." >&2;} |
13861 | ||
13862 | rm -f "$tmp/stdin" | |
72b2cb61 | 13863 | case $ac_file in |
ec6a6fbe AK |
13864 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
13865 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13866 | esac \ | |
13867 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13868 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13869 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13870 | ;; |
13871 | :H) | |
13872 | # | |
13873 | # CONFIG_HEADER | |
13874 | # | |
72b2cb61 | 13875 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
13876 | { |
13877 | $as_echo "/* $configure_input */" \ | |
13878 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13879 | } >"$tmp/config.h" \ | |
13880 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13881 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13882 | { (exit 1); exit 1; }; } | |
13883 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13884 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13885 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13886 | else |
ec6a6fbe AK |
13887 | rm -f "$ac_file" |
13888 | mv "$tmp/config.h" "$ac_file" \ | |
13889 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13890 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13891 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
13892 | fi |
13893 | else | |
ec6a6fbe AK |
13894 | $as_echo "/* $configure_input */" \ |
13895 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13896 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13897 | $as_echo "$as_me: error: could not create -" >&2;} | |
13898 | { (exit 1); exit 1; }; } | |
72b2cb61 | 13899 | fi |
7a197a62 AK |
13900 | ;; |
13901 | ||
13902 | ||
13903 | esac | |
13904 | ||
13905 | done # for ac_tag | |
795ca3e5 | 13906 | |
795ca3e5 | 13907 | |
ad6254c5 AK |
13908 | { (exit 0); exit 0; } |
13909 | _ACEOF | |
795ca3e5 | 13910 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13911 | ac_clean_files=$ac_clean_files_save |
13912 | ||
ec6a6fbe AK |
13913 | test $ac_write_fail = 0 || |
13914 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
13915 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
13916 | { (exit 1); exit 1; }; } | |
13917 | ||
ad6254c5 AK |
13918 | |
13919 | # configure is writing to config.log, and then calls config.status. | |
13920 | # config.status does its own redirection, appending to config.log. | |
13921 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13922 | # by configure, so config.status won't be able to write to it; its | |
13923 | # output is simply discarded. So we exec the FD to /dev/null, | |
13924 | # effectively closing config.log, so it can be properly (re)opened and | |
13925 | # appended to by config.status. When coming back to configure, we | |
13926 | # need to make the FD available again. | |
13927 | if test "$no_create" != yes; then | |
13928 | ac_cs_success=: | |
13929 | ac_config_status_args= | |
13930 | test "$silent" = yes && | |
13931 | ac_config_status_args="$ac_config_status_args --quiet" | |
13932 | exec 5>/dev/null | |
13933 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13934 | exec 5>>config.log | |
13935 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13936 | # would make configure fail if this is the last instruction. | |
13937 | $ac_cs_success || { (exit 1); exit 1; } | |
13938 | fi | |
ec6a6fbe AK |
13939 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
13940 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13941 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13942 | fi | |
795ca3e5 | 13943 | |
2dc95e1c AK |
13944 | |
13945 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
13946 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13947 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13948 | fi |