]>
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 | |
bf456146 | 660 | LVM_LIBAPI |
ec6a6fbe | 661 | LVM_VERSION |
ec6a6fbe AK |
662 | LVM1_FALLBACK |
663 | LVM1 | |
664 | LOCALEDIR | |
665 | LIB_SUFFIX | |
666 | LDDEPS | |
667 | JOBS | |
668 | INTL_PACKAGE | |
669 | INTL | |
670 | HAVE_SELINUX | |
671 | HAVE_REALTIME | |
672 | HAVE_LIBDL | |
673 | GROUP | |
674 | FSADM | |
675 | DM_LIB_PATCHLEVEL | |
676 | DM_LIB_VERSION | |
677 | DM_IOCTLS | |
678 | DM_DEVICE_UID | |
679 | DM_DEVICE_MODE | |
680 | DM_DEVICE_GID | |
681 | DM_COMPAT | |
682 | DMEVENTD | |
683 | DEVMAPPER | |
684 | DEBUG | |
685 | COPTIMISE_FLAG | |
e2997b73 | 686 | CONFDIR |
ec6a6fbe AK |
687 | CMDLIB |
688 | CLVMD | |
689 | CLUSTER | |
690 | CLDWHOLEARCHIVE | |
691 | CLDNOWHOLEARCHIVE | |
692 | CLDFLAGS | |
693 | BUILD_DMEVENTD | |
572fefeb | 694 | APPLIB |
ec6a6fbe AK |
695 | MODPROBE_CMD |
696 | MSGFMT | |
697 | LVM2CMD_LIB | |
572fefeb | 698 | LVM2APP_LIB |
ec6a6fbe AK |
699 | GENHTML |
700 | LCOV | |
e2997b73 AK |
701 | CPG_LIBS |
702 | CPG_CFLAGS | |
703 | CONFDB_LIBS | |
704 | CONFDB_CFLAGS | |
705 | QUORUM_LIBS | |
706 | QUORUM_CFLAGS | |
707 | PKG_CONFIG | |
ec6a6fbe AK |
708 | POW_LIB |
709 | LIBOBJS | |
710 | ALLOCA | |
711 | CSCOPE_CMD | |
712 | CFLOW_CMD | |
713 | RANLIB | |
714 | MKDIR_P | |
715 | SET_MAKE | |
716 | LN_S | |
717 | INSTALL_DATA | |
718 | INSTALL_SCRIPT | |
719 | INSTALL_PROGRAM | |
720 | EGREP | |
721 | GREP | |
722 | CPP | |
723 | OBJEXT | |
724 | EXEEXT | |
725 | ac_ct_CC | |
726 | CPPFLAGS | |
727 | LDFLAGS | |
728 | CFLAGS | |
729 | CC | |
730 | AWK | |
731 | SED | |
732 | target_os | |
733 | target_vendor | |
734 | target_cpu | |
735 | target | |
736 | host_os | |
737 | host_vendor | |
738 | host_cpu | |
739 | host | |
740 | build_os | |
741 | build_vendor | |
742 | build_cpu | |
743 | build | |
744 | target_alias | |
745 | host_alias | |
746 | build_alias | |
747 | LIBS | |
748 | ECHO_T | |
749 | ECHO_N | |
750 | ECHO_C | |
751 | DEFS | |
752 | mandir | |
753 | localedir | |
754 | libdir | |
755 | psdir | |
756 | pdfdir | |
757 | dvidir | |
758 | htmldir | |
759 | infodir | |
760 | docdir | |
761 | oldincludedir | |
762 | includedir | |
763 | localstatedir | |
764 | sharedstatedir | |
765 | sysconfdir | |
766 | datadir | |
767 | datarootdir | |
768 | libexecdir | |
769 | sbindir | |
770 | bindir | |
771 | program_transform_name | |
772 | prefix | |
773 | exec_prefix | |
774 | PACKAGE_BUGREPORT | |
775 | PACKAGE_STRING | |
776 | PACKAGE_VERSION | |
777 | PACKAGE_TARNAME | |
778 | PACKAGE_NAME | |
779 | PATH_SEPARATOR | |
780 | SHELL' | |
ad6254c5 | 781 | ac_subst_files='' |
ec6a6fbe AK |
782 | ac_user_opts=' |
783 | enable_option_checking | |
784 | enable_static_link | |
785 | with_user | |
786 | with_group | |
787 | with_device_uid | |
788 | with_device_gid | |
789 | with_device_mode | |
790 | enable_lvm1_fallback | |
791 | with_lvm1 | |
792 | with_pool | |
793 | with_cluster | |
794 | with_snapshots | |
795 | with_mirrors | |
796 | enable_readline | |
797 | enable_realtime | |
798 | with_clvmd | |
799 | enable_debug | |
800 | with_optimisation | |
801 | enable_profiling | |
802 | enable_devmapper | |
803 | enable_compat | |
804 | enable_ioctl | |
805 | enable_o_direct | |
572fefeb | 806 | enable_applib |
ec6a6fbe AK |
807 | enable_cmdlib |
808 | enable_pkgconfig | |
809 | enable_fsadm | |
810 | enable_dmeventd | |
811 | enable_selinux | |
812 | enable_nls | |
813 | with_localedir | |
814 | with_confdir | |
815 | with_staticdir | |
816 | with_usrlibdir | |
817 | with_usrsbindir | |
818 | with_dmeventd_pidfile | |
819 | with_dmeventd_path | |
820 | with_interface | |
821 | ' | |
7a197a62 AK |
822 | ac_precious_vars='build_alias |
823 | host_alias | |
824 | target_alias | |
825 | CC | |
826 | CFLAGS | |
827 | LDFLAGS | |
25fbec5b | 828 | LIBS |
7a197a62 | 829 | CPPFLAGS |
e2997b73 AK |
830 | CPP |
831 | PKG_CONFIG | |
832 | QUORUM_CFLAGS | |
833 | QUORUM_LIBS | |
834 | CONFDB_CFLAGS | |
835 | CONFDB_LIBS | |
836 | CPG_CFLAGS | |
837 | CPG_LIBS' | |
7a197a62 | 838 | |
795ca3e5 AK |
839 | |
840 | # Initialize some variables set by options. | |
ad6254c5 AK |
841 | ac_init_help= |
842 | ac_init_version=false | |
ec6a6fbe AK |
843 | ac_unrecognized_opts= |
844 | ac_unrecognized_sep= | |
795ca3e5 AK |
845 | # The variables have the same names as the options, with |
846 | # dashes changed to underlines. | |
ad6254c5 | 847 | cache_file=/dev/null |
795ca3e5 | 848 | exec_prefix=NONE |
795ca3e5 | 849 | no_create= |
795ca3e5 AK |
850 | no_recursion= |
851 | prefix=NONE | |
852 | program_prefix=NONE | |
853 | program_suffix=NONE | |
854 | program_transform_name=s,x,x, | |
855 | silent= | |
856 | site= | |
857 | srcdir= | |
795ca3e5 AK |
858 | verbose= |
859 | x_includes=NONE | |
860 | x_libraries=NONE | |
ad6254c5 AK |
861 | |
862 | # Installation directory options. | |
863 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
864 | # and all the variables that are supposed to be based on exec_prefix | |
865 | # by default will actually change. | |
866 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 867 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
868 | bindir='${exec_prefix}/bin' |
869 | sbindir='${exec_prefix}/sbin' | |
870 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
871 | datarootdir='${prefix}/share' |
872 | datadir='${datarootdir}' | |
795ca3e5 AK |
873 | sysconfdir='${prefix}/etc' |
874 | sharedstatedir='${prefix}/com' | |
875 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
876 | includedir='${prefix}/include' |
877 | oldincludedir='/usr/include' | |
7a197a62 AK |
878 | docdir='${datarootdir}/doc/${PACKAGE}' |
879 | infodir='${datarootdir}/info' | |
880 | htmldir='${docdir}' | |
881 | dvidir='${docdir}' | |
882 | pdfdir='${docdir}' | |
883 | psdir='${docdir}' | |
884 | libdir='${exec_prefix}/lib' | |
885 | localedir='${datarootdir}/locale' | |
886 | mandir='${datarootdir}/man' | |
795ca3e5 | 887 | |
795ca3e5 | 888 | ac_prev= |
7a197a62 | 889 | ac_dashdash= |
795ca3e5 AK |
890 | for ac_option |
891 | do | |
795ca3e5 AK |
892 | # If the previous option needs an argument, assign it. |
893 | if test -n "$ac_prev"; then | |
7a197a62 | 894 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
895 | ac_prev= |
896 | continue | |
897 | fi | |
898 | ||
7a197a62 AK |
899 | case $ac_option in |
900 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
901 | *) ac_optarg=yes ;; | |
902 | esac | |
795ca3e5 AK |
903 | |
904 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
905 | ||
7a197a62 AK |
906 | case $ac_dashdash$ac_option in |
907 | --) | |
908 | ac_dashdash=yes ;; | |
795ca3e5 AK |
909 | |
910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
911 | ac_prev=bindir ;; | |
912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 913 | bindir=$ac_optarg ;; |
795ca3e5 AK |
914 | |
915 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 916 | ac_prev=build_alias ;; |
795ca3e5 | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 918 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
919 | |
920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
922 | ac_prev=cache_file ;; | |
923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
925 | cache_file=$ac_optarg ;; |
926 | ||
927 | --config-cache | -C) | |
928 | cache_file=config.cache ;; | |
795ca3e5 | 929 | |
7a197a62 | 930 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 931 | ac_prev=datadir ;; |
7a197a62 | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 933 | datadir=$ac_optarg ;; |
795ca3e5 | 934 | |
7a197a62 AK |
935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
936 | | --dataroo | --dataro | --datar) | |
937 | ac_prev=datarootdir ;; | |
938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
940 | datarootdir=$ac_optarg ;; | |
941 | ||
795ca3e5 | 942 | -disable-* | --disable-*) |
ec6a6fbe | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 944 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
946 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 947 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
948 | ac_useropt_orig=$ac_useropt |
949 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
950 | case $ac_user_opts in | |
951 | *" | |
952 | "enable_$ac_useropt" | |
953 | "*) ;; | |
954 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
955 | ac_unrecognized_sep=', ';; | |
956 | esac | |
957 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
958 | |
959 | -docdir | --docdir | --docdi | --doc | --do) | |
960 | ac_prev=docdir ;; | |
961 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
962 | docdir=$ac_optarg ;; | |
963 | ||
964 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
965 | ac_prev=dvidir ;; | |
966 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
967 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
968 | |
969 | -enable-* | --enable-*) | |
ec6a6fbe | 970 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 971 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
972 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
973 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 974 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
975 | ac_useropt_orig=$ac_useropt |
976 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
977 | case $ac_user_opts in | |
978 | *" | |
979 | "enable_$ac_useropt" | |
980 | "*) ;; | |
981 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
982 | ac_unrecognized_sep=', ';; | |
983 | esac | |
984 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
985 | |
986 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
987 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
988 | | --exec | --exe | --ex) | |
989 | ac_prev=exec_prefix ;; | |
990 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
991 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
992 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 993 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
994 | |
995 | -gas | --gas | --ga | --g) | |
996 | # Obsolete; use --with-gas. | |
997 | with_gas=yes ;; | |
998 | ||
ad6254c5 AK |
999 | -help | --help | --hel | --he | -h) |
1000 | ac_init_help=long ;; | |
1001 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1002 | ac_init_help=recursive ;; | |
1003 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1004 | ac_init_help=short ;; | |
795ca3e5 AK |
1005 | |
1006 | -host | --host | --hos | --ho) | |
ad6254c5 | 1007 | ac_prev=host_alias ;; |
795ca3e5 | 1008 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1009 | host_alias=$ac_optarg ;; |
795ca3e5 | 1010 | |
7a197a62 AK |
1011 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1012 | ac_prev=htmldir ;; | |
1013 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1014 | | --ht=*) | |
1015 | htmldir=$ac_optarg ;; | |
1016 | ||
795ca3e5 AK |
1017 | -includedir | --includedir | --includedi | --included | --include \ |
1018 | | --includ | --inclu | --incl | --inc) | |
1019 | ac_prev=includedir ;; | |
1020 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1021 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1022 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1023 | |
1024 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1025 | ac_prev=infodir ;; | |
1026 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1027 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1028 | |
1029 | -libdir | --libdir | --libdi | --libd) | |
1030 | ac_prev=libdir ;; | |
1031 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1032 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1033 | |
1034 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1035 | | --libexe | --libex | --libe) | |
1036 | ac_prev=libexecdir ;; | |
1037 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1038 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1039 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1040 | |
7a197a62 AK |
1041 | -localedir | --localedir | --localedi | --localed | --locale) |
1042 | ac_prev=localedir ;; | |
1043 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1044 | localedir=$ac_optarg ;; | |
1045 | ||
795ca3e5 | 1046 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1047 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1048 | ac_prev=localstatedir ;; |
1049 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1050 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1051 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1052 | |
1053 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1054 | ac_prev=mandir ;; | |
1055 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1056 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1057 | |
1058 | -nfp | --nfp | --nf) | |
1059 | # Obsolete; use --without-fp. | |
1060 | with_fp=no ;; | |
1061 | ||
1062 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1063 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1064 | no_create=yes ;; |
1065 | ||
1066 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1067 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1068 | no_recursion=yes ;; | |
1069 | ||
1070 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1071 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1072 | | --oldin | --oldi | --old | --ol | --o) | |
1073 | ac_prev=oldincludedir ;; | |
1074 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1075 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1076 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1077 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1078 | |
1079 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1080 | ac_prev=prefix ;; | |
1081 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1082 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1083 | |
1084 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1085 | | --program-pre | --program-pr | --program-p) | |
1086 | ac_prev=program_prefix ;; | |
1087 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1088 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1089 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1090 | |
1091 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1092 | | --program-suf | --program-su | --program-s) | |
1093 | ac_prev=program_suffix ;; | |
1094 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1095 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1096 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1097 | |
1098 | -program-transform-name | --program-transform-name \ | |
1099 | | --program-transform-nam | --program-transform-na \ | |
1100 | | --program-transform-n | --program-transform- \ | |
1101 | | --program-transform | --program-transfor \ | |
1102 | | --program-transfo | --program-transf \ | |
1103 | | --program-trans | --program-tran \ | |
1104 | | --progr-tra | --program-tr | --program-t) | |
1105 | ac_prev=program_transform_name ;; | |
1106 | -program-transform-name=* | --program-transform-name=* \ | |
1107 | | --program-transform-nam=* | --program-transform-na=* \ | |
1108 | | --program-transform-n=* | --program-transform-=* \ | |
1109 | | --program-transform=* | --program-transfor=* \ | |
1110 | | --program-transfo=* | --program-transf=* \ | |
1111 | | --program-trans=* | --program-tran=* \ | |
1112 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1113 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1114 | |
7a197a62 AK |
1115 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1116 | ac_prev=pdfdir ;; | |
1117 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1118 | pdfdir=$ac_optarg ;; | |
1119 | ||
1120 | -psdir | --psdir | --psdi | --psd | --ps) | |
1121 | ac_prev=psdir ;; | |
1122 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1123 | psdir=$ac_optarg ;; | |
1124 | ||
795ca3e5 AK |
1125 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1126 | | -silent | --silent | --silen | --sile | --sil) | |
1127 | silent=yes ;; | |
1128 | ||
1129 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1130 | ac_prev=sbindir ;; | |
1131 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1132 | | --sbi=* | --sb=*) | |
ad6254c5 | 1133 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1134 | |
1135 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1136 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1137 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1138 | | --sha | --sh) | |
1139 | ac_prev=sharedstatedir ;; | |
1140 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1141 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1142 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1143 | | --sha=* | --sh=*) | |
ad6254c5 | 1144 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1145 | |
1146 | -site | --site | --sit) | |
1147 | ac_prev=site ;; | |
1148 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1149 | site=$ac_optarg ;; |
795ca3e5 AK |
1150 | |
1151 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1152 | ac_prev=srcdir ;; | |
1153 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1154 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1155 | |
1156 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1157 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1158 | ac_prev=sysconfdir ;; | |
1159 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1160 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1161 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1162 | |
1163 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1164 | ac_prev=target_alias ;; |
795ca3e5 | 1165 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1166 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1167 | |
1168 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1169 | verbose=yes ;; | |
1170 | ||
ad6254c5 AK |
1171 | -version | --version | --versio | --versi | --vers | -V) |
1172 | ac_init_version=: ;; | |
795ca3e5 AK |
1173 | |
1174 | -with-* | --with-*) | |
ec6a6fbe | 1175 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1176 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1177 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1178 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1179 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1180 | ac_useropt_orig=$ac_useropt |
1181 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1182 | case $ac_user_opts in | |
1183 | *" | |
1184 | "with_$ac_useropt" | |
1185 | "*) ;; | |
1186 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1187 | ac_unrecognized_sep=', ';; | |
1188 | esac | |
1189 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1190 | |
1191 | -without-* | --without-*) | |
ec6a6fbe | 1192 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1193 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1194 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1195 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1196 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1197 | ac_useropt_orig=$ac_useropt |
1198 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1199 | case $ac_user_opts in | |
1200 | *" | |
1201 | "with_$ac_useropt" | |
1202 | "*) ;; | |
1203 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1204 | ac_unrecognized_sep=', ';; | |
1205 | esac | |
1206 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1207 | |
1208 | --x) | |
1209 | # Obsolete; use --with-x. | |
1210 | with_x=yes ;; | |
1211 | ||
1212 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1213 | | --x-incl | --x-inc | --x-in | --x-i) | |
1214 | ac_prev=x_includes ;; | |
1215 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1216 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1217 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1218 | |
1219 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1220 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1221 | ac_prev=x_libraries ;; | |
1222 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1223 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1224 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1225 | |
ec6a6fbe | 1226 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1227 | Try \`$0 --help' for more information." >&2 |
1228 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1229 | ;; |
1230 | ||
ad6254c5 AK |
1231 | *=*) |
1232 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1233 | # Reject names that are not valid shell variable names. | |
1234 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1235 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1236 | { (exit 1); exit 1; }; } |
7a197a62 | 1237 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1238 | export $ac_envvar ;; |
1239 | ||
795ca3e5 | 1240 | *) |
ad6254c5 | 1241 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1242 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1243 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1244 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1245 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1246 | ;; |
1247 | ||
1248 | esac | |
1249 | done | |
1250 | ||
1251 | if test -n "$ac_prev"; then | |
ad6254c5 | 1252 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1253 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1254 | { (exit 1); exit 1; }; } |
795ca3e5 | 1255 | fi |
795ca3e5 | 1256 | |
ec6a6fbe AK |
1257 | if test -n "$ac_unrecognized_opts"; then |
1258 | case $enable_option_checking in | |
1259 | no) ;; | |
1260 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1261 | { (exit 1); exit 1; }; } ;; | |
1262 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1263 | esac | |
1264 | fi | |
1265 | ||
1266 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1267 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1268 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1269 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1270 | libdir localedir mandir | |
795ca3e5 | 1271 | do |
7a197a62 | 1272 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1273 | # Remove trailing slashes. |
1274 | case $ac_val in | |
1275 | */ ) | |
1276 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1277 | eval $ac_var=\$ac_val;; | |
1278 | esac | |
1279 | # Be sure to have absolute directory names. | |
ad6254c5 | 1280 | case $ac_val in |
7a197a62 AK |
1281 | [\\/$]* | ?:[\\/]* ) continue;; |
1282 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1283 | esac |
ec6a6fbe | 1284 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1285 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1286 | done |
1287 | ||
ad6254c5 AK |
1288 | # There might be people who depend on the old broken behavior: `$host' |
1289 | # used to hold the argument of --host etc. | |
1290 | # FIXME: To remove some day. | |
1291 | build=$build_alias | |
1292 | host=$host_alias | |
1293 | target=$target_alias | |
1294 | ||
1295 | # FIXME: To remove some day. | |
1296 | if test "x$host_alias" != x; then | |
1297 | if test "x$build_alias" = x; then | |
1298 | cross_compiling=maybe | |
ec6a6fbe | 1299 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1300 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1301 | elif test "x$build_alias" != "x$host_alias"; then | |
1302 | cross_compiling=yes | |
1303 | fi | |
1304 | fi | |
8106cdd5 | 1305 | |
ad6254c5 AK |
1306 | ac_tool_prefix= |
1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1308 | ||
1309 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1310 | |
795ca3e5 | 1311 | |
7a197a62 AK |
1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1313 | ac_ls_di=`ls -di .` && | |
1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1315 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1316 | { (exit 1); exit 1; }; } |
1317 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1318 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1319 | { (exit 1); exit 1; }; } |
1320 | ||
1321 | ||
795ca3e5 AK |
1322 | # Find the source files, if location was not specified. |
1323 | if test -z "$srcdir"; then | |
1324 | ac_srcdir_defaulted=yes | |
7a197a62 | 1325 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1326 | ac_confdir=`$as_dirname -- "$as_myself" || |
1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1329 | X"$as_myself" : 'X\(//\)$' \| \ | |
1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1331 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)[^/].*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\).*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | s/.*/./; q'` | |
795ca3e5 | 1349 | srcdir=$ac_confdir |
7a197a62 | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1351 | srcdir=.. |
1352 | fi | |
1353 | else | |
1354 | ac_srcdir_defaulted=no | |
1355 | fi | |
7a197a62 AK |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1358 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1359 | { (exit 1); exit 1; }; } |
795ca3e5 | 1360 | fi |
7a197a62 AK |
1361 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1362 | ac_abs_confdir=`( | |
ec6a6fbe | 1363 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1364 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1365 | pwd)` |
1366 | # When building in place, set srcdir=. | |
1367 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1368 | srcdir=. | |
1369 | fi | |
1370 | # Remove unnecessary trailing slashes from srcdir. | |
1371 | # Double slashes in file names in object file debugging info | |
1372 | # mess up M-x gdb in Emacs. | |
1373 | case $srcdir in | |
1374 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1375 | esac | |
1376 | for ac_var in $ac_precious_vars; do | |
1377 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1378 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1379 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1380 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1381 | done | |
ad6254c5 AK |
1382 | |
1383 | # | |
1384 | # Report the --help message. | |
1385 | # | |
1386 | if test "$ac_init_help" = "long"; then | |
1387 | # Omit some internal or obsolete options to make the list less imposing. | |
1388 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1389 | cat <<_ACEOF | |
1390 | \`configure' configures this package to adapt to many kinds of systems. | |
1391 | ||
1392 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1393 | ||
1394 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1395 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1396 | ||
1397 | Defaults for the options are specified in brackets. | |
1398 | ||
1399 | Configuration: | |
1400 | -h, --help display this help and exit | |
1401 | --help=short display options specific to this package | |
1402 | --help=recursive display the short help of all the included packages | |
1403 | -V, --version display version information and exit | |
1404 | -q, --quiet, --silent do not print \`checking...' messages | |
1405 | --cache-file=FILE cache test results in FILE [disabled] | |
1406 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1407 | -n, --no-create do not create output files | |
1408 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1409 | ||
ad6254c5 AK |
1410 | Installation directories: |
1411 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1412 | [$ac_default_prefix] |
ad6254c5 | 1413 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1414 | [PREFIX] |
ad6254c5 AK |
1415 | |
1416 | By default, \`make install' will install all the files in | |
1417 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1418 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1419 | for instance \`--prefix=\$HOME'. | |
1420 | ||
1421 | For better control, use the options below. | |
1422 | ||
1423 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1424 | --bindir=DIR user executables [EPREFIX/bin] |
1425 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1426 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1427 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1428 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1429 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1430 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1431 | --includedir=DIR C header files [PREFIX/include] | |
1432 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1433 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1434 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1435 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1436 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1437 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1439 | --htmldir=DIR html documentation [DOCDIR] | |
1440 | --dvidir=DIR dvi documentation [DOCDIR] | |
1441 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1442 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1443 | _ACEOF |
1444 | ||
1445 | cat <<\_ACEOF | |
1446 | ||
1447 | System types: | |
1448 | --build=BUILD configure for building on BUILD [guessed] | |
1449 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1450 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1451 | _ACEOF | |
1452 | fi | |
1453 | ||
1454 | if test -n "$ac_init_help"; then | |
1455 | ||
1456 | cat <<\_ACEOF | |
1457 | ||
1458 | Optional Features: | |
ec6a6fbe | 1459 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1460 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1461 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1462 | --enable-static_link Use this to link the tools to their libraries |
1463 | statically. Default is dynamic linking | |
ad6254c5 AK |
1464 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1465 | device-mapper is missing from the kernel | |
1b523347 | 1466 | --disable-readline Disable readline support |
3d978351 | 1467 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1468 | --enable-debug Enable debugging |
5556819a | 1469 | --enable-profiling Gather gcov profiling data |
93bd259b AK |
1470 | --disable-devmapper Disable LVM2 device-mapper interaction |
1471 | --enable-compat Enable support for old device-mapper versions | |
1472 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 | 1473 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1474 | --enable-applib Build application library |
ad6254c5 | 1475 | --enable-cmdlib Build shared command library |
93bd259b | 1476 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1477 | --enable-fsadm Enable fsadm |
15d91f5a | 1478 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1479 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1480 | --enable-nls Enable Native Language Support |
1481 | ||
1482 | Optional Packages: | |
1483 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1484 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1485 | --with-user=USER Set the owner of installed files [USER=root] |
1486 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1487 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1488 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1489 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1490 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1491 | TYPE=internal | |
1492 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1493 | TYPE=internal | |
1494 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1495 | TYPE=internal | |
1496 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1497 | TYPE=internal | |
1498 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1499 | TYPE=internal | |
ec6a6fbe | 1500 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/corosync/none/all |
a266258f | 1501 | TYPE=none |
d0191583 JM |
1502 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1503 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1504 | --with-confdir=DIR Configuration files in DIR /etc |
1505 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
68f2de6d AK |
1506 | --with-usrlibdir=DIR |
1507 | --with-usrsbindir=DIR | |
93bd259b AK |
1508 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
1509 | --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd] | |
1510 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1511 | |
1512 | Some influential environment variables: | |
1513 | CC C compiler command | |
1514 | CFLAGS C compiler flags | |
1515 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1516 | nonstandard directory <lib dir> | |
25fbec5b | 1517 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1518 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1519 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1520 | CPP C preprocessor |
e2997b73 AK |
1521 | PKG_CONFIG path to pkg-config utility |
1522 | QUORUM_CFLAGS | |
1523 | C compiler flags for QUORUM, overriding pkg-config | |
1524 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
1525 | CONFDB_CFLAGS | |
1526 | C compiler flags for CONFDB, overriding pkg-config | |
1527 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1528 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1529 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
ad6254c5 AK |
1530 | |
1531 | Use these variables to override the choices made by `configure' or to help | |
1532 | it to find libraries and programs with nonstandard names/locations. | |
1533 | ||
1534 | _ACEOF | |
7a197a62 | 1535 | ac_status=$? |
ad6254c5 AK |
1536 | fi |
1537 | ||
1538 | if test "$ac_init_help" = "recursive"; then | |
1539 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1540 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1541 | test -d "$ac_dir" || |
1542 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1543 | continue | |
ad6254c5 AK |
1544 | ac_builddir=. |
1545 | ||
7a197a62 AK |
1546 | case "$ac_dir" in |
1547 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1548 | *) | |
ec6a6fbe | 1549 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1550 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1551 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1552 | case $ac_top_builddir_sub in |
1553 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1554 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1555 | esac ;; | |
1556 | esac | |
1557 | ac_abs_top_builddir=$ac_pwd | |
1558 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1559 | # for backward compatibility: | |
1560 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1561 | |
1562 | case $srcdir in | |
7a197a62 | 1563 | .) # We are building in place. |
ad6254c5 | 1564 | ac_srcdir=. |
7a197a62 AK |
1565 | ac_top_srcdir=$ac_top_builddir_sub |
1566 | ac_abs_top_srcdir=$ac_pwd ;; | |
1567 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1568 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1569 | ac_top_srcdir=$srcdir |
1570 | ac_abs_top_srcdir=$srcdir ;; | |
1571 | *) # Relative name. | |
1572 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1573 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1574 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1575 | esac |
7a197a62 AK |
1576 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1577 | ||
1578 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1579 | # Check for guested configure. | |
1580 | if test -f "$ac_srcdir/configure.gnu"; then | |
1581 | echo && | |
1582 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1583 | elif test -f "$ac_srcdir/configure"; then | |
1584 | echo && | |
1585 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1586 | else |
ec6a6fbe | 1587 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1588 | fi || ac_status=$? |
1589 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1590 | done |
1591 | fi | |
1592 | ||
7a197a62 | 1593 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1594 | if $ac_init_version; then |
1595 | cat <<\_ACEOF | |
7a197a62 | 1596 | configure |
ec6a6fbe | 1597 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1598 | |
7a197a62 | 1599 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1600 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1601 | This configure script is free software; the Free Software Foundation |
1602 | gives unlimited permission to copy, distribute and modify it. | |
1603 | _ACEOF | |
7a197a62 | 1604 | exit |
ad6254c5 | 1605 | fi |
7a197a62 | 1606 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1607 | This file contains any messages produced by compilers while |
1608 | running configure, to aid debugging if configure makes a mistake. | |
1609 | ||
1610 | It was created by $as_me, which was | |
ec6a6fbe | 1611 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1612 | |
1613 | $ $0 $@ | |
1614 | ||
1615 | _ACEOF | |
7a197a62 | 1616 | exec 5>>config.log |
ad6254c5 AK |
1617 | { |
1618 | cat <<_ASUNAME | |
1619 | ## --------- ## | |
1620 | ## Platform. ## | |
1621 | ## --------- ## | |
1622 | ||
1623 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1624 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1625 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1626 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1627 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1628 | ||
1629 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1630 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1631 | ||
1632 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1633 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1634 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1635 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1636 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1637 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1638 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1639 | ||
1640 | _ASUNAME | |
1641 | ||
1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1643 | for as_dir in $PATH | |
1644 | do | |
1645 | IFS=$as_save_IFS | |
1646 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1647 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1648 | done |
7a197a62 | 1649 | IFS=$as_save_IFS |
ad6254c5 AK |
1650 | |
1651 | } >&5 | |
1652 | ||
1653 | cat >&5 <<_ACEOF | |
1654 | ||
1655 | ||
1656 | ## ----------- ## | |
1657 | ## Core tests. ## | |
1658 | ## ----------- ## | |
1659 | ||
1660 | _ACEOF | |
1661 | ||
1662 | ||
1663 | # Keep a trace of the command line. | |
1664 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1665 | # Strip out --silent because we don't want to record it for future runs. | |
1666 | # Also quote any args containing shell meta-characters. | |
1667 | # Make two passes to allow for proper duplicate-argument suppression. | |
1668 | ac_configure_args= | |
1669 | ac_configure_args0= | |
1670 | ac_configure_args1= | |
ad6254c5 AK |
1671 | ac_must_keep_next=false |
1672 | for ac_pass in 1 2 | |
1673 | do | |
1674 | for ac_arg | |
1675 | do | |
1676 | case $ac_arg in | |
1677 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1678 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1679 | | -silent | --silent | --silen | --sile | --sil) | |
1680 | continue ;; | |
7a197a62 | 1681 | *\'*) |
ec6a6fbe | 1682 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1683 | esac |
1684 | case $ac_pass in | |
1685 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1686 | 2) | |
1687 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1688 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1689 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1690 | else |
8a2fc586 AK |
1691 | case $ac_arg in |
1692 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1693 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1694 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1695 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1696 | case "$ac_configure_args0 " in | |
1697 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1698 | esac | |
1699 | ;; | |
1700 | -* ) ac_must_keep_next=true ;; | |
1701 | esac | |
ad6254c5 | 1702 | fi |
7a197a62 | 1703 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1704 | ;; |
1705 | esac | |
1706 | done | |
1707 | done | |
1708 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1709 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1710 | ||
1711 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1712 | # config.log. We remove comments because anyway the quotes in there | |
1713 | # would cause problems or look ugly. | |
7a197a62 AK |
1714 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1715 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1716 | trap 'exit_status=$? |
1717 | # Save into config.log some information that might help in debugging. | |
1718 | { | |
1719 | echo | |
1720 | ||
1721 | cat <<\_ASBOX | |
1722 | ## ---------------- ## | |
1723 | ## Cache variables. ## | |
1724 | ## ---------------- ## | |
1725 | _ASBOX | |
1726 | echo | |
1727 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1728 | ( |
1729 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1730 | eval ac_val=\$$ac_var | |
1731 | case $ac_val in #( | |
1732 | *${as_nl}*) | |
1733 | case $ac_var in #( | |
ec6a6fbe AK |
1734 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1735 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1736 | esac |
1737 | case $ac_var in #( | |
1738 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1739 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1740 | *) $as_unset $ac_var ;; |
1741 | esac ;; | |
1742 | esac | |
1743 | done | |
ad6254c5 | 1744 | (set) 2>&1 | |
7a197a62 AK |
1745 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1746 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1747 | sed -n \ |
7a197a62 AK |
1748 | "s/'\''/'\''\\\\'\'''\''/g; |
1749 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1750 | ;; #( | |
ad6254c5 | 1751 | *) |
7a197a62 | 1752 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1753 | ;; |
7a197a62 AK |
1754 | esac | |
1755 | sort | |
1756 | ) | |
ad6254c5 AK |
1757 | echo |
1758 | ||
1759 | cat <<\_ASBOX | |
1760 | ## ----------------- ## | |
1761 | ## Output variables. ## | |
1762 | ## ----------------- ## | |
1763 | _ASBOX | |
1764 | echo | |
1765 | for ac_var in $ac_subst_vars | |
1766 | do | |
7a197a62 AK |
1767 | eval ac_val=\$$ac_var |
1768 | case $ac_val in | |
ec6a6fbe | 1769 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1770 | esac |
ec6a6fbe | 1771 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1772 | done | sort |
1773 | echo | |
1774 | ||
1775 | if test -n "$ac_subst_files"; then | |
1776 | cat <<\_ASBOX | |
7a197a62 AK |
1777 | ## ------------------- ## |
1778 | ## File substitutions. ## | |
1779 | ## ------------------- ## | |
ad6254c5 AK |
1780 | _ASBOX |
1781 | echo | |
1782 | for ac_var in $ac_subst_files | |
1783 | do | |
7a197a62 AK |
1784 | eval ac_val=\$$ac_var |
1785 | case $ac_val in | |
ec6a6fbe | 1786 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1787 | esac |
ec6a6fbe | 1788 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1789 | done | sort |
1790 | echo | |
1791 | fi | |
1792 | ||
1793 | if test -s confdefs.h; then | |
1794 | cat <<\_ASBOX | |
1795 | ## ----------- ## | |
1796 | ## confdefs.h. ## | |
1797 | ## ----------- ## | |
1798 | _ASBOX | |
1799 | echo | |
7a197a62 | 1800 | cat confdefs.h |
ad6254c5 AK |
1801 | echo |
1802 | fi | |
1803 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1804 | $as_echo "$as_me: caught signal $ac_signal" |
1805 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1806 | } >&5 |
7a197a62 AK |
1807 | rm -f core *.core core.conftest.* && |
1808 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1809 | exit $exit_status |
7a197a62 | 1810 | ' 0 |
ad6254c5 AK |
1811 | for ac_signal in 1 2 13 15; do |
1812 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1813 | done | |
1814 | ac_signal=0 | |
1815 | ||
1816 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1817 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1818 | |
1819 | # Predefined preprocessor variables. | |
1820 | ||
1821 | cat >>confdefs.h <<_ACEOF | |
1822 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1823 | _ACEOF | |
1824 | ||
1825 | ||
1826 | cat >>confdefs.h <<_ACEOF | |
1827 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1828 | _ACEOF | |
1829 | ||
1830 | ||
1831 | cat >>confdefs.h <<_ACEOF | |
1832 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1833 | _ACEOF | |
8106cdd5 | 1834 | |
ad6254c5 AK |
1835 | |
1836 | cat >>confdefs.h <<_ACEOF | |
1837 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1838 | _ACEOF | |
1839 | ||
1840 | ||
1841 | cat >>confdefs.h <<_ACEOF | |
1842 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1843 | _ACEOF | |
1844 | ||
1845 | ||
1846 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1847 | # Prefer an explicitly selected file to automatically selected ones. |
1848 | ac_site_file1=NONE | |
1849 | ac_site_file2=NONE | |
7a197a62 | 1850 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1851 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1852 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1853 | ac_site_file1=$prefix/share/config.site |
1854 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1855 | else |
ec6a6fbe AK |
1856 | ac_site_file1=$ac_default_prefix/share/config.site |
1857 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1858 | fi |
ec6a6fbe | 1859 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1860 | do |
ec6a6fbe | 1861 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1862 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1863 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1864 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1865 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1866 | . "$ac_site_file" |
1867 | fi | |
1868 | done | |
1869 | ||
1870 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1871 | # Some versions of bash will fail to source /dev/null (special |
1872 | # files actually), so we avoid doing that. | |
1873 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1874 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1875 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1876 | case $cache_file in |
7a197a62 AK |
1877 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1878 | *) . "./$cache_file";; | |
ad6254c5 AK |
1879 | esac |
1880 | fi | |
795ca3e5 | 1881 | else |
ec6a6fbe AK |
1882 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1883 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1884 | >$cache_file |
1885 | fi | |
1886 | ||
1887 | # Check that the precious variables saved in the cache have kept the same | |
1888 | # value. | |
1889 | ac_cache_corrupted=false | |
7a197a62 | 1890 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1891 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1892 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1893 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1894 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1895 | case $ac_old_set,$ac_new_set in |
1896 | set,) | |
ec6a6fbe AK |
1897 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1898 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1899 | ac_cache_corrupted=: ;; |
1900 | ,set) | |
ec6a6fbe AK |
1901 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1902 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1903 | ac_cache_corrupted=: ;; |
1904 | ,);; | |
1905 | *) | |
1906 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1907 | # differences in whitespace do not lead to failure. |
1908 | ac_old_val_w=`echo x $ac_old_val` | |
1909 | ac_new_val_w=`echo x $ac_new_val` | |
1910 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1911 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1912 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1913 | ac_cache_corrupted=: | |
1914 | else | |
1915 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1916 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1917 | eval $ac_var=\$ac_old_val | |
1918 | fi | |
1919 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1920 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1921 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1922 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1923 | fi;; |
1924 | esac | |
1925 | # Pass precious variables to config.status. | |
1926 | if test "$ac_new_set" = set; then | |
1927 | case $ac_new_val in | |
ec6a6fbe | 1928 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1929 | *) ac_arg=$ac_var=$ac_new_val ;; |
1930 | esac | |
1931 | case " $ac_configure_args " in | |
1932 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1933 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1934 | esac | |
1935 | fi | |
1936 | done | |
1937 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
1938 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1939 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1940 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1941 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1942 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1943 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1944 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1945 | fi |
1946 | ||
ad6254c5 AK |
1947 | |
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | ||
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | ||
7a197a62 AK |
1963 | ac_ext=c |
1964 | ac_cpp='$CPP $CPPFLAGS' | |
1965 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1966 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1967 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1968 | |
795ca3e5 AK |
1969 | |
1970 | ||
7a197a62 | 1971 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1972 | |
1973 | ||
80992638 | 1974 | ################################################################################ |
795ca3e5 | 1975 | ac_aux_dir= |
7a197a62 AK |
1976 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1977 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1978 | ac_aux_dir=$ac_dir |
1979 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1980 | break | |
7a197a62 | 1981 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1982 | ac_aux_dir=$ac_dir |
1983 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1984 | break | |
7a197a62 | 1985 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1986 | ac_aux_dir=$ac_dir |
1987 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1988 | break | |
795ca3e5 AK |
1989 | fi |
1990 | done | |
1991 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
1992 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1993 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1994 | { (exit 1); exit 1; }; } |
795ca3e5 | 1995 | fi |
7a197a62 AK |
1996 | |
1997 | # These three variables are undocumented and unsupported, | |
1998 | # and are intended to be withdrawn in a future Autoconf release. | |
1999 | # They can cause serious problems if a builder's source tree is in a directory | |
2000 | # whose full name contains unusual characters. | |
2001 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2002 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2003 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2004 | ||
8ce0cbda AK |
2005 | |
2006 | ||
ad6254c5 | 2007 | ################################################################################ |
8ce0cbda | 2008 | # Make sure we can run config.sub. |
7a197a62 | 2009 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2010 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2011 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2012 | { (exit 1); exit 1; }; } |
2013 | ||
ec6a6fbe AK |
2014 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2015 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2016 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2017 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2018 | else |
7a197a62 AK |
2019 | ac_build_alias=$build_alias |
2020 | test "x$ac_build_alias" = x && | |
2021 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2022 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2023 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2024 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2025 | { (exit 1); exit 1; }; } |
7a197a62 | 2026 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2027 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2028 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2029 | { (exit 1); exit 1; }; } |
2030 | ||
2031 | fi | |
ec6a6fbe AK |
2032 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2033 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2034 | case $ac_cv_build in |
2035 | *-*-*) ;; | |
ec6a6fbe AK |
2036 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2037 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2038 | { (exit 1); exit 1; }; };; |
2039 | esac | |
ad6254c5 | 2040 | build=$ac_cv_build |
7a197a62 AK |
2041 | ac_save_IFS=$IFS; IFS='-' |
2042 | set x $ac_cv_build | |
2043 | shift | |
2044 | build_cpu=$1 | |
2045 | build_vendor=$2 | |
2046 | shift; shift | |
2047 | # Remember, the first character of IFS is used to create $*, | |
2048 | # except with old shells: | |
2049 | build_os=$* | |
2050 | IFS=$ac_save_IFS | |
2051 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2052 | |
2053 | ||
ec6a6fbe AK |
2054 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2055 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2056 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2057 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2058 | else |
7a197a62 AK |
2059 | if test "x$host_alias" = x; then |
2060 | ac_cv_host=$ac_cv_build | |
2061 | else | |
2062 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2063 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2064 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2065 | { (exit 1); exit 1; }; } |
7a197a62 | 2066 | fi |
ad6254c5 AK |
2067 | |
2068 | fi | |
ec6a6fbe AK |
2069 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2070 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2071 | case $ac_cv_host in |
2072 | *-*-*) ;; | |
ec6a6fbe AK |
2073 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2074 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2075 | { (exit 1); exit 1; }; };; |
2076 | esac | |
ad6254c5 | 2077 | host=$ac_cv_host |
7a197a62 AK |
2078 | ac_save_IFS=$IFS; IFS='-' |
2079 | set x $ac_cv_host | |
2080 | shift | |
2081 | host_cpu=$1 | |
2082 | host_vendor=$2 | |
2083 | shift; shift | |
2084 | # Remember, the first character of IFS is used to create $*, | |
2085 | # except with old shells: | |
2086 | host_os=$* | |
2087 | IFS=$ac_save_IFS | |
2088 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2089 | |
2090 | ||
ec6a6fbe AK |
2091 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2092 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2093 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2094 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2095 | else |
7a197a62 AK |
2096 | if test "x$target_alias" = x; then |
2097 | ac_cv_target=$ac_cv_host | |
2098 | else | |
2099 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2100 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2101 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2102 | { (exit 1); exit 1; }; } |
7a197a62 | 2103 | fi |
8ce0cbda | 2104 | |
ad6254c5 | 2105 | fi |
ec6a6fbe AK |
2106 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2107 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2108 | case $ac_cv_target in |
2109 | *-*-*) ;; | |
ec6a6fbe AK |
2110 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2111 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2112 | { (exit 1); exit 1; }; };; |
2113 | esac | |
ad6254c5 | 2114 | target=$ac_cv_target |
7a197a62 AK |
2115 | ac_save_IFS=$IFS; IFS='-' |
2116 | set x $ac_cv_target | |
2117 | shift | |
2118 | target_cpu=$1 | |
2119 | target_vendor=$2 | |
2120 | shift; shift | |
2121 | # Remember, the first character of IFS is used to create $*, | |
2122 | # except with old shells: | |
2123 | target_os=$* | |
2124 | IFS=$ac_save_IFS | |
2125 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2126 | |
8ce0cbda | 2127 | |
ad6254c5 AK |
2128 | # The aliases save the names the user supplied, while $host etc. |
2129 | # will get canonicalized. | |
2130 | test -n "$target_alias" && | |
8ce0cbda AK |
2131 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2132 | NONENONEs,x,x, && | |
2133 | program_prefix=${target_alias}- | |
2134 | ||
8ce0cbda AK |
2135 | case "$host_os" in |
2136 | linux*) | |
7f54ef36 | 2137 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2138 | COPTIMISE_FLAG="-O2" |
2139 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2140 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2141 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2142 | LDDEPS="$LDDEPS .export.sym" | |
2143 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2144 | LIB_SUFFIX=so |
8ce0cbda AK |
2145 | DEVMAPPER=yes |
2146 | ODIRECT=yes | |
d0191583 | 2147 | DM_IOCTLS=yes |
8ce0cbda | 2148 | SELINUX=yes |
8b1a3214 | 2149 | REALTIME=yes |
8ce0cbda | 2150 | CLUSTER=internal |
93bd259b | 2151 | FSADM=yes |
d0191583 | 2152 | ;; |
8ce0cbda AK |
2153 | darwin*) |
2154 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2155 | COPTIMISE_FLAG="-O2" | |
2156 | CLDFLAGS="$CLDFLAGS" | |
2157 | CLDWHOLEARCHIVE="-all_load" | |
2158 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2159 | LIB_SUFFIX=dylib |
a653923f | 2160 | DEVMAPPER=yes |
8ce0cbda | 2161 | ODIRECT=no |
d0191583 | 2162 | DM_IOCTLS=no |
8ce0cbda | 2163 | SELINUX=no |
8b1a3214 | 2164 | REALTIME=no |
8ce0cbda | 2165 | CLUSTER=none |
d0191583 JM |
2166 | FSADM=no |
2167 | ;; | |
8ce0cbda AK |
2168 | esac |
2169 | ||
80992638 | 2170 | ################################################################################ |
ec6a6fbe AK |
2171 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2172 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2173 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2174 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2175 | else |
2176 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2177 | for ac_i in 1 2 3 4 5 6 7; do | |
2178 | ac_script="$ac_script$as_nl$ac_script" | |
2179 | done | |
ec6a6fbe | 2180 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2181 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2182 | if test -z "$SED"; then |
5951ef33 | 2183 | ac_path_SED_found=false |
ec6a6fbe AK |
2184 | # Loop through the user's path and test for each of PROGNAME-LIST |
2185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2186 | for as_dir in $PATH |
2187 | do | |
2188 | IFS=$as_save_IFS | |
2189 | test -z "$as_dir" && as_dir=. | |
2190 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2191 | for ac_exec_ext in '' $ac_executable_extensions; do |
2192 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2193 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2194 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2195 | # Check for GNU $ac_path_SED |
2196 | case `"$ac_path_SED" --version 2>&1` in | |
2197 | *GNU*) | |
2198 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2199 | *) | |
2200 | ac_count=0 | |
ec6a6fbe | 2201 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2202 | while : |
2203 | do | |
2204 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2205 | mv "conftest.tmp" "conftest.in" | |
2206 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2207 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2208 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2209 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2210 | ac_count=`expr $ac_count + 1` | |
2211 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2212 | # Best one so far, save it but keep looking for a better one | |
2213 | ac_cv_path_SED="$ac_path_SED" | |
2214 | ac_path_SED_max=$ac_count | |
2215 | fi | |
2216 | # 10*(2^10) chars as input seems more than enough | |
2217 | test $ac_count -gt 10 && break | |
2218 | done | |
2219 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2220 | esac | |
2221 | ||
ec6a6fbe AK |
2222 | $ac_path_SED_found && break 3 |
2223 | done | |
5951ef33 AK |
2224 | done |
2225 | done | |
5951ef33 | 2226 | IFS=$as_save_IFS |
ec6a6fbe AK |
2227 | if test -z "$ac_cv_path_SED"; then |
2228 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2229 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2230 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2231 | fi |
5951ef33 AK |
2232 | else |
2233 | ac_cv_path_SED=$SED | |
2234 | fi | |
2235 | ||
2236 | fi | |
ec6a6fbe AK |
2237 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2238 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2239 | SED="$ac_cv_path_SED" |
2240 | rm -f conftest.sed | |
2241 | ||
ad6254c5 | 2242 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2243 | do |
ad6254c5 | 2244 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2245 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2246 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2247 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2248 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2249 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2250 | else |
2251 | if test -n "$AWK"; then | |
2252 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2253 | else | |
ad6254c5 AK |
2254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2255 | for as_dir in $PATH | |
2256 | do | |
2257 | IFS=$as_save_IFS | |
2258 | test -z "$as_dir" && as_dir=. | |
2259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2261 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2262 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2263 | break 2 |
2264 | fi | |
2265 | done | |
2266 | done | |
7a197a62 | 2267 | IFS=$as_save_IFS |
ad6254c5 | 2268 | |
795ca3e5 AK |
2269 | fi |
2270 | fi | |
ad6254c5 | 2271 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2272 | if test -n "$AWK"; then |
ec6a6fbe AK |
2273 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2274 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2275 | else |
ec6a6fbe AK |
2276 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2277 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2278 | fi |
2279 | ||
7a197a62 | 2280 | |
ad6254c5 AK |
2281 | test -n "$AWK" && break |
2282 | done | |
2283 | ||
2284 | ac_ext=c | |
2285 | ac_cpp='$CPP $CPPFLAGS' | |
2286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2289 | if test -n "$ac_tool_prefix"; then | |
2290 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2291 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2292 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2293 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2294 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2295 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2296 | else |
2297 | if test -n "$CC"; then | |
2298 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2299 | else | |
2300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2301 | for as_dir in $PATH | |
2302 | do | |
2303 | IFS=$as_save_IFS | |
2304 | test -z "$as_dir" && as_dir=. | |
2305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2307 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2308 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2309 | break 2 |
2310 | fi | |
2311 | done | |
8106cdd5 | 2312 | done |
7a197a62 | 2313 | IFS=$as_save_IFS |
8106cdd5 | 2314 | |
ad6254c5 AK |
2315 | fi |
2316 | fi | |
2317 | CC=$ac_cv_prog_CC | |
2318 | if test -n "$CC"; then | |
ec6a6fbe AK |
2319 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2320 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2321 | else |
ec6a6fbe AK |
2322 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2323 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2324 | fi |
2325 | ||
7a197a62 | 2326 | |
ad6254c5 AK |
2327 | fi |
2328 | if test -z "$ac_cv_prog_CC"; then | |
2329 | ac_ct_CC=$CC | |
2330 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2331 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2332 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2333 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2334 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2335 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2336 | else |
2337 | if test -n "$ac_ct_CC"; then | |
2338 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2339 | else | |
2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2341 | for as_dir in $PATH | |
2342 | do | |
2343 | IFS=$as_save_IFS | |
2344 | test -z "$as_dir" && as_dir=. | |
2345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2347 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2348 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2349 | break 2 |
2350 | fi | |
2351 | done | |
2352 | done | |
7a197a62 | 2353 | IFS=$as_save_IFS |
ad6254c5 AK |
2354 | |
2355 | fi | |
2356 | fi | |
2357 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2358 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2359 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2360 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2361 | else |
ec6a6fbe AK |
2362 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2363 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2364 | fi |
2365 | ||
7a197a62 AK |
2366 | if test "x$ac_ct_CC" = x; then |
2367 | CC="" | |
2368 | else | |
2369 | case $cross_compiling:$ac_tool_warned in | |
2370 | yes:) | |
ec6a6fbe AK |
2371 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2372 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2373 | ac_tool_warned=yes ;; |
2374 | esac | |
2375 | CC=$ac_ct_CC | |
2376 | fi | |
ad6254c5 AK |
2377 | else |
2378 | CC="$ac_cv_prog_CC" | |
2379 | fi | |
2380 | ||
2381 | if test -z "$CC"; then | |
7a197a62 AK |
2382 | if test -n "$ac_tool_prefix"; then |
2383 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2384 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2385 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2386 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2387 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2388 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2389 | else |
2390 | if test -n "$CC"; then | |
2391 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2392 | else | |
ad6254c5 AK |
2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2394 | for as_dir in $PATH | |
2395 | do | |
2396 | IFS=$as_save_IFS | |
2397 | test -z "$as_dir" && as_dir=. | |
2398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2400 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2401 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2402 | break 2 |
2403 | fi | |
2404 | done | |
2405 | done | |
7a197a62 | 2406 | IFS=$as_save_IFS |
ad6254c5 | 2407 | |
8106cdd5 AK |
2408 | fi |
2409 | fi | |
ad6254c5 | 2410 | CC=$ac_cv_prog_CC |
8106cdd5 | 2411 | if test -n "$CC"; then |
ec6a6fbe AK |
2412 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2413 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2414 | else |
ec6a6fbe AK |
2415 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2416 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2417 | fi |
2418 | ||
8106cdd5 | 2419 | |
7a197a62 | 2420 | fi |
ad6254c5 | 2421 | fi |
795ca3e5 AK |
2422 | if test -z "$CC"; then |
2423 | # Extract the first word of "cc", so it can be a program name with args. | |
2424 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2425 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2426 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2427 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2428 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2429 | else |
2430 | if test -n "$CC"; then | |
2431 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2432 | else | |
795ca3e5 | 2433 | ac_prog_rejected=no |
ad6254c5 AK |
2434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2435 | for as_dir in $PATH | |
2436 | do | |
2437 | IFS=$as_save_IFS | |
2438 | test -z "$as_dir" && as_dir=. | |
2439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2441 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2442 | ac_prog_rejected=yes | |
2443 | continue | |
2444 | fi | |
2445 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2446 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2447 | break 2 |
2448 | fi | |
2449 | done | |
2450 | done | |
7a197a62 | 2451 | IFS=$as_save_IFS |
ad6254c5 | 2452 | |
795ca3e5 AK |
2453 | if test $ac_prog_rejected = yes; then |
2454 | # We found a bogon in the path, so make sure we never use it. | |
2455 | set dummy $ac_cv_prog_CC | |
2456 | shift | |
ad6254c5 | 2457 | if test $# != 0; then |
795ca3e5 AK |
2458 | # We chose a different compiler from the bogus one. |
2459 | # However, it has the same basename, so the bogon will be chosen | |
2460 | # first if we set CC to just the basename; use the full file name. | |
2461 | shift | |
ad6254c5 | 2462 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2463 | fi |
2464 | fi | |
2465 | fi | |
2466 | fi | |
ad6254c5 | 2467 | CC=$ac_cv_prog_CC |
795ca3e5 | 2468 | if test -n "$CC"; then |
ec6a6fbe AK |
2469 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2470 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2471 | else |
ec6a6fbe AK |
2472 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2473 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2474 | fi |
2475 | ||
7a197a62 | 2476 | |
ad6254c5 AK |
2477 | fi |
2478 | if test -z "$CC"; then | |
2479 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2480 | for ac_prog in cl.exe |
ad6254c5 AK |
2481 | do |
2482 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2483 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2484 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2485 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2486 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2487 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2488 | else |
2489 | if test -n "$CC"; then | |
2490 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2491 | else | |
ad6254c5 AK |
2492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2493 | for as_dir in $PATH | |
2494 | do | |
2495 | IFS=$as_save_IFS | |
2496 | test -z "$as_dir" && as_dir=. | |
2497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2499 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2500 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2501 | break 2 |
2502 | fi | |
2503 | done | |
2504 | done | |
7a197a62 | 2505 | IFS=$as_save_IFS |
ad6254c5 | 2506 | |
795ca3e5 AK |
2507 | fi |
2508 | fi | |
ad6254c5 | 2509 | CC=$ac_cv_prog_CC |
795ca3e5 | 2510 | if test -n "$CC"; then |
ec6a6fbe AK |
2511 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2512 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2513 | else |
ec6a6fbe AK |
2514 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2515 | $as_echo "no" >&6; } | |
795ca3e5 | 2516 | fi |
ad6254c5 | 2517 | |
7a197a62 | 2518 | |
ad6254c5 AK |
2519 | test -n "$CC" && break |
2520 | done | |
2521 | fi | |
2522 | if test -z "$CC"; then | |
2523 | ac_ct_CC=$CC | |
7a197a62 | 2524 | for ac_prog in cl.exe |
ad6254c5 AK |
2525 | do |
2526 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2527 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2528 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2529 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2530 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2531 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2532 | else |
2533 | if test -n "$ac_ct_CC"; then | |
2534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2535 | else | |
2536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2537 | for as_dir in $PATH | |
2538 | do | |
2539 | IFS=$as_save_IFS | |
2540 | test -z "$as_dir" && as_dir=. | |
2541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2542 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2543 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2544 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2545 | break 2 |
795ca3e5 | 2546 | fi |
ad6254c5 AK |
2547 | done |
2548 | done | |
7a197a62 | 2549 | IFS=$as_save_IFS |
ad6254c5 AK |
2550 | |
2551 | fi | |
2552 | fi | |
2553 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2554 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2555 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2556 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2557 | else |
ec6a6fbe AK |
2558 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2559 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2560 | fi |
2561 | ||
7a197a62 | 2562 | |
ad6254c5 AK |
2563 | test -n "$ac_ct_CC" && break |
2564 | done | |
795ca3e5 | 2565 | |
7a197a62 AK |
2566 | if test "x$ac_ct_CC" = x; then |
2567 | CC="" | |
2568 | else | |
2569 | case $cross_compiling:$ac_tool_warned in | |
2570 | yes:) | |
ec6a6fbe AK |
2571 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2573 | ac_tool_warned=yes ;; |
2574 | esac | |
2575 | CC=$ac_ct_CC | |
2576 | fi | |
ad6254c5 AK |
2577 | fi |
2578 | ||
2579 | fi | |
2580 | ||
2581 | ||
ec6a6fbe AK |
2582 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2584 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2585 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2586 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2587 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2588 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2589 | |
2590 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2591 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2592 | set X $ac_compile | |
2593 | ac_compiler=$2 | |
7a197a62 AK |
2594 | { (ac_try="$ac_compiler --version >&5" |
2595 | case "(($ac_try" in | |
2596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2597 | *) ac_try_echo=$ac_try;; | |
2598 | esac | |
ec6a6fbe AK |
2599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2600 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2601 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2602 | ac_status=$? |
ec6a6fbe | 2603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2604 | (exit $ac_status); } |
7a197a62 AK |
2605 | { (ac_try="$ac_compiler -v >&5" |
2606 | case "(($ac_try" in | |
2607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2608 | *) ac_try_echo=$ac_try;; | |
2609 | esac | |
ec6a6fbe AK |
2610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2611 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2612 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2613 | ac_status=$? |
ec6a6fbe | 2614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2615 | (exit $ac_status); } |
7a197a62 AK |
2616 | { (ac_try="$ac_compiler -V >&5" |
2617 | case "(($ac_try" in | |
2618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2619 | *) ac_try_echo=$ac_try;; | |
2620 | esac | |
ec6a6fbe AK |
2621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2622 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2623 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2624 | ac_status=$? |
ec6a6fbe | 2625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2626 | (exit $ac_status); } |
2627 | ||
2628 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2629 | /* confdefs.h. */ |
2630 | _ACEOF | |
2631 | cat confdefs.h >>conftest.$ac_ext | |
2632 | cat >>conftest.$ac_ext <<_ACEOF | |
2633 | /* end confdefs.h. */ | |
2634 | ||
2635 | int | |
2636 | main () | |
2637 | { | |
2638 | ||
2639 | ; | |
2640 | return 0; | |
2641 | } | |
2642 | _ACEOF | |
2643 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2644 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2645 | # Try to create an executable without -o first, disregard a.out. |
2646 | # It will help us diagnose broken compilers, and finding out an intuition | |
2647 | # of exeext. | |
ec6a6fbe AK |
2648 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2649 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2650 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2651 | ||
2652 | # The possible output files: | |
2653 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2654 | ||
7a197a62 AK |
2655 | ac_rmfiles= |
2656 | for ac_file in $ac_files | |
2657 | do | |
2658 | case $ac_file in | |
ec6a6fbe | 2659 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2660 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2661 | esac | |
2662 | done | |
2663 | rm -f $ac_rmfiles | |
2664 | ||
2665 | if { (ac_try="$ac_link_default" | |
2666 | case "(($ac_try" in | |
2667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2668 | *) ac_try_echo=$ac_try;; | |
2669 | esac | |
ec6a6fbe AK |
2670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2671 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2672 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2673 | ac_status=$? |
ec6a6fbe | 2674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2675 | (exit $ac_status); }; then |
7a197a62 AK |
2676 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2677 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2678 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2679 | # so that the user can short-circuit this test for compilers unknown to | |
2680 | # Autoconf. | |
25fbec5b | 2681 | for ac_file in $ac_files '' |
ad6254c5 AK |
2682 | do |
2683 | test -f "$ac_file" || continue | |
2684 | case $ac_file in | |
ec6a6fbe | 2685 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2686 | ;; |
ad6254c5 | 2687 | [ab].out ) |
8a2fc586 AK |
2688 | # We found the default executable, but exeext='' is most |
2689 | # certainly right. | |
2690 | break;; | |
ad6254c5 | 2691 | *.* ) |
7a197a62 AK |
2692 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2693 | then :; else | |
2694 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2695 | fi | |
2696 | # We set ac_cv_exeext here because the later test for it is not | |
2697 | # safe: cross compilers may not add the suffix if given an `-o' | |
2698 | # argument, so we may need to know it at that point already. | |
2699 | # Even if this section looks crufty: it has the advantage of | |
2700 | # actually working. | |
8a2fc586 | 2701 | break;; |
ad6254c5 | 2702 | * ) |
8a2fc586 | 2703 | break;; |
ad6254c5 AK |
2704 | esac |
2705 | done | |
7a197a62 AK |
2706 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2707 | ||
ad6254c5 | 2708 | else |
25fbec5b AK |
2709 | ac_file='' |
2710 | fi | |
2711 | ||
ec6a6fbe AK |
2712 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2713 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2714 | if test -z "$ac_file"; then |
ec6a6fbe | 2715 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2716 | sed 's/^/| /' conftest.$ac_ext >&5 |
2717 | ||
ec6a6fbe AK |
2718 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2720 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2721 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2722 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2723 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2724 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2725 | fi |
2726 | ||
2727 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2728 | |
7a197a62 | 2729 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2730 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2731 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2732 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2733 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2734 | # If not cross compiling, check that we can run a simple program. | |
2735 | if test "$cross_compiling" != yes; then | |
2736 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2737 | { (case "(($ac_try" in |
2738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2739 | *) ac_try_echo=$ac_try;; | |
2740 | esac | |
ec6a6fbe AK |
2741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2742 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2743 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2744 | ac_status=$? |
ec6a6fbe | 2745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2746 | (exit $ac_status); }; }; then |
2747 | cross_compiling=no | |
795ca3e5 | 2748 | else |
ad6254c5 AK |
2749 | if test "$cross_compiling" = maybe; then |
2750 | cross_compiling=yes | |
2751 | else | |
ec6a6fbe AK |
2752 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2754 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2755 | If you meant to cross compile, use \`--host'. |
2756 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2757 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2758 | If you meant to cross compile, use \`--host'. |
2759 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2760 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2761 | fi |
795ca3e5 | 2762 | fi |
80992638 | 2763 | fi |
ec6a6fbe AK |
2764 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2765 | $as_echo "yes" >&6; } | |
ad6254c5 | 2766 | |
ec6a6fbe | 2767 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2768 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2769 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2770 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2771 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2772 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2773 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2774 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2775 | |
ec6a6fbe AK |
2776 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2777 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2778 | if { (ac_try="$ac_link" |
2779 | case "(($ac_try" in | |
2780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2781 | *) ac_try_echo=$ac_try;; | |
2782 | esac | |
ec6a6fbe AK |
2783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2784 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2785 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2786 | ac_status=$? |
ec6a6fbe | 2787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2788 | (exit $ac_status); }; then |
2789 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2790 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2791 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2792 | # `rm'. | |
2793 | for ac_file in conftest.exe conftest conftest.*; do | |
2794 | test -f "$ac_file" || continue | |
2795 | case $ac_file in | |
ec6a6fbe | 2796 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2797 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2798 | break;; |
ad6254c5 AK |
2799 | * ) break;; |
2800 | esac | |
2801 | done | |
80992638 | 2802 | else |
ec6a6fbe AK |
2803 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2804 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2805 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2806 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2807 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2808 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2809 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2810 | fi |
2811 | ||
2812 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2814 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2815 | |
2816 | rm -f conftest.$ac_ext | |
2817 | EXEEXT=$ac_cv_exeext | |
2818 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2819 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2820 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2821 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2822 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2823 | else |
ad6254c5 | 2824 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2825 | /* confdefs.h. */ |
2826 | _ACEOF | |
2827 | cat confdefs.h >>conftest.$ac_ext | |
2828 | cat >>conftest.$ac_ext <<_ACEOF | |
2829 | /* end confdefs.h. */ | |
2830 | ||
2831 | int | |
2832 | main () | |
2833 | { | |
2834 | ||
2835 | ; | |
2836 | return 0; | |
2837 | } | |
2838 | _ACEOF | |
2839 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2840 | if { (ac_try="$ac_compile" |
2841 | case "(($ac_try" in | |
2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2843 | *) ac_try_echo=$ac_try;; | |
2844 | esac | |
ec6a6fbe AK |
2845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2846 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2847 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2848 | ac_status=$? |
ec6a6fbe | 2849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2850 | (exit $ac_status); }; then |
7a197a62 AK |
2851 | for ac_file in conftest.o conftest.obj conftest.*; do |
2852 | test -f "$ac_file" || continue; | |
ad6254c5 | 2853 | case $ac_file in |
ec6a6fbe | 2854 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2855 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2856 | break;; | |
2857 | esac | |
2858 | done | |
2859 | else | |
ec6a6fbe | 2860 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
2862 | ||
ec6a6fbe AK |
2863 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2865 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2866 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2867 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2868 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2869 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2870 | fi |
2871 | ||
2872 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2873 | fi | |
ec6a6fbe AK |
2874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2875 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2876 | OBJEXT=$ac_cv_objext |
2877 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2878 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2879 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2880 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2881 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2882 | else |
2883 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2884 | /* confdefs.h. */ |
2885 | _ACEOF | |
2886 | cat confdefs.h >>conftest.$ac_ext | |
2887 | cat >>conftest.$ac_ext <<_ACEOF | |
2888 | /* end confdefs.h. */ | |
2889 | ||
2890 | int | |
2891 | main () | |
2892 | { | |
2893 | #ifndef __GNUC__ | |
2894 | choke me | |
2895 | #endif | |
80992638 | 2896 | |
ad6254c5 AK |
2897 | ; |
2898 | return 0; | |
2899 | } | |
2900 | _ACEOF | |
2901 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2902 | if { (ac_try="$ac_compile" |
2903 | case "(($ac_try" in | |
2904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2905 | *) ac_try_echo=$ac_try;; | |
2906 | esac | |
ec6a6fbe AK |
2907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2908 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2909 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2910 | ac_status=$? |
8a2fc586 AK |
2911 | grep -v '^ *+' conftest.er1 >conftest.err |
2912 | rm -f conftest.er1 | |
2913 | cat conftest.err >&5 | |
ec6a6fbe | 2914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2915 | (exit $ac_status); } && { |
2916 | test -z "$ac_c_werror_flag" || | |
2917 | test ! -s conftest.err | |
2918 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2919 | ac_compiler_gnu=yes |
80992638 | 2920 | else |
ec6a6fbe | 2921 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2922 | sed 's/^/| /' conftest.$ac_ext >&5 |
2923 | ||
7a197a62 | 2924 | ac_compiler_gnu=no |
8106cdd5 | 2925 | fi |
7a197a62 AK |
2926 | |
2927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2928 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2929 | |
ad6254c5 | 2930 | fi |
ec6a6fbe AK |
2931 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2932 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2933 | if test $ac_compiler_gnu = yes; then | |
2934 | GCC=yes | |
2935 | else | |
2936 | GCC= | |
2937 | fi | |
ad6254c5 AK |
2938 | ac_test_CFLAGS=${CFLAGS+set} |
2939 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
2940 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2941 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 2942 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 2943 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2944 | else |
7a197a62 AK |
2945 | ac_save_c_werror_flag=$ac_c_werror_flag |
2946 | ac_c_werror_flag=yes | |
2947 | ac_cv_prog_cc_g=no | |
2948 | CFLAGS="-g" | |
2949 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2950 | /* confdefs.h. */ |
2951 | _ACEOF | |
2952 | cat confdefs.h >>conftest.$ac_ext | |
2953 | cat >>conftest.$ac_ext <<_ACEOF | |
2954 | /* end confdefs.h. */ | |
2955 | ||
2956 | int | |
2957 | main () | |
2958 | { | |
2959 | ||
2960 | ; | |
2961 | return 0; | |
2962 | } | |
2963 | _ACEOF | |
2964 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2965 | if { (ac_try="$ac_compile" |
2966 | case "(($ac_try" in | |
2967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2968 | *) ac_try_echo=$ac_try;; | |
2969 | esac | |
ec6a6fbe AK |
2970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2971 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2972 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2973 | ac_status=$? |
8a2fc586 AK |
2974 | grep -v '^ *+' conftest.er1 >conftest.err |
2975 | rm -f conftest.er1 | |
2976 | cat conftest.err >&5 | |
ec6a6fbe | 2977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2978 | (exit $ac_status); } && { |
2979 | test -z "$ac_c_werror_flag" || | |
2980 | test ! -s conftest.err | |
2981 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2982 | ac_cv_prog_cc_g=yes |
2983 | else | |
ec6a6fbe | 2984 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2985 | sed 's/^/| /' conftest.$ac_ext >&5 |
2986 | ||
2987 | CFLAGS="" | |
2988 | cat >conftest.$ac_ext <<_ACEOF | |
2989 | /* confdefs.h. */ | |
2990 | _ACEOF | |
2991 | cat confdefs.h >>conftest.$ac_ext | |
2992 | cat >>conftest.$ac_ext <<_ACEOF | |
2993 | /* end confdefs.h. */ | |
2994 | ||
2995 | int | |
2996 | main () | |
2997 | { | |
2998 | ||
2999 | ; | |
3000 | return 0; | |
3001 | } | |
3002 | _ACEOF | |
3003 | rm -f conftest.$ac_objext | |
3004 | if { (ac_try="$ac_compile" | |
3005 | case "(($ac_try" in | |
3006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3007 | *) ac_try_echo=$ac_try;; | |
3008 | esac | |
ec6a6fbe AK |
3009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3010 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3011 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3012 | ac_status=$? |
7a197a62 AK |
3013 | grep -v '^ *+' conftest.er1 >conftest.err |
3014 | rm -f conftest.er1 | |
3015 | cat conftest.err >&5 | |
ec6a6fbe | 3016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3017 | (exit $ac_status); } && { |
3018 | test -z "$ac_c_werror_flag" || | |
3019 | test ! -s conftest.err | |
3020 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3021 | : |
3022 | else | |
ec6a6fbe | 3023 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3024 | sed 's/^/| /' conftest.$ac_ext >&5 |
3025 | ||
3026 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3027 | CFLAGS="-g" | |
3028 | cat >conftest.$ac_ext <<_ACEOF | |
3029 | /* confdefs.h. */ | |
3030 | _ACEOF | |
3031 | cat confdefs.h >>conftest.$ac_ext | |
3032 | cat >>conftest.$ac_ext <<_ACEOF | |
3033 | /* end confdefs.h. */ | |
3034 | ||
3035 | int | |
3036 | main () | |
3037 | { | |
3038 | ||
3039 | ; | |
3040 | return 0; | |
3041 | } | |
3042 | _ACEOF | |
3043 | rm -f conftest.$ac_objext | |
3044 | if { (ac_try="$ac_compile" | |
3045 | case "(($ac_try" in | |
3046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3047 | *) ac_try_echo=$ac_try;; | |
3048 | esac | |
ec6a6fbe AK |
3049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3050 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3051 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3052 | ac_status=$? |
7a197a62 AK |
3053 | grep -v '^ *+' conftest.er1 >conftest.err |
3054 | rm -f conftest.er1 | |
3055 | cat conftest.err >&5 | |
ec6a6fbe | 3056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3057 | (exit $ac_status); } && { |
3058 | test -z "$ac_c_werror_flag" || | |
3059 | test ! -s conftest.err | |
3060 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3061 | ac_cv_prog_cc_g=yes |
3062 | else | |
ec6a6fbe | 3063 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3064 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3065 | |
7a197a62 AK |
3066 | |
3067 | fi | |
3068 | ||
3069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3070 | fi | |
3071 | ||
3072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3073 | fi |
7a197a62 AK |
3074 | |
3075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3076 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3077 | fi |
ec6a6fbe AK |
3078 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3079 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3080 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3081 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3082 | elif test $ac_cv_prog_cc_g = yes; then |
3083 | if test "$GCC" = yes; then | |
3084 | CFLAGS="-g -O2" | |
3085 | else | |
3086 | CFLAGS="-g" | |
3087 | fi | |
3088 | else | |
3089 | if test "$GCC" = yes; then | |
3090 | CFLAGS="-O2" | |
3091 | else | |
3092 | CFLAGS= | |
3093 | fi | |
3094 | fi | |
ec6a6fbe AK |
3095 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3096 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3097 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3098 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3099 | else |
7a197a62 | 3100 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3101 | ac_save_CC=$CC |
3102 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3103 | /* confdefs.h. */ |
3104 | _ACEOF | |
3105 | cat confdefs.h >>conftest.$ac_ext | |
3106 | cat >>conftest.$ac_ext <<_ACEOF | |
3107 | /* end confdefs.h. */ | |
3108 | #include <stdarg.h> | |
3109 | #include <stdio.h> | |
3110 | #include <sys/types.h> | |
3111 | #include <sys/stat.h> | |
3112 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3113 | struct buf { int x; }; | |
3114 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3115 | static char *e (p, i) | |
3116 | char **p; | |
3117 | int i; | |
3118 | { | |
3119 | return p[i]; | |
3120 | } | |
3121 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3122 | { | |
3123 | char *s; | |
3124 | va_list v; | |
3125 | va_start (v,p); | |
3126 | s = g (p, va_arg (v,int)); | |
3127 | va_end (v); | |
3128 | return s; | |
3129 | } | |
8a2fc586 AK |
3130 | |
3131 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3132 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3133 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3134 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3135 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3136 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3137 | that's true only with -std. */ |
8a2fc586 AK |
3138 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3139 | ||
7a197a62 AK |
3140 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3141 | inside strings and character constants. */ | |
3142 | #define FOO(x) 'x' | |
3143 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3144 | ||
ad6254c5 AK |
3145 | int test (int i, double x); |
3146 | struct s1 {int (*f) (int a);}; | |
3147 | struct s2 {int (*f) (double a);}; | |
3148 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3149 | int argc; | |
3150 | char **argv; | |
3151 | int | |
3152 | main () | |
3153 | { | |
3154 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3155 | ; | |
3156 | return 0; | |
3157 | } | |
3158 | _ACEOF | |
7a197a62 AK |
3159 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3160 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3161 | do |
3162 | CC="$ac_save_CC $ac_arg" | |
3163 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3164 | if { (ac_try="$ac_compile" |
3165 | case "(($ac_try" in | |
3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3167 | *) ac_try_echo=$ac_try;; | |
3168 | esac | |
ec6a6fbe AK |
3169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3170 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3171 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3172 | ac_status=$? |
8a2fc586 AK |
3173 | grep -v '^ *+' conftest.er1 >conftest.err |
3174 | rm -f conftest.er1 | |
3175 | cat conftest.err >&5 | |
ec6a6fbe | 3176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3177 | (exit $ac_status); } && { |
3178 | test -z "$ac_c_werror_flag" || | |
3179 | test ! -s conftest.err | |
3180 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3181 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3182 | else |
ec6a6fbe | 3183 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 |
3185 | ||
7a197a62 | 3186 | |
ad6254c5 | 3187 | fi |
7a197a62 AK |
3188 | |
3189 | rm -f core conftest.err conftest.$ac_objext | |
3190 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3191 | done |
7a197a62 | 3192 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3193 | CC=$ac_save_CC |
3194 | ||
3195 | fi | |
7a197a62 AK |
3196 | # AC_CACHE_VAL |
3197 | case "x$ac_cv_prog_cc_c89" in | |
3198 | x) | |
ec6a6fbe AK |
3199 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3200 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3201 | xno) |
ec6a6fbe AK |
3202 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3203 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3204 | *) |
7a197a62 | 3205 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3206 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3207 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3208 | esac |
3209 | ||
ad6254c5 | 3210 | |
ad6254c5 AK |
3211 | ac_ext=c |
3212 | ac_cpp='$CPP $CPPFLAGS' | |
3213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3216 | |
d0191583 JM |
3217 | |
3218 | ||
3219 | ac_ext=c | |
3220 | ac_cpp='$CPP $CPPFLAGS' | |
3221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3224 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3225 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3226 | # On Suns, sometimes $CPP names a directory. |
3227 | if test -n "$CPP" && test -d "$CPP"; then | |
3228 | CPP= | |
3229 | fi | |
3230 | if test -z "$CPP"; then | |
3231 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3232 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3233 | else |
d0191583 JM |
3234 | # Double quotes because CPP needs to be expanded |
3235 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3236 | do | |
3237 | ac_preproc_ok=false | |
3238 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3239 | do |
d0191583 JM |
3240 | # Use a header file that comes with gcc, so configuring glibc |
3241 | # with a fresh cross-compiler works. | |
3242 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3243 | # <limits.h> exists even on freestanding compilers. | |
3244 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3245 | # not just through cpp. "Syntax error" is here to catch this case. | |
3246 | cat >conftest.$ac_ext <<_ACEOF | |
3247 | /* confdefs.h. */ | |
3248 | _ACEOF | |
3249 | cat confdefs.h >>conftest.$ac_ext | |
3250 | cat >>conftest.$ac_ext <<_ACEOF | |
3251 | /* end confdefs.h. */ | |
3252 | #ifdef __STDC__ | |
3253 | # include <limits.h> | |
3254 | #else | |
3255 | # include <assert.h> | |
3256 | #endif | |
3257 | Syntax error | |
3258 | _ACEOF | |
3259 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3260 | case "(($ac_try" in | |
3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3262 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3263 | esac |
ec6a6fbe AK |
3264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3265 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3266 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3267 | ac_status=$? | |
3268 | grep -v '^ *+' conftest.er1 >conftest.err | |
3269 | rm -f conftest.er1 | |
3270 | cat conftest.err >&5 | |
ec6a6fbe | 3271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3272 | (exit $ac_status); } >/dev/null && { |
3273 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3274 | test ! -s conftest.err | |
3275 | }; then | |
3276 | : | |
3277 | else | |
ec6a6fbe | 3278 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3279 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3280 | |
d0191583 JM |
3281 | # Broken: fails on valid input. |
3282 | continue | |
795ca3e5 | 3283 | fi |
795ca3e5 | 3284 | |
d0191583 | 3285 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3286 | |
d0191583 JM |
3287 | # OK, works on sane cases. Now check whether nonexistent headers |
3288 | # can be detected and how. | |
3289 | cat >conftest.$ac_ext <<_ACEOF | |
3290 | /* confdefs.h. */ | |
3291 | _ACEOF | |
3292 | cat confdefs.h >>conftest.$ac_ext | |
3293 | cat >>conftest.$ac_ext <<_ACEOF | |
3294 | /* end confdefs.h. */ | |
3295 | #include <ac_nonexistent.h> | |
3296 | _ACEOF | |
3297 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3298 | case "(($ac_try" in | |
3299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3300 | *) ac_try_echo=$ac_try;; | |
3301 | esac | |
ec6a6fbe AK |
3302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3303 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3304 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3305 | ac_status=$? | |
3306 | grep -v '^ *+' conftest.er1 >conftest.err | |
3307 | rm -f conftest.er1 | |
3308 | cat conftest.err >&5 | |
ec6a6fbe | 3309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3310 | (exit $ac_status); } >/dev/null && { |
3311 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3312 | test ! -s conftest.err | |
3313 | }; then | |
3314 | # Broken: success on invalid input. | |
3315 | continue | |
3316 | else | |
ec6a6fbe | 3317 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3318 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3319 | |
d0191583 JM |
3320 | # Passes both tests. |
3321 | ac_preproc_ok=: | |
3322 | break | |
3323 | fi | |
795ca3e5 | 3324 | |
d0191583 JM |
3325 | rm -f conftest.err conftest.$ac_ext |
3326 | ||
3327 | done | |
3328 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3329 | rm -f conftest.err conftest.$ac_ext | |
3330 | if $ac_preproc_ok; then | |
3331 | break | |
795ca3e5 AK |
3332 | fi |
3333 | ||
d0191583 JM |
3334 | done |
3335 | ac_cv_prog_CPP=$CPP | |
3336 | ||
3337 | fi | |
3338 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3339 | else |
d0191583 JM |
3340 | ac_cv_prog_CPP=$CPP |
3341 | fi | |
ec6a6fbe AK |
3342 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3343 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3344 | ac_preproc_ok=false |
3345 | for ac_c_preproc_warn_flag in '' yes | |
3346 | do | |
3347 | # Use a header file that comes with gcc, so configuring glibc | |
3348 | # with a fresh cross-compiler works. | |
3349 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3350 | # <limits.h> exists even on freestanding compilers. | |
3351 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3352 | # not just through cpp. "Syntax error" is here to catch this case. | |
3353 | cat >conftest.$ac_ext <<_ACEOF | |
3354 | /* confdefs.h. */ | |
ad6254c5 | 3355 | _ACEOF |
d0191583 JM |
3356 | cat confdefs.h >>conftest.$ac_ext |
3357 | cat >>conftest.$ac_ext <<_ACEOF | |
3358 | /* end confdefs.h. */ | |
3359 | #ifdef __STDC__ | |
3360 | # include <limits.h> | |
3361 | #else | |
3362 | # include <assert.h> | |
3363 | #endif | |
3364 | Syntax error | |
3365 | _ACEOF | |
3366 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3367 | case "(($ac_try" in | |
3368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3369 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3370 | esac |
ec6a6fbe AK |
3371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3372 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3373 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3374 | ac_status=$? | |
3375 | grep -v '^ *+' conftest.er1 >conftest.err | |
3376 | rm -f conftest.er1 | |
3377 | cat conftest.err >&5 | |
ec6a6fbe | 3378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3379 | (exit $ac_status); } >/dev/null && { |
3380 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3381 | test ! -s conftest.err | |
3382 | }; then | |
3383 | : | |
795ca3e5 | 3384 | else |
ec6a6fbe | 3385 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3386 | sed 's/^/| /' conftest.$ac_ext >&5 |
3387 | ||
3388 | # Broken: fails on valid input. | |
3389 | continue | |
795ca3e5 AK |
3390 | fi |
3391 | ||
d0191583 JM |
3392 | rm -f conftest.err conftest.$ac_ext |
3393 | ||
3394 | # OK, works on sane cases. Now check whether nonexistent headers | |
3395 | # can be detected and how. | |
3396 | cat >conftest.$ac_ext <<_ACEOF | |
3397 | /* confdefs.h. */ | |
3398 | _ACEOF | |
3399 | cat confdefs.h >>conftest.$ac_ext | |
3400 | cat >>conftest.$ac_ext <<_ACEOF | |
3401 | /* end confdefs.h. */ | |
3402 | #include <ac_nonexistent.h> | |
3403 | _ACEOF | |
3404 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3405 | case "(($ac_try" in | |
3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3407 | *) ac_try_echo=$ac_try;; | |
3408 | esac | |
ec6a6fbe AK |
3409 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3410 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3412 | ac_status=$? | |
3413 | grep -v '^ *+' conftest.er1 >conftest.err | |
3414 | rm -f conftest.er1 | |
3415 | cat conftest.err >&5 | |
ec6a6fbe | 3416 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3417 | (exit $ac_status); } >/dev/null && { |
3418 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3419 | test ! -s conftest.err | |
3420 | }; then | |
3421 | # Broken: success on invalid input. | |
3422 | continue | |
795ca3e5 | 3423 | else |
ec6a6fbe | 3424 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3425 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3426 | |
d0191583 JM |
3427 | # Passes both tests. |
3428 | ac_preproc_ok=: | |
3429 | break | |
795ca3e5 | 3430 | fi |
d0191583 JM |
3431 | |
3432 | rm -f conftest.err conftest.$ac_ext | |
3433 | ||
3434 | done | |
3435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3436 | rm -f conftest.err conftest.$ac_ext | |
3437 | if $ac_preproc_ok; then | |
3438 | : | |
8106cdd5 | 3439 | else |
ec6a6fbe AK |
3440 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3442 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3443 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3444 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3445 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3446 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3447 | fi |
3448 | ||
d0191583 JM |
3449 | ac_ext=c |
3450 | ac_cpp='$CPP $CPPFLAGS' | |
3451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3454 | ||
7a197a62 | 3455 | |
ec6a6fbe AK |
3456 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3457 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3458 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3459 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3460 | else |
ec6a6fbe | 3461 | if test -z "$GREP"; then |
d0191583 | 3462 | ac_path_GREP_found=false |
ec6a6fbe AK |
3463 | # Loop through the user's path and test for each of PROGNAME-LIST |
3464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3465 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3466 | do |
3467 | IFS=$as_save_IFS | |
3468 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3469 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3470 | for ac_exec_ext in '' $ac_executable_extensions; do |
3471 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3472 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3473 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3474 | # Check for GNU $ac_path_GREP |
3475 | case `"$ac_path_GREP" --version 2>&1` in | |
3476 | *GNU*) | |
3477 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3478 | *) | |
3479 | ac_count=0 | |
ec6a6fbe | 3480 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3481 | while : |
3482 | do | |
3483 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3484 | mv "conftest.tmp" "conftest.in" | |
3485 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3486 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3487 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3488 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3489 | ac_count=`expr $ac_count + 1` | |
3490 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3491 | # Best one so far, save it but keep looking for a better one | |
3492 | ac_cv_path_GREP="$ac_path_GREP" | |
3493 | ac_path_GREP_max=$ac_count | |
3494 | fi | |
3495 | # 10*(2^10) chars as input seems more than enough | |
3496 | test $ac_count -gt 10 && break | |
3497 | done | |
3498 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3499 | esac | |
3500 | ||
ec6a6fbe AK |
3501 | $ac_path_GREP_found && break 3 |
3502 | done | |
d0191583 | 3503 | done |
ad6254c5 | 3504 | done |
7a197a62 | 3505 | IFS=$as_save_IFS |
ec6a6fbe AK |
3506 | if test -z "$ac_cv_path_GREP"; then |
3507 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3508 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3509 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3510 | fi |
80992638 | 3511 | else |
d0191583 | 3512 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3513 | fi |
8106cdd5 | 3514 | |
80992638 | 3515 | fi |
ec6a6fbe AK |
3516 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3517 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3518 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3519 | |
d0191583 | 3520 | |
ec6a6fbe AK |
3521 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3522 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3523 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3524 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3525 | else |
d0191583 JM |
3526 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3527 | then ac_cv_path_EGREP="$GREP -E" | |
3528 | else | |
ec6a6fbe | 3529 | if test -z "$EGREP"; then |
d0191583 | 3530 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3531 | # Loop through the user's path and test for each of PROGNAME-LIST |
3532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3533 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3534 | do |
3535 | IFS=$as_save_IFS | |
3536 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3537 | for ac_prog in egrep; do |
ec6a6fbe AK |
3538 | for ac_exec_ext in '' $ac_executable_extensions; do |
3539 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3540 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3541 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3542 | # Check for GNU $ac_path_EGREP |
3543 | case `"$ac_path_EGREP" --version 2>&1` in | |
3544 | *GNU*) | |
3545 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3546 | *) | |
3547 | ac_count=0 | |
ec6a6fbe | 3548 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3549 | while : |
3550 | do | |
3551 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3552 | mv "conftest.tmp" "conftest.in" | |
3553 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3554 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3555 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3556 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3557 | ac_count=`expr $ac_count + 1` | |
3558 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3559 | # Best one so far, save it but keep looking for a better one | |
3560 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3561 | ac_path_EGREP_max=$ac_count | |
3562 | fi | |
3563 | # 10*(2^10) chars as input seems more than enough | |
3564 | test $ac_count -gt 10 && break | |
3565 | done | |
3566 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3567 | esac |
8a2fc586 | 3568 | |
ec6a6fbe AK |
3569 | $ac_path_EGREP_found && break 3 |
3570 | done | |
d0191583 | 3571 | done |
8a2fc586 | 3572 | done |
7a197a62 | 3573 | IFS=$as_save_IFS |
ec6a6fbe AK |
3574 | if test -z "$ac_cv_path_EGREP"; then |
3575 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3576 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3577 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3578 | fi |
d0191583 JM |
3579 | else |
3580 | ac_cv_path_EGREP=$EGREP | |
3581 | fi | |
ad6254c5 | 3582 | |
d0191583 JM |
3583 | fi |
3584 | fi | |
ec6a6fbe AK |
3585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3586 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3587 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3588 | |
3589 | ||
d0191583 | 3590 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3591 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3592 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3593 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3594 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3595 | else |
d0191583 | 3596 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3597 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3598 | /* confdefs.h. */ |
3599 | _ACEOF | |
3600 | cat confdefs.h >>conftest.$ac_ext | |
3601 | cat >>conftest.$ac_ext <<_ACEOF | |
3602 | /* end confdefs.h. */ | |
d0191583 JM |
3603 | #include <sgtty.h> |
3604 | Autoconf TIOCGETP | |
ad6254c5 | 3605 | _ACEOF |
d0191583 JM |
3606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3607 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3608 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3609 | else |
d0191583 | 3610 | ac_cv_prog_gcc_traditional=no |
80992638 | 3611 | fi |
d0191583 | 3612 | rm -f conftest* |
ad6254c5 | 3613 | |
8106cdd5 | 3614 | |
d0191583 JM |
3615 | if test $ac_cv_prog_gcc_traditional = no; then |
3616 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3617 | /* confdefs.h. */ |
3618 | _ACEOF | |
3619 | cat confdefs.h >>conftest.$ac_ext | |
3620 | cat >>conftest.$ac_ext <<_ACEOF | |
3621 | /* end confdefs.h. */ | |
d0191583 JM |
3622 | #include <termio.h> |
3623 | Autoconf TCGETA | |
ad6254c5 | 3624 | _ACEOF |
d0191583 JM |
3625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3626 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3627 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3628 | fi |
d0191583 | 3629 | rm -f conftest* |
795ca3e5 | 3630 | |
d0191583 | 3631 | fi |
795ca3e5 | 3632 | fi |
ec6a6fbe AK |
3633 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3634 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3635 | if test $ac_cv_prog_gcc_traditional = yes; then |
3636 | CC="$CC -traditional" | |
3637 | fi | |
795ca3e5 AK |
3638 | fi |
3639 | ||
d0191583 JM |
3640 | # Find a good install program. We prefer a C program (faster), |
3641 | # so one script is as good as another. But avoid the broken or | |
3642 | # incompatible versions: | |
3643 | # SysV /etc/install, /usr/sbin/install | |
3644 | # SunOS /usr/etc/install | |
3645 | # IRIX /sbin/install | |
3646 | # AIX /bin/install | |
3647 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3648 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3649 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3650 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3651 | # OS/2's system install, which has a completely different semantic | |
3652 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3653 | # Reject install programs that cannot install multiple files. |
3654 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3655 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3656 | if test -z "$INSTALL"; then |
3657 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3658 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3659 | else |
d0191583 JM |
3660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3661 | for as_dir in $PATH | |
3662 | do | |
3663 | IFS=$as_save_IFS | |
3664 | test -z "$as_dir" && as_dir=. | |
3665 | # Account for people who put trailing slashes in PATH elements. | |
3666 | case $as_dir/ in | |
3667 | ./ | .// | /cC/* | \ | |
3668 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3669 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3670 | /usr/ucb/* ) ;; | |
3671 | *) | |
3672 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3673 | # Don't use installbsd from OSF since it installs stuff as root | |
3674 | # by default. | |
3675 | for ac_prog in ginstall scoinst install; do | |
3676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3677 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3678 | if test $ac_prog = install && | |
3679 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3680 | # AIX install. It has an incompatible calling convention. | |
3681 | : | |
3682 | elif test $ac_prog = install && | |
3683 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3684 | # program-specific install script used by HP pwplus--don't use. | |
3685 | : | |
3686 | else | |
ec6a6fbe AK |
3687 | rm -rf conftest.one conftest.two conftest.dir |
3688 | echo one > conftest.one | |
3689 | echo two > conftest.two | |
3690 | mkdir conftest.dir | |
3691 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3692 | test -s conftest.one && test -s conftest.two && | |
3693 | test -s conftest.dir/conftest.one && | |
3694 | test -s conftest.dir/conftest.two | |
3695 | then | |
3696 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3697 | break 3 | |
3698 | fi | |
d0191583 JM |
3699 | fi |
3700 | fi | |
3701 | done | |
3702 | done | |
3703 | ;; | |
3704 | esac | |
ec6a6fbe | 3705 | |
d0191583 JM |
3706 | done |
3707 | IFS=$as_save_IFS | |
80992638 | 3708 | |
ec6a6fbe | 3709 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3710 | |
3711 | fi | |
3712 | if test "${ac_cv_path_install+set}" = set; then | |
3713 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3714 | else |
d0191583 JM |
3715 | # As a last resort, use the slow shell script. Don't cache a |
3716 | # value for INSTALL within a source directory, because that will | |
3717 | # break other packages using the cache if that directory is | |
3718 | # removed, or if the value is a relative name. | |
3719 | INSTALL=$ac_install_sh | |
7a197a62 | 3720 | fi |
d0191583 | 3721 | fi |
ec6a6fbe AK |
3722 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3723 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3724 | |
d0191583 JM |
3725 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3726 | # It thinks the first close brace ends the variable substitution. | |
3727 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3728 | |
d0191583 | 3729 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3730 | |
d0191583 JM |
3731 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3732 | ||
ec6a6fbe AK |
3733 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3734 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3735 | LN_S=$as_ln_s |
3736 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3737 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3738 | $as_echo "yes" >&6; } | |
d0191583 | 3739 | else |
ec6a6fbe AK |
3740 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3741 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3742 | fi |
d0191583 | 3743 | |
ec6a6fbe AK |
3744 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3745 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3746 | set x ${MAKE-make} | |
3747 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3748 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3749 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3750 | else |
d0191583 JM |
3751 | cat >conftest.make <<\_ACEOF |
3752 | SHELL = /bin/sh | |
3753 | all: | |
3754 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3755 | _ACEOF | |
3756 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3757 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3758 | *@@@%%%=?*=@@@%%%*) | |
3759 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3760 | *) | |
3761 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3762 | esac | |
3763 | rm -f conftest.make | |
ad6254c5 | 3764 | fi |
d0191583 | 3765 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3766 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3767 | $as_echo "yes" >&6; } | |
d0191583 JM |
3768 | SET_MAKE= |
3769 | else | |
ec6a6fbe AK |
3770 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3771 | $as_echo "no" >&6; } | |
d0191583 | 3772 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3773 | fi |
8106cdd5 | 3774 | |
ec6a6fbe AK |
3775 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3776 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3777 | if test -z "$MKDIR_P"; then |
3778 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3779 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3780 | else |
3781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3782 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3783 | do | |
3784 | IFS=$as_save_IFS | |
3785 | test -z "$as_dir" && as_dir=. | |
3786 | for ac_prog in mkdir gmkdir; do | |
3787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3788 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3789 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3790 | 'mkdir (GNU coreutils) '* | \ | |
3791 | 'mkdir (coreutils) '* | \ | |
3792 | 'mkdir (fileutils) '4.1*) | |
3793 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3794 | break 3;; | |
3795 | esac | |
3796 | done | |
3797 | done | |
3798 | done | |
3799 | IFS=$as_save_IFS | |
3800 | ||
3801 | fi | |
3802 | ||
3803 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3804 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3805 | else | |
3806 | # As a last resort, use the slow shell script. Don't cache a | |
3807 | # value for MKDIR_P within a source directory, because that will | |
3808 | # break other packages using the cache if that directory is | |
3809 | # removed, or if the value is a relative name. | |
3810 | test -d ./--version && rmdir ./--version | |
3811 | MKDIR_P="$ac_install_sh -d" | |
3812 | fi | |
3813 | fi | |
ec6a6fbe AK |
3814 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3815 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3816 | |
d0191583 JM |
3817 | if test -n "$ac_tool_prefix"; then |
3818 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3819 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3820 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3821 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3822 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3823 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3824 | else |
3825 | if test -n "$RANLIB"; then | |
3826 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3827 | else | |
3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3829 | for as_dir in $PATH | |
3830 | do | |
3831 | IFS=$as_save_IFS | |
3832 | test -z "$as_dir" && as_dir=. | |
3833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3835 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3836 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3837 | break 2 |
3838 | fi | |
3839 | done | |
3840 | done | |
3841 | IFS=$as_save_IFS | |
8106cdd5 | 3842 | |
795ca3e5 | 3843 | fi |
d0191583 JM |
3844 | fi |
3845 | RANLIB=$ac_cv_prog_RANLIB | |
3846 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3847 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3848 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3849 | else |
ec6a6fbe AK |
3850 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3851 | $as_echo "no" >&6; } | |
d0191583 JM |
3852 | fi |
3853 | ||
8106cdd5 | 3854 | |
ad6254c5 | 3855 | fi |
d0191583 JM |
3856 | if test -z "$ac_cv_prog_RANLIB"; then |
3857 | ac_ct_RANLIB=$RANLIB | |
3858 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3859 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3860 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3861 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3862 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3863 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3864 | else |
d0191583 JM |
3865 | if test -n "$ac_ct_RANLIB"; then |
3866 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3867 | else | |
3868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3869 | for as_dir in $PATH | |
8106cdd5 | 3870 | do |
d0191583 JM |
3871 | IFS=$as_save_IFS |
3872 | test -z "$as_dir" && as_dir=. | |
3873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3875 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3876 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3877 | break 2 |
3878 | fi | |
3879 | done | |
3880 | done | |
3881 | IFS=$as_save_IFS | |
3882 | ||
3883 | fi | |
3884 | fi | |
3885 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3886 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3887 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3888 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3889 | else |
ec6a6fbe AK |
3890 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3891 | $as_echo "no" >&6; } | |
d0191583 | 3892 | fi |
ad6254c5 | 3893 | |
d0191583 JM |
3894 | if test "x$ac_ct_RANLIB" = x; then |
3895 | RANLIB=":" | |
3896 | else | |
3897 | case $cross_compiling:$ac_tool_warned in | |
3898 | yes:) | |
ec6a6fbe AK |
3899 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3900 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3901 | ac_tool_warned=yes ;; |
3902 | esac | |
3903 | RANLIB=$ac_ct_RANLIB | |
3904 | fi | |
3905 | else | |
3906 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3907 | fi |
7a197a62 | 3908 | |
d0191583 JM |
3909 | # Extract the first word of "cflow", so it can be a program name with args. |
3910 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3911 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3912 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3913 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3914 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3915 | else |
3916 | case $CFLOW_CMD in | |
3917 | [\\/]* | ?:[\\/]*) | |
3918 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3919 | ;; | |
3920 | *) | |
3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3922 | for as_dir in $PATH | |
3923 | do | |
3924 | IFS=$as_save_IFS | |
3925 | test -z "$as_dir" && as_dir=. | |
3926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3928 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3929 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3930 | break 2 |
3931 | fi | |
3932 | done | |
3933 | done | |
3934 | IFS=$as_save_IFS | |
ad6254c5 | 3935 | |
d0191583 | 3936 | ;; |
7a197a62 | 3937 | esac |
d0191583 JM |
3938 | fi |
3939 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3940 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
3941 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3942 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 3943 | else |
ec6a6fbe AK |
3944 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3945 | $as_echo "no" >&6; } | |
795ca3e5 | 3946 | fi |
7a197a62 | 3947 | |
ad6254c5 | 3948 | |
d0191583 JM |
3949 | # Extract the first word of "cscope", so it can be a program name with args. |
3950 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
3951 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3952 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3953 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 3954 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3955 | else |
3956 | case $CSCOPE_CMD in | |
3957 | [\\/]* | ?:[\\/]*) | |
3958 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3959 | ;; | |
3960 | *) | |
3961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3962 | for as_dir in $PATH | |
3963 | do | |
3964 | IFS=$as_save_IFS | |
3965 | test -z "$as_dir" && as_dir=. | |
3966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3968 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3969 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3970 | break 2 |
3971 | fi | |
795ca3e5 | 3972 | done |
d0191583 JM |
3973 | done |
3974 | IFS=$as_save_IFS | |
795ca3e5 | 3975 | |
d0191583 JM |
3976 | ;; |
3977 | esac | |
ad6254c5 | 3978 | fi |
d0191583 JM |
3979 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3980 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
3981 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3982 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3983 | else |
ec6a6fbe AK |
3984 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3985 | $as_echo "no" >&6; } | |
795ca3e5 | 3986 | fi |
ad6254c5 | 3987 | |
7a197a62 | 3988 | |
ad6254c5 | 3989 | |
d0191583 JM |
3990 | ################################################################################ |
3991 | ||
3992 | ||
3993 | ||
3994 | ||
3995 | ||
3996 | ac_header_dirent=no | |
3997 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
3998 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3999 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4000 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4002 | $as_echo_n "(cached) " >&6 |
d0191583 | 4003 | else |
ad6254c5 | 4004 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4005 | /* confdefs.h. */ |
4006 | _ACEOF | |
4007 | cat confdefs.h >>conftest.$ac_ext | |
4008 | cat >>conftest.$ac_ext <<_ACEOF | |
4009 | /* end confdefs.h. */ | |
d0191583 JM |
4010 | #include <sys/types.h> |
4011 | #include <$ac_hdr> | |
4012 | ||
4013 | int | |
4014 | main () | |
4015 | { | |
4016 | if ((DIR *) 0) | |
4017 | return 0; | |
4018 | ; | |
4019 | return 0; | |
4020 | } | |
ad6254c5 | 4021 | _ACEOF |
d0191583 JM |
4022 | rm -f conftest.$ac_objext |
4023 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4024 | case "(($ac_try" in |
4025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4026 | *) ac_try_echo=$ac_try;; | |
4027 | esac | |
ec6a6fbe AK |
4028 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4029 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4030 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4031 | ac_status=$? |
4032 | grep -v '^ *+' conftest.er1 >conftest.err | |
4033 | rm -f conftest.er1 | |
4034 | cat conftest.err >&5 | |
ec6a6fbe | 4035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4036 | (exit $ac_status); } && { |
4037 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4038 | test ! -s conftest.err |
d0191583 JM |
4039 | } && test -s conftest.$ac_objext; then |
4040 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4041 | else |
ec6a6fbe | 4042 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4043 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4044 | |
d0191583 | 4045 | eval "$as_ac_Header=no" |
795ca3e5 | 4046 | fi |
7a197a62 | 4047 | |
d0191583 | 4048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4049 | fi |
ec6a6fbe AK |
4050 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4051 | $as_echo "$as_val"'` | |
4052 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4053 | $as_echo "$ac_res" >&6; } | |
4054 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4055 | $as_echo "$as_val"'` | |
4056 | if test "x$as_val" = x""yes; then | |
d0191583 | 4057 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4058 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4059 | _ACEOF |
795ca3e5 | 4060 | |
d0191583 JM |
4061 | ac_header_dirent=$ac_hdr; break |
4062 | fi | |
ad6254c5 | 4063 | |
d0191583 JM |
4064 | done |
4065 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4066 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4067 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4068 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4069 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4070 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4071 | else |
d0191583 JM |
4072 | ac_func_search_save_LIBS=$LIBS |
4073 | cat >conftest.$ac_ext <<_ACEOF | |
4074 | /* confdefs.h. */ | |
4075 | _ACEOF | |
4076 | cat confdefs.h >>conftest.$ac_ext | |
4077 | cat >>conftest.$ac_ext <<_ACEOF | |
4078 | /* end confdefs.h. */ | |
ad6254c5 | 4079 | |
d0191583 JM |
4080 | /* Override any GCC internal prototype to avoid an error. |
4081 | Use char because int might match the return type of a GCC | |
4082 | builtin and then its argument prototype would still apply. */ | |
4083 | #ifdef __cplusplus | |
4084 | extern "C" | |
4085 | #endif | |
4086 | char opendir (); | |
4087 | int | |
4088 | main () | |
4089 | { | |
4090 | return opendir (); | |
4091 | ; | |
4092 | return 0; | |
4093 | } | |
4094 | _ACEOF | |
4095 | for ac_lib in '' dir; do | |
4096 | if test -z "$ac_lib"; then | |
4097 | ac_res="none required" | |
4098 | else | |
4099 | ac_res=-l$ac_lib | |
4100 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4101 | fi | |
4102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4103 | if { (ac_try="$ac_link" | |
4104 | case "(($ac_try" in | |
4105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4106 | *) ac_try_echo=$ac_try;; | |
4107 | esac | |
ec6a6fbe AK |
4108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4109 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4110 | (eval "$ac_link") 2>conftest.er1 |
4111 | ac_status=$? | |
4112 | grep -v '^ *+' conftest.er1 >conftest.err | |
4113 | rm -f conftest.er1 | |
4114 | cat conftest.err >&5 | |
ec6a6fbe | 4115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4116 | (exit $ac_status); } && { |
4117 | test -z "$ac_c_werror_flag" || | |
4118 | test ! -s conftest.err | |
ec6a6fbe AK |
4119 | } && test -s conftest$ac_exeext && { |
4120 | test "$cross_compiling" = yes || | |
4121 | $as_test_x conftest$ac_exeext | |
4122 | }; then | |
d0191583 JM |
4123 | ac_cv_search_opendir=$ac_res |
4124 | else | |
ec6a6fbe | 4125 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4126 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4127 | |
ad6254c5 | 4128 | |
795ca3e5 | 4129 | fi |
ad6254c5 | 4130 | |
ec6a6fbe | 4131 | rm -rf conftest.dSYM |
d0191583 JM |
4132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4133 | conftest$ac_exeext | |
4134 | if test "${ac_cv_search_opendir+set}" = set; then | |
4135 | break | |
7a197a62 | 4136 | fi |
d0191583 JM |
4137 | done |
4138 | if test "${ac_cv_search_opendir+set}" = set; then | |
4139 | : | |
7a197a62 | 4140 | else |
d0191583 | 4141 | ac_cv_search_opendir=no |
7a197a62 | 4142 | fi |
d0191583 JM |
4143 | rm conftest.$ac_ext |
4144 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4145 | fi |
ec6a6fbe AK |
4146 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4147 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4148 | ac_res=$ac_cv_search_opendir |
4149 | if test "$ac_res" != no; then | |
4150 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4151 | |
d0191583 | 4152 | fi |
7a197a62 | 4153 | |
7a197a62 | 4154 | else |
ec6a6fbe AK |
4155 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4156 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4157 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4158 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4159 | else |
d0191583 JM |
4160 | ac_func_search_save_LIBS=$LIBS |
4161 | cat >conftest.$ac_ext <<_ACEOF | |
4162 | /* confdefs.h. */ | |
4163 | _ACEOF | |
4164 | cat confdefs.h >>conftest.$ac_ext | |
4165 | cat >>conftest.$ac_ext <<_ACEOF | |
4166 | /* end confdefs.h. */ | |
7a197a62 | 4167 | |
d0191583 JM |
4168 | /* Override any GCC internal prototype to avoid an error. |
4169 | Use char because int might match the return type of a GCC | |
4170 | builtin and then its argument prototype would still apply. */ | |
4171 | #ifdef __cplusplus | |
4172 | extern "C" | |
4173 | #endif | |
4174 | char opendir (); | |
4175 | int | |
4176 | main () | |
4177 | { | |
4178 | return opendir (); | |
4179 | ; | |
4180 | return 0; | |
4181 | } | |
4182 | _ACEOF | |
4183 | for ac_lib in '' x; do | |
4184 | if test -z "$ac_lib"; then | |
4185 | ac_res="none required" | |
4186 | else | |
4187 | ac_res=-l$ac_lib | |
4188 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4189 | fi | |
4190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4191 | if { (ac_try="$ac_link" | |
4192 | case "(($ac_try" in | |
4193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4194 | *) ac_try_echo=$ac_try;; | |
4195 | esac | |
ec6a6fbe AK |
4196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4197 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4198 | (eval "$ac_link") 2>conftest.er1 |
4199 | ac_status=$? | |
4200 | grep -v '^ *+' conftest.er1 >conftest.err | |
4201 | rm -f conftest.er1 | |
4202 | cat conftest.err >&5 | |
ec6a6fbe | 4203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4204 | (exit $ac_status); } && { |
4205 | test -z "$ac_c_werror_flag" || | |
4206 | test ! -s conftest.err | |
ec6a6fbe AK |
4207 | } && test -s conftest$ac_exeext && { |
4208 | test "$cross_compiling" = yes || | |
4209 | $as_test_x conftest$ac_exeext | |
4210 | }; then | |
d0191583 JM |
4211 | ac_cv_search_opendir=$ac_res |
4212 | else | |
ec6a6fbe | 4213 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4214 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4215 | |
4216 | ||
4217 | fi | |
4218 | ||
ec6a6fbe | 4219 | rm -rf conftest.dSYM |
d0191583 JM |
4220 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4221 | conftest$ac_exeext | |
4222 | if test "${ac_cv_search_opendir+set}" = set; then | |
4223 | break | |
7a197a62 | 4224 | fi |
d0191583 JM |
4225 | done |
4226 | if test "${ac_cv_search_opendir+set}" = set; then | |
4227 | : | |
7a197a62 | 4228 | else |
d0191583 | 4229 | ac_cv_search_opendir=no |
7a197a62 | 4230 | fi |
d0191583 JM |
4231 | rm conftest.$ac_ext |
4232 | LIBS=$ac_func_search_save_LIBS | |
4233 | fi | |
ec6a6fbe AK |
4234 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4235 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4236 | ac_res=$ac_cv_search_opendir |
4237 | if test "$ac_res" != no; then | |
4238 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4239 | |
7a197a62 | 4240 | fi |
7a197a62 | 4241 | |
d0191583 | 4242 | fi |
7a197a62 | 4243 | |
ec6a6fbe AK |
4244 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4245 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4246 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4247 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4248 | else |
4249 | cat >conftest.$ac_ext <<_ACEOF | |
4250 | /* confdefs.h. */ | |
4251 | _ACEOF | |
4252 | cat confdefs.h >>conftest.$ac_ext | |
4253 | cat >>conftest.$ac_ext <<_ACEOF | |
4254 | /* end confdefs.h. */ | |
4255 | #include <stdlib.h> | |
4256 | #include <stdarg.h> | |
4257 | #include <string.h> | |
4258 | #include <float.h> | |
4259 | ||
4260 | int | |
4261 | main () | |
4262 | { | |
4263 | ||
4264 | ; | |
4265 | return 0; | |
4266 | } | |
4267 | _ACEOF | |
4268 | rm -f conftest.$ac_objext | |
4269 | if { (ac_try="$ac_compile" | |
4270 | case "(($ac_try" in | |
4271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4272 | *) ac_try_echo=$ac_try;; | |
4273 | esac | |
ec6a6fbe AK |
4274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4275 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4276 | (eval "$ac_compile") 2>conftest.er1 |
4277 | ac_status=$? | |
4278 | grep -v '^ *+' conftest.er1 >conftest.err | |
4279 | rm -f conftest.er1 | |
4280 | cat conftest.err >&5 | |
ec6a6fbe | 4281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4282 | (exit $ac_status); } && { |
4283 | test -z "$ac_c_werror_flag" || | |
4284 | test ! -s conftest.err | |
4285 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4286 | ac_cv_header_stdc=yes |
4287 | else | |
ec6a6fbe | 4288 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4289 | sed 's/^/| /' conftest.$ac_ext >&5 |
4290 | ||
4291 | ac_cv_header_stdc=no | |
4292 | fi | |
4293 | ||
4294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4295 | ||
4296 | if test $ac_cv_header_stdc = yes; then | |
4297 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4298 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4299 | /* confdefs.h. */ |
4300 | _ACEOF | |
4301 | cat confdefs.h >>conftest.$ac_ext | |
4302 | cat >>conftest.$ac_ext <<_ACEOF | |
4303 | /* end confdefs.h. */ | |
4304 | #include <string.h> | |
8106cdd5 | 4305 | |
ad6254c5 AK |
4306 | _ACEOF |
4307 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4308 | $EGREP "memchr" >/dev/null 2>&1; then | |
4309 | : | |
4310 | else | |
4311 | ac_cv_header_stdc=no | |
80992638 | 4312 | fi |
ad6254c5 | 4313 | rm -f conftest* |
795ca3e5 AK |
4314 | |
4315 | fi | |
4316 | ||
ad6254c5 AK |
4317 | if test $ac_cv_header_stdc = yes; then |
4318 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4319 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4320 | /* confdefs.h. */ |
4321 | _ACEOF | |
4322 | cat confdefs.h >>conftest.$ac_ext | |
4323 | cat >>conftest.$ac_ext <<_ACEOF | |
4324 | /* end confdefs.h. */ | |
80992638 | 4325 | #include <stdlib.h> |
ad6254c5 AK |
4326 | |
4327 | _ACEOF | |
80992638 | 4328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4329 | $EGREP "free" >/dev/null 2>&1; then |
4330 | : | |
795ca3e5 | 4331 | else |
ad6254c5 | 4332 | ac_cv_header_stdc=no |
795ca3e5 | 4333 | fi |
80992638 | 4334 | rm -f conftest* |
8106cdd5 | 4335 | |
795ca3e5 AK |
4336 | fi |
4337 | ||
ad6254c5 AK |
4338 | if test $ac_cv_header_stdc = yes; then |
4339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4340 | if test "$cross_compiling" = yes; then | |
4341 | : | |
795ca3e5 | 4342 | else |
ad6254c5 | 4343 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4344 | /* confdefs.h. */ |
4345 | _ACEOF | |
4346 | cat confdefs.h >>conftest.$ac_ext | |
4347 | cat >>conftest.$ac_ext <<_ACEOF | |
4348 | /* end confdefs.h. */ | |
4349 | #include <ctype.h> | |
7a197a62 | 4350 | #include <stdlib.h> |
ad6254c5 AK |
4351 | #if ((' ' & 0x0FF) == 0x020) |
4352 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4353 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4354 | #else | |
4355 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4356 | (('a' <= (c) && (c) <= 'i') \ |
4357 | || ('j' <= (c) && (c) <= 'r') \ | |
4358 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4359 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4360 | #endif |
ad6254c5 AK |
4361 | |
4362 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4363 | int | |
4364 | main () | |
4365 | { | |
4366 | int i; | |
4367 | for (i = 0; i < 256; i++) | |
4368 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4369 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4370 | return 2; |
4371 | return 0; | |
ad6254c5 AK |
4372 | } |
4373 | _ACEOF | |
4374 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4375 | if { (ac_try="$ac_link" |
4376 | case "(($ac_try" in | |
4377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4378 | *) ac_try_echo=$ac_try;; | |
4379 | esac | |
ec6a6fbe AK |
4380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4381 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4382 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4383 | ac_status=$? |
ec6a6fbe | 4384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4385 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4386 | { (case "(($ac_try" in |
4387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4388 | *) ac_try_echo=$ac_try;; | |
4389 | esac | |
ec6a6fbe AK |
4390 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4391 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4392 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4393 | ac_status=$? |
ec6a6fbe | 4394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4395 | (exit $ac_status); }; }; then |
4396 | : | |
795ca3e5 | 4397 | else |
ec6a6fbe AK |
4398 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4399 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4400 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4401 | |
ad6254c5 AK |
4402 | ( exit $ac_status ) |
4403 | ac_cv_header_stdc=no | |
80992638 | 4404 | fi |
ec6a6fbe | 4405 | rm -rf conftest.dSYM |
7a197a62 | 4406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4407 | fi |
7a197a62 AK |
4408 | |
4409 | ||
ad6254c5 AK |
4410 | fi |
4411 | fi | |
ec6a6fbe AK |
4412 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4413 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4414 | if test $ac_cv_header_stdc = yes; then |
4415 | ||
4416 | cat >>confdefs.h <<\_ACEOF | |
4417 | #define STDC_HEADERS 1 | |
4418 | _ACEOF | |
795ca3e5 AK |
4419 | |
4420 | fi | |
4421 | ||
ec6a6fbe AK |
4422 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4423 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4424 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4425 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4426 | else |
ad6254c5 | 4427 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4428 | /* confdefs.h. */ |
4429 | _ACEOF | |
4430 | cat confdefs.h >>conftest.$ac_ext | |
4431 | cat >>conftest.$ac_ext <<_ACEOF | |
4432 | /* end confdefs.h. */ | |
80992638 | 4433 | #include <sys/types.h> |
ad6254c5 AK |
4434 | #include <sys/wait.h> |
4435 | #ifndef WEXITSTATUS | |
7a197a62 | 4436 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4437 | #endif |
4438 | #ifndef WIFEXITED | |
4439 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4440 | #endif | |
4441 | ||
4442 | int | |
4443 | main () | |
4444 | { | |
4445 | int s; | |
4446 | wait (&s); | |
4447 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4448 | ; | |
4449 | return 0; | |
4450 | } | |
4451 | _ACEOF | |
4452 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4453 | if { (ac_try="$ac_compile" |
4454 | case "(($ac_try" in | |
4455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4456 | *) ac_try_echo=$ac_try;; | |
4457 | esac | |
ec6a6fbe AK |
4458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4459 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4460 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4461 | ac_status=$? |
8a2fc586 AK |
4462 | grep -v '^ *+' conftest.er1 >conftest.err |
4463 | rm -f conftest.er1 | |
4464 | cat conftest.err >&5 | |
ec6a6fbe | 4465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4466 | (exit $ac_status); } && { |
4467 | test -z "$ac_c_werror_flag" || | |
4468 | test ! -s conftest.err | |
4469 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4470 | ac_cv_header_sys_wait_h=yes |
4471 | else | |
ec6a6fbe | 4472 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4473 | sed 's/^/| /' conftest.$ac_ext >&5 |
4474 | ||
7a197a62 | 4475 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4476 | fi |
7a197a62 AK |
4477 | |
4478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4479 | fi |
ec6a6fbe AK |
4480 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4481 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4482 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4483 | |
ad6254c5 AK |
4484 | cat >>confdefs.h <<\_ACEOF |
4485 | #define HAVE_SYS_WAIT_H 1 | |
4486 | _ACEOF | |
795ca3e5 AK |
4487 | |
4488 | fi | |
4489 | ||
ec6a6fbe AK |
4490 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4491 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4492 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4493 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4494 | else |
ad6254c5 | 4495 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4496 | /* confdefs.h. */ |
4497 | _ACEOF | |
4498 | cat confdefs.h >>conftest.$ac_ext | |
4499 | cat >>conftest.$ac_ext <<_ACEOF | |
4500 | /* end confdefs.h. */ | |
795ca3e5 AK |
4501 | #include <sys/types.h> |
4502 | #include <sys/time.h> | |
4503 | #include <time.h> | |
ad6254c5 AK |
4504 | |
4505 | int | |
4506 | main () | |
4507 | { | |
4508 | if ((struct tm *) 0) | |
4509 | return 0; | |
4510 | ; | |
4511 | return 0; | |
4512 | } | |
4513 | _ACEOF | |
4514 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4515 | if { (ac_try="$ac_compile" |
4516 | case "(($ac_try" in | |
4517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4518 | *) ac_try_echo=$ac_try;; | |
4519 | esac | |
ec6a6fbe AK |
4520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4521 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4522 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4523 | ac_status=$? |
8a2fc586 AK |
4524 | grep -v '^ *+' conftest.er1 >conftest.err |
4525 | rm -f conftest.er1 | |
4526 | cat conftest.err >&5 | |
ec6a6fbe | 4527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4528 | (exit $ac_status); } && { |
4529 | test -z "$ac_c_werror_flag" || | |
4530 | test ! -s conftest.err | |
4531 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4532 | ac_cv_header_time=yes |
4533 | else | |
ec6a6fbe | 4534 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4535 | sed 's/^/| /' conftest.$ac_ext >&5 |
4536 | ||
7a197a62 | 4537 | ac_cv_header_time=no |
795ca3e5 | 4538 | fi |
7a197a62 AK |
4539 | |
4540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4541 | fi |
ec6a6fbe AK |
4542 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4543 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4544 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4545 | |
4546 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4547 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4548 | _ACEOF |
b896caa1 | 4549 | |
8106cdd5 | 4550 | fi |
b896caa1 | 4551 | |
b896caa1 | 4552 | |
d0191583 JM |
4553 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4554 | ||
4555 | ||
4556 | ||
4557 | ||
4558 | ||
4559 | ||
4560 | ||
4561 | ||
4562 | ||
4563 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4564 | inttypes.h stdint.h unistd.h | |
4565 | do | |
ec6a6fbe AK |
4566 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4567 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4568 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4570 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4571 | else |
4572 | cat >conftest.$ac_ext <<_ACEOF | |
4573 | /* confdefs.h. */ | |
4574 | _ACEOF | |
4575 | cat confdefs.h >>conftest.$ac_ext | |
4576 | cat >>conftest.$ac_ext <<_ACEOF | |
4577 | /* end confdefs.h. */ | |
4578 | $ac_includes_default | |
4579 | ||
4580 | #include <$ac_header> | |
4581 | _ACEOF | |
4582 | rm -f conftest.$ac_objext | |
4583 | if { (ac_try="$ac_compile" | |
4584 | case "(($ac_try" in | |
4585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4586 | *) ac_try_echo=$ac_try;; | |
4587 | esac | |
ec6a6fbe AK |
4588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4589 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4590 | (eval "$ac_compile") 2>conftest.er1 |
4591 | ac_status=$? | |
4592 | grep -v '^ *+' conftest.er1 >conftest.err | |
4593 | rm -f conftest.er1 | |
4594 | cat conftest.err >&5 | |
ec6a6fbe | 4595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4596 | (exit $ac_status); } && { |
4597 | test -z "$ac_c_werror_flag" || | |
4598 | test ! -s conftest.err | |
4599 | } && test -s conftest.$ac_objext; then | |
4600 | eval "$as_ac_Header=yes" | |
4601 | else | |
ec6a6fbe | 4602 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4603 | sed 's/^/| /' conftest.$ac_ext >&5 |
4604 | ||
4605 | eval "$as_ac_Header=no" | |
4606 | fi | |
4607 | ||
4608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4609 | fi | |
ec6a6fbe AK |
4610 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4611 | $as_echo "$as_val"'` | |
4612 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4613 | $as_echo "$ac_res" >&6; } | |
4614 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4615 | $as_echo "$as_val"'` | |
4616 | if test "x$as_val" = x""yes; then | |
d0191583 | 4617 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4618 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4619 | _ACEOF |
4620 | ||
4621 | fi | |
4622 | ||
4623 | done | |
4624 | ||
b896caa1 | 4625 | |
b896caa1 AK |
4626 | |
4627 | ||
795ca3e5 | 4628 | |
8106cdd5 | 4629 | |
80992638 | 4630 | |
795ca3e5 | 4631 | |
a38df97f | 4632 | |
80992638 | 4633 | |
d0191583 JM |
4634 | |
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4640 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4641 | do |
ec6a6fbe | 4642 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4644 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4645 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4647 | $as_echo_n "(cached) " >&6 |
d0191583 | 4648 | fi |
ec6a6fbe AK |
4649 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4650 | $as_echo "$as_val"'` | |
4651 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4652 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4653 | else |
d0191583 | 4654 | # Is the header compilable? |
ec6a6fbe AK |
4655 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4656 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4657 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4658 | /* confdefs.h. */ |
4659 | _ACEOF | |
4660 | cat confdefs.h >>conftest.$ac_ext | |
4661 | cat >>conftest.$ac_ext <<_ACEOF | |
4662 | /* end confdefs.h. */ | |
4663 | $ac_includes_default | |
ad6254c5 AK |
4664 | #include <$ac_header> |
4665 | _ACEOF | |
4666 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4667 | if { (ac_try="$ac_compile" |
4668 | case "(($ac_try" in | |
4669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4670 | *) ac_try_echo=$ac_try;; | |
4671 | esac | |
ec6a6fbe AK |
4672 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4673 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4674 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4675 | ac_status=$? |
8a2fc586 AK |
4676 | grep -v '^ *+' conftest.er1 >conftest.err |
4677 | rm -f conftest.er1 | |
4678 | cat conftest.err >&5 | |
ec6a6fbe | 4679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4680 | (exit $ac_status); } && { |
4681 | test -z "$ac_c_werror_flag" || | |
4682 | test ! -s conftest.err | |
4683 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4684 | ac_header_compiler=yes |
ad6254c5 | 4685 | else |
ec6a6fbe | 4686 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4688 | |
d0191583 | 4689 | ac_header_compiler=no |
ad6254c5 | 4690 | fi |
7a197a62 AK |
4691 | |
4692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4693 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4694 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4695 | |
4696 | # Is the header present? | |
ec6a6fbe AK |
4697 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4698 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4699 | cat >conftest.$ac_ext <<_ACEOF |
4700 | /* confdefs.h. */ | |
4701 | _ACEOF | |
4702 | cat confdefs.h >>conftest.$ac_ext | |
4703 | cat >>conftest.$ac_ext <<_ACEOF | |
4704 | /* end confdefs.h. */ | |
4705 | #include <$ac_header> | |
4706 | _ACEOF | |
4707 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4708 | case "(($ac_try" in | |
4709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4710 | *) ac_try_echo=$ac_try;; | |
4711 | esac | |
ec6a6fbe AK |
4712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4713 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4714 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4715 | ac_status=$? | |
4716 | grep -v '^ *+' conftest.er1 >conftest.err | |
4717 | rm -f conftest.er1 | |
4718 | cat conftest.err >&5 | |
ec6a6fbe | 4719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4720 | (exit $ac_status); } >/dev/null && { |
4721 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4722 | test ! -s conftest.err | |
4723 | }; then | |
4724 | ac_header_preproc=yes | |
4725 | else | |
ec6a6fbe | 4726 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4727 | sed 's/^/| /' conftest.$ac_ext >&5 |
4728 | ||
4729 | ac_header_preproc=no | |
4730 | fi | |
4731 | ||
4732 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4733 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4734 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4735 | |
4736 | # So? What about this header? | |
4737 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4738 | yes:no: ) | |
ec6a6fbe AK |
4739 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4740 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4742 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4743 | ac_header_preproc=yes |
4744 | ;; | |
4745 | no:yes:* ) | |
ec6a6fbe AK |
4746 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4747 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4749 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4751 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4753 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4755 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4757 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4758 | |
4759 | ;; | |
4760 | esac | |
ec6a6fbe AK |
4761 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4762 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4764 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4765 | else |
4766 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4767 | fi |
ec6a6fbe AK |
4768 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4769 | $as_echo "$as_val"'` | |
4770 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4771 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4772 | |
4773 | fi | |
ec6a6fbe AK |
4774 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4775 | $as_echo "$as_val"'` | |
4776 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4777 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4778 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4779 | _ACEOF |
a38df97f | 4780 | |
d0191583 | 4781 | else |
ec6a6fbe AK |
4782 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4783 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4784 | { (exit 1); exit 1; }; } |
80992638 AK |
4785 | fi |
4786 | ||
ad6254c5 AK |
4787 | done |
4788 | ||
7d1552c9 | 4789 | |
d0191583 JM |
4790 | case "$host_os" in |
4791 | linux*) | |
7d1552c9 | 4792 | |
80992638 | 4793 | |
5a52dca9 | 4794 | |
d0191583 | 4795 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4796 | do |
ec6a6fbe | 4797 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4798 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4799 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4800 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4801 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4802 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4803 | fi |
ec6a6fbe AK |
4804 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4805 | $as_echo "$as_val"'` | |
4806 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4807 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4808 | else |
4809 | # Is the header compilable? | |
ec6a6fbe AK |
4810 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4811 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4812 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4813 | /* confdefs.h. */ |
4814 | _ACEOF | |
4815 | cat confdefs.h >>conftest.$ac_ext | |
4816 | cat >>conftest.$ac_ext <<_ACEOF | |
4817 | /* end confdefs.h. */ | |
4818 | $ac_includes_default | |
4819 | #include <$ac_header> | |
4820 | _ACEOF | |
4821 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4822 | if { (ac_try="$ac_compile" |
4823 | case "(($ac_try" in | |
4824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4825 | *) ac_try_echo=$ac_try;; | |
4826 | esac | |
ec6a6fbe AK |
4827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4828 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4829 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4830 | ac_status=$? |
8a2fc586 AK |
4831 | grep -v '^ *+' conftest.er1 >conftest.err |
4832 | rm -f conftest.er1 | |
4833 | cat conftest.err >&5 | |
ec6a6fbe | 4834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4835 | (exit $ac_status); } && { |
4836 | test -z "$ac_c_werror_flag" || | |
4837 | test ! -s conftest.err | |
4838 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4839 | ac_header_compiler=yes |
4840 | else | |
ec6a6fbe | 4841 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4842 | sed 's/^/| /' conftest.$ac_ext >&5 |
4843 | ||
4844 | ac_header_compiler=no | |
4845 | fi | |
4846 | ||
4847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4848 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4849 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4850 | |
4851 | # Is the header present? | |
ec6a6fbe AK |
4852 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4853 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4854 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4855 | /* confdefs.h. */ |
4856 | _ACEOF | |
4857 | cat confdefs.h >>conftest.$ac_ext | |
4858 | cat >>conftest.$ac_ext <<_ACEOF | |
4859 | /* end confdefs.h. */ | |
4860 | #include <$ac_header> | |
4861 | _ACEOF | |
7a197a62 AK |
4862 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4863 | case "(($ac_try" in | |
4864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4865 | *) ac_try_echo=$ac_try;; | |
4866 | esac | |
ec6a6fbe AK |
4867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4868 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4869 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4870 | ac_status=$? |
4871 | grep -v '^ *+' conftest.er1 >conftest.err | |
4872 | rm -f conftest.er1 | |
4873 | cat conftest.err >&5 | |
ec6a6fbe | 4874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4875 | (exit $ac_status); } >/dev/null && { |
4876 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4877 | test ! -s conftest.err | |
4878 | }; then | |
ad6254c5 AK |
4879 | ac_header_preproc=yes |
4880 | else | |
ec6a6fbe | 4881 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4882 | sed 's/^/| /' conftest.$ac_ext >&5 |
4883 | ||
4884 | ac_header_preproc=no | |
4885 | fi | |
7a197a62 | 4886 | |
ad6254c5 | 4887 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4888 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4889 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4890 | |
4891 | # So? What about this header? | |
8a2fc586 AK |
4892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4893 | yes:no: ) | |
ec6a6fbe AK |
4894 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4895 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4896 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4897 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4898 | ac_header_preproc=yes |
ad6254c5 | 4899 | ;; |
8a2fc586 | 4900 | no:yes:* ) |
ec6a6fbe AK |
4901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4902 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4904 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4906 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4908 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4910 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4912 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4913 | |
ad6254c5 AK |
4914 | ;; |
4915 | esac | |
ec6a6fbe AK |
4916 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4917 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4919 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4920 | else |
8a2fc586 | 4921 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4922 | fi |
ec6a6fbe AK |
4923 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4924 | $as_echo "$as_val"'` | |
4925 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4926 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4927 | |
4928 | fi | |
ec6a6fbe AK |
4929 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4930 | $as_echo "$as_val"'` | |
4931 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4932 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4933 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4934 | _ACEOF |
b896caa1 | 4935 | |
d8ac0fbc | 4936 | else |
ec6a6fbe AK |
4937 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4938 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4939 | { (exit 1); exit 1; }; } |
80992638 AK |
4940 | fi |
4941 | ||
ad6254c5 | 4942 | done |
d0191583 JM |
4943 | ;; |
4944 | darwin*) | |
d8ac0fbc | 4945 | |
d8ac0fbc | 4946 | |
d0191583 | 4947 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4948 | do |
ec6a6fbe | 4949 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4950 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4951 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4952 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4953 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4954 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4955 | fi |
ec6a6fbe AK |
4956 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4957 | $as_echo "$as_val"'` | |
4958 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4959 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4960 | else |
4961 | # Is the header compilable? | |
ec6a6fbe AK |
4962 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4963 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4964 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4965 | /* confdefs.h. */ |
4966 | _ACEOF | |
4967 | cat confdefs.h >>conftest.$ac_ext | |
4968 | cat >>conftest.$ac_ext <<_ACEOF | |
4969 | /* end confdefs.h. */ | |
4970 | $ac_includes_default | |
4971 | #include <$ac_header> | |
4972 | _ACEOF | |
4973 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4974 | if { (ac_try="$ac_compile" |
4975 | case "(($ac_try" in | |
4976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4977 | *) ac_try_echo=$ac_try;; | |
4978 | esac | |
ec6a6fbe AK |
4979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4980 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4981 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4982 | ac_status=$? |
8a2fc586 AK |
4983 | grep -v '^ *+' conftest.er1 >conftest.err |
4984 | rm -f conftest.er1 | |
4985 | cat conftest.err >&5 | |
ec6a6fbe | 4986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4987 | (exit $ac_status); } && { |
4988 | test -z "$ac_c_werror_flag" || | |
4989 | test ! -s conftest.err | |
4990 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4991 | ac_header_compiler=yes |
4992 | else | |
ec6a6fbe | 4993 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4994 | sed 's/^/| /' conftest.$ac_ext >&5 |
4995 | ||
7a197a62 | 4996 | ac_header_compiler=no |
ad6254c5 | 4997 | fi |
7a197a62 AK |
4998 | |
4999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5000 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5001 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5002 | |
5003 | # Is the header present? | |
ec6a6fbe AK |
5004 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5005 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5006 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5007 | /* confdefs.h. */ |
5008 | _ACEOF | |
5009 | cat confdefs.h >>conftest.$ac_ext | |
5010 | cat >>conftest.$ac_ext <<_ACEOF | |
5011 | /* end confdefs.h. */ | |
5012 | #include <$ac_header> | |
5013 | _ACEOF | |
7a197a62 AK |
5014 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5015 | case "(($ac_try" in | |
5016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5017 | *) ac_try_echo=$ac_try;; | |
5018 | esac | |
ec6a6fbe AK |
5019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5020 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5021 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5022 | ac_status=$? |
5023 | grep -v '^ *+' conftest.er1 >conftest.err | |
5024 | rm -f conftest.er1 | |
5025 | cat conftest.err >&5 | |
ec6a6fbe | 5026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5027 | (exit $ac_status); } >/dev/null && { |
5028 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5029 | test ! -s conftest.err | |
5030 | }; then | |
ad6254c5 AK |
5031 | ac_header_preproc=yes |
5032 | else | |
ec6a6fbe | 5033 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5034 | sed 's/^/| /' conftest.$ac_ext >&5 |
5035 | ||
5036 | ac_header_preproc=no | |
5037 | fi | |
7a197a62 | 5038 | |
ad6254c5 | 5039 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5040 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5041 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5042 | |
5043 | # So? What about this header? | |
8a2fc586 AK |
5044 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5045 | yes:no: ) | |
ec6a6fbe AK |
5046 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5047 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5048 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5049 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5050 | ac_header_preproc=yes |
ad6254c5 | 5051 | ;; |
8a2fc586 | 5052 | no:yes:* ) |
ec6a6fbe AK |
5053 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5054 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5055 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5056 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5057 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5058 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5059 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5060 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5061 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5062 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5063 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5064 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5065 | |
ad6254c5 AK |
5066 | ;; |
5067 | esac | |
ec6a6fbe AK |
5068 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5069 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5071 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5072 | else |
8a2fc586 | 5073 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5074 | fi |
ec6a6fbe AK |
5075 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5076 | $as_echo "$as_val"'` | |
5077 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5078 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5079 | |
5080 | fi | |
ec6a6fbe AK |
5081 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5082 | $as_echo "$as_val"'` | |
5083 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5084 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5085 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5086 | _ACEOF |
4922197a | 5087 | |
4922197a | 5088 | else |
ec6a6fbe AK |
5089 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5090 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5091 | { (exit 1); exit 1; }; } |
80992638 AK |
5092 | fi |
5093 | ||
ad6254c5 | 5094 | done |
d0191583 JM |
5095 | ;; |
5096 | esac | |
4922197a | 5097 | |
4922197a | 5098 | |
4922197a | 5099 | |
ad6254c5 AK |
5100 | |
5101 | ||
d0191583 JM |
5102 | |
5103 | ||
5104 | ||
5105 | ||
5106 | ||
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | ||
5112 | ||
5113 | ||
5114 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5115 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5116 | sys/types.h unistd.h | |
ad6254c5 | 5117 | do |
ec6a6fbe | 5118 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5119 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5120 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5121 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5122 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5123 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5124 | fi |
ec6a6fbe AK |
5125 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5126 | $as_echo "$as_val"'` | |
5127 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5128 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5129 | else |
ad6254c5 | 5130 | # Is the header compilable? |
ec6a6fbe AK |
5131 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5132 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5133 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5134 | /* confdefs.h. */ |
5135 | _ACEOF | |
5136 | cat confdefs.h >>conftest.$ac_ext | |
5137 | cat >>conftest.$ac_ext <<_ACEOF | |
5138 | /* end confdefs.h. */ | |
5139 | $ac_includes_default | |
5140 | #include <$ac_header> | |
5141 | _ACEOF | |
5142 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5143 | if { (ac_try="$ac_compile" |
5144 | case "(($ac_try" in | |
5145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5146 | *) ac_try_echo=$ac_try;; | |
5147 | esac | |
ec6a6fbe AK |
5148 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5149 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5150 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5151 | ac_status=$? |
8a2fc586 AK |
5152 | grep -v '^ *+' conftest.er1 >conftest.err |
5153 | rm -f conftest.er1 | |
5154 | cat conftest.err >&5 | |
ec6a6fbe | 5155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5156 | (exit $ac_status); } && { |
5157 | test -z "$ac_c_werror_flag" || | |
5158 | test ! -s conftest.err | |
5159 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5160 | ac_header_compiler=yes |
5161 | else | |
ec6a6fbe | 5162 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5163 | sed 's/^/| /' conftest.$ac_ext >&5 |
5164 | ||
7a197a62 | 5165 | ac_header_compiler=no |
ad6254c5 | 5166 | fi |
7a197a62 AK |
5167 | |
5168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5169 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5170 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5171 | |
5172 | # Is the header present? | |
ec6a6fbe AK |
5173 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5174 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5175 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5176 | /* confdefs.h. */ |
5177 | _ACEOF | |
5178 | cat confdefs.h >>conftest.$ac_ext | |
5179 | cat >>conftest.$ac_ext <<_ACEOF | |
5180 | /* end confdefs.h. */ | |
5181 | #include <$ac_header> | |
5182 | _ACEOF | |
7a197a62 AK |
5183 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5184 | case "(($ac_try" in | |
5185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5186 | *) ac_try_echo=$ac_try;; | |
5187 | esac | |
ec6a6fbe AK |
5188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5189 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5190 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5191 | ac_status=$? |
5192 | grep -v '^ *+' conftest.er1 >conftest.err | |
5193 | rm -f conftest.er1 | |
5194 | cat conftest.err >&5 | |
ec6a6fbe | 5195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5196 | (exit $ac_status); } >/dev/null && { |
5197 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5198 | test ! -s conftest.err | |
5199 | }; then | |
ad6254c5 AK |
5200 | ac_header_preproc=yes |
5201 | else | |
ec6a6fbe | 5202 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5203 | sed 's/^/| /' conftest.$ac_ext >&5 |
5204 | ||
5205 | ac_header_preproc=no | |
5206 | fi | |
7a197a62 | 5207 | |
ad6254c5 | 5208 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5209 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5210 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5211 | |
5212 | # So? What about this header? | |
8a2fc586 AK |
5213 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5214 | yes:no: ) | |
ec6a6fbe AK |
5215 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5216 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5218 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5219 | ac_header_preproc=yes |
ad6254c5 | 5220 | ;; |
8a2fc586 | 5221 | no:yes:* ) |
ec6a6fbe AK |
5222 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5223 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5225 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5226 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5227 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5228 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5229 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5230 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5231 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5232 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5233 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5234 | |
ad6254c5 AK |
5235 | ;; |
5236 | esac | |
ec6a6fbe AK |
5237 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5238 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5239 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5240 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5241 | else |
8a2fc586 | 5242 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5243 | fi |
ec6a6fbe AK |
5244 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5245 | $as_echo "$as_val"'` | |
5246 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5247 | $as_echo "$ac_res" >&6; } | |
80992638 | 5248 | |
ad6254c5 | 5249 | fi |
ec6a6fbe AK |
5250 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5251 | $as_echo "$as_val"'` | |
5252 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5253 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5254 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5255 | _ACEOF |
795ca3e5 | 5256 | |
795ca3e5 | 5257 | else |
ec6a6fbe AK |
5258 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5259 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5260 | { (exit 1); exit 1; }; } |
80992638 AK |
5261 | fi |
5262 | ||
ad6254c5 | 5263 | done |
ad6254c5 | 5264 | |
795ca3e5 | 5265 | |
d0191583 JM |
5266 | |
5267 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5268 | do |
ec6a6fbe | 5269 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5270 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5271 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5272 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5274 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5275 | fi |
ec6a6fbe AK |
5276 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5277 | $as_echo "$as_val"'` | |
5278 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5279 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5280 | else |
5281 | # Is the header compilable? | |
ec6a6fbe AK |
5282 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5283 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5284 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5285 | /* confdefs.h. */ |
5286 | _ACEOF | |
5287 | cat confdefs.h >>conftest.$ac_ext | |
5288 | cat >>conftest.$ac_ext <<_ACEOF | |
5289 | /* end confdefs.h. */ | |
5290 | $ac_includes_default | |
5291 | #include <$ac_header> | |
5292 | _ACEOF | |
5293 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5294 | if { (ac_try="$ac_compile" |
5295 | case "(($ac_try" in | |
5296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5297 | *) ac_try_echo=$ac_try;; | |
5298 | esac | |
ec6a6fbe AK |
5299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5300 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5301 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5302 | ac_status=$? |
8a2fc586 AK |
5303 | grep -v '^ *+' conftest.er1 >conftest.err |
5304 | rm -f conftest.er1 | |
5305 | cat conftest.err >&5 | |
ec6a6fbe | 5306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5307 | (exit $ac_status); } && { |
5308 | test -z "$ac_c_werror_flag" || | |
5309 | test ! -s conftest.err | |
5310 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5311 | ac_header_compiler=yes |
5312 | else | |
ec6a6fbe | 5313 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5314 | sed 's/^/| /' conftest.$ac_ext >&5 |
5315 | ||
7a197a62 | 5316 | ac_header_compiler=no |
ad6254c5 | 5317 | fi |
7a197a62 AK |
5318 | |
5319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5320 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5321 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5322 | |
5323 | # Is the header present? | |
ec6a6fbe AK |
5324 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5325 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5326 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5327 | /* confdefs.h. */ |
5328 | _ACEOF | |
5329 | cat confdefs.h >>conftest.$ac_ext | |
5330 | cat >>conftest.$ac_ext <<_ACEOF | |
5331 | /* end confdefs.h. */ | |
5332 | #include <$ac_header> | |
5333 | _ACEOF | |
7a197a62 AK |
5334 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5335 | case "(($ac_try" in | |
5336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5337 | *) ac_try_echo=$ac_try;; | |
5338 | esac | |
ec6a6fbe AK |
5339 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5340 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5342 | ac_status=$? |
5343 | grep -v '^ *+' conftest.er1 >conftest.err | |
5344 | rm -f conftest.er1 | |
5345 | cat conftest.err >&5 | |
ec6a6fbe | 5346 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5347 | (exit $ac_status); } >/dev/null && { |
5348 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5349 | test ! -s conftest.err | |
5350 | }; then | |
ad6254c5 AK |
5351 | ac_header_preproc=yes |
5352 | else | |
ec6a6fbe | 5353 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5354 | sed 's/^/| /' conftest.$ac_ext >&5 |
5355 | ||
5356 | ac_header_preproc=no | |
5357 | fi | |
7a197a62 | 5358 | |
ad6254c5 | 5359 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5360 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5361 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5362 | |
5363 | # So? What about this header? | |
8a2fc586 AK |
5364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5365 | yes:no: ) | |
ec6a6fbe AK |
5366 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5367 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5368 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5369 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5370 | ac_header_preproc=yes |
ad6254c5 | 5371 | ;; |
8a2fc586 | 5372 | no:yes:* ) |
ec6a6fbe AK |
5373 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5374 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5375 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5376 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5377 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5378 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5379 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5380 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5381 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5382 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5383 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5384 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5385 | |
ad6254c5 AK |
5386 | ;; |
5387 | esac | |
ec6a6fbe AK |
5388 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5389 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5390 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5391 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5392 | else |
8a2fc586 | 5393 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5394 | fi |
ec6a6fbe AK |
5395 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5396 | $as_echo "$as_val"'` | |
5397 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5398 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5399 | |
ad6254c5 | 5400 | fi |
ec6a6fbe AK |
5401 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5402 | $as_echo "$as_val"'` | |
5403 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5404 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5405 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5406 | _ACEOF |
5407 | ||
80992638 AK |
5408 | fi |
5409 | ||
ad6254c5 | 5410 | done |
d0191583 | 5411 | |
d3c8211f | 5412 | |
80992638 | 5413 | ################################################################################ |
ec6a6fbe AK |
5414 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5415 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5416 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5417 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5418 | else |
ad6254c5 | 5419 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5420 | /* confdefs.h. */ |
5421 | _ACEOF | |
5422 | cat confdefs.h >>conftest.$ac_ext | |
5423 | cat >>conftest.$ac_ext <<_ACEOF | |
5424 | /* end confdefs.h. */ | |
5425 | ||
5426 | int | |
5427 | main () | |
5428 | { | |
5429 | /* FIXME: Include the comments suggested by Paul. */ | |
5430 | #ifndef __cplusplus | |
5431 | /* Ultrix mips cc rejects this. */ | |
5432 | typedef int charset[2]; | |
25fbec5b | 5433 | const charset cs; |
ad6254c5 | 5434 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5435 | char const *const *pcpcc; |
5436 | char **ppc; | |
ad6254c5 AK |
5437 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5438 | struct point {int x, y;}; | |
5439 | static struct point const zero = {0,0}; | |
5440 | /* AIX XL C 1.02.0.0 rejects this. | |
5441 | It does not let you subtract one const X* pointer from another in | |
5442 | an arm of an if-expression whose if-part is not a constant | |
5443 | expression */ | |
5444 | const char *g = "string"; | |
25fbec5b | 5445 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5446 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5447 | ++pcpcc; |
5448 | ppc = (char**) pcpcc; | |
5449 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5450 | { /* SCO 3.2v4 cc rejects this. */ |
5451 | char *t; | |
5452 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5453 | ||
5454 | *t++ = 0; | |
7a197a62 | 5455 | if (s) return 0; |
ad6254c5 AK |
5456 | } |
5457 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5458 | int x[] = {25, 17}; | |
5459 | const int *foo = &x[0]; | |
5460 | ++foo; | |
5461 | } | |
5462 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5463 | typedef const int *iptr; | |
5464 | iptr p = 0; | |
5465 | ++p; | |
5466 | } | |
5467 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5468 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5469 | struct s { int j; const int *ap[3]; }; | |
5470 | struct s *b; b->j = 5; | |
5471 | } | |
5472 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5473 | const int foo = 10; | |
7a197a62 | 5474 | if (!foo) return 0; |
ad6254c5 | 5475 | } |
25fbec5b | 5476 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5477 | #endif |
5478 | ||
5479 | ; | |
5480 | return 0; | |
5481 | } | |
5482 | _ACEOF | |
5483 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5484 | if { (ac_try="$ac_compile" |
5485 | case "(($ac_try" in | |
5486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5487 | *) ac_try_echo=$ac_try;; | |
5488 | esac | |
ec6a6fbe AK |
5489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5490 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5491 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5492 | ac_status=$? |
8a2fc586 AK |
5493 | grep -v '^ *+' conftest.er1 >conftest.err |
5494 | rm -f conftest.er1 | |
5495 | cat conftest.err >&5 | |
ec6a6fbe | 5496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5497 | (exit $ac_status); } && { |
5498 | test -z "$ac_c_werror_flag" || | |
5499 | test ! -s conftest.err | |
5500 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5501 | ac_cv_c_const=yes |
5502 | else | |
ec6a6fbe | 5503 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5504 | sed 's/^/| /' conftest.$ac_ext >&5 |
5505 | ||
7a197a62 | 5506 | ac_cv_c_const=no |
ad6254c5 | 5507 | fi |
7a197a62 AK |
5508 | |
5509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5510 | fi |
ec6a6fbe AK |
5511 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5512 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5513 | if test $ac_cv_c_const = no; then |
80992638 | 5514 | |
ad6254c5 | 5515 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5516 | #define const /**/ |
ad6254c5 | 5517 | _ACEOF |
80992638 | 5518 | |
d3c8211f | 5519 | fi |
d3c8211f | 5520 | |
ec6a6fbe AK |
5521 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5522 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5523 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5524 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5525 | else |
ad6254c5 AK |
5526 | ac_cv_c_inline=no |
5527 | for ac_kw in inline __inline__ __inline; do | |
5528 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5529 | /* confdefs.h. */ |
5530 | _ACEOF | |
5531 | cat confdefs.h >>conftest.$ac_ext | |
5532 | cat >>conftest.$ac_ext <<_ACEOF | |
5533 | /* end confdefs.h. */ | |
5534 | #ifndef __cplusplus | |
5535 | typedef int foo_t; | |
5536 | static $ac_kw foo_t static_foo () {return 0; } | |
5537 | $ac_kw foo_t foo () {return 0; } | |
5538 | #endif | |
80992638 | 5539 | |
ad6254c5 AK |
5540 | _ACEOF |
5541 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5542 | if { (ac_try="$ac_compile" |
5543 | case "(($ac_try" in | |
5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5545 | *) ac_try_echo=$ac_try;; | |
5546 | esac | |
ec6a6fbe AK |
5547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5548 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5549 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5550 | ac_status=$? |
8a2fc586 AK |
5551 | grep -v '^ *+' conftest.er1 >conftest.err |
5552 | rm -f conftest.er1 | |
5553 | cat conftest.err >&5 | |
ec6a6fbe | 5554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5555 | (exit $ac_status); } && { |
5556 | test -z "$ac_c_werror_flag" || | |
5557 | test ! -s conftest.err | |
5558 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5559 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5560 | else |
ec6a6fbe | 5561 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5562 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5563 | |
7a197a62 | 5564 | |
8ce0cbda | 5565 | fi |
7a197a62 AK |
5566 | |
5567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5568 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5569 | done |
8ce0cbda | 5570 | |
8ce0cbda | 5571 | fi |
ec6a6fbe AK |
5572 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5573 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5574 | |
5575 | ||
ad6254c5 AK |
5576 | case $ac_cv_c_inline in |
5577 | inline | yes) ;; | |
8a2fc586 AK |
5578 | *) |
5579 | case $ac_cv_c_inline in | |
5580 | no) ac_val=;; | |
5581 | *) ac_val=$ac_cv_c_inline;; | |
5582 | esac | |
5583 | cat >>confdefs.h <<_ACEOF | |
5584 | #ifndef __cplusplus | |
5585 | #define inline $ac_val | |
5586 | #endif | |
c1c065a3 | 5587 | _ACEOF |
d0191583 JM |
5588 | ;; |
5589 | esac | |
5590 | ||
ec6a6fbe AK |
5591 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5592 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5593 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5594 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5595 | else |
5596 | cat >conftest.$ac_ext <<_ACEOF | |
5597 | /* confdefs.h. */ | |
5598 | _ACEOF | |
5599 | cat confdefs.h >>conftest.$ac_ext | |
5600 | cat >>conftest.$ac_ext <<_ACEOF | |
5601 | /* end confdefs.h. */ | |
5602 | $ac_includes_default | |
5603 | int | |
5604 | main () | |
5605 | { | |
5606 | static struct stat ac_aggr; | |
5607 | if (ac_aggr.st_rdev) | |
5608 | return 0; | |
5609 | ; | |
5610 | return 0; | |
5611 | } | |
5612 | _ACEOF | |
5613 | rm -f conftest.$ac_objext | |
5614 | if { (ac_try="$ac_compile" | |
5615 | case "(($ac_try" in | |
5616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5617 | *) ac_try_echo=$ac_try;; | |
5618 | esac | |
ec6a6fbe AK |
5619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5620 | $as_echo "$ac_try_echo") >&5 | |
5621 | (eval "$ac_compile") 2>conftest.er1 | |
5622 | ac_status=$? | |
5623 | grep -v '^ *+' conftest.er1 >conftest.err | |
5624 | rm -f conftest.er1 | |
5625 | cat conftest.err >&5 | |
5626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5627 | (exit $ac_status); } && { | |
5628 | test -z "$ac_c_werror_flag" || | |
5629 | test ! -s conftest.err | |
5630 | } && test -s conftest.$ac_objext; then | |
5631 | ac_cv_member_struct_stat_st_rdev=yes | |
5632 | else | |
5633 | $as_echo "$as_me: failed program was:" >&5 | |
5634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5635 | ||
5636 | cat >conftest.$ac_ext <<_ACEOF | |
5637 | /* confdefs.h. */ | |
5638 | _ACEOF | |
5639 | cat confdefs.h >>conftest.$ac_ext | |
5640 | cat >>conftest.$ac_ext <<_ACEOF | |
5641 | /* end confdefs.h. */ | |
5642 | $ac_includes_default | |
5643 | int | |
5644 | main () | |
5645 | { | |
5646 | static struct stat ac_aggr; | |
5647 | if (sizeof ac_aggr.st_rdev) | |
5648 | return 0; | |
5649 | ; | |
5650 | return 0; | |
5651 | } | |
5652 | _ACEOF | |
5653 | rm -f conftest.$ac_objext | |
5654 | if { (ac_try="$ac_compile" | |
5655 | case "(($ac_try" in | |
5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5657 | *) ac_try_echo=$ac_try;; | |
5658 | esac | |
5659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5660 | $as_echo "$ac_try_echo") >&5 | |
5661 | (eval "$ac_compile") 2>conftest.er1 | |
5662 | ac_status=$? | |
5663 | grep -v '^ *+' conftest.er1 >conftest.err | |
5664 | rm -f conftest.er1 | |
5665 | cat conftest.err >&5 | |
5666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5667 | (exit $ac_status); } && { | |
5668 | test -z "$ac_c_werror_flag" || | |
5669 | test ! -s conftest.err | |
5670 | } && test -s conftest.$ac_objext; then | |
5671 | ac_cv_member_struct_stat_st_rdev=yes | |
5672 | else | |
5673 | $as_echo "$as_me: failed program was:" >&5 | |
5674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5675 | ||
5676 | ac_cv_member_struct_stat_st_rdev=no | |
5677 | fi | |
5678 | ||
5679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5680 | fi | |
5681 | ||
5682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5683 | fi | |
5684 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5685 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5686 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5687 | ||
5688 | cat >>confdefs.h <<_ACEOF | |
5689 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5690 | _ACEOF | |
5691 | ||
5692 | ||
5693 | fi | |
5694 | ||
5695 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5696 | $as_echo_n "checking for off_t... " >&6; } | |
5697 | if test "${ac_cv_type_off_t+set}" = set; then | |
5698 | $as_echo_n "(cached) " >&6 | |
5699 | else | |
5700 | ac_cv_type_off_t=no | |
5701 | cat >conftest.$ac_ext <<_ACEOF | |
5702 | /* confdefs.h. */ | |
5703 | _ACEOF | |
5704 | cat confdefs.h >>conftest.$ac_ext | |
5705 | cat >>conftest.$ac_ext <<_ACEOF | |
5706 | /* end confdefs.h. */ | |
5707 | $ac_includes_default | |
5708 | int | |
5709 | main () | |
5710 | { | |
5711 | if (sizeof (off_t)) | |
5712 | return 0; | |
5713 | ; | |
5714 | return 0; | |
5715 | } | |
5716 | _ACEOF | |
5717 | rm -f conftest.$ac_objext | |
5718 | if { (ac_try="$ac_compile" | |
5719 | case "(($ac_try" in | |
5720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5721 | *) ac_try_echo=$ac_try;; | |
5722 | esac | |
5723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5724 | $as_echo "$ac_try_echo") >&5 | |
5725 | (eval "$ac_compile") 2>conftest.er1 | |
5726 | ac_status=$? | |
5727 | grep -v '^ *+' conftest.er1 >conftest.err | |
5728 | rm -f conftest.er1 | |
5729 | cat conftest.err >&5 | |
5730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5731 | (exit $ac_status); } && { | |
5732 | test -z "$ac_c_werror_flag" || | |
5733 | test ! -s conftest.err | |
5734 | } && test -s conftest.$ac_objext; then | |
5735 | cat >conftest.$ac_ext <<_ACEOF | |
5736 | /* confdefs.h. */ | |
5737 | _ACEOF | |
5738 | cat confdefs.h >>conftest.$ac_ext | |
5739 | cat >>conftest.$ac_ext <<_ACEOF | |
5740 | /* end confdefs.h. */ | |
5741 | $ac_includes_default | |
5742 | int | |
5743 | main () | |
5744 | { | |
5745 | if (sizeof ((off_t))) | |
5746 | return 0; | |
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
5751 | rm -f conftest.$ac_objext | |
5752 | if { (ac_try="$ac_compile" | |
5753 | case "(($ac_try" in | |
5754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5755 | *) ac_try_echo=$ac_try;; | |
5756 | esac | |
5757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5758 | $as_echo "$ac_try_echo") >&5 | |
5759 | (eval "$ac_compile") 2>conftest.er1 | |
5760 | ac_status=$? | |
5761 | grep -v '^ *+' conftest.er1 >conftest.err | |
5762 | rm -f conftest.er1 | |
5763 | cat conftest.err >&5 | |
5764 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5765 | (exit $ac_status); } && { | |
5766 | test -z "$ac_c_werror_flag" || | |
5767 | test ! -s conftest.err | |
5768 | } && test -s conftest.$ac_objext; then | |
5769 | : | |
5770 | else | |
5771 | $as_echo "$as_me: failed program was:" >&5 | |
5772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5773 | ||
5774 | ac_cv_type_off_t=yes | |
5775 | fi | |
5776 | ||
5777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5778 | else | |
5779 | $as_echo "$as_me: failed program was:" >&5 | |
5780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5781 | ||
5782 | ||
5783 | fi | |
5784 | ||
5785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5786 | fi | |
5787 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5788 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5789 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5790 | : | |
5791 | else | |
5792 | ||
5793 | cat >>confdefs.h <<_ACEOF | |
5794 | #define off_t long int | |
5795 | _ACEOF | |
5796 | ||
5797 | fi | |
5798 | ||
5799 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5800 | $as_echo_n "checking for pid_t... " >&6; } | |
5801 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5802 | $as_echo_n "(cached) " >&6 | |
5803 | else | |
5804 | ac_cv_type_pid_t=no | |
5805 | cat >conftest.$ac_ext <<_ACEOF | |
5806 | /* confdefs.h. */ | |
5807 | _ACEOF | |
5808 | cat confdefs.h >>conftest.$ac_ext | |
5809 | cat >>conftest.$ac_ext <<_ACEOF | |
5810 | /* end confdefs.h. */ | |
5811 | $ac_includes_default | |
5812 | int | |
5813 | main () | |
5814 | { | |
5815 | if (sizeof (pid_t)) | |
5816 | return 0; | |
5817 | ; | |
5818 | return 0; | |
5819 | } | |
5820 | _ACEOF | |
5821 | rm -f conftest.$ac_objext | |
5822 | if { (ac_try="$ac_compile" | |
5823 | case "(($ac_try" in | |
5824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5825 | *) ac_try_echo=$ac_try;; | |
5826 | esac | |
5827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5828 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5829 | (eval "$ac_compile") 2>conftest.er1 |
5830 | ac_status=$? | |
5831 | grep -v '^ *+' conftest.er1 >conftest.err | |
5832 | rm -f conftest.er1 | |
5833 | cat conftest.err >&5 | |
ec6a6fbe | 5834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5835 | (exit $ac_status); } && { |
5836 | test -z "$ac_c_werror_flag" || | |
5837 | test ! -s conftest.err | |
5838 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5839 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5840 | /* confdefs.h. */ |
5841 | _ACEOF | |
5842 | cat confdefs.h >>conftest.$ac_ext | |
5843 | cat >>conftest.$ac_ext <<_ACEOF | |
5844 | /* end confdefs.h. */ | |
5845 | $ac_includes_default | |
5846 | int | |
5847 | main () | |
5848 | { | |
ec6a6fbe AK |
5849 | if (sizeof ((pid_t))) |
5850 | return 0; | |
d0191583 JM |
5851 | ; |
5852 | return 0; | |
5853 | } | |
5854 | _ACEOF | |
5855 | rm -f conftest.$ac_objext | |
5856 | if { (ac_try="$ac_compile" | |
5857 | case "(($ac_try" in | |
5858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5859 | *) ac_try_echo=$ac_try;; | |
5860 | esac | |
ec6a6fbe AK |
5861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5862 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5863 | (eval "$ac_compile") 2>conftest.er1 |
5864 | ac_status=$? | |
5865 | grep -v '^ *+' conftest.er1 >conftest.err | |
5866 | rm -f conftest.er1 | |
5867 | cat conftest.err >&5 | |
ec6a6fbe | 5868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5869 | (exit $ac_status); } && { |
5870 | test -z "$ac_c_werror_flag" || | |
5871 | test ! -s conftest.err | |
5872 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5873 | : |
d0191583 | 5874 | else |
ec6a6fbe | 5875 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5876 | sed 's/^/| /' conftest.$ac_ext >&5 |
5877 | ||
ec6a6fbe | 5878 | ac_cv_type_pid_t=yes |
d0191583 JM |
5879 | fi |
5880 | ||
5881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5882 | else |
5883 | $as_echo "$as_me: failed program was:" >&5 | |
5884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5885 | ||
5886 | ||
d0191583 JM |
5887 | fi |
5888 | ||
5889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5890 | fi | |
ec6a6fbe AK |
5891 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5892 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5893 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5894 | : | |
5895 | else | |
d0191583 JM |
5896 | |
5897 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5898 | #define pid_t int |
d0191583 JM |
5899 | _ACEOF |
5900 | ||
d0191583 | 5901 | fi |
8ce0cbda | 5902 | |
ec6a6fbe AK |
5903 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5904 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5905 | if test "${ac_cv_type_signal+set}" = set; then | |
5906 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5907 | else |
b145d876 ZK |
5908 | cat >conftest.$ac_ext <<_ACEOF |
5909 | /* confdefs.h. */ | |
5910 | _ACEOF | |
5911 | cat confdefs.h >>conftest.$ac_ext | |
5912 | cat >>conftest.$ac_ext <<_ACEOF | |
5913 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5914 | #include <sys/types.h> |
5915 | #include <signal.h> | |
5916 | ||
b145d876 ZK |
5917 | int |
5918 | main () | |
5919 | { | |
ec6a6fbe | 5920 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5921 | ; |
5922 | return 0; | |
5923 | } | |
5924 | _ACEOF | |
5925 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5926 | if { (ac_try="$ac_compile" |
5927 | case "(($ac_try" in | |
5928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5929 | *) ac_try_echo=$ac_try;; | |
5930 | esac | |
ec6a6fbe AK |
5931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5932 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5933 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5934 | ac_status=$? |
8a2fc586 AK |
5935 | grep -v '^ *+' conftest.er1 >conftest.err |
5936 | rm -f conftest.er1 | |
5937 | cat conftest.err >&5 | |
ec6a6fbe | 5938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5939 | (exit $ac_status); } && { |
5940 | test -z "$ac_c_werror_flag" || | |
5941 | test ! -s conftest.err | |
5942 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5943 | ac_cv_type_signal=int |
b145d876 | 5944 | else |
ec6a6fbe | 5945 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5946 | sed 's/^/| /' conftest.$ac_ext >&5 |
5947 | ||
ec6a6fbe | 5948 | ac_cv_type_signal=void |
ad6254c5 | 5949 | fi |
b145d876 ZK |
5950 | |
5951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5952 | fi | |
ec6a6fbe AK |
5953 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5954 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 5955 | |
ad6254c5 | 5956 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5957 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 5958 | _ACEOF |
199e490e | 5959 | |
b896caa1 | 5960 | |
ec6a6fbe AK |
5961 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
5962 | $as_echo_n "checking for size_t... " >&6; } | |
5963 | if test "${ac_cv_type_size_t+set}" = set; then | |
5964 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5965 | else |
ec6a6fbe AK |
5966 | ac_cv_type_size_t=no |
5967 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
5968 | /* confdefs.h. */ |
5969 | _ACEOF | |
5970 | cat confdefs.h >>conftest.$ac_ext | |
5971 | cat >>conftest.$ac_ext <<_ACEOF | |
5972 | /* end confdefs.h. */ | |
5973 | $ac_includes_default | |
5974 | int | |
5975 | main () | |
5976 | { | |
ec6a6fbe AK |
5977 | if (sizeof (size_t)) |
5978 | return 0; | |
ad6254c5 AK |
5979 | ; |
5980 | return 0; | |
5981 | } | |
5982 | _ACEOF | |
5983 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5984 | if { (ac_try="$ac_compile" |
5985 | case "(($ac_try" in | |
5986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5987 | *) ac_try_echo=$ac_try;; | |
5988 | esac | |
ec6a6fbe AK |
5989 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5990 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5991 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5992 | ac_status=$? |
8a2fc586 AK |
5993 | grep -v '^ *+' conftest.er1 >conftest.err |
5994 | rm -f conftest.er1 | |
5995 | cat conftest.err >&5 | |
ec6a6fbe | 5996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5997 | (exit $ac_status); } && { |
5998 | test -z "$ac_c_werror_flag" || | |
5999 | test ! -s conftest.err | |
6000 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6001 | cat >conftest.$ac_ext <<_ACEOF |
6002 | /* confdefs.h. */ | |
6003 | _ACEOF | |
6004 | cat confdefs.h >>conftest.$ac_ext | |
6005 | cat >>conftest.$ac_ext <<_ACEOF | |
6006 | /* end confdefs.h. */ | |
ec6a6fbe | 6007 | $ac_includes_default |
d0191583 JM |
6008 | int |
6009 | main () | |
6010 | { | |
ec6a6fbe AK |
6011 | if (sizeof ((size_t))) |
6012 | return 0; | |
d0191583 JM |
6013 | ; |
6014 | return 0; | |
6015 | } | |
6016 | _ACEOF | |
6017 | rm -f conftest.$ac_objext | |
6018 | if { (ac_try="$ac_compile" | |
6019 | case "(($ac_try" in | |
6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6021 | *) ac_try_echo=$ac_try;; | |
6022 | esac | |
ec6a6fbe AK |
6023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6024 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6025 | (eval "$ac_compile") 2>conftest.er1 |
6026 | ac_status=$? | |
6027 | grep -v '^ *+' conftest.er1 >conftest.err | |
6028 | rm -f conftest.er1 | |
6029 | cat conftest.err >&5 | |
ec6a6fbe | 6030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6031 | (exit $ac_status); } && { |
6032 | test -z "$ac_c_werror_flag" || | |
6033 | test ! -s conftest.err | |
6034 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6035 | : |
d0191583 | 6036 | else |
ec6a6fbe | 6037 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6038 | sed 's/^/| /' conftest.$ac_ext >&5 |
6039 | ||
ec6a6fbe AK |
6040 | ac_cv_type_size_t=yes |
6041 | fi | |
6042 | ||
6043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6044 | else | |
6045 | $as_echo "$as_me: failed program was:" >&5 | |
6046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6047 | ||
6048 | ||
d0191583 JM |
6049 | fi |
6050 | ||
6051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6052 | fi | |
ec6a6fbe AK |
6053 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6054 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6055 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6056 | : | |
6057 | else | |
d0191583 JM |
6058 | |
6059 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6060 | #define size_t unsigned int |
d0191583 JM |
6061 | _ACEOF |
6062 | ||
ec6a6fbe | 6063 | fi |
d0191583 | 6064 | |
ec6a6fbe AK |
6065 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6066 | $as_echo_n "checking for mode_t... " >&6; } | |
6067 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6068 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6069 | else |
ec6a6fbe AK |
6070 | ac_cv_type_mode_t=no |
6071 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6072 | /* confdefs.h. */ |
6073 | _ACEOF | |
6074 | cat confdefs.h >>conftest.$ac_ext | |
6075 | cat >>conftest.$ac_ext <<_ACEOF | |
6076 | /* end confdefs.h. */ | |
6077 | $ac_includes_default | |
6078 | int | |
6079 | main () | |
6080 | { | |
ec6a6fbe AK |
6081 | if (sizeof (mode_t)) |
6082 | return 0; | |
ad6254c5 AK |
6083 | ; |
6084 | return 0; | |
6085 | } | |
6086 | _ACEOF | |
6087 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6088 | if { (ac_try="$ac_compile" |
6089 | case "(($ac_try" in | |
6090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6091 | *) ac_try_echo=$ac_try;; | |
6092 | esac | |
ec6a6fbe AK |
6093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6094 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6095 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6096 | ac_status=$? |
8a2fc586 AK |
6097 | grep -v '^ *+' conftest.er1 >conftest.err |
6098 | rm -f conftest.er1 | |
6099 | cat conftest.err >&5 | |
ec6a6fbe | 6100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6101 | (exit $ac_status); } && { |
6102 | test -z "$ac_c_werror_flag" || | |
6103 | test ! -s conftest.err | |
6104 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6105 | cat >conftest.$ac_ext <<_ACEOF |
6106 | /* confdefs.h. */ | |
6107 | _ACEOF | |
6108 | cat confdefs.h >>conftest.$ac_ext | |
6109 | cat >>conftest.$ac_ext <<_ACEOF | |
6110 | /* end confdefs.h. */ | |
6111 | $ac_includes_default | |
6112 | int | |
6113 | main () | |
6114 | { | |
ec6a6fbe AK |
6115 | if (sizeof ((mode_t))) |
6116 | return 0; | |
ad6254c5 AK |
6117 | ; |
6118 | return 0; | |
6119 | } | |
6120 | _ACEOF | |
6121 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6122 | if { (ac_try="$ac_compile" |
6123 | case "(($ac_try" in | |
6124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6125 | *) ac_try_echo=$ac_try;; | |
6126 | esac | |
ec6a6fbe AK |
6127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6128 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6129 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6130 | ac_status=$? |
8a2fc586 AK |
6131 | grep -v '^ *+' conftest.er1 >conftest.err |
6132 | rm -f conftest.er1 | |
6133 | cat conftest.err >&5 | |
ec6a6fbe | 6134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6135 | (exit $ac_status); } && { |
6136 | test -z "$ac_c_werror_flag" || | |
6137 | test ! -s conftest.err | |
6138 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6139 | : |
6140 | else | |
6141 | $as_echo "$as_me: failed program was:" >&5 | |
6142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6143 | ||
6144 | ac_cv_type_mode_t=yes | |
6145 | fi | |
6146 | ||
6147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6148 | else |
ec6a6fbe | 6149 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
6151 | ||
ec6a6fbe | 6152 | |
80992638 | 6153 | fi |
7a197a62 AK |
6154 | |
6155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6156 | fi |
ec6a6fbe AK |
6157 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6158 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6159 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6160 | : |
6161 | else | |
80992638 | 6162 | |
ad6254c5 AK |
6163 | cat >>confdefs.h <<_ACEOF |
6164 | #define mode_t int | |
6165 | _ACEOF | |
6166 | ||
6167 | fi | |
6168 | ||
ec6a6fbe AK |
6169 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6170 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6171 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6172 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6173 | else |
6174 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6175 | /* confdefs.h. */ |
6176 | _ACEOF | |
6177 | cat confdefs.h >>conftest.$ac_ext | |
6178 | cat >>conftest.$ac_ext <<_ACEOF | |
6179 | /* end confdefs.h. */ | |
6180 | $ac_includes_default | |
6181 | int | |
6182 | main () | |
6183 | { | |
6184 | static struct stat ac_aggr; | |
6185 | if (ac_aggr.st_rdev) | |
6186 | return 0; | |
6187 | ; | |
6188 | return 0; | |
6189 | } | |
6190 | _ACEOF | |
6191 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6192 | if { (ac_try="$ac_compile" |
6193 | case "(($ac_try" in | |
6194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6195 | *) ac_try_echo=$ac_try;; | |
6196 | esac | |
ec6a6fbe AK |
6197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6198 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6199 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6200 | ac_status=$? |
8a2fc586 AK |
6201 | grep -v '^ *+' conftest.er1 >conftest.err |
6202 | rm -f conftest.er1 | |
6203 | cat conftest.err >&5 | |
ec6a6fbe | 6204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6205 | (exit $ac_status); } && { |
6206 | test -z "$ac_c_werror_flag" || | |
6207 | test ! -s conftest.err | |
6208 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6209 | ac_cv_member_struct_stat_st_rdev=yes |
6210 | else | |
ec6a6fbe | 6211 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6212 | sed 's/^/| /' conftest.$ac_ext >&5 |
6213 | ||
7a197a62 | 6214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6215 | /* confdefs.h. */ |
6216 | _ACEOF | |
6217 | cat confdefs.h >>conftest.$ac_ext | |
6218 | cat >>conftest.$ac_ext <<_ACEOF | |
6219 | /* end confdefs.h. */ | |
6220 | $ac_includes_default | |
6221 | int | |
6222 | main () | |
6223 | { | |
6224 | static struct stat ac_aggr; | |
6225 | if (sizeof ac_aggr.st_rdev) | |
6226 | return 0; | |
6227 | ; | |
6228 | return 0; | |
6229 | } | |
6230 | _ACEOF | |
6231 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6232 | if { (ac_try="$ac_compile" |
6233 | case "(($ac_try" in | |
6234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6235 | *) ac_try_echo=$ac_try;; | |
6236 | esac | |
ec6a6fbe AK |
6237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6238 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6239 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6240 | ac_status=$? |
8a2fc586 AK |
6241 | grep -v '^ *+' conftest.er1 >conftest.err |
6242 | rm -f conftest.er1 | |
6243 | cat conftest.err >&5 | |
ec6a6fbe | 6244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6245 | (exit $ac_status); } && { |
6246 | test -z "$ac_c_werror_flag" || | |
6247 | test ! -s conftest.err | |
6248 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6249 | ac_cv_member_struct_stat_st_rdev=yes |
6250 | else | |
ec6a6fbe | 6251 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6252 | sed 's/^/| /' conftest.$ac_ext >&5 |
6253 | ||
7a197a62 | 6254 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6255 | fi |
7a197a62 AK |
6256 | |
6257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6258 | fi |
7a197a62 AK |
6259 | |
6260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6261 | fi |
ec6a6fbe AK |
6262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6263 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6264 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6265 | |
6266 | cat >>confdefs.h <<_ACEOF | |
6267 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6268 | _ACEOF | |
6269 | ||
6270 | ||
ad6254c5 AK |
6271 | fi |
6272 | ||
ec6a6fbe AK |
6273 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6274 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6275 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6276 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6277 | else |
6278 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6279 | /* confdefs.h. */ |
6280 | _ACEOF | |
6281 | cat confdefs.h >>conftest.$ac_ext | |
6282 | cat >>conftest.$ac_ext <<_ACEOF | |
6283 | /* end confdefs.h. */ | |
6284 | #include <sys/types.h> | |
6285 | #include <time.h> | |
6286 | ||
6287 | int | |
6288 | main () | |
6289 | { | |
25fbec5b AK |
6290 | struct tm tm; |
6291 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6292 | return !p; |
ad6254c5 AK |
6293 | ; |
6294 | return 0; | |
6295 | } | |
6296 | _ACEOF | |
6297 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6298 | if { (ac_try="$ac_compile" |
6299 | case "(($ac_try" in | |
6300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6301 | *) ac_try_echo=$ac_try;; | |
6302 | esac | |
ec6a6fbe AK |
6303 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6304 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6305 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6306 | ac_status=$? |
8a2fc586 AK |
6307 | grep -v '^ *+' conftest.er1 >conftest.err |
6308 | rm -f conftest.er1 | |
6309 | cat conftest.err >&5 | |
ec6a6fbe | 6310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6311 | (exit $ac_status); } && { |
6312 | test -z "$ac_c_werror_flag" || | |
6313 | test ! -s conftest.err | |
6314 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6315 | ac_cv_struct_tm=time.h |
6316 | else | |
ec6a6fbe | 6317 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6318 | sed 's/^/| /' conftest.$ac_ext >&5 |
6319 | ||
7a197a62 | 6320 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6321 | fi |
7a197a62 AK |
6322 | |
6323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6324 | fi |
ec6a6fbe AK |
6325 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6326 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6327 | if test $ac_cv_struct_tm = sys/time.h; then |
6328 | ||
6329 | cat >>confdefs.h <<\_ACEOF | |
6330 | #define TM_IN_SYS_TIME 1 | |
6331 | _ACEOF | |
6332 | ||
6333 | fi | |
809fae91 | 6334 | |
795ca3e5 | 6335 | |
80992638 | 6336 | ################################################################################ |
ad6254c5 AK |
6337 | |
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | ||
6350 | ||
d0191583 JM |
6351 | |
6352 | ||
6353 | ||
6354 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6355 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6356 | uname | |
ad6254c5 | 6357 | do |
ec6a6fbe AK |
6358 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6359 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6360 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6361 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6362 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6363 | else |
ad6254c5 | 6364 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6365 | /* confdefs.h. */ |
6366 | _ACEOF | |
6367 | cat confdefs.h >>conftest.$ac_ext | |
6368 | cat >>conftest.$ac_ext <<_ACEOF | |
6369 | /* end confdefs.h. */ | |
8a2fc586 AK |
6370 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6371 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6372 | #define $ac_func innocuous_$ac_func | |
6373 | ||
ad6254c5 AK |
6374 | /* System header to define __stub macros and hopefully few prototypes, |
6375 | which can conflict with char $ac_func (); below. | |
6376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6377 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6378 | |
ad6254c5 AK |
6379 | #ifdef __STDC__ |
6380 | # include <limits.h> | |
6381 | #else | |
6382 | # include <assert.h> | |
6383 | #endif | |
8a2fc586 AK |
6384 | |
6385 | #undef $ac_func | |
6386 | ||
7a197a62 AK |
6387 | /* Override any GCC internal prototype to avoid an error. |
6388 | Use char because int might match the return type of a GCC | |
6389 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6390 | #ifdef __cplusplus |
6391 | extern "C" | |
ad6254c5 | 6392 | #endif |
ad6254c5 AK |
6393 | char $ac_func (); |
6394 | /* The GNU C library defines this for functions which it implements | |
6395 | to always fail with ENOSYS. Some functions are actually named | |
6396 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6397 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6398 | choke me |
ad6254c5 AK |
6399 | #endif |
6400 | ||
6401 | int | |
6402 | main () | |
6403 | { | |
7a197a62 | 6404 | return $ac_func (); |
ad6254c5 AK |
6405 | ; |
6406 | return 0; | |
6407 | } | |
6408 | _ACEOF | |
6409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6410 | if { (ac_try="$ac_link" |
6411 | case "(($ac_try" in | |
6412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6413 | *) ac_try_echo=$ac_try;; | |
6414 | esac | |
ec6a6fbe AK |
6415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6416 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6417 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6418 | ac_status=$? |
8a2fc586 AK |
6419 | grep -v '^ *+' conftest.er1 >conftest.err |
6420 | rm -f conftest.er1 | |
6421 | cat conftest.err >&5 | |
ec6a6fbe | 6422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6423 | (exit $ac_status); } && { |
6424 | test -z "$ac_c_werror_flag" || | |
6425 | test ! -s conftest.err | |
ec6a6fbe AK |
6426 | } && test -s conftest$ac_exeext && { |
6427 | test "$cross_compiling" = yes || | |
6428 | $as_test_x conftest$ac_exeext | |
6429 | }; then | |
fc54be10 AK |
6430 | eval "$as_ac_var=yes" |
6431 | else | |
ec6a6fbe | 6432 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6433 | sed 's/^/| /' conftest.$ac_ext >&5 |
6434 | ||
6435 | eval "$as_ac_var=no" | |
6436 | fi | |
6437 | ||
ec6a6fbe | 6438 | rm -rf conftest.dSYM |
25fbec5b | 6439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6440 | conftest$ac_exeext conftest.$ac_ext |
6441 | fi | |
ec6a6fbe AK |
6442 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6443 | $as_echo "$as_val"'` | |
6444 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6445 | $as_echo "$ac_res" >&6; } | |
6446 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6447 | $as_echo "$as_val"'` | |
6448 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6449 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6450 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6451 | _ACEOF |
6452 | ||
6453 | else | |
ec6a6fbe AK |
6454 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6455 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6456 | { (exit 1); exit 1; }; } |
6457 | fi | |
6458 | done | |
795ca3e5 | 6459 | |
ad6254c5 AK |
6460 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6461 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6462 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6463 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6464 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6465 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6466 | else |
6467 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6468 | /* confdefs.h. */ |
6469 | _ACEOF | |
6470 | cat confdefs.h >>conftest.$ac_ext | |
6471 | cat >>conftest.$ac_ext <<_ACEOF | |
6472 | /* end confdefs.h. */ | |
6473 | #include <alloca.h> | |
6474 | int | |
6475 | main () | |
6476 | { | |
6477 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6478 | if (p) return 0; |
ad6254c5 AK |
6479 | ; |
6480 | return 0; | |
6481 | } | |
6482 | _ACEOF | |
6483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6484 | if { (ac_try="$ac_link" |
6485 | case "(($ac_try" in | |
6486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6487 | *) ac_try_echo=$ac_try;; | |
6488 | esac | |
ec6a6fbe AK |
6489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6490 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6491 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6492 | ac_status=$? |
8a2fc586 AK |
6493 | grep -v '^ *+' conftest.er1 >conftest.err |
6494 | rm -f conftest.er1 | |
6495 | cat conftest.err >&5 | |
ec6a6fbe | 6496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6497 | (exit $ac_status); } && { |
6498 | test -z "$ac_c_werror_flag" || | |
6499 | test ! -s conftest.err | |
ec6a6fbe AK |
6500 | } && test -s conftest$ac_exeext && { |
6501 | test "$cross_compiling" = yes || | |
6502 | $as_test_x conftest$ac_exeext | |
6503 | }; then | |
ad6254c5 AK |
6504 | ac_cv_working_alloca_h=yes |
6505 | else | |
ec6a6fbe | 6506 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6507 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6508 | |
7a197a62 | 6509 | ac_cv_working_alloca_h=no |
ad6254c5 | 6510 | fi |
7a197a62 | 6511 | |
ec6a6fbe | 6512 | rm -rf conftest.dSYM |
25fbec5b | 6513 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6514 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6515 | fi |
ec6a6fbe AK |
6516 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6517 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6518 | if test $ac_cv_working_alloca_h = yes; then |
6519 | ||
6520 | cat >>confdefs.h <<\_ACEOF | |
6521 | #define HAVE_ALLOCA_H 1 | |
6522 | _ACEOF | |
6523 | ||
6524 | fi | |
6525 | ||
ec6a6fbe AK |
6526 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6527 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6528 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6529 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6530 | else |
6531 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6532 | /* confdefs.h. */ |
6533 | _ACEOF | |
6534 | cat confdefs.h >>conftest.$ac_ext | |
6535 | cat >>conftest.$ac_ext <<_ACEOF | |
6536 | /* end confdefs.h. */ | |
6537 | #ifdef __GNUC__ | |
6538 | # define alloca __builtin_alloca | |
6539 | #else | |
6540 | # ifdef _MSC_VER | |
6541 | # include <malloc.h> | |
6542 | # define alloca _alloca | |
6543 | # else | |
25fbec5b | 6544 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6545 | # include <alloca.h> |
6546 | # else | |
6547 | # ifdef _AIX | |
6548 | #pragma alloca | |
6549 | # else | |
6550 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6551 | char *alloca (); | |
6552 | # endif | |
6553 | # endif | |
6554 | # endif | |
6555 | # endif | |
6556 | #endif | |
6557 | ||
6558 | int | |
6559 | main () | |
6560 | { | |
6561 | char *p = (char *) alloca (1); | |
7a197a62 | 6562 | if (p) return 0; |
ad6254c5 AK |
6563 | ; |
6564 | return 0; | |
6565 | } | |
6566 | _ACEOF | |
6567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6568 | if { (ac_try="$ac_link" |
6569 | case "(($ac_try" in | |
6570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6571 | *) ac_try_echo=$ac_try;; | |
6572 | esac | |
ec6a6fbe AK |
6573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6574 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6575 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6576 | ac_status=$? |
8a2fc586 AK |
6577 | grep -v '^ *+' conftest.er1 >conftest.err |
6578 | rm -f conftest.er1 | |
6579 | cat conftest.err >&5 | |
ec6a6fbe | 6580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6581 | (exit $ac_status); } && { |
6582 | test -z "$ac_c_werror_flag" || | |
6583 | test ! -s conftest.err | |
ec6a6fbe AK |
6584 | } && test -s conftest$ac_exeext && { |
6585 | test "$cross_compiling" = yes || | |
6586 | $as_test_x conftest$ac_exeext | |
6587 | }; then | |
ad6254c5 AK |
6588 | ac_cv_func_alloca_works=yes |
6589 | else | |
ec6a6fbe | 6590 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6591 | sed 's/^/| /' conftest.$ac_ext >&5 |
6592 | ||
7a197a62 | 6593 | ac_cv_func_alloca_works=no |
ad6254c5 | 6594 | fi |
7a197a62 | 6595 | |
ec6a6fbe | 6596 | rm -rf conftest.dSYM |
25fbec5b | 6597 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6598 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6599 | fi |
ec6a6fbe AK |
6600 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6601 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6602 | |
6603 | if test $ac_cv_func_alloca_works = yes; then | |
6604 | ||
6605 | cat >>confdefs.h <<\_ACEOF | |
6606 | #define HAVE_ALLOCA 1 | |
6607 | _ACEOF | |
6608 | ||
6609 | else | |
6610 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6611 | # that cause trouble. Some versions do not even contain alloca or | |
6612 | # contain a buggy version. If you still want to use their alloca, | |
6613 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6614 | ||
7a197a62 | 6615 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6616 | |
6617 | cat >>confdefs.h <<\_ACEOF | |
6618 | #define C_ALLOCA 1 | |
6619 | _ACEOF | |
6620 | ||
6621 | ||
ec6a6fbe AK |
6622 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6623 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6624 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6625 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6626 | else |
6627 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6628 | /* confdefs.h. */ |
6629 | _ACEOF | |
6630 | cat confdefs.h >>conftest.$ac_ext | |
6631 | cat >>conftest.$ac_ext <<_ACEOF | |
6632 | /* end confdefs.h. */ | |
7a197a62 | 6633 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6634 | webecray |
6635 | #else | |
6636 | wenotbecray | |
6637 | #endif | |
6638 | ||
6639 | _ACEOF | |
795ca3e5 | 6640 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6641 | $EGREP "webecray" >/dev/null 2>&1; then |
6642 | ac_cv_os_cray=yes | |
6643 | else | |
6644 | ac_cv_os_cray=no | |
795ca3e5 AK |
6645 | fi |
6646 | rm -f conftest* | |
6647 | ||
795ca3e5 | 6648 | fi |
ec6a6fbe AK |
6649 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6650 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6651 | if test $ac_cv_os_cray = yes; then |
6652 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6653 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6654 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6655 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6656 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6657 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6658 | else |
6659 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6660 | /* confdefs.h. */ |
6661 | _ACEOF | |
6662 | cat confdefs.h >>conftest.$ac_ext | |
6663 | cat >>conftest.$ac_ext <<_ACEOF | |
6664 | /* end confdefs.h. */ | |
8a2fc586 AK |
6665 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6666 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6667 | #define $ac_func innocuous_$ac_func | |
6668 | ||
ad6254c5 AK |
6669 | /* System header to define __stub macros and hopefully few prototypes, |
6670 | which can conflict with char $ac_func (); below. | |
6671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6672 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6673 | |
ad6254c5 AK |
6674 | #ifdef __STDC__ |
6675 | # include <limits.h> | |
6676 | #else | |
6677 | # include <assert.h> | |
6678 | #endif | |
8a2fc586 AK |
6679 | |
6680 | #undef $ac_func | |
6681 | ||
7a197a62 AK |
6682 | /* Override any GCC internal prototype to avoid an error. |
6683 | Use char because int might match the return type of a GCC | |
6684 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6685 | #ifdef __cplusplus |
6686 | extern "C" | |
ad6254c5 | 6687 | #endif |
ad6254c5 AK |
6688 | char $ac_func (); |
6689 | /* The GNU C library defines this for functions which it implements | |
6690 | to always fail with ENOSYS. Some functions are actually named | |
6691 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6692 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6693 | choke me |
ad6254c5 AK |
6694 | #endif |
6695 | ||
6696 | int | |
6697 | main () | |
6698 | { | |
7a197a62 | 6699 | return $ac_func (); |
ad6254c5 AK |
6700 | ; |
6701 | return 0; | |
6702 | } | |
6703 | _ACEOF | |
6704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6705 | if { (ac_try="$ac_link" |
6706 | case "(($ac_try" in | |
6707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6708 | *) ac_try_echo=$ac_try;; | |
6709 | esac | |
ec6a6fbe AK |
6710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6711 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6712 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6713 | ac_status=$? |
8a2fc586 AK |
6714 | grep -v '^ *+' conftest.er1 >conftest.err |
6715 | rm -f conftest.er1 | |
6716 | cat conftest.err >&5 | |
ec6a6fbe | 6717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6718 | (exit $ac_status); } && { |
6719 | test -z "$ac_c_werror_flag" || | |
6720 | test ! -s conftest.err | |
ec6a6fbe AK |
6721 | } && test -s conftest$ac_exeext && { |
6722 | test "$cross_compiling" = yes || | |
6723 | $as_test_x conftest$ac_exeext | |
6724 | }; then | |
ad6254c5 AK |
6725 | eval "$as_ac_var=yes" |
6726 | else | |
ec6a6fbe | 6727 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6728 | sed 's/^/| /' conftest.$ac_ext >&5 |
6729 | ||
7a197a62 | 6730 | eval "$as_ac_var=no" |
ad6254c5 | 6731 | fi |
7a197a62 | 6732 | |
ec6a6fbe | 6733 | rm -rf conftest.dSYM |
25fbec5b | 6734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6735 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6736 | fi |
ec6a6fbe AK |
6737 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6738 | $as_echo "$as_val"'` | |
6739 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6740 | $as_echo "$ac_res" >&6; } | |
6741 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6742 | $as_echo "$as_val"'` | |
6743 | if test "x$as_val" = x""yes; then | |
80992638 | 6744 | |
ad6254c5 AK |
6745 | cat >>confdefs.h <<_ACEOF |
6746 | #define CRAY_STACKSEG_END $ac_func | |
6747 | _ACEOF | |
6748 | ||
6749 | break | |
6750 | fi | |
6751 | ||
6752 | done | |
6753 | fi | |
6754 | ||
ec6a6fbe AK |
6755 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6756 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6757 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6758 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6759 | else |
6760 | if test "$cross_compiling" = yes; then | |
6761 | ac_cv_c_stack_direction=0 | |
6762 | else | |
6763 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6764 | /* confdefs.h. */ |
6765 | _ACEOF | |
6766 | cat confdefs.h >>conftest.$ac_ext | |
6767 | cat >>conftest.$ac_ext <<_ACEOF | |
6768 | /* end confdefs.h. */ | |
7a197a62 | 6769 | $ac_includes_default |
ad6254c5 AK |
6770 | int |
6771 | find_stack_direction () | |
6772 | { | |
6773 | static char *addr = 0; | |
6774 | auto char dummy; | |
6775 | if (addr == 0) | |
6776 | { | |
6777 | addr = &dummy; | |
6778 | return find_stack_direction (); | |
6779 | } | |
6780 | else | |
6781 | return (&dummy > addr) ? 1 : -1; | |
6782 | } | |
6783 | ||
6784 | int | |
6785 | main () | |
6786 | { | |
7a197a62 | 6787 | return find_stack_direction () < 0; |
ad6254c5 AK |
6788 | } |
6789 | _ACEOF | |
6790 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6791 | if { (ac_try="$ac_link" |
6792 | case "(($ac_try" in | |
6793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6794 | *) ac_try_echo=$ac_try;; | |
6795 | esac | |
ec6a6fbe AK |
6796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6797 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6798 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6799 | ac_status=$? |
ec6a6fbe | 6800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6802 | { (case "(($ac_try" in |
6803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6804 | *) ac_try_echo=$ac_try;; | |
6805 | esac | |
ec6a6fbe AK |
6806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6807 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6808 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6809 | ac_status=$? |
ec6a6fbe | 6810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6811 | (exit $ac_status); }; }; then |
6812 | ac_cv_c_stack_direction=1 | |
6813 | else | |
ec6a6fbe AK |
6814 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6815 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6816 | sed 's/^/| /' conftest.$ac_ext >&5 |
6817 | ||
6818 | ( exit $ac_status ) | |
6819 | ac_cv_c_stack_direction=-1 | |
6820 | fi | |
ec6a6fbe | 6821 | rm -rf conftest.dSYM |
7a197a62 | 6822 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6823 | fi |
7a197a62 AK |
6824 | |
6825 | ||
ad6254c5 | 6826 | fi |
ec6a6fbe AK |
6827 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6828 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6829 | |
6830 | cat >>confdefs.h <<_ACEOF | |
6831 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6832 | _ACEOF | |
6833 | ||
6834 | ||
6835 | fi | |
6836 | ||
ec6a6fbe AK |
6837 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6838 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6839 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6840 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6841 | else |
6842 | if test "$cross_compiling" = yes; then | |
6843 | ac_cv_func_closedir_void=yes | |
6844 | else | |
6845 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6846 | /* confdefs.h. */ |
6847 | _ACEOF | |
6848 | cat confdefs.h >>conftest.$ac_ext | |
6849 | cat >>conftest.$ac_ext <<_ACEOF | |
6850 | /* end confdefs.h. */ | |
6851 | $ac_includes_default | |
6852 | #include <$ac_header_dirent> | |
6853 | #ifndef __cplusplus | |
6854 | int closedir (); | |
6855 | #endif | |
6856 | ||
6857 | int | |
6858 | main () | |
6859 | { | |
7a197a62 | 6860 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6861 | ; |
6862 | return 0; | |
6863 | } | |
6864 | _ACEOF | |
6865 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6866 | if { (ac_try="$ac_link" |
6867 | case "(($ac_try" in | |
6868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6869 | *) ac_try_echo=$ac_try;; | |
6870 | esac | |
ec6a6fbe AK |
6871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6872 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6873 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6874 | ac_status=$? |
ec6a6fbe | 6875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6876 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6877 | { (case "(($ac_try" in |
6878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6879 | *) ac_try_echo=$ac_try;; | |
6880 | esac | |
ec6a6fbe AK |
6881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6882 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6883 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6884 | ac_status=$? |
ec6a6fbe | 6885 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6886 | (exit $ac_status); }; }; then |
6887 | ac_cv_func_closedir_void=no | |
6888 | else | |
ec6a6fbe AK |
6889 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6890 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6891 | sed 's/^/| /' conftest.$ac_ext >&5 |
6892 | ||
6893 | ( exit $ac_status ) | |
6894 | ac_cv_func_closedir_void=yes | |
6895 | fi | |
ec6a6fbe | 6896 | rm -rf conftest.dSYM |
7a197a62 | 6897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6898 | fi |
7a197a62 AK |
6899 | |
6900 | ||
ad6254c5 | 6901 | fi |
ec6a6fbe AK |
6902 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6903 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6904 | if test $ac_cv_func_closedir_void = yes; then |
6905 | ||
6906 | cat >>confdefs.h <<\_ACEOF | |
6907 | #define CLOSEDIR_VOID 1 | |
6908 | _ACEOF | |
6909 | ||
6910 | fi | |
6911 | ||
6912 | ||
7a197a62 | 6913 | for ac_header in vfork.h |
ad6254c5 | 6914 | do |
ec6a6fbe | 6915 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6916 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6917 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6918 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6919 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6920 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6921 | fi |
ec6a6fbe AK |
6922 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6923 | $as_echo "$as_val"'` | |
6924 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6925 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6926 | else |
6927 | # Is the header compilable? | |
ec6a6fbe AK |
6928 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6929 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6930 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6931 | /* confdefs.h. */ |
6932 | _ACEOF | |
6933 | cat confdefs.h >>conftest.$ac_ext | |
6934 | cat >>conftest.$ac_ext <<_ACEOF | |
6935 | /* end confdefs.h. */ | |
6936 | $ac_includes_default | |
6937 | #include <$ac_header> | |
6938 | _ACEOF | |
6939 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6940 | if { (ac_try="$ac_compile" |
6941 | case "(($ac_try" in | |
6942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6943 | *) ac_try_echo=$ac_try;; | |
6944 | esac | |
ec6a6fbe AK |
6945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6946 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6947 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6948 | ac_status=$? |
8a2fc586 AK |
6949 | grep -v '^ *+' conftest.er1 >conftest.err |
6950 | rm -f conftest.er1 | |
6951 | cat conftest.err >&5 | |
ec6a6fbe | 6952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6953 | (exit $ac_status); } && { |
6954 | test -z "$ac_c_werror_flag" || | |
6955 | test ! -s conftest.err | |
6956 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6957 | ac_header_compiler=yes |
6958 | else | |
ec6a6fbe | 6959 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6960 | sed 's/^/| /' conftest.$ac_ext >&5 |
6961 | ||
7a197a62 | 6962 | ac_header_compiler=no |
ad6254c5 | 6963 | fi |
7a197a62 AK |
6964 | |
6965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
6966 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6967 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6968 | |
6969 | # Is the header present? | |
ec6a6fbe AK |
6970 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6971 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 6972 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6973 | /* confdefs.h. */ |
6974 | _ACEOF | |
6975 | cat confdefs.h >>conftest.$ac_ext | |
6976 | cat >>conftest.$ac_ext <<_ACEOF | |
6977 | /* end confdefs.h. */ | |
6978 | #include <$ac_header> | |
6979 | _ACEOF | |
7a197a62 AK |
6980 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6981 | case "(($ac_try" in | |
6982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6983 | *) ac_try_echo=$ac_try;; | |
6984 | esac | |
ec6a6fbe AK |
6985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6986 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6987 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6988 | ac_status=$? |
6989 | grep -v '^ *+' conftest.er1 >conftest.err | |
6990 | rm -f conftest.er1 | |
6991 | cat conftest.err >&5 | |
ec6a6fbe | 6992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6993 | (exit $ac_status); } >/dev/null && { |
6994 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6995 | test ! -s conftest.err | |
6996 | }; then | |
ad6254c5 AK |
6997 | ac_header_preproc=yes |
6998 | else | |
ec6a6fbe | 6999 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7000 | sed 's/^/| /' conftest.$ac_ext >&5 |
7001 | ||
7002 | ac_header_preproc=no | |
7003 | fi | |
7a197a62 | 7004 | |
ad6254c5 | 7005 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7006 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7007 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7008 | |
7009 | # So? What about this header? | |
8a2fc586 AK |
7010 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7011 | yes:no: ) | |
ec6a6fbe AK |
7012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7013 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7015 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7016 | ac_header_preproc=yes |
ad6254c5 | 7017 | ;; |
8a2fc586 | 7018 | no:yes:* ) |
ec6a6fbe AK |
7019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7020 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7022 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7024 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7026 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7028 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7030 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7031 | |
ad6254c5 AK |
7032 | ;; |
7033 | esac | |
ec6a6fbe AK |
7034 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7035 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7037 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7038 | else |
8a2fc586 | 7039 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7040 | fi |
ec6a6fbe AK |
7041 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7042 | $as_echo "$as_val"'` | |
7043 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7044 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7045 | |
795ca3e5 | 7046 | fi |
ec6a6fbe AK |
7047 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7048 | $as_echo "$as_val"'` | |
7049 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7050 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7051 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7052 | _ACEOF |
7053 | ||
7054 | fi | |
7055 | ||
7056 | done | |
795ca3e5 | 7057 | |
ad6254c5 AK |
7058 | |
7059 | ||
7060 | for ac_func in fork vfork | |
7061 | do | |
ec6a6fbe AK |
7062 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7063 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7064 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7065 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7066 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7067 | else |
ad6254c5 | 7068 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7069 | /* confdefs.h. */ |
7070 | _ACEOF | |
7071 | cat confdefs.h >>conftest.$ac_ext | |
7072 | cat >>conftest.$ac_ext <<_ACEOF | |
7073 | /* end confdefs.h. */ | |
8a2fc586 AK |
7074 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7076 | #define $ac_func innocuous_$ac_func | |
7077 | ||
ad6254c5 AK |
7078 | /* System header to define __stub macros and hopefully few prototypes, |
7079 | which can conflict with char $ac_func (); below. | |
7080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7081 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7082 | |
ad6254c5 AK |
7083 | #ifdef __STDC__ |
7084 | # include <limits.h> | |
7085 | #else | |
7086 | # include <assert.h> | |
795ca3e5 | 7087 | #endif |
8a2fc586 AK |
7088 | |
7089 | #undef $ac_func | |
7090 | ||
7a197a62 AK |
7091 | /* Override any GCC internal prototype to avoid an error. |
7092 | Use char because int might match the return type of a GCC | |
7093 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7094 | #ifdef __cplusplus |
ad6254c5 | 7095 | extern "C" |
ad6254c5 | 7096 | #endif |
ad6254c5 AK |
7097 | char $ac_func (); |
7098 | /* The GNU C library defines this for functions which it implements | |
7099 | to always fail with ENOSYS. Some functions are actually named | |
7100 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7101 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7102 | choke me |
795ca3e5 AK |
7103 | #endif |
7104 | ||
ad6254c5 AK |
7105 | int |
7106 | main () | |
7107 | { | |
7a197a62 | 7108 | return $ac_func (); |
ad6254c5 AK |
7109 | ; |
7110 | return 0; | |
7111 | } | |
7112 | _ACEOF | |
7113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7114 | if { (ac_try="$ac_link" |
7115 | case "(($ac_try" in | |
7116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7117 | *) ac_try_echo=$ac_try;; | |
7118 | esac | |
ec6a6fbe AK |
7119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7120 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7121 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7122 | ac_status=$? |
8a2fc586 AK |
7123 | grep -v '^ *+' conftest.er1 >conftest.err |
7124 | rm -f conftest.er1 | |
7125 | cat conftest.err >&5 | |
ec6a6fbe | 7126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7127 | (exit $ac_status); } && { |
7128 | test -z "$ac_c_werror_flag" || | |
7129 | test ! -s conftest.err | |
ec6a6fbe AK |
7130 | } && test -s conftest$ac_exeext && { |
7131 | test "$cross_compiling" = yes || | |
7132 | $as_test_x conftest$ac_exeext | |
7133 | }; then | |
ad6254c5 | 7134 | eval "$as_ac_var=yes" |
795ca3e5 | 7135 | else |
ec6a6fbe | 7136 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7137 | sed 's/^/| /' conftest.$ac_ext >&5 |
7138 | ||
7a197a62 | 7139 | eval "$as_ac_var=no" |
795ca3e5 | 7140 | fi |
7a197a62 | 7141 | |
ec6a6fbe | 7142 | rm -rf conftest.dSYM |
25fbec5b | 7143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7144 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7145 | fi |
ec6a6fbe AK |
7146 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7147 | $as_echo "$as_val"'` | |
7148 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7149 | $as_echo "$ac_res" >&6; } | |
7150 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7151 | $as_echo "$as_val"'` | |
7152 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7153 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7154 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7155 | _ACEOF |
7156 | ||
7157 | fi | |
7158 | done | |
7159 | ||
7160 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7161 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7162 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7163 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7164 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7165 | else |
7166 | if test "$cross_compiling" = yes; then | |
7167 | ac_cv_func_fork_works=cross | |
7168 | else | |
7169 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7170 | /* confdefs.h. */ |
7171 | _ACEOF | |
7172 | cat confdefs.h >>conftest.$ac_ext | |
7173 | cat >>conftest.$ac_ext <<_ACEOF | |
7174 | /* end confdefs.h. */ | |
7175 | $ac_includes_default | |
7176 | int | |
7177 | main () | |
7178 | { | |
7179 | ||
7180 | /* By Ruediger Kuhlmann. */ | |
7181 | return fork () < 0; | |
7182 | ||
7183 | ; | |
7184 | return 0; | |
7185 | } | |
ad6254c5 AK |
7186 | _ACEOF |
7187 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7188 | if { (ac_try="$ac_link" |
7189 | case "(($ac_try" in | |
7190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7191 | *) ac_try_echo=$ac_try;; | |
7192 | esac | |
ec6a6fbe AK |
7193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7194 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7195 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7196 | ac_status=$? |
ec6a6fbe | 7197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7198 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7199 | { (case "(($ac_try" in |
7200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7201 | *) ac_try_echo=$ac_try;; | |
7202 | esac | |
ec6a6fbe AK |
7203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7204 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7205 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7206 | ac_status=$? |
ec6a6fbe | 7207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7208 | (exit $ac_status); }; }; then |
7209 | ac_cv_func_fork_works=yes | |
7210 | else | |
ec6a6fbe AK |
7211 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7212 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7213 | sed 's/^/| /' conftest.$ac_ext >&5 |
7214 | ||
7215 | ( exit $ac_status ) | |
7216 | ac_cv_func_fork_works=no | |
7217 | fi | |
ec6a6fbe | 7218 | rm -rf conftest.dSYM |
7a197a62 | 7219 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7220 | fi |
7a197a62 AK |
7221 | |
7222 | ||
ad6254c5 | 7223 | fi |
ec6a6fbe AK |
7224 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7225 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7226 | |
7227 | else | |
7228 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7229 | fi | |
7230 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7231 | case $host in | |
7232 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7233 | # Override, as these systems have only a dummy fork() stub | |
7234 | ac_cv_func_fork_works=no | |
7235 | ;; | |
7236 | *) | |
7237 | ac_cv_func_fork_works=yes | |
7238 | ;; | |
7239 | esac | |
ec6a6fbe AK |
7240 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7241 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7242 | fi |
7243 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7244 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7245 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7246 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7247 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7248 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7249 | else |
7250 | if test "$cross_compiling" = yes; then | |
7251 | ac_cv_func_vfork_works=cross | |
7252 | else | |
7253 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7254 | /* confdefs.h. */ |
7255 | _ACEOF | |
7256 | cat confdefs.h >>conftest.$ac_ext | |
7257 | cat >>conftest.$ac_ext <<_ACEOF | |
7258 | /* end confdefs.h. */ | |
7259 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7260 | $ac_includes_default |
ad6254c5 | 7261 | #include <sys/wait.h> |
25fbec5b | 7262 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7263 | # include <vfork.h> |
7264 | #endif | |
7265 | /* On some sparc systems, changes by the child to local and incoming | |
7266 | argument registers are propagated back to the parent. The compiler | |
7267 | is told about this with #include <vfork.h>, but some compilers | |
7268 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7269 | static variable whose address is put into a register that is | |
7270 | clobbered by the vfork. */ | |
7271 | static void | |
7272 | #ifdef __cplusplus | |
7273 | sparc_address_test (int arg) | |
7274 | # else | |
7275 | sparc_address_test (arg) int arg; | |
7276 | #endif | |
7277 | { | |
7278 | static pid_t child; | |
7279 | if (!child) { | |
7280 | child = vfork (); | |
7281 | if (child < 0) { | |
7282 | perror ("vfork"); | |
7283 | _exit(2); | |
7284 | } | |
7285 | if (!child) { | |
7286 | arg = getpid(); | |
7287 | write(-1, "", 0); | |
7288 | _exit (arg); | |
7289 | } | |
7290 | } | |
7291 | } | |
7292 | ||
7293 | int | |
7294 | main () | |
7295 | { | |
7296 | pid_t parent = getpid (); | |
7297 | pid_t child; | |
7298 | ||
7299 | sparc_address_test (0); | |
7300 | ||
7301 | child = vfork (); | |
7302 | ||
7303 | if (child == 0) { | |
7304 | /* Here is another test for sparc vfork register problems. This | |
7305 | test uses lots of local variables, at least as many local | |
7306 | variables as main has allocated so far including compiler | |
7307 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7308 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7309 | reuse the register of parent for one of the local variables, | |
7310 | since it will think that parent can't possibly be used any more | |
7311 | in this routine. Assigning to the local variable will thus | |
7312 | munge parent in the parent process. */ | |
7313 | pid_t | |
7314 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7315 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7316 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7317 | use the same hardware register for all 8 local variables. */ | |
7318 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7319 | || p != p5 || p != p6 || p != p7) | |
7320 | _exit(1); | |
7321 | ||
7322 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7323 | from child file descriptors. If the child closes a descriptor | |
7324 | before it execs or exits, this munges the parent's descriptor | |
7325 | as well. Test for this by closing stdout in the child. */ | |
7326 | _exit(close(fileno(stdout)) != 0); | |
7327 | } else { | |
7328 | int status; | |
7329 | struct stat st; | |
7330 | ||
7331 | while (wait(&status) != child) | |
7332 | ; | |
7a197a62 | 7333 | return ( |
ad6254c5 AK |
7334 | /* Was there some problem with vforking? */ |
7335 | child < 0 | |
7336 | ||
7337 | /* Did the child fail? (This shouldn't happen.) */ | |
7338 | || status | |
7339 | ||
7340 | /* Did the vfork/compiler bug occur? */ | |
7341 | || parent != getpid() | |
7342 | ||
7343 | /* Did the file descriptor bug occur? */ | |
7344 | || fstat(fileno(stdout), &st) != 0 | |
7345 | ); | |
7346 | } | |
7347 | } | |
7348 | _ACEOF | |
7349 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7350 | if { (ac_try="$ac_link" |
7351 | case "(($ac_try" in | |
7352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7353 | *) ac_try_echo=$ac_try;; | |
7354 | esac | |
ec6a6fbe AK |
7355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7356 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7357 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7358 | ac_status=$? |
ec6a6fbe | 7359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7360 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7361 | { (case "(($ac_try" in |
7362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7363 | *) ac_try_echo=$ac_try;; | |
7364 | esac | |
ec6a6fbe AK |
7365 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7366 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7367 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7368 | ac_status=$? |
ec6a6fbe | 7369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7370 | (exit $ac_status); }; }; then |
7371 | ac_cv_func_vfork_works=yes | |
7372 | else | |
ec6a6fbe AK |
7373 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7374 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7375 | sed 's/^/| /' conftest.$ac_ext >&5 |
7376 | ||
7377 | ( exit $ac_status ) | |
7378 | ac_cv_func_vfork_works=no | |
7379 | fi | |
ec6a6fbe | 7380 | rm -rf conftest.dSYM |
7a197a62 | 7381 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7382 | fi |
7a197a62 AK |
7383 | |
7384 | ||
ad6254c5 | 7385 | fi |
ec6a6fbe AK |
7386 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7387 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7388 | |
7389 | fi; | |
7390 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7391 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7392 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7393 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7394 | fi |
7395 | ||
7396 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7397 | ||
7398 | cat >>confdefs.h <<\_ACEOF | |
7399 | #define HAVE_WORKING_VFORK 1 | |
7400 | _ACEOF | |
7401 | ||
7402 | else | |
7403 | ||
7404 | cat >>confdefs.h <<\_ACEOF | |
7405 | #define vfork fork | |
7406 | _ACEOF | |
7407 | ||
7408 | fi | |
7409 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7410 | ||
7411 | cat >>confdefs.h <<\_ACEOF | |
7412 | #define HAVE_WORKING_FORK 1 | |
7413 | _ACEOF | |
7414 | ||
7415 | fi | |
7416 | ||
ec6a6fbe AK |
7417 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7418 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7419 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7420 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7421 | else |
7422 | rm -f conftest.sym conftest.file | |
7423 | echo >conftest.file | |
7424 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7425 | if test "$cross_compiling" = yes; then | |
7426 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7427 | else | |
7428 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7429 | /* confdefs.h. */ |
7430 | _ACEOF | |
7431 | cat confdefs.h >>conftest.$ac_ext | |
7432 | cat >>conftest.$ac_ext <<_ACEOF | |
7433 | /* end confdefs.h. */ | |
7434 | $ac_includes_default | |
7435 | int | |
7436 | main () | |
7437 | { | |
7438 | struct stat sbuf; | |
7439 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7440 | That is better in the sense that it means we will not |
7441 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7442 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7443 | ; |
7444 | return 0; | |
7445 | } | |
7446 | _ACEOF | |
7447 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7448 | if { (ac_try="$ac_link" |
7449 | case "(($ac_try" in | |
7450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7451 | *) ac_try_echo=$ac_try;; | |
7452 | esac | |
ec6a6fbe AK |
7453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7454 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7455 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7456 | ac_status=$? |
ec6a6fbe | 7457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7458 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7459 | { (case "(($ac_try" in |
7460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7461 | *) ac_try_echo=$ac_try;; | |
7462 | esac | |
ec6a6fbe AK |
7463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7464 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7465 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7466 | ac_status=$? |
ec6a6fbe | 7467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7468 | (exit $ac_status); }; }; then |
7469 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7470 | else | |
ec6a6fbe AK |
7471 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7472 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7473 | sed 's/^/| /' conftest.$ac_ext >&5 |
7474 | ||
7475 | ( exit $ac_status ) | |
7476 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7477 | fi | |
ec6a6fbe | 7478 | rm -rf conftest.dSYM |
7a197a62 | 7479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7480 | fi |
7a197a62 AK |
7481 | |
7482 | ||
ad6254c5 AK |
7483 | else |
7484 | # If the `ln -s' command failed, then we probably don't even | |
7485 | # have an lstat function. | |
7486 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7487 | fi | |
7488 | rm -f conftest.sym conftest.file | |
7489 | ||
7490 | fi | |
ec6a6fbe AK |
7491 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7492 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7493 | |
7494 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7495 | ||
7496 | cat >>confdefs.h <<_ACEOF | |
7497 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7498 | _ACEOF | |
7499 | ||
7500 | ||
7501 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7502 | case " $LIBOBJS " in |
8a2fc586 | 7503 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7504 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7505 | ;; | |
8a2fc586 AK |
7506 | esac |
7507 | ||
ad6254c5 AK |
7508 | fi |
7509 | ||
ec6a6fbe AK |
7510 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7511 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7512 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7513 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7514 | else |
7515 | if test "$cross_compiling" = yes; then | |
7516 | ac_cv_func_lstat_empty_string_bug=yes | |
7517 | else | |
7518 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7519 | /* confdefs.h. */ |
7520 | _ACEOF | |
7521 | cat confdefs.h >>conftest.$ac_ext | |
7522 | cat >>conftest.$ac_ext <<_ACEOF | |
7523 | /* end confdefs.h. */ | |
7524 | $ac_includes_default | |
7525 | int | |
7526 | main () | |
7527 | { | |
7528 | struct stat sbuf; | |
7a197a62 | 7529 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7530 | ; |
7531 | return 0; | |
7532 | } | |
7533 | _ACEOF | |
7534 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7535 | if { (ac_try="$ac_link" |
7536 | case "(($ac_try" in | |
7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7538 | *) ac_try_echo=$ac_try;; | |
7539 | esac | |
ec6a6fbe AK |
7540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7541 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7542 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7543 | ac_status=$? |
ec6a6fbe | 7544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7546 | { (case "(($ac_try" in |
7547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7548 | *) ac_try_echo=$ac_try;; | |
7549 | esac | |
ec6a6fbe AK |
7550 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7551 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7552 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7553 | ac_status=$? |
ec6a6fbe | 7554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7555 | (exit $ac_status); }; }; then |
7a197a62 | 7556 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7557 | else |
ec6a6fbe AK |
7558 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7559 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7560 | sed 's/^/| /' conftest.$ac_ext >&5 |
7561 | ||
7562 | ( exit $ac_status ) | |
7a197a62 | 7563 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7564 | fi |
ec6a6fbe | 7565 | rm -rf conftest.dSYM |
7a197a62 | 7566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7567 | fi |
7a197a62 AK |
7568 | |
7569 | ||
ad6254c5 | 7570 | fi |
ec6a6fbe AK |
7571 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7572 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7573 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7574 | case " $LIBOBJS " in |
8a2fc586 | 7575 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7576 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7577 | ;; | |
8a2fc586 AK |
7578 | esac |
7579 | ||
ad6254c5 AK |
7580 | |
7581 | cat >>confdefs.h <<_ACEOF | |
7582 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7583 | _ACEOF | |
7584 | ||
7585 | fi | |
7586 | ||
7587 | ||
7588 | for ac_header in stdlib.h | |
7589 | do | |
ec6a6fbe | 7590 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7591 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7592 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7593 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7594 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7595 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7596 | fi |
ec6a6fbe AK |
7597 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7598 | $as_echo "$as_val"'` | |
7599 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7600 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7601 | else |
7602 | # Is the header compilable? | |
ec6a6fbe AK |
7603 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7604 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7605 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7606 | /* confdefs.h. */ |
7607 | _ACEOF | |
7608 | cat confdefs.h >>conftest.$ac_ext | |
7609 | cat >>conftest.$ac_ext <<_ACEOF | |
7610 | /* end confdefs.h. */ | |
7611 | $ac_includes_default | |
7612 | #include <$ac_header> | |
7613 | _ACEOF | |
7614 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7615 | if { (ac_try="$ac_compile" |
7616 | case "(($ac_try" in | |
7617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7618 | *) ac_try_echo=$ac_try;; | |
7619 | esac | |
ec6a6fbe AK |
7620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7621 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7622 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7623 | ac_status=$? |
8a2fc586 AK |
7624 | grep -v '^ *+' conftest.er1 >conftest.err |
7625 | rm -f conftest.er1 | |
7626 | cat conftest.err >&5 | |
ec6a6fbe | 7627 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7628 | (exit $ac_status); } && { |
7629 | test -z "$ac_c_werror_flag" || | |
7630 | test ! -s conftest.err | |
7631 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7632 | ac_header_compiler=yes |
7633 | else | |
ec6a6fbe | 7634 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7635 | sed 's/^/| /' conftest.$ac_ext >&5 |
7636 | ||
7a197a62 | 7637 | ac_header_compiler=no |
ad6254c5 | 7638 | fi |
7a197a62 AK |
7639 | |
7640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7641 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7642 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7643 | |
7644 | # Is the header present? | |
ec6a6fbe AK |
7645 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7646 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7647 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7648 | /* confdefs.h. */ |
7649 | _ACEOF | |
7650 | cat confdefs.h >>conftest.$ac_ext | |
7651 | cat >>conftest.$ac_ext <<_ACEOF | |
7652 | /* end confdefs.h. */ | |
7653 | #include <$ac_header> | |
7654 | _ACEOF | |
7a197a62 AK |
7655 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7656 | case "(($ac_try" in | |
7657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7658 | *) ac_try_echo=$ac_try;; | |
7659 | esac | |
ec6a6fbe AK |
7660 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7661 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7662 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7663 | ac_status=$? |
7664 | grep -v '^ *+' conftest.er1 >conftest.err | |
7665 | rm -f conftest.er1 | |
7666 | cat conftest.err >&5 | |
ec6a6fbe | 7667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7668 | (exit $ac_status); } >/dev/null && { |
7669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7670 | test ! -s conftest.err | |
7671 | }; then | |
ad6254c5 AK |
7672 | ac_header_preproc=yes |
7673 | else | |
ec6a6fbe | 7674 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7675 | sed 's/^/| /' conftest.$ac_ext >&5 |
7676 | ||
7677 | ac_header_preproc=no | |
7678 | fi | |
7a197a62 | 7679 | |
ad6254c5 | 7680 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7681 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7682 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7683 | |
7684 | # So? What about this header? | |
8a2fc586 AK |
7685 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7686 | yes:no: ) | |
ec6a6fbe AK |
7687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7688 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7690 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7691 | ac_header_preproc=yes |
ad6254c5 | 7692 | ;; |
8a2fc586 | 7693 | no:yes:* ) |
ec6a6fbe AK |
7694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7695 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7697 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7699 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7701 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7703 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7704 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7705 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7706 | |
ad6254c5 AK |
7707 | ;; |
7708 | esac | |
ec6a6fbe AK |
7709 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7710 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7711 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7712 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7713 | else |
8a2fc586 | 7714 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7715 | fi |
ec6a6fbe AK |
7716 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7717 | $as_echo "$as_val"'` | |
7718 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7719 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7720 | |
7721 | fi | |
ec6a6fbe AK |
7722 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7723 | $as_echo "$as_val"'` | |
7724 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7725 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7726 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7727 | _ACEOF |
7728 | ||
7729 | fi | |
7730 | ||
7731 | done | |
7732 | ||
ec6a6fbe AK |
7733 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7734 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7735 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7736 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7737 | else |
7738 | if test "$cross_compiling" = yes; then | |
7739 | ac_cv_func_malloc_0_nonnull=no | |
7740 | else | |
7741 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7742 | /* confdefs.h. */ |
7743 | _ACEOF | |
7744 | cat confdefs.h >>conftest.$ac_ext | |
7745 | cat >>conftest.$ac_ext <<_ACEOF | |
7746 | /* end confdefs.h. */ | |
25fbec5b | 7747 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7748 | # include <stdlib.h> |
7749 | #else | |
7750 | char *malloc (); | |
7751 | #endif | |
7752 | ||
7753 | int | |
7754 | main () | |
7755 | { | |
7a197a62 | 7756 | return ! malloc (0); |
ad6254c5 AK |
7757 | ; |
7758 | return 0; | |
7759 | } | |
7760 | _ACEOF | |
7761 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7762 | if { (ac_try="$ac_link" |
7763 | case "(($ac_try" in | |
7764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7765 | *) ac_try_echo=$ac_try;; | |
7766 | esac | |
ec6a6fbe AK |
7767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7768 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7769 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7770 | ac_status=$? |
ec6a6fbe | 7771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7772 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7773 | { (case "(($ac_try" in |
7774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7775 | *) ac_try_echo=$ac_try;; | |
7776 | esac | |
ec6a6fbe AK |
7777 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7778 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7779 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7780 | ac_status=$? |
ec6a6fbe | 7781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7782 | (exit $ac_status); }; }; then |
7783 | ac_cv_func_malloc_0_nonnull=yes | |
7784 | else | |
ec6a6fbe AK |
7785 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7786 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7787 | sed 's/^/| /' conftest.$ac_ext >&5 |
7788 | ||
7789 | ( exit $ac_status ) | |
7790 | ac_cv_func_malloc_0_nonnull=no | |
7791 | fi | |
ec6a6fbe | 7792 | rm -rf conftest.dSYM |
7a197a62 | 7793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7794 | fi |
7a197a62 AK |
7795 | |
7796 | ||
ad6254c5 | 7797 | fi |
ec6a6fbe AK |
7798 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7799 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7800 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7801 | ||
7802 | cat >>confdefs.h <<\_ACEOF | |
7803 | #define HAVE_MALLOC 1 | |
7804 | _ACEOF | |
7805 | ||
7806 | else | |
7807 | cat >>confdefs.h <<\_ACEOF | |
7808 | #define HAVE_MALLOC 0 | |
7809 | _ACEOF | |
7810 | ||
7a197a62 | 7811 | case " $LIBOBJS " in |
8a2fc586 | 7812 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7813 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7814 | ;; | |
8a2fc586 AK |
7815 | esac |
7816 | ||
ad6254c5 AK |
7817 | |
7818 | cat >>confdefs.h <<\_ACEOF | |
7819 | #define malloc rpl_malloc | |
7820 | _ACEOF | |
7821 | ||
7822 | fi | |
7823 | ||
7824 | ||
7825 | ||
ec6a6fbe AK |
7826 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7827 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7828 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7829 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7830 | else |
7831 | if test "$cross_compiling" = yes; then | |
7832 | ac_cv_func_memcmp_working=no | |
7833 | else | |
7834 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7835 | /* confdefs.h. */ |
7836 | _ACEOF | |
7837 | cat confdefs.h >>conftest.$ac_ext | |
7838 | cat >>conftest.$ac_ext <<_ACEOF | |
7839 | /* end confdefs.h. */ | |
8a2fc586 | 7840 | $ac_includes_default |
ad6254c5 AK |
7841 | int |
7842 | main () | |
7843 | { | |
7844 | ||
7845 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7846 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7847 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7848 | return 1; |
ad6254c5 AK |
7849 | |
7850 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7851 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7852 | William Lewis provided this test program. */ | |
7853 | { | |
7854 | char foo[21]; | |
7855 | char bar[21]; | |
7856 | int i; | |
7857 | for (i = 0; i < 4; i++) | |
7858 | { | |
8a2fc586 AK |
7859 | char *a = foo + i; |
7860 | char *b = bar + i; | |
7861 | strcpy (a, "--------01111111"); | |
7862 | strcpy (b, "--------10000000"); | |
7863 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7864 | return 1; |
ad6254c5 | 7865 | } |
7a197a62 | 7866 | return 0; |
ad6254c5 AK |
7867 | } |
7868 | ||
7869 | ; | |
7870 | return 0; | |
7871 | } | |
7872 | _ACEOF | |
7873 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7874 | if { (ac_try="$ac_link" |
7875 | case "(($ac_try" in | |
7876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7877 | *) ac_try_echo=$ac_try;; | |
7878 | esac | |
ec6a6fbe AK |
7879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7880 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7881 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7882 | ac_status=$? |
ec6a6fbe | 7883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7885 | { (case "(($ac_try" in |
7886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7887 | *) ac_try_echo=$ac_try;; | |
7888 | esac | |
ec6a6fbe AK |
7889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7890 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7891 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7892 | ac_status=$? |
ec6a6fbe | 7893 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7894 | (exit $ac_status); }; }; then |
7895 | ac_cv_func_memcmp_working=yes | |
7896 | else | |
ec6a6fbe AK |
7897 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7898 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7899 | sed 's/^/| /' conftest.$ac_ext >&5 |
7900 | ||
7901 | ( exit $ac_status ) | |
7902 | ac_cv_func_memcmp_working=no | |
7903 | fi | |
ec6a6fbe | 7904 | rm -rf conftest.dSYM |
7a197a62 | 7905 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7906 | fi |
7a197a62 AK |
7907 | |
7908 | ||
ad6254c5 | 7909 | fi |
ec6a6fbe AK |
7910 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7911 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7912 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7913 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7914 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7915 | ;; | |
8a2fc586 AK |
7916 | esac |
7917 | ||
ad6254c5 AK |
7918 | |
7919 | ||
7920 | ||
7921 | for ac_header in stdlib.h unistd.h | |
7922 | do | |
ec6a6fbe | 7923 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7925 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7926 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7928 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7929 | fi |
ec6a6fbe AK |
7930 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7931 | $as_echo "$as_val"'` | |
7932 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7933 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7934 | else |
7935 | # Is the header compilable? | |
ec6a6fbe AK |
7936 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7937 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7938 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7939 | /* confdefs.h. */ |
7940 | _ACEOF | |
7941 | cat confdefs.h >>conftest.$ac_ext | |
7942 | cat >>conftest.$ac_ext <<_ACEOF | |
7943 | /* end confdefs.h. */ | |
7944 | $ac_includes_default | |
7945 | #include <$ac_header> | |
7946 | _ACEOF | |
7947 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7948 | if { (ac_try="$ac_compile" |
7949 | case "(($ac_try" in | |
7950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7951 | *) ac_try_echo=$ac_try;; | |
7952 | esac | |
ec6a6fbe AK |
7953 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7954 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7955 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7956 | ac_status=$? |
8a2fc586 AK |
7957 | grep -v '^ *+' conftest.er1 >conftest.err |
7958 | rm -f conftest.er1 | |
7959 | cat conftest.err >&5 | |
ec6a6fbe | 7960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7961 | (exit $ac_status); } && { |
7962 | test -z "$ac_c_werror_flag" || | |
7963 | test ! -s conftest.err | |
7964 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7965 | ac_header_compiler=yes |
7966 | else | |
ec6a6fbe | 7967 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7968 | sed 's/^/| /' conftest.$ac_ext >&5 |
7969 | ||
7a197a62 | 7970 | ac_header_compiler=no |
ad6254c5 | 7971 | fi |
7a197a62 AK |
7972 | |
7973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7974 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7975 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7976 | |
7977 | # Is the header present? | |
ec6a6fbe AK |
7978 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7979 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7980 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7981 | /* confdefs.h. */ |
7982 | _ACEOF | |
7983 | cat confdefs.h >>conftest.$ac_ext | |
7984 | cat >>conftest.$ac_ext <<_ACEOF | |
7985 | /* end confdefs.h. */ | |
7986 | #include <$ac_header> | |
7987 | _ACEOF | |
7a197a62 AK |
7988 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7989 | case "(($ac_try" in | |
7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7991 | *) ac_try_echo=$ac_try;; | |
7992 | esac | |
ec6a6fbe AK |
7993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7994 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7996 | ac_status=$? |
7997 | grep -v '^ *+' conftest.er1 >conftest.err | |
7998 | rm -f conftest.er1 | |
7999 | cat conftest.err >&5 | |
ec6a6fbe | 8000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8001 | (exit $ac_status); } >/dev/null && { |
8002 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8003 | test ! -s conftest.err | |
8004 | }; then | |
ad6254c5 AK |
8005 | ac_header_preproc=yes |
8006 | else | |
ec6a6fbe | 8007 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8008 | sed 's/^/| /' conftest.$ac_ext >&5 |
8009 | ||
8010 | ac_header_preproc=no | |
8011 | fi | |
7a197a62 | 8012 | |
ad6254c5 | 8013 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8014 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8015 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8016 | |
8017 | # So? What about this header? | |
8a2fc586 AK |
8018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8019 | yes:no: ) | |
ec6a6fbe AK |
8020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8021 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8023 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8024 | ac_header_preproc=yes |
ad6254c5 | 8025 | ;; |
8a2fc586 | 8026 | no:yes:* ) |
ec6a6fbe AK |
8027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8028 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8030 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8032 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8034 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8036 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8037 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8038 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8039 | |
ad6254c5 AK |
8040 | ;; |
8041 | esac | |
ec6a6fbe AK |
8042 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8043 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8044 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8045 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8046 | else |
8a2fc586 | 8047 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8048 | fi |
ec6a6fbe AK |
8049 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8050 | $as_echo "$as_val"'` | |
8051 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8052 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8053 | |
8054 | fi | |
ec6a6fbe AK |
8055 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8056 | $as_echo "$as_val"'` | |
8057 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8058 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8059 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8060 | _ACEOF |
8061 | ||
8062 | fi | |
8063 | ||
8064 | done | |
8065 | ||
8066 | ||
8067 | for ac_func in getpagesize | |
8068 | do | |
ec6a6fbe AK |
8069 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8070 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8071 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8072 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8073 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8074 | else |
8075 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8076 | /* confdefs.h. */ |
8077 | _ACEOF | |
8078 | cat confdefs.h >>conftest.$ac_ext | |
8079 | cat >>conftest.$ac_ext <<_ACEOF | |
8080 | /* end confdefs.h. */ | |
8a2fc586 AK |
8081 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8083 | #define $ac_func innocuous_$ac_func | |
8084 | ||
ad6254c5 AK |
8085 | /* System header to define __stub macros and hopefully few prototypes, |
8086 | which can conflict with char $ac_func (); below. | |
8087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8088 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8089 | |
ad6254c5 AK |
8090 | #ifdef __STDC__ |
8091 | # include <limits.h> | |
8092 | #else | |
8093 | # include <assert.h> | |
8094 | #endif | |
8a2fc586 AK |
8095 | |
8096 | #undef $ac_func | |
8097 | ||
7a197a62 AK |
8098 | /* Override any GCC internal prototype to avoid an error. |
8099 | Use char because int might match the return type of a GCC | |
8100 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8101 | #ifdef __cplusplus |
8102 | extern "C" | |
ad6254c5 | 8103 | #endif |
ad6254c5 AK |
8104 | char $ac_func (); |
8105 | /* The GNU C library defines this for functions which it implements | |
8106 | to always fail with ENOSYS. Some functions are actually named | |
8107 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8108 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8109 | choke me |
ad6254c5 AK |
8110 | #endif |
8111 | ||
8112 | int | |
8113 | main () | |
8114 | { | |
7a197a62 | 8115 | return $ac_func (); |
ad6254c5 AK |
8116 | ; |
8117 | return 0; | |
8118 | } | |
8119 | _ACEOF | |
8120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8121 | if { (ac_try="$ac_link" |
8122 | case "(($ac_try" in | |
8123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8124 | *) ac_try_echo=$ac_try;; | |
8125 | esac | |
ec6a6fbe AK |
8126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8127 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8128 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8129 | ac_status=$? |
8a2fc586 AK |
8130 | grep -v '^ *+' conftest.er1 >conftest.err |
8131 | rm -f conftest.er1 | |
8132 | cat conftest.err >&5 | |
ec6a6fbe | 8133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8134 | (exit $ac_status); } && { |
8135 | test -z "$ac_c_werror_flag" || | |
8136 | test ! -s conftest.err | |
ec6a6fbe AK |
8137 | } && test -s conftest$ac_exeext && { |
8138 | test "$cross_compiling" = yes || | |
8139 | $as_test_x conftest$ac_exeext | |
8140 | }; then | |
ad6254c5 AK |
8141 | eval "$as_ac_var=yes" |
8142 | else | |
ec6a6fbe | 8143 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8144 | sed 's/^/| /' conftest.$ac_ext >&5 |
8145 | ||
7a197a62 | 8146 | eval "$as_ac_var=no" |
ad6254c5 | 8147 | fi |
7a197a62 | 8148 | |
ec6a6fbe | 8149 | rm -rf conftest.dSYM |
25fbec5b | 8150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8151 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8152 | fi |
ec6a6fbe AK |
8153 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8154 | $as_echo "$as_val"'` | |
8155 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8156 | $as_echo "$ac_res" >&6; } | |
8157 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8158 | $as_echo "$as_val"'` | |
8159 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8160 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8161 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8162 | _ACEOF |
8163 | ||
8164 | fi | |
8165 | done | |
8166 | ||
ec6a6fbe AK |
8167 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8168 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8169 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8170 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8171 | else |
8172 | if test "$cross_compiling" = yes; then | |
8173 | ac_cv_func_mmap_fixed_mapped=no | |
8174 | else | |
8175 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8176 | /* confdefs.h. */ |
8177 | _ACEOF | |
8178 | cat confdefs.h >>conftest.$ac_ext | |
8179 | cat >>conftest.$ac_ext <<_ACEOF | |
8180 | /* end confdefs.h. */ | |
8181 | $ac_includes_default | |
8182 | /* malloc might have been renamed as rpl_malloc. */ | |
8183 | #undef malloc | |
8184 | ||
8185 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8186 | Here is a matrix of mmap possibilities: | |
8187 | mmap private not fixed | |
8188 | mmap private fixed at somewhere currently unmapped | |
8189 | mmap private fixed at somewhere already mapped | |
8190 | mmap shared not fixed | |
8191 | mmap shared fixed at somewhere currently unmapped | |
8192 | mmap shared fixed at somewhere already mapped | |
8193 | For private mappings, we should verify that changes cannot be read() | |
8194 | back from the file, nor mmap's back from the file at a different | |
8195 | address. (There have been systems where private was not correctly | |
8196 | implemented like the infamous i386 svr4.0, and systems where the | |
8197 | VM page cache was not coherent with the file system buffer cache | |
8198 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8199 | For shared mappings, we should conversely verify that changes get | |
8200 | propagated back to all the places they're supposed to be. | |
8201 | ||
8202 | Grep wants private fixed already mapped. | |
8203 | The main things grep needs to know about mmap are: | |
8204 | * does it exist and is it safe to write into the mmap'd area | |
8205 | * how to use it (BSD variants) */ | |
8206 | ||
8207 | #include <fcntl.h> | |
8208 | #include <sys/mman.h> | |
8209 | ||
25fbec5b | 8210 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8211 | char *malloc (); |
8212 | #endif | |
8213 | ||
8214 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8215 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8216 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8217 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8218 | # define HAVE_SYS_PARAM_H 1 |
8219 | # endif | |
8220 | ||
8221 | # ifdef _SC_PAGESIZE | |
8222 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8223 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8224 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8225 | # include <sys/param.h> |
8226 | # ifdef EXEC_PAGESIZE | |
8227 | # define getpagesize() EXEC_PAGESIZE | |
8228 | # else /* no EXEC_PAGESIZE */ | |
8229 | # ifdef NBPG | |
8230 | # define getpagesize() NBPG * CLSIZE | |
8231 | # ifndef CLSIZE | |
8232 | # define CLSIZE 1 | |
8233 | # endif /* no CLSIZE */ | |
8234 | # else /* no NBPG */ | |
8235 | # ifdef NBPC | |
8236 | # define getpagesize() NBPC | |
8237 | # else /* no NBPC */ | |
8238 | # ifdef PAGESIZE | |
8239 | # define getpagesize() PAGESIZE | |
8240 | # endif /* PAGESIZE */ | |
8241 | # endif /* no NBPC */ | |
8242 | # endif /* no NBPG */ | |
8243 | # endif /* no EXEC_PAGESIZE */ | |
8244 | # else /* no HAVE_SYS_PARAM_H */ | |
8245 | # define getpagesize() 8192 /* punt totally */ | |
8246 | # endif /* no HAVE_SYS_PARAM_H */ | |
8247 | # endif /* no _SC_PAGESIZE */ | |
8248 | ||
8249 | #endif /* no HAVE_GETPAGESIZE */ | |
8250 | ||
8251 | int | |
8252 | main () | |
8253 | { | |
8254 | char *data, *data2, *data3; | |
8255 | int i, pagesize; | |
8256 | int fd; | |
8257 | ||
8258 | pagesize = getpagesize (); | |
8259 | ||
8260 | /* First, make a file with some known garbage in it. */ | |
8261 | data = (char *) malloc (pagesize); | |
8262 | if (!data) | |
7a197a62 | 8263 | return 1; |
ad6254c5 AK |
8264 | for (i = 0; i < pagesize; ++i) |
8265 | *(data + i) = rand (); | |
8266 | umask (0); | |
8267 | fd = creat ("conftest.mmap", 0600); | |
8268 | if (fd < 0) | |
7a197a62 | 8269 | return 1; |
ad6254c5 | 8270 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8271 | return 1; |
ad6254c5 AK |
8272 | close (fd); |
8273 | ||
8274 | /* Next, try to mmap the file at a fixed address which already has | |
8275 | something else allocated at it. If we can, also make sure that | |
8276 | we see the same garbage. */ | |
8277 | fd = open ("conftest.mmap", O_RDWR); | |
8278 | if (fd < 0) | |
7a197a62 | 8279 | return 1; |
ad6254c5 AK |
8280 | data2 = (char *) malloc (2 * pagesize); |
8281 | if (!data2) | |
7a197a62 AK |
8282 | return 1; |
8283 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8284 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8285 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8286 | return 1; |
ad6254c5 AK |
8287 | for (i = 0; i < pagesize; ++i) |
8288 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8289 | return 1; |
ad6254c5 AK |
8290 | |
8291 | /* Finally, make sure that changes to the mapped area do not | |
8292 | percolate back to the file as seen by read(). (This is a bug on | |
8293 | some variants of i386 svr4.0.) */ | |
8294 | for (i = 0; i < pagesize; ++i) | |
8295 | *(data2 + i) = *(data2 + i) + 1; | |
8296 | data3 = (char *) malloc (pagesize); | |
8297 | if (!data3) | |
7a197a62 | 8298 | return 1; |
ad6254c5 | 8299 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8300 | return 1; |
ad6254c5 AK |
8301 | for (i = 0; i < pagesize; ++i) |
8302 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8303 | return 1; |
ad6254c5 | 8304 | close (fd); |
7a197a62 | 8305 | return 0; |
ad6254c5 AK |
8306 | } |
8307 | _ACEOF | |
8308 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8309 | if { (ac_try="$ac_link" |
8310 | case "(($ac_try" in | |
8311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8312 | *) ac_try_echo=$ac_try;; | |
8313 | esac | |
ec6a6fbe AK |
8314 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8315 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8316 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8317 | ac_status=$? |
ec6a6fbe | 8318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8319 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8320 | { (case "(($ac_try" in |
8321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8322 | *) ac_try_echo=$ac_try;; | |
8323 | esac | |
ec6a6fbe AK |
8324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8325 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8326 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8327 | ac_status=$? |
ec6a6fbe | 8328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8329 | (exit $ac_status); }; }; then |
8330 | ac_cv_func_mmap_fixed_mapped=yes | |
8331 | else | |
ec6a6fbe AK |
8332 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8333 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8334 | sed 's/^/| /' conftest.$ac_ext >&5 |
8335 | ||
8336 | ( exit $ac_status ) | |
8337 | ac_cv_func_mmap_fixed_mapped=no | |
8338 | fi | |
ec6a6fbe | 8339 | rm -rf conftest.dSYM |
7a197a62 | 8340 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8341 | fi |
7a197a62 AK |
8342 | |
8343 | ||
ad6254c5 | 8344 | fi |
ec6a6fbe AK |
8345 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8346 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8347 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8348 | ||
8349 | cat >>confdefs.h <<\_ACEOF | |
8350 | #define HAVE_MMAP 1 | |
8351 | _ACEOF | |
8352 | ||
8353 | fi | |
8354 | rm -f conftest.mmap | |
8355 | ||
ec6a6fbe AK |
8356 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8357 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8358 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8359 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8360 | else |
8361 | if test "$cross_compiling" = yes; then | |
8362 | ac_cv_func_stat_empty_string_bug=yes | |
8363 | else | |
8364 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8365 | /* confdefs.h. */ |
8366 | _ACEOF | |
8367 | cat confdefs.h >>conftest.$ac_ext | |
8368 | cat >>conftest.$ac_ext <<_ACEOF | |
8369 | /* end confdefs.h. */ | |
8370 | $ac_includes_default | |
8371 | int | |
8372 | main () | |
8373 | { | |
8374 | struct stat sbuf; | |
7a197a62 | 8375 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8376 | ; |
8377 | return 0; | |
8378 | } | |
8379 | _ACEOF | |
8380 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8381 | if { (ac_try="$ac_link" |
8382 | case "(($ac_try" in | |
8383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8384 | *) ac_try_echo=$ac_try;; | |
8385 | esac | |
ec6a6fbe AK |
8386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8387 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8388 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8389 | ac_status=$? |
ec6a6fbe | 8390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8391 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8392 | { (case "(($ac_try" in |
8393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8394 | *) ac_try_echo=$ac_try;; | |
8395 | esac | |
ec6a6fbe AK |
8396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8397 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8398 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8399 | ac_status=$? |
ec6a6fbe | 8400 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8401 | (exit $ac_status); }; }; then |
7a197a62 | 8402 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8403 | else |
ec6a6fbe AK |
8404 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8405 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8406 | sed 's/^/| /' conftest.$ac_ext >&5 |
8407 | ||
8408 | ( exit $ac_status ) | |
7a197a62 | 8409 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8410 | fi |
ec6a6fbe | 8411 | rm -rf conftest.dSYM |
7a197a62 | 8412 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8413 | fi |
7a197a62 AK |
8414 | |
8415 | ||
ad6254c5 | 8416 | fi |
ec6a6fbe AK |
8417 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8418 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8419 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8420 | case " $LIBOBJS " in |
8a2fc586 | 8421 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8422 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8423 | ;; | |
8a2fc586 AK |
8424 | esac |
8425 | ||
ad6254c5 AK |
8426 | |
8427 | cat >>confdefs.h <<_ACEOF | |
8428 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8429 | _ACEOF | |
8430 | ||
8431 | fi | |
8432 | ||
ec6a6fbe AK |
8433 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8434 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8435 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8436 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8437 | else |
8438 | if test "$cross_compiling" = yes; then | |
8439 | ac_cv_func_strtod=no | |
8440 | else | |
8441 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8442 | /* confdefs.h. */ |
8443 | _ACEOF | |
8444 | cat confdefs.h >>conftest.$ac_ext | |
8445 | cat >>conftest.$ac_ext <<_ACEOF | |
8446 | /* end confdefs.h. */ | |
8447 | ||
7a197a62 AK |
8448 | $ac_includes_default |
8449 | #ifndef strtod | |
ad6254c5 | 8450 | double strtod (); |
7a197a62 | 8451 | #endif |
ad6254c5 AK |
8452 | int |
8453 | main() | |
8454 | { | |
8455 | { | |
8456 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8457 | char *string = " +69"; | |
8458 | char *term; | |
8459 | double value; | |
8460 | value = strtod (string, &term); | |
8461 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8462 | return 1; |
ad6254c5 AK |
8463 | } |
8464 | ||
8465 | { | |
8466 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8467 | terminating character under some conditions. */ | |
8468 | char *string = "NaN"; | |
8469 | char *term; | |
8470 | strtod (string, &term); | |
8471 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8472 | return 1; |
ad6254c5 | 8473 | } |
7a197a62 | 8474 | return 0; |
ad6254c5 AK |
8475 | } |
8476 | ||
8477 | _ACEOF | |
8478 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8479 | if { (ac_try="$ac_link" |
8480 | case "(($ac_try" in | |
8481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8482 | *) ac_try_echo=$ac_try;; | |
8483 | esac | |
ec6a6fbe AK |
8484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8485 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8486 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8487 | ac_status=$? |
ec6a6fbe | 8488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8489 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8490 | { (case "(($ac_try" in |
8491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8492 | *) ac_try_echo=$ac_try;; | |
8493 | esac | |
ec6a6fbe AK |
8494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8495 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8496 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8497 | ac_status=$? |
ec6a6fbe | 8498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8499 | (exit $ac_status); }; }; then |
8500 | ac_cv_func_strtod=yes | |
8501 | else | |
ec6a6fbe AK |
8502 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8503 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8504 | sed 's/^/| /' conftest.$ac_ext >&5 |
8505 | ||
8506 | ( exit $ac_status ) | |
8507 | ac_cv_func_strtod=no | |
8508 | fi | |
ec6a6fbe | 8509 | rm -rf conftest.dSYM |
7a197a62 | 8510 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8511 | fi |
7a197a62 AK |
8512 | |
8513 | ||
ad6254c5 | 8514 | fi |
ec6a6fbe AK |
8515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8516 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8517 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8518 | case " $LIBOBJS " in |
8a2fc586 | 8519 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8520 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8521 | ;; | |
8a2fc586 AK |
8522 | esac |
8523 | ||
ec6a6fbe AK |
8524 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8525 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8526 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8527 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8528 | else |
8529 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8530 | /* confdefs.h. */ |
8531 | _ACEOF | |
8532 | cat confdefs.h >>conftest.$ac_ext | |
8533 | cat >>conftest.$ac_ext <<_ACEOF | |
8534 | /* end confdefs.h. */ | |
8a2fc586 AK |
8535 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8537 | #define pow innocuous_pow | |
8538 | ||
ad6254c5 AK |
8539 | /* System header to define __stub macros and hopefully few prototypes, |
8540 | which can conflict with char pow (); below. | |
8541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8542 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8543 | |
ad6254c5 AK |
8544 | #ifdef __STDC__ |
8545 | # include <limits.h> | |
8546 | #else | |
8547 | # include <assert.h> | |
8548 | #endif | |
8a2fc586 AK |
8549 | |
8550 | #undef pow | |
8551 | ||
7a197a62 AK |
8552 | /* Override any GCC internal prototype to avoid an error. |
8553 | Use char because int might match the return type of a GCC | |
8554 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8555 | #ifdef __cplusplus |
8556 | extern "C" | |
ad6254c5 | 8557 | #endif |
ad6254c5 AK |
8558 | char pow (); |
8559 | /* The GNU C library defines this for functions which it implements | |
8560 | to always fail with ENOSYS. Some functions are actually named | |
8561 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8562 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8563 | choke me |
ad6254c5 AK |
8564 | #endif |
8565 | ||
8566 | int | |
8567 | main () | |
8568 | { | |
7a197a62 | 8569 | return pow (); |
ad6254c5 AK |
8570 | ; |
8571 | return 0; | |
8572 | } | |
8573 | _ACEOF | |
8574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8575 | if { (ac_try="$ac_link" |
8576 | case "(($ac_try" in | |
8577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8578 | *) ac_try_echo=$ac_try;; | |
8579 | esac | |
ec6a6fbe AK |
8580 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8581 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8582 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8583 | ac_status=$? |
8a2fc586 AK |
8584 | grep -v '^ *+' conftest.er1 >conftest.err |
8585 | rm -f conftest.er1 | |
8586 | cat conftest.err >&5 | |
ec6a6fbe | 8587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8588 | (exit $ac_status); } && { |
8589 | test -z "$ac_c_werror_flag" || | |
8590 | test ! -s conftest.err | |
ec6a6fbe AK |
8591 | } && test -s conftest$ac_exeext && { |
8592 | test "$cross_compiling" = yes || | |
8593 | $as_test_x conftest$ac_exeext | |
8594 | }; then | |
ad6254c5 AK |
8595 | ac_cv_func_pow=yes |
8596 | else | |
ec6a6fbe | 8597 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8598 | sed 's/^/| /' conftest.$ac_ext >&5 |
8599 | ||
7a197a62 | 8600 | ac_cv_func_pow=no |
ad6254c5 | 8601 | fi |
7a197a62 | 8602 | |
ec6a6fbe | 8603 | rm -rf conftest.dSYM |
25fbec5b | 8604 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8605 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8606 | fi |
ec6a6fbe AK |
8607 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8608 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8609 | |
8610 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8611 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8612 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8613 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8614 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8615 | else |
8616 | ac_check_lib_save_LIBS=$LIBS | |
8617 | LIBS="-lm $LIBS" | |
8618 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8619 | /* confdefs.h. */ |
8620 | _ACEOF | |
8621 | cat confdefs.h >>conftest.$ac_ext | |
8622 | cat >>conftest.$ac_ext <<_ACEOF | |
8623 | /* end confdefs.h. */ | |
8624 | ||
7a197a62 AK |
8625 | /* Override any GCC internal prototype to avoid an error. |
8626 | Use char because int might match the return type of a GCC | |
8627 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8628 | #ifdef __cplusplus |
8629 | extern "C" | |
8630 | #endif | |
ad6254c5 AK |
8631 | char pow (); |
8632 | int | |
8633 | main () | |
8634 | { | |
7a197a62 | 8635 | return pow (); |
ad6254c5 AK |
8636 | ; |
8637 | return 0; | |
8638 | } | |
8639 | _ACEOF | |
8640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8641 | if { (ac_try="$ac_link" |
8642 | case "(($ac_try" in | |
8643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8644 | *) ac_try_echo=$ac_try;; | |
8645 | esac | |
ec6a6fbe AK |
8646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8647 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8648 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8649 | ac_status=$? |
8a2fc586 AK |
8650 | grep -v '^ *+' conftest.er1 >conftest.err |
8651 | rm -f conftest.er1 | |
8652 | cat conftest.err >&5 | |
ec6a6fbe | 8653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8654 | (exit $ac_status); } && { |
8655 | test -z "$ac_c_werror_flag" || | |
8656 | test ! -s conftest.err | |
ec6a6fbe AK |
8657 | } && test -s conftest$ac_exeext && { |
8658 | test "$cross_compiling" = yes || | |
8659 | $as_test_x conftest$ac_exeext | |
8660 | }; then | |
ad6254c5 AK |
8661 | ac_cv_lib_m_pow=yes |
8662 | else | |
ec6a6fbe | 8663 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8664 | sed 's/^/| /' conftest.$ac_ext >&5 |
8665 | ||
7a197a62 | 8666 | ac_cv_lib_m_pow=no |
ad6254c5 | 8667 | fi |
7a197a62 | 8668 | |
ec6a6fbe | 8669 | rm -rf conftest.dSYM |
25fbec5b | 8670 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8671 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8672 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8673 | fi |
ec6a6fbe AK |
8674 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8675 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8676 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8677 | POW_LIB=-lm |
8678 | else | |
ec6a6fbe AK |
8679 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8680 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8681 | fi |
72b2cb61 | 8682 | |
d0191583 | 8683 | fi |
72b2cb61 | 8684 | |
ad6254c5 AK |
8685 | fi |
8686 | ||
ad6254c5 | 8687 | |
d0191583 JM |
8688 | for ac_func in vprintf |
8689 | do | |
ec6a6fbe AK |
8690 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8691 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8692 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8693 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8694 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8695 | else |
d0191583 JM |
8696 | cat >conftest.$ac_ext <<_ACEOF |
8697 | /* confdefs.h. */ | |
8698 | _ACEOF | |
8699 | cat confdefs.h >>conftest.$ac_ext | |
8700 | cat >>conftest.$ac_ext <<_ACEOF | |
8701 | /* end confdefs.h. */ | |
8702 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8704 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8705 | |
d0191583 JM |
8706 | /* System header to define __stub macros and hopefully few prototypes, |
8707 | which can conflict with char $ac_func (); below. | |
8708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8709 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8710 | |
d0191583 JM |
8711 | #ifdef __STDC__ |
8712 | # include <limits.h> | |
8713 | #else | |
8714 | # include <assert.h> | |
8715 | #endif | |
ad6254c5 | 8716 | |
d0191583 | 8717 | #undef $ac_func |
72b2cb61 | 8718 | |
d0191583 JM |
8719 | /* Override any GCC internal prototype to avoid an error. |
8720 | Use char because int might match the return type of a GCC | |
8721 | builtin and then its argument prototype would still apply. */ | |
8722 | #ifdef __cplusplus | |
8723 | extern "C" | |
8724 | #endif | |
8725 | char $ac_func (); | |
8726 | /* The GNU C library defines this for functions which it implements | |
8727 | to always fail with ENOSYS. Some functions are actually named | |
8728 | something starting with __ and the normal name is an alias. */ | |
8729 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8730 | choke me | |
8731 | #endif | |
8732 | ||
8733 | int | |
8734 | main () | |
8735 | { | |
8736 | return $ac_func (); | |
8737 | ; | |
8738 | return 0; | |
8739 | } | |
72b2cb61 | 8740 | _ACEOF |
d0191583 JM |
8741 | rm -f conftest.$ac_objext conftest$ac_exeext |
8742 | if { (ac_try="$ac_link" | |
8743 | case "(($ac_try" in | |
8744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8745 | *) ac_try_echo=$ac_try;; | |
8746 | esac | |
ec6a6fbe AK |
8747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8748 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8749 | (eval "$ac_link") 2>conftest.er1 |
8750 | ac_status=$? | |
8751 | grep -v '^ *+' conftest.er1 >conftest.err | |
8752 | rm -f conftest.er1 | |
8753 | cat conftest.err >&5 | |
ec6a6fbe | 8754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8755 | (exit $ac_status); } && { |
8756 | test -z "$ac_c_werror_flag" || | |
8757 | test ! -s conftest.err | |
ec6a6fbe AK |
8758 | } && test -s conftest$ac_exeext && { |
8759 | test "$cross_compiling" = yes || | |
8760 | $as_test_x conftest$ac_exeext | |
8761 | }; then | |
d0191583 JM |
8762 | eval "$as_ac_var=yes" |
8763 | else | |
ec6a6fbe | 8764 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8765 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8766 | |
d0191583 | 8767 | eval "$as_ac_var=no" |
ad6254c5 AK |
8768 | fi |
8769 | ||
ec6a6fbe | 8770 | rm -rf conftest.dSYM |
d0191583 JM |
8771 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8772 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8773 | fi |
ec6a6fbe AK |
8774 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8775 | $as_echo "$as_val"'` | |
8776 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8777 | $as_echo "$ac_res" >&6; } | |
8778 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8779 | $as_echo "$as_val"'` | |
8780 | if test "x$as_val" = x""yes; then | |
d0191583 | 8781 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8782 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8783 | _ACEOF |
7a197a62 | 8784 | |
ec6a6fbe AK |
8785 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8786 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8787 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8788 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8789 | else |
d0191583 JM |
8790 | cat >conftest.$ac_ext <<_ACEOF |
8791 | /* confdefs.h. */ | |
8792 | _ACEOF | |
8793 | cat confdefs.h >>conftest.$ac_ext | |
8794 | cat >>conftest.$ac_ext <<_ACEOF | |
8795 | /* end confdefs.h. */ | |
8796 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8798 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8799 | |
d0191583 JM |
8800 | /* System header to define __stub macros and hopefully few prototypes, |
8801 | which can conflict with char _doprnt (); below. | |
8802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8803 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8804 | |
d0191583 JM |
8805 | #ifdef __STDC__ |
8806 | # include <limits.h> | |
8807 | #else | |
8808 | # include <assert.h> | |
8809 | #endif | |
72b2cb61 | 8810 | |
d0191583 JM |
8811 | #undef _doprnt |
8812 | ||
8813 | /* Override any GCC internal prototype to avoid an error. | |
8814 | Use char because int might match the return type of a GCC | |
8815 | builtin and then its argument prototype would still apply. */ | |
8816 | #ifdef __cplusplus | |
8817 | extern "C" | |
8818 | #endif | |
8819 | char _doprnt (); | |
8820 | /* The GNU C library defines this for functions which it implements | |
8821 | to always fail with ENOSYS. Some functions are actually named | |
8822 | something starting with __ and the normal name is an alias. */ | |
8823 | #if defined __stub__doprnt || defined __stub____doprnt | |
8824 | choke me | |
8825 | #endif | |
8826 | ||
8827 | int | |
8828 | main () | |
8829 | { | |
8830 | return _doprnt (); | |
8831 | ; | |
8832 | return 0; | |
8833 | } | |
72b2cb61 | 8834 | _ACEOF |
d0191583 JM |
8835 | rm -f conftest.$ac_objext conftest$ac_exeext |
8836 | if { (ac_try="$ac_link" | |
8837 | case "(($ac_try" in | |
8838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8839 | *) ac_try_echo=$ac_try;; | |
8840 | esac | |
ec6a6fbe AK |
8841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8842 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8843 | (eval "$ac_link") 2>conftest.er1 |
8844 | ac_status=$? | |
8845 | grep -v '^ *+' conftest.er1 >conftest.err | |
8846 | rm -f conftest.er1 | |
8847 | cat conftest.err >&5 | |
ec6a6fbe | 8848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8849 | (exit $ac_status); } && { |
8850 | test -z "$ac_c_werror_flag" || | |
8851 | test ! -s conftest.err | |
ec6a6fbe AK |
8852 | } && test -s conftest$ac_exeext && { |
8853 | test "$cross_compiling" = yes || | |
8854 | $as_test_x conftest$ac_exeext | |
8855 | }; then | |
d0191583 JM |
8856 | ac_cv_func__doprnt=yes |
8857 | else | |
ec6a6fbe | 8858 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8859 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8860 | |
d0191583 | 8861 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8862 | fi |
8863 | ||
ec6a6fbe | 8864 | rm -rf conftest.dSYM |
d0191583 JM |
8865 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8866 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8867 | fi |
ec6a6fbe AK |
8868 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8869 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8870 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8871 | |
d0191583 JM |
8872 | cat >>confdefs.h <<\_ACEOF |
8873 | #define HAVE_DOPRNT 1 | |
8874 | _ACEOF | |
ad6254c5 | 8875 | |
7a197a62 AK |
8876 | fi |
8877 | ||
d0191583 JM |
8878 | fi |
8879 | done | |
8b1a3214 | 8880 | |
ad6254c5 | 8881 | |
7a197a62 | 8882 | |
9c961554 | 8883 | ################################################################################ |
ec6a6fbe AK |
8884 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8885 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8886 | # Check whether --enable-static_link was given. |
8887 | if test "${enable_static_link+set}" = set; then | |
8888 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8889 | else | |
8890 | STATIC_LINK=no | |
8891 | fi | |
8892 | ||
ec6a6fbe AK |
8893 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8894 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8895 | |
d0191583 | 8896 | ################################################################################ |
ad6254c5 | 8897 | |
ad6254c5 AK |
8898 | |
8899 | ################################################################################ | |
ec6a6fbe AK |
8900 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8901 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8902 | OWNER="root" |
8903 | ||
8904 | ||
8905 | # Check whether --with-user was given. | |
8906 | if test "${with_user+set}" = set; then | |
8907 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8908 | fi |
8909 | ||
ec6a6fbe AK |
8910 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8911 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8912 | |
d0191583 JM |
8913 | if test x$OWNER != x; then |
8914 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8915 | fi |
8916 | ||
8917 | ################################################################################ | |
ec6a6fbe AK |
8918 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8919 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8920 | GROUP="root" |
ad6254c5 | 8921 | |
d0191583 JM |
8922 | # Check whether --with-group was given. |
8923 | if test "${with_group+set}" = set; then | |
8924 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8925 | fi |
8926 | ||
ec6a6fbe AK |
8927 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8928 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8929 | |
8930 | if test x$GROUP != x; then | |
8931 | GROUP="-g $GROUP" | |
8932 | fi | |
ad6254c5 | 8933 | |
24bbc4d7 | 8934 | ################################################################################ |
ec6a6fbe AK |
8935 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
8936 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
8937 | |
8938 | ||
8939 | # Check whether --with-device-uid was given. | |
8940 | if test "${with_device_uid+set}" = set; then | |
8941 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
8942 | else | |
8943 | DM_DEVICE_UID="0" | |
8944 | fi | |
8945 | ||
ec6a6fbe AK |
8946 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
8947 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
8948 | |
8949 | ################################################################################ | |
ec6a6fbe AK |
8950 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
8951 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
8952 | |
8953 | ||
8954 | # Check whether --with-device-gid was given. | |
8955 | if test "${with_device_gid+set}" = set; then | |
8956 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
8957 | else | |
8958 | DM_DEVICE_GID="0" | |
8959 | fi | |
8960 | ||
ec6a6fbe AK |
8961 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
8962 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 8963 | |
93bd259b | 8964 | ################################################################################ |
ec6a6fbe AK |
8965 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
8966 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
8967 | |
8968 | ||
8969 | # Check whether --with-device-mode was given. | |
8970 | if test "${with_device_mode+set}" = set; then | |
8971 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8972 | else | |
8973 | DM_DEVICE_MODE="0600" | |
8974 | fi | |
8975 | ||
ec6a6fbe AK |
8976 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
8977 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 8978 | |
ad6254c5 | 8979 | ################################################################################ |
ec6a6fbe AK |
8980 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8981 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
8982 | # Check whether --enable-lvm1_fallback was given. |
8983 | if test "${enable_lvm1_fallback+set}" = set; then | |
8984 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8985 | else | |
8986 | LVM1_FALLBACK=no | |
7a197a62 AK |
8987 | fi |
8988 | ||
ec6a6fbe AK |
8989 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8990 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8991 | |
d0191583 | 8992 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8993 | |
8994 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8995 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8996 | _ACEOF |
8997 | ||
ad6254c5 AK |
8998 | fi |
8999 | ||
9000 | ################################################################################ | |
ec6a6fbe AK |
9001 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9002 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9003 | |
9004 | # Check whether --with-lvm1 was given. | |
9005 | if test "${with_lvm1+set}" = set; then | |
9006 | withval=$with_lvm1; LVM1="$withval" | |
9007 | else | |
9008 | LVM1="internal" | |
7a197a62 AK |
9009 | fi |
9010 | ||
ec6a6fbe AK |
9011 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9012 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9013 | |
d0191583 | 9014 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9015 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9016 | " >&5 |
ec6a6fbe | 9017 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9018 | " >&2;} |
9019 | { (exit 1); exit 1; }; } | |
9020 | fi; | |
9021 | ||
9022 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9023 | |
9024 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9025 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9026 | _ACEOF |
9027 | ||
ad6254c5 AK |
9028 | fi |
9029 | ||
9030 | ################################################################################ | |
ec6a6fbe AK |
9031 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9032 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9033 | |
9034 | # Check whether --with-pool was given. | |
9035 | if test "${with_pool+set}" = set; then | |
9036 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9037 | else |
d0191583 | 9038 | POOL="internal" |
7a197a62 AK |
9039 | fi |
9040 | ||
ec6a6fbe AK |
9041 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9042 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9043 | |
d0191583 | 9044 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9045 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9046 | " >&5 |
ec6a6fbe | 9047 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9048 | " >&2;} |
9049 | { (exit 1); exit 1; }; } | |
9050 | fi; | |
7a197a62 | 9051 | |
d0191583 JM |
9052 | if test x$POOL = xinternal; then |
9053 | ||
9054 | cat >>confdefs.h <<\_ACEOF | |
9055 | #define POOL_INTERNAL 1 | |
9056 | _ACEOF | |
9057 | ||
9058 | fi | |
ad6254c5 | 9059 | |
06f62ad1 | 9060 | ################################################################################ |
ec6a6fbe AK |
9061 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9062 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9063 | |
9064 | # Check whether --with-cluster was given. | |
9065 | if test "${with_cluster+set}" = set; then | |
9066 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9067 | fi |
9068 | ||
ec6a6fbe AK |
9069 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9070 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9071 | |
d0191583 | 9072 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9073 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9074 | " >&5 |
ec6a6fbe | 9075 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9076 | " >&2;} |
9077 | { (exit 1); exit 1; }; } | |
d0191583 | 9078 | fi; |
06f62ad1 | 9079 | |
d0191583 | 9080 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9081 | |
9082 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9083 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9084 | _ACEOF |
9085 | ||
15d91f5a | 9086 | fi |
ad6254c5 AK |
9087 | |
9088 | ################################################################################ | |
ec6a6fbe AK |
9089 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9090 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9091 | |
d0191583 JM |
9092 | # Check whether --with-snapshots was given. |
9093 | if test "${with_snapshots+set}" = set; then | |
9094 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9095 | else | |
9096 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9097 | fi |
9098 | ||
ec6a6fbe AK |
9099 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9100 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9101 | |
d0191583 | 9102 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9103 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9104 | " >&5 |
ec6a6fbe | 9105 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9106 | " >&2;} |
9107 | { (exit 1); exit 1; }; } | |
9108 | fi; | |
9109 | ||
9110 | if test x$SNAPSHOTS = xinternal; then | |
9111 | ||
9112 | cat >>confdefs.h <<\_ACEOF | |
9113 | #define SNAPSHOT_INTERNAL 1 | |
9114 | _ACEOF | |
ad6254c5 | 9115 | |
ad6254c5 | 9116 | fi |
7a197a62 | 9117 | |
d0191583 | 9118 | ################################################################################ |
ec6a6fbe AK |
9119 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9120 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9121 | |
9122 | # Check whether --with-mirrors was given. | |
9123 | if test "${with_mirrors+set}" = set; then | |
9124 | withval=$with_mirrors; MIRRORS="$withval" | |
9125 | else | |
9126 | MIRRORS="internal" | |
ad6254c5 | 9127 | fi |
ad6254c5 | 9128 | |
ec6a6fbe AK |
9129 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9130 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9131 | |
d0191583 | 9132 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9133 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9134 | " >&5 |
ec6a6fbe | 9135 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9136 | " >&2;} |
9137 | { (exit 1); exit 1; }; } | |
9138 | fi; | |
ad6254c5 | 9139 | |
d0191583 | 9140 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9141 | |
d0191583 JM |
9142 | cat >>confdefs.h <<\_ACEOF |
9143 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9144 | _ACEOF |
8a2fc586 | 9145 | |
d0191583 | 9146 | fi |
8a2fc586 | 9147 | |
d0191583 | 9148 | ################################################################################ |
ec6a6fbe AK |
9149 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9150 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9151 | # Check whether --enable-readline was given. |
9152 | if test "${enable_readline+set}" = set; then | |
9153 | enableval=$enable_readline; READLINE=$enableval | |
9154 | else | |
06e459df | 9155 | READLINE=maybe |
d0191583 | 9156 | fi |
8a2fc586 | 9157 | |
ec6a6fbe AK |
9158 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9159 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9160 | |
d0191583 | 9161 | ################################################################################ |
ec6a6fbe AK |
9162 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9163 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9164 | # Check whether --enable-realtime was given. |
9165 | if test "${enable_realtime+set}" = set; then | |
9166 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9167 | fi |
ad6254c5 | 9168 | |
ec6a6fbe AK |
9169 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9170 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9171 | |
9172 | ################################################################################ | |
ec6a6fbe AK |
9173 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
9174 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
9175 | |
9176 | # Check whether --with-clvmd was given. | |
9177 | if test "${with_clvmd+set}" = set; then | |
9178 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 9179 | else |
d0191583 JM |
9180 | CLVMD="none" |
9181 | fi | |
8a2fc586 | 9182 | |
d0191583 JM |
9183 | if test x$CLVMD = xyes; then |
9184 | CLVMD=all | |
9185 | fi | |
ec6a6fbe AK |
9186 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
9187 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 9188 | |
d0191583 JM |
9189 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
9190 | CLUSTER=internal | |
9191 | fi | |
8a2fc586 | 9192 | |
e2997b73 AK |
9193 | if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then |
9194 | ||
9195 | ||
9196 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9197 | if test -n "$ac_tool_prefix"; then | |
9198 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9199 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9200 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9201 | $as_echo_n "checking for $ac_word... " >&6; } | |
9202 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9203 | $as_echo_n "(cached) " >&6 | |
9204 | else | |
9205 | case $PKG_CONFIG in | |
9206 | [\\/]* | ?:[\\/]*) | |
9207 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9208 | ;; | |
9209 | *) | |
9210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9211 | for as_dir in $PATH | |
9212 | do | |
9213 | IFS=$as_save_IFS | |
9214 | test -z "$as_dir" && as_dir=. | |
9215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9217 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9218 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9219 | break 2 | |
9220 | fi | |
9221 | done | |
9222 | done | |
9223 | IFS=$as_save_IFS | |
9224 | ||
9225 | ;; | |
9226 | esac | |
9227 | fi | |
9228 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9229 | if test -n "$PKG_CONFIG"; then | |
9230 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9231 | $as_echo "$PKG_CONFIG" >&6; } | |
9232 | else | |
9233 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9234 | $as_echo "no" >&6; } | |
9235 | fi | |
9236 | ||
9237 | ||
9238 | fi | |
9239 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9240 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9241 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9242 | set dummy pkg-config; ac_word=$2 | |
9243 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9244 | $as_echo_n "checking for $ac_word... " >&6; } | |
9245 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9246 | $as_echo_n "(cached) " >&6 | |
9247 | else | |
9248 | case $ac_pt_PKG_CONFIG in | |
9249 | [\\/]* | ?:[\\/]*) | |
9250 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9251 | ;; | |
9252 | *) | |
9253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9254 | for as_dir in $PATH | |
9255 | do | |
9256 | IFS=$as_save_IFS | |
9257 | test -z "$as_dir" && as_dir=. | |
9258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9260 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9261 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9262 | break 2 | |
9263 | fi | |
9264 | done | |
9265 | done | |
9266 | IFS=$as_save_IFS | |
9267 | ||
9268 | ;; | |
9269 | esac | |
9270 | fi | |
9271 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9272 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9273 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9274 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9275 | else | |
9276 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9277 | $as_echo "no" >&6; } | |
9278 | fi | |
9279 | ||
9280 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9281 | PKG_CONFIG="" | |
9282 | else | |
9283 | case $cross_compiling:$ac_tool_warned in | |
9284 | yes:) | |
9285 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9286 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9287 | ac_tool_warned=yes ;; | |
9288 | esac | |
9289 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9290 | fi | |
9291 | else | |
9292 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9293 | fi | |
9294 | ||
9295 | fi | |
9296 | if test -n "$PKG_CONFIG"; then | |
9297 | _pkg_min_version=0.9.0 | |
9298 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9299 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9300 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9301 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9302 | $as_echo "yes" >&6; } | |
9303 | else | |
9304 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9305 | $as_echo "no" >&6; } | |
9306 | PKG_CONFIG="" | |
9307 | fi | |
9308 | ||
9309 | fi | |
9310 | ||
9311 | pkg_failed=no | |
9312 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
9313 | $as_echo_n "checking for QUORUM... " >&6; } | |
9314 | ||
9315 | if test -n "$QUORUM_CFLAGS"; then | |
9316 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
9317 | elif test -n "$PKG_CONFIG"; then | |
9318 | if test -n "$PKG_CONFIG" && \ | |
9319 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9320 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9321 | ac_status=$? | |
9322 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9323 | (exit $ac_status); }; then | |
9324 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
9325 | else | |
9326 | pkg_failed=yes | |
9327 | fi | |
9328 | else | |
9329 | pkg_failed=untried | |
9330 | fi | |
9331 | if test -n "$QUORUM_LIBS"; then | |
9332 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
9333 | elif test -n "$PKG_CONFIG"; then | |
9334 | if test -n "$PKG_CONFIG" && \ | |
9335 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
9336 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
9337 | ac_status=$? | |
9338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9339 | (exit $ac_status); }; then | |
9340 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
9341 | else | |
9342 | pkg_failed=yes | |
9343 | fi | |
9344 | else | |
9345 | pkg_failed=untried | |
9346 | fi | |
9347 | ||
9348 | ||
9349 | ||
9350 | if test $pkg_failed = yes; then | |
9351 | ||
9352 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9353 | _pkg_short_errors_supported=yes | |
9354 | else | |
9355 | _pkg_short_errors_supported=no | |
9356 | fi | |
9357 | if test $_pkg_short_errors_supported = yes; then | |
9358 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
9359 | else | |
9360 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
9361 | fi | |
9362 | # Put the nasty error message in config.log where it belongs | |
9363 | echo "$QUORUM_PKG_ERRORS" >&5 | |
9364 | ||
9365 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9366 | $as_echo "no" >&6; } | |
9367 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9368 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9369 | QUORUM_LIBS="-lquorum" | |
9370 | elif test $pkg_failed = untried; then | |
9371 | { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5 | |
9372 | $as_echo "no pkg for quorum library, using -lquorum" >&6; }; | |
9373 | QUORUM_LIBS="-lquorum" | |
9374 | else | |
9375 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
9376 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
9377 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9378 | $as_echo "yes" >&6; } | |
9379 | : | |
9380 | fi | |
9381 | ||
9382 | pkg_failed=no | |
9383 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
9384 | $as_echo_n "checking for CONFDB... " >&6; } | |
9385 | ||
9386 | if test -n "$CONFDB_CFLAGS"; then | |
9387 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
9388 | elif test -n "$PKG_CONFIG"; then | |
9389 | if test -n "$PKG_CONFIG" && \ | |
9390 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9391 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9392 | ac_status=$? | |
9393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9394 | (exit $ac_status); }; then | |
9395 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
9396 | else | |
9397 | pkg_failed=yes | |
9398 | fi | |
9399 | else | |
9400 | pkg_failed=untried | |
9401 | fi | |
9402 | if test -n "$CONFDB_LIBS"; then | |
9403 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
9404 | elif test -n "$PKG_CONFIG"; then | |
9405 | if test -n "$PKG_CONFIG" && \ | |
9406 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
9407 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
9408 | ac_status=$? | |
9409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9410 | (exit $ac_status); }; then | |
9411 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
9412 | else | |
9413 | pkg_failed=yes | |
9414 | fi | |
9415 | else | |
9416 | pkg_failed=untried | |
9417 | fi | |
9418 | ||
9419 | ||
9420 | ||
9421 | if test $pkg_failed = yes; then | |
9422 | ||
9423 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9424 | _pkg_short_errors_supported=yes | |
9425 | else | |
9426 | _pkg_short_errors_supported=no | |
9427 | fi | |
9428 | if test $_pkg_short_errors_supported = yes; then | |
9429 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
9430 | else | |
9431 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
9432 | fi | |
9433 | # Put the nasty error message in config.log where it belongs | |
9434 | echo "$CONFDB_PKG_ERRORS" >&5 | |
9435 | ||
9436 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9437 | $as_echo "no" >&6; } | |
9438 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9439 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9440 | CONFDB_LIBS="-lconfdb" | |
9441 | elif test $pkg_failed = untried; then | |
9442 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5 | |
9443 | $as_echo "no pkg for confdb library, using -lconfdb" >&6; }; | |
9444 | CONFDB_LIBS="-lconfdb" | |
9445 | else | |
9446 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
9447 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
9448 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9449 | $as_echo "yes" >&6; } | |
9450 | : | |
9451 | fi | |
9452 | ||
9453 | pkg_failed=no | |
9454 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
9455 | $as_echo_n "checking for CPG... " >&6; } | |
9456 | ||
9457 | if test -n "$CPG_CFLAGS"; then | |
9458 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
9459 | elif test -n "$PKG_CONFIG"; then | |
9460 | if test -n "$PKG_CONFIG" && \ | |
9461 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9462 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9463 | ac_status=$? | |
9464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9465 | (exit $ac_status); }; then | |
9466 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
9467 | else | |
9468 | pkg_failed=yes | |
9469 | fi | |
9470 | else | |
9471 | pkg_failed=untried | |
9472 | fi | |
9473 | if test -n "$CPG_LIBS"; then | |
9474 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
9475 | elif test -n "$PKG_CONFIG"; then | |
9476 | if test -n "$PKG_CONFIG" && \ | |
9477 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
9478 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
9479 | ac_status=$? | |
9480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9481 | (exit $ac_status); }; then | |
9482 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
9483 | else | |
9484 | pkg_failed=yes | |
9485 | fi | |
9486 | else | |
9487 | pkg_failed=untried | |
9488 | fi | |
9489 | ||
9490 | ||
9491 | ||
9492 | if test $pkg_failed = yes; then | |
9493 | ||
9494 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9495 | _pkg_short_errors_supported=yes | |
9496 | else | |
9497 | _pkg_short_errors_supported=no | |
9498 | fi | |
9499 | if test $_pkg_short_errors_supported = yes; then | |
9500 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
9501 | else | |
9502 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
9503 | fi | |
9504 | # Put the nasty error message in config.log where it belongs | |
9505 | echo "$CPG_PKG_ERRORS" >&5 | |
9506 | ||
9507 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9508 | $as_echo "no" >&6; } | |
9509 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9510 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9511 | CPG_LIBS="-lcpg" | |
9512 | elif test $pkg_failed = untried; then | |
9513 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
9514 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
9515 | CPG_LIBS="-lcpg" | |
9516 | else | |
9517 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
9518 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
9519 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9520 | $as_echo "yes" >&6; } | |
9521 | : | |
9522 | fi | |
9523 | fi | |
9524 | ||
d0191583 | 9525 | ################################################################################ |
ec6a6fbe AK |
9526 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
9527 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
d0191583 JM |
9528 | # Check whether --enable-debug was given. |
9529 | if test "${enable_debug+set}" = set; then | |
9530 | enableval=$enable_debug; DEBUG=$enableval | |
9531 | else | |
9532 | DEBUG=no | |
9533 | fi | |
8a2fc586 | 9534 | |
ec6a6fbe AK |
9535 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 |
9536 | $as_echo "$DEBUG" >&6; } | |
ad6254c5 | 9537 | |
d0191583 JM |
9538 | if test x$DEBUG = xyes; then |
9539 | COPTIMISE_FLAG= | |
fc54be10 | 9540 | else |
d0191583 JM |
9541 | CSCOPE_CMD= |
9542 | fi | |
fc54be10 | 9543 | |
d0191583 | 9544 | ################################################################################ |
ec6a6fbe AK |
9545 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
9546 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
d0191583 JM |
9547 | |
9548 | # Check whether --with-optimisation was given. | |
9549 | if test "${with_optimisation+set}" = set; then | |
9550 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
9551 | fi | |
9552 | ||
ec6a6fbe AK |
9553 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
9554 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
9555 | |
9556 | ################################################################################ | |
ec6a6fbe AK |
9557 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
9558 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
fddafd51 ZK |
9559 | # Check whether --enable-profiling was given. |
9560 | if test "${enable_profiling+set}" = set; then | |
5556819a | 9561 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 9562 | else |
5556819a | 9563 | PROFILING=no |
fddafd51 ZK |
9564 | fi |
9565 | ||
ec6a6fbe AK |
9566 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
9567 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
9568 | |
9569 | if test "x$PROFILING" = xyes; then | |
9570 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
9571 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 9572 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
9573 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9574 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9575 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 9576 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9577 | else |
9578 | case $LCOV in | |
9579 | [\\/]* | ?:[\\/]*) | |
9580 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
9581 | ;; | |
9582 | *) | |
9583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9584 | for as_dir in $PATH | |
9585 | do | |
9586 | IFS=$as_save_IFS | |
9587 | test -z "$as_dir" && as_dir=. | |
9588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9590 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9591 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9592 | break 2 |
9593 | fi | |
9594 | done | |
9595 | done | |
9596 | IFS=$as_save_IFS | |
9597 | ||
b145d876 | 9598 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
9599 | ;; |
9600 | esac | |
9601 | fi | |
9602 | LCOV=$ac_cv_path_LCOV | |
9603 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
9604 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
9605 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 9606 | else |
ec6a6fbe AK |
9607 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9608 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9609 | fi |
9610 | ||
9611 | ||
5556819a | 9612 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 9613 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
9614 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9615 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 9616 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 9617 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
9618 | else |
9619 | case $GENHTML in | |
9620 | [\\/]* | ?:[\\/]*) | |
9621 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
9622 | ;; | |
9623 | *) | |
9624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9625 | for as_dir in $PATH | |
9626 | do | |
9627 | IFS=$as_save_IFS | |
9628 | test -z "$as_dir" && as_dir=. | |
9629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9631 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 9632 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
9633 | break 2 |
9634 | fi | |
9635 | done | |
9636 | done | |
9637 | IFS=$as_save_IFS | |
9638 | ||
b145d876 | 9639 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
9640 | ;; |
9641 | esac | |
9642 | fi | |
9643 | GENHTML=$ac_cv_path_GENHTML | |
9644 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
9645 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
9646 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 9647 | else |
ec6a6fbe AK |
9648 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
9649 | $as_echo "no" >&6; } | |
fddafd51 ZK |
9650 | fi |
9651 | ||
9652 | ||
b145d876 | 9653 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
9654 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
9655 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
9656 | { (exit 1); exit 1; }; } |
9657 | fi | |
5556819a | 9658 | fi |
d0191583 JM |
9659 | |
9660 | ################################################################################ | |
ec6a6fbe AK |
9661 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
9662 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
9663 | # Check whether --enable-devmapper was given. |
9664 | if test "${enable_devmapper+set}" = set; then | |
9665 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
9666 | fi |
9667 | ||
ec6a6fbe AK |
9668 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
9669 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
9670 | |
9671 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
9672 | |
9673 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9674 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
9675 | _ACEOF |
9676 | ||
9677 | fi | |
9678 | ||
93bd259b AK |
9679 | ################################################################################ |
9680 | # Check whether --enable-compat was given. | |
9681 | if test "${enable_compat+set}" = set; then | |
9682 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9683 | else | |
9684 | DM_COMPAT=no | |
9685 | fi | |
9686 | ||
9687 | ||
9688 | ################################################################################ | |
9689 | # Check whether --enable-ioctl was given. | |
9690 | if test "${enable_ioctl+set}" = set; then | |
9691 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
9692 | fi | |
9693 | ||
9694 | ||
d0191583 | 9695 | ################################################################################ |
ec6a6fbe AK |
9696 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
9697 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
9698 | # Check whether --enable-o_direct was given. |
9699 | if test "${enable_o_direct+set}" = set; then | |
9700 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 9701 | fi |
ad6254c5 | 9702 | |
ec6a6fbe AK |
9703 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
9704 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 9705 | |
d0191583 | 9706 | if test x$ODIRECT = xyes; then |
ad6254c5 | 9707 | |
d0191583 JM |
9708 | cat >>confdefs.h <<\_ACEOF |
9709 | #define O_DIRECT_SUPPORT 1 | |
9710 | _ACEOF | |
ad6254c5 | 9711 | |
d0191583 | 9712 | fi |
ad6254c5 | 9713 | |
572fefeb AK |
9714 | ################################################################################ |
9715 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
9716 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9717 | # Check whether --enable-applib was given. | |
9718 | if test "${enable_applib+set}" = set; then | |
9719 | enableval=$enable_applib; APPLIB=$enableval | |
9720 | else | |
9721 | APPLIB=no | |
9722 | fi | |
9723 | ||
9724 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
9725 | $as_echo "$APPLIB" >&6; } | |
9726 | ||
9727 | test x$APPLIB = xyes \ | |
9728 | && LVM2APP_LIB=-llvm2app \ | |
9729 | || LVM2APP_LIB= | |
9730 | ||
d0191583 | 9731 | ################################################################################ |
ec6a6fbe AK |
9732 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
9733 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
9734 | # Check whether --enable-cmdlib was given. |
9735 | if test "${enable_cmdlib+set}" = set; then | |
9736 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 9737 | else |
d0191583 JM |
9738 | CMDLIB=no |
9739 | fi | |
8a2fc586 | 9740 | |
ec6a6fbe AK |
9741 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
9742 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 9743 | |
2a9a80c9 | 9744 | test x$CMDLIB = xyes \ |
d179cc7a JM |
9745 | && LVM2CMD_LIB=-llvm2cmd \ |
9746 | || LVM2CMD_LIB= | |
9747 | ||
93bd259b AK |
9748 | ################################################################################ |
9749 | # Check whether --enable-pkgconfig was given. | |
9750 | if test "${enable_pkgconfig+set}" = set; then | |
9751 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
9752 | else | |
9753 | PKGCONFIG=no | |
9754 | fi | |
9755 | ||
2a9a80c9 | 9756 | |
d0191583 | 9757 | ################################################################################ |
ec6a6fbe AK |
9758 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
9759 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
9760 | # Check whether --enable-fsadm was given. |
9761 | if test "${enable_fsadm+set}" = set; then | |
9762 | enableval=$enable_fsadm; FSADM=$enableval | |
9763 | fi | |
8a2fc586 | 9764 | |
ec6a6fbe AK |
9765 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
9766 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 9767 | |
d0191583 | 9768 | ################################################################################ |
ec6a6fbe AK |
9769 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
9770 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
9771 | # Check whether --enable-dmeventd was given. |
9772 | if test "${enable_dmeventd+set}" = set; then | |
9773 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9774 | fi | |
ad6254c5 | 9775 | |
ec6a6fbe AK |
9776 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
9777 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9778 | |
93bd259b AK |
9779 | BUILD_DMEVENTD=$DMEVENTD |
9780 | ||
2a9a80c9 PR |
9781 | if test x$DMEVENTD = xyes; then |
9782 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 9783 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9784 | " >&5 |
ec6a6fbe | 9785 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 9786 | " >&2;} |
d0191583 | 9787 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
9788 | fi |
9789 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 9790 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 9791 | " >&5 |
ec6a6fbe | 9792 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
9793 | " >&2;} |
9794 | { (exit 1); exit 1; }; } | |
9795 | fi | |
ad6254c5 | 9796 | fi |
7a197a62 | 9797 | |
d0191583 JM |
9798 | if test x$DMEVENTD = xyes; then |
9799 | ||
9800 | cat >>confdefs.h <<\_ACEOF | |
9801 | #define DMEVENTD 1 | |
ad6254c5 AK |
9802 | _ACEOF |
9803 | ||
ad6254c5 | 9804 | fi |
93bd259b AK |
9805 | |
9806 | ################################################################################ | |
9807 | ||
ec6a6fbe AK |
9808 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
9809 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 9810 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 9811 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9812 | else |
9813 | ac_check_lib_save_LIBS=$LIBS | |
9814 | LIBS="-lc $LIBS" | |
9815 | cat >conftest.$ac_ext <<_ACEOF | |
9816 | /* confdefs.h. */ | |
9817 | _ACEOF | |
9818 | cat confdefs.h >>conftest.$ac_ext | |
9819 | cat >>conftest.$ac_ext <<_ACEOF | |
9820 | /* end confdefs.h. */ | |
9821 | ||
9822 | /* Override any GCC internal prototype to avoid an error. | |
9823 | Use char because int might match the return type of a GCC | |
9824 | builtin and then its argument prototype would still apply. */ | |
9825 | #ifdef __cplusplus | |
9826 | extern "C" | |
9827 | #endif | |
9828 | char getline (); | |
9829 | int | |
9830 | main () | |
9831 | { | |
9832 | return getline (); | |
9833 | ; | |
9834 | return 0; | |
9835 | } | |
9836 | _ACEOF | |
9837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9838 | if { (ac_try="$ac_link" | |
9839 | case "(($ac_try" in | |
9840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9841 | *) ac_try_echo=$ac_try;; | |
9842 | esac | |
ec6a6fbe AK |
9843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9844 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9845 | (eval "$ac_link") 2>conftest.er1 |
9846 | ac_status=$? | |
9847 | grep -v '^ *+' conftest.er1 >conftest.err | |
9848 | rm -f conftest.er1 | |
9849 | cat conftest.err >&5 | |
ec6a6fbe | 9850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9851 | (exit $ac_status); } && { |
9852 | test -z "$ac_c_werror_flag" || | |
9853 | test ! -s conftest.err | |
ec6a6fbe AK |
9854 | } && test -s conftest$ac_exeext && { |
9855 | test "$cross_compiling" = yes || | |
9856 | $as_test_x conftest$ac_exeext | |
9857 | }; then | |
93bd259b AK |
9858 | ac_cv_lib_c_getline=yes |
9859 | else | |
ec6a6fbe | 9860 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9861 | sed 's/^/| /' conftest.$ac_ext >&5 |
9862 | ||
9863 | ac_cv_lib_c_getline=no | |
9864 | fi | |
9865 | ||
ec6a6fbe | 9866 | rm -rf conftest.dSYM |
93bd259b AK |
9867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9868 | conftest$ac_exeext conftest.$ac_ext | |
9869 | LIBS=$ac_check_lib_save_LIBS | |
9870 | fi | |
ec6a6fbe AK |
9871 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
9872 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9873 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
9874 | |
9875 | cat >>confdefs.h <<\_ACEOF | |
9876 | #define HAVE_GETLINE 1 | |
9877 | _ACEOF | |
9878 | ||
9879 | fi | |
9880 | ||
9881 | ||
9882 | ################################################################################ | |
9883 | ||
ec6a6fbe AK |
9884 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
9885 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 9886 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 9887 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
9888 | else |
9889 | ac_check_lib_save_LIBS=$LIBS | |
9890 | LIBS="-lc $LIBS" | |
9891 | cat >conftest.$ac_ext <<_ACEOF | |
9892 | /* confdefs.h. */ | |
9893 | _ACEOF | |
9894 | cat confdefs.h >>conftest.$ac_ext | |
9895 | cat >>conftest.$ac_ext <<_ACEOF | |
9896 | /* end confdefs.h. */ | |
9897 | ||
9898 | /* Override any GCC internal prototype to avoid an error. | |
9899 | Use char because int might match the return type of a GCC | |
9900 | builtin and then its argument prototype would still apply. */ | |
9901 | #ifdef __cplusplus | |
9902 | extern "C" | |
9903 | #endif | |
9904 | char canonicalize_file_name (); | |
9905 | int | |
9906 | main () | |
9907 | { | |
9908 | return canonicalize_file_name (); | |
9909 | ; | |
9910 | return 0; | |
9911 | } | |
9912 | _ACEOF | |
9913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9914 | if { (ac_try="$ac_link" | |
9915 | case "(($ac_try" in | |
9916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9917 | *) ac_try_echo=$ac_try;; | |
9918 | esac | |
ec6a6fbe AK |
9919 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9920 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
9921 | (eval "$ac_link") 2>conftest.er1 |
9922 | ac_status=$? | |
9923 | grep -v '^ *+' conftest.er1 >conftest.err | |
9924 | rm -f conftest.er1 | |
9925 | cat conftest.err >&5 | |
ec6a6fbe | 9926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
9927 | (exit $ac_status); } && { |
9928 | test -z "$ac_c_werror_flag" || | |
9929 | test ! -s conftest.err | |
ec6a6fbe AK |
9930 | } && test -s conftest$ac_exeext && { |
9931 | test "$cross_compiling" = yes || | |
9932 | $as_test_x conftest$ac_exeext | |
9933 | }; then | |
93bd259b AK |
9934 | ac_cv_lib_c_canonicalize_file_name=yes |
9935 | else | |
ec6a6fbe | 9936 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
9937 | sed 's/^/| /' conftest.$ac_ext >&5 |
9938 | ||
9939 | ac_cv_lib_c_canonicalize_file_name=no | |
9940 | fi | |
9941 | ||
ec6a6fbe | 9942 | rm -rf conftest.dSYM |
93bd259b AK |
9943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9944 | conftest$ac_exeext conftest.$ac_ext | |
9945 | LIBS=$ac_check_lib_save_LIBS | |
9946 | fi | |
ec6a6fbe AK |
9947 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
9948 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9949 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
9950 | |
9951 | cat >>confdefs.h <<\_ACEOF | |
9952 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9953 | _ACEOF | |
9954 | ||
9955 | fi | |
9956 | ||
9957 | ||
d0191583 JM |
9958 | ################################################################################ |
9959 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9960 | then exec_prefix=""; | |
9961 | fi; | |
ad6254c5 AK |
9962 | |
9963 | ################################################################################ | |
06e459df | 9964 | if test x$READLINE != xno; then |
ec6a6fbe AK |
9965 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9966 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 9967 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 9968 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9969 | else |
9970 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9971 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9972 | /* confdefs.h. */ |
9973 | _ACEOF | |
9974 | cat confdefs.h >>conftest.$ac_ext | |
9975 | cat >>conftest.$ac_ext <<_ACEOF | |
9976 | /* end confdefs.h. */ | |
9977 | ||
7a197a62 AK |
9978 | /* Override any GCC internal prototype to avoid an error. |
9979 | Use char because int might match the return type of a GCC | |
9980 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9981 | #ifdef __cplusplus |
9982 | extern "C" | |
9983 | #endif | |
ad6254c5 AK |
9984 | char tgetent (); |
9985 | int | |
9986 | main () | |
9987 | { | |
7a197a62 | 9988 | return tgetent (); |
ad6254c5 AK |
9989 | ; |
9990 | return 0; | |
9991 | } | |
9992 | _ACEOF | |
18dcfb69 | 9993 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
9994 | if test -z "$ac_lib"; then |
9995 | ac_res="none required" | |
9996 | else | |
9997 | ac_res=-l$ac_lib | |
9998 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9999 | fi | |
10000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10001 | if { (ac_try="$ac_link" | |
10002 | case "(($ac_try" in | |
10003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10004 | *) ac_try_echo=$ac_try;; | |
10005 | esac | |
ec6a6fbe AK |
10006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10007 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10008 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10009 | ac_status=$? |
8a2fc586 AK |
10010 | grep -v '^ *+' conftest.er1 >conftest.err |
10011 | rm -f conftest.er1 | |
10012 | cat conftest.err >&5 | |
ec6a6fbe | 10013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10014 | (exit $ac_status); } && { |
10015 | test -z "$ac_c_werror_flag" || | |
10016 | test ! -s conftest.err | |
ec6a6fbe AK |
10017 | } && test -s conftest$ac_exeext && { |
10018 | test "$cross_compiling" = yes || | |
10019 | $as_test_x conftest$ac_exeext | |
10020 | }; then | |
7a197a62 | 10021 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 10022 | else |
ec6a6fbe | 10023 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10024 | sed 's/^/| /' conftest.$ac_ext >&5 |
10025 | ||
ad6254c5 | 10026 | |
7a197a62 | 10027 | fi |
ad6254c5 | 10028 | |
ec6a6fbe | 10029 | rm -rf conftest.dSYM |
25fbec5b | 10030 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
10031 | conftest$ac_exeext |
10032 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10033 | break | |
ad6254c5 | 10034 | fi |
7a197a62 AK |
10035 | done |
10036 | if test "${ac_cv_search_tgetent+set}" = set; then | |
10037 | : | |
10038 | else | |
10039 | ac_cv_search_tgetent=no | |
ad6254c5 | 10040 | fi |
7a197a62 | 10041 | rm conftest.$ac_ext |
ad6254c5 AK |
10042 | LIBS=$ac_func_search_save_LIBS |
10043 | fi | |
ec6a6fbe AK |
10044 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
10045 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
10046 | ac_res=$ac_cv_search_tgetent |
10047 | if test "$ac_res" != no; then | |
10048 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 10049 | tg_found=yes |
ad6254c5 | 10050 | else |
06e459df JM |
10051 | tg_found=no |
10052 | fi | |
10053 | ||
10054 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 10055 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
10056 | --enable-readline option (which is enabled by default). Either disable readline |
10057 | support with --disable-readline or download and install termcap from: | |
10058 | ftp.gnu.org/gnu/termcap | |
10059 | Note: if you are using precompiled packages you will also need the development | |
10060 | package as well (which may be called termcap-devel or something similar). | |
10061 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10062 | not found either - but you could try installing that as well. | |
10063 | " >&5 | |
ec6a6fbe | 10064 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
10065 | --enable-readline option (which is enabled by default). Either disable readline |
10066 | support with --disable-readline or download and install termcap from: | |
10067 | ftp.gnu.org/gnu/termcap | |
10068 | Note: if you are using precompiled packages you will also need the development | |
10069 | package as well (which may be called termcap-devel or something similar). | |
10070 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
10071 | not found either - but you could try installing that as well. | |
10072 | " >&2;} | |
10073 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
10074 | fi |
10075 | ||
10076 | ################################################################################ | |
ec6a6fbe AK |
10077 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10078 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 10079 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 10080 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10081 | else |
10082 | ac_check_lib_save_LIBS=$LIBS | |
10083 | LIBS="-ldl $LIBS" | |
10084 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10085 | /* confdefs.h. */ |
10086 | _ACEOF | |
10087 | cat confdefs.h >>conftest.$ac_ext | |
10088 | cat >>conftest.$ac_ext <<_ACEOF | |
10089 | /* end confdefs.h. */ | |
10090 | ||
7a197a62 AK |
10091 | /* Override any GCC internal prototype to avoid an error. |
10092 | Use char because int might match the return type of a GCC | |
10093 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10094 | #ifdef __cplusplus |
10095 | extern "C" | |
10096 | #endif | |
ad6254c5 AK |
10097 | char dlopen (); |
10098 | int | |
10099 | main () | |
10100 | { | |
7a197a62 | 10101 | return dlopen (); |
ad6254c5 AK |
10102 | ; |
10103 | return 0; | |
10104 | } | |
10105 | _ACEOF | |
10106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10107 | if { (ac_try="$ac_link" |
10108 | case "(($ac_try" in | |
10109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10110 | *) ac_try_echo=$ac_try;; | |
10111 | esac | |
ec6a6fbe AK |
10112 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10113 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10114 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10115 | ac_status=$? |
8a2fc586 AK |
10116 | grep -v '^ *+' conftest.er1 >conftest.err |
10117 | rm -f conftest.er1 | |
10118 | cat conftest.err >&5 | |
ec6a6fbe | 10119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10120 | (exit $ac_status); } && { |
10121 | test -z "$ac_c_werror_flag" || | |
10122 | test ! -s conftest.err | |
ec6a6fbe AK |
10123 | } && test -s conftest$ac_exeext && { |
10124 | test "$cross_compiling" = yes || | |
10125 | $as_test_x conftest$ac_exeext | |
10126 | }; then | |
ad6254c5 AK |
10127 | ac_cv_lib_dl_dlopen=yes |
10128 | else | |
ec6a6fbe | 10129 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10130 | sed 's/^/| /' conftest.$ac_ext >&5 |
10131 | ||
7a197a62 | 10132 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 10133 | fi |
7a197a62 | 10134 | |
ec6a6fbe | 10135 | rm -rf conftest.dSYM |
25fbec5b | 10136 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10137 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10138 | LIBS=$ac_check_lib_save_LIBS |
10139 | fi | |
ec6a6fbe AK |
10140 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10141 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10142 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
10143 | HAVE_LIBDL=yes |
10144 | else | |
10145 | HAVE_LIBDL=no | |
10146 | fi | |
10147 | ||
10148 | ||
7e9e9502 | 10149 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
10150 | |
10151 | cat >>confdefs.h <<\_ACEOF | |
10152 | #define HAVE_LIBDL 1 | |
10153 | _ACEOF | |
10154 | ||
ad6254c5 AK |
10155 | LIBS="-ldl $LIBS" |
10156 | else | |
10157 | HAVE_LIBDL=no | |
10158 | fi | |
10159 | ||
10160 | ################################################################################ | |
10161 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
10162 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
10163 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 10164 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 10165 | " >&5 |
ec6a6fbe | 10166 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
10167 | " >&2;} |
10168 | { (exit 1); exit 1; }; } | |
10169 | fi | |
10170 | ||
d0191583 | 10171 | ################################################################################ |
ec6a6fbe AK |
10172 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
10173 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
10174 | # Check whether --enable-selinux was given. |
10175 | if test "${enable_selinux+set}" = set; then | |
10176 | enableval=$enable_selinux; SELINUX=$enableval | |
10177 | fi | |
10178 | ||
ec6a6fbe AK |
10179 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
10180 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 10181 | |
ad6254c5 AK |
10182 | ################################################################################ |
10183 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
10184 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
10185 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 10186 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 10187 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
10188 | else |
10189 | ac_check_lib_save_LIBS=$LIBS | |
10190 | LIBS="-lsepol $LIBS" | |
10191 | cat >conftest.$ac_ext <<_ACEOF | |
10192 | /* confdefs.h. */ | |
10193 | _ACEOF | |
10194 | cat confdefs.h >>conftest.$ac_ext | |
10195 | cat >>conftest.$ac_ext <<_ACEOF | |
10196 | /* end confdefs.h. */ | |
10197 | ||
7a197a62 AK |
10198 | /* Override any GCC internal prototype to avoid an error. |
10199 | Use char because int might match the return type of a GCC | |
10200 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
10201 | #ifdef __cplusplus |
10202 | extern "C" | |
10203 | #endif | |
8a2fc586 AK |
10204 | char sepol_check_context (); |
10205 | int | |
10206 | main () | |
10207 | { | |
7a197a62 | 10208 | return sepol_check_context (); |
8a2fc586 AK |
10209 | ; |
10210 | return 0; | |
10211 | } | |
10212 | _ACEOF | |
10213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10214 | if { (ac_try="$ac_link" |
10215 | case "(($ac_try" in | |
10216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10217 | *) ac_try_echo=$ac_try;; | |
10218 | esac | |
ec6a6fbe AK |
10219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10220 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10221 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
10222 | ac_status=$? |
10223 | grep -v '^ *+' conftest.er1 >conftest.err | |
10224 | rm -f conftest.er1 | |
10225 | cat conftest.err >&5 | |
ec6a6fbe | 10226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10227 | (exit $ac_status); } && { |
10228 | test -z "$ac_c_werror_flag" || | |
10229 | test ! -s conftest.err | |
ec6a6fbe AK |
10230 | } && test -s conftest$ac_exeext && { |
10231 | test "$cross_compiling" = yes || | |
10232 | $as_test_x conftest$ac_exeext | |
10233 | }; then | |
8a2fc586 AK |
10234 | ac_cv_lib_sepol_sepol_check_context=yes |
10235 | else | |
ec6a6fbe | 10236 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
10237 | sed 's/^/| /' conftest.$ac_ext >&5 |
10238 | ||
7a197a62 | 10239 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 10240 | fi |
7a197a62 | 10241 | |
ec6a6fbe | 10242 | rm -rf conftest.dSYM |
25fbec5b | 10243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
10244 | conftest$ac_exeext conftest.$ac_ext |
10245 | LIBS=$ac_check_lib_save_LIBS | |
10246 | fi | |
ec6a6fbe AK |
10247 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
10248 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
10249 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
10250 | HAVE_SEPOL=yes |
10251 | else | |
10252 | HAVE_SEPOL=no | |
10253 | fi | |
10254 | ||
8a2fc586 AK |
10255 | |
10256 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
10257 | |
10258 | cat >>confdefs.h <<\_ACEOF | |
10259 | #define HAVE_SEPOL 1 | |
10260 | _ACEOF | |
10261 | ||
8a2fc586 AK |
10262 | LIBS="-lsepol $LIBS" |
10263 | fi | |
10264 | ||
ec6a6fbe AK |
10265 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
10266 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 10267 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 10268 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10269 | else |
10270 | ac_check_lib_save_LIBS=$LIBS | |
10271 | LIBS="-lselinux $LIBS" | |
10272 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10273 | /* confdefs.h. */ |
10274 | _ACEOF | |
10275 | cat confdefs.h >>conftest.$ac_ext | |
10276 | cat >>conftest.$ac_ext <<_ACEOF | |
10277 | /* end confdefs.h. */ | |
10278 | ||
7a197a62 AK |
10279 | /* Override any GCC internal prototype to avoid an error. |
10280 | Use char because int might match the return type of a GCC | |
10281 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10282 | #ifdef __cplusplus |
10283 | extern "C" | |
10284 | #endif | |
ad6254c5 AK |
10285 | char is_selinux_enabled (); |
10286 | int | |
10287 | main () | |
10288 | { | |
7a197a62 | 10289 | return is_selinux_enabled (); |
ad6254c5 AK |
10290 | ; |
10291 | return 0; | |
10292 | } | |
10293 | _ACEOF | |
10294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10295 | if { (ac_try="$ac_link" |
10296 | case "(($ac_try" in | |
10297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10298 | *) ac_try_echo=$ac_try;; | |
10299 | esac | |
ec6a6fbe AK |
10300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10301 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10302 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10303 | ac_status=$? |
8a2fc586 AK |
10304 | grep -v '^ *+' conftest.er1 >conftest.err |
10305 | rm -f conftest.er1 | |
10306 | cat conftest.err >&5 | |
ec6a6fbe | 10307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10308 | (exit $ac_status); } && { |
10309 | test -z "$ac_c_werror_flag" || | |
10310 | test ! -s conftest.err | |
ec6a6fbe AK |
10311 | } && test -s conftest$ac_exeext && { |
10312 | test "$cross_compiling" = yes || | |
10313 | $as_test_x conftest$ac_exeext | |
10314 | }; then | |
ad6254c5 AK |
10315 | ac_cv_lib_selinux_is_selinux_enabled=yes |
10316 | else | |
ec6a6fbe | 10317 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10318 | sed 's/^/| /' conftest.$ac_ext >&5 |
10319 | ||
7a197a62 | 10320 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 10321 | fi |
7a197a62 | 10322 | |
ec6a6fbe | 10323 | rm -rf conftest.dSYM |
25fbec5b | 10324 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10325 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10326 | LIBS=$ac_check_lib_save_LIBS |
10327 | fi | |
ec6a6fbe AK |
10328 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
10329 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
10330 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
10331 | HAVE_SELINUX=yes |
10332 | else | |
10333 | HAVE_SELINUX=no | |
10334 | fi | |
10335 | ||
ad6254c5 AK |
10336 | |
10337 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
10338 | |
10339 | cat >>confdefs.h <<\_ACEOF | |
10340 | #define HAVE_SELINUX 1 | |
10341 | _ACEOF | |
10342 | ||
ad6254c5 AK |
10343 | LIBS="-lselinux $LIBS" |
10344 | else | |
ec6a6fbe AK |
10345 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
10346 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
10347 | fi |
10348 | ||
d0191583 | 10349 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
10350 | # fails on at least Debian unstable due to unsatisfied references |
10351 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
10352 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
10353 | lvm_saved_libs=$LIBS | |
10354 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
10355 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
10356 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 10357 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 10358 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
10359 | else |
10360 | ac_func_search_save_LIBS=$LIBS | |
10361 | cat >conftest.$ac_ext <<_ACEOF | |
10362 | /* confdefs.h. */ | |
10363 | _ACEOF | |
10364 | cat confdefs.h >>conftest.$ac_ext | |
10365 | cat >>conftest.$ac_ext <<_ACEOF | |
10366 | /* end confdefs.h. */ | |
10367 | ||
10368 | /* Override any GCC internal prototype to avoid an error. | |
10369 | Use char because int might match the return type of a GCC | |
10370 | builtin and then its argument prototype would still apply. */ | |
10371 | #ifdef __cplusplus | |
10372 | extern "C" | |
10373 | #endif | |
10374 | char pthread_mutex_lock (); | |
10375 | int | |
10376 | main () | |
10377 | { | |
10378 | return pthread_mutex_lock (); | |
10379 | ; | |
10380 | return 0; | |
10381 | } | |
10382 | _ACEOF | |
10383 | for ac_lib in '' pthread; do | |
10384 | if test -z "$ac_lib"; then | |
10385 | ac_res="none required" | |
10386 | else | |
10387 | ac_res=-l$ac_lib | |
10388 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10389 | fi | |
10390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10391 | if { (ac_try="$ac_link" | |
10392 | case "(($ac_try" in | |
10393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10394 | *) ac_try_echo=$ac_try;; | |
10395 | esac | |
ec6a6fbe AK |
10396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10397 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
10398 | (eval "$ac_link") 2>conftest.er1 |
10399 | ac_status=$? | |
10400 | grep -v '^ *+' conftest.er1 >conftest.err | |
10401 | rm -f conftest.er1 | |
10402 | cat conftest.err >&5 | |
ec6a6fbe | 10403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10404 | (exit $ac_status); } && { |
10405 | test -z "$ac_c_werror_flag" || | |
10406 | test ! -s conftest.err | |
ec6a6fbe AK |
10407 | } && test -s conftest$ac_exeext && { |
10408 | test "$cross_compiling" = yes || | |
10409 | $as_test_x conftest$ac_exeext | |
10410 | }; then | |
66e941e8 JM |
10411 | ac_cv_search_pthread_mutex_lock=$ac_res |
10412 | else | |
ec6a6fbe | 10413 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
10414 | sed 's/^/| /' conftest.$ac_ext >&5 |
10415 | ||
10416 | ||
10417 | fi | |
10418 | ||
ec6a6fbe | 10419 | rm -rf conftest.dSYM |
25fbec5b | 10420 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
10421 | conftest$ac_exeext |
10422 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10423 | break | |
10424 | fi | |
10425 | done | |
10426 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
10427 | : | |
10428 | else | |
10429 | ac_cv_search_pthread_mutex_lock=no | |
10430 | fi | |
10431 | rm conftest.$ac_ext | |
10432 | LIBS=$ac_func_search_save_LIBS | |
10433 | fi | |
ec6a6fbe AK |
10434 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
10435 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
10436 | ac_res=$ac_cv_search_pthread_mutex_lock |
10437 | if test "$ac_res" != no; then | |
10438 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10439 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
10440 | LIB_PTHREAD=-lpthread | |
10441 | fi | |
10442 | ||
10443 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
10444 | fi |
10445 | fi | |
10446 | ||
8b1a3214 AK |
10447 | ################################################################################ |
10448 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
10449 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
10450 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 10451 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 10452 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
10453 | else |
10454 | ac_check_lib_save_LIBS=$LIBS | |
10455 | LIBS="-lrt $LIBS" | |
10456 | cat >conftest.$ac_ext <<_ACEOF | |
10457 | /* confdefs.h. */ | |
10458 | _ACEOF | |
10459 | cat confdefs.h >>conftest.$ac_ext | |
10460 | cat >>conftest.$ac_ext <<_ACEOF | |
10461 | /* end confdefs.h. */ | |
10462 | ||
7a197a62 AK |
10463 | /* Override any GCC internal prototype to avoid an error. |
10464 | Use char because int might match the return type of a GCC | |
10465 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
10466 | #ifdef __cplusplus |
10467 | extern "C" | |
10468 | #endif | |
8b1a3214 AK |
10469 | char clock_gettime (); |
10470 | int | |
10471 | main () | |
10472 | { | |
7a197a62 | 10473 | return clock_gettime (); |
8b1a3214 AK |
10474 | ; |
10475 | return 0; | |
10476 | } | |
10477 | _ACEOF | |
10478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10479 | if { (ac_try="$ac_link" |
10480 | case "(($ac_try" in | |
10481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10482 | *) ac_try_echo=$ac_try;; | |
10483 | esac | |
ec6a6fbe AK |
10484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10485 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10486 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
10487 | ac_status=$? |
10488 | grep -v '^ *+' conftest.er1 >conftest.err | |
10489 | rm -f conftest.er1 | |
10490 | cat conftest.err >&5 | |
ec6a6fbe | 10491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10492 | (exit $ac_status); } && { |
10493 | test -z "$ac_c_werror_flag" || | |
10494 | test ! -s conftest.err | |
ec6a6fbe AK |
10495 | } && test -s conftest$ac_exeext && { |
10496 | test "$cross_compiling" = yes || | |
10497 | $as_test_x conftest$ac_exeext | |
10498 | }; then | |
8b1a3214 AK |
10499 | ac_cv_lib_rt_clock_gettime=yes |
10500 | else | |
ec6a6fbe | 10501 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
10502 | sed 's/^/| /' conftest.$ac_ext >&5 |
10503 | ||
7a197a62 | 10504 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 10505 | fi |
7a197a62 | 10506 | |
ec6a6fbe | 10507 | rm -rf conftest.dSYM |
25fbec5b | 10508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
10509 | conftest$ac_exeext conftest.$ac_ext |
10510 | LIBS=$ac_check_lib_save_LIBS | |
10511 | fi | |
ec6a6fbe AK |
10512 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
10513 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
10514 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
10515 | HAVE_REALTIME=yes |
10516 | else | |
10517 | HAVE_REALTIME=no | |
10518 | fi | |
10519 | ||
8b1a3214 AK |
10520 | |
10521 | if test x$HAVE_REALTIME = xyes; then | |
10522 | ||
10523 | cat >>confdefs.h <<\_ACEOF | |
10524 | #define HAVE_REALTIME 1 | |
10525 | _ACEOF | |
10526 | ||
10527 | LIBS="-lrt $LIBS" | |
10528 | else | |
ec6a6fbe AK |
10529 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
10530 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
10531 | fi |
10532 | fi | |
10533 | ||
ad6254c5 AK |
10534 | ################################################################################ |
10535 | ||
10536 | for ac_header in getopt.h | |
10537 | do | |
ec6a6fbe | 10538 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10539 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
10540 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10541 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10542 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10543 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10544 | fi |
ec6a6fbe AK |
10545 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10546 | $as_echo "$as_val"'` | |
10547 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10548 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10549 | else |
10550 | # Is the header compilable? | |
ec6a6fbe AK |
10551 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10552 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 10553 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10554 | /* confdefs.h. */ |
10555 | _ACEOF | |
10556 | cat confdefs.h >>conftest.$ac_ext | |
10557 | cat >>conftest.$ac_ext <<_ACEOF | |
10558 | /* end confdefs.h. */ | |
10559 | $ac_includes_default | |
10560 | #include <$ac_header> | |
10561 | _ACEOF | |
10562 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10563 | if { (ac_try="$ac_compile" |
10564 | case "(($ac_try" in | |
10565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10566 | *) ac_try_echo=$ac_try;; | |
10567 | esac | |
ec6a6fbe AK |
10568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10569 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10570 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10571 | ac_status=$? |
8a2fc586 AK |
10572 | grep -v '^ *+' conftest.er1 >conftest.err |
10573 | rm -f conftest.er1 | |
10574 | cat conftest.err >&5 | |
ec6a6fbe | 10575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10576 | (exit $ac_status); } && { |
10577 | test -z "$ac_c_werror_flag" || | |
10578 | test ! -s conftest.err | |
10579 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10580 | ac_header_compiler=yes |
10581 | else | |
ec6a6fbe | 10582 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10583 | sed 's/^/| /' conftest.$ac_ext >&5 |
10584 | ||
7a197a62 | 10585 | ac_header_compiler=no |
ad6254c5 | 10586 | fi |
7a197a62 AK |
10587 | |
10588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
10589 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10590 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10591 | |
10592 | # Is the header present? | |
ec6a6fbe AK |
10593 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10594 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 10595 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10596 | /* confdefs.h. */ |
10597 | _ACEOF | |
10598 | cat confdefs.h >>conftest.$ac_ext | |
10599 | cat >>conftest.$ac_ext <<_ACEOF | |
10600 | /* end confdefs.h. */ | |
10601 | #include <$ac_header> | |
10602 | _ACEOF | |
7a197a62 AK |
10603 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10604 | case "(($ac_try" in | |
10605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10606 | *) ac_try_echo=$ac_try;; | |
10607 | esac | |
ec6a6fbe AK |
10608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10609 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10610 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10611 | ac_status=$? |
10612 | grep -v '^ *+' conftest.er1 >conftest.err | |
10613 | rm -f conftest.er1 | |
10614 | cat conftest.err >&5 | |
ec6a6fbe | 10615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10616 | (exit $ac_status); } >/dev/null && { |
10617 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10618 | test ! -s conftest.err | |
10619 | }; then | |
ad6254c5 AK |
10620 | ac_header_preproc=yes |
10621 | else | |
ec6a6fbe | 10622 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10623 | sed 's/^/| /' conftest.$ac_ext >&5 |
10624 | ||
10625 | ac_header_preproc=no | |
10626 | fi | |
7a197a62 | 10627 | |
ad6254c5 | 10628 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10629 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10630 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10631 | |
10632 | # So? What about this header? | |
8a2fc586 AK |
10633 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10634 | yes:no: ) | |
ec6a6fbe AK |
10635 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10636 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10637 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10638 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10639 | ac_header_preproc=yes |
ad6254c5 | 10640 | ;; |
8a2fc586 | 10641 | no:yes:* ) |
ec6a6fbe AK |
10642 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10643 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10644 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10645 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10646 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10647 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10648 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10649 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10650 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10651 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10652 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10653 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10654 | |
ad6254c5 AK |
10655 | ;; |
10656 | esac | |
ec6a6fbe AK |
10657 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10658 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10659 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10660 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10661 | else |
8a2fc586 | 10662 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10663 | fi |
ec6a6fbe AK |
10664 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10665 | $as_echo "$as_val"'` | |
10666 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10667 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10668 | |
10669 | fi | |
ec6a6fbe AK |
10670 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10671 | $as_echo "$as_val"'` | |
10672 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10673 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10674 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10675 | _ACEOF |
72b2cb61 AK |
10676 | |
10677 | cat >>confdefs.h <<\_ACEOF | |
10678 | #define HAVE_GETOPTLONG 1 | |
10679 | _ACEOF | |
10680 | ||
ad6254c5 AK |
10681 | fi |
10682 | ||
10683 | done | |
10684 | ||
10685 | ||
10686 | ################################################################################ | |
06e459df | 10687 | if test x$READLINE != xno; then |
bc1024f8 JM |
10688 | rl_found=yes |
10689 | ||
ec6a6fbe AK |
10690 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10691 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 10692 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 10693 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10694 | else |
10695 | ac_check_lib_save_LIBS=$LIBS | |
10696 | LIBS="-lreadline $LIBS" | |
10697 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10698 | /* confdefs.h. */ |
10699 | _ACEOF | |
10700 | cat confdefs.h >>conftest.$ac_ext | |
10701 | cat >>conftest.$ac_ext <<_ACEOF | |
10702 | /* end confdefs.h. */ | |
10703 | ||
7a197a62 AK |
10704 | /* Override any GCC internal prototype to avoid an error. |
10705 | Use char because int might match the return type of a GCC | |
10706 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10707 | #ifdef __cplusplus |
10708 | extern "C" | |
10709 | #endif | |
ad6254c5 AK |
10710 | char readline (); |
10711 | int | |
10712 | main () | |
10713 | { | |
7a197a62 | 10714 | return readline (); |
ad6254c5 AK |
10715 | ; |
10716 | return 0; | |
10717 | } | |
10718 | _ACEOF | |
10719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10720 | if { (ac_try="$ac_link" |
10721 | case "(($ac_try" in | |
10722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10723 | *) ac_try_echo=$ac_try;; | |
10724 | esac | |
ec6a6fbe AK |
10725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10726 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10727 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10728 | ac_status=$? |
8a2fc586 AK |
10729 | grep -v '^ *+' conftest.er1 >conftest.err |
10730 | rm -f conftest.er1 | |
10731 | cat conftest.err >&5 | |
ec6a6fbe | 10732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10733 | (exit $ac_status); } && { |
10734 | test -z "$ac_c_werror_flag" || | |
10735 | test ! -s conftest.err | |
ec6a6fbe AK |
10736 | } && test -s conftest$ac_exeext && { |
10737 | test "$cross_compiling" = yes || | |
10738 | $as_test_x conftest$ac_exeext | |
10739 | }; then | |
ad6254c5 AK |
10740 | ac_cv_lib_readline_readline=yes |
10741 | else | |
ec6a6fbe | 10742 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10743 | sed 's/^/| /' conftest.$ac_ext >&5 |
10744 | ||
7a197a62 | 10745 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10746 | fi |
7a197a62 | 10747 | |
ec6a6fbe | 10748 | rm -rf conftest.dSYM |
25fbec5b | 10749 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10750 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10751 | LIBS=$ac_check_lib_save_LIBS |
10752 | fi | |
ec6a6fbe AK |
10753 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10754 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
10755 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
10756 | cat >>confdefs.h <<_ACEOF |
10757 | #define HAVE_LIBREADLINE 1 | |
10758 | _ACEOF | |
10759 | ||
10760 | LIBS="-lreadline $LIBS" | |
10761 | ||
ad6254c5 | 10762 | else |
06e459df JM |
10763 | rl_found=no |
10764 | fi | |
10765 | ||
10766 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 10767 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10768 | --enable-readline option (which is enabled by default). Either disable readline |
10769 | support with --disable-readline or download and install readline from: | |
10770 | ftp.gnu.org/gnu/readline | |
10771 | Note: if you are using precompiled packages you will also need the development | |
10772 | package as well (which may be called readline-devel or something similar). | |
10773 | " >&5 | |
ec6a6fbe | 10774 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10775 | --enable-readline option (which is enabled by default). Either disable readline |
10776 | support with --disable-readline or download and install readline from: | |
10777 | ftp.gnu.org/gnu/readline | |
10778 | Note: if you are using precompiled packages you will also need the development | |
10779 | package as well (which may be called readline-devel or something similar). | |
10780 | " >&2;} | |
10781 | { (exit 1); exit 1; }; } | |
06e459df | 10782 | if test $rl_found = yes; then |
bc1024f8 JM |
10783 | |
10784 | for ac_func in rl_completion_matches | |
10785 | do | |
ec6a6fbe AK |
10786 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10787 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10788 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 10789 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10790 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10791 | else |
10792 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10793 | /* confdefs.h. */ |
10794 | _ACEOF | |
10795 | cat confdefs.h >>conftest.$ac_ext | |
10796 | cat >>conftest.$ac_ext <<_ACEOF | |
10797 | /* end confdefs.h. */ | |
bc1024f8 | 10798 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 10799 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 10800 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 10801 | |
ad6254c5 | 10802 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 10803 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
10804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10805 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10806 | |
ad6254c5 AK |
10807 | #ifdef __STDC__ |
10808 | # include <limits.h> | |
10809 | #else | |
10810 | # include <assert.h> | |
10811 | #endif | |
8a2fc586 | 10812 | |
bc1024f8 | 10813 | #undef $ac_func |
8a2fc586 | 10814 | |
7a197a62 AK |
10815 | /* Override any GCC internal prototype to avoid an error. |
10816 | Use char because int might match the return type of a GCC | |
10817 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10818 | #ifdef __cplusplus |
10819 | extern "C" | |
ad6254c5 | 10820 | #endif |
bc1024f8 | 10821 | char $ac_func (); |
ad6254c5 AK |
10822 | /* The GNU C library defines this for functions which it implements |
10823 | to always fail with ENOSYS. Some functions are actually named | |
10824 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 10825 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10826 | choke me |
ad6254c5 AK |
10827 | #endif |
10828 | ||
10829 | int | |
10830 | main () | |
10831 | { | |
bc1024f8 | 10832 | return $ac_func (); |
ad6254c5 AK |
10833 | ; |
10834 | return 0; | |
10835 | } | |
10836 | _ACEOF | |
10837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10838 | if { (ac_try="$ac_link" |
10839 | case "(($ac_try" in | |
10840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10841 | *) ac_try_echo=$ac_try;; | |
10842 | esac | |
ec6a6fbe AK |
10843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10844 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10845 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10846 | ac_status=$? |
8a2fc586 AK |
10847 | grep -v '^ *+' conftest.er1 >conftest.err |
10848 | rm -f conftest.er1 | |
10849 | cat conftest.err >&5 | |
ec6a6fbe | 10850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10851 | (exit $ac_status); } && { |
10852 | test -z "$ac_c_werror_flag" || | |
10853 | test ! -s conftest.err | |
ec6a6fbe AK |
10854 | } && test -s conftest$ac_exeext && { |
10855 | test "$cross_compiling" = yes || | |
10856 | $as_test_x conftest$ac_exeext | |
10857 | }; then | |
bc1024f8 | 10858 | eval "$as_ac_var=yes" |
ad6254c5 | 10859 | else |
ec6a6fbe | 10860 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10861 | sed 's/^/| /' conftest.$ac_ext >&5 |
10862 | ||
bc1024f8 | 10863 | eval "$as_ac_var=no" |
ad6254c5 | 10864 | fi |
7a197a62 | 10865 | |
ec6a6fbe | 10866 | rm -rf conftest.dSYM |
25fbec5b | 10867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10868 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10869 | fi |
ec6a6fbe AK |
10870 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10871 | $as_echo "$as_val"'` | |
10872 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10873 | $as_echo "$ac_res" >&6; } | |
10874 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10875 | $as_echo "$as_val"'` | |
10876 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 10877 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10878 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
10879 | _ACEOF |
10880 | ||
10881 | fi | |
bc1024f8 | 10882 | done |
ad6254c5 | 10883 | |
d179cc7a JM |
10884 | |
10885 | cat >>confdefs.h <<\_ACEOF | |
10886 | #define READLINE_SUPPORT 1 | |
10887 | _ACEOF | |
10888 | ||
06e459df | 10889 | fi |
ad6254c5 AK |
10890 | fi |
10891 | ||
10892 | ################################################################################ | |
ec6a6fbe AK |
10893 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10894 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 10895 | # Check whether --enable-nls was given. |
ad6254c5 | 10896 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10897 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10898 | else |
10899 | INTL=no | |
7a197a62 AK |
10900 | fi |
10901 | ||
ec6a6fbe AK |
10902 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
10903 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
10904 | |
10905 | if test x$INTL = xyes; then | |
93bd259b | 10906 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
10907 | INTL_PACKAGE="lvm2" |
10908 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10909 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
10910 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10911 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 10912 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 10913 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10914 | else |
10915 | case $MSGFMT in | |
10916 | [\\/]* | ?:[\\/]*) | |
10917 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10918 | ;; | |
10919 | *) | |
10920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10921 | for as_dir in $PATH | |
10922 | do | |
10923 | IFS=$as_save_IFS | |
10924 | test -z "$as_dir" && as_dir=. | |
10925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10927 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 10928 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10929 | break 2 |
10930 | fi | |
10931 | done | |
10932 | done | |
7a197a62 | 10933 | IFS=$as_save_IFS |
ad6254c5 AK |
10934 | |
10935 | ;; | |
10936 | esac | |
10937 | fi | |
10938 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10939 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
10940 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10941 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 10942 | else |
ec6a6fbe AK |
10943 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
10944 | $as_echo "no" >&6; } | |
ad6254c5 AK |
10945 | fi |
10946 | ||
7a197a62 | 10947 | |
ad6254c5 | 10948 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 10949 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10950 | " >&5 |
ec6a6fbe | 10951 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10952 | " >&2;} |
10953 | { (exit 1); exit 1; }; } | |
10954 | fi; | |
10955 | ||
10956 | ||
7a197a62 | 10957 | # Check whether --with-localedir was given. |
ad6254c5 | 10958 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10959 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10960 | else |
10961 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10962 | fi |
10963 | ||
ad6254c5 AK |
10964 | fi |
10965 | ||
10966 | ################################################################################ | |
10967 | ||
7a197a62 | 10968 | # Check whether --with-confdir was given. |
ad6254c5 | 10969 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10970 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10971 | else |
10972 | CONFDIR='/etc' | |
7a197a62 AK |
10973 | fi |
10974 | ||
ad6254c5 AK |
10975 | |
10976 | ||
7a197a62 | 10977 | # Check whether --with-staticdir was given. |
ad6254c5 | 10978 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10979 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10980 | else |
10981 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10982 | fi |
ad6254c5 | 10983 | |
33f732c5 | 10984 | |
7a197a62 | 10985 | |
68f2de6d AK |
10986 | # Check whether --with-usrlibdir was given. |
10987 | if test "${with_usrlibdir+set}" = set; then | |
10988 | withval=$with_usrlibdir; usrlibdir="$withval" | |
10989 | else | |
10990 | usrlibdir='${prefix}/lib' | |
10991 | fi | |
10992 | ||
10993 | ||
10994 | ||
10995 | # Check whether --with-usrsbindir was given. | |
10996 | if test "${with_usrsbindir+set}" = set; then | |
10997 | withval=$with_usrsbindir; usrsbindir="$withval" | |
10998 | else | |
10999 | usrsbindir='${prefix}/sbin' | |
11000 | fi | |
11001 | ||
11002 | ||
ad6254c5 AK |
11003 | ################################################################################ |
11004 | if test x$READLINE = xyes; then | |
11005 | ||
11006 | ||
11007 | for ac_header in readline/readline.h readline/history.h | |
11008 | do | |
ec6a6fbe | 11009 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11010 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11011 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11012 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11013 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11014 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11015 | fi |
ec6a6fbe AK |
11016 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11017 | $as_echo "$as_val"'` | |
11018 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11019 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11020 | else |
11021 | # Is the header compilable? | |
ec6a6fbe AK |
11022 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11023 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11024 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11025 | /* confdefs.h. */ |
11026 | _ACEOF | |
11027 | cat confdefs.h >>conftest.$ac_ext | |
11028 | cat >>conftest.$ac_ext <<_ACEOF | |
11029 | /* end confdefs.h. */ | |
11030 | $ac_includes_default | |
11031 | #include <$ac_header> | |
11032 | _ACEOF | |
11033 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11034 | if { (ac_try="$ac_compile" |
11035 | case "(($ac_try" in | |
11036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11037 | *) ac_try_echo=$ac_try;; | |
11038 | esac | |
ec6a6fbe AK |
11039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11040 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11041 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11042 | ac_status=$? |
8a2fc586 AK |
11043 | grep -v '^ *+' conftest.er1 >conftest.err |
11044 | rm -f conftest.er1 | |
11045 | cat conftest.err >&5 | |
ec6a6fbe | 11046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11047 | (exit $ac_status); } && { |
11048 | test -z "$ac_c_werror_flag" || | |
11049 | test ! -s conftest.err | |
11050 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11051 | ac_header_compiler=yes |
11052 | else | |
ec6a6fbe | 11053 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11054 | sed 's/^/| /' conftest.$ac_ext >&5 |
11055 | ||
7a197a62 | 11056 | ac_header_compiler=no |
ad6254c5 | 11057 | fi |
7a197a62 AK |
11058 | |
11059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11060 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11061 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11062 | |
11063 | # Is the header present? | |
ec6a6fbe AK |
11064 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11065 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11066 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11067 | /* confdefs.h. */ |
11068 | _ACEOF | |
11069 | cat confdefs.h >>conftest.$ac_ext | |
11070 | cat >>conftest.$ac_ext <<_ACEOF | |
11071 | /* end confdefs.h. */ | |
11072 | #include <$ac_header> | |
11073 | _ACEOF | |
7a197a62 AK |
11074 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11075 | case "(($ac_try" in | |
11076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11077 | *) ac_try_echo=$ac_try;; | |
11078 | esac | |
ec6a6fbe AK |
11079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11080 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11081 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11082 | ac_status=$? |
11083 | grep -v '^ *+' conftest.er1 >conftest.err | |
11084 | rm -f conftest.er1 | |
11085 | cat conftest.err >&5 | |
ec6a6fbe | 11086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11087 | (exit $ac_status); } >/dev/null && { |
11088 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11089 | test ! -s conftest.err | |
11090 | }; then | |
ad6254c5 AK |
11091 | ac_header_preproc=yes |
11092 | else | |
ec6a6fbe | 11093 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11094 | sed 's/^/| /' conftest.$ac_ext >&5 |
11095 | ||
11096 | ac_header_preproc=no | |
11097 | fi | |
7a197a62 | 11098 | |
ad6254c5 | 11099 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11100 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11101 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11102 | |
11103 | # So? What about this header? | |
8a2fc586 AK |
11104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11105 | yes:no: ) | |
ec6a6fbe AK |
11106 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11107 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11108 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11109 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11110 | ac_header_preproc=yes |
ad6254c5 | 11111 | ;; |
8a2fc586 | 11112 | no:yes:* ) |
ec6a6fbe AK |
11113 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11114 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11115 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11116 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11117 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11118 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11119 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11120 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11121 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11122 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11123 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11124 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11125 | |
ad6254c5 AK |
11126 | ;; |
11127 | esac | |
ec6a6fbe AK |
11128 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11129 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11131 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11132 | else |
8a2fc586 | 11133 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11134 | fi |
ec6a6fbe AK |
11135 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11136 | $as_echo "$as_val"'` | |
11137 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11138 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11139 | |
11140 | fi | |
ec6a6fbe AK |
11141 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11142 | $as_echo "$as_val"'` | |
11143 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11144 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11145 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11146 | _ACEOF |
11147 | ||
11148 | else | |
ec6a6fbe AK |
11149 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11150 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11151 | { (exit 1); exit 1; }; } |
11152 | fi | |
11153 | ||
11154 | done | |
11155 | ||
11156 | fi | |
11157 | ||
5c7fc7c4 | 11158 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
11159 | |
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | 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 | |
11170 | do | |
ec6a6fbe | 11171 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11172 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11173 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11174 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11175 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11176 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11177 | fi |
ec6a6fbe AK |
11178 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11179 | $as_echo "$as_val"'` | |
11180 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11181 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11182 | else |
11183 | # Is the header compilable? | |
ec6a6fbe AK |
11184 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11185 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11186 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11187 | /* confdefs.h. */ |
11188 | _ACEOF | |
11189 | cat confdefs.h >>conftest.$ac_ext | |
11190 | cat >>conftest.$ac_ext <<_ACEOF | |
11191 | /* end confdefs.h. */ | |
11192 | $ac_includes_default | |
11193 | #include <$ac_header> | |
11194 | _ACEOF | |
11195 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11196 | if { (ac_try="$ac_compile" |
11197 | case "(($ac_try" in | |
11198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11199 | *) ac_try_echo=$ac_try;; | |
11200 | esac | |
ec6a6fbe AK |
11201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11202 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11203 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11204 | ac_status=$? |
8a2fc586 AK |
11205 | grep -v '^ *+' conftest.er1 >conftest.err |
11206 | rm -f conftest.er1 | |
11207 | cat conftest.err >&5 | |
ec6a6fbe | 11208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11209 | (exit $ac_status); } && { |
11210 | test -z "$ac_c_werror_flag" || | |
11211 | test ! -s conftest.err | |
11212 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11213 | ac_header_compiler=yes |
11214 | else | |
ec6a6fbe | 11215 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11216 | sed 's/^/| /' conftest.$ac_ext >&5 |
11217 | ||
7a197a62 | 11218 | ac_header_compiler=no |
ad6254c5 | 11219 | fi |
7a197a62 AK |
11220 | |
11221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11222 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11223 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11224 | |
11225 | # Is the header present? | |
ec6a6fbe AK |
11226 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11227 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11228 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11229 | /* confdefs.h. */ |
11230 | _ACEOF | |
11231 | cat confdefs.h >>conftest.$ac_ext | |
11232 | cat >>conftest.$ac_ext <<_ACEOF | |
11233 | /* end confdefs.h. */ | |
11234 | #include <$ac_header> | |
11235 | _ACEOF | |
7a197a62 AK |
11236 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11237 | case "(($ac_try" in | |
11238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11239 | *) ac_try_echo=$ac_try;; | |
11240 | esac | |
ec6a6fbe AK |
11241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11242 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11243 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11244 | ac_status=$? |
11245 | grep -v '^ *+' conftest.er1 >conftest.err | |
11246 | rm -f conftest.er1 | |
11247 | cat conftest.err >&5 | |
ec6a6fbe | 11248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11249 | (exit $ac_status); } >/dev/null && { |
11250 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11251 | test ! -s conftest.err | |
11252 | }; then | |
ad6254c5 AK |
11253 | ac_header_preproc=yes |
11254 | else | |
ec6a6fbe | 11255 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11256 | sed 's/^/| /' conftest.$ac_ext >&5 |
11257 | ||
11258 | ac_header_preproc=no | |
11259 | fi | |
7a197a62 | 11260 | |
ad6254c5 | 11261 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11262 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11263 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11264 | |
11265 | # So? What about this header? | |
8a2fc586 AK |
11266 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11267 | yes:no: ) | |
ec6a6fbe AK |
11268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11269 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11271 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11272 | ac_header_preproc=yes |
ad6254c5 | 11273 | ;; |
8a2fc586 | 11274 | no:yes:* ) |
ec6a6fbe AK |
11275 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11276 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11277 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11278 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11280 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11282 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11284 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11286 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11287 | |
ad6254c5 AK |
11288 | ;; |
11289 | esac | |
ec6a6fbe AK |
11290 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11291 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11293 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11294 | else |
8a2fc586 | 11295 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 11296 | fi |
ec6a6fbe AK |
11297 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11298 | $as_echo "$as_val"'` | |
11299 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11300 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11301 | |
11302 | fi | |
ec6a6fbe AK |
11303 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11304 | $as_echo "$as_val"'` | |
11305 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11306 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11307 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11308 | _ACEOF |
11309 | ||
11310 | else | |
ec6a6fbe AK |
11311 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11312 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11313 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11314 | fi |
11315 | ||
ad6254c5 AK |
11316 | done |
11317 | ||
11318 | ||
795ca3e5 | 11319 | |
8106cdd5 | 11320 | |
ad6254c5 AK |
11321 | |
11322 | ||
11323 | for ac_func in dup2 getmntent memmove select socket | |
11324 | do | |
ec6a6fbe AK |
11325 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11326 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11327 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11328 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11329 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11330 | else |
ad6254c5 | 11331 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11332 | /* confdefs.h. */ |
11333 | _ACEOF | |
11334 | cat confdefs.h >>conftest.$ac_ext | |
11335 | cat >>conftest.$ac_ext <<_ACEOF | |
11336 | /* end confdefs.h. */ | |
8a2fc586 AK |
11337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11339 | #define $ac_func innocuous_$ac_func | |
11340 | ||
795ca3e5 | 11341 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
11342 | which can conflict with char $ac_func (); below. |
11343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11344 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11345 | |
ad6254c5 AK |
11346 | #ifdef __STDC__ |
11347 | # include <limits.h> | |
11348 | #else | |
11349 | # include <assert.h> | |
11350 | #endif | |
8a2fc586 AK |
11351 | |
11352 | #undef $ac_func | |
11353 | ||
7a197a62 AK |
11354 | /* Override any GCC internal prototype to avoid an error. |
11355 | Use char because int might match the return type of a GCC | |
11356 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11357 | #ifdef __cplusplus |
11358 | extern "C" | |
ad6254c5 | 11359 | #endif |
ad6254c5 | 11360 | char $ac_func (); |
795ca3e5 AK |
11361 | /* The GNU C library defines this for functions which it implements |
11362 | to always fail with ENOSYS. Some functions are actually named | |
11363 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11364 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 11365 | choke me |
795ca3e5 AK |
11366 | #endif |
11367 | ||
ad6254c5 AK |
11368 | int |
11369 | main () | |
11370 | { | |
7a197a62 | 11371 | return $ac_func (); |
ad6254c5 AK |
11372 | ; |
11373 | return 0; | |
11374 | } | |
11375 | _ACEOF | |
11376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11377 | if { (ac_try="$ac_link" |
11378 | case "(($ac_try" in | |
11379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11380 | *) ac_try_echo=$ac_try;; | |
11381 | esac | |
ec6a6fbe AK |
11382 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11383 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11384 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11385 | ac_status=$? |
8a2fc586 AK |
11386 | grep -v '^ *+' conftest.er1 >conftest.err |
11387 | rm -f conftest.er1 | |
11388 | cat conftest.err >&5 | |
ec6a6fbe | 11389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11390 | (exit $ac_status); } && { |
11391 | test -z "$ac_c_werror_flag" || | |
11392 | test ! -s conftest.err | |
ec6a6fbe AK |
11393 | } && test -s conftest$ac_exeext && { |
11394 | test "$cross_compiling" = yes || | |
11395 | $as_test_x conftest$ac_exeext | |
11396 | }; then | |
ad6254c5 | 11397 | eval "$as_ac_var=yes" |
795ca3e5 | 11398 | else |
ec6a6fbe | 11399 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11400 | sed 's/^/| /' conftest.$ac_ext >&5 |
11401 | ||
7a197a62 | 11402 | eval "$as_ac_var=no" |
80992638 | 11403 | fi |
7a197a62 | 11404 | |
ec6a6fbe | 11405 | rm -rf conftest.dSYM |
25fbec5b | 11406 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11407 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 11408 | fi |
ec6a6fbe AK |
11409 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11410 | $as_echo "$as_val"'` | |
11411 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11412 | $as_echo "$ac_res" >&6; } | |
11413 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11414 | $as_echo "$as_val"'` | |
11415 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11416 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11417 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 11418 | _ACEOF |
80992638 AK |
11419 | |
11420 | else | |
ec6a6fbe AK |
11421 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11422 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11423 | { (exit 1); exit 1; }; } |
8106cdd5 | 11424 | fi |
ad6254c5 | 11425 | done |
795ca3e5 | 11426 | |
25fbec5b AK |
11427 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
11428 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
11429 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
11430 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 11431 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 11432 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
11433 | else |
11434 | ac_func_search_save_LIBS=$LIBS | |
11435 | cat >conftest.$ac_ext <<_ACEOF | |
11436 | /* confdefs.h. */ | |
11437 | _ACEOF | |
11438 | cat confdefs.h >>conftest.$ac_ext | |
11439 | cat >>conftest.$ac_ext <<_ACEOF | |
11440 | /* end confdefs.h. */ | |
80992638 | 11441 | |
7a197a62 AK |
11442 | /* Override any GCC internal prototype to avoid an error. |
11443 | Use char because int might match the return type of a GCC | |
ad6254c5 | 11444 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
11445 | #ifdef __cplusplus |
11446 | extern "C" | |
11447 | #endif | |
25fbec5b | 11448 | char getmntent (); |
ad6254c5 AK |
11449 | int |
11450 | main () | |
11451 | { | |
25fbec5b | 11452 | return getmntent (); |
ad6254c5 AK |
11453 | ; |
11454 | return 0; | |
11455 | } | |
11456 | _ACEOF | |
25fbec5b AK |
11457 | for ac_lib in '' sun seq gen; do |
11458 | if test -z "$ac_lib"; then | |
11459 | ac_res="none required" | |
11460 | else | |
11461 | ac_res=-l$ac_lib | |
11462 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11463 | fi | |
11464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11465 | if { (ac_try="$ac_link" |
11466 | case "(($ac_try" in | |
11467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11468 | *) ac_try_echo=$ac_try;; | |
11469 | esac | |
ec6a6fbe AK |
11470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11471 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11472 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11473 | ac_status=$? |
8a2fc586 AK |
11474 | grep -v '^ *+' conftest.er1 >conftest.err |
11475 | rm -f conftest.er1 | |
11476 | cat conftest.err >&5 | |
ec6a6fbe | 11477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11478 | (exit $ac_status); } && { |
11479 | test -z "$ac_c_werror_flag" || | |
11480 | test ! -s conftest.err | |
ec6a6fbe AK |
11481 | } && test -s conftest$ac_exeext && { |
11482 | test "$cross_compiling" = yes || | |
11483 | $as_test_x conftest$ac_exeext | |
11484 | }; then | |
25fbec5b | 11485 | ac_cv_search_getmntent=$ac_res |
80992638 | 11486 | else |
ec6a6fbe | 11487 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11488 | sed 's/^/| /' conftest.$ac_ext >&5 |
11489 | ||
25fbec5b | 11490 | |
795ca3e5 AK |
11491 | fi |
11492 | ||
ec6a6fbe | 11493 | rm -rf conftest.dSYM |
25fbec5b AK |
11494 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11495 | conftest$ac_exeext | |
11496 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11497 | break | |
795ca3e5 | 11498 | fi |
25fbec5b AK |
11499 | done |
11500 | if test "${ac_cv_search_getmntent+set}" = set; then | |
11501 | : | |
11502 | else | |
11503 | ac_cv_search_getmntent=no | |
11504 | fi | |
11505 | rm conftest.$ac_ext | |
11506 | LIBS=$ac_func_search_save_LIBS | |
11507 | fi | |
ec6a6fbe AK |
11508 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
11509 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
11510 | ac_res=$ac_cv_search_getmntent |
11511 | if test "$ac_res" != no; then | |
11512 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11513 | ac_cv_func_getmntent=yes | |
11514 | ||
11515 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 11516 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 11517 | _ACEOF |
795ca3e5 | 11518 | |
25fbec5b AK |
11519 | else |
11520 | ac_cv_func_getmntent=no | |
795ca3e5 | 11521 | fi |
795ca3e5 AK |
11522 | |
11523 | ||
ad6254c5 AK |
11524 | # AC_FUNC_REALLOC |
11525 | ||
11526 | ||
11527 | for ac_header in sys/select.h sys/socket.h | |
11528 | do | |
ec6a6fbe | 11529 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11530 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11531 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11532 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11533 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11534 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11535 | fi |
ec6a6fbe AK |
11536 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11537 | $as_echo "$as_val"'` | |
11538 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11539 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 11540 | else |
ad6254c5 | 11541 | # Is the header compilable? |
ec6a6fbe AK |
11542 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11543 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11544 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11545 | /* confdefs.h. */ |
11546 | _ACEOF | |
11547 | cat confdefs.h >>conftest.$ac_ext | |
11548 | cat >>conftest.$ac_ext <<_ACEOF | |
11549 | /* end confdefs.h. */ | |
11550 | $ac_includes_default | |
11551 | #include <$ac_header> | |
11552 | _ACEOF | |
11553 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11554 | if { (ac_try="$ac_compile" |
11555 | case "(($ac_try" in | |
11556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11557 | *) ac_try_echo=$ac_try;; | |
11558 | esac | |
ec6a6fbe AK |
11559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11560 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11561 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11562 | ac_status=$? |
8a2fc586 AK |
11563 | grep -v '^ *+' conftest.er1 >conftest.err |
11564 | rm -f conftest.er1 | |
11565 | cat conftest.err >&5 | |
ec6a6fbe | 11566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11567 | (exit $ac_status); } && { |
11568 | test -z "$ac_c_werror_flag" || | |
11569 | test ! -s conftest.err | |
11570 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 11571 | ac_header_compiler=yes |
80992638 | 11572 | else |
ec6a6fbe | 11573 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11574 | sed 's/^/| /' conftest.$ac_ext >&5 |
11575 | ||
7a197a62 | 11576 | ac_header_compiler=no |
ad6254c5 | 11577 | fi |
7a197a62 AK |
11578 | |
11579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11580 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11581 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11582 | |
11583 | # Is the header present? | |
ec6a6fbe AK |
11584 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11585 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11586 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11587 | /* confdefs.h. */ |
11588 | _ACEOF | |
11589 | cat confdefs.h >>conftest.$ac_ext | |
11590 | cat >>conftest.$ac_ext <<_ACEOF | |
11591 | /* end confdefs.h. */ | |
11592 | #include <$ac_header> | |
11593 | _ACEOF | |
7a197a62 AK |
11594 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11595 | case "(($ac_try" in | |
11596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11597 | *) ac_try_echo=$ac_try;; | |
11598 | esac | |
ec6a6fbe AK |
11599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11600 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11601 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11602 | ac_status=$? |
11603 | grep -v '^ *+' conftest.er1 >conftest.err | |
11604 | rm -f conftest.er1 | |
11605 | cat conftest.err >&5 | |
ec6a6fbe | 11606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11607 | (exit $ac_status); } >/dev/null && { |
11608 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11609 | test ! -s conftest.err | |
11610 | }; then | |
ad6254c5 AK |
11611 | ac_header_preproc=yes |
11612 | else | |
ec6a6fbe | 11613 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11614 | sed 's/^/| /' conftest.$ac_ext >&5 |
11615 | ||
11616 | ac_header_preproc=no | |
11617 | fi | |
7a197a62 | 11618 | |
ad6254c5 | 11619 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11620 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11621 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11622 | |
11623 | # So? What about this header? | |
8a2fc586 AK |
11624 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11625 | yes:no: ) | |
ec6a6fbe AK |
11626 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11627 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11629 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11630 | ac_header_preproc=yes |
ad6254c5 | 11631 | ;; |
8a2fc586 | 11632 | no:yes:* ) |
ec6a6fbe AK |
11633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11634 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11635 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11636 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11637 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11638 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11639 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11640 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11641 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11642 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11643 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11644 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11645 | |
ad6254c5 AK |
11646 | ;; |
11647 | esac | |
ec6a6fbe AK |
11648 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11649 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11651 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11652 | else |
8a2fc586 | 11653 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 11654 | fi |
ec6a6fbe AK |
11655 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11656 | $as_echo "$as_val"'` | |
11657 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11658 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 11659 | |
795ca3e5 | 11660 | fi |
ec6a6fbe AK |
11661 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11662 | $as_echo "$as_val"'` | |
11663 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11664 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11665 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11666 | _ACEOF |
11667 | ||
795ca3e5 AK |
11668 | fi |
11669 | ||
ad6254c5 AK |
11670 | done |
11671 | ||
ec6a6fbe AK |
11672 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11673 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 11674 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 11675 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 11676 | else |
ad6254c5 | 11677 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 11678 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
11679 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11680 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11681 | /* confdefs.h. */ |
11682 | _ACEOF | |
11683 | cat confdefs.h >>conftest.$ac_ext | |
11684 | cat >>conftest.$ac_ext <<_ACEOF | |
11685 | /* end confdefs.h. */ | |
11686 | $ac_includes_default | |
25fbec5b | 11687 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
11688 | # include <sys/select.h> |
11689 | #endif | |
25fbec5b | 11690 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
11691 | # include <sys/socket.h> |
11692 | #endif | |
11693 | ||
11694 | int | |
11695 | main () | |
11696 | { | |
11697 | extern int select ($ac_arg1, | |
8a2fc586 AK |
11698 | $ac_arg234, $ac_arg234, $ac_arg234, |
11699 | $ac_arg5); | |
ad6254c5 AK |
11700 | ; |
11701 | return 0; | |
11702 | } | |
11703 | _ACEOF | |
11704 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11705 | if { (ac_try="$ac_compile" |
11706 | case "(($ac_try" in | |
11707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11708 | *) ac_try_echo=$ac_try;; | |
11709 | esac | |
ec6a6fbe AK |
11710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11711 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11712 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11713 | ac_status=$? |
8a2fc586 AK |
11714 | grep -v '^ *+' conftest.er1 >conftest.err |
11715 | rm -f conftest.er1 | |
11716 | cat conftest.err >&5 | |
ec6a6fbe | 11717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11718 | (exit $ac_status); } && { |
11719 | test -z "$ac_c_werror_flag" || | |
11720 | test ! -s conftest.err | |
11721 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11722 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11723 | else | |
ec6a6fbe | 11724 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11725 | sed 's/^/| /' conftest.$ac_ext >&5 |
11726 | ||
7a197a62 | 11727 | |
ad6254c5 | 11728 | fi |
7a197a62 AK |
11729 | |
11730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
11731 | done |
11732 | done | |
11733 | done | |
11734 | # Provide a safe default value. | |
11735 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11736 | ||
26e7f2e0 | 11737 | fi |
ec6a6fbe AK |
11738 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11739 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11740 | ac_save_IFS=$IFS; IFS=',' |
11741 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11742 | IFS=$ac_save_IFS | |
11743 | shift | |
11744 | ||
11745 | cat >>confdefs.h <<_ACEOF | |
11746 | #define SELECT_TYPE_ARG1 $1 | |
11747 | _ACEOF | |
11748 | ||
11749 | ||
11750 | cat >>confdefs.h <<_ACEOF | |
11751 | #define SELECT_TYPE_ARG234 ($2) | |
11752 | _ACEOF | |
11753 | ||
11754 | ||
11755 | cat >>confdefs.h <<_ACEOF | |
11756 | #define SELECT_TYPE_ARG5 ($3) | |
11757 | _ACEOF | |
11758 | ||
80992638 | 11759 | rm -f conftest* |
80992638 | 11760 | |
8106cdd5 | 11761 | fi |
ad6254c5 | 11762 | |
ad6254c5 AK |
11763 | if test x$CLUSTER != xnone; then |
11764 | ||
11765 | ||
11766 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11767 | do |
ec6a6fbe | 11768 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
11770 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11771 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11772 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11773 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11774 | fi |
ec6a6fbe AK |
11775 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11776 | $as_echo "$as_val"'` | |
11777 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11778 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11779 | else |
11780 | # Is the header compilable? | |
ec6a6fbe AK |
11781 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11782 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 11783 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11784 | /* confdefs.h. */ |
11785 | _ACEOF | |
11786 | cat confdefs.h >>conftest.$ac_ext | |
11787 | cat >>conftest.$ac_ext <<_ACEOF | |
11788 | /* end confdefs.h. */ | |
11789 | $ac_includes_default | |
11790 | #include <$ac_header> | |
11791 | _ACEOF | |
11792 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11793 | if { (ac_try="$ac_compile" |
11794 | case "(($ac_try" in | |
11795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11796 | *) ac_try_echo=$ac_try;; | |
11797 | esac | |
ec6a6fbe AK |
11798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11799 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11800 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11801 | ac_status=$? |
8a2fc586 AK |
11802 | grep -v '^ *+' conftest.er1 >conftest.err |
11803 | rm -f conftest.er1 | |
11804 | cat conftest.err >&5 | |
ec6a6fbe | 11805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11806 | (exit $ac_status); } && { |
11807 | test -z "$ac_c_werror_flag" || | |
11808 | test ! -s conftest.err | |
11809 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11810 | ac_header_compiler=yes |
11811 | else | |
ec6a6fbe | 11812 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11813 | sed 's/^/| /' conftest.$ac_ext >&5 |
11814 | ||
7a197a62 | 11815 | ac_header_compiler=no |
ad6254c5 | 11816 | fi |
7a197a62 AK |
11817 | |
11818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
11819 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11820 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11821 | |
11822 | # Is the header present? | |
ec6a6fbe AK |
11823 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11824 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 11825 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11826 | /* confdefs.h. */ |
11827 | _ACEOF | |
11828 | cat confdefs.h >>conftest.$ac_ext | |
11829 | cat >>conftest.$ac_ext <<_ACEOF | |
11830 | /* end confdefs.h. */ | |
11831 | #include <$ac_header> | |
11832 | _ACEOF | |
7a197a62 AK |
11833 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11834 | case "(($ac_try" in | |
11835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11836 | *) ac_try_echo=$ac_try;; | |
11837 | esac | |
ec6a6fbe AK |
11838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11839 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11840 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11841 | ac_status=$? |
11842 | grep -v '^ *+' conftest.er1 >conftest.err | |
11843 | rm -f conftest.er1 | |
11844 | cat conftest.err >&5 | |
ec6a6fbe | 11845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11846 | (exit $ac_status); } >/dev/null && { |
11847 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11848 | test ! -s conftest.err | |
11849 | }; then | |
ad6254c5 AK |
11850 | ac_header_preproc=yes |
11851 | else | |
ec6a6fbe | 11852 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11853 | sed 's/^/| /' conftest.$ac_ext >&5 |
11854 | ||
11855 | ac_header_preproc=no | |
11856 | fi | |
7a197a62 | 11857 | |
ad6254c5 | 11858 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
11859 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11860 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11861 | |
11862 | # So? What about this header? | |
8a2fc586 AK |
11863 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11864 | yes:no: ) | |
ec6a6fbe AK |
11865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11866 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11868 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11869 | ac_header_preproc=yes |
ad6254c5 | 11870 | ;; |
8a2fc586 | 11871 | no:yes:* ) |
ec6a6fbe AK |
11872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11873 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11875 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11877 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11879 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11881 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11883 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11884 | |
ad6254c5 AK |
11885 | ;; |
11886 | esac | |
ec6a6fbe AK |
11887 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11888 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 11889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11890 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11891 | else |
8a2fc586 | 11892 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11893 | fi |
ec6a6fbe AK |
11894 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11895 | $as_echo "$as_val"'` | |
11896 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11897 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
11898 | |
11899 | fi | |
ec6a6fbe AK |
11900 | as_val=`eval 'as_val=${'$as_ac_Header'} |
11901 | $as_echo "$as_val"'` | |
11902 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 11903 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11904 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11905 | _ACEOF |
11906 | ||
80992638 | 11907 | else |
ec6a6fbe AK |
11908 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
11909 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11910 | { (exit 1); exit 1; }; } |
b896caa1 | 11911 | fi |
ad6254c5 | 11912 | |
b896caa1 AK |
11913 | done |
11914 | ||
11915 | ||
ad6254c5 AK |
11916 | for ac_func in socket |
11917 | do | |
ec6a6fbe AK |
11918 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11919 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11920 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 11921 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 11922 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 11923 | else |
ad6254c5 | 11924 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11925 | /* confdefs.h. */ |
11926 | _ACEOF | |
11927 | cat confdefs.h >>conftest.$ac_ext | |
11928 | cat >>conftest.$ac_ext <<_ACEOF | |
11929 | /* end confdefs.h. */ | |
8a2fc586 AK |
11930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11932 | #define $ac_func innocuous_$ac_func | |
11933 | ||
ad6254c5 AK |
11934 | /* System header to define __stub macros and hopefully few prototypes, |
11935 | which can conflict with char $ac_func (); below. | |
11936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11937 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11938 | |
ad6254c5 AK |
11939 | #ifdef __STDC__ |
11940 | # include <limits.h> | |
11941 | #else | |
11942 | # include <assert.h> | |
11943 | #endif | |
8a2fc586 AK |
11944 | |
11945 | #undef $ac_func | |
11946 | ||
7a197a62 AK |
11947 | /* Override any GCC internal prototype to avoid an error. |
11948 | Use char because int might match the return type of a GCC | |
11949 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11950 | #ifdef __cplusplus |
11951 | extern "C" | |
ad6254c5 | 11952 | #endif |
ad6254c5 AK |
11953 | char $ac_func (); |
11954 | /* The GNU C library defines this for functions which it implements | |
11955 | to always fail with ENOSYS. Some functions are actually named | |
11956 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11957 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11958 | choke me |
ad6254c5 AK |
11959 | #endif |
11960 | ||
11961 | int | |
11962 | main () | |
11963 | { | |
7a197a62 | 11964 | return $ac_func (); |
ad6254c5 AK |
11965 | ; |
11966 | return 0; | |
11967 | } | |
11968 | _ACEOF | |
11969 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11970 | if { (ac_try="$ac_link" |
11971 | case "(($ac_try" in | |
11972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11973 | *) ac_try_echo=$ac_try;; | |
11974 | esac | |
ec6a6fbe AK |
11975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11976 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 11977 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11978 | ac_status=$? |
8a2fc586 AK |
11979 | grep -v '^ *+' conftest.er1 >conftest.err |
11980 | rm -f conftest.er1 | |
11981 | cat conftest.err >&5 | |
ec6a6fbe | 11982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11983 | (exit $ac_status); } && { |
11984 | test -z "$ac_c_werror_flag" || | |
11985 | test ! -s conftest.err | |
ec6a6fbe AK |
11986 | } && test -s conftest$ac_exeext && { |
11987 | test "$cross_compiling" = yes || | |
11988 | $as_test_x conftest$ac_exeext | |
11989 | }; then | |
ad6254c5 AK |
11990 | eval "$as_ac_var=yes" |
11991 | else | |
ec6a6fbe | 11992 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11993 | sed 's/^/| /' conftest.$ac_ext >&5 |
11994 | ||
7a197a62 | 11995 | eval "$as_ac_var=no" |
ad6254c5 | 11996 | fi |
7a197a62 | 11997 | |
ec6a6fbe | 11998 | rm -rf conftest.dSYM |
25fbec5b | 11999 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12000 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 12001 | fi |
ec6a6fbe AK |
12002 | ac_res=`eval 'as_val=${'$as_ac_var'} |
12003 | $as_echo "$as_val"'` | |
12004 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12005 | $as_echo "$ac_res" >&6; } | |
12006 | as_val=`eval 'as_val=${'$as_ac_var'} | |
12007 | $as_echo "$as_val"'` | |
12008 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12009 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12010 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
12011 | _ACEOF |
12012 | ||
12013 | else | |
ec6a6fbe AK |
12014 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12015 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
12016 | { (exit 1); exit 1; }; } |
12017 | fi | |
12018 | done | |
12019 | ||
12020 | fi | |
12021 | ||
12022 | if test x$HAVE_LIBDL = xyes; then | |
12023 | ||
12024 | for ac_header in dlfcn.h | |
12025 | do | |
ec6a6fbe | 12026 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12027 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12028 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12029 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12031 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12032 | fi |
ec6a6fbe AK |
12033 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12034 | $as_echo "$as_val"'` | |
12035 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12036 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
12037 | else |
12038 | # Is the header compilable? | |
ec6a6fbe AK |
12039 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12040 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12041 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12042 | /* confdefs.h. */ |
12043 | _ACEOF | |
12044 | cat confdefs.h >>conftest.$ac_ext | |
12045 | cat >>conftest.$ac_ext <<_ACEOF | |
12046 | /* end confdefs.h. */ | |
12047 | $ac_includes_default | |
12048 | #include <$ac_header> | |
12049 | _ACEOF | |
12050 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12051 | if { (ac_try="$ac_compile" |
12052 | case "(($ac_try" in | |
12053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12054 | *) ac_try_echo=$ac_try;; | |
12055 | esac | |
ec6a6fbe AK |
12056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12057 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12058 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12059 | ac_status=$? |
8a2fc586 AK |
12060 | grep -v '^ *+' conftest.er1 >conftest.err |
12061 | rm -f conftest.er1 | |
12062 | cat conftest.err >&5 | |
ec6a6fbe | 12063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12064 | (exit $ac_status); } && { |
12065 | test -z "$ac_c_werror_flag" || | |
12066 | test ! -s conftest.err | |
12067 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12068 | ac_header_compiler=yes |
12069 | else | |
ec6a6fbe | 12070 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12071 | sed 's/^/| /' conftest.$ac_ext >&5 |
12072 | ||
7a197a62 | 12073 | ac_header_compiler=no |
ad6254c5 | 12074 | fi |
7a197a62 AK |
12075 | |
12076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12077 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12078 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12079 | |
12080 | # Is the header present? | |
ec6a6fbe AK |
12081 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12082 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12083 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12084 | /* confdefs.h. */ |
12085 | _ACEOF | |
12086 | cat confdefs.h >>conftest.$ac_ext | |
12087 | cat >>conftest.$ac_ext <<_ACEOF | |
12088 | /* end confdefs.h. */ | |
12089 | #include <$ac_header> | |
12090 | _ACEOF | |
7a197a62 AK |
12091 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12092 | case "(($ac_try" in | |
12093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12094 | *) ac_try_echo=$ac_try;; | |
12095 | esac | |
ec6a6fbe AK |
12096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12097 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12098 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12099 | ac_status=$? |
12100 | grep -v '^ *+' conftest.er1 >conftest.err | |
12101 | rm -f conftest.er1 | |
12102 | cat conftest.err >&5 | |
ec6a6fbe | 12103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12104 | (exit $ac_status); } >/dev/null && { |
12105 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12106 | test ! -s conftest.err | |
12107 | }; then | |
ad6254c5 AK |
12108 | ac_header_preproc=yes |
12109 | else | |
ec6a6fbe | 12110 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12111 | sed 's/^/| /' conftest.$ac_ext >&5 |
12112 | ||
12113 | ac_header_preproc=no | |
12114 | fi | |
7a197a62 | 12115 | |
ad6254c5 | 12116 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12117 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12118 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12119 | |
12120 | # So? What about this header? | |
8a2fc586 AK |
12121 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12122 | yes:no: ) | |
ec6a6fbe AK |
12123 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12124 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12125 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12126 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12127 | ac_header_preproc=yes |
ad6254c5 | 12128 | ;; |
8a2fc586 | 12129 | no:yes:* ) |
ec6a6fbe AK |
12130 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12131 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12133 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12135 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12136 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12137 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12138 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12139 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12140 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12141 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12142 | |
ad6254c5 AK |
12143 | ;; |
12144 | esac | |
ec6a6fbe AK |
12145 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12146 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12147 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12148 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12149 | else |
8a2fc586 | 12150 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 12151 | fi |
ec6a6fbe AK |
12152 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12153 | $as_echo "$as_val"'` | |
12154 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12155 | $as_echo "$ac_res" >&6; } | |
80992638 | 12156 | |
8106cdd5 | 12157 | fi |
ec6a6fbe AK |
12158 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12159 | $as_echo "$as_val"'` | |
12160 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12161 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12162 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12163 | _ACEOF |
795ca3e5 AK |
12164 | |
12165 | else | |
ec6a6fbe AK |
12166 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12167 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12168 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
12169 | fi |
12170 | ||
ad6254c5 | 12171 | done |
80992638 | 12172 | |
ad6254c5 | 12173 | fi |
80992638 | 12174 | |
ad6254c5 | 12175 | if test x$INTL = xyes; then |
83912faa | 12176 | |
ad6254c5 AK |
12177 | for ac_header in libintl.h |
12178 | do | |
ec6a6fbe | 12179 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12181 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12182 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12183 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12184 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12185 | fi |
ec6a6fbe AK |
12186 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12187 | $as_echo "$as_val"'` | |
12188 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12189 | $as_echo "$ac_res" >&6; } | |
83912faa | 12190 | else |
ad6254c5 | 12191 | # Is the header compilable? |
ec6a6fbe AK |
12192 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12193 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12194 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12195 | /* confdefs.h. */ |
12196 | _ACEOF | |
12197 | cat confdefs.h >>conftest.$ac_ext | |
12198 | cat >>conftest.$ac_ext <<_ACEOF | |
12199 | /* end confdefs.h. */ | |
12200 | $ac_includes_default | |
12201 | #include <$ac_header> | |
12202 | _ACEOF | |
12203 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12204 | if { (ac_try="$ac_compile" |
12205 | case "(($ac_try" in | |
12206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12207 | *) ac_try_echo=$ac_try;; | |
12208 | esac | |
ec6a6fbe AK |
12209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12210 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12211 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12212 | ac_status=$? |
8a2fc586 AK |
12213 | grep -v '^ *+' conftest.er1 >conftest.err |
12214 | rm -f conftest.er1 | |
12215 | cat conftest.err >&5 | |
ec6a6fbe | 12216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12217 | (exit $ac_status); } && { |
12218 | test -z "$ac_c_werror_flag" || | |
12219 | test ! -s conftest.err | |
12220 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12221 | ac_header_compiler=yes |
12222 | else | |
ec6a6fbe | 12223 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12224 | sed 's/^/| /' conftest.$ac_ext >&5 |
12225 | ||
7a197a62 | 12226 | ac_header_compiler=no |
ad6254c5 | 12227 | fi |
7a197a62 AK |
12228 | |
12229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12230 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12231 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12232 | |
12233 | # Is the header present? | |
ec6a6fbe AK |
12234 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12235 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12236 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12237 | /* confdefs.h. */ |
12238 | _ACEOF | |
12239 | cat confdefs.h >>conftest.$ac_ext | |
12240 | cat >>conftest.$ac_ext <<_ACEOF | |
12241 | /* end confdefs.h. */ | |
12242 | #include <$ac_header> | |
12243 | _ACEOF | |
7a197a62 AK |
12244 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12245 | case "(($ac_try" in | |
12246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12247 | *) ac_try_echo=$ac_try;; | |
12248 | esac | |
ec6a6fbe AK |
12249 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12250 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12251 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12252 | ac_status=$? |
12253 | grep -v '^ *+' conftest.er1 >conftest.err | |
12254 | rm -f conftest.er1 | |
12255 | cat conftest.err >&5 | |
ec6a6fbe | 12256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12257 | (exit $ac_status); } >/dev/null && { |
12258 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12259 | test ! -s conftest.err | |
12260 | }; then | |
ad6254c5 AK |
12261 | ac_header_preproc=yes |
12262 | else | |
ec6a6fbe | 12263 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12264 | sed 's/^/| /' conftest.$ac_ext >&5 |
12265 | ||
12266 | ac_header_preproc=no | |
12267 | fi | |
7a197a62 | 12268 | |
ad6254c5 | 12269 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12270 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12271 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12272 | |
12273 | # So? What about this header? | |
8a2fc586 AK |
12274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12275 | yes:no: ) | |
ec6a6fbe AK |
12276 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12277 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12278 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12279 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12280 | ac_header_preproc=yes |
ad6254c5 | 12281 | ;; |
8a2fc586 | 12282 | no:yes:* ) |
ec6a6fbe AK |
12283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12284 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12286 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12287 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12288 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12289 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12290 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12292 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12294 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12295 | |
ad6254c5 AK |
12296 | ;; |
12297 | esac | |
ec6a6fbe AK |
12298 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12299 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12301 | $as_echo_n "(cached) " >&6 |
80992638 | 12302 | else |
8a2fc586 | 12303 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 12304 | fi |
ec6a6fbe AK |
12305 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12306 | $as_echo "$as_val"'` | |
12307 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12308 | $as_echo "$ac_res" >&6; } | |
83912faa | 12309 | |
69792976 | 12310 | fi |
ec6a6fbe AK |
12311 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12312 | $as_echo "$as_val"'` | |
12313 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12314 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12315 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12316 | _ACEOF |
69792976 | 12317 | |
69792976 | 12318 | else |
ec6a6fbe AK |
12319 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12320 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12321 | { (exit 1); exit 1; }; } |
80992638 AK |
12322 | fi |
12323 | ||
ad6254c5 | 12324 | done |
69792976 | 12325 | |
ad6254c5 AK |
12326 | fi |
12327 | ||
ad6254c5 AK |
12328 | if test x$HAVE_SELINUX = xyes; then |
12329 | ||
12330 | for ac_header in selinux/selinux.h | |
12331 | do | |
ec6a6fbe | 12332 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12334 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12335 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12336 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12337 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12338 | fi |
ec6a6fbe AK |
12339 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12340 | $as_echo "$as_val"'` | |
12341 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12342 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12343 | else |
ad6254c5 | 12344 | # Is the header compilable? |
ec6a6fbe AK |
12345 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12346 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12347 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12348 | /* confdefs.h. */ |
12349 | _ACEOF | |
12350 | cat confdefs.h >>conftest.$ac_ext | |
12351 | cat >>conftest.$ac_ext <<_ACEOF | |
12352 | /* end confdefs.h. */ | |
12353 | $ac_includes_default | |
12354 | #include <$ac_header> | |
12355 | _ACEOF | |
12356 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12357 | if { (ac_try="$ac_compile" |
12358 | case "(($ac_try" in | |
12359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12360 | *) ac_try_echo=$ac_try;; | |
12361 | esac | |
ec6a6fbe AK |
12362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12363 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12364 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12365 | ac_status=$? |
8a2fc586 AK |
12366 | grep -v '^ *+' conftest.er1 >conftest.err |
12367 | rm -f conftest.er1 | |
12368 | cat conftest.err >&5 | |
ec6a6fbe | 12369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12370 | (exit $ac_status); } && { |
12371 | test -z "$ac_c_werror_flag" || | |
12372 | test ! -s conftest.err | |
12373 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12374 | ac_header_compiler=yes |
12375 | else | |
ec6a6fbe | 12376 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12377 | sed 's/^/| /' conftest.$ac_ext >&5 |
12378 | ||
7a197a62 | 12379 | ac_header_compiler=no |
ad6254c5 | 12380 | fi |
7a197a62 AK |
12381 | |
12382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12383 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12384 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12385 | |
12386 | # Is the header present? | |
ec6a6fbe AK |
12387 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12388 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12389 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12390 | /* confdefs.h. */ |
12391 | _ACEOF | |
12392 | cat confdefs.h >>conftest.$ac_ext | |
12393 | cat >>conftest.$ac_ext <<_ACEOF | |
12394 | /* end confdefs.h. */ | |
12395 | #include <$ac_header> | |
12396 | _ACEOF | |
7a197a62 AK |
12397 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12398 | case "(($ac_try" in | |
12399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12400 | *) ac_try_echo=$ac_try;; | |
12401 | esac | |
ec6a6fbe AK |
12402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12403 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12404 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12405 | ac_status=$? |
12406 | grep -v '^ *+' conftest.er1 >conftest.err | |
12407 | rm -f conftest.er1 | |
12408 | cat conftest.err >&5 | |
ec6a6fbe | 12409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12410 | (exit $ac_status); } >/dev/null && { |
12411 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12412 | test ! -s conftest.err | |
12413 | }; then | |
ad6254c5 AK |
12414 | ac_header_preproc=yes |
12415 | else | |
ec6a6fbe | 12416 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12417 | sed 's/^/| /' conftest.$ac_ext >&5 |
12418 | ||
12419 | ac_header_preproc=no | |
12420 | fi | |
7a197a62 | 12421 | |
ad6254c5 | 12422 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12423 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12424 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12425 | |
12426 | # So? What about this header? | |
8a2fc586 AK |
12427 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12428 | yes:no: ) | |
ec6a6fbe AK |
12429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12430 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12432 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12433 | ac_header_preproc=yes |
ad6254c5 | 12434 | ;; |
8a2fc586 | 12435 | no:yes:* ) |
ec6a6fbe AK |
12436 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12437 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12439 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12440 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12441 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12442 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12443 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12445 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12447 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12448 | |
ad6254c5 AK |
12449 | ;; |
12450 | esac | |
ec6a6fbe AK |
12451 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12452 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12453 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12454 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12455 | else |
8a2fc586 | 12456 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 12457 | fi |
ec6a6fbe AK |
12458 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12459 | $as_echo "$as_val"'` | |
12460 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12461 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 12462 | |
ad6254c5 | 12463 | fi |
ec6a6fbe AK |
12464 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12465 | $as_echo "$as_val"'` | |
12466 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12467 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12468 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12469 | _ACEOF |
0a62c911 | 12470 | |
0a62c911 | 12471 | else |
ec6a6fbe AK |
12472 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
12473 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12474 | { (exit 1); exit 1; }; } |
80992638 AK |
12475 | fi |
12476 | ||
ad6254c5 | 12477 | done |
0a62c911 | 12478 | |
ad6254c5 | 12479 | fi |
0a62c911 | 12480 | |
a653923f AK |
12481 | ################################################################################ |
12482 | # Extract the first word of "modprobe", so it can be a program name with args. | |
12483 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
12484 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12485 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 12486 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 12487 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
12488 | else |
12489 | case $MODPROBE_CMD in | |
12490 | [\\/]* | ?:[\\/]*) | |
12491 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
12492 | ;; | |
12493 | *) | |
12494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12495 | for as_dir in $PATH | |
12496 | do | |
12497 | IFS=$as_save_IFS | |
12498 | test -z "$as_dir" && as_dir=. | |
12499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 12500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 12501 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 12502 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
12503 | break 2 |
12504 | fi | |
12505 | done | |
12506 | done | |
7a197a62 | 12507 | IFS=$as_save_IFS |
72b2cb61 AK |
12508 | |
12509 | ;; | |
12510 | esac | |
12511 | fi | |
12512 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 12513 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
12514 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
12515 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 12516 | else |
ec6a6fbe AK |
12517 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12518 | $as_echo "no" >&6; } | |
72b2cb61 AK |
12519 | fi |
12520 | ||
a653923f | 12521 | |
7a197a62 | 12522 | |
a653923f | 12523 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
12524 | |
12525 | cat >>confdefs.h <<_ACEOF | |
12526 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
12527 | _ACEOF | |
12528 | ||
a653923f AK |
12529 | fi |
12530 | ||
80992638 | 12531 | ################################################################################ |
93bd259b AK |
12532 | |
12533 | ||
12534 | if test "$BUILD_DMEVENTD" = yes; then | |
12535 | ||
12536 | # Check whether --with-dmeventd-pidfile was given. | |
12537 | if test "${with_dmeventd_pidfile+set}" = set; then | |
12538 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
12539 | #define DMEVENTD_PIDFILE "$withval" | |
12540 | _ACEOF | |
12541 | ||
12542 | else | |
12543 | cat >>confdefs.h <<_ACEOF | |
12544 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
12545 | _ACEOF | |
12546 | ||
12547 | fi | |
12548 | ||
12549 | fi | |
12550 | ||
12551 | ||
12552 | ||
12553 | if test "$BUILD_DMEVENTD" = yes; then | |
12554 | dmeventd_prefix="$exec_prefix" | |
12555 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12556 | dmeventd_prefix="$prefix" | |
12557 | fi | |
12558 | if test "x$dmeventd_prefix" = "xNONE"; then | |
12559 | dmeventd_prefix="" | |
12560 | fi | |
12561 | ||
12562 | # Check whether --with-dmeventd-path was given. | |
12563 | if test "${with_dmeventd_path+set}" = set; then | |
12564 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
12565 | #define DMEVENTD_PATH "$withval" | |
12566 | _ACEOF | |
12567 | ||
12568 | else | |
12569 | cat >>confdefs.h <<_ACEOF | |
12570 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
12571 | _ACEOF | |
12572 | ||
12573 | fi | |
12574 | ||
12575 | fi | |
12576 | ||
12577 | ################################################################################ | |
ec6a6fbe AK |
12578 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
12579 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
12580 | |
12581 | # Check whether --with-interface was given. | |
12582 | if test "${with_interface+set}" = set; then | |
12583 | withval=$with_interface; interface="$withval" | |
12584 | else | |
12585 | interface=ioctl | |
12586 | fi | |
12587 | ||
12588 | if [ "x$interface" != xioctl ]; | |
12589 | then | |
ec6a6fbe AK |
12590 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
12591 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
12592 | { (exit 1); exit 1; }; } |
12593 | fi | |
ec6a6fbe AK |
12594 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
12595 | $as_echo "$interface" >&6; } | |
93bd259b AK |
12596 | |
12597 | ################################################################################ | |
2c44337b | 12598 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
12599 | |
12600 | cat >>confdefs.h <<_ACEOF | |
12601 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
12602 | _ACEOF | |
12603 | ||
12604 | ||
ec6a6fbe | 12605 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 12606 | |
d0191583 | 12607 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 12608 | |
ec6a6fbe | 12609 | VER=`cat VERSION` |
bf456146 | 12610 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
12611 | VER=`echo "$VER" | $AWK '{print $1}'` |
12612 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
12613 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
12614 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
12615 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
12616 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
12617 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 12618 | |
80992638 | 12619 | ################################################################################ |
fae0c576 | 12620 | |
83912faa | 12621 | |
795ca3e5 AK |
12622 | |
12623 | ||
12624 | ||
12625 | ||
12626 | ||
12627 | ||
5a52dca9 | 12628 | |
8ef2b021 | 12629 | |
199e490e | 12630 | |
69792976 AK |
12631 | |
12632 | ||
12633 | ||
d0191583 | 12634 | |
69792976 | 12635 | |
8106cdd5 AK |
12636 | |
12637 | ||
12638 | ||
12639 | ||
12640 | ||
d68a82ec | 12641 | |
036f273a | 12642 | |
7d1552c9 | 12643 | |
8106cdd5 | 12644 | |
0a62c911 | 12645 | |
8106cdd5 | 12646 | |
4a7f3eb2 | 12647 | |
4922197a AK |
12648 | |
12649 | ||
d8ac0fbc | 12650 | |
1a9ea74d | 12651 | |
8a2fc586 AK |
12652 | |
12653 | ||
d0191583 | 12654 | |
93bd259b AK |
12655 | |
12656 | ||
12657 | ||
12658 | ||
12659 | ||
d0191583 JM |
12660 | |
12661 | ||
12662 | ||
12663 | ||
12664 | ||
8a2fc586 | 12665 | |
8ce0cbda | 12666 | |
8b1a3214 | 12667 | |
ec6a6fbe AK |
12668 | |
12669 | ||
12670 | ||
12671 | ||
e2997b73 AK |
12672 | |
12673 | ||
12674 | ||
12675 | ||
12676 | ||
12677 | ||
ec6a6fbe | 12678 | |
33f732c5 | 12679 | |
66e941e8 | 12680 | |
d3c8211f | 12681 | |
7e3fe830 | 12682 | |
572fefeb | 12683 | |
bf456146 | 12684 | |
68f2de6d AK |
12685 | |
12686 | ||
80992638 | 12687 | ################################################################################ |
e0c64c6c | 12688 | 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 | 12689 | |
ad6254c5 | 12690 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12691 | # This file is a shell script that caches the results of configure |
12692 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12693 | # scripts and configure runs, see configure's option --config-cache. |
12694 | # It is not useful on other systems. If it contains results you don't | |
12695 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12696 | # |
ad6254c5 AK |
12697 | # config.status only pays attention to the cache file if you give it |
12698 | # the --recheck option to rerun configure. | |
795ca3e5 | 12699 | # |
ad6254c5 AK |
12700 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12701 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12702 | # following values. | |
12703 | ||
12704 | _ACEOF | |
12705 | ||
795ca3e5 AK |
12706 | # The following way of writing the cache mishandles newlines in values, |
12707 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12708 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12709 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12710 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12711 | ( |
12712 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12713 | eval ac_val=\$$ac_var | |
12714 | case $ac_val in #( | |
12715 | *${as_nl}*) | |
12716 | case $ac_var in #( | |
ec6a6fbe AK |
12717 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
12718 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
12719 | esac |
12720 | case $ac_var in #( | |
12721 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 12722 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
12723 | *) $as_unset $ac_var ;; |
12724 | esac ;; | |
12725 | esac | |
12726 | done | |
12727 | ||
ad6254c5 | 12728 | (set) 2>&1 | |
7a197a62 AK |
12729 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12730 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12731 | # `set' does not quote correctly, so add quotes (double-quote |
12732 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12733 | sed -n \ | |
8a2fc586 AK |
12734 | "s/'/'\\\\''/g; |
12735 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12736 | ;; #( |
ad6254c5 AK |
12737 | *) |
12738 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12739 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12740 | ;; |
7a197a62 AK |
12741 | esac | |
12742 | sort | |
12743 | ) | | |
ad6254c5 | 12744 | sed ' |
7a197a62 | 12745 | /^ac_cv_env_/b end |
ad6254c5 | 12746 | t clear |
7a197a62 | 12747 | :clear |
ad6254c5 AK |
12748 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12749 | t end | |
7a197a62 AK |
12750 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12751 | :end' >>confcache | |
12752 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12753 | if test -w "$cache_file"; then | |
12754 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
12755 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12756 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12757 | cat confcache >$cache_file |
795ca3e5 | 12758 | else |
ec6a6fbe AK |
12759 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12760 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12761 | fi |
12762 | fi | |
12763 | rm -f confcache | |
12764 | ||
795ca3e5 AK |
12765 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12766 | # Let make expand exec_prefix. | |
12767 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12768 | ||
72b2cb61 | 12769 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12770 | |
12771 | ac_libobjs= | |
12772 | ac_ltlibobjs= | |
12773 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12774 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12775 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 12776 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12777 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12778 | # will be set to the directory where LIBOBJS objects are built. | |
12779 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12780 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
12781 | done |
12782 | LIBOBJS=$ac_libobjs | |
80992638 | 12783 | |
ad6254c5 AK |
12784 | LTLIBOBJS=$ac_ltlibobjs |
12785 | ||
12786 | ||
12787 | ||
12788 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 12789 | ac_write_fail=0 |
ad6254c5 AK |
12790 | ac_clean_files_save=$ac_clean_files |
12791 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
12792 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
12793 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12794 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
12795 | #! $SHELL |
12796 | # Generated by $as_me. | |
795ca3e5 | 12797 | # Run this file to recreate the current configuration. |
795ca3e5 | 12798 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
12799 | # configure, is in config.log if it exists. |
12800 | ||
12801 | debug=false | |
12802 | ac_cs_recheck=false | |
12803 | ac_cs_silent=false | |
12804 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12805 | _ACEOF | |
12806 | ||
ec6a6fbe | 12807 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12808 | ## --------------------- ## |
12809 | ## M4sh Initialization. ## | |
12810 | ## --------------------- ## | |
12811 | ||
25fbec5b AK |
12812 | # Be more Bourne compatible |
12813 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
12814 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12815 | emulate sh | |
12816 | NULLCMD=: | |
ec6a6fbe | 12817 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
12818 | # is contrary to our usage. Disable this feature. |
12819 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
12820 | setopt NO_GLOB_SUBST |
12821 | else | |
25fbec5b AK |
12822 | case `(set -o) 2>/dev/null` in |
12823 | *posix*) set -o posix ;; | |
12824 | esac | |
12825 | ||
7a197a62 | 12826 | fi |
25fbec5b AK |
12827 | |
12828 | ||
7a197a62 AK |
12829 | |
12830 | ||
12831 | # PATH needs CR | |
12832 | # Avoid depending upon Character Ranges. | |
12833 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12834 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12835 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12836 | as_cr_digits='0123456789' | |
12837 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12838 | ||
ec6a6fbe AK |
12839 | as_nl=' |
12840 | ' | |
12841 | export as_nl | |
12842 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12843 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12844 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12845 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12846 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12847 | as_echo='printf %s\n' | |
12848 | as_echo_n='printf %s' | |
12849 | else | |
12850 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12851 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12852 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 12853 | else |
ec6a6fbe AK |
12854 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
12855 | as_echo_n_body='eval | |
12856 | arg=$1; | |
12857 | case $arg in | |
12858 | *"$as_nl"*) | |
12859 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12860 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12861 | esac; | |
12862 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12863 | ' | |
12864 | export as_echo_n_body | |
12865 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 12866 | fi |
ec6a6fbe AK |
12867 | export as_echo_body |
12868 | as_echo='sh -c $as_echo_body as_echo' | |
12869 | fi | |
12870 | ||
12871 | # The user is always right. | |
12872 | if test "${PATH_SEPARATOR+set}" != set; then | |
12873 | PATH_SEPARATOR=: | |
12874 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12875 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12876 | PATH_SEPARATOR=';' | |
12877 | } | |
ad6254c5 AK |
12878 | fi |
12879 | ||
12880 | # Support unset when possible. | |
8a2fc586 | 12881 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
12882 | as_unset=unset |
12883 | else | |
12884 | as_unset=false | |
12885 | fi | |
8106cdd5 | 12886 | |
ad6254c5 | 12887 | |
7a197a62 AK |
12888 | # IFS |
12889 | # We need space, tab and new line, in precisely that order. Quoting is | |
12890 | # there to prevent editors from complaining about space-tab. | |
12891 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12892 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
12893 | IFS=" "" $as_nl" |
12894 | ||
12895 | # Find who we are. Look in the path if we contain no directory separator. | |
12896 | case $0 in | |
12897 | *[\\/]* ) as_myself=$0 ;; | |
12898 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12899 | for as_dir in $PATH | |
12900 | do | |
12901 | IFS=$as_save_IFS | |
12902 | test -z "$as_dir" && as_dir=. | |
12903 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12904 | done | |
12905 | IFS=$as_save_IFS | |
12906 | ||
12907 | ;; | |
12908 | esac | |
12909 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12910 | # in which case we are not to be found in the path. | |
12911 | if test "x$as_myself" = x; then | |
12912 | as_myself=$0 | |
12913 | fi | |
12914 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 12915 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12916 | { (exit 1); exit 1; } |
12917 | fi | |
12918 | ||
ad6254c5 | 12919 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12920 | for as_var in ENV MAIL MAILPATH |
12921 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12922 | done | |
ad6254c5 AK |
12923 | PS1='$ ' |
12924 | PS2='> ' | |
12925 | PS4='+ ' | |
12926 | ||
12927 | # NLS nuisances. | |
ec6a6fbe AK |
12928 | LC_ALL=C |
12929 | export LC_ALL | |
12930 | LANGUAGE=C | |
12931 | export LANGUAGE | |
8106cdd5 | 12932 | |
ad6254c5 | 12933 | # Required to use basename. |
7a197a62 AK |
12934 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12935 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12936 | as_expr=expr |
12937 | else | |
12938 | as_expr=false | |
12939 | fi | |
8106cdd5 | 12940 | |
7a197a62 | 12941 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12942 | as_basename=basename |
12943 | else | |
12944 | as_basename=false | |
12945 | fi | |
12946 | ||
12947 | ||
12948 | # Name of the executable. | |
7a197a62 | 12949 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12950 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12951 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12952 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 12953 | $as_echo X/"$0" | |
7a197a62 AK |
12954 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12955 | s//\1/ | |
12956 | q | |
12957 | } | |
12958 | /^X\/\(\/\/\)$/{ | |
12959 | s//\1/ | |
12960 | q | |
12961 | } | |
12962 | /^X\/\(\/\).*/{ | |
12963 | s//\1/ | |
12964 | q | |
12965 | } | |
12966 | s/.*/./; q'` | |
ad6254c5 | 12967 | |
7a197a62 AK |
12968 | # CDPATH. |
12969 | $as_unset CDPATH | |
ad6254c5 AK |
12970 | |
12971 | ||
ad6254c5 | 12972 | |
ad6254c5 AK |
12973 | as_lineno_1=$LINENO |
12974 | as_lineno_2=$LINENO | |
ad6254c5 | 12975 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12976 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12977 | |
ad6254c5 AK |
12978 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12979 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12980 | # line-number line after each line using $LINENO; the second 'sed' |
12981 | # does the real work. The second script uses 'N' to pair each | |
12982 | # line-number line with the line containing $LINENO, and appends | |
12983 | # trailing '-' during substitution so that $LINENO is not a special | |
12984 | # case at line end. | |
ad6254c5 | 12985 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12986 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12987 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12988 | sed -n ' | |
12989 | p | |
12990 | /[$]LINENO/= | |
12991 | ' <$as_myself | | |
ad6254c5 | 12992 | sed ' |
7a197a62 AK |
12993 | s/[$]LINENO.*/&-/ |
12994 | t lineno | |
12995 | b | |
12996 | :lineno | |
ad6254c5 | 12997 | N |
7a197a62 AK |
12998 | :loop |
12999 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 13000 | t loop |
7a197a62 | 13001 | s/-\n.*// |
ad6254c5 | 13002 | ' >$as_me.lineno && |
7a197a62 | 13003 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 13004 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
13005 | { (exit 1); exit 1; }; } |
13006 | ||
13007 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13008 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
13009 | # original and so on. Autoconf is especially sensitive to this). |
13010 | . "./$as_me.lineno" | |
ad6254c5 AK |
13011 | # Exit status is that of the last command. |
13012 | exit | |
13013 | } | |
13014 | ||
13015 | ||
7a197a62 AK |
13016 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13017 | as_dirname=dirname | |
13018 | else | |
13019 | as_dirname=false | |
13020 | fi | |
13021 | ||
13022 | ECHO_C= ECHO_N= ECHO_T= | |
13023 | case `echo -n x` in | |
13024 | -n*) | |
13025 | case `echo 'x\c'` in | |
13026 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13027 | *) ECHO_C='\c';; | |
13028 | esac;; | |
13029 | *) | |
13030 | ECHO_N='-n';; | |
ad6254c5 | 13031 | esac |
7a197a62 AK |
13032 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13033 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
13034 | as_expr=expr |
13035 | else | |
13036 | as_expr=false | |
13037 | fi | |
80992638 | 13038 | |
ad6254c5 | 13039 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
13040 | if test -d conf$$.dir; then |
13041 | rm -f conf$$.dir/conf$$.file | |
13042 | else | |
13043 | rm -f conf$$.dir | |
ec6a6fbe AK |
13044 | mkdir conf$$.dir 2>/dev/null |
13045 | fi | |
13046 | if (echo >conf$$.file) 2>/dev/null; then | |
13047 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13048 | as_ln_s='ln -s' | |
13049 | # ... but there are two gotchas: | |
13050 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13051 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13052 | # In both cases, we have to default to `cp -p'. | |
13053 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13054 | as_ln_s='cp -p' | |
13055 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13056 | as_ln_s=ln | |
13057 | else | |
ad6254c5 | 13058 | as_ln_s='cp -p' |
ec6a6fbe | 13059 | fi |
ad6254c5 AK |
13060 | else |
13061 | as_ln_s='cp -p' | |
13062 | fi | |
7a197a62 AK |
13063 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13064 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 13065 | |
ad6254c5 AK |
13066 | if mkdir -p . 2>/dev/null; then |
13067 | as_mkdir_p=: | |
13068 | else | |
8a2fc586 | 13069 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
13070 | as_mkdir_p=false |
13071 | fi | |
13072 | ||
25fbec5b AK |
13073 | if test -x / >/dev/null 2>&1; then |
13074 | as_test_x='test -x' | |
7a197a62 | 13075 | else |
25fbec5b AK |
13076 | if ls -dL / >/dev/null 2>&1; then |
13077 | as_ls_L_option=L | |
13078 | else | |
13079 | as_ls_L_option= | |
13080 | fi | |
13081 | as_test_x=' | |
13082 | eval sh -c '\'' | |
13083 | if test -d "$1"; then | |
ec6a6fbe | 13084 | test -d "$1/."; |
25fbec5b AK |
13085 | else |
13086 | case $1 in | |
ec6a6fbe | 13087 | -*)set "./$1";; |
25fbec5b AK |
13088 | esac; |
13089 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
13090 | ???[sx]*):;;*)false;;esac;fi | |
13091 | '\'' sh | |
13092 | ' | |
7a197a62 | 13093 | fi |
25fbec5b | 13094 | as_executable_p=$as_test_x |
ad6254c5 AK |
13095 | |
13096 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 13097 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13098 | |
13099 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 13100 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
13101 | |
13102 | ||
ad6254c5 AK |
13103 | exec 6>&1 |
13104 | ||
7a197a62 | 13105 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 13106 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
13107 | # values after options handling. |
13108 | ac_log=" | |
ad6254c5 | 13109 | This file was extended by $as_me, which was |
ec6a6fbe | 13110 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
13111 | |
13112 | CONFIG_FILES = $CONFIG_FILES | |
13113 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13114 | CONFIG_LINKS = $CONFIG_LINKS | |
13115 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13116 | $ $0 $@ | |
13117 | ||
7a197a62 AK |
13118 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13119 | " | |
13120 | ||
ad6254c5 AK |
13121 | _ACEOF |
13122 | ||
ec6a6fbe AK |
13123 | case $ac_config_files in *" |
13124 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13125 | esac | |
13126 | ||
13127 | case $ac_config_headers in *" | |
13128 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13129 | esac | |
13130 | ||
13131 | ||
13132 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 13133 | # Files that config.status was made for. |
68f2de6d AK |
13134 | config_files="$ac_config_files" |
13135 | config_headers="$ac_config_headers" | |
ad6254c5 | 13136 | |
7a197a62 | 13137 | _ACEOF |
ad6254c5 | 13138 | |
ec6a6fbe | 13139 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13140 | ac_cs_usage="\ |
13141 | \`$as_me' instantiates files from templates according to the | |
13142 | current configuration. | |
13143 | ||
ec6a6fbe | 13144 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
13145 | |
13146 | -h, --help print this help, then exit | |
25fbec5b | 13147 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
13148 | -q, --quiet, --silent |
13149 | do not print progress messages | |
ad6254c5 AK |
13150 | -d, --debug don't remove temporary files |
13151 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
13152 | --file=FILE[:TEMPLATE] |
13153 | instantiate the configuration file FILE | |
13154 | --header=FILE[:TEMPLATE] | |
13155 | instantiate the configuration header FILE | |
ad6254c5 AK |
13156 | |
13157 | Configuration files: | |
13158 | $config_files | |
13159 | ||
72b2cb61 AK |
13160 | Configuration headers: |
13161 | $config_headers | |
13162 | ||
ad6254c5 | 13163 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 13164 | |
7a197a62 | 13165 | _ACEOF |
ec6a6fbe | 13166 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13167 | ac_cs_version="\\ |
13168 | config.status | |
ec6a6fbe AK |
13169 | configured by $0, generated by GNU Autoconf 2.63, |
13170 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 13171 | |
ec6a6fbe | 13172 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
13173 | This config.status script is free software; the Free Software Foundation |
13174 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
13175 | |
13176 | ac_pwd='$ac_pwd' | |
13177 | srcdir='$srcdir' | |
13178 | INSTALL='$INSTALL' | |
fddafd51 | 13179 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
13180 | AWK='$AWK' |
13181 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
13182 | _ACEOF |
13183 | ||
ec6a6fbe AK |
13184 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13185 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
13186 | ac_need_defaults=: |
13187 | while test $# != 0 | |
13188 | do | |
13189 | case $1 in | |
13190 | --*=*) | |
7a197a62 AK |
13191 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13192 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
13193 | ac_shift=: |
13194 | ;; | |
7a197a62 | 13195 | *) |
ad6254c5 AK |
13196 | ac_option=$1 |
13197 | ac_optarg=$2 | |
13198 | ac_shift=shift | |
13199 | ;; | |
ad6254c5 AK |
13200 | esac |
13201 | ||
13202 | case $ac_option in | |
13203 | # Handling of the options. | |
ad6254c5 AK |
13204 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13205 | ac_cs_recheck=: ;; | |
7a197a62 | 13206 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 13207 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 13208 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
13209 | debug=: ;; |
13210 | --file | --fil | --fi | --f ) | |
13211 | $ac_shift | |
ec6a6fbe AK |
13212 | case $ac_optarg in |
13213 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13214 | esac | |
13215 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
13216 | ac_need_defaults=false;; |
13217 | --header | --heade | --head | --hea ) | |
13218 | $ac_shift | |
ec6a6fbe AK |
13219 | case $ac_optarg in |
13220 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13221 | esac | |
13222 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 13223 | ac_need_defaults=false;; |
7a197a62 AK |
13224 | --he | --h) |
13225 | # Conflict between --help and --header | |
ec6a6fbe | 13226 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
13227 | Try \`$0 --help' for more information." >&2 |
13228 | { (exit 1); exit 1; }; };; | |
13229 | --help | --hel | -h ) | |
ec6a6fbe | 13230 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
13231 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13232 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13233 | ac_cs_silent=: ;; | |
13234 | ||
13235 | # This is an error. | |
ec6a6fbe | 13236 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 13237 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
13238 | { (exit 1); exit 1; }; } ;; |
13239 | ||
7a197a62 AK |
13240 | *) ac_config_targets="$ac_config_targets $1" |
13241 | ac_need_defaults=false ;; | |
ad6254c5 AK |
13242 | |
13243 | esac | |
13244 | shift | |
13245 | done | |
13246 | ||
13247 | ac_configure_extra_args= | |
13248 | ||
13249 | if $ac_cs_silent; then | |
13250 | exec 6>/dev/null | |
13251 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13252 | fi | |
13253 | ||
13254 | _ACEOF | |
ec6a6fbe | 13255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 13256 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
13257 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13258 | shift | |
13259 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13260 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 13261 | export CONFIG_SHELL |
ec6a6fbe | 13262 | exec "\$@" |
ad6254c5 AK |
13263 | fi |
13264 | ||
13265 | _ACEOF | |
ec6a6fbe | 13266 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13267 | exec 5>>config.log |
13268 | { | |
13269 | echo | |
13270 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13271 | ## Running $as_me. ## | |
13272 | _ASBOX | |
ec6a6fbe | 13273 | $as_echo "$ac_log" |
7a197a62 | 13274 | } >&5 |
ad6254c5 | 13275 | |
7a197a62 | 13276 | _ACEOF |
ec6a6fbe | 13277 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 13278 | _ACEOF |
ad6254c5 | 13279 | |
ec6a6fbe | 13280 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13281 | |
13282 | # Handling of arguments. | |
ad6254c5 AK |
13283 | for ac_config_target in $ac_config_targets |
13284 | do | |
7a197a62 AK |
13285 | case $ac_config_target in |
13286 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
13287 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13288 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
13289 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
13290 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
13291 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
13292 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 13293 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
13294 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
13295 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 13296 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
13297 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
13298 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
13299 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
13300 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
13301 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
13302 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 13303 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 13304 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
13305 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
13306 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 13307 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
93bd259b AK |
13308 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
13309 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 13310 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 13311 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 13312 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 13313 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 13314 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
7a197a62 | 13315 | |
ec6a6fbe AK |
13316 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13317 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 13318 | { (exit 1); exit 1; }; };; |
80992638 | 13319 | esac |
ad6254c5 AK |
13320 | done |
13321 | ||
7a197a62 | 13322 | |
ad6254c5 AK |
13323 | # If the user did not use the arguments to specify the items to instantiate, |
13324 | # then the envvar interface is used. Set only those that are not. | |
13325 | # We use the long form for the default assignment because of an extremely | |
13326 | # bizarre bug on SunOS 4.1.3. | |
13327 | if $ac_need_defaults; then | |
13328 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 13329 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
13330 | fi |
13331 | ||
13332 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 13333 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 13334 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
13335 | # Hook for its removal unless debugging. |
13336 | # Note that there is a small window in which the directory will not be cleaned: | |
13337 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
13338 | $debug || |
13339 | { | |
7a197a62 AK |
13340 | tmp= |
13341 | trap 'exit_status=$? | |
13342 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13343 | ' 0 | |
ad6254c5 AK |
13344 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
13345 | } | |
ad6254c5 AK |
13346 | # Create a (secure) tmp directory for tmp files. |
13347 | ||
13348 | { | |
7a197a62 | 13349 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
13350 | test -n "$tmp" && test -d "$tmp" |
13351 | } || | |
13352 | { | |
7a197a62 AK |
13353 | tmp=./conf$$-$RANDOM |
13354 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
13355 | } || |
13356 | { | |
ec6a6fbe | 13357 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
13358 | { (exit 1); exit 1; } |
13359 | } | |
13360 | ||
ec6a6fbe AK |
13361 | # Set up the scripts for CONFIG_FILES section. |
13362 | # No need to generate them if there are no CONFIG_FILES. | |
13363 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 13364 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 13365 | |
68f2de6d | 13366 | |
ec6a6fbe AK |
13367 | ac_cr='\r' |
13368 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13369 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13370 | ac_cs_awk_cr='\\r' | |
13371 | else | |
13372 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 13373 | fi |
7a197a62 | 13374 | |
ec6a6fbe | 13375 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 13376 | _ACEOF |
7a197a62 | 13377 | |
8106cdd5 | 13378 | |
ec6a6fbe AK |
13379 | { |
13380 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13381 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13382 | echo "_ACEOF" | |
13383 | } >conf$$subs.sh || | |
13384 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13385 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13386 | { (exit 1); exit 1; }; } | |
13387 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
13388 | ac_delim='%!_!# ' |
13389 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
13390 | . ./conf$$subs.sh || |
13391 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13392 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13393 | { (exit 1); exit 1; }; } | |
13394 | ||
13395 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13396 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
13397 | break |
13398 | elif $ac_last_try; then | |
ec6a6fbe AK |
13399 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13400 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
13401 | { (exit 1); exit 1; }; } |
13402 | else | |
13403 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13404 | fi | |
13405 | done | |
ec6a6fbe AK |
13406 | rm -f conf$$subs.sh |
13407 | ||
13408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13409 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13410 | _ACEOF | |
13411 | sed -n ' | |
13412 | h | |
13413 | s/^/S["/; s/!.*/"]=/ | |
13414 | p | |
13415 | g | |
13416 | s/^[^!]*!// | |
13417 | :repl | |
13418 | t repl | |
13419 | s/'"$ac_delim"'$// | |
13420 | t delim | |
13421 | :nl | |
13422 | h | |
13423 | s/\(.\{148\}\).*/\1/ | |
13424 | t more1 | |
13425 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13426 | p | |
13427 | n | |
13428 | b repl | |
13429 | :more1 | |
13430 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13431 | p | |
13432 | g | |
13433 | s/.\{148\}// | |
13434 | t nl | |
13435 | :delim | |
13436 | h | |
13437 | s/\(.\{148\}\).*/\1/ | |
13438 | t more2 | |
13439 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13440 | p | |
13441 | b | |
13442 | :more2 | |
13443 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13444 | p | |
13445 | g | |
13446 | s/.\{148\}// | |
13447 | t delim | |
13448 | ' <conf$$subs.awk | sed ' | |
13449 | /^[^""]/{ | |
13450 | N | |
13451 | s/\n// | |
13452 | } | |
13453 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13454 | rm -f conf$$subs.awk | |
13455 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13456 | _ACAWK | |
13457 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13458 | for (key in S) S_is_set[key] = 1 | |
13459 | FS = "\a" | |
7a197a62 | 13460 | |
ec6a6fbe AK |
13461 | } |
13462 | { | |
13463 | line = $ 0 | |
13464 | nfields = split(line, field, "@") | |
13465 | substed = 0 | |
13466 | len = length(field[1]) | |
13467 | for (i = 2; i < nfields; i++) { | |
13468 | key = field[i] | |
13469 | keylen = length(key) | |
13470 | if (S_is_set[key]) { | |
13471 | value = S[key] | |
13472 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13473 | len += length(value) + length(field[++i]) | |
13474 | substed = 1 | |
13475 | } else | |
13476 | len += 1 + keylen | |
13477 | } | |
13478 | ||
13479 | print line | |
13480 | } | |
fddafd51 | 13481 | |
ec6a6fbe | 13482 | _ACAWK |
1995c9ff | 13483 | _ACEOF |
ec6a6fbe AK |
13484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13485 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13486 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13487 | else | |
13488 | cat | |
13489 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13490 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
13491 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
13492 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13493 | _ACEOF |
13494 | ||
7a197a62 AK |
13495 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13496 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13497 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13498 | # (actually we leave an empty line to preserve line numbers). | |
13499 | if test "x$srcdir" = x.; then | |
13500 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13501 | s/:*\$(srcdir):*/:/ | |
13502 | s/:*\${srcdir}:*/:/ | |
13503 | s/:*@srcdir@:*/:/ | |
13504 | s/^\([^=]*=[ ]*\):*/\1/ | |
13505 | s/:*$// | |
13506 | s/^[^=]*=[ ]*$// | |
13507 | }' | |
13508 | fi | |
13509 | ||
ec6a6fbe | 13510 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13511 | fi # test -n "$CONFIG_FILES" |
13512 | ||
ec6a6fbe AK |
13513 | # Set up the scripts for CONFIG_HEADERS section. |
13514 | # No need to generate them if there are no CONFIG_HEADERS. | |
13515 | # This happens for instance with `./config.status Makefile'. | |
13516 | if test -n "$CONFIG_HEADERS"; then | |
13517 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13518 | BEGIN { | |
13519 | _ACEOF | |
13520 | ||
13521 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13522 | # here-document in config.status, that substitutes the proper values into | |
13523 | # config.h.in to produce config.h. | |
13524 | ||
13525 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13526 | # handling of long lines. | |
13527 | ac_delim='%!_!# ' | |
13528 | for ac_last_try in false false :; do | |
13529 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13530 | if test -z "$ac_t"; then | |
13531 | break | |
13532 | elif $ac_last_try; then | |
13533 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
13534 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
13535 | { (exit 1); exit 1; }; } | |
13536 | else | |
13537 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13538 | fi | |
13539 | done | |
13540 | ||
13541 | # For the awk script, D is an array of macro values keyed by name, | |
13542 | # likewise P contains macro parameters if any. Preserve backslash | |
13543 | # newline sequences. | |
13544 | ||
13545 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13546 | sed -n ' | |
13547 | s/.\{148\}/&'"$ac_delim"'/g | |
13548 | t rset | |
13549 | :rset | |
13550 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13551 | t def | |
13552 | d | |
13553 | :def | |
13554 | s/\\$// | |
13555 | t bsnl | |
13556 | s/["\\]/\\&/g | |
13557 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13558 | D["\1"]=" \3"/p | |
13559 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13560 | d | |
13561 | :bsnl | |
13562 | s/["\\]/\\&/g | |
13563 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13564 | D["\1"]=" \3\\\\\\n"\\/p | |
13565 | t cont | |
13566 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13567 | t cont | |
13568 | d | |
13569 | :cont | |
13570 | n | |
13571 | s/.\{148\}/&'"$ac_delim"'/g | |
13572 | t clear | |
13573 | :clear | |
13574 | s/\\$// | |
13575 | t bsnlc | |
13576 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13577 | d | |
13578 | :bsnlc | |
13579 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13580 | b cont | |
13581 | ' <confdefs.h | sed ' | |
13582 | s/'"$ac_delim"'/"\\\ | |
13583 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13584 | ||
13585 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13586 | for (key in D) D_is_set[key] = 1 | |
13587 | FS = "\a" | |
13588 | } | |
13589 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13590 | line = \$ 0 | |
13591 | split(line, arg, " ") | |
13592 | if (arg[1] == "#") { | |
13593 | defundef = arg[2] | |
13594 | mac1 = arg[3] | |
13595 | } else { | |
13596 | defundef = substr(arg[1], 2) | |
13597 | mac1 = arg[2] | |
13598 | } | |
13599 | split(mac1, mac2, "(") #) | |
13600 | macro = mac2[1] | |
13601 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13602 | if (D_is_set[macro]) { | |
13603 | # Preserve the white space surrounding the "#". | |
13604 | print prefix "define", macro P[macro] D[macro] | |
13605 | next | |
13606 | } else { | |
13607 | # Replace #undef with comments. This is necessary, for example, | |
13608 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13609 | # on some systems where configure will not decide to define it. | |
13610 | if (defundef == "undef") { | |
13611 | print "/*", prefix defundef, macro, "*/" | |
13612 | next | |
13613 | } | |
13614 | } | |
13615 | } | |
13616 | { print } | |
13617 | _ACAWK | |
13618 | _ACEOF | |
13619 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13620 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
13621 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
13622 | { (exit 1); exit 1; }; } | |
13623 | fi # test -n "$CONFIG_HEADERS" | |
13624 | ||
7a197a62 | 13625 | |
ec6a6fbe AK |
13626 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
13627 | shift | |
13628 | for ac_tag | |
7a197a62 AK |
13629 | do |
13630 | case $ac_tag in | |
13631 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13632 | esac | |
13633 | case $ac_mode$ac_tag in | |
13634 | :[FHL]*:*);; | |
ec6a6fbe AK |
13635 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
13636 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
13637 | { (exit 1); exit 1; }; };; |
13638 | :[FH]-) ac_tag=-:-;; | |
13639 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13640 | esac | |
13641 | ac_save_IFS=$IFS | |
13642 | IFS=: | |
13643 | set x $ac_tag | |
13644 | IFS=$ac_save_IFS | |
13645 | shift | |
13646 | ac_file=$1 | |
13647 | shift | |
13648 | ||
13649 | case $ac_mode in | |
13650 | :L) ac_source=$1;; | |
13651 | :[FH]) | |
13652 | ac_file_inputs= | |
13653 | for ac_f | |
13654 | do | |
13655 | case $ac_f in | |
13656 | -) ac_f="$tmp/stdin";; | |
13657 | *) # Look for the file first in the build tree, then in the source tree | |
13658 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13659 | # because $ac_f cannot contain `:'. | |
13660 | test -f "$ac_f" || | |
13661 | case $ac_f in | |
13662 | [\\/$]*) false;; | |
13663 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13664 | esac || | |
ec6a6fbe AK |
13665 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
13666 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
13667 | { (exit 1); exit 1; }; };; |
13668 | esac | |
ec6a6fbe AK |
13669 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
13670 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
13671 | done |
13672 | ||
13673 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13674 | # use $as_me), people would be surprised to read: | |
13675 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
13676 | configure_input='Generated from '` |
13677 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13678 | `' by configure.' | |
7a197a62 AK |
13679 | if test x"$ac_file" != x-; then |
13680 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
13681 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
13682 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 13683 | fi |
ec6a6fbe AK |
13684 | # Neutralize special characters interpreted by sed in replacement strings. |
13685 | case $configure_input in #( | |
13686 | *\&* | *\|* | *\\* ) | |
13687 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13688 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13689 | *) ac_sed_conf_input=$configure_input;; | |
13690 | esac | |
7a197a62 AK |
13691 | |
13692 | case $ac_tag in | |
ec6a6fbe AK |
13693 | *:-:* | *:-) cat >"$tmp/stdin" \ |
13694 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13695 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13696 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
13697 | esac |
13698 | ;; | |
80992638 | 13699 | esac |
8106cdd5 | 13700 | |
7a197a62 | 13701 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 13702 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13703 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13704 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 13705 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13706 | $as_echo X"$ac_file" | |
7a197a62 AK |
13707 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13708 | s//\1/ | |
13709 | q | |
13710 | } | |
13711 | /^X\(\/\/\)[^/].*/{ | |
13712 | s//\1/ | |
13713 | q | |
13714 | } | |
13715 | /^X\(\/\/\)$/{ | |
13716 | s//\1/ | |
13717 | q | |
13718 | } | |
13719 | /^X\(\/\).*/{ | |
13720 | s//\1/ | |
13721 | q | |
13722 | } | |
13723 | s/.*/./; q'` | |
13724 | { as_dir="$ac_dir" | |
13725 | case $as_dir in #( | |
13726 | -*) as_dir=./$as_dir;; | |
13727 | esac | |
13728 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13729 | as_dirs= |
7a197a62 AK |
13730 | while :; do |
13731 | case $as_dir in #( | |
ec6a6fbe | 13732 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
13733 | *) as_qdir=$as_dir;; |
13734 | esac | |
13735 | as_dirs="'$as_qdir' $as_dirs" | |
13736 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13737 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13738 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13739 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13740 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 13741 | $as_echo X"$as_dir" | |
7a197a62 AK |
13742 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13743 | s//\1/ | |
13744 | q | |
13745 | } | |
13746 | /^X\(\/\/\)[^/].*/{ | |
13747 | s//\1/ | |
13748 | q | |
13749 | } | |
13750 | /^X\(\/\/\)$/{ | |
13751 | s//\1/ | |
13752 | q | |
13753 | } | |
13754 | /^X\(\/\).*/{ | |
13755 | s//\1/ | |
13756 | q | |
13757 | } | |
13758 | s/.*/./; q'` | |
13759 | test -d "$as_dir" && break | |
ad6254c5 | 13760 | done |
7a197a62 | 13761 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
13762 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13763 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13764 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13765 | ac_builddir=. |
13766 | ||
7a197a62 AK |
13767 | case "$ac_dir" in |
13768 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13769 | *) | |
ec6a6fbe | 13770 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 13771 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 13772 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
13773 | case $ac_top_builddir_sub in |
13774 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13775 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13776 | esac ;; | |
13777 | esac | |
13778 | ac_abs_top_builddir=$ac_pwd | |
13779 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13780 | # for backward compatibility: | |
13781 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
13782 | |
13783 | case $srcdir in | |
7a197a62 | 13784 | .) # We are building in place. |
ad6254c5 | 13785 | ac_srcdir=. |
7a197a62 AK |
13786 | ac_top_srcdir=$ac_top_builddir_sub |
13787 | ac_abs_top_srcdir=$ac_pwd ;; | |
13788 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 13789 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
13790 | ac_top_srcdir=$srcdir |
13791 | ac_abs_top_srcdir=$srcdir ;; | |
13792 | *) # Relative name. | |
13793 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13794 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13795 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 13796 | esac |
7a197a62 | 13797 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 13798 | |
ad6254c5 | 13799 | |
7a197a62 AK |
13800 | case $ac_mode in |
13801 | :F) | |
13802 | # | |
13803 | # CONFIG_FILE | |
13804 | # | |
ad6254c5 AK |
13805 | |
13806 | case $INSTALL in | |
13807 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 13808 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 13809 | esac |
fddafd51 ZK |
13810 | ac_MKDIR_P=$MKDIR_P |
13811 | case $MKDIR_P in | |
13812 | [\\/$]* | ?:[\\/]* ) ;; | |
13813 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13814 | esac | |
7a197a62 | 13815 | _ACEOF |
795ca3e5 | 13816 | |
ec6a6fbe | 13817 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13818 | # If the template does not know about datarootdir, expand it. |
13819 | # FIXME: This hack should be removed a few years after 2.60. | |
13820 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13821 | ||
ec6a6fbe AK |
13822 | ac_sed_dataroot=' |
13823 | /datarootdir/ { | |
7a197a62 AK |
13824 | p |
13825 | q | |
13826 | } | |
13827 | /@datadir@/p | |
13828 | /@docdir@/p | |
13829 | /@infodir@/p | |
13830 | /@localedir@/p | |
13831 | /@mandir@/p | |
ec6a6fbe AK |
13832 | ' |
13833 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
13834 | *datarootdir*) ac_datarootdir_seen=yes;; |
13835 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
13836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
13837 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 13838 | _ACEOF |
ec6a6fbe | 13839 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
13840 | ac_datarootdir_hack=' |
13841 | s&@datadir@&$datadir&g | |
13842 | s&@docdir@&$docdir&g | |
13843 | s&@infodir@&$infodir&g | |
13844 | s&@localedir@&$localedir&g | |
13845 | s&@mandir@&$mandir&g | |
13846 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13847 | esac | |
13848 | _ACEOF | |
13849 | ||
13850 | # Neutralize VPATH when `$srcdir' = `.'. | |
13851 | # Shell code in configure.ac might set extrasub. | |
13852 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
13853 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13854 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
13855 | $extrasub |
13856 | _ACEOF | |
ec6a6fbe | 13857 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
13858 | :t |
13859 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 13860 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 13861 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 13862 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
13863 | s&@srcdir@&$ac_srcdir&;t t |
13864 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13865 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13866 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13867 | s&@builddir@&$ac_builddir&;t t | |
13868 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13869 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13870 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 13871 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 13872 | $ac_datarootdir_hack |
ec6a6fbe AK |
13873 | " |
13874 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13875 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13876 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13877 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13878 | |
13879 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13880 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13881 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 13882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 13883 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 13884 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
13885 | which seems to be undefined. Please make sure it is defined." >&2;} |
13886 | ||
13887 | rm -f "$tmp/stdin" | |
72b2cb61 | 13888 | case $ac_file in |
ec6a6fbe AK |
13889 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
13890 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13891 | esac \ | |
13892 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13893 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13894 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
13895 | ;; |
13896 | :H) | |
13897 | # | |
13898 | # CONFIG_HEADER | |
13899 | # | |
72b2cb61 | 13900 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
13901 | { |
13902 | $as_echo "/* $configure_input */" \ | |
13903 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13904 | } >"$tmp/config.h" \ | |
13905 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13906 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13907 | { (exit 1); exit 1; }; } | |
13908 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13909 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13910 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13911 | else |
ec6a6fbe AK |
13912 | rm -f "$ac_file" |
13913 | mv "$tmp/config.h" "$ac_file" \ | |
13914 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13915 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13916 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
13917 | fi |
13918 | else | |
ec6a6fbe AK |
13919 | $as_echo "/* $configure_input */" \ |
13920 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13921 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13922 | $as_echo "$as_me: error: could not create -" >&2;} | |
13923 | { (exit 1); exit 1; }; } | |
72b2cb61 | 13924 | fi |
7a197a62 AK |
13925 | ;; |
13926 | ||
13927 | ||
13928 | esac | |
13929 | ||
13930 | done # for ac_tag | |
795ca3e5 | 13931 | |
795ca3e5 | 13932 | |
ad6254c5 AK |
13933 | { (exit 0); exit 0; } |
13934 | _ACEOF | |
795ca3e5 | 13935 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13936 | ac_clean_files=$ac_clean_files_save |
13937 | ||
ec6a6fbe AK |
13938 | test $ac_write_fail = 0 || |
13939 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
13940 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
13941 | { (exit 1); exit 1; }; } | |
13942 | ||
ad6254c5 AK |
13943 | |
13944 | # configure is writing to config.log, and then calls config.status. | |
13945 | # config.status does its own redirection, appending to config.log. | |
13946 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13947 | # by configure, so config.status won't be able to write to it; its | |
13948 | # output is simply discarded. So we exec the FD to /dev/null, | |
13949 | # effectively closing config.log, so it can be properly (re)opened and | |
13950 | # appended to by config.status. When coming back to configure, we | |
13951 | # need to make the FD available again. | |
13952 | if test "$no_create" != yes; then | |
13953 | ac_cs_success=: | |
13954 | ac_config_status_args= | |
13955 | test "$silent" = yes && | |
13956 | ac_config_status_args="$ac_config_status_args --quiet" | |
13957 | exec 5>/dev/null | |
13958 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13959 | exec 5>>config.log | |
13960 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13961 | # would make configure fail if this is the last instruction. | |
13962 | $ac_cs_success || { (exit 1); exit 1; } | |
13963 | fi | |
ec6a6fbe AK |
13964 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
13965 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13966 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13967 | fi | |
795ca3e5 | 13968 | |
2dc95e1c AK |
13969 | |
13970 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
13971 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13972 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13973 | fi |