]>
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 | |
572fefeb | 693 | APPLIB |
ec6a6fbe AK |
694 | MODPROBE_CMD |
695 | MSGFMT | |
696 | LVM2CMD_LIB | |
572fefeb | 697 | LVM2APP_LIB |
ec6a6fbe AK |
698 | GENHTML |
699 | LCOV | |
e2997b73 AK |
700 | CPG_LIBS |
701 | CPG_CFLAGS | |
702 | CONFDB_LIBS | |
703 | CONFDB_CFLAGS | |
704 | QUORUM_LIBS | |
705 | QUORUM_CFLAGS | |
706 | PKG_CONFIG | |
ec6a6fbe AK |
707 | POW_LIB |
708 | LIBOBJS | |
709 | ALLOCA | |
710 | CSCOPE_CMD | |
711 | CFLOW_CMD | |
712 | RANLIB | |
713 | MKDIR_P | |
714 | SET_MAKE | |
715 | LN_S | |
716 | INSTALL_DATA | |
717 | INSTALL_SCRIPT | |
718 | INSTALL_PROGRAM | |
719 | EGREP | |
720 | GREP | |
721 | CPP | |
722 | OBJEXT | |
723 | EXEEXT | |
724 | ac_ct_CC | |
725 | CPPFLAGS | |
726 | LDFLAGS | |
727 | CFLAGS | |
728 | CC | |
729 | AWK | |
730 | SED | |
731 | target_os | |
732 | target_vendor | |
733 | target_cpu | |
734 | target | |
735 | host_os | |
736 | host_vendor | |
737 | host_cpu | |
738 | host | |
739 | build_os | |
740 | build_vendor | |
741 | build_cpu | |
742 | build | |
743 | target_alias | |
744 | host_alias | |
745 | build_alias | |
746 | LIBS | |
747 | ECHO_T | |
748 | ECHO_N | |
749 | ECHO_C | |
750 | DEFS | |
751 | mandir | |
752 | localedir | |
753 | libdir | |
754 | psdir | |
755 | pdfdir | |
756 | dvidir | |
757 | htmldir | |
758 | infodir | |
759 | docdir | |
760 | oldincludedir | |
761 | includedir | |
762 | localstatedir | |
763 | sharedstatedir | |
764 | sysconfdir | |
765 | datadir | |
766 | datarootdir | |
767 | libexecdir | |
768 | sbindir | |
769 | bindir | |
770 | program_transform_name | |
771 | prefix | |
772 | exec_prefix | |
773 | PACKAGE_BUGREPORT | |
774 | PACKAGE_STRING | |
775 | PACKAGE_VERSION | |
776 | PACKAGE_TARNAME | |
777 | PACKAGE_NAME | |
778 | PATH_SEPARATOR | |
779 | SHELL' | |
ad6254c5 | 780 | ac_subst_files='' |
ec6a6fbe AK |
781 | ac_user_opts=' |
782 | enable_option_checking | |
783 | enable_static_link | |
784 | with_user | |
785 | with_group | |
786 | with_device_uid | |
787 | with_device_gid | |
788 | with_device_mode | |
789 | enable_lvm1_fallback | |
790 | with_lvm1 | |
791 | with_pool | |
792 | with_cluster | |
793 | with_snapshots | |
794 | with_mirrors | |
795 | enable_readline | |
796 | enable_realtime | |
797 | with_clvmd | |
798 | enable_debug | |
799 | with_optimisation | |
800 | enable_profiling | |
801 | enable_devmapper | |
802 | enable_compat | |
803 | enable_ioctl | |
804 | enable_o_direct | |
572fefeb | 805 | enable_applib |
ec6a6fbe AK |
806 | enable_cmdlib |
807 | enable_pkgconfig | |
808 | enable_fsadm | |
809 | enable_dmeventd | |
810 | enable_selinux | |
811 | enable_nls | |
812 | with_localedir | |
813 | with_confdir | |
814 | with_staticdir | |
815 | with_usrlibdir | |
816 | with_usrsbindir | |
817 | with_dmeventd_pidfile | |
818 | with_dmeventd_path | |
819 | with_interface | |
820 | ' | |
7a197a62 AK |
821 | ac_precious_vars='build_alias |
822 | host_alias | |
823 | target_alias | |
824 | CC | |
825 | CFLAGS | |
826 | LDFLAGS | |
25fbec5b | 827 | LIBS |
7a197a62 | 828 | CPPFLAGS |
e2997b73 AK |
829 | CPP |
830 | PKG_CONFIG | |
831 | QUORUM_CFLAGS | |
832 | QUORUM_LIBS | |
833 | CONFDB_CFLAGS | |
834 | CONFDB_LIBS | |
835 | CPG_CFLAGS | |
836 | CPG_LIBS' | |
7a197a62 | 837 | |
795ca3e5 AK |
838 | |
839 | # Initialize some variables set by options. | |
ad6254c5 AK |
840 | ac_init_help= |
841 | ac_init_version=false | |
ec6a6fbe AK |
842 | ac_unrecognized_opts= |
843 | ac_unrecognized_sep= | |
795ca3e5 AK |
844 | # The variables have the same names as the options, with |
845 | # dashes changed to underlines. | |
ad6254c5 | 846 | cache_file=/dev/null |
795ca3e5 | 847 | exec_prefix=NONE |
795ca3e5 | 848 | no_create= |
795ca3e5 AK |
849 | no_recursion= |
850 | prefix=NONE | |
851 | program_prefix=NONE | |
852 | program_suffix=NONE | |
853 | program_transform_name=s,x,x, | |
854 | silent= | |
855 | site= | |
856 | srcdir= | |
795ca3e5 AK |
857 | verbose= |
858 | x_includes=NONE | |
859 | x_libraries=NONE | |
ad6254c5 AK |
860 | |
861 | # Installation directory options. | |
862 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
863 | # and all the variables that are supposed to be based on exec_prefix | |
864 | # by default will actually change. | |
865 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 866 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
867 | bindir='${exec_prefix}/bin' |
868 | sbindir='${exec_prefix}/sbin' | |
869 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
870 | datarootdir='${prefix}/share' |
871 | datadir='${datarootdir}' | |
795ca3e5 AK |
872 | sysconfdir='${prefix}/etc' |
873 | sharedstatedir='${prefix}/com' | |
874 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
875 | includedir='${prefix}/include' |
876 | oldincludedir='/usr/include' | |
7a197a62 AK |
877 | docdir='${datarootdir}/doc/${PACKAGE}' |
878 | infodir='${datarootdir}/info' | |
879 | htmldir='${docdir}' | |
880 | dvidir='${docdir}' | |
881 | pdfdir='${docdir}' | |
882 | psdir='${docdir}' | |
883 | libdir='${exec_prefix}/lib' | |
884 | localedir='${datarootdir}/locale' | |
885 | mandir='${datarootdir}/man' | |
795ca3e5 | 886 | |
795ca3e5 | 887 | ac_prev= |
7a197a62 | 888 | ac_dashdash= |
795ca3e5 AK |
889 | for ac_option |
890 | do | |
795ca3e5 AK |
891 | # If the previous option needs an argument, assign it. |
892 | if test -n "$ac_prev"; then | |
7a197a62 | 893 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
894 | ac_prev= |
895 | continue | |
896 | fi | |
897 | ||
7a197a62 AK |
898 | case $ac_option in |
899 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
900 | *) ac_optarg=yes ;; | |
901 | esac | |
795ca3e5 AK |
902 | |
903 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
904 | ||
7a197a62 AK |
905 | case $ac_dashdash$ac_option in |
906 | --) | |
907 | ac_dashdash=yes ;; | |
795ca3e5 AK |
908 | |
909 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
910 | ac_prev=bindir ;; | |
911 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 912 | bindir=$ac_optarg ;; |
795ca3e5 AK |
913 | |
914 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 915 | ac_prev=build_alias ;; |
795ca3e5 | 916 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 917 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
918 | |
919 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
920 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
921 | ac_prev=cache_file ;; | |
922 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
923 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
924 | cache_file=$ac_optarg ;; |
925 | ||
926 | --config-cache | -C) | |
927 | cache_file=config.cache ;; | |
795ca3e5 | 928 | |
7a197a62 | 929 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 930 | ac_prev=datadir ;; |
7a197a62 | 931 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 932 | datadir=$ac_optarg ;; |
795ca3e5 | 933 | |
7a197a62 AK |
934 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
935 | | --dataroo | --dataro | --datar) | |
936 | ac_prev=datarootdir ;; | |
937 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
938 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
939 | datarootdir=$ac_optarg ;; | |
940 | ||
795ca3e5 | 941 | -disable-* | --disable-*) |
ec6a6fbe | 942 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 943 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
944 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
945 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 946 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
947 | ac_useropt_orig=$ac_useropt |
948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
949 | case $ac_user_opts in | |
950 | *" | |
951 | "enable_$ac_useropt" | |
952 | "*) ;; | |
953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
954 | ac_unrecognized_sep=', ';; | |
955 | esac | |
956 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
957 | |
958 | -docdir | --docdir | --docdi | --doc | --do) | |
959 | ac_prev=docdir ;; | |
960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
961 | docdir=$ac_optarg ;; | |
962 | ||
963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
964 | ac_prev=dvidir ;; | |
965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
966 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
967 | |
968 | -enable-* | --enable-*) | |
ec6a6fbe | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 970 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
972 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 973 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
974 | ac_useropt_orig=$ac_useropt |
975 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
976 | case $ac_user_opts in | |
977 | *" | |
978 | "enable_$ac_useropt" | |
979 | "*) ;; | |
980 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
981 | ac_unrecognized_sep=', ';; | |
982 | esac | |
983 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
984 | |
985 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
986 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
987 | | --exec | --exe | --ex) | |
988 | ac_prev=exec_prefix ;; | |
989 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
990 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
991 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 992 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
993 | |
994 | -gas | --gas | --ga | --g) | |
995 | # Obsolete; use --with-gas. | |
996 | with_gas=yes ;; | |
997 | ||
ad6254c5 AK |
998 | -help | --help | --hel | --he | -h) |
999 | ac_init_help=long ;; | |
1000 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1001 | ac_init_help=recursive ;; | |
1002 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1003 | ac_init_help=short ;; | |
795ca3e5 AK |
1004 | |
1005 | -host | --host | --hos | --ho) | |
ad6254c5 | 1006 | ac_prev=host_alias ;; |
795ca3e5 | 1007 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1008 | host_alias=$ac_optarg ;; |
795ca3e5 | 1009 | |
7a197a62 AK |
1010 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1011 | ac_prev=htmldir ;; | |
1012 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1013 | | --ht=*) | |
1014 | htmldir=$ac_optarg ;; | |
1015 | ||
795ca3e5 AK |
1016 | -includedir | --includedir | --includedi | --included | --include \ |
1017 | | --includ | --inclu | --incl | --inc) | |
1018 | ac_prev=includedir ;; | |
1019 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1020 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1021 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1022 | |
1023 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1024 | ac_prev=infodir ;; | |
1025 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1026 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1027 | |
1028 | -libdir | --libdir | --libdi | --libd) | |
1029 | ac_prev=libdir ;; | |
1030 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1031 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1032 | |
1033 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1034 | | --libexe | --libex | --libe) | |
1035 | ac_prev=libexecdir ;; | |
1036 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1037 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1038 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1039 | |
7a197a62 AK |
1040 | -localedir | --localedir | --localedi | --localed | --locale) |
1041 | ac_prev=localedir ;; | |
1042 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1043 | localedir=$ac_optarg ;; | |
1044 | ||
795ca3e5 | 1045 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1046 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1047 | ac_prev=localstatedir ;; |
1048 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1049 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1050 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1051 | |
1052 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1053 | ac_prev=mandir ;; | |
1054 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1055 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1056 | |
1057 | -nfp | --nfp | --nf) | |
1058 | # Obsolete; use --without-fp. | |
1059 | with_fp=no ;; | |
1060 | ||
1061 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1062 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1063 | no_create=yes ;; |
1064 | ||
1065 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1066 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1067 | no_recursion=yes ;; | |
1068 | ||
1069 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1070 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1071 | | --oldin | --oldi | --old | --ol | --o) | |
1072 | ac_prev=oldincludedir ;; | |
1073 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1074 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1075 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1076 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1077 | |
1078 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1079 | ac_prev=prefix ;; | |
1080 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1081 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1082 | |
1083 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1084 | | --program-pre | --program-pr | --program-p) | |
1085 | ac_prev=program_prefix ;; | |
1086 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1087 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1088 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1089 | |
1090 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1091 | | --program-suf | --program-su | --program-s) | |
1092 | ac_prev=program_suffix ;; | |
1093 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1094 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1095 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -program-transform-name | --program-transform-name \ | |
1098 | | --program-transform-nam | --program-transform-na \ | |
1099 | | --program-transform-n | --program-transform- \ | |
1100 | | --program-transform | --program-transfor \ | |
1101 | | --program-transfo | --program-transf \ | |
1102 | | --program-trans | --program-tran \ | |
1103 | | --progr-tra | --program-tr | --program-t) | |
1104 | ac_prev=program_transform_name ;; | |
1105 | -program-transform-name=* | --program-transform-name=* \ | |
1106 | | --program-transform-nam=* | --program-transform-na=* \ | |
1107 | | --program-transform-n=* | --program-transform-=* \ | |
1108 | | --program-transform=* | --program-transfor=* \ | |
1109 | | --program-transfo=* | --program-transf=* \ | |
1110 | | --program-trans=* | --program-tran=* \ | |
1111 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1112 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1113 | |
7a197a62 AK |
1114 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1115 | ac_prev=pdfdir ;; | |
1116 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1117 | pdfdir=$ac_optarg ;; | |
1118 | ||
1119 | -psdir | --psdir | --psdi | --psd | --ps) | |
1120 | ac_prev=psdir ;; | |
1121 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1122 | psdir=$ac_optarg ;; | |
1123 | ||
795ca3e5 AK |
1124 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1125 | | -silent | --silent | --silen | --sile | --sil) | |
1126 | silent=yes ;; | |
1127 | ||
1128 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1129 | ac_prev=sbindir ;; | |
1130 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1131 | | --sbi=* | --sb=*) | |
ad6254c5 | 1132 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1133 | |
1134 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1135 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1136 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1137 | | --sha | --sh) | |
1138 | ac_prev=sharedstatedir ;; | |
1139 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1140 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1141 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1142 | | --sha=* | --sh=*) | |
ad6254c5 | 1143 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1144 | |
1145 | -site | --site | --sit) | |
1146 | ac_prev=site ;; | |
1147 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1148 | site=$ac_optarg ;; |
795ca3e5 AK |
1149 | |
1150 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1151 | ac_prev=srcdir ;; | |
1152 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1153 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1154 | |
1155 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1156 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1157 | ac_prev=sysconfdir ;; | |
1158 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1159 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1160 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1161 | |
1162 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1163 | ac_prev=target_alias ;; |
795ca3e5 | 1164 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1165 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1166 | |
1167 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1168 | verbose=yes ;; | |
1169 | ||
ad6254c5 AK |
1170 | -version | --version | --versio | --versi | --vers | -V) |
1171 | ac_init_version=: ;; | |
795ca3e5 AK |
1172 | |
1173 | -with-* | --with-*) | |
ec6a6fbe | 1174 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1175 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1176 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1177 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1178 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1179 | ac_useropt_orig=$ac_useropt |
1180 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1181 | case $ac_user_opts in | |
1182 | *" | |
1183 | "with_$ac_useropt" | |
1184 | "*) ;; | |
1185 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1186 | ac_unrecognized_sep=', ';; | |
1187 | esac | |
1188 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1189 | |
1190 | -without-* | --without-*) | |
ec6a6fbe | 1191 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1192 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1193 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1194 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1195 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1196 | ac_useropt_orig=$ac_useropt |
1197 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1198 | case $ac_user_opts in | |
1199 | *" | |
1200 | "with_$ac_useropt" | |
1201 | "*) ;; | |
1202 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1203 | ac_unrecognized_sep=', ';; | |
1204 | esac | |
1205 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1206 | |
1207 | --x) | |
1208 | # Obsolete; use --with-x. | |
1209 | with_x=yes ;; | |
1210 | ||
1211 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1212 | | --x-incl | --x-inc | --x-in | --x-i) | |
1213 | ac_prev=x_includes ;; | |
1214 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1215 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1216 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1217 | |
1218 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1219 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1220 | ac_prev=x_libraries ;; | |
1221 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1222 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1223 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1224 | |
ec6a6fbe | 1225 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1226 | Try \`$0 --help' for more information." >&2 |
1227 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1228 | ;; |
1229 | ||
ad6254c5 AK |
1230 | *=*) |
1231 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1232 | # Reject names that are not valid shell variable names. | |
1233 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1234 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1235 | { (exit 1); exit 1; }; } |
7a197a62 | 1236 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1237 | export $ac_envvar ;; |
1238 | ||
795ca3e5 | 1239 | *) |
ad6254c5 | 1240 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1241 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1242 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1243 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1244 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1245 | ;; |
1246 | ||
1247 | esac | |
1248 | done | |
1249 | ||
1250 | if test -n "$ac_prev"; then | |
ad6254c5 | 1251 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1252 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1253 | { (exit 1); exit 1; }; } |
795ca3e5 | 1254 | fi |
795ca3e5 | 1255 | |
ec6a6fbe AK |
1256 | if test -n "$ac_unrecognized_opts"; then |
1257 | case $enable_option_checking in | |
1258 | no) ;; | |
1259 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1260 | { (exit 1); exit 1; }; } ;; | |
1261 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1262 | esac | |
1263 | fi | |
1264 | ||
1265 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1266 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1267 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1268 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1269 | libdir localedir mandir | |
795ca3e5 | 1270 | do |
7a197a62 | 1271 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1272 | # Remove trailing slashes. |
1273 | case $ac_val in | |
1274 | */ ) | |
1275 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1276 | eval $ac_var=\$ac_val;; | |
1277 | esac | |
1278 | # Be sure to have absolute directory names. | |
ad6254c5 | 1279 | case $ac_val in |
7a197a62 AK |
1280 | [\\/$]* | ?:[\\/]* ) continue;; |
1281 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1282 | esac |
ec6a6fbe | 1283 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1284 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1285 | done |
1286 | ||
ad6254c5 AK |
1287 | # There might be people who depend on the old broken behavior: `$host' |
1288 | # used to hold the argument of --host etc. | |
1289 | # FIXME: To remove some day. | |
1290 | build=$build_alias | |
1291 | host=$host_alias | |
1292 | target=$target_alias | |
1293 | ||
1294 | # FIXME: To remove some day. | |
1295 | if test "x$host_alias" != x; then | |
1296 | if test "x$build_alias" = x; then | |
1297 | cross_compiling=maybe | |
ec6a6fbe | 1298 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1299 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1300 | elif test "x$build_alias" != "x$host_alias"; then | |
1301 | cross_compiling=yes | |
1302 | fi | |
1303 | fi | |
8106cdd5 | 1304 | |
ad6254c5 AK |
1305 | ac_tool_prefix= |
1306 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1307 | ||
1308 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1309 | |
795ca3e5 | 1310 | |
7a197a62 AK |
1311 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1312 | ac_ls_di=`ls -di .` && | |
1313 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1314 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1315 | { (exit 1); exit 1; }; } |
1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1317 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1318 | { (exit 1); exit 1; }; } |
1319 | ||
1320 | ||
795ca3e5 AK |
1321 | # Find the source files, if location was not specified. |
1322 | if test -z "$srcdir"; then | |
1323 | ac_srcdir_defaulted=yes | |
7a197a62 | 1324 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1325 | ac_confdir=`$as_dirname -- "$as_myself" || |
1326 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1327 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1328 | X"$as_myself" : 'X\(//\)$' \| \ | |
1329 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1330 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)[^/].*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\/\)$/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\).*/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | s/.*/./; q'` | |
795ca3e5 | 1348 | srcdir=$ac_confdir |
7a197a62 | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1350 | srcdir=.. |
1351 | fi | |
1352 | else | |
1353 | ac_srcdir_defaulted=no | |
1354 | fi | |
7a197a62 AK |
1355 | if test ! -r "$srcdir/$ac_unique_file"; then |
1356 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1357 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1358 | { (exit 1); exit 1; }; } |
795ca3e5 | 1359 | fi |
7a197a62 AK |
1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1361 | ac_abs_confdir=`( | |
ec6a6fbe | 1362 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1363 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1364 | pwd)` |
1365 | # When building in place, set srcdir=. | |
1366 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1367 | srcdir=. | |
1368 | fi | |
1369 | # Remove unnecessary trailing slashes from srcdir. | |
1370 | # Double slashes in file names in object file debugging info | |
1371 | # mess up M-x gdb in Emacs. | |
1372 | case $srcdir in | |
1373 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1374 | esac | |
1375 | for ac_var in $ac_precious_vars; do | |
1376 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1377 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1378 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1379 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1380 | done | |
ad6254c5 AK |
1381 | |
1382 | # | |
1383 | # Report the --help message. | |
1384 | # | |
1385 | if test "$ac_init_help" = "long"; then | |
1386 | # Omit some internal or obsolete options to make the list less imposing. | |
1387 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1388 | cat <<_ACEOF | |
1389 | \`configure' configures this package to adapt to many kinds of systems. | |
1390 | ||
1391 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1392 | ||
1393 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1394 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1395 | ||
1396 | Defaults for the options are specified in brackets. | |
1397 | ||
1398 | Configuration: | |
1399 | -h, --help display this help and exit | |
1400 | --help=short display options specific to this package | |
1401 | --help=recursive display the short help of all the included packages | |
1402 | -V, --version display version information and exit | |
1403 | -q, --quiet, --silent do not print \`checking...' messages | |
1404 | --cache-file=FILE cache test results in FILE [disabled] | |
1405 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1406 | -n, --no-create do not create output files | |
1407 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1408 | ||
ad6254c5 AK |
1409 | Installation directories: |
1410 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1411 | [$ac_default_prefix] |
ad6254c5 | 1412 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1413 | [PREFIX] |
ad6254c5 AK |
1414 | |
1415 | By default, \`make install' will install all the files in | |
1416 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1417 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1418 | for instance \`--prefix=\$HOME'. | |
1419 | ||
1420 | For better control, use the options below. | |
1421 | ||
1422 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1423 | --bindir=DIR user executables [EPREFIX/bin] |
1424 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1425 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1426 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1427 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1428 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1429 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1430 | --includedir=DIR C header files [PREFIX/include] | |
1431 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1432 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1433 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1434 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1435 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1436 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1437 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1438 | --htmldir=DIR html documentation [DOCDIR] | |
1439 | --dvidir=DIR dvi documentation [DOCDIR] | |
1440 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1441 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1442 | _ACEOF |
1443 | ||
1444 | cat <<\_ACEOF | |
1445 | ||
1446 | System types: | |
1447 | --build=BUILD configure for building on BUILD [guessed] | |
1448 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1449 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1450 | _ACEOF | |
1451 | fi | |
1452 | ||
1453 | if test -n "$ac_init_help"; then | |
1454 | ||
1455 | cat <<\_ACEOF | |
1456 | ||
1457 | Optional Features: | |
ec6a6fbe | 1458 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1460 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1461 | --enable-static_link Use this to link the tools to their libraries |
1462 | statically. Default is dynamic linking | |
ad6254c5 AK |
1463 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1464 | device-mapper is missing from the kernel | |
1b523347 | 1465 | --disable-readline Disable readline support |
3d978351 | 1466 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1467 | --enable-debug Enable debugging |
5556819a | 1468 | --enable-profiling Gather gcov profiling data |
93bd259b AK |
1469 | --disable-devmapper Disable LVM2 device-mapper interaction |
1470 | --enable-compat Enable support for old device-mapper versions | |
1471 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 | 1472 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1473 | --enable-applib Build application library |
ad6254c5 | 1474 | --enable-cmdlib Build shared command library |
93bd259b | 1475 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1476 | --enable-fsadm Enable fsadm |
15d91f5a | 1477 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1478 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1479 | --enable-nls Enable Native Language Support |
1480 | ||
1481 | Optional Packages: | |
1482 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1483 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1484 | --with-user=USER Set the owner of installed files [USER=root] |
1485 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1486 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1487 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1488 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1489 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1490 | TYPE=internal | |
1491 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1492 | TYPE=internal | |
1493 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1494 | TYPE=internal | |
1495 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1496 | TYPE=internal | |
1497 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1498 | TYPE=internal | |
ec6a6fbe | 1499 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all |
a266258f | 1500 | TYPE=none |
d0191583 JM |
1501 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1502 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1503 | --with-confdir=DIR Configuration files in DIR /etc |
1504 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
68f2de6d AK |
1505 | --with-usrlibdir=DIR |
1506 | --with-usrsbindir=DIR | |
93bd259b AK |
1507 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
1508 | --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd] | |
1509 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1510 | |
1511 | Some influential environment variables: | |
1512 | CC C compiler command | |
1513 | CFLAGS C compiler flags | |
1514 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1515 | nonstandard directory <lib dir> | |
25fbec5b | 1516 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1517 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1518 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1519 | CPP C preprocessor |
e2997b73 AK |
1520 | PKG_CONFIG path to pkg-config utility |
1521 | QUORUM_CFLAGS | |
1522 | C compiler flags for QUORUM, overriding pkg-config | |
1523 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
1524 | CONFDB_CFLAGS | |
1525 | C compiler flags for CONFDB, overriding pkg-config | |
1526 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1527 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1528 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
ad6254c5 AK |
1529 | |
1530 | Use these variables to override the choices made by `configure' or to help | |
1531 | it to find libraries and programs with nonstandard names/locations. | |
1532 | ||
1533 | _ACEOF | |
7a197a62 | 1534 | ac_status=$? |
ad6254c5 AK |
1535 | fi |
1536 | ||
1537 | if test "$ac_init_help" = "recursive"; then | |
1538 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1539 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1540 | test -d "$ac_dir" || |
1541 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1542 | continue | |
ad6254c5 AK |
1543 | ac_builddir=. |
1544 | ||
7a197a62 AK |
1545 | case "$ac_dir" in |
1546 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1547 | *) | |
ec6a6fbe | 1548 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1549 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1550 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1551 | case $ac_top_builddir_sub in |
1552 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1553 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1554 | esac ;; | |
1555 | esac | |
1556 | ac_abs_top_builddir=$ac_pwd | |
1557 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1558 | # for backward compatibility: | |
1559 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1560 | |
1561 | case $srcdir in | |
7a197a62 | 1562 | .) # We are building in place. |
ad6254c5 | 1563 | ac_srcdir=. |
7a197a62 AK |
1564 | ac_top_srcdir=$ac_top_builddir_sub |
1565 | ac_abs_top_srcdir=$ac_pwd ;; | |
1566 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1567 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1568 | ac_top_srcdir=$srcdir |
1569 | ac_abs_top_srcdir=$srcdir ;; | |
1570 | *) # Relative name. | |
1571 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1572 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1573 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1574 | esac |
7a197a62 AK |
1575 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1576 | ||
1577 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1578 | # Check for guested configure. | |
1579 | if test -f "$ac_srcdir/configure.gnu"; then | |
1580 | echo && | |
1581 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1582 | elif test -f "$ac_srcdir/configure"; then | |
1583 | echo && | |
1584 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1585 | else |
ec6a6fbe | 1586 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1587 | fi || ac_status=$? |
1588 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1589 | done |
1590 | fi | |
1591 | ||
7a197a62 | 1592 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1593 | if $ac_init_version; then |
1594 | cat <<\_ACEOF | |
7a197a62 | 1595 | configure |
ec6a6fbe | 1596 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1597 | |
7a197a62 | 1598 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1599 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1600 | This configure script is free software; the Free Software Foundation |
1601 | gives unlimited permission to copy, distribute and modify it. | |
1602 | _ACEOF | |
7a197a62 | 1603 | exit |
ad6254c5 | 1604 | fi |
7a197a62 | 1605 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1606 | This file contains any messages produced by compilers while |
1607 | running configure, to aid debugging if configure makes a mistake. | |
1608 | ||
1609 | It was created by $as_me, which was | |
ec6a6fbe | 1610 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1611 | |
1612 | $ $0 $@ | |
1613 | ||
1614 | _ACEOF | |
7a197a62 | 1615 | exec 5>>config.log |
ad6254c5 AK |
1616 | { |
1617 | cat <<_ASUNAME | |
1618 | ## --------- ## | |
1619 | ## Platform. ## | |
1620 | ## --------- ## | |
1621 | ||
1622 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1623 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1624 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1625 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1626 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1627 | ||
1628 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1629 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1630 | ||
1631 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1632 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1633 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1634 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1635 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1636 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1637 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1638 | ||
1639 | _ASUNAME | |
1640 | ||
1641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1642 | for as_dir in $PATH | |
1643 | do | |
1644 | IFS=$as_save_IFS | |
1645 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1646 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1647 | done |
7a197a62 | 1648 | IFS=$as_save_IFS |
ad6254c5 AK |
1649 | |
1650 | } >&5 | |
1651 | ||
1652 | cat >&5 <<_ACEOF | |
1653 | ||
1654 | ||
1655 | ## ----------- ## | |
1656 | ## Core tests. ## | |
1657 | ## ----------- ## | |
1658 | ||
1659 | _ACEOF | |
1660 | ||
1661 | ||
1662 | # Keep a trace of the command line. | |
1663 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1664 | # Strip out --silent because we don't want to record it for future runs. | |
1665 | # Also quote any args containing shell meta-characters. | |
1666 | # Make two passes to allow for proper duplicate-argument suppression. | |
1667 | ac_configure_args= | |
1668 | ac_configure_args0= | |
1669 | ac_configure_args1= | |
ad6254c5 AK |
1670 | ac_must_keep_next=false |
1671 | for ac_pass in 1 2 | |
1672 | do | |
1673 | for ac_arg | |
1674 | do | |
1675 | case $ac_arg in | |
1676 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1677 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1678 | | -silent | --silent | --silen | --sile | --sil) | |
1679 | continue ;; | |
7a197a62 | 1680 | *\'*) |
ec6a6fbe | 1681 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1682 | esac |
1683 | case $ac_pass in | |
1684 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1685 | 2) | |
1686 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1687 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1688 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1689 | else |
8a2fc586 AK |
1690 | case $ac_arg in |
1691 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1692 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1693 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1694 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1695 | case "$ac_configure_args0 " in | |
1696 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1697 | esac | |
1698 | ;; | |
1699 | -* ) ac_must_keep_next=true ;; | |
1700 | esac | |
ad6254c5 | 1701 | fi |
7a197a62 | 1702 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1703 | ;; |
1704 | esac | |
1705 | done | |
1706 | done | |
1707 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1708 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1709 | ||
1710 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1711 | # config.log. We remove comments because anyway the quotes in there | |
1712 | # would cause problems or look ugly. | |
7a197a62 AK |
1713 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1714 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1715 | trap 'exit_status=$? |
1716 | # Save into config.log some information that might help in debugging. | |
1717 | { | |
1718 | echo | |
1719 | ||
1720 | cat <<\_ASBOX | |
1721 | ## ---------------- ## | |
1722 | ## Cache variables. ## | |
1723 | ## ---------------- ## | |
1724 | _ASBOX | |
1725 | echo | |
1726 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1727 | ( |
1728 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1729 | eval ac_val=\$$ac_var | |
1730 | case $ac_val in #( | |
1731 | *${as_nl}*) | |
1732 | case $ac_var in #( | |
ec6a6fbe AK |
1733 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1734 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1735 | esac |
1736 | case $ac_var in #( | |
1737 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1738 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1739 | *) $as_unset $ac_var ;; |
1740 | esac ;; | |
1741 | esac | |
1742 | done | |
ad6254c5 | 1743 | (set) 2>&1 | |
7a197a62 AK |
1744 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1745 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1746 | sed -n \ |
7a197a62 AK |
1747 | "s/'\''/'\''\\\\'\'''\''/g; |
1748 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1749 | ;; #( | |
ad6254c5 | 1750 | *) |
7a197a62 | 1751 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1752 | ;; |
7a197a62 AK |
1753 | esac | |
1754 | sort | |
1755 | ) | |
ad6254c5 AK |
1756 | echo |
1757 | ||
1758 | cat <<\_ASBOX | |
1759 | ## ----------------- ## | |
1760 | ## Output variables. ## | |
1761 | ## ----------------- ## | |
1762 | _ASBOX | |
1763 | echo | |
1764 | for ac_var in $ac_subst_vars | |
1765 | do | |
7a197a62 AK |
1766 | eval ac_val=\$$ac_var |
1767 | case $ac_val in | |
ec6a6fbe | 1768 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1769 | esac |
ec6a6fbe | 1770 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1771 | done | sort |
1772 | echo | |
1773 | ||
1774 | if test -n "$ac_subst_files"; then | |
1775 | cat <<\_ASBOX | |
7a197a62 AK |
1776 | ## ------------------- ## |
1777 | ## File substitutions. ## | |
1778 | ## ------------------- ## | |
ad6254c5 AK |
1779 | _ASBOX |
1780 | echo | |
1781 | for ac_var in $ac_subst_files | |
1782 | do | |
7a197a62 AK |
1783 | eval ac_val=\$$ac_var |
1784 | case $ac_val in | |
ec6a6fbe | 1785 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1786 | esac |
ec6a6fbe | 1787 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1788 | done | sort |
1789 | echo | |
1790 | fi | |
1791 | ||
1792 | if test -s confdefs.h; then | |
1793 | cat <<\_ASBOX | |
1794 | ## ----------- ## | |
1795 | ## confdefs.h. ## | |
1796 | ## ----------- ## | |
1797 | _ASBOX | |
1798 | echo | |
7a197a62 | 1799 | cat confdefs.h |
ad6254c5 AK |
1800 | echo |
1801 | fi | |
1802 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1803 | $as_echo "$as_me: caught signal $ac_signal" |
1804 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1805 | } >&5 |
7a197a62 AK |
1806 | rm -f core *.core core.conftest.* && |
1807 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1808 | exit $exit_status |
7a197a62 | 1809 | ' 0 |
ad6254c5 AK |
1810 | for ac_signal in 1 2 13 15; do |
1811 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1812 | done | |
1813 | ac_signal=0 | |
1814 | ||
1815 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1816 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1817 | |
1818 | # Predefined preprocessor variables. | |
1819 | ||
1820 | cat >>confdefs.h <<_ACEOF | |
1821 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1822 | _ACEOF | |
1823 | ||
1824 | ||
1825 | cat >>confdefs.h <<_ACEOF | |
1826 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1827 | _ACEOF | |
1828 | ||
1829 | ||
1830 | cat >>confdefs.h <<_ACEOF | |
1831 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1832 | _ACEOF | |
8106cdd5 | 1833 | |
ad6254c5 AK |
1834 | |
1835 | cat >>confdefs.h <<_ACEOF | |
1836 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1837 | _ACEOF | |
1838 | ||
1839 | ||
1840 | cat >>confdefs.h <<_ACEOF | |
1841 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1842 | _ACEOF | |
1843 | ||
1844 | ||
1845 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1846 | # Prefer an explicitly selected file to automatically selected ones. |
1847 | ac_site_file1=NONE | |
1848 | ac_site_file2=NONE | |
7a197a62 | 1849 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1850 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1851 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1852 | ac_site_file1=$prefix/share/config.site |
1853 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1854 | else |
ec6a6fbe AK |
1855 | ac_site_file1=$ac_default_prefix/share/config.site |
1856 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1857 | fi |
ec6a6fbe | 1858 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1859 | do |
ec6a6fbe | 1860 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1861 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1862 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1863 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1864 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1865 | . "$ac_site_file" |
1866 | fi | |
1867 | done | |
1868 | ||
1869 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1870 | # Some versions of bash will fail to source /dev/null (special |
1871 | # files actually), so we avoid doing that. | |
1872 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1873 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1874 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1875 | case $cache_file in |
7a197a62 AK |
1876 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1877 | *) . "./$cache_file";; | |
ad6254c5 AK |
1878 | esac |
1879 | fi | |
795ca3e5 | 1880 | else |
ec6a6fbe AK |
1881 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1882 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1883 | >$cache_file |
1884 | fi | |
1885 | ||
1886 | # Check that the precious variables saved in the cache have kept the same | |
1887 | # value. | |
1888 | ac_cache_corrupted=false | |
7a197a62 | 1889 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1890 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1891 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1892 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1893 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1894 | case $ac_old_set,$ac_new_set in |
1895 | set,) | |
ec6a6fbe AK |
1896 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1897 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1898 | ac_cache_corrupted=: ;; |
1899 | ,set) | |
ec6a6fbe AK |
1900 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1901 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1902 | ac_cache_corrupted=: ;; |
1903 | ,);; | |
1904 | *) | |
1905 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1906 | # differences in whitespace do not lead to failure. |
1907 | ac_old_val_w=`echo x $ac_old_val` | |
1908 | ac_new_val_w=`echo x $ac_new_val` | |
1909 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1910 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1911 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1912 | ac_cache_corrupted=: | |
1913 | else | |
1914 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1915 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1916 | eval $ac_var=\$ac_old_val | |
1917 | fi | |
1918 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1919 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1920 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1921 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1922 | fi;; |
1923 | esac | |
1924 | # Pass precious variables to config.status. | |
1925 | if test "$ac_new_set" = set; then | |
1926 | case $ac_new_val in | |
ec6a6fbe | 1927 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1928 | *) ac_arg=$ac_var=$ac_new_val ;; |
1929 | esac | |
1930 | case " $ac_configure_args " in | |
1931 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1932 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1933 | esac | |
1934 | fi | |
1935 | done | |
1936 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
1937 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1939 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1940 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1941 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1942 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1943 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1944 | fi |
1945 | ||
ad6254c5 AK |
1946 | |
1947 | ||
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | ||
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
7a197a62 AK |
1962 | ac_ext=c |
1963 | ac_cpp='$CPP $CPPFLAGS' | |
1964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1967 | |
795ca3e5 AK |
1968 | |
1969 | ||
7a197a62 | 1970 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1971 | |
1972 | ||
80992638 | 1973 | ################################################################################ |
795ca3e5 | 1974 | ac_aux_dir= |
7a197a62 AK |
1975 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1976 | if 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/install.sh"; then |
795ca3e5 AK |
1981 | ac_aux_dir=$ac_dir |
1982 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1983 | break | |
7a197a62 | 1984 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1985 | ac_aux_dir=$ac_dir |
1986 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1987 | break | |
795ca3e5 AK |
1988 | fi |
1989 | done | |
1990 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
1991 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1992 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1993 | { (exit 1); exit 1; }; } |
795ca3e5 | 1994 | fi |
7a197a62 AK |
1995 | |
1996 | # These three variables are undocumented and unsupported, | |
1997 | # and are intended to be withdrawn in a future Autoconf release. | |
1998 | # They can cause serious problems if a builder's source tree is in a directory | |
1999 | # whose full name contains unusual characters. | |
2000 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2001 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2002 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2003 | ||
8ce0cbda AK |
2004 | |
2005 | ||
ad6254c5 | 2006 | ################################################################################ |
8ce0cbda | 2007 | # Make sure we can run config.sub. |
7a197a62 | 2008 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2009 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2010 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2011 | { (exit 1); exit 1; }; } |
2012 | ||
ec6a6fbe AK |
2013 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2014 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2015 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2016 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2017 | else |
7a197a62 AK |
2018 | ac_build_alias=$build_alias |
2019 | test "x$ac_build_alias" = x && | |
2020 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2021 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2022 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2023 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2024 | { (exit 1); exit 1; }; } |
7a197a62 | 2025 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2026 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2027 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2028 | { (exit 1); exit 1; }; } |
2029 | ||
2030 | fi | |
ec6a6fbe AK |
2031 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2032 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2033 | case $ac_cv_build in |
2034 | *-*-*) ;; | |
ec6a6fbe AK |
2035 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2036 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2037 | { (exit 1); exit 1; }; };; |
2038 | esac | |
ad6254c5 | 2039 | build=$ac_cv_build |
7a197a62 AK |
2040 | ac_save_IFS=$IFS; IFS='-' |
2041 | set x $ac_cv_build | |
2042 | shift | |
2043 | build_cpu=$1 | |
2044 | build_vendor=$2 | |
2045 | shift; shift | |
2046 | # Remember, the first character of IFS is used to create $*, | |
2047 | # except with old shells: | |
2048 | build_os=$* | |
2049 | IFS=$ac_save_IFS | |
2050 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2051 | |
2052 | ||
ec6a6fbe AK |
2053 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2054 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2055 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2056 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2057 | else |
7a197a62 AK |
2058 | if test "x$host_alias" = x; then |
2059 | ac_cv_host=$ac_cv_build | |
2060 | else | |
2061 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2062 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2063 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2064 | { (exit 1); exit 1; }; } |
7a197a62 | 2065 | fi |
ad6254c5 AK |
2066 | |
2067 | fi | |
ec6a6fbe AK |
2068 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2069 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2070 | case $ac_cv_host in |
2071 | *-*-*) ;; | |
ec6a6fbe AK |
2072 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2073 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2074 | { (exit 1); exit 1; }; };; |
2075 | esac | |
ad6254c5 | 2076 | host=$ac_cv_host |
7a197a62 AK |
2077 | ac_save_IFS=$IFS; IFS='-' |
2078 | set x $ac_cv_host | |
2079 | shift | |
2080 | host_cpu=$1 | |
2081 | host_vendor=$2 | |
2082 | shift; shift | |
2083 | # Remember, the first character of IFS is used to create $*, | |
2084 | # except with old shells: | |
2085 | host_os=$* | |
2086 | IFS=$ac_save_IFS | |
2087 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2088 | |
2089 | ||
ec6a6fbe AK |
2090 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2091 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2092 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2093 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2094 | else |
7a197a62 AK |
2095 | if test "x$target_alias" = x; then |
2096 | ac_cv_target=$ac_cv_host | |
2097 | else | |
2098 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2099 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2100 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2101 | { (exit 1); exit 1; }; } |
7a197a62 | 2102 | fi |
8ce0cbda | 2103 | |
ad6254c5 | 2104 | fi |
ec6a6fbe AK |
2105 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2106 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2107 | case $ac_cv_target in |
2108 | *-*-*) ;; | |
ec6a6fbe AK |
2109 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2110 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2111 | { (exit 1); exit 1; }; };; |
2112 | esac | |
ad6254c5 | 2113 | target=$ac_cv_target |
7a197a62 AK |
2114 | ac_save_IFS=$IFS; IFS='-' |
2115 | set x $ac_cv_target | |
2116 | shift | |
2117 | target_cpu=$1 | |
2118 | target_vendor=$2 | |
2119 | shift; shift | |
2120 | # Remember, the first character of IFS is used to create $*, | |
2121 | # except with old shells: | |
2122 | target_os=$* | |
2123 | IFS=$ac_save_IFS | |
2124 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2125 | |
8ce0cbda | 2126 | |
ad6254c5 AK |
2127 | # The aliases save the names the user supplied, while $host etc. |
2128 | # will get canonicalized. | |
2129 | test -n "$target_alias" && | |
8ce0cbda AK |
2130 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2131 | NONENONEs,x,x, && | |
2132 | program_prefix=${target_alias}- | |
2133 | ||
8ce0cbda AK |
2134 | case "$host_os" in |
2135 | linux*) | |
7f54ef36 | 2136 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2137 | COPTIMISE_FLAG="-O2" |
2138 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2139 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2140 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2141 | LDDEPS="$LDDEPS .export.sym" | |
2142 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2143 | LIB_SUFFIX=so |
8ce0cbda AK |
2144 | DEVMAPPER=yes |
2145 | ODIRECT=yes | |
d0191583 | 2146 | DM_IOCTLS=yes |
8ce0cbda | 2147 | SELINUX=yes |
8b1a3214 | 2148 | REALTIME=yes |
8ce0cbda | 2149 | CLUSTER=internal |
93bd259b | 2150 | FSADM=yes |
d0191583 | 2151 | ;; |
8ce0cbda AK |
2152 | darwin*) |
2153 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2154 | COPTIMISE_FLAG="-O2" | |
2155 | CLDFLAGS="$CLDFLAGS" | |
2156 | CLDWHOLEARCHIVE="-all_load" | |
2157 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2158 | LIB_SUFFIX=dylib |
a653923f | 2159 | DEVMAPPER=yes |
8ce0cbda | 2160 | ODIRECT=no |
d0191583 | 2161 | DM_IOCTLS=no |
8ce0cbda | 2162 | SELINUX=no |
8b1a3214 | 2163 | REALTIME=no |
8ce0cbda | 2164 | CLUSTER=none |
d0191583 JM |
2165 | FSADM=no |
2166 | ;; | |
8ce0cbda AK |
2167 | esac |
2168 | ||
80992638 | 2169 | ################################################################################ |
ec6a6fbe AK |
2170 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2171 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2172 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2173 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2174 | else |
2175 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2176 | for ac_i in 1 2 3 4 5 6 7; do | |
2177 | ac_script="$ac_script$as_nl$ac_script" | |
2178 | done | |
ec6a6fbe | 2179 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2180 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2181 | if test -z "$SED"; then |
5951ef33 | 2182 | ac_path_SED_found=false |
ec6a6fbe AK |
2183 | # Loop through the user's path and test for each of PROGNAME-LIST |
2184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2185 | for as_dir in $PATH |
2186 | do | |
2187 | IFS=$as_save_IFS | |
2188 | test -z "$as_dir" && as_dir=. | |
2189 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2190 | for ac_exec_ext in '' $ac_executable_extensions; do |
2191 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2192 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2193 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2194 | # Check for GNU $ac_path_SED |
2195 | case `"$ac_path_SED" --version 2>&1` in | |
2196 | *GNU*) | |
2197 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2198 | *) | |
2199 | ac_count=0 | |
ec6a6fbe | 2200 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2201 | while : |
2202 | do | |
2203 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2204 | mv "conftest.tmp" "conftest.in" | |
2205 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2206 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2207 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2208 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2209 | ac_count=`expr $ac_count + 1` | |
2210 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2211 | # Best one so far, save it but keep looking for a better one | |
2212 | ac_cv_path_SED="$ac_path_SED" | |
2213 | ac_path_SED_max=$ac_count | |
2214 | fi | |
2215 | # 10*(2^10) chars as input seems more than enough | |
2216 | test $ac_count -gt 10 && break | |
2217 | done | |
2218 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2219 | esac | |
2220 | ||
ec6a6fbe AK |
2221 | $ac_path_SED_found && break 3 |
2222 | done | |
5951ef33 AK |
2223 | done |
2224 | done | |
5951ef33 | 2225 | IFS=$as_save_IFS |
ec6a6fbe AK |
2226 | if test -z "$ac_cv_path_SED"; then |
2227 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2228 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2229 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2230 | fi |
5951ef33 AK |
2231 | else |
2232 | ac_cv_path_SED=$SED | |
2233 | fi | |
2234 | ||
2235 | fi | |
ec6a6fbe AK |
2236 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2237 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2238 | SED="$ac_cv_path_SED" |
2239 | rm -f conftest.sed | |
2240 | ||
ad6254c5 | 2241 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2242 | do |
ad6254c5 | 2243 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2244 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2245 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2246 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2247 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2248 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2249 | else |
2250 | if test -n "$AWK"; then | |
2251 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2252 | else | |
ad6254c5 AK |
2253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2254 | for as_dir in $PATH | |
2255 | do | |
2256 | IFS=$as_save_IFS | |
2257 | test -z "$as_dir" && as_dir=. | |
2258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2260 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2261 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2262 | break 2 |
2263 | fi | |
2264 | done | |
2265 | done | |
7a197a62 | 2266 | IFS=$as_save_IFS |
ad6254c5 | 2267 | |
795ca3e5 AK |
2268 | fi |
2269 | fi | |
ad6254c5 | 2270 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2271 | if test -n "$AWK"; then |
ec6a6fbe AK |
2272 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2273 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2274 | else |
ec6a6fbe AK |
2275 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2276 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2277 | fi |
2278 | ||
7a197a62 | 2279 | |
ad6254c5 AK |
2280 | test -n "$AWK" && break |
2281 | done | |
2282 | ||
2283 | ac_ext=c | |
2284 | ac_cpp='$CPP $CPPFLAGS' | |
2285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2288 | if test -n "$ac_tool_prefix"; then | |
2289 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2290 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2291 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2292 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2293 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2294 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2295 | else |
2296 | if test -n "$CC"; then | |
2297 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2298 | else | |
2299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2300 | for as_dir in $PATH | |
2301 | do | |
2302 | IFS=$as_save_IFS | |
2303 | test -z "$as_dir" && as_dir=. | |
2304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2306 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2307 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2308 | break 2 |
2309 | fi | |
2310 | done | |
8106cdd5 | 2311 | done |
7a197a62 | 2312 | IFS=$as_save_IFS |
8106cdd5 | 2313 | |
ad6254c5 AK |
2314 | fi |
2315 | fi | |
2316 | CC=$ac_cv_prog_CC | |
2317 | if test -n "$CC"; then | |
ec6a6fbe AK |
2318 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2319 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2320 | else |
ec6a6fbe AK |
2321 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2322 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2323 | fi |
2324 | ||
7a197a62 | 2325 | |
ad6254c5 AK |
2326 | fi |
2327 | if test -z "$ac_cv_prog_CC"; then | |
2328 | ac_ct_CC=$CC | |
2329 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2330 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2331 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2332 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2333 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2334 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2335 | else |
2336 | if test -n "$ac_ct_CC"; then | |
2337 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2338 | else | |
2339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2340 | for as_dir in $PATH | |
2341 | do | |
2342 | IFS=$as_save_IFS | |
2343 | test -z "$as_dir" && as_dir=. | |
2344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2346 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2347 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2348 | break 2 |
2349 | fi | |
2350 | done | |
2351 | done | |
7a197a62 | 2352 | IFS=$as_save_IFS |
ad6254c5 AK |
2353 | |
2354 | fi | |
2355 | fi | |
2356 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2357 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2358 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2359 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2360 | else |
ec6a6fbe AK |
2361 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2362 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2363 | fi |
2364 | ||
7a197a62 AK |
2365 | if test "x$ac_ct_CC" = x; then |
2366 | CC="" | |
2367 | else | |
2368 | case $cross_compiling:$ac_tool_warned in | |
2369 | yes:) | |
ec6a6fbe AK |
2370 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2371 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2372 | ac_tool_warned=yes ;; |
2373 | esac | |
2374 | CC=$ac_ct_CC | |
2375 | fi | |
ad6254c5 AK |
2376 | else |
2377 | CC="$ac_cv_prog_CC" | |
2378 | fi | |
2379 | ||
2380 | if test -z "$CC"; then | |
7a197a62 AK |
2381 | if test -n "$ac_tool_prefix"; then |
2382 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2383 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2384 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2385 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2386 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2387 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2388 | else |
2389 | if test -n "$CC"; then | |
2390 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2391 | else | |
ad6254c5 AK |
2392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2393 | for as_dir in $PATH | |
2394 | do | |
2395 | IFS=$as_save_IFS | |
2396 | test -z "$as_dir" && as_dir=. | |
2397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2399 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2400 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2401 | break 2 |
2402 | fi | |
2403 | done | |
2404 | done | |
7a197a62 | 2405 | IFS=$as_save_IFS |
ad6254c5 | 2406 | |
8106cdd5 AK |
2407 | fi |
2408 | fi | |
ad6254c5 | 2409 | CC=$ac_cv_prog_CC |
8106cdd5 | 2410 | if test -n "$CC"; then |
ec6a6fbe AK |
2411 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2412 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2413 | else |
ec6a6fbe AK |
2414 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2415 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2416 | fi |
2417 | ||
8106cdd5 | 2418 | |
7a197a62 | 2419 | fi |
ad6254c5 | 2420 | fi |
795ca3e5 AK |
2421 | if test -z "$CC"; then |
2422 | # Extract the first word of "cc", so it can be a program name with args. | |
2423 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2424 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2425 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2426 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2427 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2428 | else |
2429 | if test -n "$CC"; then | |
2430 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2431 | else | |
795ca3e5 | 2432 | ac_prog_rejected=no |
ad6254c5 AK |
2433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2434 | for as_dir in $PATH | |
2435 | do | |
2436 | IFS=$as_save_IFS | |
2437 | test -z "$as_dir" && as_dir=. | |
2438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2440 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2441 | ac_prog_rejected=yes | |
2442 | continue | |
2443 | fi | |
2444 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2445 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2446 | break 2 |
2447 | fi | |
2448 | done | |
2449 | done | |
7a197a62 | 2450 | IFS=$as_save_IFS |
ad6254c5 | 2451 | |
795ca3e5 AK |
2452 | if test $ac_prog_rejected = yes; then |
2453 | # We found a bogon in the path, so make sure we never use it. | |
2454 | set dummy $ac_cv_prog_CC | |
2455 | shift | |
ad6254c5 | 2456 | if test $# != 0; then |
795ca3e5 AK |
2457 | # We chose a different compiler from the bogus one. |
2458 | # However, it has the same basename, so the bogon will be chosen | |
2459 | # first if we set CC to just the basename; use the full file name. | |
2460 | shift | |
ad6254c5 | 2461 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2462 | fi |
2463 | fi | |
2464 | fi | |
2465 | fi | |
ad6254c5 | 2466 | CC=$ac_cv_prog_CC |
795ca3e5 | 2467 | if test -n "$CC"; then |
ec6a6fbe AK |
2468 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2469 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2470 | else |
ec6a6fbe AK |
2471 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2472 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2473 | fi |
2474 | ||
7a197a62 | 2475 | |
ad6254c5 AK |
2476 | fi |
2477 | if test -z "$CC"; then | |
2478 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2479 | for ac_prog in cl.exe |
ad6254c5 AK |
2480 | do |
2481 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2482 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2483 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2484 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2485 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2486 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2487 | else |
2488 | if test -n "$CC"; then | |
2489 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2490 | else | |
ad6254c5 AK |
2491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2492 | for as_dir in $PATH | |
2493 | do | |
2494 | IFS=$as_save_IFS | |
2495 | test -z "$as_dir" && as_dir=. | |
2496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2498 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2499 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2500 | break 2 |
2501 | fi | |
2502 | done | |
2503 | done | |
7a197a62 | 2504 | IFS=$as_save_IFS |
ad6254c5 | 2505 | |
795ca3e5 AK |
2506 | fi |
2507 | fi | |
ad6254c5 | 2508 | CC=$ac_cv_prog_CC |
795ca3e5 | 2509 | if test -n "$CC"; then |
ec6a6fbe AK |
2510 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2511 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2512 | else |
ec6a6fbe AK |
2513 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2514 | $as_echo "no" >&6; } | |
795ca3e5 | 2515 | fi |
ad6254c5 | 2516 | |
7a197a62 | 2517 | |
ad6254c5 AK |
2518 | test -n "$CC" && break |
2519 | done | |
2520 | fi | |
2521 | if test -z "$CC"; then | |
2522 | ac_ct_CC=$CC | |
7a197a62 | 2523 | for ac_prog in cl.exe |
ad6254c5 AK |
2524 | do |
2525 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2526 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2527 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2528 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2529 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2530 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2531 | else |
2532 | if test -n "$ac_ct_CC"; then | |
2533 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2534 | else | |
2535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2536 | for as_dir in $PATH | |
2537 | do | |
2538 | IFS=$as_save_IFS | |
2539 | test -z "$as_dir" && as_dir=. | |
2540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2542 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2543 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2544 | break 2 |
795ca3e5 | 2545 | fi |
ad6254c5 AK |
2546 | done |
2547 | done | |
7a197a62 | 2548 | IFS=$as_save_IFS |
ad6254c5 AK |
2549 | |
2550 | fi | |
2551 | fi | |
2552 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2553 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2554 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2555 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2556 | else |
ec6a6fbe AK |
2557 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2558 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2559 | fi |
2560 | ||
7a197a62 | 2561 | |
ad6254c5 AK |
2562 | test -n "$ac_ct_CC" && break |
2563 | done | |
795ca3e5 | 2564 | |
7a197a62 AK |
2565 | if test "x$ac_ct_CC" = x; then |
2566 | CC="" | |
2567 | else | |
2568 | case $cross_compiling:$ac_tool_warned in | |
2569 | yes:) | |
ec6a6fbe AK |
2570 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2571 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2572 | ac_tool_warned=yes ;; |
2573 | esac | |
2574 | CC=$ac_ct_CC | |
2575 | fi | |
ad6254c5 AK |
2576 | fi |
2577 | ||
2578 | fi | |
2579 | ||
2580 | ||
ec6a6fbe AK |
2581 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2583 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2584 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2585 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2586 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2587 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2588 | |
2589 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2590 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2591 | set X $ac_compile | |
2592 | ac_compiler=$2 | |
7a197a62 AK |
2593 | { (ac_try="$ac_compiler --version >&5" |
2594 | case "(($ac_try" in | |
2595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2596 | *) ac_try_echo=$ac_try;; | |
2597 | esac | |
ec6a6fbe AK |
2598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2599 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2600 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2601 | ac_status=$? |
ec6a6fbe | 2602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2603 | (exit $ac_status); } |
7a197a62 AK |
2604 | { (ac_try="$ac_compiler -v >&5" |
2605 | case "(($ac_try" in | |
2606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2607 | *) ac_try_echo=$ac_try;; | |
2608 | esac | |
ec6a6fbe AK |
2609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2610 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2611 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2612 | ac_status=$? |
ec6a6fbe | 2613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2614 | (exit $ac_status); } |
7a197a62 AK |
2615 | { (ac_try="$ac_compiler -V >&5" |
2616 | case "(($ac_try" in | |
2617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2618 | *) ac_try_echo=$ac_try;; | |
2619 | esac | |
ec6a6fbe AK |
2620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2621 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2622 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2623 | ac_status=$? |
ec6a6fbe | 2624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2625 | (exit $ac_status); } |
2626 | ||
2627 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2628 | /* confdefs.h. */ |
2629 | _ACEOF | |
2630 | cat confdefs.h >>conftest.$ac_ext | |
2631 | cat >>conftest.$ac_ext <<_ACEOF | |
2632 | /* end confdefs.h. */ | |
2633 | ||
2634 | int | |
2635 | main () | |
2636 | { | |
2637 | ||
2638 | ; | |
2639 | return 0; | |
2640 | } | |
2641 | _ACEOF | |
2642 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2643 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2644 | # Try to create an executable without -o first, disregard a.out. |
2645 | # It will help us diagnose broken compilers, and finding out an intuition | |
2646 | # of exeext. | |
ec6a6fbe AK |
2647 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2648 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2649 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2650 | ||
2651 | # The possible output files: | |
2652 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2653 | ||
7a197a62 AK |
2654 | ac_rmfiles= |
2655 | for ac_file in $ac_files | |
2656 | do | |
2657 | case $ac_file in | |
ec6a6fbe | 2658 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2659 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2660 | esac | |
2661 | done | |
2662 | rm -f $ac_rmfiles | |
2663 | ||
2664 | if { (ac_try="$ac_link_default" | |
2665 | case "(($ac_try" in | |
2666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2667 | *) ac_try_echo=$ac_try;; | |
2668 | esac | |
ec6a6fbe AK |
2669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2670 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2671 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2672 | ac_status=$? |
ec6a6fbe | 2673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2674 | (exit $ac_status); }; then |
7a197a62 AK |
2675 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2676 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2677 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2678 | # so that the user can short-circuit this test for compilers unknown to | |
2679 | # Autoconf. | |
25fbec5b | 2680 | for ac_file in $ac_files '' |
ad6254c5 AK |
2681 | do |
2682 | test -f "$ac_file" || continue | |
2683 | case $ac_file in | |
ec6a6fbe | 2684 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2685 | ;; |
ad6254c5 | 2686 | [ab].out ) |
8a2fc586 AK |
2687 | # We found the default executable, but exeext='' is most |
2688 | # certainly right. | |
2689 | break;; | |
ad6254c5 | 2690 | *.* ) |
7a197a62 AK |
2691 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2692 | then :; else | |
2693 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2694 | fi | |
2695 | # We set ac_cv_exeext here because the later test for it is not | |
2696 | # safe: cross compilers may not add the suffix if given an `-o' | |
2697 | # argument, so we may need to know it at that point already. | |
2698 | # Even if this section looks crufty: it has the advantage of | |
2699 | # actually working. | |
8a2fc586 | 2700 | break;; |
ad6254c5 | 2701 | * ) |
8a2fc586 | 2702 | break;; |
ad6254c5 AK |
2703 | esac |
2704 | done | |
7a197a62 AK |
2705 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2706 | ||
ad6254c5 | 2707 | else |
25fbec5b AK |
2708 | ac_file='' |
2709 | fi | |
2710 | ||
ec6a6fbe AK |
2711 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2712 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2713 | if test -z "$ac_file"; then |
ec6a6fbe | 2714 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2715 | sed 's/^/| /' conftest.$ac_ext >&5 |
2716 | ||
ec6a6fbe AK |
2717 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2718 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2719 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2720 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2721 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2722 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2723 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2724 | fi |
2725 | ||
2726 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2727 | |
7a197a62 | 2728 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2729 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2730 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2731 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2732 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2733 | # If not cross compiling, check that we can run a simple program. | |
2734 | if test "$cross_compiling" != yes; then | |
2735 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2736 | { (case "(($ac_try" in |
2737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2738 | *) ac_try_echo=$ac_try;; | |
2739 | esac | |
ec6a6fbe AK |
2740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2741 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2742 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2743 | ac_status=$? |
ec6a6fbe | 2744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2745 | (exit $ac_status); }; }; then |
2746 | cross_compiling=no | |
795ca3e5 | 2747 | else |
ad6254c5 AK |
2748 | if test "$cross_compiling" = maybe; then |
2749 | cross_compiling=yes | |
2750 | else | |
ec6a6fbe AK |
2751 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2753 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2754 | If you meant to cross compile, use \`--host'. |
2755 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2756 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2757 | If you meant to cross compile, use \`--host'. |
2758 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2759 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2760 | fi |
795ca3e5 | 2761 | fi |
80992638 | 2762 | fi |
ec6a6fbe AK |
2763 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2764 | $as_echo "yes" >&6; } | |
ad6254c5 | 2765 | |
ec6a6fbe | 2766 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2767 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2768 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2769 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2770 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2771 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2772 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2773 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2774 | |
ec6a6fbe AK |
2775 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2776 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2777 | if { (ac_try="$ac_link" |
2778 | case "(($ac_try" in | |
2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2780 | *) ac_try_echo=$ac_try;; | |
2781 | esac | |
ec6a6fbe AK |
2782 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2783 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2784 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2785 | ac_status=$? |
ec6a6fbe | 2786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2787 | (exit $ac_status); }; then |
2788 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2789 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2790 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2791 | # `rm'. | |
2792 | for ac_file in conftest.exe conftest conftest.*; do | |
2793 | test -f "$ac_file" || continue | |
2794 | case $ac_file in | |
ec6a6fbe | 2795 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2796 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2797 | break;; |
ad6254c5 AK |
2798 | * ) break;; |
2799 | esac | |
2800 | done | |
80992638 | 2801 | else |
ec6a6fbe AK |
2802 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2803 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2804 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2805 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2806 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2807 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2808 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2809 | fi |
2810 | ||
2811 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2812 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2813 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2814 | |
2815 | rm -f conftest.$ac_ext | |
2816 | EXEEXT=$ac_cv_exeext | |
2817 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2818 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2819 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2820 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2821 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2822 | else |
ad6254c5 | 2823 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2824 | /* confdefs.h. */ |
2825 | _ACEOF | |
2826 | cat confdefs.h >>conftest.$ac_ext | |
2827 | cat >>conftest.$ac_ext <<_ACEOF | |
2828 | /* end confdefs.h. */ | |
2829 | ||
2830 | int | |
2831 | main () | |
2832 | { | |
2833 | ||
2834 | ; | |
2835 | return 0; | |
2836 | } | |
2837 | _ACEOF | |
2838 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2839 | if { (ac_try="$ac_compile" |
2840 | case "(($ac_try" in | |
2841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2842 | *) ac_try_echo=$ac_try;; | |
2843 | esac | |
ec6a6fbe AK |
2844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2845 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2846 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2847 | ac_status=$? |
ec6a6fbe | 2848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2849 | (exit $ac_status); }; then |
7a197a62 AK |
2850 | for ac_file in conftest.o conftest.obj conftest.*; do |
2851 | test -f "$ac_file" || continue; | |
ad6254c5 | 2852 | case $ac_file in |
ec6a6fbe | 2853 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2854 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2855 | break;; | |
2856 | esac | |
2857 | done | |
2858 | else | |
ec6a6fbe | 2859 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2860 | sed 's/^/| /' conftest.$ac_ext >&5 |
2861 | ||
ec6a6fbe AK |
2862 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2863 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2864 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2865 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2866 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2867 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2868 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2869 | fi |
2870 | ||
2871 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2872 | fi | |
ec6a6fbe AK |
2873 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2874 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2875 | OBJEXT=$ac_cv_objext |
2876 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2877 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2878 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2879 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2880 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2881 | else |
2882 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2883 | /* confdefs.h. */ |
2884 | _ACEOF | |
2885 | cat confdefs.h >>conftest.$ac_ext | |
2886 | cat >>conftest.$ac_ext <<_ACEOF | |
2887 | /* end confdefs.h. */ | |
2888 | ||
2889 | int | |
2890 | main () | |
2891 | { | |
2892 | #ifndef __GNUC__ | |
2893 | choke me | |
2894 | #endif | |
80992638 | 2895 | |
ad6254c5 AK |
2896 | ; |
2897 | return 0; | |
2898 | } | |
2899 | _ACEOF | |
2900 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2901 | if { (ac_try="$ac_compile" |
2902 | case "(($ac_try" in | |
2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2904 | *) ac_try_echo=$ac_try;; | |
2905 | esac | |
ec6a6fbe AK |
2906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2907 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2908 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2909 | ac_status=$? |
8a2fc586 AK |
2910 | grep -v '^ *+' conftest.er1 >conftest.err |
2911 | rm -f conftest.er1 | |
2912 | cat conftest.err >&5 | |
ec6a6fbe | 2913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2914 | (exit $ac_status); } && { |
2915 | test -z "$ac_c_werror_flag" || | |
2916 | test ! -s conftest.err | |
2917 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2918 | ac_compiler_gnu=yes |
80992638 | 2919 | else |
ec6a6fbe | 2920 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2921 | sed 's/^/| /' conftest.$ac_ext >&5 |
2922 | ||
7a197a62 | 2923 | ac_compiler_gnu=no |
8106cdd5 | 2924 | fi |
7a197a62 AK |
2925 | |
2926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2927 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2928 | |
ad6254c5 | 2929 | fi |
ec6a6fbe AK |
2930 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2931 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2932 | if test $ac_compiler_gnu = yes; then | |
2933 | GCC=yes | |
2934 | else | |
2935 | GCC= | |
2936 | fi | |
ad6254c5 AK |
2937 | ac_test_CFLAGS=${CFLAGS+set} |
2938 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
2939 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2940 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2941 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 2942 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2943 | else |
7a197a62 AK |
2944 | ac_save_c_werror_flag=$ac_c_werror_flag |
2945 | ac_c_werror_flag=yes | |
2946 | ac_cv_prog_cc_g=no | |
2947 | CFLAGS="-g" | |
2948 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2949 | /* confdefs.h. */ |
2950 | _ACEOF | |
2951 | cat confdefs.h >>conftest.$ac_ext | |
2952 | cat >>conftest.$ac_ext <<_ACEOF | |
2953 | /* end confdefs.h. */ | |
2954 | ||
2955 | int | |
2956 | main () | |
2957 | { | |
2958 | ||
2959 | ; | |
2960 | return 0; | |
2961 | } | |
2962 | _ACEOF | |
2963 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2964 | if { (ac_try="$ac_compile" |
2965 | case "(($ac_try" in | |
2966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2967 | *) ac_try_echo=$ac_try;; | |
2968 | esac | |
ec6a6fbe AK |
2969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2970 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2971 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2972 | ac_status=$? |
8a2fc586 AK |
2973 | grep -v '^ *+' conftest.er1 >conftest.err |
2974 | rm -f conftest.er1 | |
2975 | cat conftest.err >&5 | |
ec6a6fbe | 2976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2977 | (exit $ac_status); } && { |
2978 | test -z "$ac_c_werror_flag" || | |
2979 | test ! -s conftest.err | |
2980 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2981 | ac_cv_prog_cc_g=yes |
2982 | else | |
ec6a6fbe | 2983 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2984 | sed 's/^/| /' conftest.$ac_ext >&5 |
2985 | ||
2986 | CFLAGS="" | |
2987 | cat >conftest.$ac_ext <<_ACEOF | |
2988 | /* confdefs.h. */ | |
2989 | _ACEOF | |
2990 | cat confdefs.h >>conftest.$ac_ext | |
2991 | cat >>conftest.$ac_ext <<_ACEOF | |
2992 | /* end confdefs.h. */ | |
2993 | ||
2994 | int | |
2995 | main () | |
2996 | { | |
2997 | ||
2998 | ; | |
2999 | return 0; | |
3000 | } | |
3001 | _ACEOF | |
3002 | rm -f conftest.$ac_objext | |
3003 | if { (ac_try="$ac_compile" | |
3004 | case "(($ac_try" in | |
3005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3006 | *) ac_try_echo=$ac_try;; | |
3007 | esac | |
ec6a6fbe AK |
3008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3009 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3010 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3011 | ac_status=$? |
7a197a62 AK |
3012 | grep -v '^ *+' conftest.er1 >conftest.err |
3013 | rm -f conftest.er1 | |
3014 | cat conftest.err >&5 | |
ec6a6fbe | 3015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3016 | (exit $ac_status); } && { |
3017 | test -z "$ac_c_werror_flag" || | |
3018 | test ! -s conftest.err | |
3019 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3020 | : |
3021 | else | |
ec6a6fbe | 3022 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3023 | sed 's/^/| /' conftest.$ac_ext >&5 |
3024 | ||
3025 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3026 | CFLAGS="-g" | |
3027 | cat >conftest.$ac_ext <<_ACEOF | |
3028 | /* confdefs.h. */ | |
3029 | _ACEOF | |
3030 | cat confdefs.h >>conftest.$ac_ext | |
3031 | cat >>conftest.$ac_ext <<_ACEOF | |
3032 | /* end confdefs.h. */ | |
3033 | ||
3034 | int | |
3035 | main () | |
3036 | { | |
3037 | ||
3038 | ; | |
3039 | return 0; | |
3040 | } | |
3041 | _ACEOF | |
3042 | rm -f conftest.$ac_objext | |
3043 | if { (ac_try="$ac_compile" | |
3044 | case "(($ac_try" in | |
3045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3046 | *) ac_try_echo=$ac_try;; | |
3047 | esac | |
ec6a6fbe AK |
3048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3049 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3050 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3051 | ac_status=$? |
7a197a62 AK |
3052 | grep -v '^ *+' conftest.er1 >conftest.err |
3053 | rm -f conftest.er1 | |
3054 | cat conftest.err >&5 | |
ec6a6fbe | 3055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3056 | (exit $ac_status); } && { |
3057 | test -z "$ac_c_werror_flag" || | |
3058 | test ! -s conftest.err | |
3059 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3060 | ac_cv_prog_cc_g=yes |
3061 | else | |
ec6a6fbe | 3062 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3064 | |
7a197a62 AK |
3065 | |
3066 | fi | |
3067 | ||
3068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3069 | fi | |
3070 | ||
3071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3072 | fi |
7a197a62 AK |
3073 | |
3074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3075 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3076 | fi |
ec6a6fbe AK |
3077 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3078 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3079 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3080 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3081 | elif test $ac_cv_prog_cc_g = yes; then |
3082 | if test "$GCC" = yes; then | |
3083 | CFLAGS="-g -O2" | |
3084 | else | |
3085 | CFLAGS="-g" | |
3086 | fi | |
3087 | else | |
3088 | if test "$GCC" = yes; then | |
3089 | CFLAGS="-O2" | |
3090 | else | |
3091 | CFLAGS= | |
3092 | fi | |
3093 | fi | |
ec6a6fbe AK |
3094 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3095 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3096 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3097 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3098 | else |
7a197a62 | 3099 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3100 | ac_save_CC=$CC |
3101 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3102 | /* confdefs.h. */ |
3103 | _ACEOF | |
3104 | cat confdefs.h >>conftest.$ac_ext | |
3105 | cat >>conftest.$ac_ext <<_ACEOF | |
3106 | /* end confdefs.h. */ | |
3107 | #include <stdarg.h> | |
3108 | #include <stdio.h> | |
3109 | #include <sys/types.h> | |
3110 | #include <sys/stat.h> | |
3111 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3112 | struct buf { int x; }; | |
3113 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3114 | static char *e (p, i) | |
3115 | char **p; | |
3116 | int i; | |
3117 | { | |
3118 | return p[i]; | |
3119 | } | |
3120 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3121 | { | |
3122 | char *s; | |
3123 | va_list v; | |
3124 | va_start (v,p); | |
3125 | s = g (p, va_arg (v,int)); | |
3126 | va_end (v); | |
3127 | return s; | |
3128 | } | |
8a2fc586 AK |
3129 | |
3130 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3131 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3132 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3133 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3134 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3135 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3136 | that's true only with -std. */ |
8a2fc586 AK |
3137 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3138 | ||
7a197a62 AK |
3139 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3140 | inside strings and character constants. */ | |
3141 | #define FOO(x) 'x' | |
3142 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3143 | ||
ad6254c5 AK |
3144 | int test (int i, double x); |
3145 | struct s1 {int (*f) (int a);}; | |
3146 | struct s2 {int (*f) (double a);}; | |
3147 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3148 | int argc; | |
3149 | char **argv; | |
3150 | int | |
3151 | main () | |
3152 | { | |
3153 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3154 | ; | |
3155 | return 0; | |
3156 | } | |
3157 | _ACEOF | |
7a197a62 AK |
3158 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3159 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3160 | do |
3161 | CC="$ac_save_CC $ac_arg" | |
3162 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3163 | if { (ac_try="$ac_compile" |
3164 | case "(($ac_try" in | |
3165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3166 | *) ac_try_echo=$ac_try;; | |
3167 | esac | |
ec6a6fbe AK |
3168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3169 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3170 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3171 | ac_status=$? |
8a2fc586 AK |
3172 | grep -v '^ *+' conftest.er1 >conftest.err |
3173 | rm -f conftest.er1 | |
3174 | cat conftest.err >&5 | |
ec6a6fbe | 3175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3176 | (exit $ac_status); } && { |
3177 | test -z "$ac_c_werror_flag" || | |
3178 | test ! -s conftest.err | |
3179 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3180 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3181 | else |
ec6a6fbe | 3182 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3183 | sed 's/^/| /' conftest.$ac_ext >&5 |
3184 | ||
7a197a62 | 3185 | |
ad6254c5 | 3186 | fi |
7a197a62 AK |
3187 | |
3188 | rm -f core conftest.err conftest.$ac_objext | |
3189 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3190 | done |
7a197a62 | 3191 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3192 | CC=$ac_save_CC |
3193 | ||
3194 | fi | |
7a197a62 AK |
3195 | # AC_CACHE_VAL |
3196 | case "x$ac_cv_prog_cc_c89" in | |
3197 | x) | |
ec6a6fbe AK |
3198 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3199 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3200 | xno) |
ec6a6fbe AK |
3201 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3202 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3203 | *) |
7a197a62 | 3204 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3205 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3206 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3207 | esac |
3208 | ||
ad6254c5 | 3209 | |
ad6254c5 AK |
3210 | ac_ext=c |
3211 | ac_cpp='$CPP $CPPFLAGS' | |
3212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3215 | |
d0191583 JM |
3216 | |
3217 | ||
3218 | ac_ext=c | |
3219 | ac_cpp='$CPP $CPPFLAGS' | |
3220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3223 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3224 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3225 | # On Suns, sometimes $CPP names a directory. |
3226 | if test -n "$CPP" && test -d "$CPP"; then | |
3227 | CPP= | |
3228 | fi | |
3229 | if test -z "$CPP"; then | |
3230 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3231 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3232 | else |
d0191583 JM |
3233 | # Double quotes because CPP needs to be expanded |
3234 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3235 | do | |
3236 | ac_preproc_ok=false | |
3237 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3238 | do |
d0191583 JM |
3239 | # Use a header file that comes with gcc, so configuring glibc |
3240 | # with a fresh cross-compiler works. | |
3241 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3242 | # <limits.h> exists even on freestanding compilers. | |
3243 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3244 | # not just through cpp. "Syntax error" is here to catch this case. | |
3245 | cat >conftest.$ac_ext <<_ACEOF | |
3246 | /* confdefs.h. */ | |
3247 | _ACEOF | |
3248 | cat confdefs.h >>conftest.$ac_ext | |
3249 | cat >>conftest.$ac_ext <<_ACEOF | |
3250 | /* end confdefs.h. */ | |
3251 | #ifdef __STDC__ | |
3252 | # include <limits.h> | |
3253 | #else | |
3254 | # include <assert.h> | |
3255 | #endif | |
3256 | Syntax error | |
3257 | _ACEOF | |
3258 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3259 | case "(($ac_try" in | |
3260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3261 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3262 | esac |
ec6a6fbe AK |
3263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3264 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3266 | ac_status=$? | |
3267 | grep -v '^ *+' conftest.er1 >conftest.err | |
3268 | rm -f conftest.er1 | |
3269 | cat conftest.err >&5 | |
ec6a6fbe | 3270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3271 | (exit $ac_status); } >/dev/null && { |
3272 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3273 | test ! -s conftest.err | |
3274 | }; then | |
3275 | : | |
3276 | else | |
ec6a6fbe | 3277 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3278 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3279 | |
d0191583 JM |
3280 | # Broken: fails on valid input. |
3281 | continue | |
795ca3e5 | 3282 | fi |
795ca3e5 | 3283 | |
d0191583 | 3284 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3285 | |
d0191583 JM |
3286 | # OK, works on sane cases. Now check whether nonexistent headers |
3287 | # can be detected and how. | |
3288 | cat >conftest.$ac_ext <<_ACEOF | |
3289 | /* confdefs.h. */ | |
3290 | _ACEOF | |
3291 | cat confdefs.h >>conftest.$ac_ext | |
3292 | cat >>conftest.$ac_ext <<_ACEOF | |
3293 | /* end confdefs.h. */ | |
3294 | #include <ac_nonexistent.h> | |
3295 | _ACEOF | |
3296 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3297 | case "(($ac_try" in | |
3298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3299 | *) ac_try_echo=$ac_try;; | |
3300 | esac | |
ec6a6fbe AK |
3301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3302 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3303 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3304 | ac_status=$? | |
3305 | grep -v '^ *+' conftest.er1 >conftest.err | |
3306 | rm -f conftest.er1 | |
3307 | cat conftest.err >&5 | |
ec6a6fbe | 3308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3309 | (exit $ac_status); } >/dev/null && { |
3310 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3311 | test ! -s conftest.err | |
3312 | }; then | |
3313 | # Broken: success on invalid input. | |
3314 | continue | |
3315 | else | |
ec6a6fbe | 3316 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3317 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3318 | |
d0191583 JM |
3319 | # Passes both tests. |
3320 | ac_preproc_ok=: | |
3321 | break | |
3322 | fi | |
795ca3e5 | 3323 | |
d0191583 JM |
3324 | rm -f conftest.err conftest.$ac_ext |
3325 | ||
3326 | done | |
3327 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3328 | rm -f conftest.err conftest.$ac_ext | |
3329 | if $ac_preproc_ok; then | |
3330 | break | |
795ca3e5 AK |
3331 | fi |
3332 | ||
d0191583 JM |
3333 | done |
3334 | ac_cv_prog_CPP=$CPP | |
3335 | ||
3336 | fi | |
3337 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3338 | else |
d0191583 JM |
3339 | ac_cv_prog_CPP=$CPP |
3340 | fi | |
ec6a6fbe AK |
3341 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3342 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3343 | ac_preproc_ok=false |
3344 | for ac_c_preproc_warn_flag in '' yes | |
3345 | do | |
3346 | # Use a header file that comes with gcc, so configuring glibc | |
3347 | # with a fresh cross-compiler works. | |
3348 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3349 | # <limits.h> exists even on freestanding compilers. | |
3350 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3351 | # not just through cpp. "Syntax error" is here to catch this case. | |
3352 | cat >conftest.$ac_ext <<_ACEOF | |
3353 | /* confdefs.h. */ | |
ad6254c5 | 3354 | _ACEOF |
d0191583 JM |
3355 | cat confdefs.h >>conftest.$ac_ext |
3356 | cat >>conftest.$ac_ext <<_ACEOF | |
3357 | /* end confdefs.h. */ | |
3358 | #ifdef __STDC__ | |
3359 | # include <limits.h> | |
3360 | #else | |
3361 | # include <assert.h> | |
3362 | #endif | |
3363 | Syntax error | |
3364 | _ACEOF | |
3365 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3366 | case "(($ac_try" in | |
3367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3368 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3369 | esac |
ec6a6fbe AK |
3370 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3371 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3372 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3373 | ac_status=$? | |
3374 | grep -v '^ *+' conftest.er1 >conftest.err | |
3375 | rm -f conftest.er1 | |
3376 | cat conftest.err >&5 | |
ec6a6fbe | 3377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3378 | (exit $ac_status); } >/dev/null && { |
3379 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3380 | test ! -s conftest.err | |
3381 | }; then | |
3382 | : | |
795ca3e5 | 3383 | else |
ec6a6fbe | 3384 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3385 | sed 's/^/| /' conftest.$ac_ext >&5 |
3386 | ||
3387 | # Broken: fails on valid input. | |
3388 | continue | |
795ca3e5 AK |
3389 | fi |
3390 | ||
d0191583 JM |
3391 | rm -f conftest.err conftest.$ac_ext |
3392 | ||
3393 | # OK, works on sane cases. Now check whether nonexistent headers | |
3394 | # can be detected and how. | |
3395 | cat >conftest.$ac_ext <<_ACEOF | |
3396 | /* confdefs.h. */ | |
3397 | _ACEOF | |
3398 | cat confdefs.h >>conftest.$ac_ext | |
3399 | cat >>conftest.$ac_ext <<_ACEOF | |
3400 | /* end confdefs.h. */ | |
3401 | #include <ac_nonexistent.h> | |
3402 | _ACEOF | |
3403 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3404 | case "(($ac_try" in | |
3405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3406 | *) ac_try_echo=$ac_try;; | |
3407 | esac | |
ec6a6fbe AK |
3408 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3409 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3410 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3411 | ac_status=$? | |
3412 | grep -v '^ *+' conftest.er1 >conftest.err | |
3413 | rm -f conftest.er1 | |
3414 | cat conftest.err >&5 | |
ec6a6fbe | 3415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3416 | (exit $ac_status); } >/dev/null && { |
3417 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3418 | test ! -s conftest.err | |
3419 | }; then | |
3420 | # Broken: success on invalid input. | |
3421 | continue | |
795ca3e5 | 3422 | else |
ec6a6fbe | 3423 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3424 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3425 | |
d0191583 JM |
3426 | # Passes both tests. |
3427 | ac_preproc_ok=: | |
3428 | break | |
795ca3e5 | 3429 | fi |
d0191583 JM |
3430 | |
3431 | rm -f conftest.err conftest.$ac_ext | |
3432 | ||
3433 | done | |
3434 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3435 | rm -f conftest.err conftest.$ac_ext | |
3436 | if $ac_preproc_ok; then | |
3437 | : | |
8106cdd5 | 3438 | else |
ec6a6fbe AK |
3439 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3441 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3442 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3443 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3444 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3445 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3446 | fi |
3447 | ||
d0191583 JM |
3448 | ac_ext=c |
3449 | ac_cpp='$CPP $CPPFLAGS' | |
3450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3453 | ||
7a197a62 | 3454 | |
ec6a6fbe AK |
3455 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3456 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3457 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3458 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3459 | else |
ec6a6fbe | 3460 | if test -z "$GREP"; then |
d0191583 | 3461 | ac_path_GREP_found=false |
ec6a6fbe AK |
3462 | # Loop through the user's path and test for each of PROGNAME-LIST |
3463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3464 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3465 | do |
3466 | IFS=$as_save_IFS | |
3467 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3468 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3469 | for ac_exec_ext in '' $ac_executable_extensions; do |
3470 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3471 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3472 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3473 | # Check for GNU $ac_path_GREP |
3474 | case `"$ac_path_GREP" --version 2>&1` in | |
3475 | *GNU*) | |
3476 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3477 | *) | |
3478 | ac_count=0 | |
ec6a6fbe | 3479 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3480 | while : |
3481 | do | |
3482 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3483 | mv "conftest.tmp" "conftest.in" | |
3484 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3485 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3486 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3487 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3488 | ac_count=`expr $ac_count + 1` | |
3489 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3490 | # Best one so far, save it but keep looking for a better one | |
3491 | ac_cv_path_GREP="$ac_path_GREP" | |
3492 | ac_path_GREP_max=$ac_count | |
3493 | fi | |
3494 | # 10*(2^10) chars as input seems more than enough | |
3495 | test $ac_count -gt 10 && break | |
3496 | done | |
3497 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3498 | esac | |
3499 | ||
ec6a6fbe AK |
3500 | $ac_path_GREP_found && break 3 |
3501 | done | |
d0191583 | 3502 | done |
ad6254c5 | 3503 | done |
7a197a62 | 3504 | IFS=$as_save_IFS |
ec6a6fbe AK |
3505 | if test -z "$ac_cv_path_GREP"; then |
3506 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3507 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3508 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3509 | fi |
80992638 | 3510 | else |
d0191583 | 3511 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3512 | fi |
8106cdd5 | 3513 | |
80992638 | 3514 | fi |
ec6a6fbe AK |
3515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3516 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3517 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3518 | |
d0191583 | 3519 | |
ec6a6fbe AK |
3520 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3521 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3522 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3523 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3524 | else |
d0191583 JM |
3525 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3526 | then ac_cv_path_EGREP="$GREP -E" | |
3527 | else | |
ec6a6fbe | 3528 | if test -z "$EGREP"; then |
d0191583 | 3529 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3530 | # Loop through the user's path and test for each of PROGNAME-LIST |
3531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3532 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3533 | do |
3534 | IFS=$as_save_IFS | |
3535 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3536 | for ac_prog in egrep; do |
ec6a6fbe AK |
3537 | for ac_exec_ext in '' $ac_executable_extensions; do |
3538 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3539 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3540 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3541 | # Check for GNU $ac_path_EGREP |
3542 | case `"$ac_path_EGREP" --version 2>&1` in | |
3543 | *GNU*) | |
3544 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3545 | *) | |
3546 | ac_count=0 | |
ec6a6fbe | 3547 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3548 | while : |
3549 | do | |
3550 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3551 | mv "conftest.tmp" "conftest.in" | |
3552 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3553 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3554 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3555 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3556 | ac_count=`expr $ac_count + 1` | |
3557 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3558 | # Best one so far, save it but keep looking for a better one | |
3559 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3560 | ac_path_EGREP_max=$ac_count | |
3561 | fi | |
3562 | # 10*(2^10) chars as input seems more than enough | |
3563 | test $ac_count -gt 10 && break | |
3564 | done | |
3565 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3566 | esac |
8a2fc586 | 3567 | |
ec6a6fbe AK |
3568 | $ac_path_EGREP_found && break 3 |
3569 | done | |
d0191583 | 3570 | done |
8a2fc586 | 3571 | done |
7a197a62 | 3572 | IFS=$as_save_IFS |
ec6a6fbe AK |
3573 | if test -z "$ac_cv_path_EGREP"; then |
3574 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3575 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3576 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3577 | fi |
d0191583 JM |
3578 | else |
3579 | ac_cv_path_EGREP=$EGREP | |
3580 | fi | |
ad6254c5 | 3581 | |
d0191583 JM |
3582 | fi |
3583 | fi | |
ec6a6fbe AK |
3584 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3585 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3586 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3587 | |
3588 | ||
d0191583 | 3589 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3590 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3591 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3592 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3593 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3594 | else |
d0191583 | 3595 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3596 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3597 | /* confdefs.h. */ |
3598 | _ACEOF | |
3599 | cat confdefs.h >>conftest.$ac_ext | |
3600 | cat >>conftest.$ac_ext <<_ACEOF | |
3601 | /* end confdefs.h. */ | |
d0191583 JM |
3602 | #include <sgtty.h> |
3603 | Autoconf TIOCGETP | |
ad6254c5 | 3604 | _ACEOF |
d0191583 JM |
3605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3606 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3607 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3608 | else |
d0191583 | 3609 | ac_cv_prog_gcc_traditional=no |
80992638 | 3610 | fi |
d0191583 | 3611 | rm -f conftest* |
ad6254c5 | 3612 | |
8106cdd5 | 3613 | |
d0191583 JM |
3614 | if test $ac_cv_prog_gcc_traditional = no; then |
3615 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3616 | /* confdefs.h. */ |
3617 | _ACEOF | |
3618 | cat confdefs.h >>conftest.$ac_ext | |
3619 | cat >>conftest.$ac_ext <<_ACEOF | |
3620 | /* end confdefs.h. */ | |
d0191583 JM |
3621 | #include <termio.h> |
3622 | Autoconf TCGETA | |
ad6254c5 | 3623 | _ACEOF |
d0191583 JM |
3624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3625 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3626 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3627 | fi |
d0191583 | 3628 | rm -f conftest* |
795ca3e5 | 3629 | |
d0191583 | 3630 | fi |
795ca3e5 | 3631 | fi |
ec6a6fbe AK |
3632 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3633 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3634 | if test $ac_cv_prog_gcc_traditional = yes; then |
3635 | CC="$CC -traditional" | |
3636 | fi | |
795ca3e5 AK |
3637 | fi |
3638 | ||
d0191583 JM |
3639 | # Find a good install program. We prefer a C program (faster), |
3640 | # so one script is as good as another. But avoid the broken or | |
3641 | # incompatible versions: | |
3642 | # SysV /etc/install, /usr/sbin/install | |
3643 | # SunOS /usr/etc/install | |
3644 | # IRIX /sbin/install | |
3645 | # AIX /bin/install | |
3646 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3647 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3648 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3649 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3650 | # OS/2's system install, which has a completely different semantic | |
3651 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3652 | # Reject install programs that cannot install multiple files. |
3653 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3654 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3655 | if test -z "$INSTALL"; then |
3656 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3657 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3658 | else |
d0191583 JM |
3659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3660 | for as_dir in $PATH | |
3661 | do | |
3662 | IFS=$as_save_IFS | |
3663 | test -z "$as_dir" && as_dir=. | |
3664 | # Account for people who put trailing slashes in PATH elements. | |
3665 | case $as_dir/ in | |
3666 | ./ | .// | /cC/* | \ | |
3667 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3668 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3669 | /usr/ucb/* ) ;; | |
3670 | *) | |
3671 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3672 | # Don't use installbsd from OSF since it installs stuff as root | |
3673 | # by default. | |
3674 | for ac_prog in ginstall scoinst install; do | |
3675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3676 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3677 | if test $ac_prog = install && | |
3678 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3679 | # AIX install. It has an incompatible calling convention. | |
3680 | : | |
3681 | elif test $ac_prog = install && | |
3682 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3683 | # program-specific install script used by HP pwplus--don't use. | |
3684 | : | |
3685 | else | |
ec6a6fbe AK |
3686 | rm -rf conftest.one conftest.two conftest.dir |
3687 | echo one > conftest.one | |
3688 | echo two > conftest.two | |
3689 | mkdir conftest.dir | |
3690 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3691 | test -s conftest.one && test -s conftest.two && | |
3692 | test -s conftest.dir/conftest.one && | |
3693 | test -s conftest.dir/conftest.two | |
3694 | then | |
3695 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3696 | break 3 | |
3697 | fi | |
d0191583 JM |
3698 | fi |
3699 | fi | |
3700 | done | |
3701 | done | |
3702 | ;; | |
3703 | esac | |
ec6a6fbe | 3704 | |
d0191583 JM |
3705 | done |
3706 | IFS=$as_save_IFS | |
80992638 | 3707 | |
ec6a6fbe | 3708 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3709 | |
3710 | fi | |
3711 | if test "${ac_cv_path_install+set}" = set; then | |
3712 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3713 | else |
d0191583 JM |
3714 | # As a last resort, use the slow shell script. Don't cache a |
3715 | # value for INSTALL within a source directory, because that will | |
3716 | # break other packages using the cache if that directory is | |
3717 | # removed, or if the value is a relative name. | |
3718 | INSTALL=$ac_install_sh | |
7a197a62 | 3719 | fi |
d0191583 | 3720 | fi |
ec6a6fbe AK |
3721 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3722 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3723 | |
d0191583 JM |
3724 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3725 | # It thinks the first close brace ends the variable substitution. | |
3726 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3727 | |
d0191583 | 3728 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3729 | |
d0191583 JM |
3730 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3731 | ||
ec6a6fbe AK |
3732 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3733 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3734 | LN_S=$as_ln_s |
3735 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3736 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3737 | $as_echo "yes" >&6; } | |
d0191583 | 3738 | else |
ec6a6fbe AK |
3739 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3740 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3741 | fi |
d0191583 | 3742 | |
ec6a6fbe AK |
3743 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3744 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3745 | set x ${MAKE-make} | |
3746 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3747 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3748 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3749 | else |
d0191583 JM |
3750 | cat >conftest.make <<\_ACEOF |
3751 | SHELL = /bin/sh | |
3752 | all: | |
3753 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3754 | _ACEOF | |
3755 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3756 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3757 | *@@@%%%=?*=@@@%%%*) | |
3758 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3759 | *) | |
3760 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3761 | esac | |
3762 | rm -f conftest.make | |
ad6254c5 | 3763 | fi |
d0191583 | 3764 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3765 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3766 | $as_echo "yes" >&6; } | |
d0191583 JM |
3767 | SET_MAKE= |
3768 | else | |
ec6a6fbe AK |
3769 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3770 | $as_echo "no" >&6; } | |
d0191583 | 3771 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3772 | fi |
8106cdd5 | 3773 | |
ec6a6fbe AK |
3774 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3775 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3776 | if test -z "$MKDIR_P"; then |
3777 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3778 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3779 | else |
3780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3781 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3782 | do | |
3783 | IFS=$as_save_IFS | |
3784 | test -z "$as_dir" && as_dir=. | |
3785 | for ac_prog in mkdir gmkdir; do | |
3786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3787 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3788 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3789 | 'mkdir (GNU coreutils) '* | \ | |
3790 | 'mkdir (coreutils) '* | \ | |
3791 | 'mkdir (fileutils) '4.1*) | |
3792 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3793 | break 3;; | |
3794 | esac | |
3795 | done | |
3796 | done | |
3797 | done | |
3798 | IFS=$as_save_IFS | |
3799 | ||
3800 | fi | |
3801 | ||
3802 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3803 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3804 | else | |
3805 | # As a last resort, use the slow shell script. Don't cache a | |
3806 | # value for MKDIR_P within a source directory, because that will | |
3807 | # break other packages using the cache if that directory is | |
3808 | # removed, or if the value is a relative name. | |
3809 | test -d ./--version && rmdir ./--version | |
3810 | MKDIR_P="$ac_install_sh -d" | |
3811 | fi | |
3812 | fi | |
ec6a6fbe AK |
3813 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3814 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3815 | |
d0191583 JM |
3816 | if test -n "$ac_tool_prefix"; then |
3817 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3818 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3819 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3820 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3821 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3822 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3823 | else |
3824 | if test -n "$RANLIB"; then | |
3825 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3826 | else | |
3827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3828 | for as_dir in $PATH | |
3829 | do | |
3830 | IFS=$as_save_IFS | |
3831 | test -z "$as_dir" && as_dir=. | |
3832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3834 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3835 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3836 | break 2 |
3837 | fi | |
3838 | done | |
3839 | done | |
3840 | IFS=$as_save_IFS | |
8106cdd5 | 3841 | |
795ca3e5 | 3842 | fi |
d0191583 JM |
3843 | fi |
3844 | RANLIB=$ac_cv_prog_RANLIB | |
3845 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3846 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3847 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3848 | else |
ec6a6fbe AK |
3849 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3850 | $as_echo "no" >&6; } | |
d0191583 JM |
3851 | fi |
3852 | ||
8106cdd5 | 3853 | |
ad6254c5 | 3854 | fi |
d0191583 JM |
3855 | if test -z "$ac_cv_prog_RANLIB"; then |
3856 | ac_ct_RANLIB=$RANLIB | |
3857 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3858 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3859 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3860 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3861 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3862 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3863 | else |
d0191583 JM |
3864 | if test -n "$ac_ct_RANLIB"; then |
3865 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3866 | else | |
3867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3868 | for as_dir in $PATH | |
8106cdd5 | 3869 | do |
d0191583 JM |
3870 | IFS=$as_save_IFS |
3871 | test -z "$as_dir" && as_dir=. | |
3872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3874 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3875 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3876 | break 2 |
3877 | fi | |
3878 | done | |
3879 | done | |
3880 | IFS=$as_save_IFS | |
3881 | ||
3882 | fi | |
3883 | fi | |
3884 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3885 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3886 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3887 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3888 | else |
ec6a6fbe AK |
3889 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3890 | $as_echo "no" >&6; } | |
d0191583 | 3891 | fi |
ad6254c5 | 3892 | |
d0191583 JM |
3893 | if test "x$ac_ct_RANLIB" = x; then |
3894 | RANLIB=":" | |
3895 | else | |
3896 | case $cross_compiling:$ac_tool_warned in | |
3897 | yes:) | |
ec6a6fbe AK |
3898 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3900 | ac_tool_warned=yes ;; |
3901 | esac | |
3902 | RANLIB=$ac_ct_RANLIB | |
3903 | fi | |
3904 | else | |
3905 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3906 | fi |
7a197a62 | 3907 | |
d0191583 JM |
3908 | # Extract the first word of "cflow", so it can be a program name with args. |
3909 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3910 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3911 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3912 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3913 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3914 | else |
3915 | case $CFLOW_CMD in | |
3916 | [\\/]* | ?:[\\/]*) | |
3917 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3918 | ;; | |
3919 | *) | |
3920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3921 | for as_dir in $PATH | |
3922 | do | |
3923 | IFS=$as_save_IFS | |
3924 | test -z "$as_dir" && as_dir=. | |
3925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3927 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3928 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3929 | break 2 |
3930 | fi | |
3931 | done | |
3932 | done | |
3933 | IFS=$as_save_IFS | |
ad6254c5 | 3934 | |
d0191583 | 3935 | ;; |
7a197a62 | 3936 | esac |
d0191583 JM |
3937 | fi |
3938 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3939 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
3940 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3941 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 3942 | else |
ec6a6fbe AK |
3943 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3944 | $as_echo "no" >&6; } | |
795ca3e5 | 3945 | fi |
7a197a62 | 3946 | |
ad6254c5 | 3947 | |
d0191583 JM |
3948 | # Extract the first word of "cscope", so it can be a program name with args. |
3949 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
3950 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3951 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3952 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 3953 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3954 | else |
3955 | case $CSCOPE_CMD in | |
3956 | [\\/]* | ?:[\\/]*) | |
3957 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3958 | ;; | |
3959 | *) | |
3960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3961 | for as_dir in $PATH | |
3962 | do | |
3963 | IFS=$as_save_IFS | |
3964 | test -z "$as_dir" && as_dir=. | |
3965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3967 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3968 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3969 | break 2 |
3970 | fi | |
795ca3e5 | 3971 | done |
d0191583 JM |
3972 | done |
3973 | IFS=$as_save_IFS | |
795ca3e5 | 3974 | |
d0191583 JM |
3975 | ;; |
3976 | esac | |
ad6254c5 | 3977 | fi |
d0191583 JM |
3978 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3979 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
3980 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3981 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3982 | else |
ec6a6fbe AK |
3983 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3984 | $as_echo "no" >&6; } | |
795ca3e5 | 3985 | fi |
ad6254c5 | 3986 | |
7a197a62 | 3987 | |
ad6254c5 | 3988 | |
d0191583 JM |
3989 | ################################################################################ |
3990 | ||
3991 | ||
3992 | ||
3993 | ||
3994 | ||
3995 | ac_header_dirent=no | |
3996 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
3997 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3998 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3999 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4000 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4001 | $as_echo_n "(cached) " >&6 |
d0191583 | 4002 | else |
ad6254c5 | 4003 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4004 | /* confdefs.h. */ |
4005 | _ACEOF | |
4006 | cat confdefs.h >>conftest.$ac_ext | |
4007 | cat >>conftest.$ac_ext <<_ACEOF | |
4008 | /* end confdefs.h. */ | |
d0191583 JM |
4009 | #include <sys/types.h> |
4010 | #include <$ac_hdr> | |
4011 | ||
4012 | int | |
4013 | main () | |
4014 | { | |
4015 | if ((DIR *) 0) | |
4016 | return 0; | |
4017 | ; | |
4018 | return 0; | |
4019 | } | |
ad6254c5 | 4020 | _ACEOF |
d0191583 JM |
4021 | rm -f conftest.$ac_objext |
4022 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4023 | case "(($ac_try" in |
4024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4025 | *) ac_try_echo=$ac_try;; | |
4026 | esac | |
ec6a6fbe AK |
4027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4028 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4029 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4030 | ac_status=$? |
4031 | grep -v '^ *+' conftest.er1 >conftest.err | |
4032 | rm -f conftest.er1 | |
4033 | cat conftest.err >&5 | |
ec6a6fbe | 4034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4035 | (exit $ac_status); } && { |
4036 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4037 | test ! -s conftest.err |
d0191583 JM |
4038 | } && test -s conftest.$ac_objext; then |
4039 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4040 | else |
ec6a6fbe | 4041 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4042 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4043 | |
d0191583 | 4044 | eval "$as_ac_Header=no" |
795ca3e5 | 4045 | fi |
7a197a62 | 4046 | |
d0191583 | 4047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4048 | fi |
ec6a6fbe AK |
4049 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4050 | $as_echo "$as_val"'` | |
4051 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4052 | $as_echo "$ac_res" >&6; } | |
4053 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4054 | $as_echo "$as_val"'` | |
4055 | if test "x$as_val" = x""yes; then | |
d0191583 | 4056 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4057 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4058 | _ACEOF |
795ca3e5 | 4059 | |
d0191583 JM |
4060 | ac_header_dirent=$ac_hdr; break |
4061 | fi | |
ad6254c5 | 4062 | |
d0191583 JM |
4063 | done |
4064 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4065 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4066 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4067 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4068 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4069 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4070 | else |
d0191583 JM |
4071 | ac_func_search_save_LIBS=$LIBS |
4072 | cat >conftest.$ac_ext <<_ACEOF | |
4073 | /* confdefs.h. */ | |
4074 | _ACEOF | |
4075 | cat confdefs.h >>conftest.$ac_ext | |
4076 | cat >>conftest.$ac_ext <<_ACEOF | |
4077 | /* end confdefs.h. */ | |
ad6254c5 | 4078 | |
d0191583 JM |
4079 | /* Override any GCC internal prototype to avoid an error. |
4080 | Use char because int might match the return type of a GCC | |
4081 | builtin and then its argument prototype would still apply. */ | |
4082 | #ifdef __cplusplus | |
4083 | extern "C" | |
4084 | #endif | |
4085 | char opendir (); | |
4086 | int | |
4087 | main () | |
4088 | { | |
4089 | return opendir (); | |
4090 | ; | |
4091 | return 0; | |
4092 | } | |
4093 | _ACEOF | |
4094 | for ac_lib in '' dir; do | |
4095 | if test -z "$ac_lib"; then | |
4096 | ac_res="none required" | |
4097 | else | |
4098 | ac_res=-l$ac_lib | |
4099 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4100 | fi | |
4101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4102 | if { (ac_try="$ac_link" | |
4103 | case "(($ac_try" in | |
4104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4105 | *) ac_try_echo=$ac_try;; | |
4106 | esac | |
ec6a6fbe AK |
4107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4108 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4109 | (eval "$ac_link") 2>conftest.er1 |
4110 | ac_status=$? | |
4111 | grep -v '^ *+' conftest.er1 >conftest.err | |
4112 | rm -f conftest.er1 | |
4113 | cat conftest.err >&5 | |
ec6a6fbe | 4114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4115 | (exit $ac_status); } && { |
4116 | test -z "$ac_c_werror_flag" || | |
4117 | test ! -s conftest.err | |
ec6a6fbe AK |
4118 | } && test -s conftest$ac_exeext && { |
4119 | test "$cross_compiling" = yes || | |
4120 | $as_test_x conftest$ac_exeext | |
4121 | }; then | |
d0191583 JM |
4122 | ac_cv_search_opendir=$ac_res |
4123 | else | |
ec6a6fbe | 4124 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4125 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4126 | |
ad6254c5 | 4127 | |
795ca3e5 | 4128 | fi |
ad6254c5 | 4129 | |
ec6a6fbe | 4130 | rm -rf conftest.dSYM |
d0191583 JM |
4131 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4132 | conftest$ac_exeext | |
4133 | if test "${ac_cv_search_opendir+set}" = set; then | |
4134 | break | |
7a197a62 | 4135 | fi |
d0191583 JM |
4136 | done |
4137 | if test "${ac_cv_search_opendir+set}" = set; then | |
4138 | : | |
7a197a62 | 4139 | else |
d0191583 | 4140 | ac_cv_search_opendir=no |
7a197a62 | 4141 | fi |
d0191583 JM |
4142 | rm conftest.$ac_ext |
4143 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4144 | fi |
ec6a6fbe AK |
4145 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4146 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4147 | ac_res=$ac_cv_search_opendir |
4148 | if test "$ac_res" != no; then | |
4149 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4150 | |
d0191583 | 4151 | fi |
7a197a62 | 4152 | |
7a197a62 | 4153 | else |
ec6a6fbe AK |
4154 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4155 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4156 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4157 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4158 | else |
d0191583 JM |
4159 | ac_func_search_save_LIBS=$LIBS |
4160 | cat >conftest.$ac_ext <<_ACEOF | |
4161 | /* confdefs.h. */ | |
4162 | _ACEOF | |
4163 | cat confdefs.h >>conftest.$ac_ext | |
4164 | cat >>conftest.$ac_ext <<_ACEOF | |
4165 | /* end confdefs.h. */ | |
7a197a62 | 4166 | |
d0191583 JM |
4167 | /* Override any GCC internal prototype to avoid an error. |
4168 | Use char because int might match the return type of a GCC | |
4169 | builtin and then its argument prototype would still apply. */ | |
4170 | #ifdef __cplusplus | |
4171 | extern "C" | |
4172 | #endif | |
4173 | char opendir (); | |
4174 | int | |
4175 | main () | |
4176 | { | |
4177 | return opendir (); | |
4178 | ; | |
4179 | return 0; | |
4180 | } | |
4181 | _ACEOF | |
4182 | for ac_lib in '' x; do | |
4183 | if test -z "$ac_lib"; then | |
4184 | ac_res="none required" | |
4185 | else | |
4186 | ac_res=-l$ac_lib | |
4187 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4188 | fi | |
4189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4190 | if { (ac_try="$ac_link" | |
4191 | case "(($ac_try" in | |
4192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4193 | *) ac_try_echo=$ac_try;; | |
4194 | esac | |
ec6a6fbe AK |
4195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4196 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4197 | (eval "$ac_link") 2>conftest.er1 |
4198 | ac_status=$? | |
4199 | grep -v '^ *+' conftest.er1 >conftest.err | |
4200 | rm -f conftest.er1 | |
4201 | cat conftest.err >&5 | |
ec6a6fbe | 4202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4203 | (exit $ac_status); } && { |
4204 | test -z "$ac_c_werror_flag" || | |
4205 | test ! -s conftest.err | |
ec6a6fbe AK |
4206 | } && test -s conftest$ac_exeext && { |
4207 | test "$cross_compiling" = yes || | |
4208 | $as_test_x conftest$ac_exeext | |
4209 | }; then | |
d0191583 JM |
4210 | ac_cv_search_opendir=$ac_res |
4211 | else | |
ec6a6fbe | 4212 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4213 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4214 | |
4215 | ||
4216 | fi | |
4217 | ||
ec6a6fbe | 4218 | rm -rf conftest.dSYM |
d0191583 JM |
4219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4220 | conftest$ac_exeext | |
4221 | if test "${ac_cv_search_opendir+set}" = set; then | |
4222 | break | |
7a197a62 | 4223 | fi |
d0191583 JM |
4224 | done |
4225 | if test "${ac_cv_search_opendir+set}" = set; then | |
4226 | : | |
7a197a62 | 4227 | else |
d0191583 | 4228 | ac_cv_search_opendir=no |
7a197a62 | 4229 | fi |
d0191583 JM |
4230 | rm conftest.$ac_ext |
4231 | LIBS=$ac_func_search_save_LIBS | |
4232 | fi | |
ec6a6fbe AK |
4233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4234 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4235 | ac_res=$ac_cv_search_opendir |
4236 | if test "$ac_res" != no; then | |
4237 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4238 | |
7a197a62 | 4239 | fi |
7a197a62 | 4240 | |
d0191583 | 4241 | fi |
7a197a62 | 4242 | |
ec6a6fbe AK |
4243 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4244 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4245 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4246 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4247 | else |
4248 | cat >conftest.$ac_ext <<_ACEOF | |
4249 | /* confdefs.h. */ | |
4250 | _ACEOF | |
4251 | cat confdefs.h >>conftest.$ac_ext | |
4252 | cat >>conftest.$ac_ext <<_ACEOF | |
4253 | /* end confdefs.h. */ | |
4254 | #include <stdlib.h> | |
4255 | #include <stdarg.h> | |
4256 | #include <string.h> | |
4257 | #include <float.h> | |
4258 | ||
4259 | int | |
4260 | main () | |
4261 | { | |
4262 | ||
4263 | ; | |
4264 | return 0; | |
4265 | } | |
4266 | _ACEOF | |
4267 | rm -f conftest.$ac_objext | |
4268 | if { (ac_try="$ac_compile" | |
4269 | case "(($ac_try" in | |
4270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4271 | *) ac_try_echo=$ac_try;; | |
4272 | esac | |
ec6a6fbe AK |
4273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4274 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4275 | (eval "$ac_compile") 2>conftest.er1 |
4276 | ac_status=$? | |
4277 | grep -v '^ *+' conftest.er1 >conftest.err | |
4278 | rm -f conftest.er1 | |
4279 | cat conftest.err >&5 | |
ec6a6fbe | 4280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4281 | (exit $ac_status); } && { |
4282 | test -z "$ac_c_werror_flag" || | |
4283 | test ! -s conftest.err | |
4284 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4285 | ac_cv_header_stdc=yes |
4286 | else | |
ec6a6fbe | 4287 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4288 | sed 's/^/| /' conftest.$ac_ext >&5 |
4289 | ||
4290 | ac_cv_header_stdc=no | |
4291 | fi | |
4292 | ||
4293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4294 | ||
4295 | if test $ac_cv_header_stdc = yes; then | |
4296 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4297 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4298 | /* confdefs.h. */ |
4299 | _ACEOF | |
4300 | cat confdefs.h >>conftest.$ac_ext | |
4301 | cat >>conftest.$ac_ext <<_ACEOF | |
4302 | /* end confdefs.h. */ | |
4303 | #include <string.h> | |
8106cdd5 | 4304 | |
ad6254c5 AK |
4305 | _ACEOF |
4306 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4307 | $EGREP "memchr" >/dev/null 2>&1; then | |
4308 | : | |
4309 | else | |
4310 | ac_cv_header_stdc=no | |
80992638 | 4311 | fi |
ad6254c5 | 4312 | rm -f conftest* |
795ca3e5 AK |
4313 | |
4314 | fi | |
4315 | ||
ad6254c5 AK |
4316 | if test $ac_cv_header_stdc = yes; then |
4317 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4318 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4319 | /* confdefs.h. */ |
4320 | _ACEOF | |
4321 | cat confdefs.h >>conftest.$ac_ext | |
4322 | cat >>conftest.$ac_ext <<_ACEOF | |
4323 | /* end confdefs.h. */ | |
80992638 | 4324 | #include <stdlib.h> |
ad6254c5 AK |
4325 | |
4326 | _ACEOF | |
80992638 | 4327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4328 | $EGREP "free" >/dev/null 2>&1; then |
4329 | : | |
795ca3e5 | 4330 | else |
ad6254c5 | 4331 | ac_cv_header_stdc=no |
795ca3e5 | 4332 | fi |
80992638 | 4333 | rm -f conftest* |
8106cdd5 | 4334 | |
795ca3e5 AK |
4335 | fi |
4336 | ||
ad6254c5 AK |
4337 | if test $ac_cv_header_stdc = yes; then |
4338 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4339 | if test "$cross_compiling" = yes; then | |
4340 | : | |
795ca3e5 | 4341 | else |
ad6254c5 | 4342 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4343 | /* confdefs.h. */ |
4344 | _ACEOF | |
4345 | cat confdefs.h >>conftest.$ac_ext | |
4346 | cat >>conftest.$ac_ext <<_ACEOF | |
4347 | /* end confdefs.h. */ | |
4348 | #include <ctype.h> | |
7a197a62 | 4349 | #include <stdlib.h> |
ad6254c5 AK |
4350 | #if ((' ' & 0x0FF) == 0x020) |
4351 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4352 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4353 | #else | |
4354 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4355 | (('a' <= (c) && (c) <= 'i') \ |
4356 | || ('j' <= (c) && (c) <= 'r') \ | |
4357 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4358 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4359 | #endif |
ad6254c5 AK |
4360 | |
4361 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4362 | int | |
4363 | main () | |
4364 | { | |
4365 | int i; | |
4366 | for (i = 0; i < 256; i++) | |
4367 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4368 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4369 | return 2; |
4370 | return 0; | |
ad6254c5 AK |
4371 | } |
4372 | _ACEOF | |
4373 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4374 | if { (ac_try="$ac_link" |
4375 | case "(($ac_try" in | |
4376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4377 | *) ac_try_echo=$ac_try;; | |
4378 | esac | |
ec6a6fbe AK |
4379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4380 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4381 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4382 | ac_status=$? |
ec6a6fbe | 4383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4385 | { (case "(($ac_try" in |
4386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4387 | *) ac_try_echo=$ac_try;; | |
4388 | esac | |
ec6a6fbe AK |
4389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4390 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4391 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4392 | ac_status=$? |
ec6a6fbe | 4393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4394 | (exit $ac_status); }; }; then |
4395 | : | |
795ca3e5 | 4396 | else |
ec6a6fbe AK |
4397 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4398 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4399 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4400 | |
ad6254c5 AK |
4401 | ( exit $ac_status ) |
4402 | ac_cv_header_stdc=no | |
80992638 | 4403 | fi |
ec6a6fbe | 4404 | rm -rf conftest.dSYM |
7a197a62 | 4405 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4406 | fi |
7a197a62 AK |
4407 | |
4408 | ||
ad6254c5 AK |
4409 | fi |
4410 | fi | |
ec6a6fbe AK |
4411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4412 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4413 | if test $ac_cv_header_stdc = yes; then |
4414 | ||
4415 | cat >>confdefs.h <<\_ACEOF | |
4416 | #define STDC_HEADERS 1 | |
4417 | _ACEOF | |
795ca3e5 AK |
4418 | |
4419 | fi | |
4420 | ||
ec6a6fbe AK |
4421 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4422 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4423 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4424 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4425 | else |
ad6254c5 | 4426 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4427 | /* confdefs.h. */ |
4428 | _ACEOF | |
4429 | cat confdefs.h >>conftest.$ac_ext | |
4430 | cat >>conftest.$ac_ext <<_ACEOF | |
4431 | /* end confdefs.h. */ | |
80992638 | 4432 | #include <sys/types.h> |
ad6254c5 AK |
4433 | #include <sys/wait.h> |
4434 | #ifndef WEXITSTATUS | |
7a197a62 | 4435 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4436 | #endif |
4437 | #ifndef WIFEXITED | |
4438 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4439 | #endif | |
4440 | ||
4441 | int | |
4442 | main () | |
4443 | { | |
4444 | int s; | |
4445 | wait (&s); | |
4446 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4447 | ; | |
4448 | return 0; | |
4449 | } | |
4450 | _ACEOF | |
4451 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4452 | if { (ac_try="$ac_compile" |
4453 | case "(($ac_try" in | |
4454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4455 | *) ac_try_echo=$ac_try;; | |
4456 | esac | |
ec6a6fbe AK |
4457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4458 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4459 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4460 | ac_status=$? |
8a2fc586 AK |
4461 | grep -v '^ *+' conftest.er1 >conftest.err |
4462 | rm -f conftest.er1 | |
4463 | cat conftest.err >&5 | |
ec6a6fbe | 4464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4465 | (exit $ac_status); } && { |
4466 | test -z "$ac_c_werror_flag" || | |
4467 | test ! -s conftest.err | |
4468 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4469 | ac_cv_header_sys_wait_h=yes |
4470 | else | |
ec6a6fbe | 4471 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4472 | sed 's/^/| /' conftest.$ac_ext >&5 |
4473 | ||
7a197a62 | 4474 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4475 | fi |
7a197a62 AK |
4476 | |
4477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4478 | fi |
ec6a6fbe AK |
4479 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4480 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4481 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4482 | |
ad6254c5 AK |
4483 | cat >>confdefs.h <<\_ACEOF |
4484 | #define HAVE_SYS_WAIT_H 1 | |
4485 | _ACEOF | |
795ca3e5 AK |
4486 | |
4487 | fi | |
4488 | ||
ec6a6fbe AK |
4489 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4490 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4491 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4492 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4493 | else |
ad6254c5 | 4494 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4495 | /* confdefs.h. */ |
4496 | _ACEOF | |
4497 | cat confdefs.h >>conftest.$ac_ext | |
4498 | cat >>conftest.$ac_ext <<_ACEOF | |
4499 | /* end confdefs.h. */ | |
795ca3e5 AK |
4500 | #include <sys/types.h> |
4501 | #include <sys/time.h> | |
4502 | #include <time.h> | |
ad6254c5 AK |
4503 | |
4504 | int | |
4505 | main () | |
4506 | { | |
4507 | if ((struct tm *) 0) | |
4508 | return 0; | |
4509 | ; | |
4510 | return 0; | |
4511 | } | |
4512 | _ACEOF | |
4513 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4514 | if { (ac_try="$ac_compile" |
4515 | case "(($ac_try" in | |
4516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4517 | *) ac_try_echo=$ac_try;; | |
4518 | esac | |
ec6a6fbe AK |
4519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4520 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4521 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4522 | ac_status=$? |
8a2fc586 AK |
4523 | grep -v '^ *+' conftest.er1 >conftest.err |
4524 | rm -f conftest.er1 | |
4525 | cat conftest.err >&5 | |
ec6a6fbe | 4526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4527 | (exit $ac_status); } && { |
4528 | test -z "$ac_c_werror_flag" || | |
4529 | test ! -s conftest.err | |
4530 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4531 | ac_cv_header_time=yes |
4532 | else | |
ec6a6fbe | 4533 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4534 | sed 's/^/| /' conftest.$ac_ext >&5 |
4535 | ||
7a197a62 | 4536 | ac_cv_header_time=no |
795ca3e5 | 4537 | fi |
7a197a62 AK |
4538 | |
4539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4540 | fi |
ec6a6fbe AK |
4541 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4542 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4543 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4544 | |
4545 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4546 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4547 | _ACEOF |
b896caa1 | 4548 | |
8106cdd5 | 4549 | fi |
b896caa1 | 4550 | |
b896caa1 | 4551 | |
d0191583 JM |
4552 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4553 | ||
4554 | ||
4555 | ||
4556 | ||
4557 | ||
4558 | ||
4559 | ||
4560 | ||
4561 | ||
4562 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4563 | inttypes.h stdint.h unistd.h | |
4564 | do | |
ec6a6fbe AK |
4565 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4566 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4567 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4569 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4570 | else |
4571 | cat >conftest.$ac_ext <<_ACEOF | |
4572 | /* confdefs.h. */ | |
4573 | _ACEOF | |
4574 | cat confdefs.h >>conftest.$ac_ext | |
4575 | cat >>conftest.$ac_ext <<_ACEOF | |
4576 | /* end confdefs.h. */ | |
4577 | $ac_includes_default | |
4578 | ||
4579 | #include <$ac_header> | |
4580 | _ACEOF | |
4581 | rm -f conftest.$ac_objext | |
4582 | if { (ac_try="$ac_compile" | |
4583 | case "(($ac_try" in | |
4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4585 | *) ac_try_echo=$ac_try;; | |
4586 | esac | |
ec6a6fbe AK |
4587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4588 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4589 | (eval "$ac_compile") 2>conftest.er1 |
4590 | ac_status=$? | |
4591 | grep -v '^ *+' conftest.er1 >conftest.err | |
4592 | rm -f conftest.er1 | |
4593 | cat conftest.err >&5 | |
ec6a6fbe | 4594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4595 | (exit $ac_status); } && { |
4596 | test -z "$ac_c_werror_flag" || | |
4597 | test ! -s conftest.err | |
4598 | } && test -s conftest.$ac_objext; then | |
4599 | eval "$as_ac_Header=yes" | |
4600 | else | |
ec6a6fbe | 4601 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4602 | sed 's/^/| /' conftest.$ac_ext >&5 |
4603 | ||
4604 | eval "$as_ac_Header=no" | |
4605 | fi | |
4606 | ||
4607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4608 | fi | |
ec6a6fbe AK |
4609 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4610 | $as_echo "$as_val"'` | |
4611 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4612 | $as_echo "$ac_res" >&6; } | |
4613 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4614 | $as_echo "$as_val"'` | |
4615 | if test "x$as_val" = x""yes; then | |
d0191583 | 4616 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4617 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4618 | _ACEOF |
4619 | ||
4620 | fi | |
4621 | ||
4622 | done | |
4623 | ||
b896caa1 | 4624 | |
b896caa1 AK |
4625 | |
4626 | ||
795ca3e5 | 4627 | |
8106cdd5 | 4628 | |
80992638 | 4629 | |
795ca3e5 | 4630 | |
a38df97f | 4631 | |
80992638 | 4632 | |
d0191583 JM |
4633 | |
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4639 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4640 | do |
ec6a6fbe | 4641 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4643 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4644 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4646 | $as_echo_n "(cached) " >&6 |
d0191583 | 4647 | fi |
ec6a6fbe AK |
4648 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4649 | $as_echo "$as_val"'` | |
4650 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4651 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4652 | else |
d0191583 | 4653 | # Is the header compilable? |
ec6a6fbe AK |
4654 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4655 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4656 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4657 | /* confdefs.h. */ |
4658 | _ACEOF | |
4659 | cat confdefs.h >>conftest.$ac_ext | |
4660 | cat >>conftest.$ac_ext <<_ACEOF | |
4661 | /* end confdefs.h. */ | |
4662 | $ac_includes_default | |
ad6254c5 AK |
4663 | #include <$ac_header> |
4664 | _ACEOF | |
4665 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4666 | if { (ac_try="$ac_compile" |
4667 | case "(($ac_try" in | |
4668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4669 | *) ac_try_echo=$ac_try;; | |
4670 | esac | |
ec6a6fbe AK |
4671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4672 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4673 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4674 | ac_status=$? |
8a2fc586 AK |
4675 | grep -v '^ *+' conftest.er1 >conftest.err |
4676 | rm -f conftest.er1 | |
4677 | cat conftest.err >&5 | |
ec6a6fbe | 4678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4679 | (exit $ac_status); } && { |
4680 | test -z "$ac_c_werror_flag" || | |
4681 | test ! -s conftest.err | |
4682 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4683 | ac_header_compiler=yes |
ad6254c5 | 4684 | else |
ec6a6fbe | 4685 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4686 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4687 | |
d0191583 | 4688 | ac_header_compiler=no |
ad6254c5 | 4689 | fi |
7a197a62 AK |
4690 | |
4691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4692 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4693 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4694 | |
4695 | # Is the header present? | |
ec6a6fbe AK |
4696 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4697 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4698 | cat >conftest.$ac_ext <<_ACEOF |
4699 | /* confdefs.h. */ | |
4700 | _ACEOF | |
4701 | cat confdefs.h >>conftest.$ac_ext | |
4702 | cat >>conftest.$ac_ext <<_ACEOF | |
4703 | /* end confdefs.h. */ | |
4704 | #include <$ac_header> | |
4705 | _ACEOF | |
4706 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4707 | case "(($ac_try" in | |
4708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4709 | *) ac_try_echo=$ac_try;; | |
4710 | esac | |
ec6a6fbe AK |
4711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4712 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4713 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4714 | ac_status=$? | |
4715 | grep -v '^ *+' conftest.er1 >conftest.err | |
4716 | rm -f conftest.er1 | |
4717 | cat conftest.err >&5 | |
ec6a6fbe | 4718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4719 | (exit $ac_status); } >/dev/null && { |
4720 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4721 | test ! -s conftest.err | |
4722 | }; then | |
4723 | ac_header_preproc=yes | |
4724 | else | |
ec6a6fbe | 4725 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4726 | sed 's/^/| /' conftest.$ac_ext >&5 |
4727 | ||
4728 | ac_header_preproc=no | |
4729 | fi | |
4730 | ||
4731 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4732 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4733 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4734 | |
4735 | # So? What about this header? | |
4736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4737 | yes:no: ) | |
ec6a6fbe AK |
4738 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4739 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4740 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4741 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4742 | ac_header_preproc=yes |
4743 | ;; | |
4744 | no:yes:* ) | |
ec6a6fbe AK |
4745 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4746 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4747 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4748 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4749 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4750 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4751 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4752 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4753 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4754 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4755 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4756 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4757 | |
4758 | ;; | |
4759 | esac | |
ec6a6fbe AK |
4760 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4761 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4763 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4764 | else |
4765 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4766 | fi |
ec6a6fbe AK |
4767 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4768 | $as_echo "$as_val"'` | |
4769 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4770 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4771 | |
4772 | fi | |
ec6a6fbe AK |
4773 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4774 | $as_echo "$as_val"'` | |
4775 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4776 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4777 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4778 | _ACEOF |
a38df97f | 4779 | |
d0191583 | 4780 | else |
ec6a6fbe AK |
4781 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4782 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4783 | { (exit 1); exit 1; }; } |
80992638 AK |
4784 | fi |
4785 | ||
ad6254c5 AK |
4786 | done |
4787 | ||
7d1552c9 | 4788 | |
d0191583 JM |
4789 | case "$host_os" in |
4790 | linux*) | |
7d1552c9 | 4791 | |
80992638 | 4792 | |
5a52dca9 | 4793 | |
d0191583 | 4794 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4795 | do |
ec6a6fbe | 4796 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4798 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4799 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4800 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4801 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4802 | fi |
ec6a6fbe AK |
4803 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4804 | $as_echo "$as_val"'` | |
4805 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4806 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4807 | else |
4808 | # Is the header compilable? | |
ec6a6fbe AK |
4809 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4810 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4811 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4812 | /* confdefs.h. */ |
4813 | _ACEOF | |
4814 | cat confdefs.h >>conftest.$ac_ext | |
4815 | cat >>conftest.$ac_ext <<_ACEOF | |
4816 | /* end confdefs.h. */ | |
4817 | $ac_includes_default | |
4818 | #include <$ac_header> | |
4819 | _ACEOF | |
4820 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4821 | if { (ac_try="$ac_compile" |
4822 | case "(($ac_try" in | |
4823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4824 | *) ac_try_echo=$ac_try;; | |
4825 | esac | |
ec6a6fbe AK |
4826 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4827 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4828 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4829 | ac_status=$? |
8a2fc586 AK |
4830 | grep -v '^ *+' conftest.er1 >conftest.err |
4831 | rm -f conftest.er1 | |
4832 | cat conftest.err >&5 | |
ec6a6fbe | 4833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4834 | (exit $ac_status); } && { |
4835 | test -z "$ac_c_werror_flag" || | |
4836 | test ! -s conftest.err | |
4837 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4838 | ac_header_compiler=yes |
4839 | else | |
ec6a6fbe | 4840 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4841 | sed 's/^/| /' conftest.$ac_ext >&5 |
4842 | ||
4843 | ac_header_compiler=no | |
4844 | fi | |
4845 | ||
4846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4847 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4848 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4849 | |
4850 | # Is the header present? | |
ec6a6fbe AK |
4851 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4852 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4853 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4854 | /* confdefs.h. */ |
4855 | _ACEOF | |
4856 | cat confdefs.h >>conftest.$ac_ext | |
4857 | cat >>conftest.$ac_ext <<_ACEOF | |
4858 | /* end confdefs.h. */ | |
4859 | #include <$ac_header> | |
4860 | _ACEOF | |
7a197a62 AK |
4861 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4862 | case "(($ac_try" in | |
4863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4864 | *) ac_try_echo=$ac_try;; | |
4865 | esac | |
ec6a6fbe AK |
4866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4867 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4868 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4869 | ac_status=$? |
4870 | grep -v '^ *+' conftest.er1 >conftest.err | |
4871 | rm -f conftest.er1 | |
4872 | cat conftest.err >&5 | |
ec6a6fbe | 4873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4874 | (exit $ac_status); } >/dev/null && { |
4875 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4876 | test ! -s conftest.err | |
4877 | }; then | |
ad6254c5 AK |
4878 | ac_header_preproc=yes |
4879 | else | |
ec6a6fbe | 4880 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4881 | sed 's/^/| /' conftest.$ac_ext >&5 |
4882 | ||
4883 | ac_header_preproc=no | |
4884 | fi | |
7a197a62 | 4885 | |
ad6254c5 | 4886 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4887 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4888 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4889 | |
4890 | # So? What about this header? | |
8a2fc586 AK |
4891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4892 | yes:no: ) | |
ec6a6fbe AK |
4893 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4894 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4895 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4896 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4897 | ac_header_preproc=yes |
ad6254c5 | 4898 | ;; |
8a2fc586 | 4899 | no:yes:* ) |
ec6a6fbe AK |
4900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4901 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4902 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4903 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4904 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4905 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4906 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4907 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4908 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4909 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4910 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4911 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4912 | |
ad6254c5 AK |
4913 | ;; |
4914 | esac | |
ec6a6fbe AK |
4915 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4916 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4918 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4919 | else |
8a2fc586 | 4920 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4921 | fi |
ec6a6fbe AK |
4922 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4923 | $as_echo "$as_val"'` | |
4924 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4925 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4926 | |
4927 | fi | |
ec6a6fbe AK |
4928 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4929 | $as_echo "$as_val"'` | |
4930 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4931 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4932 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4933 | _ACEOF |
b896caa1 | 4934 | |
d8ac0fbc | 4935 | else |
ec6a6fbe AK |
4936 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4937 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4938 | { (exit 1); exit 1; }; } |
80992638 AK |
4939 | fi |
4940 | ||
ad6254c5 | 4941 | done |
d0191583 JM |
4942 | ;; |
4943 | darwin*) | |
d8ac0fbc | 4944 | |
d8ac0fbc | 4945 | |
d0191583 | 4946 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4947 | do |
ec6a6fbe | 4948 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4950 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4951 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4952 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4953 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4954 | fi |
ec6a6fbe AK |
4955 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4956 | $as_echo "$as_val"'` | |
4957 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4958 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4959 | else |
4960 | # Is the header compilable? | |
ec6a6fbe AK |
4961 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4962 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4963 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4964 | /* confdefs.h. */ |
4965 | _ACEOF | |
4966 | cat confdefs.h >>conftest.$ac_ext | |
4967 | cat >>conftest.$ac_ext <<_ACEOF | |
4968 | /* end confdefs.h. */ | |
4969 | $ac_includes_default | |
4970 | #include <$ac_header> | |
4971 | _ACEOF | |
4972 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4973 | if { (ac_try="$ac_compile" |
4974 | case "(($ac_try" in | |
4975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4976 | *) ac_try_echo=$ac_try;; | |
4977 | esac | |
ec6a6fbe AK |
4978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4979 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4980 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4981 | ac_status=$? |
8a2fc586 AK |
4982 | grep -v '^ *+' conftest.er1 >conftest.err |
4983 | rm -f conftest.er1 | |
4984 | cat conftest.err >&5 | |
ec6a6fbe | 4985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4986 | (exit $ac_status); } && { |
4987 | test -z "$ac_c_werror_flag" || | |
4988 | test ! -s conftest.err | |
4989 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4990 | ac_header_compiler=yes |
4991 | else | |
ec6a6fbe | 4992 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4993 | sed 's/^/| /' conftest.$ac_ext >&5 |
4994 | ||
7a197a62 | 4995 | ac_header_compiler=no |
ad6254c5 | 4996 | fi |
7a197a62 AK |
4997 | |
4998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4999 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5000 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5001 | |
5002 | # Is the header present? | |
ec6a6fbe AK |
5003 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5004 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5005 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5006 | /* confdefs.h. */ |
5007 | _ACEOF | |
5008 | cat confdefs.h >>conftest.$ac_ext | |
5009 | cat >>conftest.$ac_ext <<_ACEOF | |
5010 | /* end confdefs.h. */ | |
5011 | #include <$ac_header> | |
5012 | _ACEOF | |
7a197a62 AK |
5013 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5014 | case "(($ac_try" in | |
5015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5016 | *) ac_try_echo=$ac_try;; | |
5017 | esac | |
ec6a6fbe AK |
5018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5019 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5020 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5021 | ac_status=$? |
5022 | grep -v '^ *+' conftest.er1 >conftest.err | |
5023 | rm -f conftest.er1 | |
5024 | cat conftest.err >&5 | |
ec6a6fbe | 5025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5026 | (exit $ac_status); } >/dev/null && { |
5027 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5028 | test ! -s conftest.err | |
5029 | }; then | |
ad6254c5 AK |
5030 | ac_header_preproc=yes |
5031 | else | |
ec6a6fbe | 5032 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5033 | sed 's/^/| /' conftest.$ac_ext >&5 |
5034 | ||
5035 | ac_header_preproc=no | |
5036 | fi | |
7a197a62 | 5037 | |
ad6254c5 | 5038 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5039 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5040 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5041 | |
5042 | # So? What about this header? | |
8a2fc586 AK |
5043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5044 | yes:no: ) | |
ec6a6fbe AK |
5045 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5046 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5047 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5048 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5049 | ac_header_preproc=yes |
ad6254c5 | 5050 | ;; |
8a2fc586 | 5051 | no:yes:* ) |
ec6a6fbe AK |
5052 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5053 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5054 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5055 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5056 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5057 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5058 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5059 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5060 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5061 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5062 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5063 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5064 | |
ad6254c5 AK |
5065 | ;; |
5066 | esac | |
ec6a6fbe AK |
5067 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5068 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5069 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5070 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5071 | else |
8a2fc586 | 5072 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5073 | fi |
ec6a6fbe AK |
5074 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5075 | $as_echo "$as_val"'` | |
5076 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5077 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5078 | |
5079 | fi | |
ec6a6fbe AK |
5080 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5081 | $as_echo "$as_val"'` | |
5082 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5083 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5084 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5085 | _ACEOF |
4922197a | 5086 | |
4922197a | 5087 | else |
ec6a6fbe AK |
5088 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5089 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5090 | { (exit 1); exit 1; }; } |
80992638 AK |
5091 | fi |
5092 | ||
ad6254c5 | 5093 | done |
d0191583 JM |
5094 | ;; |
5095 | esac | |
4922197a | 5096 | |
4922197a | 5097 | |
4922197a | 5098 | |
ad6254c5 AK |
5099 | |
5100 | ||
d0191583 JM |
5101 | |
5102 | ||
5103 | ||
5104 | ||
5105 | ||
5106 | ||
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | ||
5112 | ||
5113 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5114 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5115 | sys/types.h unistd.h | |
ad6254c5 | 5116 | do |
ec6a6fbe | 5117 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5119 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5120 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5121 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5122 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5123 | fi |
ec6a6fbe AK |
5124 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5125 | $as_echo "$as_val"'` | |
5126 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5127 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5128 | else |
ad6254c5 | 5129 | # Is the header compilable? |
ec6a6fbe AK |
5130 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5131 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5132 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5133 | /* confdefs.h. */ |
5134 | _ACEOF | |
5135 | cat confdefs.h >>conftest.$ac_ext | |
5136 | cat >>conftest.$ac_ext <<_ACEOF | |
5137 | /* end confdefs.h. */ | |
5138 | $ac_includes_default | |
5139 | #include <$ac_header> | |
5140 | _ACEOF | |
5141 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5142 | if { (ac_try="$ac_compile" |
5143 | case "(($ac_try" in | |
5144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5145 | *) ac_try_echo=$ac_try;; | |
5146 | esac | |
ec6a6fbe AK |
5147 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5148 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5149 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5150 | ac_status=$? |
8a2fc586 AK |
5151 | grep -v '^ *+' conftest.er1 >conftest.err |
5152 | rm -f conftest.er1 | |
5153 | cat conftest.err >&5 | |
ec6a6fbe | 5154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5155 | (exit $ac_status); } && { |
5156 | test -z "$ac_c_werror_flag" || | |
5157 | test ! -s conftest.err | |
5158 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5159 | ac_header_compiler=yes |
5160 | else | |
ec6a6fbe | 5161 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5162 | sed 's/^/| /' conftest.$ac_ext >&5 |
5163 | ||
7a197a62 | 5164 | ac_header_compiler=no |
ad6254c5 | 5165 | fi |
7a197a62 AK |
5166 | |
5167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5168 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5169 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5170 | |
5171 | # Is the header present? | |
ec6a6fbe AK |
5172 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5173 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5174 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5175 | /* confdefs.h. */ |
5176 | _ACEOF | |
5177 | cat confdefs.h >>conftest.$ac_ext | |
5178 | cat >>conftest.$ac_ext <<_ACEOF | |
5179 | /* end confdefs.h. */ | |
5180 | #include <$ac_header> | |
5181 | _ACEOF | |
7a197a62 AK |
5182 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5183 | case "(($ac_try" in | |
5184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5185 | *) ac_try_echo=$ac_try;; | |
5186 | esac | |
ec6a6fbe AK |
5187 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5188 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5189 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5190 | ac_status=$? |
5191 | grep -v '^ *+' conftest.er1 >conftest.err | |
5192 | rm -f conftest.er1 | |
5193 | cat conftest.err >&5 | |
ec6a6fbe | 5194 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5195 | (exit $ac_status); } >/dev/null && { |
5196 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5197 | test ! -s conftest.err | |
5198 | }; then | |
ad6254c5 AK |
5199 | ac_header_preproc=yes |
5200 | else | |
ec6a6fbe | 5201 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5202 | sed 's/^/| /' conftest.$ac_ext >&5 |
5203 | ||
5204 | ac_header_preproc=no | |
5205 | fi | |
7a197a62 | 5206 | |
ad6254c5 | 5207 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5208 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5209 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5210 | |
5211 | # So? What about this header? | |
8a2fc586 AK |
5212 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5213 | yes:no: ) | |
ec6a6fbe AK |
5214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5215 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5216 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5217 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5218 | ac_header_preproc=yes |
ad6254c5 | 5219 | ;; |
8a2fc586 | 5220 | no:yes:* ) |
ec6a6fbe AK |
5221 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5222 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5223 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5224 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5225 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5226 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5227 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5228 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5229 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5230 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5231 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5232 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5233 | |
ad6254c5 AK |
5234 | ;; |
5235 | esac | |
ec6a6fbe AK |
5236 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5237 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5238 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5239 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5240 | else |
8a2fc586 | 5241 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5242 | fi |
ec6a6fbe AK |
5243 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5244 | $as_echo "$as_val"'` | |
5245 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5246 | $as_echo "$ac_res" >&6; } | |
80992638 | 5247 | |
ad6254c5 | 5248 | fi |
ec6a6fbe AK |
5249 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5250 | $as_echo "$as_val"'` | |
5251 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5252 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5253 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5254 | _ACEOF |
795ca3e5 | 5255 | |
795ca3e5 | 5256 | else |
ec6a6fbe AK |
5257 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5258 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5259 | { (exit 1); exit 1; }; } |
80992638 AK |
5260 | fi |
5261 | ||
ad6254c5 | 5262 | done |
ad6254c5 | 5263 | |
795ca3e5 | 5264 | |
d0191583 JM |
5265 | |
5266 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5267 | do |
ec6a6fbe | 5268 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5269 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5270 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5271 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5272 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5273 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5274 | fi |
ec6a6fbe AK |
5275 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5276 | $as_echo "$as_val"'` | |
5277 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5278 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5279 | else |
5280 | # Is the header compilable? | |
ec6a6fbe AK |
5281 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5282 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5283 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5284 | /* confdefs.h. */ |
5285 | _ACEOF | |
5286 | cat confdefs.h >>conftest.$ac_ext | |
5287 | cat >>conftest.$ac_ext <<_ACEOF | |
5288 | /* end confdefs.h. */ | |
5289 | $ac_includes_default | |
5290 | #include <$ac_header> | |
5291 | _ACEOF | |
5292 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5293 | if { (ac_try="$ac_compile" |
5294 | case "(($ac_try" in | |
5295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5296 | *) ac_try_echo=$ac_try;; | |
5297 | esac | |
ec6a6fbe AK |
5298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5299 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5300 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5301 | ac_status=$? |
8a2fc586 AK |
5302 | grep -v '^ *+' conftest.er1 >conftest.err |
5303 | rm -f conftest.er1 | |
5304 | cat conftest.err >&5 | |
ec6a6fbe | 5305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5306 | (exit $ac_status); } && { |
5307 | test -z "$ac_c_werror_flag" || | |
5308 | test ! -s conftest.err | |
5309 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5310 | ac_header_compiler=yes |
5311 | else | |
ec6a6fbe | 5312 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5313 | sed 's/^/| /' conftest.$ac_ext >&5 |
5314 | ||
7a197a62 | 5315 | ac_header_compiler=no |
ad6254c5 | 5316 | fi |
7a197a62 AK |
5317 | |
5318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5319 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5320 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5321 | |
5322 | # Is the header present? | |
ec6a6fbe AK |
5323 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5324 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5325 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5326 | /* confdefs.h. */ |
5327 | _ACEOF | |
5328 | cat confdefs.h >>conftest.$ac_ext | |
5329 | cat >>conftest.$ac_ext <<_ACEOF | |
5330 | /* end confdefs.h. */ | |
5331 | #include <$ac_header> | |
5332 | _ACEOF | |
7a197a62 AK |
5333 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5334 | case "(($ac_try" in | |
5335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5336 | *) ac_try_echo=$ac_try;; | |
5337 | esac | |
ec6a6fbe AK |
5338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5339 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5340 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5341 | ac_status=$? |
5342 | grep -v '^ *+' conftest.er1 >conftest.err | |
5343 | rm -f conftest.er1 | |
5344 | cat conftest.err >&5 | |
ec6a6fbe | 5345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5346 | (exit $ac_status); } >/dev/null && { |
5347 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5348 | test ! -s conftest.err | |
5349 | }; then | |
ad6254c5 AK |
5350 | ac_header_preproc=yes |
5351 | else | |
ec6a6fbe | 5352 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5353 | sed 's/^/| /' conftest.$ac_ext >&5 |
5354 | ||
5355 | ac_header_preproc=no | |
5356 | fi | |
7a197a62 | 5357 | |
ad6254c5 | 5358 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5359 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5360 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5361 | |
5362 | # So? What about this header? | |
8a2fc586 AK |
5363 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5364 | yes:no: ) | |
ec6a6fbe AK |
5365 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5366 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5367 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5368 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5369 | ac_header_preproc=yes |
ad6254c5 | 5370 | ;; |
8a2fc586 | 5371 | no:yes:* ) |
ec6a6fbe AK |
5372 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5373 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5374 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5375 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5376 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5377 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5378 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5379 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5380 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5381 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5382 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5383 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5384 | |
ad6254c5 AK |
5385 | ;; |
5386 | esac | |
ec6a6fbe AK |
5387 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5388 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5389 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5390 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5391 | else |
8a2fc586 | 5392 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5393 | fi |
ec6a6fbe AK |
5394 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5395 | $as_echo "$as_val"'` | |
5396 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5397 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5398 | |
ad6254c5 | 5399 | fi |
ec6a6fbe AK |
5400 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5401 | $as_echo "$as_val"'` | |
5402 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5403 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5404 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5405 | _ACEOF |
5406 | ||
80992638 AK |
5407 | fi |
5408 | ||
ad6254c5 | 5409 | done |
d0191583 | 5410 | |
d3c8211f | 5411 | |
80992638 | 5412 | ################################################################################ |
ec6a6fbe AK |
5413 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5414 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5415 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5416 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5417 | else |
ad6254c5 | 5418 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5419 | /* confdefs.h. */ |
5420 | _ACEOF | |
5421 | cat confdefs.h >>conftest.$ac_ext | |
5422 | cat >>conftest.$ac_ext <<_ACEOF | |
5423 | /* end confdefs.h. */ | |
5424 | ||
5425 | int | |
5426 | main () | |
5427 | { | |
5428 | /* FIXME: Include the comments suggested by Paul. */ | |
5429 | #ifndef __cplusplus | |
5430 | /* Ultrix mips cc rejects this. */ | |
5431 | typedef int charset[2]; | |
25fbec5b | 5432 | const charset cs; |
ad6254c5 | 5433 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5434 | char const *const *pcpcc; |
5435 | char **ppc; | |
ad6254c5 AK |
5436 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5437 | struct point {int x, y;}; | |
5438 | static struct point const zero = {0,0}; | |
5439 | /* AIX XL C 1.02.0.0 rejects this. | |
5440 | It does not let you subtract one const X* pointer from another in | |
5441 | an arm of an if-expression whose if-part is not a constant | |
5442 | expression */ | |
5443 | const char *g = "string"; | |
25fbec5b | 5444 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5445 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5446 | ++pcpcc; |
5447 | ppc = (char**) pcpcc; | |
5448 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5449 | { /* SCO 3.2v4 cc rejects this. */ |
5450 | char *t; | |
5451 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5452 | ||
5453 | *t++ = 0; | |
7a197a62 | 5454 | if (s) return 0; |
ad6254c5 AK |
5455 | } |
5456 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5457 | int x[] = {25, 17}; | |
5458 | const int *foo = &x[0]; | |
5459 | ++foo; | |
5460 | } | |
5461 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5462 | typedef const int *iptr; | |
5463 | iptr p = 0; | |
5464 | ++p; | |
5465 | } | |
5466 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5467 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5468 | struct s { int j; const int *ap[3]; }; | |
5469 | struct s *b; b->j = 5; | |
5470 | } | |
5471 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5472 | const int foo = 10; | |
7a197a62 | 5473 | if (!foo) return 0; |
ad6254c5 | 5474 | } |
25fbec5b | 5475 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5476 | #endif |
5477 | ||
5478 | ; | |
5479 | return 0; | |
5480 | } | |
5481 | _ACEOF | |
5482 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5483 | if { (ac_try="$ac_compile" |
5484 | case "(($ac_try" in | |
5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5486 | *) ac_try_echo=$ac_try;; | |
5487 | esac | |
ec6a6fbe AK |
5488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5489 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5490 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5491 | ac_status=$? |
8a2fc586 AK |
5492 | grep -v '^ *+' conftest.er1 >conftest.err |
5493 | rm -f conftest.er1 | |
5494 | cat conftest.err >&5 | |
ec6a6fbe | 5495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5496 | (exit $ac_status); } && { |
5497 | test -z "$ac_c_werror_flag" || | |
5498 | test ! -s conftest.err | |
5499 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5500 | ac_cv_c_const=yes |
5501 | else | |
ec6a6fbe | 5502 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5503 | sed 's/^/| /' conftest.$ac_ext >&5 |
5504 | ||
7a197a62 | 5505 | ac_cv_c_const=no |
ad6254c5 | 5506 | fi |
7a197a62 AK |
5507 | |
5508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5509 | fi |
ec6a6fbe AK |
5510 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5511 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5512 | if test $ac_cv_c_const = no; then |
80992638 | 5513 | |
ad6254c5 | 5514 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5515 | #define const /**/ |
ad6254c5 | 5516 | _ACEOF |
80992638 | 5517 | |
d3c8211f | 5518 | fi |
d3c8211f | 5519 | |
ec6a6fbe AK |
5520 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5521 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5522 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5523 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5524 | else |
ad6254c5 AK |
5525 | ac_cv_c_inline=no |
5526 | for ac_kw in inline __inline__ __inline; do | |
5527 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5528 | /* confdefs.h. */ |
5529 | _ACEOF | |
5530 | cat confdefs.h >>conftest.$ac_ext | |
5531 | cat >>conftest.$ac_ext <<_ACEOF | |
5532 | /* end confdefs.h. */ | |
5533 | #ifndef __cplusplus | |
5534 | typedef int foo_t; | |
5535 | static $ac_kw foo_t static_foo () {return 0; } | |
5536 | $ac_kw foo_t foo () {return 0; } | |
5537 | #endif | |
80992638 | 5538 | |
ad6254c5 AK |
5539 | _ACEOF |
5540 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5541 | if { (ac_try="$ac_compile" |
5542 | case "(($ac_try" in | |
5543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5544 | *) ac_try_echo=$ac_try;; | |
5545 | esac | |
ec6a6fbe AK |
5546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5547 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5548 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5549 | ac_status=$? |
8a2fc586 AK |
5550 | grep -v '^ *+' conftest.er1 >conftest.err |
5551 | rm -f conftest.er1 | |
5552 | cat conftest.err >&5 | |
ec6a6fbe | 5553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5554 | (exit $ac_status); } && { |
5555 | test -z "$ac_c_werror_flag" || | |
5556 | test ! -s conftest.err | |
5557 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5558 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5559 | else |
ec6a6fbe | 5560 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5561 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5562 | |
7a197a62 | 5563 | |
8ce0cbda | 5564 | fi |
7a197a62 AK |
5565 | |
5566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5567 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5568 | done |
8ce0cbda | 5569 | |
8ce0cbda | 5570 | fi |
ec6a6fbe AK |
5571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5572 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5573 | |
5574 | ||
ad6254c5 AK |
5575 | case $ac_cv_c_inline in |
5576 | inline | yes) ;; | |
8a2fc586 AK |
5577 | *) |
5578 | case $ac_cv_c_inline in | |
5579 | no) ac_val=;; | |
5580 | *) ac_val=$ac_cv_c_inline;; | |
5581 | esac | |
5582 | cat >>confdefs.h <<_ACEOF | |
5583 | #ifndef __cplusplus | |
5584 | #define inline $ac_val | |
5585 | #endif | |
c1c065a3 | 5586 | _ACEOF |
d0191583 JM |
5587 | ;; |
5588 | esac | |
5589 | ||
ec6a6fbe AK |
5590 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5591 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5592 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5593 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5594 | else |
5595 | cat >conftest.$ac_ext <<_ACEOF | |
5596 | /* confdefs.h. */ | |
5597 | _ACEOF | |
5598 | cat confdefs.h >>conftest.$ac_ext | |
5599 | cat >>conftest.$ac_ext <<_ACEOF | |
5600 | /* end confdefs.h. */ | |
5601 | $ac_includes_default | |
5602 | int | |
5603 | main () | |
5604 | { | |
5605 | static struct stat ac_aggr; | |
5606 | if (ac_aggr.st_rdev) | |
5607 | return 0; | |
5608 | ; | |
5609 | return 0; | |
5610 | } | |
5611 | _ACEOF | |
5612 | rm -f conftest.$ac_objext | |
5613 | if { (ac_try="$ac_compile" | |
5614 | case "(($ac_try" in | |
5615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5616 | *) ac_try_echo=$ac_try;; | |
5617 | esac | |
ec6a6fbe AK |
5618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5619 | $as_echo "$ac_try_echo") >&5 | |
5620 | (eval "$ac_compile") 2>conftest.er1 | |
5621 | ac_status=$? | |
5622 | grep -v '^ *+' conftest.er1 >conftest.err | |
5623 | rm -f conftest.er1 | |
5624 | cat conftest.err >&5 | |
5625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5626 | (exit $ac_status); } && { | |
5627 | test -z "$ac_c_werror_flag" || | |
5628 | test ! -s conftest.err | |
5629 | } && test -s conftest.$ac_objext; then | |
5630 | ac_cv_member_struct_stat_st_rdev=yes | |
5631 | else | |
5632 | $as_echo "$as_me: failed program was:" >&5 | |
5633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5634 | ||
5635 | cat >conftest.$ac_ext <<_ACEOF | |
5636 | /* confdefs.h. */ | |
5637 | _ACEOF | |
5638 | cat confdefs.h >>conftest.$ac_ext | |
5639 | cat >>conftest.$ac_ext <<_ACEOF | |
5640 | /* end confdefs.h. */ | |
5641 | $ac_includes_default | |
5642 | int | |
5643 | main () | |
5644 | { | |
5645 | static struct stat ac_aggr; | |
5646 | if (sizeof ac_aggr.st_rdev) | |
5647 | return 0; | |
5648 | ; | |
5649 | return 0; | |
5650 | } | |
5651 | _ACEOF | |
5652 | rm -f conftest.$ac_objext | |
5653 | if { (ac_try="$ac_compile" | |
5654 | case "(($ac_try" in | |
5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5656 | *) ac_try_echo=$ac_try;; | |
5657 | esac | |
5658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5659 | $as_echo "$ac_try_echo") >&5 | |
5660 | (eval "$ac_compile") 2>conftest.er1 | |
5661 | ac_status=$? | |
5662 | grep -v '^ *+' conftest.er1 >conftest.err | |
5663 | rm -f conftest.er1 | |
5664 | cat conftest.err >&5 | |
5665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5666 | (exit $ac_status); } && { | |
5667 | test -z "$ac_c_werror_flag" || | |
5668 | test ! -s conftest.err | |
5669 | } && test -s conftest.$ac_objext; then | |
5670 | ac_cv_member_struct_stat_st_rdev=yes | |
5671 | else | |
5672 | $as_echo "$as_me: failed program was:" >&5 | |
5673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5674 | ||
5675 | ac_cv_member_struct_stat_st_rdev=no | |
5676 | fi | |
5677 | ||
5678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5679 | fi | |
5680 | ||
5681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5682 | fi | |
5683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5684 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5685 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5686 | ||
5687 | cat >>confdefs.h <<_ACEOF | |
5688 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5689 | _ACEOF | |
5690 | ||
5691 | ||
5692 | fi | |
5693 | ||
5694 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5695 | $as_echo_n "checking for off_t... " >&6; } | |
5696 | if test "${ac_cv_type_off_t+set}" = set; then | |
5697 | $as_echo_n "(cached) " >&6 | |
5698 | else | |
5699 | ac_cv_type_off_t=no | |
5700 | cat >conftest.$ac_ext <<_ACEOF | |
5701 | /* confdefs.h. */ | |
5702 | _ACEOF | |
5703 | cat confdefs.h >>conftest.$ac_ext | |
5704 | cat >>conftest.$ac_ext <<_ACEOF | |
5705 | /* end confdefs.h. */ | |
5706 | $ac_includes_default | |
5707 | int | |
5708 | main () | |
5709 | { | |
5710 | if (sizeof (off_t)) | |
5711 | return 0; | |
5712 | ; | |
5713 | return 0; | |
5714 | } | |
5715 | _ACEOF | |
5716 | rm -f conftest.$ac_objext | |
5717 | if { (ac_try="$ac_compile" | |
5718 | case "(($ac_try" in | |
5719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5720 | *) ac_try_echo=$ac_try;; | |
5721 | esac | |
5722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5723 | $as_echo "$ac_try_echo") >&5 | |
5724 | (eval "$ac_compile") 2>conftest.er1 | |
5725 | ac_status=$? | |
5726 | grep -v '^ *+' conftest.er1 >conftest.err | |
5727 | rm -f conftest.er1 | |
5728 | cat conftest.err >&5 | |
5729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5730 | (exit $ac_status); } && { | |
5731 | test -z "$ac_c_werror_flag" || | |
5732 | test ! -s conftest.err | |
5733 | } && test -s conftest.$ac_objext; then | |
5734 | cat >conftest.$ac_ext <<_ACEOF | |
5735 | /* confdefs.h. */ | |
5736 | _ACEOF | |
5737 | cat confdefs.h >>conftest.$ac_ext | |
5738 | cat >>conftest.$ac_ext <<_ACEOF | |
5739 | /* end confdefs.h. */ | |
5740 | $ac_includes_default | |
5741 | int | |
5742 | main () | |
5743 | { | |
5744 | if (sizeof ((off_t))) | |
5745 | return 0; | |
5746 | ; | |
5747 | return 0; | |
5748 | } | |
5749 | _ACEOF | |
5750 | rm -f conftest.$ac_objext | |
5751 | if { (ac_try="$ac_compile" | |
5752 | case "(($ac_try" in | |
5753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5754 | *) ac_try_echo=$ac_try;; | |
5755 | esac | |
5756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5757 | $as_echo "$ac_try_echo") >&5 | |
5758 | (eval "$ac_compile") 2>conftest.er1 | |
5759 | ac_status=$? | |
5760 | grep -v '^ *+' conftest.er1 >conftest.err | |
5761 | rm -f conftest.er1 | |
5762 | cat conftest.err >&5 | |
5763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5764 | (exit $ac_status); } && { | |
5765 | test -z "$ac_c_werror_flag" || | |
5766 | test ! -s conftest.err | |
5767 | } && test -s conftest.$ac_objext; then | |
5768 | : | |
5769 | else | |
5770 | $as_echo "$as_me: failed program was:" >&5 | |
5771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5772 | ||
5773 | ac_cv_type_off_t=yes | |
5774 | fi | |
5775 | ||
5776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5777 | else | |
5778 | $as_echo "$as_me: failed program was:" >&5 | |
5779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5780 | ||
5781 | ||
5782 | fi | |
5783 | ||
5784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5785 | fi | |
5786 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5787 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5788 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5789 | : | |
5790 | else | |
5791 | ||
5792 | cat >>confdefs.h <<_ACEOF | |
5793 | #define off_t long int | |
5794 | _ACEOF | |
5795 | ||
5796 | fi | |
5797 | ||
5798 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5799 | $as_echo_n "checking for pid_t... " >&6; } | |
5800 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5801 | $as_echo_n "(cached) " >&6 | |
5802 | else | |
5803 | ac_cv_type_pid_t=no | |
5804 | cat >conftest.$ac_ext <<_ACEOF | |
5805 | /* confdefs.h. */ | |
5806 | _ACEOF | |
5807 | cat confdefs.h >>conftest.$ac_ext | |
5808 | cat >>conftest.$ac_ext <<_ACEOF | |
5809 | /* end confdefs.h. */ | |
5810 | $ac_includes_default | |
5811 | int | |
5812 | main () | |
5813 | { | |
5814 | if (sizeof (pid_t)) | |
5815 | return 0; | |
5816 | ; | |
5817 | return 0; | |
5818 | } | |
5819 | _ACEOF | |
5820 | rm -f conftest.$ac_objext | |
5821 | if { (ac_try="$ac_compile" | |
5822 | case "(($ac_try" in | |
5823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5824 | *) ac_try_echo=$ac_try;; | |
5825 | esac | |
5826 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5827 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5828 | (eval "$ac_compile") 2>conftest.er1 |
5829 | ac_status=$? | |
5830 | grep -v '^ *+' conftest.er1 >conftest.err | |
5831 | rm -f conftest.er1 | |
5832 | cat conftest.err >&5 | |
ec6a6fbe | 5833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5834 | (exit $ac_status); } && { |
5835 | test -z "$ac_c_werror_flag" || | |
5836 | test ! -s conftest.err | |
5837 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5838 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5839 | /* confdefs.h. */ |
5840 | _ACEOF | |
5841 | cat confdefs.h >>conftest.$ac_ext | |
5842 | cat >>conftest.$ac_ext <<_ACEOF | |
5843 | /* end confdefs.h. */ | |
5844 | $ac_includes_default | |
5845 | int | |
5846 | main () | |
5847 | { | |
ec6a6fbe AK |
5848 | if (sizeof ((pid_t))) |
5849 | return 0; | |
d0191583 JM |
5850 | ; |
5851 | return 0; | |
5852 | } | |
5853 | _ACEOF | |
5854 | rm -f conftest.$ac_objext | |
5855 | if { (ac_try="$ac_compile" | |
5856 | case "(($ac_try" in | |
5857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5858 | *) ac_try_echo=$ac_try;; | |
5859 | esac | |
ec6a6fbe AK |
5860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5861 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5862 | (eval "$ac_compile") 2>conftest.er1 |
5863 | ac_status=$? | |
5864 | grep -v '^ *+' conftest.er1 >conftest.err | |
5865 | rm -f conftest.er1 | |
5866 | cat conftest.err >&5 | |
ec6a6fbe | 5867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5868 | (exit $ac_status); } && { |
5869 | test -z "$ac_c_werror_flag" || | |
5870 | test ! -s conftest.err | |
5871 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5872 | : |
d0191583 | 5873 | else |
ec6a6fbe | 5874 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5875 | sed 's/^/| /' conftest.$ac_ext >&5 |
5876 | ||
ec6a6fbe | 5877 | ac_cv_type_pid_t=yes |
d0191583 JM |
5878 | fi |
5879 | ||
5880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5881 | else |
5882 | $as_echo "$as_me: failed program was:" >&5 | |
5883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5884 | ||
5885 | ||
d0191583 JM |
5886 | fi |
5887 | ||
5888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5889 | fi | |
ec6a6fbe AK |
5890 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5891 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5892 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5893 | : | |
5894 | else | |
d0191583 JM |
5895 | |
5896 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5897 | #define pid_t int |
d0191583 JM |
5898 | _ACEOF |
5899 | ||
d0191583 | 5900 | fi |
8ce0cbda | 5901 | |
ec6a6fbe AK |
5902 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5903 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5904 | if test "${ac_cv_type_signal+set}" = set; then | |
5905 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5906 | else |
b145d876 ZK |
5907 | cat >conftest.$ac_ext <<_ACEOF |
5908 | /* confdefs.h. */ | |
5909 | _ACEOF | |
5910 | cat confdefs.h >>conftest.$ac_ext | |
5911 | cat >>conftest.$ac_ext <<_ACEOF | |
5912 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5913 | #include <sys/types.h> |
5914 | #include <signal.h> | |
5915 | ||
b145d876 ZK |
5916 | int |
5917 | main () | |
5918 | { | |
ec6a6fbe | 5919 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5920 | ; |
5921 | return 0; | |
5922 | } | |
5923 | _ACEOF | |
5924 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5925 | if { (ac_try="$ac_compile" |
5926 | case "(($ac_try" in | |
5927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5928 | *) ac_try_echo=$ac_try;; | |
5929 | esac | |
ec6a6fbe AK |
5930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5931 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5932 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5933 | ac_status=$? |
8a2fc586 AK |
5934 | grep -v '^ *+' conftest.er1 >conftest.err |
5935 | rm -f conftest.er1 | |
5936 | cat conftest.err >&5 | |
ec6a6fbe | 5937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5938 | (exit $ac_status); } && { |
5939 | test -z "$ac_c_werror_flag" || | |
5940 | test ! -s conftest.err | |
5941 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5942 | ac_cv_type_signal=int |
b145d876 | 5943 | else |
ec6a6fbe | 5944 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5945 | sed 's/^/| /' conftest.$ac_ext >&5 |
5946 | ||
ec6a6fbe | 5947 | ac_cv_type_signal=void |
ad6254c5 | 5948 | fi |
b145d876 ZK |
5949 | |
5950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5951 | fi | |
ec6a6fbe AK |
5952 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5953 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 5954 | |
ad6254c5 | 5955 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5956 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 5957 | _ACEOF |
199e490e | 5958 | |
b896caa1 | 5959 | |
ec6a6fbe AK |
5960 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5961 | $as_echo_n "checking for size_t... " >&6; } | |
5962 | if test "${ac_cv_type_size_t+set}" = set; then | |
5963 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5964 | else |
ec6a6fbe AK |
5965 | ac_cv_type_size_t=no |
5966 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
5967 | /* confdefs.h. */ |
5968 | _ACEOF | |
5969 | cat confdefs.h >>conftest.$ac_ext | |
5970 | cat >>conftest.$ac_ext <<_ACEOF | |
5971 | /* end confdefs.h. */ | |
5972 | $ac_includes_default | |
5973 | int | |
5974 | main () | |
5975 | { | |
ec6a6fbe AK |
5976 | if (sizeof (size_t)) |
5977 | return 0; | |
ad6254c5 AK |
5978 | ; |
5979 | return 0; | |
5980 | } | |
5981 | _ACEOF | |
5982 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5983 | if { (ac_try="$ac_compile" |
5984 | case "(($ac_try" in | |
5985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5986 | *) ac_try_echo=$ac_try;; | |
5987 | esac | |
ec6a6fbe AK |
5988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5989 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5990 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5991 | ac_status=$? |
8a2fc586 AK |
5992 | grep -v '^ *+' conftest.er1 >conftest.err |
5993 | rm -f conftest.er1 | |
5994 | cat conftest.err >&5 | |
ec6a6fbe | 5995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5996 | (exit $ac_status); } && { |
5997 | test -z "$ac_c_werror_flag" || | |
5998 | test ! -s conftest.err | |
5999 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6000 | cat >conftest.$ac_ext <<_ACEOF |
6001 | /* confdefs.h. */ | |
6002 | _ACEOF | |
6003 | cat confdefs.h >>conftest.$ac_ext | |
6004 | cat >>conftest.$ac_ext <<_ACEOF | |
6005 | /* end confdefs.h. */ | |
ec6a6fbe | 6006 | $ac_includes_default |
d0191583 JM |
6007 | int |
6008 | main () | |
6009 | { | |
ec6a6fbe AK |
6010 | if (sizeof ((size_t))) |
6011 | return 0; | |
d0191583 JM |
6012 | ; |
6013 | return 0; | |
6014 | } | |
6015 | _ACEOF | |
6016 | rm -f conftest.$ac_objext | |
6017 | if { (ac_try="$ac_compile" | |
6018 | case "(($ac_try" in | |
6019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6020 | *) ac_try_echo=$ac_try;; | |
6021 | esac | |
ec6a6fbe AK |
6022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6023 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6024 | (eval "$ac_compile") 2>conftest.er1 |
6025 | ac_status=$? | |
6026 | grep -v '^ *+' conftest.er1 >conftest.err | |
6027 | rm -f conftest.er1 | |
6028 | cat conftest.err >&5 | |
ec6a6fbe | 6029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6030 | (exit $ac_status); } && { |
6031 | test -z "$ac_c_werror_flag" || | |
6032 | test ! -s conftest.err | |
6033 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6034 | : |
d0191583 | 6035 | else |
ec6a6fbe | 6036 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6037 | sed 's/^/| /' conftest.$ac_ext >&5 |
6038 | ||
ec6a6fbe AK |
6039 | ac_cv_type_size_t=yes |
6040 | fi | |
6041 | ||
6042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6043 | else | |
6044 | $as_echo "$as_me: failed program was:" >&5 | |
6045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6046 | ||
6047 | ||
d0191583 JM |
6048 | fi |
6049 | ||
6050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6051 | fi | |
ec6a6fbe AK |
6052 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6053 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6054 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6055 | : | |
6056 | else | |
d0191583 JM |
6057 | |
6058 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6059 | #define size_t unsigned int |
d0191583 JM |
6060 | _ACEOF |
6061 | ||
ec6a6fbe | 6062 | fi |
d0191583 | 6063 | |
ec6a6fbe AK |
6064 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6065 | $as_echo_n "checking for mode_t... " >&6; } | |
6066 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6067 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6068 | else |
ec6a6fbe AK |
6069 | ac_cv_type_mode_t=no |
6070 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6071 | /* confdefs.h. */ |
6072 | _ACEOF | |
6073 | cat confdefs.h >>conftest.$ac_ext | |
6074 | cat >>conftest.$ac_ext <<_ACEOF | |
6075 | /* end confdefs.h. */ | |
6076 | $ac_includes_default | |
6077 | int | |
6078 | main () | |
6079 | { | |
ec6a6fbe AK |
6080 | if (sizeof (mode_t)) |
6081 | return 0; | |
ad6254c5 AK |
6082 | ; |
6083 | return 0; | |
6084 | } | |
6085 | _ACEOF | |
6086 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6087 | if { (ac_try="$ac_compile" |
6088 | case "(($ac_try" in | |
6089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6090 | *) ac_try_echo=$ac_try;; | |
6091 | esac | |
ec6a6fbe AK |
6092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6093 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6094 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6095 | ac_status=$? |
8a2fc586 AK |
6096 | grep -v '^ *+' conftest.er1 >conftest.err |
6097 | rm -f conftest.er1 | |
6098 | cat conftest.err >&5 | |
ec6a6fbe | 6099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6100 | (exit $ac_status); } && { |
6101 | test -z "$ac_c_werror_flag" || | |
6102 | test ! -s conftest.err | |
6103 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6104 | cat >conftest.$ac_ext <<_ACEOF |
6105 | /* confdefs.h. */ | |
6106 | _ACEOF | |
6107 | cat confdefs.h >>conftest.$ac_ext | |
6108 | cat >>conftest.$ac_ext <<_ACEOF | |
6109 | /* end confdefs.h. */ | |
6110 | $ac_includes_default | |
6111 | int | |
6112 | main () | |
6113 | { | |
ec6a6fbe AK |
6114 | if (sizeof ((mode_t))) |
6115 | return 0; | |
ad6254c5 AK |
6116 | ; |
6117 | return 0; | |
6118 | } | |
6119 | _ACEOF | |
6120 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6121 | if { (ac_try="$ac_compile" |
6122 | case "(($ac_try" in | |
6123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6124 | *) ac_try_echo=$ac_try;; | |
6125 | esac | |
ec6a6fbe AK |
6126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6127 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6128 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6129 | ac_status=$? |
8a2fc586 AK |
6130 | grep -v '^ *+' conftest.er1 >conftest.err |
6131 | rm -f conftest.er1 | |
6132 | cat conftest.err >&5 | |
ec6a6fbe | 6133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6134 | (exit $ac_status); } && { |
6135 | test -z "$ac_c_werror_flag" || | |
6136 | test ! -s conftest.err | |
6137 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6138 | : |
6139 | else | |
6140 | $as_echo "$as_me: failed program was:" >&5 | |
6141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6142 | ||
6143 | ac_cv_type_mode_t=yes | |
6144 | fi | |
6145 | ||
6146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6147 | else |
ec6a6fbe | 6148 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6149 | sed 's/^/| /' conftest.$ac_ext >&5 |
6150 | ||
ec6a6fbe | 6151 | |
80992638 | 6152 | fi |
7a197a62 AK |
6153 | |
6154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6155 | fi |
ec6a6fbe AK |
6156 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6157 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6158 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6159 | : |
6160 | else | |
80992638 | 6161 | |
ad6254c5 AK |
6162 | cat >>confdefs.h <<_ACEOF |
6163 | #define mode_t int | |
6164 | _ACEOF | |
6165 | ||
6166 | fi | |
6167 | ||
ec6a6fbe AK |
6168 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6169 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6170 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6171 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6172 | else |
6173 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6174 | /* confdefs.h. */ |
6175 | _ACEOF | |
6176 | cat confdefs.h >>conftest.$ac_ext | |
6177 | cat >>conftest.$ac_ext <<_ACEOF | |
6178 | /* end confdefs.h. */ | |
6179 | $ac_includes_default | |
6180 | int | |
6181 | main () | |
6182 | { | |
6183 | static struct stat ac_aggr; | |
6184 | if (ac_aggr.st_rdev) | |
6185 | return 0; | |
6186 | ; | |
6187 | return 0; | |
6188 | } | |
6189 | _ACEOF | |
6190 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6191 | if { (ac_try="$ac_compile" |
6192 | case "(($ac_try" in | |
6193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6194 | *) ac_try_echo=$ac_try;; | |
6195 | esac | |
ec6a6fbe AK |
6196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6197 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6198 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6199 | ac_status=$? |
8a2fc586 AK |
6200 | grep -v '^ *+' conftest.er1 >conftest.err |
6201 | rm -f conftest.er1 | |
6202 | cat conftest.err >&5 | |
ec6a6fbe | 6203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6204 | (exit $ac_status); } && { |
6205 | test -z "$ac_c_werror_flag" || | |
6206 | test ! -s conftest.err | |
6207 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6208 | ac_cv_member_struct_stat_st_rdev=yes |
6209 | else | |
ec6a6fbe | 6210 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6211 | sed 's/^/| /' conftest.$ac_ext >&5 |
6212 | ||
7a197a62 | 6213 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6214 | /* confdefs.h. */ |
6215 | _ACEOF | |
6216 | cat confdefs.h >>conftest.$ac_ext | |
6217 | cat >>conftest.$ac_ext <<_ACEOF | |
6218 | /* end confdefs.h. */ | |
6219 | $ac_includes_default | |
6220 | int | |
6221 | main () | |
6222 | { | |
6223 | static struct stat ac_aggr; | |
6224 | if (sizeof ac_aggr.st_rdev) | |
6225 | return 0; | |
6226 | ; | |
6227 | return 0; | |
6228 | } | |
6229 | _ACEOF | |
6230 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6231 | if { (ac_try="$ac_compile" |
6232 | case "(($ac_try" in | |
6233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6234 | *) ac_try_echo=$ac_try;; | |
6235 | esac | |
ec6a6fbe AK |
6236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6237 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6238 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6239 | ac_status=$? |
8a2fc586 AK |
6240 | grep -v '^ *+' conftest.er1 >conftest.err |
6241 | rm -f conftest.er1 | |
6242 | cat conftest.err >&5 | |
ec6a6fbe | 6243 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6244 | (exit $ac_status); } && { |
6245 | test -z "$ac_c_werror_flag" || | |
6246 | test ! -s conftest.err | |
6247 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6248 | ac_cv_member_struct_stat_st_rdev=yes |
6249 | else | |
ec6a6fbe | 6250 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6251 | sed 's/^/| /' conftest.$ac_ext >&5 |
6252 | ||
7a197a62 | 6253 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6254 | fi |
7a197a62 AK |
6255 | |
6256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6257 | fi |
7a197a62 AK |
6258 | |
6259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6260 | fi |
ec6a6fbe AK |
6261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6262 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6263 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6264 | |
6265 | cat >>confdefs.h <<_ACEOF | |
6266 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6267 | _ACEOF | |
6268 | ||
6269 | ||
ad6254c5 AK |
6270 | fi |
6271 | ||
ec6a6fbe AK |
6272 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6273 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6274 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6275 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6276 | else |
6277 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6278 | /* confdefs.h. */ |
6279 | _ACEOF | |
6280 | cat confdefs.h >>conftest.$ac_ext | |
6281 | cat >>conftest.$ac_ext <<_ACEOF | |
6282 | /* end confdefs.h. */ | |
6283 | #include <sys/types.h> | |
6284 | #include <time.h> | |
6285 | ||
6286 | int | |
6287 | main () | |
6288 | { | |
25fbec5b AK |
6289 | struct tm tm; |
6290 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6291 | return !p; |
ad6254c5 AK |
6292 | ; |
6293 | return 0; | |
6294 | } | |
6295 | _ACEOF | |
6296 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6297 | if { (ac_try="$ac_compile" |
6298 | case "(($ac_try" in | |
6299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6300 | *) ac_try_echo=$ac_try;; | |
6301 | esac | |
ec6a6fbe AK |
6302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6303 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6304 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6305 | ac_status=$? |
8a2fc586 AK |
6306 | grep -v '^ *+' conftest.er1 >conftest.err |
6307 | rm -f conftest.er1 | |
6308 | cat conftest.err >&5 | |
ec6a6fbe | 6309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6310 | (exit $ac_status); } && { |
6311 | test -z "$ac_c_werror_flag" || | |
6312 | test ! -s conftest.err | |
6313 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6314 | ac_cv_struct_tm=time.h |
6315 | else | |
ec6a6fbe | 6316 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6317 | sed 's/^/| /' conftest.$ac_ext >&5 |
6318 | ||
7a197a62 | 6319 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6320 | fi |
7a197a62 AK |
6321 | |
6322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6323 | fi |
ec6a6fbe AK |
6324 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6325 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6326 | if test $ac_cv_struct_tm = sys/time.h; then |
6327 | ||
6328 | cat >>confdefs.h <<\_ACEOF | |
6329 | #define TM_IN_SYS_TIME 1 | |
6330 | _ACEOF | |
6331 | ||
6332 | fi | |
809fae91 | 6333 | |
795ca3e5 | 6334 | |
80992638 | 6335 | ################################################################################ |
ad6254c5 AK |
6336 | |
6337 | ||
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | ||
d0191583 JM |
6350 | |
6351 | ||
6352 | ||
6353 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6354 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6355 | uname | |
ad6254c5 | 6356 | do |
ec6a6fbe AK |
6357 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6358 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6359 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6360 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6361 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6362 | else |
ad6254c5 | 6363 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6364 | /* confdefs.h. */ |
6365 | _ACEOF | |
6366 | cat confdefs.h >>conftest.$ac_ext | |
6367 | cat >>conftest.$ac_ext <<_ACEOF | |
6368 | /* end confdefs.h. */ | |
8a2fc586 AK |
6369 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6370 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6371 | #define $ac_func innocuous_$ac_func | |
6372 | ||
ad6254c5 AK |
6373 | /* System header to define __stub macros and hopefully few prototypes, |
6374 | which can conflict with char $ac_func (); below. | |
6375 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6376 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6377 | |
ad6254c5 AK |
6378 | #ifdef __STDC__ |
6379 | # include <limits.h> | |
6380 | #else | |
6381 | # include <assert.h> | |
6382 | #endif | |
8a2fc586 AK |
6383 | |
6384 | #undef $ac_func | |
6385 | ||
7a197a62 AK |
6386 | /* Override any GCC internal prototype to avoid an error. |
6387 | Use char because int might match the return type of a GCC | |
6388 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6389 | #ifdef __cplusplus |
6390 | extern "C" | |
ad6254c5 | 6391 | #endif |
ad6254c5 AK |
6392 | char $ac_func (); |
6393 | /* The GNU C library defines this for functions which it implements | |
6394 | to always fail with ENOSYS. Some functions are actually named | |
6395 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6396 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6397 | choke me |
ad6254c5 AK |
6398 | #endif |
6399 | ||
6400 | int | |
6401 | main () | |
6402 | { | |
7a197a62 | 6403 | return $ac_func (); |
ad6254c5 AK |
6404 | ; |
6405 | return 0; | |
6406 | } | |
6407 | _ACEOF | |
6408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6409 | if { (ac_try="$ac_link" |
6410 | case "(($ac_try" in | |
6411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6412 | *) ac_try_echo=$ac_try;; | |
6413 | esac | |
ec6a6fbe AK |
6414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6415 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6416 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6417 | ac_status=$? |
8a2fc586 AK |
6418 | grep -v '^ *+' conftest.er1 >conftest.err |
6419 | rm -f conftest.er1 | |
6420 | cat conftest.err >&5 | |
ec6a6fbe | 6421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6422 | (exit $ac_status); } && { |
6423 | test -z "$ac_c_werror_flag" || | |
6424 | test ! -s conftest.err | |
ec6a6fbe AK |
6425 | } && test -s conftest$ac_exeext && { |
6426 | test "$cross_compiling" = yes || | |
6427 | $as_test_x conftest$ac_exeext | |
6428 | }; then | |
fc54be10 AK |
6429 | eval "$as_ac_var=yes" |
6430 | else | |
ec6a6fbe | 6431 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6432 | sed 's/^/| /' conftest.$ac_ext >&5 |
6433 | ||
6434 | eval "$as_ac_var=no" | |
6435 | fi | |
6436 | ||
ec6a6fbe | 6437 | rm -rf conftest.dSYM |
25fbec5b | 6438 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6439 | conftest$ac_exeext conftest.$ac_ext |
6440 | fi | |
ec6a6fbe AK |
6441 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6442 | $as_echo "$as_val"'` | |
6443 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6444 | $as_echo "$ac_res" >&6; } | |
6445 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6446 | $as_echo "$as_val"'` | |
6447 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6448 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6449 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6450 | _ACEOF |
6451 | ||
6452 | else | |
ec6a6fbe AK |
6453 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6454 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6455 | { (exit 1); exit 1; }; } |
6456 | fi | |
6457 | done | |
795ca3e5 | 6458 | |
ad6254c5 AK |
6459 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6460 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6461 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6462 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6463 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6464 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6465 | else |
6466 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6467 | /* confdefs.h. */ |
6468 | _ACEOF | |
6469 | cat confdefs.h >>conftest.$ac_ext | |
6470 | cat >>conftest.$ac_ext <<_ACEOF | |
6471 | /* end confdefs.h. */ | |
6472 | #include <alloca.h> | |
6473 | int | |
6474 | main () | |
6475 | { | |
6476 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6477 | if (p) return 0; |
ad6254c5 AK |
6478 | ; |
6479 | return 0; | |
6480 | } | |
6481 | _ACEOF | |
6482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6483 | if { (ac_try="$ac_link" |
6484 | case "(($ac_try" in | |
6485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6486 | *) ac_try_echo=$ac_try;; | |
6487 | esac | |
ec6a6fbe AK |
6488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6489 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6490 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6491 | ac_status=$? |
8a2fc586 AK |
6492 | grep -v '^ *+' conftest.er1 >conftest.err |
6493 | rm -f conftest.er1 | |
6494 | cat conftest.err >&5 | |
ec6a6fbe | 6495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6496 | (exit $ac_status); } && { |
6497 | test -z "$ac_c_werror_flag" || | |
6498 | test ! -s conftest.err | |
ec6a6fbe AK |
6499 | } && test -s conftest$ac_exeext && { |
6500 | test "$cross_compiling" = yes || | |
6501 | $as_test_x conftest$ac_exeext | |
6502 | }; then | |
ad6254c5 AK |
6503 | ac_cv_working_alloca_h=yes |
6504 | else | |
ec6a6fbe | 6505 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6506 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6507 | |
7a197a62 | 6508 | ac_cv_working_alloca_h=no |
ad6254c5 | 6509 | fi |
7a197a62 | 6510 | |
ec6a6fbe | 6511 | rm -rf conftest.dSYM |
25fbec5b | 6512 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6513 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6514 | fi |
ec6a6fbe AK |
6515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6516 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6517 | if test $ac_cv_working_alloca_h = yes; then |
6518 | ||
6519 | cat >>confdefs.h <<\_ACEOF | |
6520 | #define HAVE_ALLOCA_H 1 | |
6521 | _ACEOF | |
6522 | ||
6523 | fi | |
6524 | ||
ec6a6fbe AK |
6525 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6526 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6527 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6528 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6529 | else |
6530 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6531 | /* confdefs.h. */ |
6532 | _ACEOF | |
6533 | cat confdefs.h >>conftest.$ac_ext | |
6534 | cat >>conftest.$ac_ext <<_ACEOF | |
6535 | /* end confdefs.h. */ | |
6536 | #ifdef __GNUC__ | |
6537 | # define alloca __builtin_alloca | |
6538 | #else | |
6539 | # ifdef _MSC_VER | |
6540 | # include <malloc.h> | |
6541 | # define alloca _alloca | |
6542 | # else | |
25fbec5b | 6543 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6544 | # include <alloca.h> |
6545 | # else | |
6546 | # ifdef _AIX | |
6547 | #pragma alloca | |
6548 | # else | |
6549 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6550 | char *alloca (); | |
6551 | # endif | |
6552 | # endif | |
6553 | # endif | |
6554 | # endif | |
6555 | #endif | |
6556 | ||
6557 | int | |
6558 | main () | |
6559 | { | |
6560 | char *p = (char *) alloca (1); | |
7a197a62 | 6561 | if (p) return 0; |
ad6254c5 AK |
6562 | ; |
6563 | return 0; | |
6564 | } | |
6565 | _ACEOF | |
6566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6567 | if { (ac_try="$ac_link" |
6568 | case "(($ac_try" in | |
6569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6570 | *) ac_try_echo=$ac_try;; | |
6571 | esac | |
ec6a6fbe AK |
6572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6573 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6574 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6575 | ac_status=$? |
8a2fc586 AK |
6576 | grep -v '^ *+' conftest.er1 >conftest.err |
6577 | rm -f conftest.er1 | |
6578 | cat conftest.err >&5 | |
ec6a6fbe | 6579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6580 | (exit $ac_status); } && { |
6581 | test -z "$ac_c_werror_flag" || | |
6582 | test ! -s conftest.err | |
ec6a6fbe AK |
6583 | } && test -s conftest$ac_exeext && { |
6584 | test "$cross_compiling" = yes || | |
6585 | $as_test_x conftest$ac_exeext | |
6586 | }; then | |
ad6254c5 AK |
6587 | ac_cv_func_alloca_works=yes |
6588 | else | |
ec6a6fbe | 6589 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6590 | sed 's/^/| /' conftest.$ac_ext >&5 |
6591 | ||
7a197a62 | 6592 | ac_cv_func_alloca_works=no |
ad6254c5 | 6593 | fi |
7a197a62 | 6594 | |
ec6a6fbe | 6595 | rm -rf conftest.dSYM |
25fbec5b | 6596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6597 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6598 | fi |
ec6a6fbe AK |
6599 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6600 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6601 | |
6602 | if test $ac_cv_func_alloca_works = yes; then | |
6603 | ||
6604 | cat >>confdefs.h <<\_ACEOF | |
6605 | #define HAVE_ALLOCA 1 | |
6606 | _ACEOF | |
6607 | ||
6608 | else | |
6609 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6610 | # that cause trouble. Some versions do not even contain alloca or | |
6611 | # contain a buggy version. If you still want to use their alloca, | |
6612 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6613 | ||
7a197a62 | 6614 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6615 | |
6616 | cat >>confdefs.h <<\_ACEOF | |
6617 | #define C_ALLOCA 1 | |
6618 | _ACEOF | |
6619 | ||
6620 | ||
ec6a6fbe AK |
6621 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6622 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6623 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6624 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6625 | else |
6626 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6627 | /* confdefs.h. */ |
6628 | _ACEOF | |
6629 | cat confdefs.h >>conftest.$ac_ext | |
6630 | cat >>conftest.$ac_ext <<_ACEOF | |
6631 | /* end confdefs.h. */ | |
7a197a62 | 6632 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6633 | webecray |
6634 | #else | |
6635 | wenotbecray | |
6636 | #endif | |
6637 | ||
6638 | _ACEOF | |
795ca3e5 | 6639 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6640 | $EGREP "webecray" >/dev/null 2>&1; then |
6641 | ac_cv_os_cray=yes | |
6642 | else | |
6643 | ac_cv_os_cray=no | |
795ca3e5 AK |
6644 | fi |
6645 | rm -f conftest* | |
6646 | ||
795ca3e5 | 6647 | fi |
ec6a6fbe AK |
6648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6649 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6650 | if test $ac_cv_os_cray = yes; then |
6651 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6652 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6653 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6654 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6655 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6656 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6657 | else |
6658 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6659 | /* confdefs.h. */ |
6660 | _ACEOF | |
6661 | cat confdefs.h >>conftest.$ac_ext | |
6662 | cat >>conftest.$ac_ext <<_ACEOF | |
6663 | /* end confdefs.h. */ | |
8a2fc586 AK |
6664 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6665 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6666 | #define $ac_func innocuous_$ac_func | |
6667 | ||
ad6254c5 AK |
6668 | /* System header to define __stub macros and hopefully few prototypes, |
6669 | which can conflict with char $ac_func (); below. | |
6670 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6671 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6672 | |
ad6254c5 AK |
6673 | #ifdef __STDC__ |
6674 | # include <limits.h> | |
6675 | #else | |
6676 | # include <assert.h> | |
6677 | #endif | |
8a2fc586 AK |
6678 | |
6679 | #undef $ac_func | |
6680 | ||
7a197a62 AK |
6681 | /* Override any GCC internal prototype to avoid an error. |
6682 | Use char because int might match the return type of a GCC | |
6683 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6684 | #ifdef __cplusplus |
6685 | extern "C" | |
ad6254c5 | 6686 | #endif |
ad6254c5 AK |
6687 | char $ac_func (); |
6688 | /* The GNU C library defines this for functions which it implements | |
6689 | to always fail with ENOSYS. Some functions are actually named | |
6690 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6691 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6692 | choke me |
ad6254c5 AK |
6693 | #endif |
6694 | ||
6695 | int | |
6696 | main () | |
6697 | { | |
7a197a62 | 6698 | return $ac_func (); |
ad6254c5 AK |
6699 | ; |
6700 | return 0; | |
6701 | } | |
6702 | _ACEOF | |
6703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6704 | if { (ac_try="$ac_link" |
6705 | case "(($ac_try" in | |
6706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6707 | *) ac_try_echo=$ac_try;; | |
6708 | esac | |
ec6a6fbe AK |
6709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6710 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6711 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6712 | ac_status=$? |
8a2fc586 AK |
6713 | grep -v '^ *+' conftest.er1 >conftest.err |
6714 | rm -f conftest.er1 | |
6715 | cat conftest.err >&5 | |
ec6a6fbe | 6716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6717 | (exit $ac_status); } && { |
6718 | test -z "$ac_c_werror_flag" || | |
6719 | test ! -s conftest.err | |
ec6a6fbe AK |
6720 | } && test -s conftest$ac_exeext && { |
6721 | test "$cross_compiling" = yes || | |
6722 | $as_test_x conftest$ac_exeext | |
6723 | }; then | |
ad6254c5 AK |
6724 | eval "$as_ac_var=yes" |
6725 | else | |
ec6a6fbe | 6726 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6727 | sed 's/^/| /' conftest.$ac_ext >&5 |
6728 | ||
7a197a62 | 6729 | eval "$as_ac_var=no" |
ad6254c5 | 6730 | fi |
7a197a62 | 6731 | |
ec6a6fbe | 6732 | rm -rf conftest.dSYM |
25fbec5b | 6733 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6734 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6735 | fi |
ec6a6fbe AK |
6736 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6737 | $as_echo "$as_val"'` | |
6738 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6739 | $as_echo "$ac_res" >&6; } | |
6740 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6741 | $as_echo "$as_val"'` | |
6742 | if test "x$as_val" = x""yes; then | |
80992638 | 6743 | |
ad6254c5 AK |
6744 | cat >>confdefs.h <<_ACEOF |
6745 | #define CRAY_STACKSEG_END $ac_func | |
6746 | _ACEOF | |
6747 | ||
6748 | break | |
6749 | fi | |
6750 | ||
6751 | done | |
6752 | fi | |
6753 | ||
ec6a6fbe AK |
6754 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6755 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6756 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6757 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6758 | else |
6759 | if test "$cross_compiling" = yes; then | |
6760 | ac_cv_c_stack_direction=0 | |
6761 | else | |
6762 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6763 | /* confdefs.h. */ |
6764 | _ACEOF | |
6765 | cat confdefs.h >>conftest.$ac_ext | |
6766 | cat >>conftest.$ac_ext <<_ACEOF | |
6767 | /* end confdefs.h. */ | |
7a197a62 | 6768 | $ac_includes_default |
ad6254c5 AK |
6769 | int |
6770 | find_stack_direction () | |
6771 | { | |
6772 | static char *addr = 0; | |
6773 | auto char dummy; | |
6774 | if (addr == 0) | |
6775 | { | |
6776 | addr = &dummy; | |
6777 | return find_stack_direction (); | |
6778 | } | |
6779 | else | |
6780 | return (&dummy > addr) ? 1 : -1; | |
6781 | } | |
6782 | ||
6783 | int | |
6784 | main () | |
6785 | { | |
7a197a62 | 6786 | return find_stack_direction () < 0; |
ad6254c5 AK |
6787 | } |
6788 | _ACEOF | |
6789 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6790 | if { (ac_try="$ac_link" |
6791 | case "(($ac_try" in | |
6792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6793 | *) ac_try_echo=$ac_try;; | |
6794 | esac | |
ec6a6fbe AK |
6795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6796 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6797 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6798 | ac_status=$? |
ec6a6fbe | 6799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6801 | { (case "(($ac_try" in |
6802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6803 | *) ac_try_echo=$ac_try;; | |
6804 | esac | |
ec6a6fbe AK |
6805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6806 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6807 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6808 | ac_status=$? |
ec6a6fbe | 6809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6810 | (exit $ac_status); }; }; then |
6811 | ac_cv_c_stack_direction=1 | |
6812 | else | |
ec6a6fbe AK |
6813 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6814 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6815 | sed 's/^/| /' conftest.$ac_ext >&5 |
6816 | ||
6817 | ( exit $ac_status ) | |
6818 | ac_cv_c_stack_direction=-1 | |
6819 | fi | |
ec6a6fbe | 6820 | rm -rf conftest.dSYM |
7a197a62 | 6821 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6822 | fi |
7a197a62 AK |
6823 | |
6824 | ||
ad6254c5 | 6825 | fi |
ec6a6fbe AK |
6826 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6827 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6828 | |
6829 | cat >>confdefs.h <<_ACEOF | |
6830 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6831 | _ACEOF | |
6832 | ||
6833 | ||
6834 | fi | |
6835 | ||
ec6a6fbe AK |
6836 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6837 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6838 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6839 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6840 | else |
6841 | if test "$cross_compiling" = yes; then | |
6842 | ac_cv_func_closedir_void=yes | |
6843 | else | |
6844 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6845 | /* confdefs.h. */ |
6846 | _ACEOF | |
6847 | cat confdefs.h >>conftest.$ac_ext | |
6848 | cat >>conftest.$ac_ext <<_ACEOF | |
6849 | /* end confdefs.h. */ | |
6850 | $ac_includes_default | |
6851 | #include <$ac_header_dirent> | |
6852 | #ifndef __cplusplus | |
6853 | int closedir (); | |
6854 | #endif | |
6855 | ||
6856 | int | |
6857 | main () | |
6858 | { | |
7a197a62 | 6859 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6860 | ; |
6861 | return 0; | |
6862 | } | |
6863 | _ACEOF | |
6864 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6865 | if { (ac_try="$ac_link" |
6866 | case "(($ac_try" in | |
6867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6868 | *) ac_try_echo=$ac_try;; | |
6869 | esac | |
ec6a6fbe AK |
6870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6871 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6872 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6873 | ac_status=$? |
ec6a6fbe | 6874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6876 | { (case "(($ac_try" in |
6877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6878 | *) ac_try_echo=$ac_try;; | |
6879 | esac | |
ec6a6fbe AK |
6880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6881 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6882 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6883 | ac_status=$? |
ec6a6fbe | 6884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6885 | (exit $ac_status); }; }; then |
6886 | ac_cv_func_closedir_void=no | |
6887 | else | |
ec6a6fbe AK |
6888 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6889 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6890 | sed 's/^/| /' conftest.$ac_ext >&5 |
6891 | ||
6892 | ( exit $ac_status ) | |
6893 | ac_cv_func_closedir_void=yes | |
6894 | fi | |
ec6a6fbe | 6895 | rm -rf conftest.dSYM |
7a197a62 | 6896 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6897 | fi |
7a197a62 AK |
6898 | |
6899 | ||
ad6254c5 | 6900 | fi |
ec6a6fbe AK |
6901 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6902 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6903 | if test $ac_cv_func_closedir_void = yes; then |
6904 | ||
6905 | cat >>confdefs.h <<\_ACEOF | |
6906 | #define CLOSEDIR_VOID 1 | |
6907 | _ACEOF | |
6908 | ||
6909 | fi | |
6910 | ||
6911 | ||
7a197a62 | 6912 | for ac_header in vfork.h |
ad6254c5 | 6913 | do |
ec6a6fbe | 6914 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6916 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6917 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6919 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6920 | fi |
ec6a6fbe AK |
6921 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6922 | $as_echo "$as_val"'` | |
6923 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6924 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6925 | else |
6926 | # Is the header compilable? | |
ec6a6fbe AK |
6927 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6928 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6929 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6930 | /* confdefs.h. */ |
6931 | _ACEOF | |
6932 | cat confdefs.h >>conftest.$ac_ext | |
6933 | cat >>conftest.$ac_ext <<_ACEOF | |
6934 | /* end confdefs.h. */ | |
6935 | $ac_includes_default | |
6936 | #include <$ac_header> | |
6937 | _ACEOF | |
6938 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6939 | if { (ac_try="$ac_compile" |
6940 | case "(($ac_try" in | |
6941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6942 | *) ac_try_echo=$ac_try;; | |
6943 | esac | |
ec6a6fbe AK |
6944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6945 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6946 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6947 | ac_status=$? |
8a2fc586 AK |
6948 | grep -v '^ *+' conftest.er1 >conftest.err |
6949 | rm -f conftest.er1 | |
6950 | cat conftest.err >&5 | |
ec6a6fbe | 6951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6952 | (exit $ac_status); } && { |
6953 | test -z "$ac_c_werror_flag" || | |
6954 | test ! -s conftest.err | |
6955 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6956 | ac_header_compiler=yes |
6957 | else | |
ec6a6fbe | 6958 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6959 | sed 's/^/| /' conftest.$ac_ext >&5 |
6960 | ||
7a197a62 | 6961 | ac_header_compiler=no |
ad6254c5 | 6962 | fi |
7a197a62 AK |
6963 | |
6964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
6965 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6966 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6967 | |
6968 | # Is the header present? | |
ec6a6fbe AK |
6969 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6970 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6971 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6972 | /* confdefs.h. */ |
6973 | _ACEOF | |
6974 | cat confdefs.h >>conftest.$ac_ext | |
6975 | cat >>conftest.$ac_ext <<_ACEOF | |
6976 | /* end confdefs.h. */ | |
6977 | #include <$ac_header> | |
6978 | _ACEOF | |
7a197a62 AK |
6979 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6980 | case "(($ac_try" in | |
6981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6982 | *) ac_try_echo=$ac_try;; | |
6983 | esac | |
ec6a6fbe AK |
6984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6985 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6986 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6987 | ac_status=$? |
6988 | grep -v '^ *+' conftest.er1 >conftest.err | |
6989 | rm -f conftest.er1 | |
6990 | cat conftest.err >&5 | |
ec6a6fbe | 6991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6992 | (exit $ac_status); } >/dev/null && { |
6993 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6994 | test ! -s conftest.err | |
6995 | }; then | |
ad6254c5 AK |
6996 | ac_header_preproc=yes |
6997 | else | |
ec6a6fbe | 6998 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6999 | sed 's/^/| /' conftest.$ac_ext >&5 |
7000 | ||
7001 | ac_header_preproc=no | |
7002 | fi | |
7a197a62 | 7003 | |
ad6254c5 | 7004 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7005 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7006 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7007 | |
7008 | # So? What about this header? | |
8a2fc586 AK |
7009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7010 | yes:no: ) | |
ec6a6fbe AK |
7011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7012 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7014 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7015 | ac_header_preproc=yes |
ad6254c5 | 7016 | ;; |
8a2fc586 | 7017 | no:yes:* ) |
ec6a6fbe AK |
7018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7019 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7021 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7023 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7025 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7027 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7029 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7030 | |
ad6254c5 AK |
7031 | ;; |
7032 | esac | |
ec6a6fbe AK |
7033 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7034 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7036 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7037 | else |
8a2fc586 | 7038 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7039 | fi |
ec6a6fbe AK |
7040 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7041 | $as_echo "$as_val"'` | |
7042 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7043 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7044 | |
795ca3e5 | 7045 | fi |
ec6a6fbe AK |
7046 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7047 | $as_echo "$as_val"'` | |
7048 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7049 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7050 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7051 | _ACEOF |
7052 | ||
7053 | fi | |
7054 | ||
7055 | done | |
795ca3e5 | 7056 | |
ad6254c5 AK |
7057 | |
7058 | ||
7059 | for ac_func in fork vfork | |
7060 | do | |
ec6a6fbe AK |
7061 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7062 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7063 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7064 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7065 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7066 | else |
ad6254c5 | 7067 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7068 | /* confdefs.h. */ |
7069 | _ACEOF | |
7070 | cat confdefs.h >>conftest.$ac_ext | |
7071 | cat >>conftest.$ac_ext <<_ACEOF | |
7072 | /* end confdefs.h. */ | |
8a2fc586 AK |
7073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7075 | #define $ac_func innocuous_$ac_func | |
7076 | ||
ad6254c5 AK |
7077 | /* System header to define __stub macros and hopefully few prototypes, |
7078 | which can conflict with char $ac_func (); below. | |
7079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7080 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7081 | |
ad6254c5 AK |
7082 | #ifdef __STDC__ |
7083 | # include <limits.h> | |
7084 | #else | |
7085 | # include <assert.h> | |
795ca3e5 | 7086 | #endif |
8a2fc586 AK |
7087 | |
7088 | #undef $ac_func | |
7089 | ||
7a197a62 AK |
7090 | /* Override any GCC internal prototype to avoid an error. |
7091 | Use char because int might match the return type of a GCC | |
7092 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7093 | #ifdef __cplusplus |
ad6254c5 | 7094 | extern "C" |
ad6254c5 | 7095 | #endif |
ad6254c5 AK |
7096 | char $ac_func (); |
7097 | /* The GNU C library defines this for functions which it implements | |
7098 | to always fail with ENOSYS. Some functions are actually named | |
7099 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7100 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7101 | choke me |
795ca3e5 AK |
7102 | #endif |
7103 | ||
ad6254c5 AK |
7104 | int |
7105 | main () | |
7106 | { | |
7a197a62 | 7107 | return $ac_func (); |
ad6254c5 AK |
7108 | ; |
7109 | return 0; | |
7110 | } | |
7111 | _ACEOF | |
7112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7113 | if { (ac_try="$ac_link" |
7114 | case "(($ac_try" in | |
7115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7116 | *) ac_try_echo=$ac_try;; | |
7117 | esac | |
ec6a6fbe AK |
7118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7119 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7120 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7121 | ac_status=$? |
8a2fc586 AK |
7122 | grep -v '^ *+' conftest.er1 >conftest.err |
7123 | rm -f conftest.er1 | |
7124 | cat conftest.err >&5 | |
ec6a6fbe | 7125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7126 | (exit $ac_status); } && { |
7127 | test -z "$ac_c_werror_flag" || | |
7128 | test ! -s conftest.err | |
ec6a6fbe AK |
7129 | } && test -s conftest$ac_exeext && { |
7130 | test "$cross_compiling" = yes || | |
7131 | $as_test_x conftest$ac_exeext | |
7132 | }; then | |
ad6254c5 | 7133 | eval "$as_ac_var=yes" |
795ca3e5 | 7134 | else |
ec6a6fbe | 7135 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7136 | sed 's/^/| /' conftest.$ac_ext >&5 |
7137 | ||
7a197a62 | 7138 | eval "$as_ac_var=no" |
795ca3e5 | 7139 | fi |
7a197a62 | 7140 | |
ec6a6fbe | 7141 | rm -rf conftest.dSYM |
25fbec5b | 7142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7143 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7144 | fi |
ec6a6fbe AK |
7145 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7146 | $as_echo "$as_val"'` | |
7147 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7148 | $as_echo "$ac_res" >&6; } | |
7149 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7150 | $as_echo "$as_val"'` | |
7151 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7152 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7153 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7154 | _ACEOF |
7155 | ||
7156 | fi | |
7157 | done | |
7158 | ||
7159 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7160 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7161 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7162 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7163 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7164 | else |
7165 | if test "$cross_compiling" = yes; then | |
7166 | ac_cv_func_fork_works=cross | |
7167 | else | |
7168 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7169 | /* confdefs.h. */ |
7170 | _ACEOF | |
7171 | cat confdefs.h >>conftest.$ac_ext | |
7172 | cat >>conftest.$ac_ext <<_ACEOF | |
7173 | /* end confdefs.h. */ | |
7174 | $ac_includes_default | |
7175 | int | |
7176 | main () | |
7177 | { | |
7178 | ||
7179 | /* By Ruediger Kuhlmann. */ | |
7180 | return fork () < 0; | |
7181 | ||
7182 | ; | |
7183 | return 0; | |
7184 | } | |
ad6254c5 AK |
7185 | _ACEOF |
7186 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7187 | if { (ac_try="$ac_link" |
7188 | case "(($ac_try" in | |
7189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7190 | *) ac_try_echo=$ac_try;; | |
7191 | esac | |
ec6a6fbe AK |
7192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7193 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7194 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7195 | ac_status=$? |
ec6a6fbe | 7196 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7198 | { (case "(($ac_try" in |
7199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7200 | *) ac_try_echo=$ac_try;; | |
7201 | esac | |
ec6a6fbe AK |
7202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7203 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7204 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7205 | ac_status=$? |
ec6a6fbe | 7206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7207 | (exit $ac_status); }; }; then |
7208 | ac_cv_func_fork_works=yes | |
7209 | else | |
ec6a6fbe AK |
7210 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7211 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7212 | sed 's/^/| /' conftest.$ac_ext >&5 |
7213 | ||
7214 | ( exit $ac_status ) | |
7215 | ac_cv_func_fork_works=no | |
7216 | fi | |
ec6a6fbe | 7217 | rm -rf conftest.dSYM |
7a197a62 | 7218 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7219 | fi |
7a197a62 AK |
7220 | |
7221 | ||
ad6254c5 | 7222 | fi |
ec6a6fbe AK |
7223 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7224 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7225 | |
7226 | else | |
7227 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7228 | fi | |
7229 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7230 | case $host in | |
7231 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7232 | # Override, as these systems have only a dummy fork() stub | |
7233 | ac_cv_func_fork_works=no | |
7234 | ;; | |
7235 | *) | |
7236 | ac_cv_func_fork_works=yes | |
7237 | ;; | |
7238 | esac | |
ec6a6fbe AK |
7239 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7240 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7241 | fi |
7242 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7243 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7244 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7245 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7246 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7247 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7248 | else |
7249 | if test "$cross_compiling" = yes; then | |
7250 | ac_cv_func_vfork_works=cross | |
7251 | else | |
7252 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7253 | /* confdefs.h. */ |
7254 | _ACEOF | |
7255 | cat confdefs.h >>conftest.$ac_ext | |
7256 | cat >>conftest.$ac_ext <<_ACEOF | |
7257 | /* end confdefs.h. */ | |
7258 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7259 | $ac_includes_default |
ad6254c5 | 7260 | #include <sys/wait.h> |
25fbec5b | 7261 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7262 | # include <vfork.h> |
7263 | #endif | |
7264 | /* On some sparc systems, changes by the child to local and incoming | |
7265 | argument registers are propagated back to the parent. The compiler | |
7266 | is told about this with #include <vfork.h>, but some compilers | |
7267 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7268 | static variable whose address is put into a register that is | |
7269 | clobbered by the vfork. */ | |
7270 | static void | |
7271 | #ifdef __cplusplus | |
7272 | sparc_address_test (int arg) | |
7273 | # else | |
7274 | sparc_address_test (arg) int arg; | |
7275 | #endif | |
7276 | { | |
7277 | static pid_t child; | |
7278 | if (!child) { | |
7279 | child = vfork (); | |
7280 | if (child < 0) { | |
7281 | perror ("vfork"); | |
7282 | _exit(2); | |
7283 | } | |
7284 | if (!child) { | |
7285 | arg = getpid(); | |
7286 | write(-1, "", 0); | |
7287 | _exit (arg); | |
7288 | } | |
7289 | } | |
7290 | } | |
7291 | ||
7292 | int | |
7293 | main () | |
7294 | { | |
7295 | pid_t parent = getpid (); | |
7296 | pid_t child; | |
7297 | ||
7298 | sparc_address_test (0); | |
7299 | ||
7300 | child = vfork (); | |
7301 | ||
7302 | if (child == 0) { | |
7303 | /* Here is another test for sparc vfork register problems. This | |
7304 | test uses lots of local variables, at least as many local | |
7305 | variables as main has allocated so far including compiler | |
7306 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7307 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7308 | reuse the register of parent for one of the local variables, | |
7309 | since it will think that parent can't possibly be used any more | |
7310 | in this routine. Assigning to the local variable will thus | |
7311 | munge parent in the parent process. */ | |
7312 | pid_t | |
7313 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7314 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7315 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7316 | use the same hardware register for all 8 local variables. */ | |
7317 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7318 | || p != p5 || p != p6 || p != p7) | |
7319 | _exit(1); | |
7320 | ||
7321 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7322 | from child file descriptors. If the child closes a descriptor | |
7323 | before it execs or exits, this munges the parent's descriptor | |
7324 | as well. Test for this by closing stdout in the child. */ | |
7325 | _exit(close(fileno(stdout)) != 0); | |
7326 | } else { | |
7327 | int status; | |
7328 | struct stat st; | |
7329 | ||
7330 | while (wait(&status) != child) | |
7331 | ; | |
7a197a62 | 7332 | return ( |
ad6254c5 AK |
7333 | /* Was there some problem with vforking? */ |
7334 | child < 0 | |
7335 | ||
7336 | /* Did the child fail? (This shouldn't happen.) */ | |
7337 | || status | |
7338 | ||
7339 | /* Did the vfork/compiler bug occur? */ | |
7340 | || parent != getpid() | |
7341 | ||
7342 | /* Did the file descriptor bug occur? */ | |
7343 | || fstat(fileno(stdout), &st) != 0 | |
7344 | ); | |
7345 | } | |
7346 | } | |
7347 | _ACEOF | |
7348 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7349 | if { (ac_try="$ac_link" |
7350 | case "(($ac_try" in | |
7351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7352 | *) ac_try_echo=$ac_try;; | |
7353 | esac | |
ec6a6fbe AK |
7354 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7355 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7356 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7357 | ac_status=$? |
ec6a6fbe | 7358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7359 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7360 | { (case "(($ac_try" in |
7361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7362 | *) ac_try_echo=$ac_try;; | |
7363 | esac | |
ec6a6fbe AK |
7364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7365 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7366 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7367 | ac_status=$? |
ec6a6fbe | 7368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7369 | (exit $ac_status); }; }; then |
7370 | ac_cv_func_vfork_works=yes | |
7371 | else | |
ec6a6fbe AK |
7372 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7373 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7374 | sed 's/^/| /' conftest.$ac_ext >&5 |
7375 | ||
7376 | ( exit $ac_status ) | |
7377 | ac_cv_func_vfork_works=no | |
7378 | fi | |
ec6a6fbe | 7379 | rm -rf conftest.dSYM |
7a197a62 | 7380 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7381 | fi |
7a197a62 AK |
7382 | |
7383 | ||
ad6254c5 | 7384 | fi |
ec6a6fbe AK |
7385 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7386 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7387 | |
7388 | fi; | |
7389 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7390 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7391 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7392 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7393 | fi |
7394 | ||
7395 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7396 | ||
7397 | cat >>confdefs.h <<\_ACEOF | |
7398 | #define HAVE_WORKING_VFORK 1 | |
7399 | _ACEOF | |
7400 | ||
7401 | else | |
7402 | ||
7403 | cat >>confdefs.h <<\_ACEOF | |
7404 | #define vfork fork | |
7405 | _ACEOF | |
7406 | ||
7407 | fi | |
7408 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7409 | ||
7410 | cat >>confdefs.h <<\_ACEOF | |
7411 | #define HAVE_WORKING_FORK 1 | |
7412 | _ACEOF | |
7413 | ||
7414 | fi | |
7415 | ||
ec6a6fbe AK |
7416 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7417 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7418 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7419 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7420 | else |
7421 | rm -f conftest.sym conftest.file | |
7422 | echo >conftest.file | |
7423 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7424 | if test "$cross_compiling" = yes; then | |
7425 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7426 | else | |
7427 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7428 | /* confdefs.h. */ |
7429 | _ACEOF | |
7430 | cat confdefs.h >>conftest.$ac_ext | |
7431 | cat >>conftest.$ac_ext <<_ACEOF | |
7432 | /* end confdefs.h. */ | |
7433 | $ac_includes_default | |
7434 | int | |
7435 | main () | |
7436 | { | |
7437 | struct stat sbuf; | |
7438 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7439 | That is better in the sense that it means we will not |
7440 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7441 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7442 | ; |
7443 | return 0; | |
7444 | } | |
7445 | _ACEOF | |
7446 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7447 | if { (ac_try="$ac_link" |
7448 | case "(($ac_try" in | |
7449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7450 | *) ac_try_echo=$ac_try;; | |
7451 | esac | |
ec6a6fbe AK |
7452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7453 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7454 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7455 | ac_status=$? |
ec6a6fbe | 7456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7457 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7458 | { (case "(($ac_try" in |
7459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7460 | *) ac_try_echo=$ac_try;; | |
7461 | esac | |
ec6a6fbe AK |
7462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7463 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7464 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7465 | ac_status=$? |
ec6a6fbe | 7466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7467 | (exit $ac_status); }; }; then |
7468 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7469 | else | |
ec6a6fbe AK |
7470 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7471 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7472 | sed 's/^/| /' conftest.$ac_ext >&5 |
7473 | ||
7474 | ( exit $ac_status ) | |
7475 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7476 | fi | |
ec6a6fbe | 7477 | rm -rf conftest.dSYM |
7a197a62 | 7478 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7479 | fi |
7a197a62 AK |
7480 | |
7481 | ||
ad6254c5 AK |
7482 | else |
7483 | # If the `ln -s' command failed, then we probably don't even | |
7484 | # have an lstat function. | |
7485 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7486 | fi | |
7487 | rm -f conftest.sym conftest.file | |
7488 | ||
7489 | fi | |
ec6a6fbe AK |
7490 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7491 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7492 | |
7493 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7494 | ||
7495 | cat >>confdefs.h <<_ACEOF | |
7496 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7497 | _ACEOF | |
7498 | ||
7499 | ||
7500 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7501 | case " $LIBOBJS " in |
8a2fc586 | 7502 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7503 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7504 | ;; | |
8a2fc586 AK |
7505 | esac |
7506 | ||
ad6254c5 AK |
7507 | fi |
7508 | ||
ec6a6fbe AK |
7509 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7510 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7511 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7512 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7513 | else |
7514 | if test "$cross_compiling" = yes; then | |
7515 | ac_cv_func_lstat_empty_string_bug=yes | |
7516 | else | |
7517 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7518 | /* confdefs.h. */ |
7519 | _ACEOF | |
7520 | cat confdefs.h >>conftest.$ac_ext | |
7521 | cat >>conftest.$ac_ext <<_ACEOF | |
7522 | /* end confdefs.h. */ | |
7523 | $ac_includes_default | |
7524 | int | |
7525 | main () | |
7526 | { | |
7527 | struct stat sbuf; | |
7a197a62 | 7528 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7529 | ; |
7530 | return 0; | |
7531 | } | |
7532 | _ACEOF | |
7533 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7534 | if { (ac_try="$ac_link" |
7535 | case "(($ac_try" in | |
7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7537 | *) ac_try_echo=$ac_try;; | |
7538 | esac | |
ec6a6fbe AK |
7539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7540 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7541 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7542 | ac_status=$? |
ec6a6fbe | 7543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7544 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7545 | { (case "(($ac_try" in |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
ec6a6fbe AK |
7549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7550 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7551 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7552 | ac_status=$? |
ec6a6fbe | 7553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7554 | (exit $ac_status); }; }; then |
7a197a62 | 7555 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7556 | else |
ec6a6fbe AK |
7557 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7558 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7559 | sed 's/^/| /' conftest.$ac_ext >&5 |
7560 | ||
7561 | ( exit $ac_status ) | |
7a197a62 | 7562 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7563 | fi |
ec6a6fbe | 7564 | rm -rf conftest.dSYM |
7a197a62 | 7565 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7566 | fi |
7a197a62 AK |
7567 | |
7568 | ||
ad6254c5 | 7569 | fi |
ec6a6fbe AK |
7570 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7571 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7572 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7573 | case " $LIBOBJS " in |
8a2fc586 | 7574 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7575 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7576 | ;; | |
8a2fc586 AK |
7577 | esac |
7578 | ||
ad6254c5 AK |
7579 | |
7580 | cat >>confdefs.h <<_ACEOF | |
7581 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7582 | _ACEOF | |
7583 | ||
7584 | fi | |
7585 | ||
7586 | ||
7587 | for ac_header in stdlib.h | |
7588 | do | |
ec6a6fbe | 7589 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7591 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7592 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7594 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7595 | fi |
ec6a6fbe AK |
7596 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7597 | $as_echo "$as_val"'` | |
7598 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7599 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7600 | else |
7601 | # Is the header compilable? | |
ec6a6fbe AK |
7602 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7603 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7604 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7605 | /* confdefs.h. */ |
7606 | _ACEOF | |
7607 | cat confdefs.h >>conftest.$ac_ext | |
7608 | cat >>conftest.$ac_ext <<_ACEOF | |
7609 | /* end confdefs.h. */ | |
7610 | $ac_includes_default | |
7611 | #include <$ac_header> | |
7612 | _ACEOF | |
7613 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7614 | if { (ac_try="$ac_compile" |
7615 | case "(($ac_try" in | |
7616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7617 | *) ac_try_echo=$ac_try;; | |
7618 | esac | |
ec6a6fbe AK |
7619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7620 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7621 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7622 | ac_status=$? |
8a2fc586 AK |
7623 | grep -v '^ *+' conftest.er1 >conftest.err |
7624 | rm -f conftest.er1 | |
7625 | cat conftest.err >&5 | |
ec6a6fbe | 7626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7627 | (exit $ac_status); } && { |
7628 | test -z "$ac_c_werror_flag" || | |
7629 | test ! -s conftest.err | |
7630 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7631 | ac_header_compiler=yes |
7632 | else | |
ec6a6fbe | 7633 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7634 | sed 's/^/| /' conftest.$ac_ext >&5 |
7635 | ||
7a197a62 | 7636 | ac_header_compiler=no |
ad6254c5 | 7637 | fi |
7a197a62 AK |
7638 | |
7639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7640 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7641 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7642 | |
7643 | # Is the header present? | |
ec6a6fbe AK |
7644 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7645 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7646 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7647 | /* confdefs.h. */ |
7648 | _ACEOF | |
7649 | cat confdefs.h >>conftest.$ac_ext | |
7650 | cat >>conftest.$ac_ext <<_ACEOF | |
7651 | /* end confdefs.h. */ | |
7652 | #include <$ac_header> | |
7653 | _ACEOF | |
7a197a62 AK |
7654 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7655 | case "(($ac_try" in | |
7656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7657 | *) ac_try_echo=$ac_try;; | |
7658 | esac | |
ec6a6fbe AK |
7659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7660 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7661 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7662 | ac_status=$? |
7663 | grep -v '^ *+' conftest.er1 >conftest.err | |
7664 | rm -f conftest.er1 | |
7665 | cat conftest.err >&5 | |
ec6a6fbe | 7666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7667 | (exit $ac_status); } >/dev/null && { |
7668 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7669 | test ! -s conftest.err | |
7670 | }; then | |
ad6254c5 AK |
7671 | ac_header_preproc=yes |
7672 | else | |
ec6a6fbe | 7673 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7674 | sed 's/^/| /' conftest.$ac_ext >&5 |
7675 | ||
7676 | ac_header_preproc=no | |
7677 | fi | |
7a197a62 | 7678 | |
ad6254c5 | 7679 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7680 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7681 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7682 | |
7683 | # So? What about this header? | |
8a2fc586 AK |
7684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7685 | yes:no: ) | |
ec6a6fbe AK |
7686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7687 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7689 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7690 | ac_header_preproc=yes |
ad6254c5 | 7691 | ;; |
8a2fc586 | 7692 | no:yes:* ) |
ec6a6fbe AK |
7693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7694 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7696 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7698 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7700 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7702 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7704 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7705 | |
ad6254c5 AK |
7706 | ;; |
7707 | esac | |
ec6a6fbe AK |
7708 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7709 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7711 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7712 | else |
8a2fc586 | 7713 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7714 | fi |
ec6a6fbe AK |
7715 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7716 | $as_echo "$as_val"'` | |
7717 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7718 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7719 | |
7720 | fi | |
ec6a6fbe AK |
7721 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7722 | $as_echo "$as_val"'` | |
7723 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7724 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7725 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7726 | _ACEOF |
7727 | ||
7728 | fi | |
7729 | ||
7730 | done | |
7731 | ||
ec6a6fbe AK |
7732 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7733 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7734 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7735 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7736 | else |
7737 | if test "$cross_compiling" = yes; then | |
7738 | ac_cv_func_malloc_0_nonnull=no | |
7739 | else | |
7740 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7741 | /* confdefs.h. */ |
7742 | _ACEOF | |
7743 | cat confdefs.h >>conftest.$ac_ext | |
7744 | cat >>conftest.$ac_ext <<_ACEOF | |
7745 | /* end confdefs.h. */ | |
25fbec5b | 7746 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7747 | # include <stdlib.h> |
7748 | #else | |
7749 | char *malloc (); | |
7750 | #endif | |
7751 | ||
7752 | int | |
7753 | main () | |
7754 | { | |
7a197a62 | 7755 | return ! malloc (0); |
ad6254c5 AK |
7756 | ; |
7757 | return 0; | |
7758 | } | |
7759 | _ACEOF | |
7760 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7761 | if { (ac_try="$ac_link" |
7762 | case "(($ac_try" in | |
7763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7764 | *) ac_try_echo=$ac_try;; | |
7765 | esac | |
ec6a6fbe AK |
7766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7767 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7768 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7769 | ac_status=$? |
ec6a6fbe | 7770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7771 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7772 | { (case "(($ac_try" in |
7773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7774 | *) ac_try_echo=$ac_try;; | |
7775 | esac | |
ec6a6fbe AK |
7776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7777 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7778 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7779 | ac_status=$? |
ec6a6fbe | 7780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7781 | (exit $ac_status); }; }; then |
7782 | ac_cv_func_malloc_0_nonnull=yes | |
7783 | else | |
ec6a6fbe AK |
7784 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7785 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7786 | sed 's/^/| /' conftest.$ac_ext >&5 |
7787 | ||
7788 | ( exit $ac_status ) | |
7789 | ac_cv_func_malloc_0_nonnull=no | |
7790 | fi | |
ec6a6fbe | 7791 | rm -rf conftest.dSYM |
7a197a62 | 7792 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7793 | fi |
7a197a62 AK |
7794 | |
7795 | ||
ad6254c5 | 7796 | fi |
ec6a6fbe AK |
7797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7798 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7799 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7800 | ||
7801 | cat >>confdefs.h <<\_ACEOF | |
7802 | #define HAVE_MALLOC 1 | |
7803 | _ACEOF | |
7804 | ||
7805 | else | |
7806 | cat >>confdefs.h <<\_ACEOF | |
7807 | #define HAVE_MALLOC 0 | |
7808 | _ACEOF | |
7809 | ||
7a197a62 | 7810 | case " $LIBOBJS " in |
8a2fc586 | 7811 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7812 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7813 | ;; | |
8a2fc586 AK |
7814 | esac |
7815 | ||
ad6254c5 AK |
7816 | |
7817 | cat >>confdefs.h <<\_ACEOF | |
7818 | #define malloc rpl_malloc | |
7819 | _ACEOF | |
7820 | ||
7821 | fi | |
7822 | ||
7823 | ||
7824 | ||
ec6a6fbe AK |
7825 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7826 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7827 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7828 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7829 | else |
7830 | if test "$cross_compiling" = yes; then | |
7831 | ac_cv_func_memcmp_working=no | |
7832 | else | |
7833 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7834 | /* confdefs.h. */ |
7835 | _ACEOF | |
7836 | cat confdefs.h >>conftest.$ac_ext | |
7837 | cat >>conftest.$ac_ext <<_ACEOF | |
7838 | /* end confdefs.h. */ | |
8a2fc586 | 7839 | $ac_includes_default |
ad6254c5 AK |
7840 | int |
7841 | main () | |
7842 | { | |
7843 | ||
7844 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7845 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7846 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7847 | return 1; |
ad6254c5 AK |
7848 | |
7849 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7850 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7851 | William Lewis provided this test program. */ | |
7852 | { | |
7853 | char foo[21]; | |
7854 | char bar[21]; | |
7855 | int i; | |
7856 | for (i = 0; i < 4; i++) | |
7857 | { | |
8a2fc586 AK |
7858 | char *a = foo + i; |
7859 | char *b = bar + i; | |
7860 | strcpy (a, "--------01111111"); | |
7861 | strcpy (b, "--------10000000"); | |
7862 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7863 | return 1; |
ad6254c5 | 7864 | } |
7a197a62 | 7865 | return 0; |
ad6254c5 AK |
7866 | } |
7867 | ||
7868 | ; | |
7869 | return 0; | |
7870 | } | |
7871 | _ACEOF | |
7872 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7873 | if { (ac_try="$ac_link" |
7874 | case "(($ac_try" in | |
7875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7876 | *) ac_try_echo=$ac_try;; | |
7877 | esac | |
ec6a6fbe AK |
7878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7879 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7880 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7881 | ac_status=$? |
ec6a6fbe | 7882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7884 | { (case "(($ac_try" in |
7885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7886 | *) ac_try_echo=$ac_try;; | |
7887 | esac | |
ec6a6fbe AK |
7888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7889 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7890 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7891 | ac_status=$? |
ec6a6fbe | 7892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7893 | (exit $ac_status); }; }; then |
7894 | ac_cv_func_memcmp_working=yes | |
7895 | else | |
ec6a6fbe AK |
7896 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7897 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7898 | sed 's/^/| /' conftest.$ac_ext >&5 |
7899 | ||
7900 | ( exit $ac_status ) | |
7901 | ac_cv_func_memcmp_working=no | |
7902 | fi | |
ec6a6fbe | 7903 | rm -rf conftest.dSYM |
7a197a62 | 7904 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7905 | fi |
7a197a62 AK |
7906 | |
7907 | ||
ad6254c5 | 7908 | fi |
ec6a6fbe AK |
7909 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7910 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7911 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7912 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7913 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7914 | ;; | |
8a2fc586 AK |
7915 | esac |
7916 | ||
ad6254c5 AK |
7917 | |
7918 | ||
7919 | ||
7920 | for ac_header in stdlib.h unistd.h | |
7921 | do | |
ec6a6fbe | 7922 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7924 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7925 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7927 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7928 | fi |
ec6a6fbe AK |
7929 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7930 | $as_echo "$as_val"'` | |
7931 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7932 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7933 | else |
7934 | # Is the header compilable? | |
ec6a6fbe AK |
7935 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7936 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7937 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7938 | /* confdefs.h. */ |
7939 | _ACEOF | |
7940 | cat confdefs.h >>conftest.$ac_ext | |
7941 | cat >>conftest.$ac_ext <<_ACEOF | |
7942 | /* end confdefs.h. */ | |
7943 | $ac_includes_default | |
7944 | #include <$ac_header> | |
7945 | _ACEOF | |
7946 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7947 | if { (ac_try="$ac_compile" |
7948 | case "(($ac_try" in | |
7949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7950 | *) ac_try_echo=$ac_try;; | |
7951 | esac | |
ec6a6fbe AK |
7952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7953 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7954 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7955 | ac_status=$? |
8a2fc586 AK |
7956 | grep -v '^ *+' conftest.er1 >conftest.err |
7957 | rm -f conftest.er1 | |
7958 | cat conftest.err >&5 | |
ec6a6fbe | 7959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7960 | (exit $ac_status); } && { |
7961 | test -z "$ac_c_werror_flag" || | |
7962 | test ! -s conftest.err | |
7963 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7964 | ac_header_compiler=yes |
7965 | else | |
ec6a6fbe | 7966 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7967 | sed 's/^/| /' conftest.$ac_ext >&5 |
7968 | ||
7a197a62 | 7969 | ac_header_compiler=no |
ad6254c5 | 7970 | fi |
7a197a62 AK |
7971 | |
7972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7973 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7974 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7975 | |
7976 | # Is the header present? | |
ec6a6fbe AK |
7977 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7978 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7979 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7980 | /* confdefs.h. */ |
7981 | _ACEOF | |
7982 | cat confdefs.h >>conftest.$ac_ext | |
7983 | cat >>conftest.$ac_ext <<_ACEOF | |
7984 | /* end confdefs.h. */ | |
7985 | #include <$ac_header> | |
7986 | _ACEOF | |
7a197a62 AK |
7987 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7988 | case "(($ac_try" in | |
7989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7990 | *) ac_try_echo=$ac_try;; | |
7991 | esac | |
ec6a6fbe AK |
7992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7993 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7995 | ac_status=$? |
7996 | grep -v '^ *+' conftest.er1 >conftest.err | |
7997 | rm -f conftest.er1 | |
7998 | cat conftest.err >&5 | |
ec6a6fbe | 7999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8000 | (exit $ac_status); } >/dev/null && { |
8001 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8002 | test ! -s conftest.err | |
8003 | }; then | |
ad6254c5 AK |
8004 | ac_header_preproc=yes |
8005 | else | |
ec6a6fbe | 8006 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8007 | sed 's/^/| /' conftest.$ac_ext >&5 |
8008 | ||
8009 | ac_header_preproc=no | |
8010 | fi | |
7a197a62 | 8011 | |
ad6254c5 | 8012 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8013 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8014 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8015 | |
8016 | # So? What about this header? | |
8a2fc586 AK |
8017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8018 | yes:no: ) | |
ec6a6fbe AK |
8019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8020 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8022 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8023 | ac_header_preproc=yes |
ad6254c5 | 8024 | ;; |
8a2fc586 | 8025 | no:yes:* ) |
ec6a6fbe AK |
8026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8027 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8029 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8031 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8033 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8035 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8037 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8038 | |
ad6254c5 AK |
8039 | ;; |
8040 | esac | |
ec6a6fbe AK |
8041 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8042 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8044 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8045 | else |
8a2fc586 | 8046 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8047 | fi |
ec6a6fbe AK |
8048 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8049 | $as_echo "$as_val"'` | |
8050 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8051 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8052 | |
8053 | fi | |
ec6a6fbe AK |
8054 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8055 | $as_echo "$as_val"'` | |
8056 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8057 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8058 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8059 | _ACEOF |
8060 | ||
8061 | fi | |
8062 | ||
8063 | done | |
8064 | ||
8065 | ||
8066 | for ac_func in getpagesize | |
8067 | do | |
ec6a6fbe AK |
8068 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8069 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8070 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8071 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8072 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8073 | else |
8074 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8075 | /* confdefs.h. */ |
8076 | _ACEOF | |
8077 | cat confdefs.h >>conftest.$ac_ext | |
8078 | cat >>conftest.$ac_ext <<_ACEOF | |
8079 | /* end confdefs.h. */ | |
8a2fc586 AK |
8080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8082 | #define $ac_func innocuous_$ac_func | |
8083 | ||
ad6254c5 AK |
8084 | /* System header to define __stub macros and hopefully few prototypes, |
8085 | which can conflict with char $ac_func (); below. | |
8086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8087 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8088 | |
ad6254c5 AK |
8089 | #ifdef __STDC__ |
8090 | # include <limits.h> | |
8091 | #else | |
8092 | # include <assert.h> | |
8093 | #endif | |
8a2fc586 AK |
8094 | |
8095 | #undef $ac_func | |
8096 | ||
7a197a62 AK |
8097 | /* Override any GCC internal prototype to avoid an error. |
8098 | Use char because int might match the return type of a GCC | |
8099 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8100 | #ifdef __cplusplus |
8101 | extern "C" | |
ad6254c5 | 8102 | #endif |
ad6254c5 AK |
8103 | char $ac_func (); |
8104 | /* The GNU C library defines this for functions which it implements | |
8105 | to always fail with ENOSYS. Some functions are actually named | |
8106 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8107 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8108 | choke me |
ad6254c5 AK |
8109 | #endif |
8110 | ||
8111 | int | |
8112 | main () | |
8113 | { | |
7a197a62 | 8114 | return $ac_func (); |
ad6254c5 AK |
8115 | ; |
8116 | return 0; | |
8117 | } | |
8118 | _ACEOF | |
8119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8120 | if { (ac_try="$ac_link" |
8121 | case "(($ac_try" in | |
8122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8123 | *) ac_try_echo=$ac_try;; | |
8124 | esac | |
ec6a6fbe AK |
8125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8126 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8127 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8128 | ac_status=$? |
8a2fc586 AK |
8129 | grep -v '^ *+' conftest.er1 >conftest.err |
8130 | rm -f conftest.er1 | |
8131 | cat conftest.err >&5 | |
ec6a6fbe | 8132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8133 | (exit $ac_status); } && { |
8134 | test -z "$ac_c_werror_flag" || | |
8135 | test ! -s conftest.err | |
ec6a6fbe AK |
8136 | } && test -s conftest$ac_exeext && { |
8137 | test "$cross_compiling" = yes || | |
8138 | $as_test_x conftest$ac_exeext | |
8139 | }; then | |
ad6254c5 AK |
8140 | eval "$as_ac_var=yes" |
8141 | else | |
ec6a6fbe | 8142 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8143 | sed 's/^/| /' conftest.$ac_ext >&5 |
8144 | ||
7a197a62 | 8145 | eval "$as_ac_var=no" |
ad6254c5 | 8146 | fi |
7a197a62 | 8147 | |
ec6a6fbe | 8148 | rm -rf conftest.dSYM |
25fbec5b | 8149 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8150 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8151 | fi |
ec6a6fbe AK |
8152 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8153 | $as_echo "$as_val"'` | |
8154 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8155 | $as_echo "$ac_res" >&6; } | |
8156 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8157 | $as_echo "$as_val"'` | |
8158 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8159 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8160 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8161 | _ACEOF |
8162 | ||
8163 | fi | |
8164 | done | |
8165 | ||
ec6a6fbe AK |
8166 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8167 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8168 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8169 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8170 | else |
8171 | if test "$cross_compiling" = yes; then | |
8172 | ac_cv_func_mmap_fixed_mapped=no | |
8173 | else | |
8174 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8175 | /* confdefs.h. */ |
8176 | _ACEOF | |
8177 | cat confdefs.h >>conftest.$ac_ext | |
8178 | cat >>conftest.$ac_ext <<_ACEOF | |
8179 | /* end confdefs.h. */ | |
8180 | $ac_includes_default | |
8181 | /* malloc might have been renamed as rpl_malloc. */ | |
8182 | #undef malloc | |
8183 | ||
8184 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8185 | Here is a matrix of mmap possibilities: | |
8186 | mmap private not fixed | |
8187 | mmap private fixed at somewhere currently unmapped | |
8188 | mmap private fixed at somewhere already mapped | |
8189 | mmap shared not fixed | |
8190 | mmap shared fixed at somewhere currently unmapped | |
8191 | mmap shared fixed at somewhere already mapped | |
8192 | For private mappings, we should verify that changes cannot be read() | |
8193 | back from the file, nor mmap's back from the file at a different | |
8194 | address. (There have been systems where private was not correctly | |
8195 | implemented like the infamous i386 svr4.0, and systems where the | |
8196 | VM page cache was not coherent with the file system buffer cache | |
8197 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8198 | For shared mappings, we should conversely verify that changes get | |
8199 | propagated back to all the places they're supposed to be. | |
8200 | ||
8201 | Grep wants private fixed already mapped. | |
8202 | The main things grep needs to know about mmap are: | |
8203 | * does it exist and is it safe to write into the mmap'd area | |
8204 | * how to use it (BSD variants) */ | |
8205 | ||
8206 | #include <fcntl.h> | |
8207 | #include <sys/mman.h> | |
8208 | ||
25fbec5b | 8209 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8210 | char *malloc (); |
8211 | #endif | |
8212 | ||
8213 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8214 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8215 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8216 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8217 | # define HAVE_SYS_PARAM_H 1 |
8218 | # endif | |
8219 | ||
8220 | # ifdef _SC_PAGESIZE | |
8221 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8222 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8223 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8224 | # include <sys/param.h> |
8225 | # ifdef EXEC_PAGESIZE | |
8226 | # define getpagesize() EXEC_PAGESIZE | |
8227 | # else /* no EXEC_PAGESIZE */ | |
8228 | # ifdef NBPG | |
8229 | # define getpagesize() NBPG * CLSIZE | |
8230 | # ifndef CLSIZE | |
8231 | # define CLSIZE 1 | |
8232 | # endif /* no CLSIZE */ | |
8233 | # else /* no NBPG */ | |
8234 | # ifdef NBPC | |
8235 | # define getpagesize() NBPC | |
8236 | # else /* no NBPC */ | |
8237 | # ifdef PAGESIZE | |
8238 | # define getpagesize() PAGESIZE | |
8239 | # endif /* PAGESIZE */ | |
8240 | # endif /* no NBPC */ | |
8241 | # endif /* no NBPG */ | |
8242 | # endif /* no EXEC_PAGESIZE */ | |
8243 | # else /* no HAVE_SYS_PARAM_H */ | |
8244 | # define getpagesize() 8192 /* punt totally */ | |
8245 | # endif /* no HAVE_SYS_PARAM_H */ | |
8246 | # endif /* no _SC_PAGESIZE */ | |
8247 | ||
8248 | #endif /* no HAVE_GETPAGESIZE */ | |
8249 | ||
8250 | int | |
8251 | main () | |
8252 | { | |
8253 | char *data, *data2, *data3; | |
8254 | int i, pagesize; | |
8255 | int fd; | |
8256 | ||
8257 | pagesize = getpagesize (); | |
8258 | ||
8259 | /* First, make a file with some known garbage in it. */ | |
8260 | data = (char *) malloc (pagesize); | |
8261 | if (!data) | |
7a197a62 | 8262 | return 1; |
ad6254c5 AK |
8263 | for (i = 0; i < pagesize; ++i) |
8264 | *(data + i) = rand (); | |
8265 | umask (0); | |
8266 | fd = creat ("conftest.mmap", 0600); | |
8267 | if (fd < 0) | |
7a197a62 | 8268 | return 1; |
ad6254c5 | 8269 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8270 | return 1; |
ad6254c5 AK |
8271 | close (fd); |
8272 | ||
8273 | /* Next, try to mmap the file at a fixed address which already has | |
8274 | something else allocated at it. If we can, also make sure that | |
8275 | we see the same garbage. */ | |
8276 | fd = open ("conftest.mmap", O_RDWR); | |
8277 | if (fd < 0) | |
7a197a62 | 8278 | return 1; |
ad6254c5 AK |
8279 | data2 = (char *) malloc (2 * pagesize); |
8280 | if (!data2) | |
7a197a62 AK |
8281 | return 1; |
8282 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8283 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8284 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8285 | return 1; |
ad6254c5 AK |
8286 | for (i = 0; i < pagesize; ++i) |
8287 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8288 | return 1; |
ad6254c5 AK |
8289 | |
8290 | /* Finally, make sure that changes to the mapped area do not | |
8291 | percolate back to the file as seen by read(). (This is a bug on | |
8292 | some variants of i386 svr4.0.) */ | |
8293 | for (i = 0; i < pagesize; ++i) | |
8294 | *(data2 + i) = *(data2 + i) + 1; | |
8295 | data3 = (char *) malloc (pagesize); | |
8296 | if (!data3) | |
7a197a62 | 8297 | return 1; |
ad6254c5 | 8298 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8299 | return 1; |
ad6254c5 AK |
8300 | for (i = 0; i < pagesize; ++i) |
8301 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8302 | return 1; |
ad6254c5 | 8303 | close (fd); |
7a197a62 | 8304 | return 0; |
ad6254c5 AK |
8305 | } |
8306 | _ACEOF | |
8307 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8308 | if { (ac_try="$ac_link" |
8309 | case "(($ac_try" in | |
8310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8311 | *) ac_try_echo=$ac_try;; | |
8312 | esac | |
ec6a6fbe AK |
8313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8314 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8315 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8316 | ac_status=$? |
ec6a6fbe | 8317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8318 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8319 | { (case "(($ac_try" in |
8320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8321 | *) ac_try_echo=$ac_try;; | |
8322 | esac | |
ec6a6fbe AK |
8323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8324 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8325 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8326 | ac_status=$? |
ec6a6fbe | 8327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8328 | (exit $ac_status); }; }; then |
8329 | ac_cv_func_mmap_fixed_mapped=yes | |
8330 | else | |
ec6a6fbe AK |
8331 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8332 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8333 | sed 's/^/| /' conftest.$ac_ext >&5 |
8334 | ||
8335 | ( exit $ac_status ) | |
8336 | ac_cv_func_mmap_fixed_mapped=no | |
8337 | fi | |
ec6a6fbe | 8338 | rm -rf conftest.dSYM |
7a197a62 | 8339 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8340 | fi |
7a197a62 AK |
8341 | |
8342 | ||
ad6254c5 | 8343 | fi |
ec6a6fbe AK |
8344 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8345 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8346 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8347 | ||
8348 | cat >>confdefs.h <<\_ACEOF | |
8349 | #define HAVE_MMAP 1 | |
8350 | _ACEOF | |
8351 | ||
8352 | fi | |
8353 | rm -f conftest.mmap | |
8354 | ||
ec6a6fbe AK |
8355 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8356 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8357 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8358 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8359 | else |
8360 | if test "$cross_compiling" = yes; then | |
8361 | ac_cv_func_stat_empty_string_bug=yes | |
8362 | else | |
8363 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8364 | /* confdefs.h. */ |
8365 | _ACEOF | |
8366 | cat confdefs.h >>conftest.$ac_ext | |
8367 | cat >>conftest.$ac_ext <<_ACEOF | |
8368 | /* end confdefs.h. */ | |
8369 | $ac_includes_default | |
8370 | int | |
8371 | main () | |
8372 | { | |
8373 | struct stat sbuf; | |
7a197a62 | 8374 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8375 | ; |
8376 | return 0; | |
8377 | } | |
8378 | _ACEOF | |
8379 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8380 | if { (ac_try="$ac_link" |
8381 | case "(($ac_try" in | |
8382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8383 | *) ac_try_echo=$ac_try;; | |
8384 | esac | |
ec6a6fbe AK |
8385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8386 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8387 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8388 | ac_status=$? |
ec6a6fbe | 8389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8391 | { (case "(($ac_try" in |
8392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8393 | *) ac_try_echo=$ac_try;; | |
8394 | esac | |
ec6a6fbe AK |
8395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8396 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8397 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8398 | ac_status=$? |
ec6a6fbe | 8399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8400 | (exit $ac_status); }; }; then |
7a197a62 | 8401 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8402 | else |
ec6a6fbe AK |
8403 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8404 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8405 | sed 's/^/| /' conftest.$ac_ext >&5 |
8406 | ||
8407 | ( exit $ac_status ) | |
7a197a62 | 8408 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8409 | fi |
ec6a6fbe | 8410 | rm -rf conftest.dSYM |
7a197a62 | 8411 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8412 | fi |
7a197a62 AK |
8413 | |
8414 | ||
ad6254c5 | 8415 | fi |
ec6a6fbe AK |
8416 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8417 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8418 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8419 | case " $LIBOBJS " in |
8a2fc586 | 8420 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8421 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8422 | ;; | |
8a2fc586 AK |
8423 | esac |
8424 | ||
ad6254c5 AK |
8425 | |
8426 | cat >>confdefs.h <<_ACEOF | |
8427 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8428 | _ACEOF | |
8429 | ||
8430 | fi | |
8431 | ||
ec6a6fbe AK |
8432 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8433 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8434 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8435 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8436 | else |
8437 | if test "$cross_compiling" = yes; then | |
8438 | ac_cv_func_strtod=no | |
8439 | else | |
8440 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8441 | /* confdefs.h. */ |
8442 | _ACEOF | |
8443 | cat confdefs.h >>conftest.$ac_ext | |
8444 | cat >>conftest.$ac_ext <<_ACEOF | |
8445 | /* end confdefs.h. */ | |
8446 | ||
7a197a62 AK |
8447 | $ac_includes_default |
8448 | #ifndef strtod | |
ad6254c5 | 8449 | double strtod (); |
7a197a62 | 8450 | #endif |
ad6254c5 AK |
8451 | int |
8452 | main() | |
8453 | { | |
8454 | { | |
8455 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8456 | char *string = " +69"; | |
8457 | char *term; | |
8458 | double value; | |
8459 | value = strtod (string, &term); | |
8460 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8461 | return 1; |
ad6254c5 AK |
8462 | } |
8463 | ||
8464 | { | |
8465 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8466 | terminating character under some conditions. */ | |
8467 | char *string = "NaN"; | |
8468 | char *term; | |
8469 | strtod (string, &term); | |
8470 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8471 | return 1; |
ad6254c5 | 8472 | } |
7a197a62 | 8473 | return 0; |
ad6254c5 AK |
8474 | } |
8475 | ||
8476 | _ACEOF | |
8477 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8478 | if { (ac_try="$ac_link" |
8479 | case "(($ac_try" in | |
8480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8481 | *) ac_try_echo=$ac_try;; | |
8482 | esac | |
ec6a6fbe AK |
8483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8484 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8485 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8486 | ac_status=$? |
ec6a6fbe | 8487 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8488 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8489 | { (case "(($ac_try" in |
8490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8491 | *) ac_try_echo=$ac_try;; | |
8492 | esac | |
ec6a6fbe AK |
8493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8494 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8495 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8496 | ac_status=$? |
ec6a6fbe | 8497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8498 | (exit $ac_status); }; }; then |
8499 | ac_cv_func_strtod=yes | |
8500 | else | |
ec6a6fbe AK |
8501 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8502 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8503 | sed 's/^/| /' conftest.$ac_ext >&5 |
8504 | ||
8505 | ( exit $ac_status ) | |
8506 | ac_cv_func_strtod=no | |
8507 | fi | |
ec6a6fbe | 8508 | rm -rf conftest.dSYM |
7a197a62 | 8509 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8510 | fi |
7a197a62 AK |
8511 | |
8512 | ||
ad6254c5 | 8513 | fi |
ec6a6fbe AK |
8514 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8515 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8516 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8517 | case " $LIBOBJS " in |
8a2fc586 | 8518 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8519 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8520 | ;; | |
8a2fc586 AK |
8521 | esac |
8522 | ||
ec6a6fbe AK |
8523 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8524 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8525 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8526 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8527 | else |
8528 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8529 | /* confdefs.h. */ |
8530 | _ACEOF | |
8531 | cat confdefs.h >>conftest.$ac_ext | |
8532 | cat >>conftest.$ac_ext <<_ACEOF | |
8533 | /* end confdefs.h. */ | |
8a2fc586 AK |
8534 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8535 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8536 | #define pow innocuous_pow | |
8537 | ||
ad6254c5 AK |
8538 | /* System header to define __stub macros and hopefully few prototypes, |
8539 | which can conflict with char pow (); below. | |
8540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8541 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8542 | |
ad6254c5 AK |
8543 | #ifdef __STDC__ |
8544 | # include <limits.h> | |
8545 | #else | |
8546 | # include <assert.h> | |
8547 | #endif | |
8a2fc586 AK |
8548 | |
8549 | #undef pow | |
8550 | ||
7a197a62 AK |
8551 | /* Override any GCC internal prototype to avoid an error. |
8552 | Use char because int might match the return type of a GCC | |
8553 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8554 | #ifdef __cplusplus |
8555 | extern "C" | |
ad6254c5 | 8556 | #endif |
ad6254c5 AK |
8557 | char pow (); |
8558 | /* The GNU C library defines this for functions which it implements | |
8559 | to always fail with ENOSYS. Some functions are actually named | |
8560 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8561 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8562 | choke me |
ad6254c5 AK |
8563 | #endif |
8564 | ||
8565 | int | |
8566 | main () | |
8567 | { | |
7a197a62 | 8568 | return pow (); |
ad6254c5 AK |
8569 | ; |
8570 | return 0; | |
8571 | } | |
8572 | _ACEOF | |
8573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8574 | if { (ac_try="$ac_link" |
8575 | case "(($ac_try" in | |
8576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8577 | *) ac_try_echo=$ac_try;; | |
8578 | esac | |
ec6a6fbe AK |
8579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8580 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8581 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8582 | ac_status=$? |
8a2fc586 AK |
8583 | grep -v '^ *+' conftest.er1 >conftest.err |
8584 | rm -f conftest.er1 | |
8585 | cat conftest.err >&5 | |
ec6a6fbe | 8586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8587 | (exit $ac_status); } && { |
8588 | test -z "$ac_c_werror_flag" || | |
8589 | test ! -s conftest.err | |
ec6a6fbe AK |
8590 | } && test -s conftest$ac_exeext && { |
8591 | test "$cross_compiling" = yes || | |
8592 | $as_test_x conftest$ac_exeext | |
8593 | }; then | |
ad6254c5 AK |
8594 | ac_cv_func_pow=yes |
8595 | else | |
ec6a6fbe | 8596 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8597 | sed 's/^/| /' conftest.$ac_ext >&5 |
8598 | ||
7a197a62 | 8599 | ac_cv_func_pow=no |
ad6254c5 | 8600 | fi |
7a197a62 | 8601 | |
ec6a6fbe | 8602 | rm -rf conftest.dSYM |
25fbec5b | 8603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8604 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8605 | fi |
ec6a6fbe AK |
8606 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8607 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8608 | |
8609 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8610 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8611 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8612 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8613 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8614 | else |
8615 | ac_check_lib_save_LIBS=$LIBS | |
8616 | LIBS="-lm $LIBS" | |
8617 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8618 | /* confdefs.h. */ |
8619 | _ACEOF | |
8620 | cat confdefs.h >>conftest.$ac_ext | |
8621 | cat >>conftest.$ac_ext <<_ACEOF | |
8622 | /* end confdefs.h. */ | |
8623 | ||
7a197a62 AK |
8624 | /* Override any GCC internal prototype to avoid an error. |
8625 | Use char because int might match the return type of a GCC | |
8626 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8627 | #ifdef __cplusplus |
8628 | extern "C" | |
8629 | #endif | |
ad6254c5 AK |
8630 | char pow (); |
8631 | int | |
8632 | main () | |
8633 | { | |
7a197a62 | 8634 | return pow (); |
ad6254c5 AK |
8635 | ; |
8636 | return 0; | |
8637 | } | |
8638 | _ACEOF | |
8639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8640 | if { (ac_try="$ac_link" |
8641 | case "(($ac_try" in | |
8642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8643 | *) ac_try_echo=$ac_try;; | |
8644 | esac | |
ec6a6fbe AK |
8645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8646 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8647 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8648 | ac_status=$? |
8a2fc586 AK |
8649 | grep -v '^ *+' conftest.er1 >conftest.err |
8650 | rm -f conftest.er1 | |
8651 | cat conftest.err >&5 | |
ec6a6fbe | 8652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8653 | (exit $ac_status); } && { |
8654 | test -z "$ac_c_werror_flag" || | |
8655 | test ! -s conftest.err | |
ec6a6fbe AK |
8656 | } && test -s conftest$ac_exeext && { |
8657 | test "$cross_compiling" = yes || | |
8658 | $as_test_x conftest$ac_exeext | |
8659 | }; then | |
ad6254c5 AK |
8660 | ac_cv_lib_m_pow=yes |
8661 | else | |
ec6a6fbe | 8662 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8663 | sed 's/^/| /' conftest.$ac_ext >&5 |
8664 | ||
7a197a62 | 8665 | ac_cv_lib_m_pow=no |
ad6254c5 | 8666 | fi |
7a197a62 | 8667 | |
ec6a6fbe | 8668 | rm -rf conftest.dSYM |
25fbec5b | 8669 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8670 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8671 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8672 | fi |
ec6a6fbe AK |
8673 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8674 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8675 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8676 | POW_LIB=-lm |
8677 | else | |
ec6a6fbe AK |
8678 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8679 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8680 | fi |
72b2cb61 | 8681 | |
d0191583 | 8682 | fi |
72b2cb61 | 8683 | |
ad6254c5 AK |
8684 | fi |
8685 | ||
ad6254c5 | 8686 | |
d0191583 JM |
8687 | for ac_func in vprintf |
8688 | do | |
ec6a6fbe AK |
8689 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8690 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8691 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8692 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8693 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8694 | else |
d0191583 JM |
8695 | cat >conftest.$ac_ext <<_ACEOF |
8696 | /* confdefs.h. */ | |
8697 | _ACEOF | |
8698 | cat confdefs.h >>conftest.$ac_ext | |
8699 | cat >>conftest.$ac_ext <<_ACEOF | |
8700 | /* end confdefs.h. */ | |
8701 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8703 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8704 | |
d0191583 JM |
8705 | /* System header to define __stub macros and hopefully few prototypes, |
8706 | which can conflict with char $ac_func (); below. | |
8707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8708 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8709 | |
d0191583 JM |
8710 | #ifdef __STDC__ |
8711 | # include <limits.h> | |
8712 | #else | |
8713 | # include <assert.h> | |
8714 | #endif | |
ad6254c5 | 8715 | |
d0191583 | 8716 | #undef $ac_func |
72b2cb61 | 8717 | |
d0191583 JM |
8718 | /* Override any GCC internal prototype to avoid an error. |
8719 | Use char because int might match the return type of a GCC | |
8720 | builtin and then its argument prototype would still apply. */ | |
8721 | #ifdef __cplusplus | |
8722 | extern "C" | |
8723 | #endif | |
8724 | char $ac_func (); | |
8725 | /* The GNU C library defines this for functions which it implements | |
8726 | to always fail with ENOSYS. Some functions are actually named | |
8727 | something starting with __ and the normal name is an alias. */ | |
8728 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8729 | choke me | |
8730 | #endif | |
8731 | ||
8732 | int | |
8733 | main () | |
8734 | { | |
8735 | return $ac_func (); | |
8736 | ; | |
8737 | return 0; | |
8738 | } | |
72b2cb61 | 8739 | _ACEOF |
d0191583 JM |
8740 | rm -f conftest.$ac_objext conftest$ac_exeext |
8741 | if { (ac_try="$ac_link" | |
8742 | case "(($ac_try" in | |
8743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8744 | *) ac_try_echo=$ac_try;; | |
8745 | esac | |
ec6a6fbe AK |
8746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8747 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8748 | (eval "$ac_link") 2>conftest.er1 |
8749 | ac_status=$? | |
8750 | grep -v '^ *+' conftest.er1 >conftest.err | |
8751 | rm -f conftest.er1 | |
8752 | cat conftest.err >&5 | |
ec6a6fbe | 8753 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8754 | (exit $ac_status); } && { |
8755 | test -z "$ac_c_werror_flag" || | |
8756 | test ! -s conftest.err | |
ec6a6fbe AK |
8757 | } && test -s conftest$ac_exeext && { |
8758 | test "$cross_compiling" = yes || | |
8759 | $as_test_x conftest$ac_exeext | |
8760 | }; then | |
d0191583 JM |
8761 | eval "$as_ac_var=yes" |
8762 | else | |
ec6a6fbe | 8763 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8764 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8765 | |
d0191583 | 8766 | eval "$as_ac_var=no" |
ad6254c5 AK |
8767 | fi |
8768 | ||
ec6a6fbe | 8769 | rm -rf conftest.dSYM |
d0191583 JM |
8770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8771 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8772 | fi |
ec6a6fbe AK |
8773 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8774 | $as_echo "$as_val"'` | |
8775 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8776 | $as_echo "$ac_res" >&6; } | |
8777 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8778 | $as_echo "$as_val"'` | |
8779 | if test "x$as_val" = x""yes; then | |
d0191583 | 8780 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8781 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8782 | _ACEOF |
7a197a62 | 8783 | |
ec6a6fbe AK |
8784 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8785 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8786 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8787 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8788 | else |
d0191583 JM |
8789 | cat >conftest.$ac_ext <<_ACEOF |
8790 | /* confdefs.h. */ | |
8791 | _ACEOF | |
8792 | cat confdefs.h >>conftest.$ac_ext | |
8793 | cat >>conftest.$ac_ext <<_ACEOF | |
8794 | /* end confdefs.h. */ | |
8795 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8796 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8797 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8798 | |
d0191583 JM |
8799 | /* System header to define __stub macros and hopefully few prototypes, |
8800 | which can conflict with char _doprnt (); below. | |
8801 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8802 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8803 | |
d0191583 JM |
8804 | #ifdef __STDC__ |
8805 | # include <limits.h> | |
8806 | #else | |
8807 | # include <assert.h> | |
8808 | #endif | |
72b2cb61 | 8809 | |
d0191583 JM |
8810 | #undef _doprnt |
8811 | ||
8812 | /* Override any GCC internal prototype to avoid an error. | |
8813 | Use char because int might match the return type of a GCC | |
8814 | builtin and then its argument prototype would still apply. */ | |
8815 | #ifdef __cplusplus | |
8816 | extern "C" | |
8817 | #endif | |
8818 | char _doprnt (); | |
8819 | /* The GNU C library defines this for functions which it implements | |
8820 | to always fail with ENOSYS. Some functions are actually named | |
8821 | something starting with __ and the normal name is an alias. */ | |
8822 | #if defined __stub__doprnt || defined __stub____doprnt | |
8823 | choke me | |
8824 | #endif | |
8825 | ||
8826 | int | |
8827 | main () | |
8828 | { | |
8829 | return _doprnt (); | |
8830 | ; | |
8831 | return 0; | |
8832 | } | |
72b2cb61 | 8833 | _ACEOF |
d0191583 JM |
8834 | rm -f conftest.$ac_objext conftest$ac_exeext |
8835 | if { (ac_try="$ac_link" | |
8836 | case "(($ac_try" in | |
8837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8838 | *) ac_try_echo=$ac_try;; | |
8839 | esac | |
ec6a6fbe AK |
8840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8841 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8842 | (eval "$ac_link") 2>conftest.er1 |
8843 | ac_status=$? | |
8844 | grep -v '^ *+' conftest.er1 >conftest.err | |
8845 | rm -f conftest.er1 | |
8846 | cat conftest.err >&5 | |
ec6a6fbe | 8847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8848 | (exit $ac_status); } && { |
8849 | test -z "$ac_c_werror_flag" || | |
8850 | test ! -s conftest.err | |
ec6a6fbe AK |
8851 | } && test -s conftest$ac_exeext && { |
8852 | test "$cross_compiling" = yes || | |
8853 | $as_test_x conftest$ac_exeext | |
8854 | }; then | |
d0191583 JM |
8855 | ac_cv_func__doprnt=yes |
8856 | else | |
ec6a6fbe | 8857 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8858 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8859 | |
d0191583 | 8860 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8861 | fi |
8862 | ||
ec6a6fbe | 8863 | rm -rf conftest.dSYM |
d0191583 JM |
8864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8865 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8866 | fi |
ec6a6fbe AK |
8867 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8868 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8869 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8870 | |
d0191583 JM |
8871 | cat >>confdefs.h <<\_ACEOF |
8872 | #define HAVE_DOPRNT 1 | |
8873 | _ACEOF | |
ad6254c5 | 8874 | |
7a197a62 AK |
8875 | fi |
8876 | ||
d0191583 JM |
8877 | fi |
8878 | done | |
8b1a3214 | 8879 | |
ad6254c5 | 8880 | |
7a197a62 | 8881 | |
9c961554 | 8882 | ################################################################################ |
ec6a6fbe AK |
8883 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8884 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8885 | # Check whether --enable-static_link was given. |
8886 | if test "${enable_static_link+set}" = set; then | |
8887 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8888 | else | |
8889 | STATIC_LINK=no | |
8890 | fi | |
8891 | ||
ec6a6fbe AK |
8892 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8893 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8894 | |
d0191583 | 8895 | ################################################################################ |
ad6254c5 | 8896 | |
ad6254c5 AK |
8897 | |
8898 | ################################################################################ | |
ec6a6fbe AK |
8899 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8900 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8901 | OWNER="root" |
8902 | ||
8903 | ||
8904 | # Check whether --with-user was given. | |
8905 | if test "${with_user+set}" = set; then | |
8906 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8907 | fi |
8908 | ||
ec6a6fbe AK |
8909 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8910 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8911 | |
d0191583 JM |
8912 | if test x$OWNER != x; then |
8913 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8914 | fi |
8915 | ||
8916 | ################################################################################ | |
ec6a6fbe AK |
8917 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8918 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8919 | GROUP="root" |
ad6254c5 | 8920 | |
d0191583 JM |
8921 | # Check whether --with-group was given. |
8922 | if test "${with_group+set}" = set; then | |
8923 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8924 | fi |
8925 | ||
ec6a6fbe AK |
8926 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8927 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8928 | |
8929 | if test x$GROUP != x; then | |
8930 | GROUP="-g $GROUP" | |
8931 | fi | |
ad6254c5 | 8932 | |
24bbc4d7 | 8933 | ################################################################################ |
ec6a6fbe AK |
8934 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
8935 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
8936 | |
8937 | ||
8938 | # Check whether --with-device-uid was given. | |
8939 | if test "${with_device_uid+set}" = set; then | |
8940 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8941 | else | |
8942 | DM_DEVICE_UID="0" | |
8943 | fi | |
8944 | ||
ec6a6fbe AK |
8945 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
8946 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
8947 | |
8948 | ################################################################################ | |
ec6a6fbe AK |
8949 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
8950 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
8951 | |
8952 | ||
8953 | # Check whether --with-device-gid was given. | |
8954 | if test "${with_device_gid+set}" = set; then | |
8955 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8956 | else | |
8957 | DM_DEVICE_GID="0" | |
8958 | fi | |
8959 | ||
ec6a6fbe AK |
8960 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
8961 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 8962 | |
93bd259b | 8963 | ################################################################################ |
ec6a6fbe AK |
8964 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
8965 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
8966 | |
8967 | ||
8968 | # Check whether --with-device-mode was given. | |
8969 | if test "${with_device_mode+set}" = set; then | |
8970 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8971 | else | |
8972 | DM_DEVICE_MODE="0600" | |
8973 | fi | |
8974 | ||
ec6a6fbe AK |
8975 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
8976 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 8977 | |
ad6254c5 | 8978 | ################################################################################ |
ec6a6fbe AK |
8979 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8980 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
8981 | # Check whether --enable-lvm1_fallback was given. |
8982 | if test "${enable_lvm1_fallback+set}" = set; then | |
8983 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8984 | else | |
8985 | LVM1_FALLBACK=no | |
7a197a62 AK |
8986 | fi |
8987 | ||
ec6a6fbe AK |
8988 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8989 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8990 | |
d0191583 | 8991 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8992 | |
8993 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8994 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8995 | _ACEOF |
8996 | ||
ad6254c5 AK |
8997 | fi |
8998 | ||
8999 | ################################################################################ | |
ec6a6fbe AK |
9000 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9001 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9002 | |
9003 | # Check whether --with-lvm1 was given. | |
9004 | if test "${with_lvm1+set}" = set; then | |
9005 | withval=$with_lvm1; LVM1="$withval" | |
9006 | else | |
9007 | LVM1="internal" | |
7a197a62 AK |
9008 | fi |
9009 | ||
ec6a6fbe AK |
9010 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9011 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9012 | |
d0191583 | 9013 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9014 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9015 | " >&5 |
ec6a6fbe | 9016 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9017 | " >&2;} |
9018 | { (exit 1); exit 1; }; } | |
9019 | fi; | |
9020 | ||
9021 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9022 | |
9023 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9024 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9025 | _ACEOF |
9026 | ||
ad6254c5 AK |
9027 | fi |
9028 | ||
9029 | ################################################################################ | |
ec6a6fbe AK |
9030 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9031 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9032 | |
9033 | # Check whether --with-pool was given. | |
9034 | if test "${with_pool+set}" = set; then | |
9035 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9036 | else |
d0191583 | 9037 | POOL="internal" |
7a197a62 AK |
9038 | fi |
9039 | ||
ec6a6fbe AK |
9040 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9041 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9042 | |
d0191583 | 9043 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9044 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9045 | " >&5 |
ec6a6fbe | 9046 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9047 | " >&2;} |
9048 | { (exit 1); exit 1; }; } | |
9049 | fi; | |
7a197a62 | 9050 | |
d0191583 JM |
9051 | if test x$POOL = xinternal; then |
9052 | ||
9053 | cat >>confdefs.h <<\_ACEOF | |
9054 | #define POOL_INTERNAL 1 | |
9055 | _ACEOF | |
9056 | ||
9057 | fi | |
ad6254c5 | 9058 | |
06f62ad1 | 9059 | ################################################################################ |
ec6a6fbe AK |
9060 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9061 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9062 | |
9063 | # Check whether --with-cluster was given. | |
9064 | if test "${with_cluster+set}" = set; then | |
9065 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9066 | fi |
9067 | ||
ec6a6fbe AK |
9068 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9069 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9070 | |
d0191583 | 9071 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9072 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9073 | " >&5 |
ec6a6fbe | 9074 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9075 | " >&2;} |
9076 | { (exit 1); exit 1; }; } | |
d0191583 | 9077 | fi; |
06f62ad1 | 9078 | |
d0191583 | 9079 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9080 | |
9081 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9082 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9083 | _ACEOF |
9084 | ||
15d91f5a | 9085 | fi |
ad6254c5 AK |
9086 | |
9087 | ################################################################################ | |
ec6a6fbe AK |
9088 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9089 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9090 | |
d0191583 JM |
9091 | # Check whether --with-snapshots was given. |
9092 | if test "${with_snapshots+set}" = set; then | |
9093 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9094 | else | |
9095 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9096 | fi |
9097 | ||
ec6a6fbe AK |
9098 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9099 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9100 | |
d0191583 | 9101 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9102 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9103 | " >&5 |
ec6a6fbe | 9104 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9105 | " >&2;} |
9106 | { (exit 1); exit 1; }; } | |
9107 | fi; | |
9108 | ||
9109 | if test x$SNAPSHOTS = xinternal; then | |
9110 | ||
9111 | cat >>confdefs.h <<\_ACEOF | |
9112 | #define SNAPSHOT_INTERNAL 1 | |
9113 | _ACEOF | |
ad6254c5 | 9114 | |
ad6254c5 | 9115 | fi |
7a197a62 | 9116 | |
d0191583 | 9117 | ################################################################################ |
ec6a6fbe AK |
9118 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9119 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9120 | |
9121 | # Check whether --with-mirrors was given. | |
9122 | if test "${with_mirrors+set}" = set; then | |
9123 | withval=$with_mirrors; MIRRORS="$withval" | |
9124 | else | |
9125 | MIRRORS="internal" | |
ad6254c5 | 9126 | fi |
ad6254c5 | 9127 | |
ec6a6fbe AK |
9128 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9129 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9130 | |
d0191583 | 9131 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9132 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9133 | " >&5 |
ec6a6fbe | 9134 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9135 | " >&2;} |
9136 | { (exit 1); exit 1; }; } | |
9137 | fi; | |
ad6254c5 | 9138 | |
d0191583 | 9139 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9140 | |
d0191583 JM |
9141 | cat >>confdefs.h <<\_ACEOF |
9142 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9143 | _ACEOF |
8a2fc586 | 9144 | |
d0191583 | 9145 | fi |
8a2fc586 | 9146 | |
d0191583 | 9147 | ################################################################################ |
ec6a6fbe AK |
9148 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9149 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9150 | # Check whether --enable-readline was given. |
9151 | if test "${enable_readline+set}" = set; then | |
9152 | enableval=$enable_readline; READLINE=$enableval | |
9153 | else | |
06e459df | 9154 | READLINE=maybe |
d0191583 | 9155 | fi |
8a2fc586 | 9156 | |
ec6a6fbe AK |
9157 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9158 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9159 | |
d0191583 | 9160 | ################################################################################ |
ec6a6fbe AK |
9161 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9162 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9163 | # Check whether --enable-realtime was given. |
9164 | if test "${enable_realtime+set}" = set; then | |
9165 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9166 | fi |
ad6254c5 | 9167 | |
ec6a6fbe AK |
9168 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9169 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9170 | |
9171 | ################################################################################ | |
ec6a6fbe AK |
9172 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
9173 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
9174 | |
9175 | # Check whether --with-clvmd was given. | |
9176 | if test "${with_clvmd+set}" = set; then | |
9177 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 9178 | else |
d0191583 JM |
9179 | CLVMD="none" |
9180 | fi | |
8a2fc586 | 9181 | |
d0191583 JM |
9182 | if test x$CLVMD = xyes; then |
9183 | CLVMD=all | |
9184 | fi | |
ec6a6fbe AK |
9185 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
9186 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 9187 | |
d0191583 JM |
9188 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
9189 | CLUSTER=internal | |
9190 | fi | |
8a2fc586 | 9191 | |
e2997b73 AK |
9192 | if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then |
9193 | ||
9194 | ||
9195 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9196 | if test -n "$ac_tool_prefix"; then | |
9197 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9198 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9199 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9200 | $as_echo_n "checking for $ac_word... " >&6; } | |
9201 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9202 | $as_echo_n "(cached) " >&6 | |
9203 | else | |
9204 | case $PKG_CONFIG in | |
9205 | [\\/]* | ?:[\\/]*) | |
9206 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9207 | ;; | |
9208 | *) | |
9209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9210 | for as_dir in $PATH | |
9211 | do | |
9212 | IFS=$as_save_IFS | |
9213 | test -z "$as_dir" && as_dir=. | |
9214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9216 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9217 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9218 | break 2 | |
9219 | fi | |
9220 | done | |
9221 | done | |
9222 | IFS=$as_save_IFS | |
9223 | ||
9224 | ;; | |
9225 | esac | |
9226 | fi | |
9227 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9228 | if test -n "$PKG_CONFIG"; then | |
9229 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9230 | $as_echo "$PKG_CONFIG" >&6; } | |
9231 | else | |
9232 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9233 | $as_echo "no" >&6; } | |
9234 | fi | |
9235 | ||
9236 | ||
9237 | fi | |
9238 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9239 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9240 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9241 | set dummy pkg-config; ac_word=$2 | |
9242 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9243 | $as_echo_n "checking for $ac_word... " >&6; } | |
9244 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9245 | $as_echo_n "(cached) " >&6 | |
9246 | else | |
9247 | case $ac_pt_PKG_CONFIG in | |
9248 | [\\/]* | ?:[\\/]*) | |
9249 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9250 | ;; | |
9251 | *) | |
9252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9253 | for as_dir in $PATH | |
9254 | do | |
9255 | IFS=$as_save_IFS | |
9256 | test -z "$as_dir" && as_dir=. | |
9257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9259 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9260 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9261 | break 2 | |
9262 | fi | |
9263 | done | |
9264 | done | |
9265 | IFS=$as_save_IFS | |
9266 | ||
9267 | ;; | |
9268 | esac | |
9269 | fi | |
9270 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9271 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9272 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9273 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9274 | else | |
9275 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9276 | $as_echo "no" >&6; } | |
9277 | fi | |
9278 | ||
9279 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9280 | PKG_CONFIG="" | |
9281 | else | |
9282 | case $cross_compiling:$ac_tool_warned in | |
9283 | yes:) | |
9284 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9286 | ac_tool_warned=yes ;; | |
9287 | esac | |
9288 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9289 | fi | |
9290 | else | |
9291 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9292 | fi | |
9293 | ||
9294 | fi | |
9295 | if test -n "$PKG_CONFIG"; then | |
9296 | _pkg_min_version=0.9.0 | |
9297 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9298 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9299 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9300 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9301 | $as_echo "yes" >&6; } | |
9302 | else | |
9303 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9304 | $as_echo "no" >&6; } | |
9305 | PKG_CONFIG="" | |
9306 | fi | |
9307 | ||
9308 | fi | |
9309 | ||
9310 | pkg_failed=no | |
9311 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
9312 | $as_echo_n "checking for QUORUM... " >&6; } | |
9313 | ||
9314 | if test -n "$QUORUM_CFLAGS"; then | |
9315 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
9316 | elif test -n "$PKG_CONFIG"; then | |
9317 | if test -n "$PKG_CONFIG" && \ | |
9318 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9319 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9320 | ac_status=$? | |
9321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9322 | (exit $ac_status); }; then | |
9323 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
9324 | else | |
9325 | pkg_failed=yes | |
9326 | fi | |
9327 | else | |
9328 | pkg_failed=untried | |
9329 | fi | |
9330 | if test -n "$QUORUM_LIBS"; then | |
9331 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
9332 | elif test -n "$PKG_CONFIG"; then | |
9333 | if test -n "$PKG_CONFIG" && \ | |
9334 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9335 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9336 | ac_status=$? | |
9337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9338 | (exit $ac_status); }; then | |
9339 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
9340 | else | |
9341 | pkg_failed=yes | |
9342 | fi | |
9343 | else | |
9344 | pkg_failed=untried | |
9345 | fi | |
9346 | ||
9347 | ||
9348 | ||
9349 | if test $pkg_failed = yes; then | |
9350 | ||
9351 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9352 | _pkg_short_errors_supported=yes | |
9353 | else | |
9354 | _pkg_short_errors_supported=no | |
9355 | fi | |
9356 | if test $_pkg_short_errors_supported = yes; then | |
9357 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
9358 | else | |
9359 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
9360 | fi | |
9361 | # Put the nasty error message in config.log where it belongs | |
9362 | echo "$QUORUM_PKG_ERRORS" >&5 | |
9363 | ||
9364 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9365 | $as_echo "no" >&6; } | |
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 | elif test $pkg_failed = untried; then | |
9370 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9371 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9372 | QUORUM_LIBS="-lquorum" | |
9373 | else | |
9374 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
9375 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
9376 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9377 | $as_echo "yes" >&6; } | |
9378 | : | |
9379 | fi | |
9380 | ||
9381 | pkg_failed=no | |
9382 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
9383 | $as_echo_n "checking for CONFDB... " >&6; } | |
9384 | ||
9385 | if test -n "$CONFDB_CFLAGS"; then | |
9386 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
9387 | elif test -n "$PKG_CONFIG"; then | |
9388 | if test -n "$PKG_CONFIG" && \ | |
9389 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9390 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9391 | ac_status=$? | |
9392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9393 | (exit $ac_status); }; then | |
9394 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
9395 | else | |
9396 | pkg_failed=yes | |
9397 | fi | |
9398 | else | |
9399 | pkg_failed=untried | |
9400 | fi | |
9401 | if test -n "$CONFDB_LIBS"; then | |
9402 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
9403 | elif test -n "$PKG_CONFIG"; then | |
9404 | if test -n "$PKG_CONFIG" && \ | |
9405 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9406 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9407 | ac_status=$? | |
9408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9409 | (exit $ac_status); }; then | |
9410 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
9411 | else | |
9412 | pkg_failed=yes | |
9413 | fi | |
9414 | else | |
9415 | pkg_failed=untried | |
9416 | fi | |
9417 | ||
9418 | ||
9419 | ||
9420 | if test $pkg_failed = yes; then | |
9421 | ||
9422 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9423 | _pkg_short_errors_supported=yes | |
9424 | else | |
9425 | _pkg_short_errors_supported=no | |
9426 | fi | |
9427 | if test $_pkg_short_errors_supported = yes; then | |
9428 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
9429 | else | |
9430 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
9431 | fi | |
9432 | # Put the nasty error message in config.log where it belongs | |
9433 | echo "$CONFDB_PKG_ERRORS" >&5 | |
9434 | ||
9435 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9436 | $as_echo "no" >&6; } | |
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 | elif test $pkg_failed = untried; then | |
9441 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9442 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9443 | CONFDB_LIBS="-lconfdb" | |
9444 | else | |
9445 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
9446 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
9447 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9448 | $as_echo "yes" >&6; } | |
9449 | : | |
9450 | fi | |
9451 | ||
9452 | pkg_failed=no | |
9453 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
9454 | $as_echo_n "checking for CPG... " >&6; } | |
9455 | ||
9456 | if test -n "$CPG_CFLAGS"; then | |
9457 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
9458 | elif test -n "$PKG_CONFIG"; then | |
9459 | if test -n "$PKG_CONFIG" && \ | |
9460 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9461 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9462 | ac_status=$? | |
9463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9464 | (exit $ac_status); }; then | |
9465 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
9466 | else | |
9467 | pkg_failed=yes | |
9468 | fi | |
9469 | else | |
9470 | pkg_failed=untried | |
9471 | fi | |
9472 | if test -n "$CPG_LIBS"; then | |
9473 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
9474 | elif test -n "$PKG_CONFIG"; then | |
9475 | if test -n "$PKG_CONFIG" && \ | |
9476 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9477 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9478 | ac_status=$? | |
9479 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9480 | (exit $ac_status); }; then | |
9481 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
9482 | else | |
9483 | pkg_failed=yes | |
9484 | fi | |
9485 | else | |
9486 | pkg_failed=untried | |
9487 | fi | |
9488 | ||
9489 | ||
9490 | ||
9491 | if test $pkg_failed = yes; then | |
9492 | ||
9493 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9494 | _pkg_short_errors_supported=yes | |
9495 | else | |
9496 | _pkg_short_errors_supported=no | |
9497 | fi | |
9498 | if test $_pkg_short_errors_supported = yes; then | |
9499 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
9500 | else | |
9501 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
9502 | fi | |
9503 | # Put the nasty error message in config.log where it belongs | |
9504 | echo "$CPG_PKG_ERRORS" >&5 | |
9505 | ||
9506 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9507 | $as_echo "no" >&6; } | |
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 | elif test $pkg_failed = untried; then | |
9512 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9513 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9514 | CPG_LIBS="-lcpg" | |
9515 | else | |
9516 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
9517 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
9518 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9519 | $as_echo "yes" >&6; } | |
9520 | : | |
9521 | fi | |
9522 | fi | |
9523 | ||
d0191583 | 9524 | ################################################################################ |
ec6a6fbe AK |
9525 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
9526 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
d0191583 JM |
9527 | # Check whether --enable-debug was given. |
9528 | if test "${enable_debug+set}" = set; then | |
9529 | enableval=$enable_debug; DEBUG=$enableval | |
9530 | else | |
9531 | DEBUG=no | |
9532 | fi | |
8a2fc586 | 9533 | |
ec6a6fbe AK |
9534 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
9535 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 | 9536 | |
d0191583 JM |
9537 | if test x$DEBUG = xyes; then |
9538 | COPTIMISE_FLAG= | |
fc54be10 | 9539 | else |
d0191583 JM |
9540 | CSCOPE_CMD= |
9541 | fi | |
fc54be10 | 9542 | |
d0191583 | 9543 | ################################################################################ |
ec6a6fbe AK |
9544 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
9545 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
d0191583 JM |
9546 | |
9547 | # Check whether --with-optimisation was given. | |
9548 | if test "${with_optimisation+set}" = set; then | |
9549 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
9550 | fi | |
9551 | ||
ec6a6fbe AK |
9552 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
9553 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
9554 | |
9555 | ################################################################################ | |
ec6a6fbe AK |
9556 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
9557 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
fddafd51 ZK |
9558 | # Check whether --enable-profiling was given. |
9559 | if test "${enable_profiling+set}" = set; then | |
5556819a | 9560 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 9561 | else |
5556819a | 9562 | PROFILING=no |
fddafd51 ZK |
9563 | fi |
9564 | ||
ec6a6fbe AK |
9565 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
9566 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
9567 | |
9568 | if test "x$PROFILING" = xyes; then | |
9569 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
9570 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 9571 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
9572 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9573 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9574 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 9575 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9576 | else |
9577 | case $LCOV in | |
9578 | [\\/]* | ?:[\\/]*) | |
9579 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
9580 | ;; | |
9581 | *) | |
9582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9583 | for as_dir in $PATH | |
9584 | do | |
9585 | IFS=$as_save_IFS | |
9586 | test -z "$as_dir" && as_dir=. | |
9587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9589 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9590 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9591 | break 2 |
9592 | fi | |
9593 | done | |
9594 | done | |
9595 | IFS=$as_save_IFS | |
9596 | ||
b145d876 | 9597 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
9598 | ;; |
9599 | esac | |
9600 | fi | |
9601 | LCOV=$ac_cv_path_LCOV | |
9602 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
9603 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
9604 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 9605 | else |
ec6a6fbe AK |
9606 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9607 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9608 | fi |
9609 | ||
9610 | ||
5556819a | 9611 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 9612 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
9613 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9614 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9615 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 9616 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9617 | else |
9618 | case $GENHTML in | |
9619 | [\\/]* | ?:[\\/]*) | |
9620 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
9621 | ;; | |
9622 | *) | |
9623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9624 | for as_dir in $PATH | |
9625 | do | |
9626 | IFS=$as_save_IFS | |
9627 | test -z "$as_dir" && as_dir=. | |
9628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9630 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9631 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9632 | break 2 |
9633 | fi | |
9634 | done | |
9635 | done | |
9636 | IFS=$as_save_IFS | |
9637 | ||
b145d876 | 9638 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
9639 | ;; |
9640 | esac | |
9641 | fi | |
9642 | GENHTML=$ac_cv_path_GENHTML | |
9643 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
9644 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
9645 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 9646 | else |
ec6a6fbe AK |
9647 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9648 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9649 | fi |
9650 | ||
9651 | ||
b145d876 | 9652 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
9653 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
9654 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
9655 | { (exit 1); exit 1; }; } |
9656 | fi | |
5556819a | 9657 | fi |
d0191583 JM |
9658 | |
9659 | ################################################################################ | |
ec6a6fbe AK |
9660 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
9661 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
9662 | # Check whether --enable-devmapper was given. |
9663 | if test "${enable_devmapper+set}" = set; then | |
9664 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
9665 | fi |
9666 | ||
ec6a6fbe AK |
9667 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
9668 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
9669 | |
9670 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
9671 | |
9672 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9673 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
9674 | _ACEOF |
9675 | ||
9676 | fi | |
9677 | ||
93bd259b AK |
9678 | ################################################################################ |
9679 | # Check whether --enable-compat was given. | |
9680 | if test "${enable_compat+set}" = set; then | |
9681 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9682 | else | |
9683 | DM_COMPAT=no | |
9684 | fi | |
9685 | ||
9686 | ||
9687 | ################################################################################ | |
9688 | # Check whether --enable-ioctl was given. | |
9689 | if test "${enable_ioctl+set}" = set; then | |
9690 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
9691 | fi | |
9692 | ||
9693 | ||
d0191583 | 9694 | ################################################################################ |
ec6a6fbe AK |
9695 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
9696 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
9697 | # Check whether --enable-o_direct was given. |
9698 | if test "${enable_o_direct+set}" = set; then | |
9699 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 9700 | fi |
ad6254c5 | 9701 | |
ec6a6fbe AK |
9702 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
9703 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 9704 | |
d0191583 | 9705 | if test x$ODIRECT = xyes; then |
ad6254c5 | 9706 | |
d0191583 JM |
9707 | cat >>confdefs.h <<\_ACEOF |
9708 | #define O_DIRECT_SUPPORT 1 | |
9709 | _ACEOF | |
ad6254c5 | 9710 | |
d0191583 | 9711 | fi |
ad6254c5 | 9712 | |
572fefeb AK |
9713 | ################################################################################ |
9714 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
9715 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9716 | # Check whether --enable-applib was given. | |
9717 | if test "${enable_applib+set}" = set; then | |
9718 | enableval=$enable_applib; APPLIB=$enableval | |
9719 | else | |
9720 | APPLIB=no | |
9721 | fi | |
9722 | ||
9723 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
9724 | $as_echo "$APPLIB" >&6; } | |
9725 | ||
9726 | test x$APPLIB = xyes \ | |
9727 | && LVM2APP_LIB=-llvm2app \ | |
9728 | || LVM2APP_LIB= | |
9729 | ||
d0191583 | 9730 | ################################################################################ |
ec6a6fbe AK |
9731 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
9732 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
9733 | # Check whether --enable-cmdlib was given. |
9734 | if test "${enable_cmdlib+set}" = set; then | |
9735 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 9736 | else |
d0191583 JM |
9737 | CMDLIB=no |
9738 | fi | |
8a2fc586 | 9739 | |
ec6a6fbe AK |
9740 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
9741 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 9742 | |
2a9a80c9 | 9743 | test x$CMDLIB = xyes \ |
d179cc7a JM |
9744 | && LVM2CMD_LIB=-llvm2cmd \ |
9745 | || LVM2CMD_LIB= | |
9746 | ||
93bd259b AK |
9747 | ################################################################################ |
9748 | # Check whether --enable-pkgconfig was given. | |
9749 | if test "${enable_pkgconfig+set}" = set; then | |
9750 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
9751 | else | |
9752 | PKGCONFIG=no | |
9753 | fi | |
9754 | ||
2a9a80c9 | 9755 | |
d0191583 | 9756 | ################################################################################ |
ec6a6fbe AK |
9757 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
9758 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
9759 | # Check whether --enable-fsadm was given. |
9760 | if test "${enable_fsadm+set}" = set; then | |
9761 | enableval=$enable_fsadm; FSADM=$enableval | |
9762 | fi | |
8a2fc586 | 9763 | |
ec6a6fbe AK |
9764 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
9765 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 9766 | |
d0191583 | 9767 | ################################################################################ |
ec6a6fbe AK |
9768 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
9769 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
9770 | # Check whether --enable-dmeventd was given. |
9771 | if test "${enable_dmeventd+set}" = set; then | |
9772 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9773 | fi | |
ad6254c5 | 9774 | |
ec6a6fbe AK |
9775 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
9776 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9777 | |
93bd259b AK |
9778 | BUILD_DMEVENTD=$DMEVENTD |
9779 | ||
2a9a80c9 PR |
9780 | if test x$DMEVENTD = xyes; then |
9781 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 9782 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9783 | " >&5 |
ec6a6fbe | 9784 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9785 | " >&2;} |
d0191583 | 9786 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
9787 | fi |
9788 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 9789 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 9790 | " >&5 |
ec6a6fbe | 9791 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
9792 | " >&2;} |
9793 | { (exit 1); exit 1; }; } | |
9794 | fi | |
ad6254c5 | 9795 | fi |
7a197a62 | 9796 | |
d0191583 JM |
9797 | if test x$DMEVENTD = xyes; then |
9798 | ||
9799 | cat >>confdefs.h <<\_ACEOF | |
9800 | #define DMEVENTD 1 | |
ad6254c5 AK |
9801 | _ACEOF |
9802 | ||
ad6254c5 | 9803 | fi |
93bd259b AK |
9804 | |
9805 | ################################################################################ | |
9806 | ||
ec6a6fbe AK |
9807 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
9808 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 9809 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 9810 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9811 | else |
9812 | ac_check_lib_save_LIBS=$LIBS | |
9813 | LIBS="-lc $LIBS" | |
9814 | cat >conftest.$ac_ext <<_ACEOF | |
9815 | /* confdefs.h. */ | |
9816 | _ACEOF | |
9817 | cat confdefs.h >>conftest.$ac_ext | |
9818 | cat >>conftest.$ac_ext <<_ACEOF | |
9819 | /* end confdefs.h. */ | |
9820 | ||
9821 | /* Override any GCC internal prototype to avoid an error. | |
9822 | Use char because int might match the return type of a GCC | |
9823 | builtin and then its argument prototype would still apply. */ | |
9824 | #ifdef __cplusplus | |
9825 | extern "C" | |
9826 | #endif | |
9827 | char getline (); | |
9828 | int | |
9829 | main () | |
9830 | { | |
9831 | return getline (); | |
9832 | ; | |
9833 | return 0; | |
9834 | } | |
9835 | _ACEOF | |
9836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9837 | if { (ac_try="$ac_link" | |
9838 | case "(($ac_try" in | |
9839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9840 | *) ac_try_echo=$ac_try;; | |
9841 | esac | |
ec6a6fbe AK |
9842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9843 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9844 | (eval "$ac_link") 2>conftest.er1 |
9845 | ac_status=$? | |
9846 | grep -v '^ *+' conftest.er1 >conftest.err | |
9847 | rm -f conftest.er1 | |
9848 | cat conftest.err >&5 | |
ec6a6fbe | 9849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9850 | (exit $ac_status); } && { |
9851 | test -z "$ac_c_werror_flag" || | |
9852 | test ! -s conftest.err | |
ec6a6fbe AK |
9853 | } && test -s conftest$ac_exeext && { |
9854 | test "$cross_compiling" = yes || | |
9855 | $as_test_x conftest$ac_exeext | |
9856 | }; then | |
93bd259b AK |
9857 | ac_cv_lib_c_getline=yes |
9858 | else | |
ec6a6fbe | 9859 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9860 | sed 's/^/| /' conftest.$ac_ext >&5 |
9861 | ||
9862 | ac_cv_lib_c_getline=no | |
9863 | fi | |
9864 | ||
ec6a6fbe | 9865 | rm -rf conftest.dSYM |
93bd259b AK |
9866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9867 | conftest$ac_exeext conftest.$ac_ext | |
9868 | LIBS=$ac_check_lib_save_LIBS | |
9869 | fi | |
ec6a6fbe AK |
9870 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
9871 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9872 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
9873 | |
9874 | cat >>confdefs.h <<\_ACEOF | |
9875 | #define HAVE_GETLINE 1 | |
9876 | _ACEOF | |
9877 | ||
9878 | fi | |
9879 | ||
9880 | ||
9881 | ################################################################################ | |
9882 | ||
ec6a6fbe AK |
9883 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
9884 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 9885 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 9886 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9887 | else |
9888 | ac_check_lib_save_LIBS=$LIBS | |
9889 | LIBS="-lc $LIBS" | |
9890 | cat >conftest.$ac_ext <<_ACEOF | |
9891 | /* confdefs.h. */ | |
9892 | _ACEOF | |
9893 | cat confdefs.h >>conftest.$ac_ext | |
9894 | cat >>conftest.$ac_ext <<_ACEOF | |
9895 | /* end confdefs.h. */ | |
9896 | ||
9897 | /* Override any GCC internal prototype to avoid an error. | |
9898 | Use char because int might match the return type of a GCC | |
9899 | builtin and then its argument prototype would still apply. */ | |
9900 | #ifdef __cplusplus | |
9901 | extern "C" | |
9902 | #endif | |
9903 | char canonicalize_file_name (); | |
9904 | int | |
9905 | main () | |
9906 | { | |
9907 | return canonicalize_file_name (); | |
9908 | ; | |
9909 | return 0; | |
9910 | } | |
9911 | _ACEOF | |
9912 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9913 | if { (ac_try="$ac_link" | |
9914 | case "(($ac_try" in | |
9915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9916 | *) ac_try_echo=$ac_try;; | |
9917 | esac | |
ec6a6fbe AK |
9918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9919 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9920 | (eval "$ac_link") 2>conftest.er1 |
9921 | ac_status=$? | |
9922 | grep -v '^ *+' conftest.er1 >conftest.err | |
9923 | rm -f conftest.er1 | |
9924 | cat conftest.err >&5 | |
ec6a6fbe | 9925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9926 | (exit $ac_status); } && { |
9927 | test -z "$ac_c_werror_flag" || | |
9928 | test ! -s conftest.err | |
ec6a6fbe AK |
9929 | } && test -s conftest$ac_exeext && { |
9930 | test "$cross_compiling" = yes || | |
9931 | $as_test_x conftest$ac_exeext | |
9932 | }; then | |
93bd259b AK |
9933 | ac_cv_lib_c_canonicalize_file_name=yes |
9934 | else | |
ec6a6fbe | 9935 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9936 | sed 's/^/| /' conftest.$ac_ext >&5 |
9937 | ||
9938 | ac_cv_lib_c_canonicalize_file_name=no | |
9939 | fi | |
9940 | ||
ec6a6fbe | 9941 | rm -rf conftest.dSYM |
93bd259b AK |
9942 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9943 | conftest$ac_exeext conftest.$ac_ext | |
9944 | LIBS=$ac_check_lib_save_LIBS | |
9945 | fi | |
ec6a6fbe AK |
9946 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
9947 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9948 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
9949 | |
9950 | cat >>confdefs.h <<\_ACEOF | |
9951 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9952 | _ACEOF | |
9953 | ||
9954 | fi | |
9955 | ||
9956 | ||
d0191583 JM |
9957 | ################################################################################ |
9958 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9959 | then exec_prefix=""; | |
9960 | fi; | |
ad6254c5 AK |
9961 | |
9962 | ################################################################################ | |
06e459df | 9963 | if test x$READLINE != xno; then |
ec6a6fbe AK |
9964 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9965 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 9966 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 9967 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9968 | else |
9969 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9970 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9971 | /* confdefs.h. */ |
9972 | _ACEOF | |
9973 | cat confdefs.h >>conftest.$ac_ext | |
9974 | cat >>conftest.$ac_ext <<_ACEOF | |
9975 | /* end confdefs.h. */ | |
9976 | ||
7a197a62 AK |
9977 | /* Override any GCC internal prototype to avoid an error. |
9978 | Use char because int might match the return type of a GCC | |
9979 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9980 | #ifdef __cplusplus |
9981 | extern "C" | |
9982 | #endif | |
ad6254c5 AK |
9983 | char tgetent (); |
9984 | int | |
9985 | main () | |
9986 | { | |
7a197a62 | 9987 | return tgetent (); |
ad6254c5 AK |
9988 | ; |
9989 | return 0; | |
9990 | } | |
9991 | _ACEOF | |
18dcfb69 | 9992 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
9993 | if test -z "$ac_lib"; then |
9994 | ac_res="none required" | |
9995 | else | |
9996 | ac_res=-l$ac_lib | |
9997 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9998 | fi | |
9999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10000 | if { (ac_try="$ac_link" | |
10001 | case "(($ac_try" in | |
10002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10003 | *) ac_try_echo=$ac_try;; | |
10004 | esac | |
ec6a6fbe AK |
10005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10006 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10007 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10008 | ac_status=$? |
8a2fc586 AK |
10009 | grep -v '^ *+' conftest.er1 >conftest.err |
10010 | rm -f conftest.er1 | |
10011 | cat conftest.err >&5 | |
ec6a6fbe | 10012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10013 | (exit $ac_status); } && { |
10014 | test -z "$ac_c_werror_flag" || | |
10015 | test ! -s conftest.err | |
ec6a6fbe AK |
10016 | } && test -s conftest$ac_exeext && { |
10017 | test "$cross_compiling" = yes || | |
10018 | $as_test_x conftest$ac_exeext | |
10019 | }; then | |
7a197a62 | 10020 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 10021 | else |
ec6a6fbe | 10022 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10023 | sed 's/^/| /' conftest.$ac_ext >&5 |
10024 | ||
ad6254c5 | 10025 | |
7a197a62 | 10026 | fi |
ad6254c5 | 10027 | |
ec6a6fbe | 10028 | rm -rf conftest.dSYM |
25fbec5b | 10029 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
10030 | conftest$ac_exeext |
10031 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10032 | break | |
ad6254c5 | 10033 | fi |
7a197a62 AK |
10034 | done |
10035 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10036 | : | |
10037 | else | |
10038 | ac_cv_search_tgetent=no | |
ad6254c5 | 10039 | fi |
7a197a62 | 10040 | rm conftest.$ac_ext |
ad6254c5 AK |
10041 | LIBS=$ac_func_search_save_LIBS |
10042 | fi | |
ec6a6fbe AK |
10043 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
10044 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
10045 | ac_res=$ac_cv_search_tgetent |
10046 | if test "$ac_res" != no; then | |
10047 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 10048 | tg_found=yes |
ad6254c5 | 10049 | else |
06e459df JM |
10050 | tg_found=no |
10051 | fi | |
10052 | ||
10053 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 10054 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
10055 | --enable-readline option (which is enabled by default). Either disable readline |
10056 | support with --disable-readline or download and install termcap from: | |
10057 | ftp.gnu.org/gnu/termcap | |
10058 | Note: if you are using precompiled packages you will also need the development | |
10059 | package as well (which may be called termcap-devel or something similar). | |
10060 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10061 | not found either - but you could try installing that as well. | |
10062 | " >&5 | |
ec6a6fbe | 10063 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
10064 | --enable-readline option (which is enabled by default). Either disable readline |
10065 | support with --disable-readline or download and install termcap from: | |
10066 | ftp.gnu.org/gnu/termcap | |
10067 | Note: if you are using precompiled packages you will also need the development | |
10068 | package as well (which may be called termcap-devel or something similar). | |
10069 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10070 | not found either - but you could try installing that as well. | |
10071 | " >&2;} | |
10072 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
10073 | fi |
10074 | ||
10075 | ################################################################################ | |
ec6a6fbe AK |
10076 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10077 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 10078 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 10079 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10080 | else |
10081 | ac_check_lib_save_LIBS=$LIBS | |
10082 | LIBS="-ldl $LIBS" | |
10083 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10084 | /* confdefs.h. */ |
10085 | _ACEOF | |
10086 | cat confdefs.h >>conftest.$ac_ext | |
10087 | cat >>conftest.$ac_ext <<_ACEOF | |
10088 | /* end confdefs.h. */ | |
10089 | ||
7a197a62 AK |
10090 | /* Override any GCC internal prototype to avoid an error. |
10091 | Use char because int might match the return type of a GCC | |
10092 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10093 | #ifdef __cplusplus |
10094 | extern "C" | |
10095 | #endif | |
ad6254c5 AK |
10096 | char dlopen (); |
10097 | int | |
10098 | main () | |
10099 | { | |
7a197a62 | 10100 | return dlopen (); |
ad6254c5 AK |
10101 | ; |
10102 | return 0; | |
10103 | } | |
10104 | _ACEOF | |
10105 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10106 | if { (ac_try="$ac_link" |
10107 | case "(($ac_try" in | |
10108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10109 | *) ac_try_echo=$ac_try;; | |
10110 | esac | |
ec6a6fbe AK |
10111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10112 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10113 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10114 | ac_status=$? |
8a2fc586 AK |
10115 | grep -v '^ *+' conftest.er1 >conftest.err |
10116 | rm -f conftest.er1 | |
10117 | cat conftest.err >&5 | |
ec6a6fbe | 10118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10119 | (exit $ac_status); } && { |
10120 | test -z "$ac_c_werror_flag" || | |
10121 | test ! -s conftest.err | |
ec6a6fbe AK |
10122 | } && test -s conftest$ac_exeext && { |
10123 | test "$cross_compiling" = yes || | |
10124 | $as_test_x conftest$ac_exeext | |
10125 | }; then | |
ad6254c5 AK |
10126 | ac_cv_lib_dl_dlopen=yes |
10127 | else | |
ec6a6fbe | 10128 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10129 | sed 's/^/| /' conftest.$ac_ext >&5 |
10130 | ||
7a197a62 | 10131 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 10132 | fi |
7a197a62 | 10133 | |
ec6a6fbe | 10134 | rm -rf conftest.dSYM |
25fbec5b | 10135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10136 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10137 | LIBS=$ac_check_lib_save_LIBS |
10138 | fi | |
ec6a6fbe AK |
10139 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10140 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10141 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
10142 | HAVE_LIBDL=yes |
10143 | else | |
10144 | HAVE_LIBDL=no | |
10145 | fi | |
10146 | ||
10147 | ||
7e9e9502 | 10148 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
10149 | |
10150 | cat >>confdefs.h <<\_ACEOF | |
10151 | #define HAVE_LIBDL 1 | |
10152 | _ACEOF | |
10153 | ||
ad6254c5 AK |
10154 | LIBS="-ldl $LIBS" |
10155 | else | |
10156 | HAVE_LIBDL=no | |
10157 | fi | |
10158 | ||
10159 | ################################################################################ | |
10160 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
10161 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
10162 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 10163 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 10164 | " >&5 |
ec6a6fbe | 10165 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
10166 | " >&2;} |
10167 | { (exit 1); exit 1; }; } | |
10168 | fi | |
10169 | ||
d0191583 | 10170 | ################################################################################ |
ec6a6fbe AK |
10171 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
10172 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
10173 | # Check whether --enable-selinux was given. |
10174 | if test "${enable_selinux+set}" = set; then | |
10175 | enableval=$enable_selinux; SELINUX=$enableval | |
10176 | fi | |
10177 | ||
ec6a6fbe AK |
10178 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
10179 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 10180 | |
ad6254c5 AK |
10181 | ################################################################################ |
10182 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
10183 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
10184 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 10185 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 10186 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
10187 | else |
10188 | ac_check_lib_save_LIBS=$LIBS | |
10189 | LIBS="-lsepol $LIBS" | |
10190 | cat >conftest.$ac_ext <<_ACEOF | |
10191 | /* confdefs.h. */ | |
10192 | _ACEOF | |
10193 | cat confdefs.h >>conftest.$ac_ext | |
10194 | cat >>conftest.$ac_ext <<_ACEOF | |
10195 | /* end confdefs.h. */ | |
10196 | ||
7a197a62 AK |
10197 | /* Override any GCC internal prototype to avoid an error. |
10198 | Use char because int might match the return type of a GCC | |
10199 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
10200 | #ifdef __cplusplus |
10201 | extern "C" | |
10202 | #endif | |
8a2fc586 AK |
10203 | char sepol_check_context (); |
10204 | int | |
10205 | main () | |
10206 | { | |
7a197a62 | 10207 | return sepol_check_context (); |
8a2fc586 AK |
10208 | ; |
10209 | return 0; | |
10210 | } | |
10211 | _ACEOF | |
10212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10213 | if { (ac_try="$ac_link" |
10214 | case "(($ac_try" in | |
10215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10216 | *) ac_try_echo=$ac_try;; | |
10217 | esac | |
ec6a6fbe AK |
10218 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10219 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10220 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
10221 | ac_status=$? |
10222 | grep -v '^ *+' conftest.er1 >conftest.err | |
10223 | rm -f conftest.er1 | |
10224 | cat conftest.err >&5 | |
ec6a6fbe | 10225 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10226 | (exit $ac_status); } && { |
10227 | test -z "$ac_c_werror_flag" || | |
10228 | test ! -s conftest.err | |
ec6a6fbe AK |
10229 | } && test -s conftest$ac_exeext && { |
10230 | test "$cross_compiling" = yes || | |
10231 | $as_test_x conftest$ac_exeext | |
10232 | }; then | |
8a2fc586 AK |
10233 | ac_cv_lib_sepol_sepol_check_context=yes |
10234 | else | |
ec6a6fbe | 10235 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
10236 | sed 's/^/| /' conftest.$ac_ext >&5 |
10237 | ||
7a197a62 | 10238 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 10239 | fi |
7a197a62 | 10240 | |
ec6a6fbe | 10241 | rm -rf conftest.dSYM |
25fbec5b | 10242 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
10243 | conftest$ac_exeext conftest.$ac_ext |
10244 | LIBS=$ac_check_lib_save_LIBS | |
10245 | fi | |
ec6a6fbe AK |
10246 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
10247 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
10248 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
10249 | HAVE_SEPOL=yes |
10250 | else | |
10251 | HAVE_SEPOL=no | |
10252 | fi | |
10253 | ||
8a2fc586 AK |
10254 | |
10255 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
10256 | |
10257 | cat >>confdefs.h <<\_ACEOF | |
10258 | #define HAVE_SEPOL 1 | |
10259 | _ACEOF | |
10260 | ||
8a2fc586 AK |
10261 | LIBS="-lsepol $LIBS" |
10262 | fi | |
10263 | ||
ec6a6fbe AK |
10264 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
10265 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 10266 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 10267 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10268 | else |
10269 | ac_check_lib_save_LIBS=$LIBS | |
10270 | LIBS="-lselinux $LIBS" | |
10271 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10272 | /* confdefs.h. */ |
10273 | _ACEOF | |
10274 | cat confdefs.h >>conftest.$ac_ext | |
10275 | cat >>conftest.$ac_ext <<_ACEOF | |
10276 | /* end confdefs.h. */ | |
10277 | ||
7a197a62 AK |
10278 | /* Override any GCC internal prototype to avoid an error. |
10279 | Use char because int might match the return type of a GCC | |
10280 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10281 | #ifdef __cplusplus |
10282 | extern "C" | |
10283 | #endif | |
ad6254c5 AK |
10284 | char is_selinux_enabled (); |
10285 | int | |
10286 | main () | |
10287 | { | |
7a197a62 | 10288 | return is_selinux_enabled (); |
ad6254c5 AK |
10289 | ; |
10290 | return 0; | |
10291 | } | |
10292 | _ACEOF | |
10293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10294 | if { (ac_try="$ac_link" |
10295 | case "(($ac_try" in | |
10296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10297 | *) ac_try_echo=$ac_try;; | |
10298 | esac | |
ec6a6fbe AK |
10299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10300 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10301 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10302 | ac_status=$? |
8a2fc586 AK |
10303 | grep -v '^ *+' conftest.er1 >conftest.err |
10304 | rm -f conftest.er1 | |
10305 | cat conftest.err >&5 | |
ec6a6fbe | 10306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10307 | (exit $ac_status); } && { |
10308 | test -z "$ac_c_werror_flag" || | |
10309 | test ! -s conftest.err | |
ec6a6fbe AK |
10310 | } && test -s conftest$ac_exeext && { |
10311 | test "$cross_compiling" = yes || | |
10312 | $as_test_x conftest$ac_exeext | |
10313 | }; then | |
ad6254c5 AK |
10314 | ac_cv_lib_selinux_is_selinux_enabled=yes |
10315 | else | |
ec6a6fbe | 10316 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10317 | sed 's/^/| /' conftest.$ac_ext >&5 |
10318 | ||
7a197a62 | 10319 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 10320 | fi |
7a197a62 | 10321 | |
ec6a6fbe | 10322 | rm -rf conftest.dSYM |
25fbec5b | 10323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10324 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10325 | LIBS=$ac_check_lib_save_LIBS |
10326 | fi | |
ec6a6fbe AK |
10327 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
10328 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
10329 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
10330 | HAVE_SELINUX=yes |
10331 | else | |
10332 | HAVE_SELINUX=no | |
10333 | fi | |
10334 | ||
ad6254c5 AK |
10335 | |
10336 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
10337 | |
10338 | cat >>confdefs.h <<\_ACEOF | |
10339 | #define HAVE_SELINUX 1 | |
10340 | _ACEOF | |
10341 | ||
ad6254c5 AK |
10342 | LIBS="-lselinux $LIBS" |
10343 | else | |
ec6a6fbe AK |
10344 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
10345 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
10346 | fi |
10347 | ||
d0191583 | 10348 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
10349 | # fails on at least Debian unstable due to unsatisfied references |
10350 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
10351 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
10352 | lvm_saved_libs=$LIBS | |
10353 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
10354 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
10355 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 10356 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 10357 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
10358 | else |
10359 | ac_func_search_save_LIBS=$LIBS | |
10360 | cat >conftest.$ac_ext <<_ACEOF | |
10361 | /* confdefs.h. */ | |
10362 | _ACEOF | |
10363 | cat confdefs.h >>conftest.$ac_ext | |
10364 | cat >>conftest.$ac_ext <<_ACEOF | |
10365 | /* end confdefs.h. */ | |
10366 | ||
10367 | /* Override any GCC internal prototype to avoid an error. | |
10368 | Use char because int might match the return type of a GCC | |
10369 | builtin and then its argument prototype would still apply. */ | |
10370 | #ifdef __cplusplus | |
10371 | extern "C" | |
10372 | #endif | |
10373 | char pthread_mutex_lock (); | |
10374 | int | |
10375 | main () | |
10376 | { | |
10377 | return pthread_mutex_lock (); | |
10378 | ; | |
10379 | return 0; | |
10380 | } | |
10381 | _ACEOF | |
10382 | for ac_lib in '' pthread; do | |
10383 | if test -z "$ac_lib"; then | |
10384 | ac_res="none required" | |
10385 | else | |
10386 | ac_res=-l$ac_lib | |
10387 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10388 | fi | |
10389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10390 | if { (ac_try="$ac_link" | |
10391 | case "(($ac_try" in | |
10392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10393 | *) ac_try_echo=$ac_try;; | |
10394 | esac | |
ec6a6fbe AK |
10395 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10396 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
10397 | (eval "$ac_link") 2>conftest.er1 |
10398 | ac_status=$? | |
10399 | grep -v '^ *+' conftest.er1 >conftest.err | |
10400 | rm -f conftest.er1 | |
10401 | cat conftest.err >&5 | |
ec6a6fbe | 10402 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10403 | (exit $ac_status); } && { |
10404 | test -z "$ac_c_werror_flag" || | |
10405 | test ! -s conftest.err | |
ec6a6fbe AK |
10406 | } && test -s conftest$ac_exeext && { |
10407 | test "$cross_compiling" = yes || | |
10408 | $as_test_x conftest$ac_exeext | |
10409 | }; then | |
66e941e8 JM |
10410 | ac_cv_search_pthread_mutex_lock=$ac_res |
10411 | else | |
ec6a6fbe | 10412 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
10413 | sed 's/^/| /' conftest.$ac_ext >&5 |
10414 | ||
10415 | ||
10416 | fi | |
10417 | ||
ec6a6fbe | 10418 | rm -rf conftest.dSYM |
25fbec5b | 10419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
10420 | conftest$ac_exeext |
10421 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10422 | break | |
10423 | fi | |
10424 | done | |
10425 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10426 | : | |
10427 | else | |
10428 | ac_cv_search_pthread_mutex_lock=no | |
10429 | fi | |
10430 | rm conftest.$ac_ext | |
10431 | LIBS=$ac_func_search_save_LIBS | |
10432 | fi | |
ec6a6fbe AK |
10433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
10434 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
10435 | ac_res=$ac_cv_search_pthread_mutex_lock |
10436 | if test "$ac_res" != no; then | |
10437 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10438 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
10439 | LIB_PTHREAD=-lpthread | |
10440 | fi | |
10441 | ||
10442 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
10443 | fi |
10444 | fi | |
10445 | ||
8b1a3214 AK |
10446 | ################################################################################ |
10447 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
10448 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
10449 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 10450 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 10451 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
10452 | else |
10453 | ac_check_lib_save_LIBS=$LIBS | |
10454 | LIBS="-lrt $LIBS" | |
10455 | cat >conftest.$ac_ext <<_ACEOF | |
10456 | /* confdefs.h. */ | |
10457 | _ACEOF | |
10458 | cat confdefs.h >>conftest.$ac_ext | |
10459 | cat >>conftest.$ac_ext <<_ACEOF | |
10460 | /* end confdefs.h. */ | |
10461 | ||
7a197a62 AK |
10462 | /* Override any GCC internal prototype to avoid an error. |
10463 | Use char because int might match the return type of a GCC | |
10464 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
10465 | #ifdef __cplusplus |
10466 | extern "C" | |
10467 | #endif | |
8b1a3214 AK |
10468 | char clock_gettime (); |
10469 | int | |
10470 | main () | |
10471 | { | |
7a197a62 | 10472 | return clock_gettime (); |
8b1a3214 AK |
10473 | ; |
10474 | return 0; | |
10475 | } | |
10476 | _ACEOF | |
10477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10478 | if { (ac_try="$ac_link" |
10479 | case "(($ac_try" in | |
10480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10481 | *) ac_try_echo=$ac_try;; | |
10482 | esac | |
ec6a6fbe AK |
10483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10484 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10485 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
10486 | ac_status=$? |
10487 | grep -v '^ *+' conftest.er1 >conftest.err | |
10488 | rm -f conftest.er1 | |
10489 | cat conftest.err >&5 | |
ec6a6fbe | 10490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10491 | (exit $ac_status); } && { |
10492 | test -z "$ac_c_werror_flag" || | |
10493 | test ! -s conftest.err | |
ec6a6fbe AK |
10494 | } && test -s conftest$ac_exeext && { |
10495 | test "$cross_compiling" = yes || | |
10496 | $as_test_x conftest$ac_exeext | |
10497 | }; then | |
8b1a3214 AK |
10498 | ac_cv_lib_rt_clock_gettime=yes |
10499 | else | |
ec6a6fbe | 10500 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
10501 | sed 's/^/| /' conftest.$ac_ext >&5 |
10502 | ||
7a197a62 | 10503 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 10504 | fi |
7a197a62 | 10505 | |
ec6a6fbe | 10506 | rm -rf conftest.dSYM |
25fbec5b | 10507 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
10508 | conftest$ac_exeext conftest.$ac_ext |
10509 | LIBS=$ac_check_lib_save_LIBS | |
10510 | fi | |
ec6a6fbe AK |
10511 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
10512 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
10513 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
10514 | HAVE_REALTIME=yes |
10515 | else | |
10516 | HAVE_REALTIME=no | |
10517 | fi | |
10518 | ||
8b1a3214 AK |
10519 | |
10520 | if test x$HAVE_REALTIME = xyes; then | |
10521 | ||
10522 | cat >>confdefs.h <<\_ACEOF | |
10523 | #define HAVE_REALTIME 1 | |
10524 | _ACEOF | |
10525 | ||
10526 | LIBS="-lrt $LIBS" | |
10527 | else | |
ec6a6fbe AK |
10528 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
10529 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
10530 | fi |
10531 | fi | |
10532 | ||
ad6254c5 AK |
10533 | ################################################################################ |
10534 | ||
10535 | for ac_header in getopt.h | |
10536 | do | |
ec6a6fbe | 10537 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10538 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10539 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10540 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10542 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10543 | fi |
ec6a6fbe AK |
10544 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10545 | $as_echo "$as_val"'` | |
10546 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10547 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10548 | else |
10549 | # Is the header compilable? | |
ec6a6fbe AK |
10550 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10551 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10552 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10553 | /* confdefs.h. */ |
10554 | _ACEOF | |
10555 | cat confdefs.h >>conftest.$ac_ext | |
10556 | cat >>conftest.$ac_ext <<_ACEOF | |
10557 | /* end confdefs.h. */ | |
10558 | $ac_includes_default | |
10559 | #include <$ac_header> | |
10560 | _ACEOF | |
10561 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10562 | if { (ac_try="$ac_compile" |
10563 | case "(($ac_try" in | |
10564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10565 | *) ac_try_echo=$ac_try;; | |
10566 | esac | |
ec6a6fbe AK |
10567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10568 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10569 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10570 | ac_status=$? |
8a2fc586 AK |
10571 | grep -v '^ *+' conftest.er1 >conftest.err |
10572 | rm -f conftest.er1 | |
10573 | cat conftest.err >&5 | |
ec6a6fbe | 10574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10575 | (exit $ac_status); } && { |
10576 | test -z "$ac_c_werror_flag" || | |
10577 | test ! -s conftest.err | |
10578 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10579 | ac_header_compiler=yes |
10580 | else | |
ec6a6fbe | 10581 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10582 | sed 's/^/| /' conftest.$ac_ext >&5 |
10583 | ||
7a197a62 | 10584 | ac_header_compiler=no |
ad6254c5 | 10585 | fi |
7a197a62 AK |
10586 | |
10587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10588 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10589 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10590 | |
10591 | # Is the header present? | |
ec6a6fbe AK |
10592 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10593 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10594 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10595 | /* confdefs.h. */ |
10596 | _ACEOF | |
10597 | cat confdefs.h >>conftest.$ac_ext | |
10598 | cat >>conftest.$ac_ext <<_ACEOF | |
10599 | /* end confdefs.h. */ | |
10600 | #include <$ac_header> | |
10601 | _ACEOF | |
7a197a62 AK |
10602 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10603 | case "(($ac_try" in | |
10604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10605 | *) ac_try_echo=$ac_try;; | |
10606 | esac | |
ec6a6fbe AK |
10607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10608 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10610 | ac_status=$? |
10611 | grep -v '^ *+' conftest.er1 >conftest.err | |
10612 | rm -f conftest.er1 | |
10613 | cat conftest.err >&5 | |
ec6a6fbe | 10614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10615 | (exit $ac_status); } >/dev/null && { |
10616 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10617 | test ! -s conftest.err | |
10618 | }; then | |
ad6254c5 AK |
10619 | ac_header_preproc=yes |
10620 | else | |
ec6a6fbe | 10621 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10622 | sed 's/^/| /' conftest.$ac_ext >&5 |
10623 | ||
10624 | ac_header_preproc=no | |
10625 | fi | |
7a197a62 | 10626 | |
ad6254c5 | 10627 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10628 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10629 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10630 | |
10631 | # So? What about this header? | |
8a2fc586 AK |
10632 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10633 | yes:no: ) | |
ec6a6fbe AK |
10634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10635 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10636 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10637 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10638 | ac_header_preproc=yes |
ad6254c5 | 10639 | ;; |
8a2fc586 | 10640 | no:yes:* ) |
ec6a6fbe AK |
10641 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10642 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10643 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10644 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10645 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10646 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10647 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10648 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10649 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10650 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10651 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10652 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10653 | |
ad6254c5 AK |
10654 | ;; |
10655 | esac | |
ec6a6fbe AK |
10656 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10657 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10658 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10659 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10660 | else |
8a2fc586 | 10661 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10662 | fi |
ec6a6fbe AK |
10663 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10664 | $as_echo "$as_val"'` | |
10665 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10666 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10667 | |
10668 | fi | |
ec6a6fbe AK |
10669 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10670 | $as_echo "$as_val"'` | |
10671 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10672 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10673 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10674 | _ACEOF |
72b2cb61 AK |
10675 | |
10676 | cat >>confdefs.h <<\_ACEOF | |
10677 | #define HAVE_GETOPTLONG 1 | |
10678 | _ACEOF | |
10679 | ||
ad6254c5 AK |
10680 | fi |
10681 | ||
10682 | done | |
10683 | ||
10684 | ||
10685 | ################################################################################ | |
06e459df | 10686 | if test x$READLINE != xno; then |
bc1024f8 JM |
10687 | rl_found=yes |
10688 | ||
ec6a6fbe AK |
10689 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10690 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 10691 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 10692 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10693 | else |
10694 | ac_check_lib_save_LIBS=$LIBS | |
10695 | LIBS="-lreadline $LIBS" | |
10696 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10697 | /* confdefs.h. */ |
10698 | _ACEOF | |
10699 | cat confdefs.h >>conftest.$ac_ext | |
10700 | cat >>conftest.$ac_ext <<_ACEOF | |
10701 | /* end confdefs.h. */ | |
10702 | ||
7a197a62 AK |
10703 | /* Override any GCC internal prototype to avoid an error. |
10704 | Use char because int might match the return type of a GCC | |
10705 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10706 | #ifdef __cplusplus |
10707 | extern "C" | |
10708 | #endif | |
ad6254c5 AK |
10709 | char readline (); |
10710 | int | |
10711 | main () | |
10712 | { | |
7a197a62 | 10713 | return readline (); |
ad6254c5 AK |
10714 | ; |
10715 | return 0; | |
10716 | } | |
10717 | _ACEOF | |
10718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10719 | if { (ac_try="$ac_link" |
10720 | case "(($ac_try" in | |
10721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10722 | *) ac_try_echo=$ac_try;; | |
10723 | esac | |
ec6a6fbe AK |
10724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10725 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10726 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10727 | ac_status=$? |
8a2fc586 AK |
10728 | grep -v '^ *+' conftest.er1 >conftest.err |
10729 | rm -f conftest.er1 | |
10730 | cat conftest.err >&5 | |
ec6a6fbe | 10731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10732 | (exit $ac_status); } && { |
10733 | test -z "$ac_c_werror_flag" || | |
10734 | test ! -s conftest.err | |
ec6a6fbe AK |
10735 | } && test -s conftest$ac_exeext && { |
10736 | test "$cross_compiling" = yes || | |
10737 | $as_test_x conftest$ac_exeext | |
10738 | }; then | |
ad6254c5 AK |
10739 | ac_cv_lib_readline_readline=yes |
10740 | else | |
ec6a6fbe | 10741 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10742 | sed 's/^/| /' conftest.$ac_ext >&5 |
10743 | ||
7a197a62 | 10744 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10745 | fi |
7a197a62 | 10746 | |
ec6a6fbe | 10747 | rm -rf conftest.dSYM |
25fbec5b | 10748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10749 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10750 | LIBS=$ac_check_lib_save_LIBS |
10751 | fi | |
ec6a6fbe AK |
10752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10753 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
10754 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
10755 | cat >>confdefs.h <<_ACEOF |
10756 | #define HAVE_LIBREADLINE 1 | |
10757 | _ACEOF | |
10758 | ||
10759 | LIBS="-lreadline $LIBS" | |
10760 | ||
ad6254c5 | 10761 | else |
06e459df JM |
10762 | rl_found=no |
10763 | fi | |
10764 | ||
10765 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 10766 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10767 | --enable-readline option (which is enabled by default). Either disable readline |
10768 | support with --disable-readline or download and install readline from: | |
10769 | ftp.gnu.org/gnu/readline | |
10770 | Note: if you are using precompiled packages you will also need the development | |
10771 | package as well (which may be called readline-devel or something similar). | |
10772 | " >&5 | |
ec6a6fbe | 10773 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10774 | --enable-readline option (which is enabled by default). Either disable readline |
10775 | support with --disable-readline or download and install readline from: | |
10776 | ftp.gnu.org/gnu/readline | |
10777 | Note: if you are using precompiled packages you will also need the development | |
10778 | package as well (which may be called readline-devel or something similar). | |
10779 | " >&2;} | |
10780 | { (exit 1); exit 1; }; } | |
06e459df | 10781 | if test $rl_found = yes; then |
bc1024f8 JM |
10782 | |
10783 | for ac_func in rl_completion_matches | |
10784 | do | |
ec6a6fbe AK |
10785 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10786 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10787 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 10788 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10789 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10790 | else |
10791 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10792 | /* confdefs.h. */ |
10793 | _ACEOF | |
10794 | cat confdefs.h >>conftest.$ac_ext | |
10795 | cat >>conftest.$ac_ext <<_ACEOF | |
10796 | /* end confdefs.h. */ | |
bc1024f8 | 10797 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 10798 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 10799 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 10800 | |
ad6254c5 | 10801 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 10802 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
10803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10804 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10805 | |
ad6254c5 AK |
10806 | #ifdef __STDC__ |
10807 | # include <limits.h> | |
10808 | #else | |
10809 | # include <assert.h> | |
10810 | #endif | |
8a2fc586 | 10811 | |
bc1024f8 | 10812 | #undef $ac_func |
8a2fc586 | 10813 | |
7a197a62 AK |
10814 | /* Override any GCC internal prototype to avoid an error. |
10815 | Use char because int might match the return type of a GCC | |
10816 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10817 | #ifdef __cplusplus |
10818 | extern "C" | |
ad6254c5 | 10819 | #endif |
bc1024f8 | 10820 | char $ac_func (); |
ad6254c5 AK |
10821 | /* The GNU C library defines this for functions which it implements |
10822 | to always fail with ENOSYS. Some functions are actually named | |
10823 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 10824 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10825 | choke me |
ad6254c5 AK |
10826 | #endif |
10827 | ||
10828 | int | |
10829 | main () | |
10830 | { | |
bc1024f8 | 10831 | return $ac_func (); |
ad6254c5 AK |
10832 | ; |
10833 | return 0; | |
10834 | } | |
10835 | _ACEOF | |
10836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10837 | if { (ac_try="$ac_link" |
10838 | case "(($ac_try" in | |
10839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10840 | *) ac_try_echo=$ac_try;; | |
10841 | esac | |
ec6a6fbe AK |
10842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10843 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10844 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10845 | ac_status=$? |
8a2fc586 AK |
10846 | grep -v '^ *+' conftest.er1 >conftest.err |
10847 | rm -f conftest.er1 | |
10848 | cat conftest.err >&5 | |
ec6a6fbe | 10849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10850 | (exit $ac_status); } && { |
10851 | test -z "$ac_c_werror_flag" || | |
10852 | test ! -s conftest.err | |
ec6a6fbe AK |
10853 | } && test -s conftest$ac_exeext && { |
10854 | test "$cross_compiling" = yes || | |
10855 | $as_test_x conftest$ac_exeext | |
10856 | }; then | |
bc1024f8 | 10857 | eval "$as_ac_var=yes" |
ad6254c5 | 10858 | else |
ec6a6fbe | 10859 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10860 | sed 's/^/| /' conftest.$ac_ext >&5 |
10861 | ||
bc1024f8 | 10862 | eval "$as_ac_var=no" |
ad6254c5 | 10863 | fi |
7a197a62 | 10864 | |
ec6a6fbe | 10865 | rm -rf conftest.dSYM |
25fbec5b | 10866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10867 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10868 | fi |
ec6a6fbe AK |
10869 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10870 | $as_echo "$as_val"'` | |
10871 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10872 | $as_echo "$ac_res" >&6; } | |
10873 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10874 | $as_echo "$as_val"'` | |
10875 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 10876 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10877 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
10878 | _ACEOF |
10879 | ||
10880 | fi | |
bc1024f8 | 10881 | done |
ad6254c5 | 10882 | |
d179cc7a JM |
10883 | |
10884 | cat >>confdefs.h <<\_ACEOF | |
10885 | #define READLINE_SUPPORT 1 | |
10886 | _ACEOF | |
10887 | ||
06e459df | 10888 | fi |
ad6254c5 AK |
10889 | fi |
10890 | ||
10891 | ################################################################################ | |
ec6a6fbe AK |
10892 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10893 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 10894 | # Check whether --enable-nls was given. |
ad6254c5 | 10895 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10896 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10897 | else |
10898 | INTL=no | |
7a197a62 AK |
10899 | fi |
10900 | ||
ec6a6fbe AK |
10901 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
10902 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
10903 | |
10904 | if test x$INTL = xyes; then | |
93bd259b | 10905 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10906 | INTL_PACKAGE="lvm2" |
10907 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10908 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
10909 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10910 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 10911 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 10912 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10913 | else |
10914 | case $MSGFMT in | |
10915 | [\\/]* | ?:[\\/]*) | |
10916 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10917 | ;; | |
10918 | *) | |
10919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10920 | for as_dir in $PATH | |
10921 | do | |
10922 | IFS=$as_save_IFS | |
10923 | test -z "$as_dir" && as_dir=. | |
10924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10926 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 10927 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10928 | break 2 |
10929 | fi | |
10930 | done | |
10931 | done | |
7a197a62 | 10932 | IFS=$as_save_IFS |
ad6254c5 AK |
10933 | |
10934 | ;; | |
10935 | esac | |
10936 | fi | |
10937 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10938 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
10939 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10940 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 10941 | else |
ec6a6fbe AK |
10942 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10943 | $as_echo "no" >&6; } | |
ad6254c5 AK |
10944 | fi |
10945 | ||
7a197a62 | 10946 | |
ad6254c5 | 10947 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 10948 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10949 | " >&5 |
ec6a6fbe | 10950 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10951 | " >&2;} |
10952 | { (exit 1); exit 1; }; } | |
10953 | fi; | |
10954 | ||
10955 | ||
7a197a62 | 10956 | # Check whether --with-localedir was given. |
ad6254c5 | 10957 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10958 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10959 | else |
10960 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10961 | fi |
10962 | ||
ad6254c5 AK |
10963 | fi |
10964 | ||
10965 | ################################################################################ | |
10966 | ||
7a197a62 | 10967 | # Check whether --with-confdir was given. |
ad6254c5 | 10968 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10969 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10970 | else |
10971 | CONFDIR='/etc' | |
7a197a62 AK |
10972 | fi |
10973 | ||
ad6254c5 AK |
10974 | |
10975 | ||
7a197a62 | 10976 | # Check whether --with-staticdir was given. |
ad6254c5 | 10977 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10978 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10979 | else |
10980 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10981 | fi |
ad6254c5 | 10982 | |
33f732c5 | 10983 | |
7a197a62 | 10984 | |
68f2de6d AK |
10985 | # Check whether --with-usrlibdir was given. |
10986 | if test "${with_usrlibdir+set}" = set; then | |
10987 | withval=$with_usrlibdir; usrlibdir="$withval" | |
10988 | else | |
10989 | usrlibdir='${prefix}/lib' | |
10990 | fi | |
10991 | ||
10992 | ||
10993 | ||
10994 | # Check whether --with-usrsbindir was given. | |
10995 | if test "${with_usrsbindir+set}" = set; then | |
10996 | withval=$with_usrsbindir; usrsbindir="$withval" | |
10997 | else | |
10998 | usrsbindir='${prefix}/sbin' | |
10999 | fi | |
11000 | ||
11001 | ||
ad6254c5 AK |
11002 | ################################################################################ |
11003 | if test x$READLINE = xyes; then | |
11004 | ||
11005 | ||
11006 | for ac_header in readline/readline.h readline/history.h | |
11007 | do | |
ec6a6fbe | 11008 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11009 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11010 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11011 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11012 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11013 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11014 | fi |
ec6a6fbe AK |
11015 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11016 | $as_echo "$as_val"'` | |
11017 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11018 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11019 | else |
11020 | # Is the header compilable? | |
ec6a6fbe AK |
11021 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11022 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11023 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11024 | /* confdefs.h. */ |
11025 | _ACEOF | |
11026 | cat confdefs.h >>conftest.$ac_ext | |
11027 | cat >>conftest.$ac_ext <<_ACEOF | |
11028 | /* end confdefs.h. */ | |
11029 | $ac_includes_default | |
11030 | #include <$ac_header> | |
11031 | _ACEOF | |
11032 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11033 | if { (ac_try="$ac_compile" |
11034 | case "(($ac_try" in | |
11035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11036 | *) ac_try_echo=$ac_try;; | |
11037 | esac | |
ec6a6fbe AK |
11038 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11039 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11040 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11041 | ac_status=$? |
8a2fc586 AK |
11042 | grep -v '^ *+' conftest.er1 >conftest.err |
11043 | rm -f conftest.er1 | |
11044 | cat conftest.err >&5 | |
ec6a6fbe | 11045 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11046 | (exit $ac_status); } && { |
11047 | test -z "$ac_c_werror_flag" || | |
11048 | test ! -s conftest.err | |
11049 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11050 | ac_header_compiler=yes |
11051 | else | |
ec6a6fbe | 11052 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11053 | sed 's/^/| /' conftest.$ac_ext >&5 |
11054 | ||
7a197a62 | 11055 | ac_header_compiler=no |
ad6254c5 | 11056 | fi |
7a197a62 AK |
11057 | |
11058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11059 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11060 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11061 | |
11062 | # Is the header present? | |
ec6a6fbe AK |
11063 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11064 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11065 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11066 | /* confdefs.h. */ |
11067 | _ACEOF | |
11068 | cat confdefs.h >>conftest.$ac_ext | |
11069 | cat >>conftest.$ac_ext <<_ACEOF | |
11070 | /* end confdefs.h. */ | |
11071 | #include <$ac_header> | |
11072 | _ACEOF | |
7a197a62 AK |
11073 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11074 | case "(($ac_try" in | |
11075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11076 | *) ac_try_echo=$ac_try;; | |
11077 | esac | |
ec6a6fbe AK |
11078 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11079 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11080 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11081 | ac_status=$? |
11082 | grep -v '^ *+' conftest.er1 >conftest.err | |
11083 | rm -f conftest.er1 | |
11084 | cat conftest.err >&5 | |
ec6a6fbe | 11085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11086 | (exit $ac_status); } >/dev/null && { |
11087 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11088 | test ! -s conftest.err | |
11089 | }; then | |
ad6254c5 AK |
11090 | ac_header_preproc=yes |
11091 | else | |
ec6a6fbe | 11092 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11093 | sed 's/^/| /' conftest.$ac_ext >&5 |
11094 | ||
11095 | ac_header_preproc=no | |
11096 | fi | |
7a197a62 | 11097 | |
ad6254c5 | 11098 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11099 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11100 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11101 | |
11102 | # So? What about this header? | |
8a2fc586 AK |
11103 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11104 | yes:no: ) | |
ec6a6fbe AK |
11105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11106 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11107 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11108 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11109 | ac_header_preproc=yes |
ad6254c5 | 11110 | ;; |
8a2fc586 | 11111 | no:yes:* ) |
ec6a6fbe AK |
11112 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11113 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11114 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11115 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11116 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11117 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11118 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11119 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11120 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11121 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11123 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11124 | |
ad6254c5 AK |
11125 | ;; |
11126 | esac | |
ec6a6fbe AK |
11127 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11128 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11130 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11131 | else |
8a2fc586 | 11132 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11133 | fi |
ec6a6fbe AK |
11134 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11135 | $as_echo "$as_val"'` | |
11136 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11137 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11138 | |
11139 | fi | |
ec6a6fbe AK |
11140 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11141 | $as_echo "$as_val"'` | |
11142 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11143 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11144 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11145 | _ACEOF |
11146 | ||
11147 | else | |
ec6a6fbe AK |
11148 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11149 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11150 | { (exit 1); exit 1; }; } |
11151 | fi | |
11152 | ||
11153 | done | |
11154 | ||
11155 | fi | |
11156 | ||
5c7fc7c4 | 11157 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
11158 | |
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | 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 | |
11169 | do | |
ec6a6fbe | 11170 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11172 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11173 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11175 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11176 | fi |
ec6a6fbe AK |
11177 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11178 | $as_echo "$as_val"'` | |
11179 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11180 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11181 | else |
11182 | # Is the header compilable? | |
ec6a6fbe AK |
11183 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11184 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11185 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11186 | /* confdefs.h. */ |
11187 | _ACEOF | |
11188 | cat confdefs.h >>conftest.$ac_ext | |
11189 | cat >>conftest.$ac_ext <<_ACEOF | |
11190 | /* end confdefs.h. */ | |
11191 | $ac_includes_default | |
11192 | #include <$ac_header> | |
11193 | _ACEOF | |
11194 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11195 | if { (ac_try="$ac_compile" |
11196 | case "(($ac_try" in | |
11197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11198 | *) ac_try_echo=$ac_try;; | |
11199 | esac | |
ec6a6fbe AK |
11200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11201 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11202 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11203 | ac_status=$? |
8a2fc586 AK |
11204 | grep -v '^ *+' conftest.er1 >conftest.err |
11205 | rm -f conftest.er1 | |
11206 | cat conftest.err >&5 | |
ec6a6fbe | 11207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11208 | (exit $ac_status); } && { |
11209 | test -z "$ac_c_werror_flag" || | |
11210 | test ! -s conftest.err | |
11211 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11212 | ac_header_compiler=yes |
11213 | else | |
ec6a6fbe | 11214 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11215 | sed 's/^/| /' conftest.$ac_ext >&5 |
11216 | ||
7a197a62 | 11217 | ac_header_compiler=no |
ad6254c5 | 11218 | fi |
7a197a62 AK |
11219 | |
11220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11221 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11222 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11223 | |
11224 | # Is the header present? | |
ec6a6fbe AK |
11225 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11226 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11227 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11228 | /* confdefs.h. */ |
11229 | _ACEOF | |
11230 | cat confdefs.h >>conftest.$ac_ext | |
11231 | cat >>conftest.$ac_ext <<_ACEOF | |
11232 | /* end confdefs.h. */ | |
11233 | #include <$ac_header> | |
11234 | _ACEOF | |
7a197a62 AK |
11235 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11236 | case "(($ac_try" in | |
11237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11238 | *) ac_try_echo=$ac_try;; | |
11239 | esac | |
ec6a6fbe AK |
11240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11241 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11242 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11243 | ac_status=$? |
11244 | grep -v '^ *+' conftest.er1 >conftest.err | |
11245 | rm -f conftest.er1 | |
11246 | cat conftest.err >&5 | |
ec6a6fbe | 11247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11248 | (exit $ac_status); } >/dev/null && { |
11249 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11250 | test ! -s conftest.err | |
11251 | }; then | |
ad6254c5 AK |
11252 | ac_header_preproc=yes |
11253 | else | |
ec6a6fbe | 11254 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11255 | sed 's/^/| /' conftest.$ac_ext >&5 |
11256 | ||
11257 | ac_header_preproc=no | |
11258 | fi | |
7a197a62 | 11259 | |
ad6254c5 | 11260 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11261 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11262 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11263 | |
11264 | # So? What about this header? | |
8a2fc586 AK |
11265 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11266 | yes:no: ) | |
ec6a6fbe AK |
11267 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11268 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11269 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11270 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11271 | ac_header_preproc=yes |
ad6254c5 | 11272 | ;; |
8a2fc586 | 11273 | no:yes:* ) |
ec6a6fbe AK |
11274 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11275 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11276 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11277 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11278 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11279 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11280 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11281 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11282 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11283 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11284 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11285 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11286 | |
ad6254c5 AK |
11287 | ;; |
11288 | esac | |
ec6a6fbe AK |
11289 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11290 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11291 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11292 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11293 | else |
8a2fc586 | 11294 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11295 | fi |
ec6a6fbe AK |
11296 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11297 | $as_echo "$as_val"'` | |
11298 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11299 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11300 | |
11301 | fi | |
ec6a6fbe AK |
11302 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11303 | $as_echo "$as_val"'` | |
11304 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11305 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11306 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11307 | _ACEOF |
11308 | ||
11309 | else | |
ec6a6fbe AK |
11310 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11311 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11312 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11313 | fi |
11314 | ||
ad6254c5 AK |
11315 | done |
11316 | ||
11317 | ||
795ca3e5 | 11318 | |
8106cdd5 | 11319 | |
ad6254c5 AK |
11320 | |
11321 | ||
11322 | for ac_func in dup2 getmntent memmove select socket | |
11323 | do | |
ec6a6fbe AK |
11324 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11325 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11326 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11327 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11328 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11329 | else |
ad6254c5 | 11330 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11331 | /* confdefs.h. */ |
11332 | _ACEOF | |
11333 | cat confdefs.h >>conftest.$ac_ext | |
11334 | cat >>conftest.$ac_ext <<_ACEOF | |
11335 | /* end confdefs.h. */ | |
8a2fc586 AK |
11336 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11337 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11338 | #define $ac_func innocuous_$ac_func | |
11339 | ||
795ca3e5 | 11340 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
11341 | which can conflict with char $ac_func (); below. |
11342 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11343 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11344 | |
ad6254c5 AK |
11345 | #ifdef __STDC__ |
11346 | # include <limits.h> | |
11347 | #else | |
11348 | # include <assert.h> | |
11349 | #endif | |
8a2fc586 AK |
11350 | |
11351 | #undef $ac_func | |
11352 | ||
7a197a62 AK |
11353 | /* Override any GCC internal prototype to avoid an error. |
11354 | Use char because int might match the return type of a GCC | |
11355 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11356 | #ifdef __cplusplus |
11357 | extern "C" | |
ad6254c5 | 11358 | #endif |
ad6254c5 | 11359 | char $ac_func (); |
795ca3e5 AK |
11360 | /* The GNU C library defines this for functions which it implements |
11361 | to always fail with ENOSYS. Some functions are actually named | |
11362 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11363 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 11364 | choke me |
795ca3e5 AK |
11365 | #endif |
11366 | ||
ad6254c5 AK |
11367 | int |
11368 | main () | |
11369 | { | |
7a197a62 | 11370 | return $ac_func (); |
ad6254c5 AK |
11371 | ; |
11372 | return 0; | |
11373 | } | |
11374 | _ACEOF | |
11375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11376 | if { (ac_try="$ac_link" |
11377 | case "(($ac_try" in | |
11378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11379 | *) ac_try_echo=$ac_try;; | |
11380 | esac | |
ec6a6fbe AK |
11381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11382 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11383 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11384 | ac_status=$? |
8a2fc586 AK |
11385 | grep -v '^ *+' conftest.er1 >conftest.err |
11386 | rm -f conftest.er1 | |
11387 | cat conftest.err >&5 | |
ec6a6fbe | 11388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11389 | (exit $ac_status); } && { |
11390 | test -z "$ac_c_werror_flag" || | |
11391 | test ! -s conftest.err | |
ec6a6fbe AK |
11392 | } && test -s conftest$ac_exeext && { |
11393 | test "$cross_compiling" = yes || | |
11394 | $as_test_x conftest$ac_exeext | |
11395 | }; then | |
ad6254c5 | 11396 | eval "$as_ac_var=yes" |
795ca3e5 | 11397 | else |
ec6a6fbe | 11398 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11399 | sed 's/^/| /' conftest.$ac_ext >&5 |
11400 | ||
7a197a62 | 11401 | eval "$as_ac_var=no" |
80992638 | 11402 | fi |
7a197a62 | 11403 | |
ec6a6fbe | 11404 | rm -rf conftest.dSYM |
25fbec5b | 11405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11406 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 11407 | fi |
ec6a6fbe AK |
11408 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11409 | $as_echo "$as_val"'` | |
11410 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11411 | $as_echo "$ac_res" >&6; } | |
11412 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11413 | $as_echo "$as_val"'` | |
11414 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11415 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11416 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 11417 | _ACEOF |
80992638 AK |
11418 | |
11419 | else | |
ec6a6fbe AK |
11420 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11421 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11422 | { (exit 1); exit 1; }; } |
8106cdd5 | 11423 | fi |
ad6254c5 | 11424 | done |
795ca3e5 | 11425 | |
25fbec5b AK |
11426 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
11427 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
11428 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
11429 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 11430 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 11431 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
11432 | else |
11433 | ac_func_search_save_LIBS=$LIBS | |
11434 | cat >conftest.$ac_ext <<_ACEOF | |
11435 | /* confdefs.h. */ | |
11436 | _ACEOF | |
11437 | cat confdefs.h >>conftest.$ac_ext | |
11438 | cat >>conftest.$ac_ext <<_ACEOF | |
11439 | /* end confdefs.h. */ | |
80992638 | 11440 | |
7a197a62 AK |
11441 | /* Override any GCC internal prototype to avoid an error. |
11442 | Use char because int might match the return type of a GCC | |
ad6254c5 | 11443 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
11444 | #ifdef __cplusplus |
11445 | extern "C" | |
11446 | #endif | |
25fbec5b | 11447 | char getmntent (); |
ad6254c5 AK |
11448 | int |
11449 | main () | |
11450 | { | |
25fbec5b | 11451 | return getmntent (); |
ad6254c5 AK |
11452 | ; |
11453 | return 0; | |
11454 | } | |
11455 | _ACEOF | |
25fbec5b AK |
11456 | for ac_lib in '' sun seq gen; do |
11457 | if test -z "$ac_lib"; then | |
11458 | ac_res="none required" | |
11459 | else | |
11460 | ac_res=-l$ac_lib | |
11461 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11462 | fi | |
11463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11464 | if { (ac_try="$ac_link" |
11465 | case "(($ac_try" in | |
11466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11467 | *) ac_try_echo=$ac_try;; | |
11468 | esac | |
ec6a6fbe AK |
11469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11470 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11471 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11472 | ac_status=$? |
8a2fc586 AK |
11473 | grep -v '^ *+' conftest.er1 >conftest.err |
11474 | rm -f conftest.er1 | |
11475 | cat conftest.err >&5 | |
ec6a6fbe | 11476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11477 | (exit $ac_status); } && { |
11478 | test -z "$ac_c_werror_flag" || | |
11479 | test ! -s conftest.err | |
ec6a6fbe AK |
11480 | } && test -s conftest$ac_exeext && { |
11481 | test "$cross_compiling" = yes || | |
11482 | $as_test_x conftest$ac_exeext | |
11483 | }; then | |
25fbec5b | 11484 | ac_cv_search_getmntent=$ac_res |
80992638 | 11485 | else |
ec6a6fbe | 11486 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11487 | sed 's/^/| /' conftest.$ac_ext >&5 |
11488 | ||
25fbec5b | 11489 | |
795ca3e5 AK |
11490 | fi |
11491 | ||
ec6a6fbe | 11492 | rm -rf conftest.dSYM |
25fbec5b AK |
11493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11494 | conftest$ac_exeext | |
11495 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11496 | break | |
795ca3e5 | 11497 | fi |
25fbec5b AK |
11498 | done |
11499 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11500 | : | |
11501 | else | |
11502 | ac_cv_search_getmntent=no | |
11503 | fi | |
11504 | rm conftest.$ac_ext | |
11505 | LIBS=$ac_func_search_save_LIBS | |
11506 | fi | |
ec6a6fbe AK |
11507 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
11508 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
11509 | ac_res=$ac_cv_search_getmntent |
11510 | if test "$ac_res" != no; then | |
11511 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11512 | ac_cv_func_getmntent=yes | |
11513 | ||
11514 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 11515 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 11516 | _ACEOF |
795ca3e5 | 11517 | |
25fbec5b AK |
11518 | else |
11519 | ac_cv_func_getmntent=no | |
795ca3e5 | 11520 | fi |
795ca3e5 AK |
11521 | |
11522 | ||
ad6254c5 AK |
11523 | # AC_FUNC_REALLOC |
11524 | ||
11525 | ||
11526 | for ac_header in sys/select.h sys/socket.h | |
11527 | do | |
ec6a6fbe | 11528 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11529 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11530 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11531 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11532 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11533 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11534 | fi |
ec6a6fbe AK |
11535 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11536 | $as_echo "$as_val"'` | |
11537 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11538 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 11539 | else |
ad6254c5 | 11540 | # Is the header compilable? |
ec6a6fbe AK |
11541 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11542 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11543 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11544 | /* confdefs.h. */ |
11545 | _ACEOF | |
11546 | cat confdefs.h >>conftest.$ac_ext | |
11547 | cat >>conftest.$ac_ext <<_ACEOF | |
11548 | /* end confdefs.h. */ | |
11549 | $ac_includes_default | |
11550 | #include <$ac_header> | |
11551 | _ACEOF | |
11552 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11553 | if { (ac_try="$ac_compile" |
11554 | case "(($ac_try" in | |
11555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11556 | *) ac_try_echo=$ac_try;; | |
11557 | esac | |
ec6a6fbe AK |
11558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11559 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11560 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11561 | ac_status=$? |
8a2fc586 AK |
11562 | grep -v '^ *+' conftest.er1 >conftest.err |
11563 | rm -f conftest.er1 | |
11564 | cat conftest.err >&5 | |
ec6a6fbe | 11565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11566 | (exit $ac_status); } && { |
11567 | test -z "$ac_c_werror_flag" || | |
11568 | test ! -s conftest.err | |
11569 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 11570 | ac_header_compiler=yes |
80992638 | 11571 | else |
ec6a6fbe | 11572 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11573 | sed 's/^/| /' conftest.$ac_ext >&5 |
11574 | ||
7a197a62 | 11575 | ac_header_compiler=no |
ad6254c5 | 11576 | fi |
7a197a62 AK |
11577 | |
11578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11579 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11580 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11581 | |
11582 | # Is the header present? | |
ec6a6fbe AK |
11583 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11584 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11585 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11586 | /* confdefs.h. */ |
11587 | _ACEOF | |
11588 | cat confdefs.h >>conftest.$ac_ext | |
11589 | cat >>conftest.$ac_ext <<_ACEOF | |
11590 | /* end confdefs.h. */ | |
11591 | #include <$ac_header> | |
11592 | _ACEOF | |
7a197a62 AK |
11593 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11594 | case "(($ac_try" in | |
11595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11596 | *) ac_try_echo=$ac_try;; | |
11597 | esac | |
ec6a6fbe AK |
11598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11599 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11600 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11601 | ac_status=$? |
11602 | grep -v '^ *+' conftest.er1 >conftest.err | |
11603 | rm -f conftest.er1 | |
11604 | cat conftest.err >&5 | |
ec6a6fbe | 11605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11606 | (exit $ac_status); } >/dev/null && { |
11607 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11608 | test ! -s conftest.err | |
11609 | }; then | |
ad6254c5 AK |
11610 | ac_header_preproc=yes |
11611 | else | |
ec6a6fbe | 11612 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11613 | sed 's/^/| /' conftest.$ac_ext >&5 |
11614 | ||
11615 | ac_header_preproc=no | |
11616 | fi | |
7a197a62 | 11617 | |
ad6254c5 | 11618 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11619 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11620 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11621 | |
11622 | # So? What about this header? | |
8a2fc586 AK |
11623 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11624 | yes:no: ) | |
ec6a6fbe AK |
11625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11626 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11628 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11629 | ac_header_preproc=yes |
ad6254c5 | 11630 | ;; |
8a2fc586 | 11631 | no:yes:* ) |
ec6a6fbe AK |
11632 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11633 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11635 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11636 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11637 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11638 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11639 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11640 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11641 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11642 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11643 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11644 | |
ad6254c5 AK |
11645 | ;; |
11646 | esac | |
ec6a6fbe AK |
11647 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11648 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11650 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11651 | else |
8a2fc586 | 11652 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 11653 | fi |
ec6a6fbe AK |
11654 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11655 | $as_echo "$as_val"'` | |
11656 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11657 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 11658 | |
795ca3e5 | 11659 | fi |
ec6a6fbe AK |
11660 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11661 | $as_echo "$as_val"'` | |
11662 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11663 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11664 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11665 | _ACEOF |
11666 | ||
795ca3e5 AK |
11667 | fi |
11668 | ||
ad6254c5 AK |
11669 | done |
11670 | ||
ec6a6fbe AK |
11671 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11672 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 11673 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 11674 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 11675 | else |
ad6254c5 | 11676 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 11677 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
11678 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11679 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11680 | /* confdefs.h. */ |
11681 | _ACEOF | |
11682 | cat confdefs.h >>conftest.$ac_ext | |
11683 | cat >>conftest.$ac_ext <<_ACEOF | |
11684 | /* end confdefs.h. */ | |
11685 | $ac_includes_default | |
25fbec5b | 11686 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
11687 | # include <sys/select.h> |
11688 | #endif | |
25fbec5b | 11689 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
11690 | # include <sys/socket.h> |
11691 | #endif | |
11692 | ||
11693 | int | |
11694 | main () | |
11695 | { | |
11696 | extern int select ($ac_arg1, | |
8a2fc586 AK |
11697 | $ac_arg234, $ac_arg234, $ac_arg234, |
11698 | $ac_arg5); | |
ad6254c5 AK |
11699 | ; |
11700 | return 0; | |
11701 | } | |
11702 | _ACEOF | |
11703 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11704 | if { (ac_try="$ac_compile" |
11705 | case "(($ac_try" in | |
11706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11707 | *) ac_try_echo=$ac_try;; | |
11708 | esac | |
ec6a6fbe AK |
11709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11710 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11711 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11712 | ac_status=$? |
8a2fc586 AK |
11713 | grep -v '^ *+' conftest.er1 >conftest.err |
11714 | rm -f conftest.er1 | |
11715 | cat conftest.err >&5 | |
ec6a6fbe | 11716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11717 | (exit $ac_status); } && { |
11718 | test -z "$ac_c_werror_flag" || | |
11719 | test ! -s conftest.err | |
11720 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11721 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11722 | else | |
ec6a6fbe | 11723 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11724 | sed 's/^/| /' conftest.$ac_ext >&5 |
11725 | ||
7a197a62 | 11726 | |
ad6254c5 | 11727 | fi |
7a197a62 AK |
11728 | |
11729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
11730 | done |
11731 | done | |
11732 | done | |
11733 | # Provide a safe default value. | |
11734 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11735 | ||
26e7f2e0 | 11736 | fi |
ec6a6fbe AK |
11737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11738 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11739 | ac_save_IFS=$IFS; IFS=',' |
11740 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11741 | IFS=$ac_save_IFS | |
11742 | shift | |
11743 | ||
11744 | cat >>confdefs.h <<_ACEOF | |
11745 | #define SELECT_TYPE_ARG1 $1 | |
11746 | _ACEOF | |
11747 | ||
11748 | ||
11749 | cat >>confdefs.h <<_ACEOF | |
11750 | #define SELECT_TYPE_ARG234 ($2) | |
11751 | _ACEOF | |
11752 | ||
11753 | ||
11754 | cat >>confdefs.h <<_ACEOF | |
11755 | #define SELECT_TYPE_ARG5 ($3) | |
11756 | _ACEOF | |
11757 | ||
80992638 | 11758 | rm -f conftest* |
80992638 | 11759 | |
8106cdd5 | 11760 | fi |
ad6254c5 | 11761 | |
ad6254c5 AK |
11762 | if test x$CLUSTER != xnone; then |
11763 | ||
11764 | ||
11765 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11766 | do |
ec6a6fbe | 11767 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11768 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11769 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11770 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11771 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11772 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11773 | fi |
ec6a6fbe AK |
11774 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11775 | $as_echo "$as_val"'` | |
11776 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11777 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11778 | else |
11779 | # Is the header compilable? | |
ec6a6fbe AK |
11780 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11781 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11782 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11783 | /* confdefs.h. */ |
11784 | _ACEOF | |
11785 | cat confdefs.h >>conftest.$ac_ext | |
11786 | cat >>conftest.$ac_ext <<_ACEOF | |
11787 | /* end confdefs.h. */ | |
11788 | $ac_includes_default | |
11789 | #include <$ac_header> | |
11790 | _ACEOF | |
11791 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11792 | if { (ac_try="$ac_compile" |
11793 | case "(($ac_try" in | |
11794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11795 | *) ac_try_echo=$ac_try;; | |
11796 | esac | |
ec6a6fbe AK |
11797 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11798 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11799 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11800 | ac_status=$? |
8a2fc586 AK |
11801 | grep -v '^ *+' conftest.er1 >conftest.err |
11802 | rm -f conftest.er1 | |
11803 | cat conftest.err >&5 | |
ec6a6fbe | 11804 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11805 | (exit $ac_status); } && { |
11806 | test -z "$ac_c_werror_flag" || | |
11807 | test ! -s conftest.err | |
11808 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11809 | ac_header_compiler=yes |
11810 | else | |
ec6a6fbe | 11811 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11812 | sed 's/^/| /' conftest.$ac_ext >&5 |
11813 | ||
7a197a62 | 11814 | ac_header_compiler=no |
ad6254c5 | 11815 | fi |
7a197a62 AK |
11816 | |
11817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11818 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11819 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11820 | |
11821 | # Is the header present? | |
ec6a6fbe AK |
11822 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11823 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11824 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11825 | /* confdefs.h. */ |
11826 | _ACEOF | |
11827 | cat confdefs.h >>conftest.$ac_ext | |
11828 | cat >>conftest.$ac_ext <<_ACEOF | |
11829 | /* end confdefs.h. */ | |
11830 | #include <$ac_header> | |
11831 | _ACEOF | |
7a197a62 AK |
11832 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11833 | case "(($ac_try" in | |
11834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11835 | *) ac_try_echo=$ac_try;; | |
11836 | esac | |
ec6a6fbe AK |
11837 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11838 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11839 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11840 | ac_status=$? |
11841 | grep -v '^ *+' conftest.er1 >conftest.err | |
11842 | rm -f conftest.er1 | |
11843 | cat conftest.err >&5 | |
ec6a6fbe | 11844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11845 | (exit $ac_status); } >/dev/null && { |
11846 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11847 | test ! -s conftest.err | |
11848 | }; then | |
ad6254c5 AK |
11849 | ac_header_preproc=yes |
11850 | else | |
ec6a6fbe | 11851 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11852 | sed 's/^/| /' conftest.$ac_ext >&5 |
11853 | ||
11854 | ac_header_preproc=no | |
11855 | fi | |
7a197a62 | 11856 | |
ad6254c5 | 11857 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11858 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11859 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11860 | |
11861 | # So? What about this header? | |
8a2fc586 AK |
11862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11863 | yes:no: ) | |
ec6a6fbe AK |
11864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11865 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11867 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11868 | ac_header_preproc=yes |
ad6254c5 | 11869 | ;; |
8a2fc586 | 11870 | no:yes:* ) |
ec6a6fbe AK |
11871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11872 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11874 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11876 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11878 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11880 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11882 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11883 | |
ad6254c5 AK |
11884 | ;; |
11885 | esac | |
ec6a6fbe AK |
11886 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11887 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11889 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11890 | else |
8a2fc586 | 11891 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11892 | fi |
ec6a6fbe AK |
11893 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11894 | $as_echo "$as_val"'` | |
11895 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11896 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11897 | |
11898 | fi | |
ec6a6fbe AK |
11899 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11900 | $as_echo "$as_val"'` | |
11901 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11902 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11903 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11904 | _ACEOF |
11905 | ||
80992638 | 11906 | else |
ec6a6fbe AK |
11907 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11908 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11909 | { (exit 1); exit 1; }; } |
b896caa1 | 11910 | fi |
ad6254c5 | 11911 | |
b896caa1 AK |
11912 | done |
11913 | ||
11914 | ||
ad6254c5 AK |
11915 | for ac_func in socket |
11916 | do | |
ec6a6fbe AK |
11917 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11918 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11919 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11920 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11921 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11922 | else |
ad6254c5 | 11923 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11924 | /* confdefs.h. */ |
11925 | _ACEOF | |
11926 | cat confdefs.h >>conftest.$ac_ext | |
11927 | cat >>conftest.$ac_ext <<_ACEOF | |
11928 | /* end confdefs.h. */ | |
8a2fc586 AK |
11929 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11931 | #define $ac_func innocuous_$ac_func | |
11932 | ||
ad6254c5 AK |
11933 | /* System header to define __stub macros and hopefully few prototypes, |
11934 | which can conflict with char $ac_func (); below. | |
11935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11936 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11937 | |
ad6254c5 AK |
11938 | #ifdef __STDC__ |
11939 | # include <limits.h> | |
11940 | #else | |
11941 | # include <assert.h> | |
11942 | #endif | |
8a2fc586 AK |
11943 | |
11944 | #undef $ac_func | |
11945 | ||
7a197a62 AK |
11946 | /* Override any GCC internal prototype to avoid an error. |
11947 | Use char because int might match the return type of a GCC | |
11948 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11949 | #ifdef __cplusplus |
11950 | extern "C" | |
ad6254c5 | 11951 | #endif |
ad6254c5 AK |
11952 | char $ac_func (); |
11953 | /* The GNU C library defines this for functions which it implements | |
11954 | to always fail with ENOSYS. Some functions are actually named | |
11955 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11956 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11957 | choke me |
ad6254c5 AK |
11958 | #endif |
11959 | ||
11960 | int | |
11961 | main () | |
11962 | { | |
7a197a62 | 11963 | return $ac_func (); |
ad6254c5 AK |
11964 | ; |
11965 | return 0; | |
11966 | } | |
11967 | _ACEOF | |
11968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11969 | if { (ac_try="$ac_link" |
11970 | case "(($ac_try" in | |
11971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11972 | *) ac_try_echo=$ac_try;; | |
11973 | esac | |
ec6a6fbe AK |
11974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11975 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11976 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11977 | ac_status=$? |
8a2fc586 AK |
11978 | grep -v '^ *+' conftest.er1 >conftest.err |
11979 | rm -f conftest.er1 | |
11980 | cat conftest.err >&5 | |
ec6a6fbe | 11981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11982 | (exit $ac_status); } && { |
11983 | test -z "$ac_c_werror_flag" || | |
11984 | test ! -s conftest.err | |
ec6a6fbe AK |
11985 | } && test -s conftest$ac_exeext && { |
11986 | test "$cross_compiling" = yes || | |
11987 | $as_test_x conftest$ac_exeext | |
11988 | }; then | |
ad6254c5 AK |
11989 | eval "$as_ac_var=yes" |
11990 | else | |
ec6a6fbe | 11991 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11992 | sed 's/^/| /' conftest.$ac_ext >&5 |
11993 | ||
7a197a62 | 11994 | eval "$as_ac_var=no" |
ad6254c5 | 11995 | fi |
7a197a62 | 11996 | |
ec6a6fbe | 11997 | rm -rf conftest.dSYM |
25fbec5b | 11998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11999 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 12000 | fi |
ec6a6fbe AK |
12001 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12002 | $as_echo "$as_val"'` | |
12003 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12004 | $as_echo "$ac_res" >&6; } | |
12005 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12006 | $as_echo "$as_val"'` | |
12007 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12008 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12009 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
12010 | _ACEOF |
12011 | ||
12012 | else | |
ec6a6fbe AK |
12013 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12014 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
12015 | { (exit 1); exit 1; }; } |
12016 | fi | |
12017 | done | |
12018 | ||
12019 | fi | |
12020 | ||
12021 | if test x$HAVE_LIBDL = xyes; then | |
12022 | ||
12023 | for ac_header in dlfcn.h | |
12024 | do | |
ec6a6fbe | 12025 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12027 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12028 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12030 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12031 | fi |
ec6a6fbe AK |
12032 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12033 | $as_echo "$as_val"'` | |
12034 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12035 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
12036 | else |
12037 | # Is the header compilable? | |
ec6a6fbe AK |
12038 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12039 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12040 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12041 | /* confdefs.h. */ |
12042 | _ACEOF | |
12043 | cat confdefs.h >>conftest.$ac_ext | |
12044 | cat >>conftest.$ac_ext <<_ACEOF | |
12045 | /* end confdefs.h. */ | |
12046 | $ac_includes_default | |
12047 | #include <$ac_header> | |
12048 | _ACEOF | |
12049 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12050 | if { (ac_try="$ac_compile" |
12051 | case "(($ac_try" in | |
12052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12053 | *) ac_try_echo=$ac_try;; | |
12054 | esac | |
ec6a6fbe AK |
12055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12056 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12057 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12058 | ac_status=$? |
8a2fc586 AK |
12059 | grep -v '^ *+' conftest.er1 >conftest.err |
12060 | rm -f conftest.er1 | |
12061 | cat conftest.err >&5 | |
ec6a6fbe | 12062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12063 | (exit $ac_status); } && { |
12064 | test -z "$ac_c_werror_flag" || | |
12065 | test ! -s conftest.err | |
12066 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12067 | ac_header_compiler=yes |
12068 | else | |
ec6a6fbe | 12069 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12070 | sed 's/^/| /' conftest.$ac_ext >&5 |
12071 | ||
7a197a62 | 12072 | ac_header_compiler=no |
ad6254c5 | 12073 | fi |
7a197a62 AK |
12074 | |
12075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12076 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12077 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12078 | |
12079 | # Is the header present? | |
ec6a6fbe AK |
12080 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12081 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12082 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12083 | /* confdefs.h. */ |
12084 | _ACEOF | |
12085 | cat confdefs.h >>conftest.$ac_ext | |
12086 | cat >>conftest.$ac_ext <<_ACEOF | |
12087 | /* end confdefs.h. */ | |
12088 | #include <$ac_header> | |
12089 | _ACEOF | |
7a197a62 AK |
12090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12091 | case "(($ac_try" in | |
12092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12093 | *) ac_try_echo=$ac_try;; | |
12094 | esac | |
ec6a6fbe AK |
12095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12096 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12098 | ac_status=$? |
12099 | grep -v '^ *+' conftest.er1 >conftest.err | |
12100 | rm -f conftest.er1 | |
12101 | cat conftest.err >&5 | |
ec6a6fbe | 12102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12103 | (exit $ac_status); } >/dev/null && { |
12104 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12105 | test ! -s conftest.err | |
12106 | }; then | |
ad6254c5 AK |
12107 | ac_header_preproc=yes |
12108 | else | |
ec6a6fbe | 12109 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12110 | sed 's/^/| /' conftest.$ac_ext >&5 |
12111 | ||
12112 | ac_header_preproc=no | |
12113 | fi | |
7a197a62 | 12114 | |
ad6254c5 | 12115 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12116 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12117 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12118 | |
12119 | # So? What about this header? | |
8a2fc586 AK |
12120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12121 | yes:no: ) | |
ec6a6fbe AK |
12122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12123 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12125 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12126 | ac_header_preproc=yes |
ad6254c5 | 12127 | ;; |
8a2fc586 | 12128 | no:yes:* ) |
ec6a6fbe AK |
12129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12130 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12132 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12134 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12136 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12138 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12140 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12141 | |
ad6254c5 AK |
12142 | ;; |
12143 | esac | |
ec6a6fbe AK |
12144 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12145 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12147 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12148 | else |
8a2fc586 | 12149 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 12150 | fi |
ec6a6fbe AK |
12151 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12152 | $as_echo "$as_val"'` | |
12153 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12154 | $as_echo "$ac_res" >&6; } | |
80992638 | 12155 | |
8106cdd5 | 12156 | fi |
ec6a6fbe AK |
12157 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12158 | $as_echo "$as_val"'` | |
12159 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12160 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12161 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12162 | _ACEOF |
795ca3e5 AK |
12163 | |
12164 | else | |
ec6a6fbe AK |
12165 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12166 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12167 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
12168 | fi |
12169 | ||
ad6254c5 | 12170 | done |
80992638 | 12171 | |
ad6254c5 | 12172 | fi |
80992638 | 12173 | |
ad6254c5 | 12174 | if test x$INTL = xyes; then |
83912faa | 12175 | |
ad6254c5 AK |
12176 | for ac_header in libintl.h |
12177 | do | |
ec6a6fbe | 12178 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12179 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12180 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12181 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12182 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12183 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12184 | fi |
ec6a6fbe AK |
12185 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12186 | $as_echo "$as_val"'` | |
12187 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12188 | $as_echo "$ac_res" >&6; } | |
83912faa | 12189 | else |
ad6254c5 | 12190 | # Is the header compilable? |
ec6a6fbe AK |
12191 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12192 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12193 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12194 | /* confdefs.h. */ |
12195 | _ACEOF | |
12196 | cat confdefs.h >>conftest.$ac_ext | |
12197 | cat >>conftest.$ac_ext <<_ACEOF | |
12198 | /* end confdefs.h. */ | |
12199 | $ac_includes_default | |
12200 | #include <$ac_header> | |
12201 | _ACEOF | |
12202 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12203 | if { (ac_try="$ac_compile" |
12204 | case "(($ac_try" in | |
12205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12206 | *) ac_try_echo=$ac_try;; | |
12207 | esac | |
ec6a6fbe AK |
12208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12209 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12210 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12211 | ac_status=$? |
8a2fc586 AK |
12212 | grep -v '^ *+' conftest.er1 >conftest.err |
12213 | rm -f conftest.er1 | |
12214 | cat conftest.err >&5 | |
ec6a6fbe | 12215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12216 | (exit $ac_status); } && { |
12217 | test -z "$ac_c_werror_flag" || | |
12218 | test ! -s conftest.err | |
12219 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12220 | ac_header_compiler=yes |
12221 | else | |
ec6a6fbe | 12222 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12223 | sed 's/^/| /' conftest.$ac_ext >&5 |
12224 | ||
7a197a62 | 12225 | ac_header_compiler=no |
ad6254c5 | 12226 | fi |
7a197a62 AK |
12227 | |
12228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12229 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12230 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12231 | |
12232 | # Is the header present? | |
ec6a6fbe AK |
12233 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12234 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12235 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12236 | /* confdefs.h. */ |
12237 | _ACEOF | |
12238 | cat confdefs.h >>conftest.$ac_ext | |
12239 | cat >>conftest.$ac_ext <<_ACEOF | |
12240 | /* end confdefs.h. */ | |
12241 | #include <$ac_header> | |
12242 | _ACEOF | |
7a197a62 AK |
12243 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12244 | case "(($ac_try" in | |
12245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12246 | *) ac_try_echo=$ac_try;; | |
12247 | esac | |
ec6a6fbe AK |
12248 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12249 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12250 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12251 | ac_status=$? |
12252 | grep -v '^ *+' conftest.er1 >conftest.err | |
12253 | rm -f conftest.er1 | |
12254 | cat conftest.err >&5 | |
ec6a6fbe | 12255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12256 | (exit $ac_status); } >/dev/null && { |
12257 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12258 | test ! -s conftest.err | |
12259 | }; then | |
ad6254c5 AK |
12260 | ac_header_preproc=yes |
12261 | else | |
ec6a6fbe | 12262 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12263 | sed 's/^/| /' conftest.$ac_ext >&5 |
12264 | ||
12265 | ac_header_preproc=no | |
12266 | fi | |
7a197a62 | 12267 | |
ad6254c5 | 12268 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12269 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12270 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12271 | |
12272 | # So? What about this header? | |
8a2fc586 AK |
12273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12274 | yes:no: ) | |
ec6a6fbe AK |
12275 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12276 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12277 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12278 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12279 | ac_header_preproc=yes |
ad6254c5 | 12280 | ;; |
8a2fc586 | 12281 | no:yes:* ) |
ec6a6fbe AK |
12282 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12283 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12284 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12285 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12286 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12287 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12288 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12289 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12290 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12291 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12292 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12293 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12294 | |
ad6254c5 AK |
12295 | ;; |
12296 | esac | |
ec6a6fbe AK |
12297 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12298 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12300 | $as_echo_n "(cached) " >&6 |
80992638 | 12301 | else |
8a2fc586 | 12302 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 12303 | fi |
ec6a6fbe AK |
12304 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12305 | $as_echo "$as_val"'` | |
12306 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12307 | $as_echo "$ac_res" >&6; } | |
83912faa | 12308 | |
69792976 | 12309 | fi |
ec6a6fbe AK |
12310 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12311 | $as_echo "$as_val"'` | |
12312 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12313 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12314 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12315 | _ACEOF |
69792976 | 12316 | |
69792976 | 12317 | else |
ec6a6fbe AK |
12318 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12319 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12320 | { (exit 1); exit 1; }; } |
80992638 AK |
12321 | fi |
12322 | ||
ad6254c5 | 12323 | done |
69792976 | 12324 | |
ad6254c5 AK |
12325 | fi |
12326 | ||
ad6254c5 AK |
12327 | if test x$HAVE_SELINUX = xyes; then |
12328 | ||
12329 | for ac_header in selinux/selinux.h | |
12330 | do | |
ec6a6fbe | 12331 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12333 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12334 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12336 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12337 | fi |
ec6a6fbe AK |
12338 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12339 | $as_echo "$as_val"'` | |
12340 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12341 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12342 | else |
ad6254c5 | 12343 | # Is the header compilable? |
ec6a6fbe AK |
12344 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12345 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12346 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12347 | /* confdefs.h. */ |
12348 | _ACEOF | |
12349 | cat confdefs.h >>conftest.$ac_ext | |
12350 | cat >>conftest.$ac_ext <<_ACEOF | |
12351 | /* end confdefs.h. */ | |
12352 | $ac_includes_default | |
12353 | #include <$ac_header> | |
12354 | _ACEOF | |
12355 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12356 | if { (ac_try="$ac_compile" |
12357 | case "(($ac_try" in | |
12358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12359 | *) ac_try_echo=$ac_try;; | |
12360 | esac | |
ec6a6fbe AK |
12361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12362 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12363 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12364 | ac_status=$? |
8a2fc586 AK |
12365 | grep -v '^ *+' conftest.er1 >conftest.err |
12366 | rm -f conftest.er1 | |
12367 | cat conftest.err >&5 | |
ec6a6fbe | 12368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12369 | (exit $ac_status); } && { |
12370 | test -z "$ac_c_werror_flag" || | |
12371 | test ! -s conftest.err | |
12372 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12373 | ac_header_compiler=yes |
12374 | else | |
ec6a6fbe | 12375 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12376 | sed 's/^/| /' conftest.$ac_ext >&5 |
12377 | ||
7a197a62 | 12378 | ac_header_compiler=no |
ad6254c5 | 12379 | fi |
7a197a62 AK |
12380 | |
12381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12382 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12383 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12384 | |
12385 | # Is the header present? | |
ec6a6fbe AK |
12386 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12387 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12388 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12389 | /* confdefs.h. */ |
12390 | _ACEOF | |
12391 | cat confdefs.h >>conftest.$ac_ext | |
12392 | cat >>conftest.$ac_ext <<_ACEOF | |
12393 | /* end confdefs.h. */ | |
12394 | #include <$ac_header> | |
12395 | _ACEOF | |
7a197a62 AK |
12396 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12397 | case "(($ac_try" in | |
12398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12399 | *) ac_try_echo=$ac_try;; | |
12400 | esac | |
ec6a6fbe AK |
12401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12402 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12403 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12404 | ac_status=$? |
12405 | grep -v '^ *+' conftest.er1 >conftest.err | |
12406 | rm -f conftest.er1 | |
12407 | cat conftest.err >&5 | |
ec6a6fbe | 12408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12409 | (exit $ac_status); } >/dev/null && { |
12410 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12411 | test ! -s conftest.err | |
12412 | }; then | |
ad6254c5 AK |
12413 | ac_header_preproc=yes |
12414 | else | |
ec6a6fbe | 12415 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12416 | sed 's/^/| /' conftest.$ac_ext >&5 |
12417 | ||
12418 | ac_header_preproc=no | |
12419 | fi | |
7a197a62 | 12420 | |
ad6254c5 | 12421 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12422 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12423 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12424 | |
12425 | # So? What about this header? | |
8a2fc586 AK |
12426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12427 | yes:no: ) | |
ec6a6fbe AK |
12428 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12429 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12430 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12431 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12432 | ac_header_preproc=yes |
ad6254c5 | 12433 | ;; |
8a2fc586 | 12434 | no:yes:* ) |
ec6a6fbe AK |
12435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12436 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12437 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12438 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12439 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12440 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12441 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12442 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12443 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12444 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12445 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12446 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12447 | |
ad6254c5 AK |
12448 | ;; |
12449 | esac | |
ec6a6fbe AK |
12450 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12451 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12452 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12453 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12454 | else |
8a2fc586 | 12455 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 12456 | fi |
ec6a6fbe AK |
12457 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12458 | $as_echo "$as_val"'` | |
12459 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12460 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12461 | |
ad6254c5 | 12462 | fi |
ec6a6fbe AK |
12463 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12464 | $as_echo "$as_val"'` | |
12465 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12466 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12467 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12468 | _ACEOF |
0a62c911 | 12469 | |
0a62c911 | 12470 | else |
ec6a6fbe AK |
12471 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12472 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12473 | { (exit 1); exit 1; }; } |
80992638 AK |
12474 | fi |
12475 | ||
ad6254c5 | 12476 | done |
0a62c911 | 12477 | |
ad6254c5 | 12478 | fi |
0a62c911 | 12479 | |
a653923f AK |
12480 | ################################################################################ |
12481 | # Extract the first word of "modprobe", so it can be a program name with args. | |
12482 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
12483 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12484 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 12485 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 12486 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
12487 | else |
12488 | case $MODPROBE_CMD in | |
12489 | [\\/]* | ?:[\\/]*) | |
12490 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
12491 | ;; | |
12492 | *) | |
12493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12494 | for as_dir in $PATH | |
12495 | do | |
12496 | IFS=$as_save_IFS | |
12497 | test -z "$as_dir" && as_dir=. | |
12498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 12499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 12500 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 12501 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
12502 | break 2 |
12503 | fi | |
12504 | done | |
12505 | done | |
7a197a62 | 12506 | IFS=$as_save_IFS |
72b2cb61 AK |
12507 | |
12508 | ;; | |
12509 | esac | |
12510 | fi | |
12511 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 12512 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
12513 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
12514 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 12515 | else |
ec6a6fbe AK |
12516 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12517 | $as_echo "no" >&6; } | |
72b2cb61 AK |
12518 | fi |
12519 | ||
a653923f | 12520 | |
7a197a62 | 12521 | |
a653923f | 12522 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
12523 | |
12524 | cat >>confdefs.h <<_ACEOF | |
12525 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
12526 | _ACEOF | |
12527 | ||
a653923f AK |
12528 | fi |
12529 | ||
80992638 | 12530 | ################################################################################ |
93bd259b AK |
12531 | |
12532 | ||
12533 | if test "$BUILD_DMEVENTD" = yes; then | |
12534 | ||
12535 | # Check whether --with-dmeventd-pidfile was given. | |
12536 | if test "${with_dmeventd_pidfile+set}" = set; then | |
12537 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
12538 | #define DMEVENTD_PIDFILE "$withval" | |
12539 | _ACEOF | |
12540 | ||
12541 | else | |
12542 | cat >>confdefs.h <<_ACEOF | |
12543 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
12544 | _ACEOF | |
12545 | ||
12546 | fi | |
12547 | ||
12548 | fi | |
12549 | ||
12550 | ||
12551 | ||
12552 | if test "$BUILD_DMEVENTD" = yes; then | |
12553 | dmeventd_prefix="$exec_prefix" | |
12554 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12555 | dmeventd_prefix="$prefix" | |
12556 | fi | |
12557 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12558 | dmeventd_prefix="" | |
12559 | fi | |
12560 | ||
12561 | # Check whether --with-dmeventd-path was given. | |
12562 | if test "${with_dmeventd_path+set}" = set; then | |
12563 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
12564 | #define DMEVENTD_PATH "$withval" | |
12565 | _ACEOF | |
12566 | ||
12567 | else | |
12568 | cat >>confdefs.h <<_ACEOF | |
12569 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
12570 | _ACEOF | |
12571 | ||
12572 | fi | |
12573 | ||
12574 | fi | |
12575 | ||
12576 | ################################################################################ | |
ec6a6fbe AK |
12577 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
12578 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
12579 | |
12580 | # Check whether --with-interface was given. | |
12581 | if test "${with_interface+set}" = set; then | |
12582 | withval=$with_interface; interface="$withval" | |
12583 | else | |
12584 | interface=ioctl | |
12585 | fi | |
12586 | ||
12587 | if [ "x$interface" != xioctl ]; | |
12588 | then | |
ec6a6fbe AK |
12589 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
12590 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
12591 | { (exit 1); exit 1; }; } |
12592 | fi | |
ec6a6fbe AK |
12593 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
12594 | $as_echo "$interface" >&6; } | |
93bd259b AK |
12595 | |
12596 | ################################################################################ | |
2c44337b | 12597 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
12598 | |
12599 | cat >>confdefs.h <<_ACEOF | |
12600 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
12601 | _ACEOF | |
12602 | ||
12603 | ||
ec6a6fbe | 12604 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 12605 | |
d0191583 | 12606 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 12607 | |
ec6a6fbe AK |
12608 | VER=`cat VERSION` |
12609 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.*(//;s/).*//'`\"" | |
12610 | VER=`echo "$VER" | $AWK '{print $1}'` | |
12611 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
12612 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
12613 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
12614 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
12615 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '.' '{print $3}'` | |
12616 | ||
80992638 | 12617 | ################################################################################ |
fae0c576 | 12618 | |
83912faa | 12619 | |
795ca3e5 AK |
12620 | |
12621 | ||
12622 | ||
12623 | ||
12624 | ||
12625 | ||
5a52dca9 | 12626 | |
8ef2b021 | 12627 | |
199e490e | 12628 | |
69792976 AK |
12629 | |
12630 | ||
12631 | ||
d0191583 | 12632 | |
69792976 | 12633 | |
8106cdd5 AK |
12634 | |
12635 | ||
12636 | ||
12637 | ||
12638 | ||
d68a82ec | 12639 | |
036f273a | 12640 | |
7d1552c9 | 12641 | |
8106cdd5 | 12642 | |
0a62c911 | 12643 | |
8106cdd5 | 12644 | |
4a7f3eb2 | 12645 | |
4922197a AK |
12646 | |
12647 | ||
d8ac0fbc | 12648 | |
1a9ea74d | 12649 | |
8a2fc586 AK |
12650 | |
12651 | ||
d0191583 | 12652 | |
93bd259b AK |
12653 | |
12654 | ||
12655 | ||
12656 | ||
12657 | ||
d0191583 JM |
12658 | |
12659 | ||
12660 | ||
12661 | ||
12662 | ||
8a2fc586 | 12663 | |
8ce0cbda | 12664 | |
8b1a3214 | 12665 | |
ec6a6fbe AK |
12666 | |
12667 | ||
12668 | ||
12669 | ||
e2997b73 AK |
12670 | |
12671 | ||
12672 | ||
12673 | ||
12674 | ||
12675 | ||
ec6a6fbe | 12676 | |
33f732c5 | 12677 | |
66e941e8 | 12678 | |
d3c8211f | 12679 | |
7e3fe830 | 12680 | |
572fefeb | 12681 | |
68f2de6d AK |
12682 | |
12683 | ||
80992638 | 12684 | ################################################################################ |
e0c64c6c | 12685 | 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 | 12686 | |
ad6254c5 | 12687 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12688 | # This file is a shell script that caches the results of configure |
12689 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12690 | # scripts and configure runs, see configure's option --config-cache. |
12691 | # It is not useful on other systems. If it contains results you don't | |
12692 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12693 | # |
ad6254c5 AK |
12694 | # config.status only pays attention to the cache file if you give it |
12695 | # the --recheck option to rerun configure. | |
795ca3e5 | 12696 | # |
ad6254c5 AK |
12697 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12698 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12699 | # following values. | |
12700 | ||
12701 | _ACEOF | |
12702 | ||
795ca3e5 AK |
12703 | # The following way of writing the cache mishandles newlines in values, |
12704 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12705 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12706 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12707 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12708 | ( |
12709 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12710 | eval ac_val=\$$ac_var | |
12711 | case $ac_val in #( | |
12712 | *${as_nl}*) | |
12713 | case $ac_var in #( | |
ec6a6fbe AK |
12714 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
12715 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
12716 | esac |
12717 | case $ac_var in #( | |
12718 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 12719 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
12720 | *) $as_unset $ac_var ;; |
12721 | esac ;; | |
12722 | esac | |
12723 | done | |
12724 | ||
ad6254c5 | 12725 | (set) 2>&1 | |
7a197a62 AK |
12726 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12727 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12728 | # `set' does not quote correctly, so add quotes (double-quote |
12729 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12730 | sed -n \ | |
8a2fc586 AK |
12731 | "s/'/'\\\\''/g; |
12732 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12733 | ;; #( |
ad6254c5 AK |
12734 | *) |
12735 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12736 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12737 | ;; |
7a197a62 AK |
12738 | esac | |
12739 | sort | |
12740 | ) | | |
ad6254c5 | 12741 | sed ' |
7a197a62 | 12742 | /^ac_cv_env_/b end |
ad6254c5 | 12743 | t clear |
7a197a62 | 12744 | :clear |
ad6254c5 AK |
12745 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12746 | t end | |
7a197a62 AK |
12747 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12748 | :end' >>confcache | |
12749 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12750 | if test -w "$cache_file"; then | |
12751 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
12752 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12753 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12754 | cat confcache >$cache_file |
795ca3e5 | 12755 | else |
ec6a6fbe AK |
12756 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12757 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12758 | fi |
12759 | fi | |
12760 | rm -f confcache | |
12761 | ||
795ca3e5 AK |
12762 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12763 | # Let make expand exec_prefix. | |
12764 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12765 | ||
72b2cb61 | 12766 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12767 | |
12768 | ac_libobjs= | |
12769 | ac_ltlibobjs= | |
12770 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12771 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12772 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 12773 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12774 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12775 | # will be set to the directory where LIBOBJS objects are built. | |
12776 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12777 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
12778 | done |
12779 | LIBOBJS=$ac_libobjs | |
80992638 | 12780 | |
ad6254c5 AK |
12781 | LTLIBOBJS=$ac_ltlibobjs |
12782 | ||
12783 | ||
12784 | ||
12785 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 12786 | ac_write_fail=0 |
ad6254c5 AK |
12787 | ac_clean_files_save=$ac_clean_files |
12788 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
12789 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
12790 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12791 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
12792 | #! $SHELL |
12793 | # Generated by $as_me. | |
795ca3e5 | 12794 | # Run this file to recreate the current configuration. |
795ca3e5 | 12795 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
12796 | # configure, is in config.log if it exists. |
12797 | ||
12798 | debug=false | |
12799 | ac_cs_recheck=false | |
12800 | ac_cs_silent=false | |
12801 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12802 | _ACEOF | |
12803 | ||
ec6a6fbe | 12804 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12805 | ## --------------------- ## |
12806 | ## M4sh Initialization. ## | |
12807 | ## --------------------- ## | |
12808 | ||
25fbec5b AK |
12809 | # Be more Bourne compatible |
12810 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
12811 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12812 | emulate sh | |
12813 | NULLCMD=: | |
ec6a6fbe | 12814 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
12815 | # is contrary to our usage. Disable this feature. |
12816 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
12817 | setopt NO_GLOB_SUBST |
12818 | else | |
25fbec5b AK |
12819 | case `(set -o) 2>/dev/null` in |
12820 | *posix*) set -o posix ;; | |
12821 | esac | |
12822 | ||
7a197a62 | 12823 | fi |
25fbec5b AK |
12824 | |
12825 | ||
7a197a62 AK |
12826 | |
12827 | ||
12828 | # PATH needs CR | |
12829 | # Avoid depending upon Character Ranges. | |
12830 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12831 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12832 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12833 | as_cr_digits='0123456789' | |
12834 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12835 | ||
ec6a6fbe AK |
12836 | as_nl=' |
12837 | ' | |
12838 | export as_nl | |
12839 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12840 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12841 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12842 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12843 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12844 | as_echo='printf %s\n' | |
12845 | as_echo_n='printf %s' | |
12846 | else | |
12847 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12848 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12849 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 12850 | else |
ec6a6fbe AK |
12851 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12852 | as_echo_n_body='eval | |
12853 | arg=$1; | |
12854 | case $arg in | |
12855 | *"$as_nl"*) | |
12856 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12857 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12858 | esac; | |
12859 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12860 | ' | |
12861 | export as_echo_n_body | |
12862 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 12863 | fi |
ec6a6fbe AK |
12864 | export as_echo_body |
12865 | as_echo='sh -c $as_echo_body as_echo' | |
12866 | fi | |
12867 | ||
12868 | # The user is always right. | |
12869 | if test "${PATH_SEPARATOR+set}" != set; then | |
12870 | PATH_SEPARATOR=: | |
12871 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12872 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12873 | PATH_SEPARATOR=';' | |
12874 | } | |
ad6254c5 AK |
12875 | fi |
12876 | ||
12877 | # Support unset when possible. | |
8a2fc586 | 12878 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
12879 | as_unset=unset |
12880 | else | |
12881 | as_unset=false | |
12882 | fi | |
8106cdd5 | 12883 | |
ad6254c5 | 12884 | |
7a197a62 AK |
12885 | # IFS |
12886 | # We need space, tab and new line, in precisely that order. Quoting is | |
12887 | # there to prevent editors from complaining about space-tab. | |
12888 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12889 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
12890 | IFS=" "" $as_nl" |
12891 | ||
12892 | # Find who we are. Look in the path if we contain no directory separator. | |
12893 | case $0 in | |
12894 | *[\\/]* ) as_myself=$0 ;; | |
12895 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12896 | for as_dir in $PATH | |
12897 | do | |
12898 | IFS=$as_save_IFS | |
12899 | test -z "$as_dir" && as_dir=. | |
12900 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12901 | done | |
12902 | IFS=$as_save_IFS | |
12903 | ||
12904 | ;; | |
12905 | esac | |
12906 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12907 | # in which case we are not to be found in the path. | |
12908 | if test "x$as_myself" = x; then | |
12909 | as_myself=$0 | |
12910 | fi | |
12911 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 12912 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12913 | { (exit 1); exit 1; } |
12914 | fi | |
12915 | ||
ad6254c5 | 12916 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12917 | for as_var in ENV MAIL MAILPATH |
12918 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12919 | done | |
ad6254c5 AK |
12920 | PS1='$ ' |
12921 | PS2='> ' | |
12922 | PS4='+ ' | |
12923 | ||
12924 | # NLS nuisances. | |
ec6a6fbe AK |
12925 | LC_ALL=C |
12926 | export LC_ALL | |
12927 | LANGUAGE=C | |
12928 | export LANGUAGE | |
8106cdd5 | 12929 | |
ad6254c5 | 12930 | # Required to use basename. |
7a197a62 AK |
12931 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12932 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12933 | as_expr=expr |
12934 | else | |
12935 | as_expr=false | |
12936 | fi | |
8106cdd5 | 12937 | |
7a197a62 | 12938 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12939 | as_basename=basename |
12940 | else | |
12941 | as_basename=false | |
12942 | fi | |
12943 | ||
12944 | ||
12945 | # Name of the executable. | |
7a197a62 | 12946 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12947 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12948 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12949 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 12950 | $as_echo X/"$0" | |
7a197a62 AK |
12951 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12952 | s//\1/ | |
12953 | q | |
12954 | } | |
12955 | /^X\/\(\/\/\)$/{ | |
12956 | s//\1/ | |
12957 | q | |
12958 | } | |
12959 | /^X\/\(\/\).*/{ | |
12960 | s//\1/ | |
12961 | q | |
12962 | } | |
12963 | s/.*/./; q'` | |
ad6254c5 | 12964 | |
7a197a62 AK |
12965 | # CDPATH. |
12966 | $as_unset CDPATH | |
ad6254c5 AK |
12967 | |
12968 | ||
ad6254c5 | 12969 | |
ad6254c5 AK |
12970 | as_lineno_1=$LINENO |
12971 | as_lineno_2=$LINENO | |
ad6254c5 | 12972 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12973 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12974 | |
ad6254c5 AK |
12975 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12976 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12977 | # line-number line after each line using $LINENO; the second 'sed' |
12978 | # does the real work. The second script uses 'N' to pair each | |
12979 | # line-number line with the line containing $LINENO, and appends | |
12980 | # trailing '-' during substitution so that $LINENO is not a special | |
12981 | # case at line end. | |
ad6254c5 | 12982 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12983 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12984 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12985 | sed -n ' | |
12986 | p | |
12987 | /[$]LINENO/= | |
12988 | ' <$as_myself | | |
ad6254c5 | 12989 | sed ' |
7a197a62 AK |
12990 | s/[$]LINENO.*/&-/ |
12991 | t lineno | |
12992 | b | |
12993 | :lineno | |
ad6254c5 | 12994 | N |
7a197a62 AK |
12995 | :loop |
12996 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12997 | t loop |
7a197a62 | 12998 | s/-\n.*// |
ad6254c5 | 12999 | ' >$as_me.lineno && |
7a197a62 | 13000 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 13001 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
13002 | { (exit 1); exit 1; }; } |
13003 | ||
13004 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13005 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
13006 | # original and so on. Autoconf is especially sensitive to this). |
13007 | . "./$as_me.lineno" | |
ad6254c5 AK |
13008 | # Exit status is that of the last command. |
13009 | exit | |
13010 | } | |
13011 | ||
13012 | ||
7a197a62 AK |
13013 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13014 | as_dirname=dirname | |
13015 | else | |
13016 | as_dirname=false | |
13017 | fi | |
13018 | ||
13019 | ECHO_C= ECHO_N= ECHO_T= | |
13020 | case `echo -n x` in | |
13021 | -n*) | |
13022 | case `echo 'x\c'` in | |
13023 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13024 | *) ECHO_C='\c';; | |
13025 | esac;; | |
13026 | *) | |
13027 | ECHO_N='-n';; | |
ad6254c5 | 13028 | esac |
7a197a62 AK |
13029 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13030 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
13031 | as_expr=expr |
13032 | else | |
13033 | as_expr=false | |
13034 | fi | |
80992638 | 13035 | |
ad6254c5 | 13036 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
13037 | if test -d conf$$.dir; then |
13038 | rm -f conf$$.dir/conf$$.file | |
13039 | else | |
13040 | rm -f conf$$.dir | |
ec6a6fbe AK |
13041 | mkdir conf$$.dir 2>/dev/null |
13042 | fi | |
13043 | if (echo >conf$$.file) 2>/dev/null; then | |
13044 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13045 | as_ln_s='ln -s' | |
13046 | # ... but there are two gotchas: | |
13047 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13048 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13049 | # In both cases, we have to default to `cp -p'. | |
13050 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13051 | as_ln_s='cp -p' | |
13052 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13053 | as_ln_s=ln | |
13054 | else | |
ad6254c5 | 13055 | as_ln_s='cp -p' |
ec6a6fbe | 13056 | fi |
ad6254c5 AK |
13057 | else |
13058 | as_ln_s='cp -p' | |
13059 | fi | |
7a197a62 AK |
13060 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13061 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 13062 | |
ad6254c5 AK |
13063 | if mkdir -p . 2>/dev/null; then |
13064 | as_mkdir_p=: | |
13065 | else | |
8a2fc586 | 13066 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
13067 | as_mkdir_p=false |
13068 | fi | |
13069 | ||
25fbec5b AK |
13070 | if test -x / >/dev/null 2>&1; then |
13071 | as_test_x='test -x' | |
7a197a62 | 13072 | else |
25fbec5b AK |
13073 | if ls -dL / >/dev/null 2>&1; then |
13074 | as_ls_L_option=L | |
13075 | else | |
13076 | as_ls_L_option= | |
13077 | fi | |
13078 | as_test_x=' | |
13079 | eval sh -c '\'' | |
13080 | if test -d "$1"; then | |
ec6a6fbe | 13081 | test -d "$1/."; |
25fbec5b AK |
13082 | else |
13083 | case $1 in | |
ec6a6fbe | 13084 | -*)set "./$1";; |
25fbec5b AK |
13085 | esac; |
13086 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
13087 | ???[sx]*):;;*)false;;esac;fi | |
13088 | '\'' sh | |
13089 | ' | |
7a197a62 | 13090 | fi |
25fbec5b | 13091 | as_executable_p=$as_test_x |
ad6254c5 AK |
13092 | |
13093 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 13094 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13095 | |
13096 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 13097 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13098 | |
13099 | ||
ad6254c5 AK |
13100 | exec 6>&1 |
13101 | ||
7a197a62 | 13102 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 13103 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
13104 | # values after options handling. |
13105 | ac_log=" | |
ad6254c5 | 13106 | This file was extended by $as_me, which was |
ec6a6fbe | 13107 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
13108 | |
13109 | CONFIG_FILES = $CONFIG_FILES | |
13110 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13111 | CONFIG_LINKS = $CONFIG_LINKS | |
13112 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13113 | $ $0 $@ | |
13114 | ||
7a197a62 AK |
13115 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13116 | " | |
13117 | ||
ad6254c5 AK |
13118 | _ACEOF |
13119 | ||
ec6a6fbe AK |
13120 | case $ac_config_files in *" |
13121 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13122 | esac | |
13123 | ||
13124 | case $ac_config_headers in *" | |
13125 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13126 | esac | |
13127 | ||
13128 | ||
13129 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 13130 | # Files that config.status was made for. |
68f2de6d AK |
13131 | config_files="$ac_config_files" |
13132 | config_headers="$ac_config_headers" | |
ad6254c5 | 13133 | |
7a197a62 | 13134 | _ACEOF |
ad6254c5 | 13135 | |
ec6a6fbe | 13136 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13137 | ac_cs_usage="\ |
13138 | \`$as_me' instantiates files from templates according to the | |
13139 | current configuration. | |
13140 | ||
ec6a6fbe | 13141 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
13142 | |
13143 | -h, --help print this help, then exit | |
25fbec5b | 13144 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
13145 | -q, --quiet, --silent |
13146 | do not print progress messages | |
ad6254c5 AK |
13147 | -d, --debug don't remove temporary files |
13148 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
13149 | --file=FILE[:TEMPLATE] |
13150 | instantiate the configuration file FILE | |
13151 | --header=FILE[:TEMPLATE] | |
13152 | instantiate the configuration header FILE | |
ad6254c5 AK |
13153 | |
13154 | Configuration files: | |
13155 | $config_files | |
13156 | ||
72b2cb61 AK |
13157 | Configuration headers: |
13158 | $config_headers | |
13159 | ||
ad6254c5 | 13160 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 13161 | |
7a197a62 | 13162 | _ACEOF |
ec6a6fbe | 13163 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13164 | ac_cs_version="\\ |
13165 | config.status | |
ec6a6fbe AK |
13166 | configured by $0, generated by GNU Autoconf 2.63, |
13167 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 13168 | |
ec6a6fbe | 13169 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
13170 | This config.status script is free software; the Free Software Foundation |
13171 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
13172 | |
13173 | ac_pwd='$ac_pwd' | |
13174 | srcdir='$srcdir' | |
13175 | INSTALL='$INSTALL' | |
fddafd51 | 13176 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
13177 | AWK='$AWK' |
13178 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
13179 | _ACEOF |
13180 | ||
ec6a6fbe AK |
13181 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13182 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
13183 | ac_need_defaults=: |
13184 | while test $# != 0 | |
13185 | do | |
13186 | case $1 in | |
13187 | --*=*) | |
7a197a62 AK |
13188 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13189 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
13190 | ac_shift=: |
13191 | ;; | |
7a197a62 | 13192 | *) |
ad6254c5 AK |
13193 | ac_option=$1 |
13194 | ac_optarg=$2 | |
13195 | ac_shift=shift | |
13196 | ;; | |
ad6254c5 AK |
13197 | esac |
13198 | ||
13199 | case $ac_option in | |
13200 | # Handling of the options. | |
ad6254c5 AK |
13201 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13202 | ac_cs_recheck=: ;; | |
7a197a62 | 13203 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 13204 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 13205 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
13206 | debug=: ;; |
13207 | --file | --fil | --fi | --f ) | |
13208 | $ac_shift | |
ec6a6fbe AK |
13209 | case $ac_optarg in |
13210 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13211 | esac | |
13212 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
13213 | ac_need_defaults=false;; |
13214 | --header | --heade | --head | --hea ) | |
13215 | $ac_shift | |
ec6a6fbe AK |
13216 | case $ac_optarg in |
13217 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13218 | esac | |
13219 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 13220 | ac_need_defaults=false;; |
7a197a62 AK |
13221 | --he | --h) |
13222 | # Conflict between --help and --header | |
ec6a6fbe | 13223 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
13224 | Try \`$0 --help' for more information." >&2 |
13225 | { (exit 1); exit 1; }; };; | |
13226 | --help | --hel | -h ) | |
ec6a6fbe | 13227 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
13228 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13229 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13230 | ac_cs_silent=: ;; | |
13231 | ||
13232 | # This is an error. | |
ec6a6fbe | 13233 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 13234 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
13235 | { (exit 1); exit 1; }; } ;; |
13236 | ||
7a197a62 AK |
13237 | *) ac_config_targets="$ac_config_targets $1" |
13238 | ac_need_defaults=false ;; | |
ad6254c5 AK |
13239 | |
13240 | esac | |
13241 | shift | |
13242 | done | |
13243 | ||
13244 | ac_configure_extra_args= | |
13245 | ||
13246 | if $ac_cs_silent; then | |
13247 | exec 6>/dev/null | |
13248 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13249 | fi | |
13250 | ||
13251 | _ACEOF | |
ec6a6fbe | 13252 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 13253 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
13254 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13255 | shift | |
13256 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13257 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 13258 | export CONFIG_SHELL |
ec6a6fbe | 13259 | exec "\$@" |
ad6254c5 AK |
13260 | fi |
13261 | ||
13262 | _ACEOF | |
ec6a6fbe | 13263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13264 | exec 5>>config.log |
13265 | { | |
13266 | echo | |
13267 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13268 | ## Running $as_me. ## | |
13269 | _ASBOX | |
ec6a6fbe | 13270 | $as_echo "$ac_log" |
7a197a62 | 13271 | } >&5 |
ad6254c5 | 13272 | |
7a197a62 | 13273 | _ACEOF |
ec6a6fbe | 13274 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 13275 | _ACEOF |
ad6254c5 | 13276 | |
ec6a6fbe | 13277 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13278 | |
13279 | # Handling of arguments. | |
ad6254c5 AK |
13280 | for ac_config_target in $ac_config_targets |
13281 | do | |
7a197a62 AK |
13282 | case $ac_config_target in |
13283 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
13284 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13285 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
13286 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
13287 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
13288 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
13289 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 13290 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
13291 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
13292 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 13293 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
13294 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
13295 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
13296 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
13297 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
13298 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
13299 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 13300 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 13301 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
13302 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
13303 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 13304 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
93bd259b AK |
13305 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
13306 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 13307 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 13308 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 13309 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 13310 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 13311 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
7a197a62 | 13312 | |
ec6a6fbe AK |
13313 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13314 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 13315 | { (exit 1); exit 1; }; };; |
80992638 | 13316 | esac |
ad6254c5 AK |
13317 | done |
13318 | ||
7a197a62 | 13319 | |
ad6254c5 AK |
13320 | # If the user did not use the arguments to specify the items to instantiate, |
13321 | # then the envvar interface is used. Set only those that are not. | |
13322 | # We use the long form for the default assignment because of an extremely | |
13323 | # bizarre bug on SunOS 4.1.3. | |
13324 | if $ac_need_defaults; then | |
13325 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 13326 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
13327 | fi |
13328 | ||
13329 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 13330 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 13331 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
13332 | # Hook for its removal unless debugging. |
13333 | # Note that there is a small window in which the directory will not be cleaned: | |
13334 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
13335 | $debug || |
13336 | { | |
7a197a62 AK |
13337 | tmp= |
13338 | trap 'exit_status=$? | |
13339 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13340 | ' 0 | |
ad6254c5 AK |
13341 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13342 | } | |
ad6254c5 AK |
13343 | # Create a (secure) tmp directory for tmp files. |
13344 | ||
13345 | { | |
7a197a62 | 13346 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
13347 | test -n "$tmp" && test -d "$tmp" |
13348 | } || | |
13349 | { | |
7a197a62 AK |
13350 | tmp=./conf$$-$RANDOM |
13351 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
13352 | } || |
13353 | { | |
ec6a6fbe | 13354 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
13355 | { (exit 1); exit 1; } |
13356 | } | |
13357 | ||
ec6a6fbe AK |
13358 | # Set up the scripts for CONFIG_FILES section. |
13359 | # No need to generate them if there are no CONFIG_FILES. | |
13360 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 13361 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 13362 | |
68f2de6d | 13363 | |
ec6a6fbe AK |
13364 | ac_cr='\r' |
13365 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13366 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13367 | ac_cs_awk_cr='\\r' | |
13368 | else | |
13369 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 13370 | fi |
7a197a62 | 13371 | |
ec6a6fbe | 13372 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 13373 | _ACEOF |
7a197a62 | 13374 | |
8106cdd5 | 13375 | |
ec6a6fbe AK |
13376 | { |
13377 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13378 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13379 | echo "_ACEOF" | |
13380 | } >conf$$subs.sh || | |
13381 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13382 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13383 | { (exit 1); exit 1; }; } | |
13384 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
13385 | ac_delim='%!_!# ' |
13386 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
13387 | . ./conf$$subs.sh || |
13388 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13389 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13390 | { (exit 1); exit 1; }; } | |
13391 | ||
13392 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13393 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
13394 | break |
13395 | elif $ac_last_try; then | |
ec6a6fbe AK |
13396 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13397 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
13398 | { (exit 1); exit 1; }; } |
13399 | else | |
13400 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13401 | fi | |
13402 | done | |
ec6a6fbe AK |
13403 | rm -f conf$$subs.sh |
13404 | ||
13405 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13406 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13407 | _ACEOF | |
13408 | sed -n ' | |
13409 | h | |
13410 | s/^/S["/; s/!.*/"]=/ | |
13411 | p | |
13412 | g | |
13413 | s/^[^!]*!// | |
13414 | :repl | |
13415 | t repl | |
13416 | s/'"$ac_delim"'$// | |
13417 | t delim | |
13418 | :nl | |
13419 | h | |
13420 | s/\(.\{148\}\).*/\1/ | |
13421 | t more1 | |
13422 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13423 | p | |
13424 | n | |
13425 | b repl | |
13426 | :more1 | |
13427 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13428 | p | |
13429 | g | |
13430 | s/.\{148\}// | |
13431 | t nl | |
13432 | :delim | |
13433 | h | |
13434 | s/\(.\{148\}\).*/\1/ | |
13435 | t more2 | |
13436 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13437 | p | |
13438 | b | |
13439 | :more2 | |
13440 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13441 | p | |
13442 | g | |
13443 | s/.\{148\}// | |
13444 | t delim | |
13445 | ' <conf$$subs.awk | sed ' | |
13446 | /^[^""]/{ | |
13447 | N | |
13448 | s/\n// | |
13449 | } | |
13450 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13451 | rm -f conf$$subs.awk | |
13452 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13453 | _ACAWK | |
13454 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13455 | for (key in S) S_is_set[key] = 1 | |
13456 | FS = "\a" | |
7a197a62 | 13457 | |
ec6a6fbe AK |
13458 | } |
13459 | { | |
13460 | line = $ 0 | |
13461 | nfields = split(line, field, "@") | |
13462 | substed = 0 | |
13463 | len = length(field[1]) | |
13464 | for (i = 2; i < nfields; i++) { | |
13465 | key = field[i] | |
13466 | keylen = length(key) | |
13467 | if (S_is_set[key]) { | |
13468 | value = S[key] | |
13469 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13470 | len += length(value) + length(field[++i]) | |
13471 | substed = 1 | |
13472 | } else | |
13473 | len += 1 + keylen | |
13474 | } | |
13475 | ||
13476 | print line | |
13477 | } | |
fddafd51 | 13478 | |
ec6a6fbe | 13479 | _ACAWK |
1995c9ff | 13480 | _ACEOF |
ec6a6fbe AK |
13481 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13482 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13483 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13484 | else | |
13485 | cat | |
13486 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13487 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
13488 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
13489 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13490 | _ACEOF |
13491 | ||
7a197a62 AK |
13492 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13493 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13494 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13495 | # (actually we leave an empty line to preserve line numbers). | |
13496 | if test "x$srcdir" = x.; then | |
13497 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13498 | s/:*\$(srcdir):*/:/ | |
13499 | s/:*\${srcdir}:*/:/ | |
13500 | s/:*@srcdir@:*/:/ | |
13501 | s/^\([^=]*=[ ]*\):*/\1/ | |
13502 | s/:*$// | |
13503 | s/^[^=]*=[ ]*$// | |
13504 | }' | |
13505 | fi | |
13506 | ||
ec6a6fbe | 13507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13508 | fi # test -n "$CONFIG_FILES" |
13509 | ||
ec6a6fbe AK |
13510 | # Set up the scripts for CONFIG_HEADERS section. |
13511 | # No need to generate them if there are no CONFIG_HEADERS. | |
13512 | # This happens for instance with `./config.status Makefile'. | |
13513 | if test -n "$CONFIG_HEADERS"; then | |
13514 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13515 | BEGIN { | |
13516 | _ACEOF | |
13517 | ||
13518 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13519 | # here-document in config.status, that substitutes the proper values into | |
13520 | # config.h.in to produce config.h. | |
13521 | ||
13522 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13523 | # handling of long lines. | |
13524 | ac_delim='%!_!# ' | |
13525 | for ac_last_try in false false :; do | |
13526 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13527 | if test -z "$ac_t"; then | |
13528 | break | |
13529 | elif $ac_last_try; then | |
13530 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
13531 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
13532 | { (exit 1); exit 1; }; } | |
13533 | else | |
13534 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13535 | fi | |
13536 | done | |
13537 | ||
13538 | # For the awk script, D is an array of macro values keyed by name, | |
13539 | # likewise P contains macro parameters if any. Preserve backslash | |
13540 | # newline sequences. | |
13541 | ||
13542 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13543 | sed -n ' | |
13544 | s/.\{148\}/&'"$ac_delim"'/g | |
13545 | t rset | |
13546 | :rset | |
13547 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13548 | t def | |
13549 | d | |
13550 | :def | |
13551 | s/\\$// | |
13552 | t bsnl | |
13553 | s/["\\]/\\&/g | |
13554 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13555 | D["\1"]=" \3"/p | |
13556 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13557 | d | |
13558 | :bsnl | |
13559 | s/["\\]/\\&/g | |
13560 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13561 | D["\1"]=" \3\\\\\\n"\\/p | |
13562 | t cont | |
13563 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13564 | t cont | |
13565 | d | |
13566 | :cont | |
13567 | n | |
13568 | s/.\{148\}/&'"$ac_delim"'/g | |
13569 | t clear | |
13570 | :clear | |
13571 | s/\\$// | |
13572 | t bsnlc | |
13573 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13574 | d | |
13575 | :bsnlc | |
13576 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13577 | b cont | |
13578 | ' <confdefs.h | sed ' | |
13579 | s/'"$ac_delim"'/"\\\ | |
13580 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13581 | ||
13582 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13583 | for (key in D) D_is_set[key] = 1 | |
13584 | FS = "\a" | |
13585 | } | |
13586 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13587 | line = \$ 0 | |
13588 | split(line, arg, " ") | |
13589 | if (arg[1] == "#") { | |
13590 | defundef = arg[2] | |
13591 | mac1 = arg[3] | |
13592 | } else { | |
13593 | defundef = substr(arg[1], 2) | |
13594 | mac1 = arg[2] | |
13595 | } | |
13596 | split(mac1, mac2, "(") #) | |
13597 | macro = mac2[1] | |
13598 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13599 | if (D_is_set[macro]) { | |
13600 | # Preserve the white space surrounding the "#". | |
13601 | print prefix "define", macro P[macro] D[macro] | |
13602 | next | |
13603 | } else { | |
13604 | # Replace #undef with comments. This is necessary, for example, | |
13605 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13606 | # on some systems where configure will not decide to define it. | |
13607 | if (defundef == "undef") { | |
13608 | print "/*", prefix defundef, macro, "*/" | |
13609 | next | |
13610 | } | |
13611 | } | |
13612 | } | |
13613 | { print } | |
13614 | _ACAWK | |
13615 | _ACEOF | |
13616 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13617 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
13618 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
13619 | { (exit 1); exit 1; }; } | |
13620 | fi # test -n "$CONFIG_HEADERS" | |
13621 | ||
7a197a62 | 13622 | |
ec6a6fbe AK |
13623 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
13624 | shift | |
13625 | for ac_tag | |
7a197a62 AK |
13626 | do |
13627 | case $ac_tag in | |
13628 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13629 | esac | |
13630 | case $ac_mode$ac_tag in | |
13631 | :[FHL]*:*);; | |
ec6a6fbe AK |
13632 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
13633 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
13634 | { (exit 1); exit 1; }; };; |
13635 | :[FH]-) ac_tag=-:-;; | |
13636 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13637 | esac | |
13638 | ac_save_IFS=$IFS | |
13639 | IFS=: | |
13640 | set x $ac_tag | |
13641 | IFS=$ac_save_IFS | |
13642 | shift | |
13643 | ac_file=$1 | |
13644 | shift | |
13645 | ||
13646 | case $ac_mode in | |
13647 | :L) ac_source=$1;; | |
13648 | :[FH]) | |
13649 | ac_file_inputs= | |
13650 | for ac_f | |
13651 | do | |
13652 | case $ac_f in | |
13653 | -) ac_f="$tmp/stdin";; | |
13654 | *) # Look for the file first in the build tree, then in the source tree | |
13655 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13656 | # because $ac_f cannot contain `:'. | |
13657 | test -f "$ac_f" || | |
13658 | case $ac_f in | |
13659 | [\\/$]*) false;; | |
13660 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13661 | esac || | |
ec6a6fbe AK |
13662 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
13663 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
13664 | { (exit 1); exit 1; }; };; |
13665 | esac | |
ec6a6fbe AK |
13666 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
13667 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
13668 | done |
13669 | ||
13670 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13671 | # use $as_me), people would be surprised to read: | |
13672 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
13673 | configure_input='Generated from '` |
13674 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13675 | `' by configure.' | |
7a197a62 AK |
13676 | if test x"$ac_file" != x-; then |
13677 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
13678 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
13679 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 13680 | fi |
ec6a6fbe AK |
13681 | # Neutralize special characters interpreted by sed in replacement strings. |
13682 | case $configure_input in #( | |
13683 | *\&* | *\|* | *\\* ) | |
13684 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13685 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13686 | *) ac_sed_conf_input=$configure_input;; | |
13687 | esac | |
7a197a62 AK |
13688 | |
13689 | case $ac_tag in | |
ec6a6fbe AK |
13690 | *:-:* | *:-) cat >"$tmp/stdin" \ |
13691 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13692 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13693 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
13694 | esac |
13695 | ;; | |
80992638 | 13696 | esac |
8106cdd5 | 13697 | |
7a197a62 | 13698 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 13699 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13700 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13701 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 13702 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13703 | $as_echo X"$ac_file" | |
7a197a62 AK |
13704 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13705 | s//\1/ | |
13706 | q | |
13707 | } | |
13708 | /^X\(\/\/\)[^/].*/{ | |
13709 | s//\1/ | |
13710 | q | |
13711 | } | |
13712 | /^X\(\/\/\)$/{ | |
13713 | s//\1/ | |
13714 | q | |
13715 | } | |
13716 | /^X\(\/\).*/{ | |
13717 | s//\1/ | |
13718 | q | |
13719 | } | |
13720 | s/.*/./; q'` | |
13721 | { as_dir="$ac_dir" | |
13722 | case $as_dir in #( | |
13723 | -*) as_dir=./$as_dir;; | |
13724 | esac | |
13725 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13726 | as_dirs= |
7a197a62 AK |
13727 | while :; do |
13728 | case $as_dir in #( | |
ec6a6fbe | 13729 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
13730 | *) as_qdir=$as_dir;; |
13731 | esac | |
13732 | as_dirs="'$as_qdir' $as_dirs" | |
13733 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13734 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13735 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13736 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13737 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13738 | $as_echo X"$as_dir" | |
7a197a62 AK |
13739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13740 | s//\1/ | |
13741 | q | |
13742 | } | |
13743 | /^X\(\/\/\)[^/].*/{ | |
13744 | s//\1/ | |
13745 | q | |
13746 | } | |
13747 | /^X\(\/\/\)$/{ | |
13748 | s//\1/ | |
13749 | q | |
13750 | } | |
13751 | /^X\(\/\).*/{ | |
13752 | s//\1/ | |
13753 | q | |
13754 | } | |
13755 | s/.*/./; q'` | |
13756 | test -d "$as_dir" && break | |
ad6254c5 | 13757 | done |
7a197a62 | 13758 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
13759 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13760 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13761 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13762 | ac_builddir=. |
13763 | ||
7a197a62 AK |
13764 | case "$ac_dir" in |
13765 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13766 | *) | |
ec6a6fbe | 13767 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 13768 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 13769 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
13770 | case $ac_top_builddir_sub in |
13771 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13772 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13773 | esac ;; | |
13774 | esac | |
13775 | ac_abs_top_builddir=$ac_pwd | |
13776 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13777 | # for backward compatibility: | |
13778 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
13779 | |
13780 | case $srcdir in | |
7a197a62 | 13781 | .) # We are building in place. |
ad6254c5 | 13782 | ac_srcdir=. |
7a197a62 AK |
13783 | ac_top_srcdir=$ac_top_builddir_sub |
13784 | ac_abs_top_srcdir=$ac_pwd ;; | |
13785 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 13786 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
13787 | ac_top_srcdir=$srcdir |
13788 | ac_abs_top_srcdir=$srcdir ;; | |
13789 | *) # Relative name. | |
13790 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13791 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13792 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 13793 | esac |
7a197a62 | 13794 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 13795 | |
ad6254c5 | 13796 | |
7a197a62 AK |
13797 | case $ac_mode in |
13798 | :F) | |
13799 | # | |
13800 | # CONFIG_FILE | |
13801 | # | |
ad6254c5 AK |
13802 | |
13803 | case $INSTALL in | |
13804 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 13805 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 13806 | esac |
fddafd51 ZK |
13807 | ac_MKDIR_P=$MKDIR_P |
13808 | case $MKDIR_P in | |
13809 | [\\/$]* | ?:[\\/]* ) ;; | |
13810 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13811 | esac | |
7a197a62 | 13812 | _ACEOF |
795ca3e5 | 13813 | |
ec6a6fbe | 13814 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13815 | # If the template does not know about datarootdir, expand it. |
13816 | # FIXME: This hack should be removed a few years after 2.60. | |
13817 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13818 | ||
ec6a6fbe AK |
13819 | ac_sed_dataroot=' |
13820 | /datarootdir/ { | |
7a197a62 AK |
13821 | p |
13822 | q | |
13823 | } | |
13824 | /@datadir@/p | |
13825 | /@docdir@/p | |
13826 | /@infodir@/p | |
13827 | /@localedir@/p | |
13828 | /@mandir@/p | |
ec6a6fbe AK |
13829 | ' |
13830 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
13831 | *datarootdir*) ac_datarootdir_seen=yes;; |
13832 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
13833 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
13834 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 13835 | _ACEOF |
ec6a6fbe | 13836 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13837 | ac_datarootdir_hack=' |
13838 | s&@datadir@&$datadir&g | |
13839 | s&@docdir@&$docdir&g | |
13840 | s&@infodir@&$infodir&g | |
13841 | s&@localedir@&$localedir&g | |
13842 | s&@mandir@&$mandir&g | |
13843 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13844 | esac | |
13845 | _ACEOF | |
13846 | ||
13847 | # Neutralize VPATH when `$srcdir' = `.'. | |
13848 | # Shell code in configure.ac might set extrasub. | |
13849 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
13850 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13851 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
13852 | $extrasub |
13853 | _ACEOF | |
ec6a6fbe | 13854 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13855 | :t |
13856 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 13857 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 13858 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 13859 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
13860 | s&@srcdir@&$ac_srcdir&;t t |
13861 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13862 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13863 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13864 | s&@builddir@&$ac_builddir&;t t | |
13865 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13866 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13867 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 13868 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 13869 | $ac_datarootdir_hack |
ec6a6fbe AK |
13870 | " |
13871 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13872 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13873 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13874 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13875 | |
13876 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13877 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13878 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 13879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 13880 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 13881 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
13882 | which seems to be undefined. Please make sure it is defined." >&2;} |
13883 | ||
13884 | rm -f "$tmp/stdin" | |
72b2cb61 | 13885 | case $ac_file in |
ec6a6fbe AK |
13886 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
13887 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13888 | esac \ | |
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; }; } | |
7a197a62 AK |
13892 | ;; |
13893 | :H) | |
13894 | # | |
13895 | # CONFIG_HEADER | |
13896 | # | |
72b2cb61 | 13897 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
13898 | { |
13899 | $as_echo "/* $configure_input */" \ | |
13900 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13901 | } >"$tmp/config.h" \ | |
13902 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13903 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13904 | { (exit 1); exit 1; }; } | |
13905 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13906 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13907 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13908 | else |
ec6a6fbe AK |
13909 | rm -f "$ac_file" |
13910 | mv "$tmp/config.h" "$ac_file" \ | |
13911 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13912 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13913 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
13914 | fi |
13915 | else | |
ec6a6fbe AK |
13916 | $as_echo "/* $configure_input */" \ |
13917 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13918 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13919 | $as_echo "$as_me: error: could not create -" >&2;} | |
13920 | { (exit 1); exit 1; }; } | |
72b2cb61 | 13921 | fi |
7a197a62 AK |
13922 | ;; |
13923 | ||
13924 | ||
13925 | esac | |
13926 | ||
13927 | done # for ac_tag | |
795ca3e5 | 13928 | |
795ca3e5 | 13929 | |
ad6254c5 AK |
13930 | { (exit 0); exit 0; } |
13931 | _ACEOF | |
795ca3e5 | 13932 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13933 | ac_clean_files=$ac_clean_files_save |
13934 | ||
ec6a6fbe AK |
13935 | test $ac_write_fail = 0 || |
13936 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
13937 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
13938 | { (exit 1); exit 1; }; } | |
13939 | ||
ad6254c5 AK |
13940 | |
13941 | # configure is writing to config.log, and then calls config.status. | |
13942 | # config.status does its own redirection, appending to config.log. | |
13943 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13944 | # by configure, so config.status won't be able to write to it; its | |
13945 | # output is simply discarded. So we exec the FD to /dev/null, | |
13946 | # effectively closing config.log, so it can be properly (re)opened and | |
13947 | # appended to by config.status. When coming back to configure, we | |
13948 | # need to make the FD available again. | |
13949 | if test "$no_create" != yes; then | |
13950 | ac_cs_success=: | |
13951 | ac_config_status_args= | |
13952 | test "$silent" = yes && | |
13953 | ac_config_status_args="$ac_config_status_args --quiet" | |
13954 | exec 5>/dev/null | |
13955 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13956 | exec 5>>config.log | |
13957 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13958 | # would make configure fail if this is the last instruction. | |
13959 | $ac_cs_success || { (exit 1); exit 1; } | |
13960 | fi | |
ec6a6fbe AK |
13961 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
13962 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13963 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13964 | fi | |
795ca3e5 | 13965 | |
2dc95e1c AK |
13966 | |
13967 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
13968 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13969 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13970 | fi |