]>
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 | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
649 | LIB_PTHREAD | |
a5f46f6a | 650 | UDEV_RULES |
ec6a6fbe AK |
651 | STATIC_LINK |
652 | STATICDIR | |
653 | SNAPSHOTS | |
654 | POOL | |
655 | PKGCONFIG | |
656 | OWNER | |
657 | MIRRORS | |
658 | LVM_RELEASE_DATE | |
659 | LVM_RELEASE | |
660 | LVM_PATCHLEVEL | |
661 | LVM_MINOR | |
662 | LVM_MAJOR | |
bf456146 | 663 | LVM_LIBAPI |
ec6a6fbe | 664 | LVM_VERSION |
ec6a6fbe AK |
665 | LVM1_FALLBACK |
666 | LVM1 | |
667 | LOCALEDIR | |
668 | LIB_SUFFIX | |
669 | LDDEPS | |
670 | JOBS | |
671 | INTL_PACKAGE | |
672 | INTL | |
673 | HAVE_SELINUX | |
674 | HAVE_REALTIME | |
675 | HAVE_LIBDL | |
676 | GROUP | |
677 | FSADM | |
678 | DM_LIB_PATCHLEVEL | |
679 | DM_LIB_VERSION | |
680 | DM_IOCTLS | |
681 | DM_DEVICE_UID | |
682 | DM_DEVICE_MODE | |
683 | DM_DEVICE_GID | |
684 | DM_COMPAT | |
685 | DMEVENTD | |
686 | DEVMAPPER | |
687 | DEBUG | |
688 | COPTIMISE_FLAG | |
e2997b73 | 689 | CONFDIR |
ec6a6fbe AK |
690 | CMDLIB |
691 | CLVMD | |
692 | CLUSTER | |
693 | CLDWHOLEARCHIVE | |
694 | CLDNOWHOLEARCHIVE | |
695 | CLDFLAGS | |
696 | BUILD_DMEVENTD | |
66fd4529 | 697 | BUILD_CMIRRORD |
572fefeb | 698 | APPLIB |
ec6a6fbe AK |
699 | MODPROBE_CMD |
700 | MSGFMT | |
701 | LVM2CMD_LIB | |
572fefeb | 702 | LVM2APP_LIB |
ec6a6fbe AK |
703 | GENHTML |
704 | LCOV | |
a946372e AK |
705 | DLM_LIBS |
706 | DLM_CFLAGS | |
e2997b73 AK |
707 | CPG_LIBS |
708 | CPG_CFLAGS | |
709 | CONFDB_LIBS | |
710 | CONFDB_CFLAGS | |
a946372e AK |
711 | SALCK_LIBS |
712 | SALCK_CFLAGS | |
e2997b73 AK |
713 | QUORUM_LIBS |
714 | QUORUM_CFLAGS | |
a946372e AK |
715 | COROSYNC_LIBS |
716 | COROSYNC_CFLAGS | |
717 | CMAN_LIBS | |
718 | CMAN_CFLAGS | |
719 | GULM_LIBS | |
720 | GULM_CFLAGS | |
721 | CCS_LIBS | |
722 | CCS_CFLAGS | |
723 | PKGCONFIGINIT_LIBS | |
724 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 725 | PKG_CONFIG |
ec6a6fbe AK |
726 | POW_LIB |
727 | LIBOBJS | |
728 | ALLOCA | |
729 | CSCOPE_CMD | |
730 | CFLOW_CMD | |
731 | RANLIB | |
732 | MKDIR_P | |
733 | SET_MAKE | |
734 | LN_S | |
735 | INSTALL_DATA | |
736 | INSTALL_SCRIPT | |
737 | INSTALL_PROGRAM | |
738 | EGREP | |
739 | GREP | |
740 | CPP | |
741 | OBJEXT | |
742 | EXEEXT | |
743 | ac_ct_CC | |
744 | CPPFLAGS | |
745 | LDFLAGS | |
746 | CFLAGS | |
747 | CC | |
748 | AWK | |
749 | SED | |
750 | target_os | |
751 | target_vendor | |
752 | target_cpu | |
753 | target | |
754 | host_os | |
755 | host_vendor | |
756 | host_cpu | |
757 | host | |
758 | build_os | |
759 | build_vendor | |
760 | build_cpu | |
761 | build | |
762 | target_alias | |
763 | host_alias | |
764 | build_alias | |
765 | LIBS | |
766 | ECHO_T | |
767 | ECHO_N | |
768 | ECHO_C | |
769 | DEFS | |
770 | mandir | |
771 | localedir | |
772 | libdir | |
773 | psdir | |
774 | pdfdir | |
775 | dvidir | |
776 | htmldir | |
777 | infodir | |
778 | docdir | |
779 | oldincludedir | |
780 | includedir | |
781 | localstatedir | |
782 | sharedstatedir | |
783 | sysconfdir | |
784 | datadir | |
785 | datarootdir | |
786 | libexecdir | |
787 | sbindir | |
788 | bindir | |
789 | program_transform_name | |
790 | prefix | |
791 | exec_prefix | |
792 | PACKAGE_BUGREPORT | |
793 | PACKAGE_STRING | |
794 | PACKAGE_VERSION | |
795 | PACKAGE_TARNAME | |
796 | PACKAGE_NAME | |
797 | PATH_SEPARATOR | |
798 | SHELL' | |
ad6254c5 | 799 | ac_subst_files='' |
ec6a6fbe AK |
800 | ac_user_opts=' |
801 | enable_option_checking | |
802 | enable_static_link | |
803 | with_user | |
804 | with_group | |
805 | with_device_uid | |
806 | with_device_gid | |
807 | with_device_mode | |
808 | enable_lvm1_fallback | |
809 | with_lvm1 | |
810 | with_pool | |
811 | with_cluster | |
812 | with_snapshots | |
813 | with_mirrors | |
814 | enable_readline | |
815 | enable_realtime | |
816 | with_clvmd | |
66fd4529 AK |
817 | enable_cmirrord |
818 | with_cmirrord_pidfile | |
ec6a6fbe AK |
819 | enable_debug |
820 | with_optimisation | |
821 | enable_profiling | |
822 | enable_devmapper | |
a5f46f6a AK |
823 | enable_udev_sync |
824 | enable_udev_rules | |
ec6a6fbe AK |
825 | enable_compat |
826 | enable_ioctl | |
827 | enable_o_direct | |
572fefeb | 828 | enable_applib |
ec6a6fbe AK |
829 | enable_cmdlib |
830 | enable_pkgconfig | |
831 | enable_fsadm | |
832 | enable_dmeventd | |
833 | enable_selinux | |
834 | enable_nls | |
835 | with_localedir | |
836 | with_confdir | |
837 | with_staticdir | |
838 | with_usrlibdir | |
839 | with_usrsbindir | |
a5f46f6a | 840 | with_udev_prefix |
78ce7acc | 841 | with_udevdir |
ec6a6fbe AK |
842 | with_dmeventd_pidfile |
843 | with_dmeventd_path | |
844 | with_interface | |
845 | ' | |
7a197a62 AK |
846 | ac_precious_vars='build_alias |
847 | host_alias | |
848 | target_alias | |
849 | CC | |
850 | CFLAGS | |
851 | LDFLAGS | |
25fbec5b | 852 | LIBS |
7a197a62 | 853 | CPPFLAGS |
e2997b73 AK |
854 | CPP |
855 | PKG_CONFIG | |
a946372e AK |
856 | PKGCONFIGINIT_CFLAGS |
857 | PKGCONFIGINIT_LIBS | |
858 | CCS_CFLAGS | |
859 | CCS_LIBS | |
860 | GULM_CFLAGS | |
861 | GULM_LIBS | |
862 | CMAN_CFLAGS | |
863 | CMAN_LIBS | |
864 | COROSYNC_CFLAGS | |
865 | COROSYNC_LIBS | |
e2997b73 AK |
866 | QUORUM_CFLAGS |
867 | QUORUM_LIBS | |
a946372e AK |
868 | SALCK_CFLAGS |
869 | SALCK_LIBS | |
e2997b73 AK |
870 | CONFDB_CFLAGS |
871 | CONFDB_LIBS | |
872 | CPG_CFLAGS | |
a946372e AK |
873 | CPG_LIBS |
874 | DLM_CFLAGS | |
875 | DLM_LIBS' | |
7a197a62 | 876 | |
795ca3e5 AK |
877 | |
878 | # Initialize some variables set by options. | |
ad6254c5 AK |
879 | ac_init_help= |
880 | ac_init_version=false | |
ec6a6fbe AK |
881 | ac_unrecognized_opts= |
882 | ac_unrecognized_sep= | |
795ca3e5 AK |
883 | # The variables have the same names as the options, with |
884 | # dashes changed to underlines. | |
ad6254c5 | 885 | cache_file=/dev/null |
795ca3e5 | 886 | exec_prefix=NONE |
795ca3e5 | 887 | no_create= |
795ca3e5 AK |
888 | no_recursion= |
889 | prefix=NONE | |
890 | program_prefix=NONE | |
891 | program_suffix=NONE | |
892 | program_transform_name=s,x,x, | |
893 | silent= | |
894 | site= | |
895 | srcdir= | |
795ca3e5 AK |
896 | verbose= |
897 | x_includes=NONE | |
898 | x_libraries=NONE | |
ad6254c5 AK |
899 | |
900 | # Installation directory options. | |
901 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
902 | # and all the variables that are supposed to be based on exec_prefix | |
903 | # by default will actually change. | |
904 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 905 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
906 | bindir='${exec_prefix}/bin' |
907 | sbindir='${exec_prefix}/sbin' | |
908 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
909 | datarootdir='${prefix}/share' |
910 | datadir='${datarootdir}' | |
795ca3e5 AK |
911 | sysconfdir='${prefix}/etc' |
912 | sharedstatedir='${prefix}/com' | |
913 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
914 | includedir='${prefix}/include' |
915 | oldincludedir='/usr/include' | |
7a197a62 AK |
916 | docdir='${datarootdir}/doc/${PACKAGE}' |
917 | infodir='${datarootdir}/info' | |
918 | htmldir='${docdir}' | |
919 | dvidir='${docdir}' | |
920 | pdfdir='${docdir}' | |
921 | psdir='${docdir}' | |
922 | libdir='${exec_prefix}/lib' | |
923 | localedir='${datarootdir}/locale' | |
924 | mandir='${datarootdir}/man' | |
795ca3e5 | 925 | |
795ca3e5 | 926 | ac_prev= |
7a197a62 | 927 | ac_dashdash= |
795ca3e5 AK |
928 | for ac_option |
929 | do | |
795ca3e5 AK |
930 | # If the previous option needs an argument, assign it. |
931 | if test -n "$ac_prev"; then | |
7a197a62 | 932 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
933 | ac_prev= |
934 | continue | |
935 | fi | |
936 | ||
7a197a62 AK |
937 | case $ac_option in |
938 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
939 | *) ac_optarg=yes ;; | |
940 | esac | |
795ca3e5 AK |
941 | |
942 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
943 | ||
7a197a62 AK |
944 | case $ac_dashdash$ac_option in |
945 | --) | |
946 | ac_dashdash=yes ;; | |
795ca3e5 AK |
947 | |
948 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
949 | ac_prev=bindir ;; | |
950 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 951 | bindir=$ac_optarg ;; |
795ca3e5 AK |
952 | |
953 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 954 | ac_prev=build_alias ;; |
795ca3e5 | 955 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 956 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
957 | |
958 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
959 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
960 | ac_prev=cache_file ;; | |
961 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
962 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
963 | cache_file=$ac_optarg ;; |
964 | ||
965 | --config-cache | -C) | |
966 | cache_file=config.cache ;; | |
795ca3e5 | 967 | |
7a197a62 | 968 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 969 | ac_prev=datadir ;; |
7a197a62 | 970 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 971 | datadir=$ac_optarg ;; |
795ca3e5 | 972 | |
7a197a62 AK |
973 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
974 | | --dataroo | --dataro | --datar) | |
975 | ac_prev=datarootdir ;; | |
976 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
977 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
978 | datarootdir=$ac_optarg ;; | |
979 | ||
795ca3e5 | 980 | -disable-* | --disable-*) |
ec6a6fbe | 981 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 982 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
983 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
984 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 985 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
986 | ac_useropt_orig=$ac_useropt |
987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
988 | case $ac_user_opts in | |
989 | *" | |
990 | "enable_$ac_useropt" | |
991 | "*) ;; | |
992 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
993 | ac_unrecognized_sep=', ';; | |
994 | esac | |
995 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
996 | |
997 | -docdir | --docdir | --docdi | --doc | --do) | |
998 | ac_prev=docdir ;; | |
999 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1000 | docdir=$ac_optarg ;; | |
1001 | ||
1002 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1003 | ac_prev=dvidir ;; | |
1004 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1005 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1006 | |
1007 | -enable-* | --enable-*) | |
ec6a6fbe | 1008 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1009 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1010 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1011 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1012 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1013 | ac_useropt_orig=$ac_useropt |
1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1015 | case $ac_user_opts in | |
1016 | *" | |
1017 | "enable_$ac_useropt" | |
1018 | "*) ;; | |
1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1020 | ac_unrecognized_sep=', ';; | |
1021 | esac | |
1022 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1023 | |
1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1026 | | --exec | --exe | --ex) | |
1027 | ac_prev=exec_prefix ;; | |
1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1030 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1031 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1032 | |
1033 | -gas | --gas | --ga | --g) | |
1034 | # Obsolete; use --with-gas. | |
1035 | with_gas=yes ;; | |
1036 | ||
ad6254c5 AK |
1037 | -help | --help | --hel | --he | -h) |
1038 | ac_init_help=long ;; | |
1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1040 | ac_init_help=recursive ;; | |
1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1042 | ac_init_help=short ;; | |
795ca3e5 AK |
1043 | |
1044 | -host | --host | --hos | --ho) | |
ad6254c5 | 1045 | ac_prev=host_alias ;; |
795ca3e5 | 1046 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1047 | host_alias=$ac_optarg ;; |
795ca3e5 | 1048 | |
7a197a62 AK |
1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1050 | ac_prev=htmldir ;; | |
1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1052 | | --ht=*) | |
1053 | htmldir=$ac_optarg ;; | |
1054 | ||
795ca3e5 AK |
1055 | -includedir | --includedir | --includedi | --included | --include \ |
1056 | | --includ | --inclu | --incl | --inc) | |
1057 | ac_prev=includedir ;; | |
1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1060 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1061 | |
1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1063 | ac_prev=infodir ;; | |
1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1065 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1066 | |
1067 | -libdir | --libdir | --libdi | --libd) | |
1068 | ac_prev=libdir ;; | |
1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1070 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1071 | |
1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1073 | | --libexe | --libex | --libe) | |
1074 | ac_prev=libexecdir ;; | |
1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1076 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1077 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1078 | |
7a197a62 AK |
1079 | -localedir | --localedir | --localedi | --localed | --locale) |
1080 | ac_prev=localedir ;; | |
1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1082 | localedir=$ac_optarg ;; | |
1083 | ||
795ca3e5 | 1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1086 | ac_prev=localstatedir ;; |
1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1089 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1090 | |
1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1092 | ac_prev=mandir ;; | |
1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1094 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1095 | |
1096 | -nfp | --nfp | --nf) | |
1097 | # Obsolete; use --without-fp. | |
1098 | with_fp=no ;; | |
1099 | ||
1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1101 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1102 | no_create=yes ;; |
1103 | ||
1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1106 | no_recursion=yes ;; | |
1107 | ||
1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1110 | | --oldin | --oldi | --old | --ol | --o) | |
1111 | ac_prev=oldincludedir ;; | |
1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1115 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1116 | |
1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1118 | ac_prev=prefix ;; | |
1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1120 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1121 | |
1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1123 | | --program-pre | --program-pr | --program-p) | |
1124 | ac_prev=program_prefix ;; | |
1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1127 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1128 | |
1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1130 | | --program-suf | --program-su | --program-s) | |
1131 | ac_prev=program_suffix ;; | |
1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1134 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1135 | |
1136 | -program-transform-name | --program-transform-name \ | |
1137 | | --program-transform-nam | --program-transform-na \ | |
1138 | | --program-transform-n | --program-transform- \ | |
1139 | | --program-transform | --program-transfor \ | |
1140 | | --program-transfo | --program-transf \ | |
1141 | | --program-trans | --program-tran \ | |
1142 | | --progr-tra | --program-tr | --program-t) | |
1143 | ac_prev=program_transform_name ;; | |
1144 | -program-transform-name=* | --program-transform-name=* \ | |
1145 | | --program-transform-nam=* | --program-transform-na=* \ | |
1146 | | --program-transform-n=* | --program-transform-=* \ | |
1147 | | --program-transform=* | --program-transfor=* \ | |
1148 | | --program-transfo=* | --program-transf=* \ | |
1149 | | --program-trans=* | --program-tran=* \ | |
1150 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1151 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1152 | |
7a197a62 AK |
1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1154 | ac_prev=pdfdir ;; | |
1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1156 | pdfdir=$ac_optarg ;; | |
1157 | ||
1158 | -psdir | --psdir | --psdi | --psd | --ps) | |
1159 | ac_prev=psdir ;; | |
1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1161 | psdir=$ac_optarg ;; | |
1162 | ||
795ca3e5 AK |
1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1164 | | -silent | --silent | --silen | --sile | --sil) | |
1165 | silent=yes ;; | |
1166 | ||
1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1168 | ac_prev=sbindir ;; | |
1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1170 | | --sbi=* | --sb=*) | |
ad6254c5 | 1171 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1172 | |
1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1175 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1176 | | --sha | --sh) | |
1177 | ac_prev=sharedstatedir ;; | |
1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1181 | | --sha=* | --sh=*) | |
ad6254c5 | 1182 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1183 | |
1184 | -site | --site | --sit) | |
1185 | ac_prev=site ;; | |
1186 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1187 | site=$ac_optarg ;; |
795ca3e5 AK |
1188 | |
1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1190 | ac_prev=srcdir ;; | |
1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1192 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1193 | |
1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1195 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1196 | ac_prev=sysconfdir ;; | |
1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1199 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1202 | ac_prev=target_alias ;; |
795ca3e5 | 1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1204 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1205 | |
1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1207 | verbose=yes ;; | |
1208 | ||
ad6254c5 AK |
1209 | -version | --version | --versio | --versi | --vers | -V) |
1210 | ac_init_version=: ;; | |
795ca3e5 AK |
1211 | |
1212 | -with-* | --with-*) | |
ec6a6fbe | 1213 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1214 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1216 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1217 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1218 | ac_useropt_orig=$ac_useropt |
1219 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1220 | case $ac_user_opts in | |
1221 | *" | |
1222 | "with_$ac_useropt" | |
1223 | "*) ;; | |
1224 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1225 | ac_unrecognized_sep=', ';; | |
1226 | esac | |
1227 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1228 | |
1229 | -without-* | --without-*) | |
ec6a6fbe | 1230 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1231 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1232 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1233 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1234 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1235 | ac_useropt_orig=$ac_useropt |
1236 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1237 | case $ac_user_opts in | |
1238 | *" | |
1239 | "with_$ac_useropt" | |
1240 | "*) ;; | |
1241 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1242 | ac_unrecognized_sep=', ';; | |
1243 | esac | |
1244 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1245 | |
1246 | --x) | |
1247 | # Obsolete; use --with-x. | |
1248 | with_x=yes ;; | |
1249 | ||
1250 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1251 | | --x-incl | --x-inc | --x-in | --x-i) | |
1252 | ac_prev=x_includes ;; | |
1253 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1254 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1255 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1256 | |
1257 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1258 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1259 | ac_prev=x_libraries ;; | |
1260 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1261 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1262 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1263 | |
ec6a6fbe | 1264 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1265 | Try \`$0 --help' for more information." >&2 |
1266 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1267 | ;; |
1268 | ||
ad6254c5 AK |
1269 | *=*) |
1270 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1271 | # Reject names that are not valid shell variable names. | |
1272 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1273 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1274 | { (exit 1); exit 1; }; } |
7a197a62 | 1275 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1276 | export $ac_envvar ;; |
1277 | ||
795ca3e5 | 1278 | *) |
ad6254c5 | 1279 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1280 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1281 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1282 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1283 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1284 | ;; |
1285 | ||
1286 | esac | |
1287 | done | |
1288 | ||
1289 | if test -n "$ac_prev"; then | |
ad6254c5 | 1290 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1291 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1292 | { (exit 1); exit 1; }; } |
795ca3e5 | 1293 | fi |
795ca3e5 | 1294 | |
ec6a6fbe AK |
1295 | if test -n "$ac_unrecognized_opts"; then |
1296 | case $enable_option_checking in | |
1297 | no) ;; | |
1298 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1299 | { (exit 1); exit 1; }; } ;; | |
1300 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1301 | esac | |
1302 | fi | |
1303 | ||
1304 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1305 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1306 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1307 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1308 | libdir localedir mandir | |
795ca3e5 | 1309 | do |
7a197a62 | 1310 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1311 | # Remove trailing slashes. |
1312 | case $ac_val in | |
1313 | */ ) | |
1314 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1315 | eval $ac_var=\$ac_val;; | |
1316 | esac | |
1317 | # Be sure to have absolute directory names. | |
ad6254c5 | 1318 | case $ac_val in |
7a197a62 AK |
1319 | [\\/$]* | ?:[\\/]* ) continue;; |
1320 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1321 | esac |
ec6a6fbe | 1322 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1323 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1324 | done |
1325 | ||
ad6254c5 AK |
1326 | # There might be people who depend on the old broken behavior: `$host' |
1327 | # used to hold the argument of --host etc. | |
1328 | # FIXME: To remove some day. | |
1329 | build=$build_alias | |
1330 | host=$host_alias | |
1331 | target=$target_alias | |
1332 | ||
1333 | # FIXME: To remove some day. | |
1334 | if test "x$host_alias" != x; then | |
1335 | if test "x$build_alias" = x; then | |
1336 | cross_compiling=maybe | |
ec6a6fbe | 1337 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1338 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1339 | elif test "x$build_alias" != "x$host_alias"; then | |
1340 | cross_compiling=yes | |
1341 | fi | |
1342 | fi | |
8106cdd5 | 1343 | |
ad6254c5 AK |
1344 | ac_tool_prefix= |
1345 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1346 | ||
1347 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1348 | |
795ca3e5 | 1349 | |
7a197a62 AK |
1350 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1351 | ac_ls_di=`ls -di .` && | |
1352 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1353 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1354 | { (exit 1); exit 1; }; } |
1355 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1356 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1357 | { (exit 1); exit 1; }; } |
1358 | ||
1359 | ||
795ca3e5 AK |
1360 | # Find the source files, if location was not specified. |
1361 | if test -z "$srcdir"; then | |
1362 | ac_srcdir_defaulted=yes | |
7a197a62 | 1363 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1364 | ac_confdir=`$as_dirname -- "$as_myself" || |
1365 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1366 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1367 | X"$as_myself" : 'X\(//\)$' \| \ | |
1368 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1369 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\/\)[^/].*/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | /^X\(\/\/\)$/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\).*/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | s/.*/./; q'` | |
795ca3e5 | 1387 | srcdir=$ac_confdir |
7a197a62 | 1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1389 | srcdir=.. |
1390 | fi | |
1391 | else | |
1392 | ac_srcdir_defaulted=no | |
1393 | fi | |
7a197a62 AK |
1394 | if test ! -r "$srcdir/$ac_unique_file"; then |
1395 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1396 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1397 | { (exit 1); exit 1; }; } |
795ca3e5 | 1398 | fi |
7a197a62 AK |
1399 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1400 | ac_abs_confdir=`( | |
ec6a6fbe | 1401 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1402 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1403 | pwd)` |
1404 | # When building in place, set srcdir=. | |
1405 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1406 | srcdir=. | |
1407 | fi | |
1408 | # Remove unnecessary trailing slashes from srcdir. | |
1409 | # Double slashes in file names in object file debugging info | |
1410 | # mess up M-x gdb in Emacs. | |
1411 | case $srcdir in | |
1412 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1413 | esac | |
1414 | for ac_var in $ac_precious_vars; do | |
1415 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1416 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1417 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1418 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1419 | done | |
ad6254c5 AK |
1420 | |
1421 | # | |
1422 | # Report the --help message. | |
1423 | # | |
1424 | if test "$ac_init_help" = "long"; then | |
1425 | # Omit some internal or obsolete options to make the list less imposing. | |
1426 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1427 | cat <<_ACEOF | |
1428 | \`configure' configures this package to adapt to many kinds of systems. | |
1429 | ||
1430 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1431 | ||
1432 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1433 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1434 | ||
1435 | Defaults for the options are specified in brackets. | |
1436 | ||
1437 | Configuration: | |
1438 | -h, --help display this help and exit | |
1439 | --help=short display options specific to this package | |
1440 | --help=recursive display the short help of all the included packages | |
1441 | -V, --version display version information and exit | |
1442 | -q, --quiet, --silent do not print \`checking...' messages | |
1443 | --cache-file=FILE cache test results in FILE [disabled] | |
1444 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1445 | -n, --no-create do not create output files | |
1446 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1447 | ||
ad6254c5 AK |
1448 | Installation directories: |
1449 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1450 | [$ac_default_prefix] |
ad6254c5 | 1451 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1452 | [PREFIX] |
ad6254c5 AK |
1453 | |
1454 | By default, \`make install' will install all the files in | |
1455 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1456 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1457 | for instance \`--prefix=\$HOME'. | |
1458 | ||
1459 | For better control, use the options below. | |
1460 | ||
1461 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1462 | --bindir=DIR user executables [EPREFIX/bin] |
1463 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1464 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1465 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1466 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1467 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1468 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1469 | --includedir=DIR C header files [PREFIX/include] | |
1470 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1471 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1472 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1473 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1474 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1475 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1476 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1477 | --htmldir=DIR html documentation [DOCDIR] | |
1478 | --dvidir=DIR dvi documentation [DOCDIR] | |
1479 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1480 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1481 | _ACEOF |
1482 | ||
1483 | cat <<\_ACEOF | |
1484 | ||
1485 | System types: | |
1486 | --build=BUILD configure for building on BUILD [guessed] | |
1487 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1488 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1489 | _ACEOF | |
1490 | fi | |
1491 | ||
1492 | if test -n "$ac_init_help"; then | |
1493 | ||
1494 | cat <<\_ACEOF | |
1495 | ||
1496 | Optional Features: | |
ec6a6fbe | 1497 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1498 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1499 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1500 | --enable-static_link Use this to link the tools to their libraries |
1501 | statically. Default is dynamic linking | |
ad6254c5 AK |
1502 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1503 | device-mapper is missing from the kernel | |
1b523347 | 1504 | --disable-readline Disable readline support |
3d978351 | 1505 | --disable-realtime Disable realtime clock support |
66fd4529 | 1506 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1507 | --enable-debug Enable debugging |
5556819a | 1508 | --enable-profiling Gather gcov profiling data |
93bd259b | 1509 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1510 | --enable-udev_sync Enable synchronisation with udev processing |
1511 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b AK |
1512 | --enable-compat Enable support for old device-mapper versions |
1513 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 | 1514 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1515 | --enable-applib Build application library |
ad6254c5 | 1516 | --enable-cmdlib Build shared command library |
93bd259b | 1517 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1518 | --enable-fsadm Enable fsadm |
15d91f5a | 1519 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1520 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1521 | --enable-nls Enable Native Language Support |
1522 | ||
1523 | Optional Packages: | |
1524 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1525 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1526 | --with-user=USER Set the owner of installed files [USER=root] |
1527 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1528 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1529 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1530 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1531 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1532 | TYPE=internal | |
1533 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1534 | TYPE=internal | |
1535 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1536 | TYPE=internal | |
1537 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1538 | TYPE=internal | |
1539 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1540 | TYPE=internal | |
a946372e AK |
1541 | --with-clvmd=TYPE Build cluster LVM Daemon. |
1542 | The following locking combinations are valid: | |
1543 | * cman,gulm (RHEL4 or equivalent) | |
1544 | * cman (RHEL5 or equivalent) | |
1545 | * cman,corosync,openais (or selection of them) | |
1546 | * all (autodetect) | |
1547 | * none (disable build) | |
a266258f | 1548 | TYPE=none |
66fd4529 | 1549 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1550 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1551 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1552 | --with-confdir=DIR Configuration files in DIR [/etc] |
1553 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1554 | --with-usrlibdir=DIR |
1555 | --with-usrsbindir=DIR | |
a5f46f6a | 1556 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1557 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1558 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1559 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1560 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1561 | |
1562 | Some influential environment variables: | |
1563 | CC C compiler command | |
1564 | CFLAGS C compiler flags | |
1565 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1566 | nonstandard directory <lib dir> | |
25fbec5b | 1567 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1568 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1569 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1570 | CPP C preprocessor |
e2997b73 | 1571 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1572 | PKGCONFIGINIT_CFLAGS |
1573 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1574 | PKGCONFIGINIT_LIBS | |
1575 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1576 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1577 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1578 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1579 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1580 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1581 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1582 | COROSYNC_CFLAGS | |
1583 | C compiler flags for COROSYNC, overriding pkg-config | |
1584 | COROSYNC_LIBS | |
1585 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1586 | QUORUM_CFLAGS |
1587 | C compiler flags for QUORUM, overriding pkg-config | |
1588 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1589 | SALCK_CFLAGS |
1590 | C compiler flags for SALCK, overriding pkg-config | |
1591 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1592 | CONFDB_CFLAGS |
1593 | C compiler flags for CONFDB, overriding pkg-config | |
1594 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1595 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1596 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1597 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1598 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
ad6254c5 AK |
1599 | |
1600 | Use these variables to override the choices made by `configure' or to help | |
1601 | it to find libraries and programs with nonstandard names/locations. | |
1602 | ||
1603 | _ACEOF | |
7a197a62 | 1604 | ac_status=$? |
ad6254c5 AK |
1605 | fi |
1606 | ||
1607 | if test "$ac_init_help" = "recursive"; then | |
1608 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1609 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1610 | test -d "$ac_dir" || |
1611 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1612 | continue | |
ad6254c5 AK |
1613 | ac_builddir=. |
1614 | ||
7a197a62 AK |
1615 | case "$ac_dir" in |
1616 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1617 | *) | |
ec6a6fbe | 1618 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1619 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1620 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1621 | case $ac_top_builddir_sub in |
1622 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1623 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1624 | esac ;; | |
1625 | esac | |
1626 | ac_abs_top_builddir=$ac_pwd | |
1627 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1628 | # for backward compatibility: | |
1629 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1630 | |
1631 | case $srcdir in | |
7a197a62 | 1632 | .) # We are building in place. |
ad6254c5 | 1633 | ac_srcdir=. |
7a197a62 AK |
1634 | ac_top_srcdir=$ac_top_builddir_sub |
1635 | ac_abs_top_srcdir=$ac_pwd ;; | |
1636 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1637 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1638 | ac_top_srcdir=$srcdir |
1639 | ac_abs_top_srcdir=$srcdir ;; | |
1640 | *) # Relative name. | |
1641 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1642 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1643 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1644 | esac |
7a197a62 AK |
1645 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1646 | ||
1647 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1648 | # Check for guested configure. | |
1649 | if test -f "$ac_srcdir/configure.gnu"; then | |
1650 | echo && | |
1651 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1652 | elif test -f "$ac_srcdir/configure"; then | |
1653 | echo && | |
1654 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1655 | else |
ec6a6fbe | 1656 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1657 | fi || ac_status=$? |
1658 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1659 | done |
1660 | fi | |
1661 | ||
7a197a62 | 1662 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1663 | if $ac_init_version; then |
1664 | cat <<\_ACEOF | |
7a197a62 | 1665 | configure |
ec6a6fbe | 1666 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1667 | |
7a197a62 | 1668 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1669 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1670 | This configure script is free software; the Free Software Foundation |
1671 | gives unlimited permission to copy, distribute and modify it. | |
1672 | _ACEOF | |
7a197a62 | 1673 | exit |
ad6254c5 | 1674 | fi |
7a197a62 | 1675 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1676 | This file contains any messages produced by compilers while |
1677 | running configure, to aid debugging if configure makes a mistake. | |
1678 | ||
1679 | It was created by $as_me, which was | |
ec6a6fbe | 1680 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1681 | |
1682 | $ $0 $@ | |
1683 | ||
1684 | _ACEOF | |
7a197a62 | 1685 | exec 5>>config.log |
ad6254c5 AK |
1686 | { |
1687 | cat <<_ASUNAME | |
1688 | ## --------- ## | |
1689 | ## Platform. ## | |
1690 | ## --------- ## | |
1691 | ||
1692 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1693 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1694 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1695 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1696 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1697 | ||
1698 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1699 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1700 | ||
1701 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1702 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1703 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1704 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1705 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1706 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1707 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1708 | ||
1709 | _ASUNAME | |
1710 | ||
1711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1712 | for as_dir in $PATH | |
1713 | do | |
1714 | IFS=$as_save_IFS | |
1715 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1716 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1717 | done |
7a197a62 | 1718 | IFS=$as_save_IFS |
ad6254c5 AK |
1719 | |
1720 | } >&5 | |
1721 | ||
1722 | cat >&5 <<_ACEOF | |
1723 | ||
1724 | ||
1725 | ## ----------- ## | |
1726 | ## Core tests. ## | |
1727 | ## ----------- ## | |
1728 | ||
1729 | _ACEOF | |
1730 | ||
1731 | ||
1732 | # Keep a trace of the command line. | |
1733 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1734 | # Strip out --silent because we don't want to record it for future runs. | |
1735 | # Also quote any args containing shell meta-characters. | |
1736 | # Make two passes to allow for proper duplicate-argument suppression. | |
1737 | ac_configure_args= | |
1738 | ac_configure_args0= | |
1739 | ac_configure_args1= | |
ad6254c5 AK |
1740 | ac_must_keep_next=false |
1741 | for ac_pass in 1 2 | |
1742 | do | |
1743 | for ac_arg | |
1744 | do | |
1745 | case $ac_arg in | |
1746 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1747 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1748 | | -silent | --silent | --silen | --sile | --sil) | |
1749 | continue ;; | |
7a197a62 | 1750 | *\'*) |
ec6a6fbe | 1751 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1752 | esac |
1753 | case $ac_pass in | |
1754 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1755 | 2) | |
1756 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1757 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1758 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1759 | else |
8a2fc586 AK |
1760 | case $ac_arg in |
1761 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1762 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1763 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1764 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1765 | case "$ac_configure_args0 " in | |
1766 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1767 | esac | |
1768 | ;; | |
1769 | -* ) ac_must_keep_next=true ;; | |
1770 | esac | |
ad6254c5 | 1771 | fi |
7a197a62 | 1772 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1773 | ;; |
1774 | esac | |
1775 | done | |
1776 | done | |
1777 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1778 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1779 | ||
1780 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1781 | # config.log. We remove comments because anyway the quotes in there | |
1782 | # would cause problems or look ugly. | |
7a197a62 AK |
1783 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1784 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1785 | trap 'exit_status=$? |
1786 | # Save into config.log some information that might help in debugging. | |
1787 | { | |
1788 | echo | |
1789 | ||
1790 | cat <<\_ASBOX | |
1791 | ## ---------------- ## | |
1792 | ## Cache variables. ## | |
1793 | ## ---------------- ## | |
1794 | _ASBOX | |
1795 | echo | |
1796 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1797 | ( |
1798 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1799 | eval ac_val=\$$ac_var | |
1800 | case $ac_val in #( | |
1801 | *${as_nl}*) | |
1802 | case $ac_var in #( | |
ec6a6fbe AK |
1803 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1804 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1805 | esac |
1806 | case $ac_var in #( | |
1807 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1808 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1809 | *) $as_unset $ac_var ;; |
1810 | esac ;; | |
1811 | esac | |
1812 | done | |
ad6254c5 | 1813 | (set) 2>&1 | |
7a197a62 AK |
1814 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1815 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1816 | sed -n \ |
7a197a62 AK |
1817 | "s/'\''/'\''\\\\'\'''\''/g; |
1818 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1819 | ;; #( | |
ad6254c5 | 1820 | *) |
7a197a62 | 1821 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1822 | ;; |
7a197a62 AK |
1823 | esac | |
1824 | sort | |
1825 | ) | |
ad6254c5 AK |
1826 | echo |
1827 | ||
1828 | cat <<\_ASBOX | |
1829 | ## ----------------- ## | |
1830 | ## Output variables. ## | |
1831 | ## ----------------- ## | |
1832 | _ASBOX | |
1833 | echo | |
1834 | for ac_var in $ac_subst_vars | |
1835 | do | |
7a197a62 AK |
1836 | eval ac_val=\$$ac_var |
1837 | case $ac_val in | |
ec6a6fbe | 1838 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1839 | esac |
ec6a6fbe | 1840 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1841 | done | sort |
1842 | echo | |
1843 | ||
1844 | if test -n "$ac_subst_files"; then | |
1845 | cat <<\_ASBOX | |
7a197a62 AK |
1846 | ## ------------------- ## |
1847 | ## File substitutions. ## | |
1848 | ## ------------------- ## | |
ad6254c5 AK |
1849 | _ASBOX |
1850 | echo | |
1851 | for ac_var in $ac_subst_files | |
1852 | do | |
7a197a62 AK |
1853 | eval ac_val=\$$ac_var |
1854 | case $ac_val in | |
ec6a6fbe | 1855 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1856 | esac |
ec6a6fbe | 1857 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1858 | done | sort |
1859 | echo | |
1860 | fi | |
1861 | ||
1862 | if test -s confdefs.h; then | |
1863 | cat <<\_ASBOX | |
1864 | ## ----------- ## | |
1865 | ## confdefs.h. ## | |
1866 | ## ----------- ## | |
1867 | _ASBOX | |
1868 | echo | |
7a197a62 | 1869 | cat confdefs.h |
ad6254c5 AK |
1870 | echo |
1871 | fi | |
1872 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1873 | $as_echo "$as_me: caught signal $ac_signal" |
1874 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1875 | } >&5 |
7a197a62 AK |
1876 | rm -f core *.core core.conftest.* && |
1877 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1878 | exit $exit_status |
7a197a62 | 1879 | ' 0 |
ad6254c5 AK |
1880 | for ac_signal in 1 2 13 15; do |
1881 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1882 | done | |
1883 | ac_signal=0 | |
1884 | ||
1885 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1886 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1887 | |
1888 | # Predefined preprocessor variables. | |
1889 | ||
1890 | cat >>confdefs.h <<_ACEOF | |
1891 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1892 | _ACEOF | |
1893 | ||
1894 | ||
1895 | cat >>confdefs.h <<_ACEOF | |
1896 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1897 | _ACEOF | |
1898 | ||
1899 | ||
1900 | cat >>confdefs.h <<_ACEOF | |
1901 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1902 | _ACEOF | |
8106cdd5 | 1903 | |
ad6254c5 AK |
1904 | |
1905 | cat >>confdefs.h <<_ACEOF | |
1906 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1907 | _ACEOF | |
1908 | ||
1909 | ||
1910 | cat >>confdefs.h <<_ACEOF | |
1911 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1912 | _ACEOF | |
1913 | ||
1914 | ||
1915 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1916 | # Prefer an explicitly selected file to automatically selected ones. |
1917 | ac_site_file1=NONE | |
1918 | ac_site_file2=NONE | |
7a197a62 | 1919 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1920 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1921 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1922 | ac_site_file1=$prefix/share/config.site |
1923 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1924 | else |
ec6a6fbe AK |
1925 | ac_site_file1=$ac_default_prefix/share/config.site |
1926 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1927 | fi |
ec6a6fbe | 1928 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1929 | do |
ec6a6fbe | 1930 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1931 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1932 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1933 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1934 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1935 | . "$ac_site_file" |
1936 | fi | |
1937 | done | |
1938 | ||
1939 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1940 | # Some versions of bash will fail to source /dev/null (special |
1941 | # files actually), so we avoid doing that. | |
1942 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1943 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1944 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1945 | case $cache_file in |
7a197a62 AK |
1946 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1947 | *) . "./$cache_file";; | |
ad6254c5 AK |
1948 | esac |
1949 | fi | |
795ca3e5 | 1950 | else |
ec6a6fbe AK |
1951 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1952 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1953 | >$cache_file |
1954 | fi | |
1955 | ||
1956 | # Check that the precious variables saved in the cache have kept the same | |
1957 | # value. | |
1958 | ac_cache_corrupted=false | |
7a197a62 | 1959 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1960 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1961 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1962 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1963 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1964 | case $ac_old_set,$ac_new_set in |
1965 | set,) | |
ec6a6fbe AK |
1966 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1967 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1968 | ac_cache_corrupted=: ;; |
1969 | ,set) | |
ec6a6fbe AK |
1970 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1971 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1972 | ac_cache_corrupted=: ;; |
1973 | ,);; | |
1974 | *) | |
1975 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1976 | # differences in whitespace do not lead to failure. |
1977 | ac_old_val_w=`echo x $ac_old_val` | |
1978 | ac_new_val_w=`echo x $ac_new_val` | |
1979 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1980 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1981 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1982 | ac_cache_corrupted=: | |
1983 | else | |
1984 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1985 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1986 | eval $ac_var=\$ac_old_val | |
1987 | fi | |
1988 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1989 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1990 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1991 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1992 | fi;; |
1993 | esac | |
1994 | # Pass precious variables to config.status. | |
1995 | if test "$ac_new_set" = set; then | |
1996 | case $ac_new_val in | |
ec6a6fbe | 1997 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1998 | *) ac_arg=$ac_var=$ac_new_val ;; |
1999 | esac | |
2000 | case " $ac_configure_args " in | |
2001 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2002 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2003 | esac | |
2004 | fi | |
2005 | done | |
2006 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2007 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2008 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2009 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2010 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2011 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2012 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2013 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2014 | fi |
2015 | ||
ad6254c5 AK |
2016 | |
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | ||
2031 | ||
7a197a62 AK |
2032 | ac_ext=c |
2033 | ac_cpp='$CPP $CPPFLAGS' | |
2034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2037 | |
795ca3e5 AK |
2038 | |
2039 | ||
7a197a62 | 2040 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2041 | |
2042 | ||
80992638 | 2043 | ################################################################################ |
795ca3e5 | 2044 | ac_aux_dir= |
7a197a62 AK |
2045 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2046 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2047 | ac_aux_dir=$ac_dir |
2048 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2049 | break | |
7a197a62 | 2050 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2051 | ac_aux_dir=$ac_dir |
2052 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2053 | break | |
7a197a62 | 2054 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2055 | ac_aux_dir=$ac_dir |
2056 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2057 | break | |
795ca3e5 AK |
2058 | fi |
2059 | done | |
2060 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2061 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2062 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2063 | { (exit 1); exit 1; }; } |
795ca3e5 | 2064 | fi |
7a197a62 AK |
2065 | |
2066 | # These three variables are undocumented and unsupported, | |
2067 | # and are intended to be withdrawn in a future Autoconf release. | |
2068 | # They can cause serious problems if a builder's source tree is in a directory | |
2069 | # whose full name contains unusual characters. | |
2070 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2071 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2072 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2073 | ||
8ce0cbda AK |
2074 | |
2075 | ||
ad6254c5 | 2076 | ################################################################################ |
8ce0cbda | 2077 | # Make sure we can run config.sub. |
7a197a62 | 2078 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2079 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2080 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2081 | { (exit 1); exit 1; }; } |
2082 | ||
ec6a6fbe AK |
2083 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2084 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2085 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2086 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2087 | else |
7a197a62 AK |
2088 | ac_build_alias=$build_alias |
2089 | test "x$ac_build_alias" = x && | |
2090 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2091 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2092 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2093 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2094 | { (exit 1); exit 1; }; } |
7a197a62 | 2095 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2096 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2097 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2098 | { (exit 1); exit 1; }; } |
2099 | ||
2100 | fi | |
ec6a6fbe AK |
2101 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2102 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2103 | case $ac_cv_build in |
2104 | *-*-*) ;; | |
ec6a6fbe AK |
2105 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2106 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2107 | { (exit 1); exit 1; }; };; |
2108 | esac | |
ad6254c5 | 2109 | build=$ac_cv_build |
7a197a62 AK |
2110 | ac_save_IFS=$IFS; IFS='-' |
2111 | set x $ac_cv_build | |
2112 | shift | |
2113 | build_cpu=$1 | |
2114 | build_vendor=$2 | |
2115 | shift; shift | |
2116 | # Remember, the first character of IFS is used to create $*, | |
2117 | # except with old shells: | |
2118 | build_os=$* | |
2119 | IFS=$ac_save_IFS | |
2120 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2121 | |
2122 | ||
ec6a6fbe AK |
2123 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2124 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2125 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2126 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2127 | else |
7a197a62 AK |
2128 | if test "x$host_alias" = x; then |
2129 | ac_cv_host=$ac_cv_build | |
2130 | else | |
2131 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2132 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2133 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2134 | { (exit 1); exit 1; }; } |
7a197a62 | 2135 | fi |
ad6254c5 AK |
2136 | |
2137 | fi | |
ec6a6fbe AK |
2138 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2139 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2140 | case $ac_cv_host in |
2141 | *-*-*) ;; | |
ec6a6fbe AK |
2142 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2143 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2144 | { (exit 1); exit 1; }; };; |
2145 | esac | |
ad6254c5 | 2146 | host=$ac_cv_host |
7a197a62 AK |
2147 | ac_save_IFS=$IFS; IFS='-' |
2148 | set x $ac_cv_host | |
2149 | shift | |
2150 | host_cpu=$1 | |
2151 | host_vendor=$2 | |
2152 | shift; shift | |
2153 | # Remember, the first character of IFS is used to create $*, | |
2154 | # except with old shells: | |
2155 | host_os=$* | |
2156 | IFS=$ac_save_IFS | |
2157 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2158 | |
2159 | ||
ec6a6fbe AK |
2160 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2161 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2162 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2163 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2164 | else |
7a197a62 AK |
2165 | if test "x$target_alias" = x; then |
2166 | ac_cv_target=$ac_cv_host | |
2167 | else | |
2168 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2169 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2170 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2171 | { (exit 1); exit 1; }; } |
7a197a62 | 2172 | fi |
8ce0cbda | 2173 | |
ad6254c5 | 2174 | fi |
ec6a6fbe AK |
2175 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2176 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2177 | case $ac_cv_target in |
2178 | *-*-*) ;; | |
ec6a6fbe AK |
2179 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2180 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2181 | { (exit 1); exit 1; }; };; |
2182 | esac | |
ad6254c5 | 2183 | target=$ac_cv_target |
7a197a62 AK |
2184 | ac_save_IFS=$IFS; IFS='-' |
2185 | set x $ac_cv_target | |
2186 | shift | |
2187 | target_cpu=$1 | |
2188 | target_vendor=$2 | |
2189 | shift; shift | |
2190 | # Remember, the first character of IFS is used to create $*, | |
2191 | # except with old shells: | |
2192 | target_os=$* | |
2193 | IFS=$ac_save_IFS | |
2194 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2195 | |
8ce0cbda | 2196 | |
ad6254c5 AK |
2197 | # The aliases save the names the user supplied, while $host etc. |
2198 | # will get canonicalized. | |
2199 | test -n "$target_alias" && | |
8ce0cbda AK |
2200 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2201 | NONENONEs,x,x, && | |
2202 | program_prefix=${target_alias}- | |
2203 | ||
8ce0cbda AK |
2204 | case "$host_os" in |
2205 | linux*) | |
7f54ef36 | 2206 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2207 | COPTIMISE_FLAG="-O2" |
2208 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2209 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2210 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2211 | LDDEPS="$LDDEPS .export.sym" | |
2212 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2213 | LIB_SUFFIX=so |
8ce0cbda AK |
2214 | DEVMAPPER=yes |
2215 | ODIRECT=yes | |
d0191583 | 2216 | DM_IOCTLS=yes |
8ce0cbda | 2217 | SELINUX=yes |
8b1a3214 | 2218 | REALTIME=yes |
8ce0cbda | 2219 | CLUSTER=internal |
93bd259b | 2220 | FSADM=yes |
d0191583 | 2221 | ;; |
8ce0cbda AK |
2222 | darwin*) |
2223 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2224 | COPTIMISE_FLAG="-O2" | |
2225 | CLDFLAGS="$CLDFLAGS" | |
2226 | CLDWHOLEARCHIVE="-all_load" | |
2227 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2228 | LIB_SUFFIX=dylib |
a653923f | 2229 | DEVMAPPER=yes |
8ce0cbda | 2230 | ODIRECT=no |
d0191583 | 2231 | DM_IOCTLS=no |
8ce0cbda | 2232 | SELINUX=no |
8b1a3214 | 2233 | REALTIME=no |
8ce0cbda | 2234 | CLUSTER=none |
d0191583 JM |
2235 | FSADM=no |
2236 | ;; | |
8ce0cbda AK |
2237 | esac |
2238 | ||
80992638 | 2239 | ################################################################################ |
ec6a6fbe AK |
2240 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2241 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2242 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2243 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2244 | else |
2245 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2246 | for ac_i in 1 2 3 4 5 6 7; do | |
2247 | ac_script="$ac_script$as_nl$ac_script" | |
2248 | done | |
ec6a6fbe | 2249 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2250 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2251 | if test -z "$SED"; then |
5951ef33 | 2252 | ac_path_SED_found=false |
ec6a6fbe AK |
2253 | # Loop through the user's path and test for each of PROGNAME-LIST |
2254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2255 | for as_dir in $PATH |
2256 | do | |
2257 | IFS=$as_save_IFS | |
2258 | test -z "$as_dir" && as_dir=. | |
2259 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2260 | for ac_exec_ext in '' $ac_executable_extensions; do |
2261 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2262 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2263 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2264 | # Check for GNU $ac_path_SED |
2265 | case `"$ac_path_SED" --version 2>&1` in | |
2266 | *GNU*) | |
2267 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2268 | *) | |
2269 | ac_count=0 | |
ec6a6fbe | 2270 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2271 | while : |
2272 | do | |
2273 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2274 | mv "conftest.tmp" "conftest.in" | |
2275 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2276 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2277 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2278 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2279 | ac_count=`expr $ac_count + 1` | |
2280 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2281 | # Best one so far, save it but keep looking for a better one | |
2282 | ac_cv_path_SED="$ac_path_SED" | |
2283 | ac_path_SED_max=$ac_count | |
2284 | fi | |
2285 | # 10*(2^10) chars as input seems more than enough | |
2286 | test $ac_count -gt 10 && break | |
2287 | done | |
2288 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2289 | esac | |
2290 | ||
ec6a6fbe AK |
2291 | $ac_path_SED_found && break 3 |
2292 | done | |
5951ef33 AK |
2293 | done |
2294 | done | |
5951ef33 | 2295 | IFS=$as_save_IFS |
ec6a6fbe AK |
2296 | if test -z "$ac_cv_path_SED"; then |
2297 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2298 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2299 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2300 | fi |
5951ef33 AK |
2301 | else |
2302 | ac_cv_path_SED=$SED | |
2303 | fi | |
2304 | ||
2305 | fi | |
ec6a6fbe AK |
2306 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2307 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2308 | SED="$ac_cv_path_SED" |
2309 | rm -f conftest.sed | |
2310 | ||
ad6254c5 | 2311 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2312 | do |
ad6254c5 | 2313 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2314 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2315 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2316 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2317 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2318 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2319 | else |
2320 | if test -n "$AWK"; then | |
2321 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2322 | else | |
ad6254c5 AK |
2323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2324 | for as_dir in $PATH | |
2325 | do | |
2326 | IFS=$as_save_IFS | |
2327 | test -z "$as_dir" && as_dir=. | |
2328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2330 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2331 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2332 | break 2 |
2333 | fi | |
2334 | done | |
2335 | done | |
7a197a62 | 2336 | IFS=$as_save_IFS |
ad6254c5 | 2337 | |
795ca3e5 AK |
2338 | fi |
2339 | fi | |
ad6254c5 | 2340 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2341 | if test -n "$AWK"; then |
ec6a6fbe AK |
2342 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2343 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2344 | else |
ec6a6fbe AK |
2345 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2346 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2347 | fi |
2348 | ||
7a197a62 | 2349 | |
ad6254c5 AK |
2350 | test -n "$AWK" && break |
2351 | done | |
2352 | ||
2353 | ac_ext=c | |
2354 | ac_cpp='$CPP $CPPFLAGS' | |
2355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2358 | if test -n "$ac_tool_prefix"; then | |
2359 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2360 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2361 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2362 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2363 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2364 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2365 | else |
2366 | if test -n "$CC"; then | |
2367 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2368 | else | |
2369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2370 | for as_dir in $PATH | |
2371 | do | |
2372 | IFS=$as_save_IFS | |
2373 | test -z "$as_dir" && as_dir=. | |
2374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2376 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2377 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2378 | break 2 |
2379 | fi | |
2380 | done | |
8106cdd5 | 2381 | done |
7a197a62 | 2382 | IFS=$as_save_IFS |
8106cdd5 | 2383 | |
ad6254c5 AK |
2384 | fi |
2385 | fi | |
2386 | CC=$ac_cv_prog_CC | |
2387 | if test -n "$CC"; then | |
ec6a6fbe AK |
2388 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2389 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2390 | else |
ec6a6fbe AK |
2391 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2392 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2393 | fi |
2394 | ||
7a197a62 | 2395 | |
ad6254c5 AK |
2396 | fi |
2397 | if test -z "$ac_cv_prog_CC"; then | |
2398 | ac_ct_CC=$CC | |
2399 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2400 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2401 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2402 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2403 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2404 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2405 | else |
2406 | if test -n "$ac_ct_CC"; then | |
2407 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2408 | else | |
2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2410 | for as_dir in $PATH | |
2411 | do | |
2412 | IFS=$as_save_IFS | |
2413 | test -z "$as_dir" && as_dir=. | |
2414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2416 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2417 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2418 | break 2 |
2419 | fi | |
2420 | done | |
2421 | done | |
7a197a62 | 2422 | IFS=$as_save_IFS |
ad6254c5 AK |
2423 | |
2424 | fi | |
2425 | fi | |
2426 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2427 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2428 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2429 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2430 | else |
ec6a6fbe AK |
2431 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2432 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2433 | fi |
2434 | ||
7a197a62 AK |
2435 | if test "x$ac_ct_CC" = x; then |
2436 | CC="" | |
2437 | else | |
2438 | case $cross_compiling:$ac_tool_warned in | |
2439 | yes:) | |
ec6a6fbe AK |
2440 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2442 | ac_tool_warned=yes ;; |
2443 | esac | |
2444 | CC=$ac_ct_CC | |
2445 | fi | |
ad6254c5 AK |
2446 | else |
2447 | CC="$ac_cv_prog_CC" | |
2448 | fi | |
2449 | ||
2450 | if test -z "$CC"; then | |
7a197a62 AK |
2451 | if test -n "$ac_tool_prefix"; then |
2452 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2453 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2454 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2455 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2456 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2457 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2458 | else |
2459 | if test -n "$CC"; then | |
2460 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2461 | else | |
ad6254c5 AK |
2462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2463 | for as_dir in $PATH | |
2464 | do | |
2465 | IFS=$as_save_IFS | |
2466 | test -z "$as_dir" && as_dir=. | |
2467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2469 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2470 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2471 | break 2 |
2472 | fi | |
2473 | done | |
2474 | done | |
7a197a62 | 2475 | IFS=$as_save_IFS |
ad6254c5 | 2476 | |
8106cdd5 AK |
2477 | fi |
2478 | fi | |
ad6254c5 | 2479 | CC=$ac_cv_prog_CC |
8106cdd5 | 2480 | if test -n "$CC"; then |
ec6a6fbe AK |
2481 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2482 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2483 | else |
ec6a6fbe AK |
2484 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2485 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2486 | fi |
2487 | ||
8106cdd5 | 2488 | |
7a197a62 | 2489 | fi |
ad6254c5 | 2490 | fi |
795ca3e5 AK |
2491 | if test -z "$CC"; then |
2492 | # Extract the first word of "cc", so it can be a program name with args. | |
2493 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2494 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2495 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2496 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2497 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2498 | else |
2499 | if test -n "$CC"; then | |
2500 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2501 | else | |
795ca3e5 | 2502 | ac_prog_rejected=no |
ad6254c5 AK |
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2504 | for as_dir in $PATH | |
2505 | do | |
2506 | IFS=$as_save_IFS | |
2507 | test -z "$as_dir" && as_dir=. | |
2508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2510 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2511 | ac_prog_rejected=yes | |
2512 | continue | |
2513 | fi | |
2514 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2515 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2516 | break 2 |
2517 | fi | |
2518 | done | |
2519 | done | |
7a197a62 | 2520 | IFS=$as_save_IFS |
ad6254c5 | 2521 | |
795ca3e5 AK |
2522 | if test $ac_prog_rejected = yes; then |
2523 | # We found a bogon in the path, so make sure we never use it. | |
2524 | set dummy $ac_cv_prog_CC | |
2525 | shift | |
ad6254c5 | 2526 | if test $# != 0; then |
795ca3e5 AK |
2527 | # We chose a different compiler from the bogus one. |
2528 | # However, it has the same basename, so the bogon will be chosen | |
2529 | # first if we set CC to just the basename; use the full file name. | |
2530 | shift | |
ad6254c5 | 2531 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2532 | fi |
2533 | fi | |
2534 | fi | |
2535 | fi | |
ad6254c5 | 2536 | CC=$ac_cv_prog_CC |
795ca3e5 | 2537 | if test -n "$CC"; then |
ec6a6fbe AK |
2538 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2539 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2540 | else |
ec6a6fbe AK |
2541 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2542 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2543 | fi |
2544 | ||
7a197a62 | 2545 | |
ad6254c5 AK |
2546 | fi |
2547 | if test -z "$CC"; then | |
2548 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2549 | for ac_prog in cl.exe |
ad6254c5 AK |
2550 | do |
2551 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2552 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2553 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2554 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2555 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2556 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2557 | else |
2558 | if test -n "$CC"; then | |
2559 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2560 | else | |
ad6254c5 AK |
2561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2562 | for as_dir in $PATH | |
2563 | do | |
2564 | IFS=$as_save_IFS | |
2565 | test -z "$as_dir" && as_dir=. | |
2566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2568 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2569 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2570 | break 2 |
2571 | fi | |
2572 | done | |
2573 | done | |
7a197a62 | 2574 | IFS=$as_save_IFS |
ad6254c5 | 2575 | |
795ca3e5 AK |
2576 | fi |
2577 | fi | |
ad6254c5 | 2578 | CC=$ac_cv_prog_CC |
795ca3e5 | 2579 | if test -n "$CC"; then |
ec6a6fbe AK |
2580 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2581 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2582 | else |
ec6a6fbe AK |
2583 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2584 | $as_echo "no" >&6; } | |
795ca3e5 | 2585 | fi |
ad6254c5 | 2586 | |
7a197a62 | 2587 | |
ad6254c5 AK |
2588 | test -n "$CC" && break |
2589 | done | |
2590 | fi | |
2591 | if test -z "$CC"; then | |
2592 | ac_ct_CC=$CC | |
7a197a62 | 2593 | for ac_prog in cl.exe |
ad6254c5 AK |
2594 | do |
2595 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2596 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2597 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2598 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2599 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2600 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2601 | else |
2602 | if test -n "$ac_ct_CC"; then | |
2603 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2604 | else | |
2605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2606 | for as_dir in $PATH | |
2607 | do | |
2608 | IFS=$as_save_IFS | |
2609 | test -z "$as_dir" && as_dir=. | |
2610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2612 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2613 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2614 | break 2 |
795ca3e5 | 2615 | fi |
ad6254c5 AK |
2616 | done |
2617 | done | |
7a197a62 | 2618 | IFS=$as_save_IFS |
ad6254c5 AK |
2619 | |
2620 | fi | |
2621 | fi | |
2622 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2623 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2624 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2625 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2626 | else |
ec6a6fbe AK |
2627 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2628 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2629 | fi |
2630 | ||
7a197a62 | 2631 | |
ad6254c5 AK |
2632 | test -n "$ac_ct_CC" && break |
2633 | done | |
795ca3e5 | 2634 | |
7a197a62 AK |
2635 | if test "x$ac_ct_CC" = x; then |
2636 | CC="" | |
2637 | else | |
2638 | case $cross_compiling:$ac_tool_warned in | |
2639 | yes:) | |
ec6a6fbe AK |
2640 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2641 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2642 | ac_tool_warned=yes ;; |
2643 | esac | |
2644 | CC=$ac_ct_CC | |
2645 | fi | |
ad6254c5 AK |
2646 | fi |
2647 | ||
2648 | fi | |
2649 | ||
2650 | ||
ec6a6fbe AK |
2651 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2652 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2653 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2654 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2655 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2656 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2657 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2658 | |
2659 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2660 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2661 | set X $ac_compile | |
2662 | ac_compiler=$2 | |
7a197a62 AK |
2663 | { (ac_try="$ac_compiler --version >&5" |
2664 | case "(($ac_try" in | |
2665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2666 | *) ac_try_echo=$ac_try;; | |
2667 | esac | |
ec6a6fbe AK |
2668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2669 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2670 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2671 | ac_status=$? |
ec6a6fbe | 2672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2673 | (exit $ac_status); } |
7a197a62 AK |
2674 | { (ac_try="$ac_compiler -v >&5" |
2675 | case "(($ac_try" in | |
2676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2677 | *) ac_try_echo=$ac_try;; | |
2678 | esac | |
ec6a6fbe AK |
2679 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2680 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2681 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2682 | ac_status=$? |
ec6a6fbe | 2683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2684 | (exit $ac_status); } |
7a197a62 AK |
2685 | { (ac_try="$ac_compiler -V >&5" |
2686 | case "(($ac_try" in | |
2687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2688 | *) ac_try_echo=$ac_try;; | |
2689 | esac | |
ec6a6fbe AK |
2690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2691 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2692 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2693 | ac_status=$? |
ec6a6fbe | 2694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2695 | (exit $ac_status); } |
2696 | ||
2697 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2698 | /* confdefs.h. */ |
2699 | _ACEOF | |
2700 | cat confdefs.h >>conftest.$ac_ext | |
2701 | cat >>conftest.$ac_ext <<_ACEOF | |
2702 | /* end confdefs.h. */ | |
2703 | ||
2704 | int | |
2705 | main () | |
2706 | { | |
2707 | ||
2708 | ; | |
2709 | return 0; | |
2710 | } | |
2711 | _ACEOF | |
2712 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2713 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2714 | # Try to create an executable without -o first, disregard a.out. |
2715 | # It will help us diagnose broken compilers, and finding out an intuition | |
2716 | # of exeext. | |
ec6a6fbe AK |
2717 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2718 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2719 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2720 | ||
2721 | # The possible output files: | |
2722 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2723 | ||
7a197a62 AK |
2724 | ac_rmfiles= |
2725 | for ac_file in $ac_files | |
2726 | do | |
2727 | case $ac_file in | |
ec6a6fbe | 2728 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2729 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2730 | esac | |
2731 | done | |
2732 | rm -f $ac_rmfiles | |
2733 | ||
2734 | if { (ac_try="$ac_link_default" | |
2735 | case "(($ac_try" in | |
2736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2737 | *) ac_try_echo=$ac_try;; | |
2738 | esac | |
ec6a6fbe AK |
2739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2740 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2741 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2742 | ac_status=$? |
ec6a6fbe | 2743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2744 | (exit $ac_status); }; then |
7a197a62 AK |
2745 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2746 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2747 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2748 | # so that the user can short-circuit this test for compilers unknown to | |
2749 | # Autoconf. | |
25fbec5b | 2750 | for ac_file in $ac_files '' |
ad6254c5 AK |
2751 | do |
2752 | test -f "$ac_file" || continue | |
2753 | case $ac_file in | |
ec6a6fbe | 2754 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2755 | ;; |
ad6254c5 | 2756 | [ab].out ) |
8a2fc586 AK |
2757 | # We found the default executable, but exeext='' is most |
2758 | # certainly right. | |
2759 | break;; | |
ad6254c5 | 2760 | *.* ) |
7a197a62 AK |
2761 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2762 | then :; else | |
2763 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2764 | fi | |
2765 | # We set ac_cv_exeext here because the later test for it is not | |
2766 | # safe: cross compilers may not add the suffix if given an `-o' | |
2767 | # argument, so we may need to know it at that point already. | |
2768 | # Even if this section looks crufty: it has the advantage of | |
2769 | # actually working. | |
8a2fc586 | 2770 | break;; |
ad6254c5 | 2771 | * ) |
8a2fc586 | 2772 | break;; |
ad6254c5 AK |
2773 | esac |
2774 | done | |
7a197a62 AK |
2775 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2776 | ||
ad6254c5 | 2777 | else |
25fbec5b AK |
2778 | ac_file='' |
2779 | fi | |
2780 | ||
ec6a6fbe AK |
2781 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2782 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2783 | if test -z "$ac_file"; then |
ec6a6fbe | 2784 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2785 | sed 's/^/| /' conftest.$ac_ext >&5 |
2786 | ||
ec6a6fbe AK |
2787 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2788 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2789 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2790 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2791 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2792 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2793 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2794 | fi |
2795 | ||
2796 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2797 | |
7a197a62 | 2798 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2799 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2800 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2801 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2802 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2803 | # If not cross compiling, check that we can run a simple program. | |
2804 | if test "$cross_compiling" != yes; then | |
2805 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2806 | { (case "(($ac_try" in |
2807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2808 | *) ac_try_echo=$ac_try;; | |
2809 | esac | |
ec6a6fbe AK |
2810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2811 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2812 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2813 | ac_status=$? |
ec6a6fbe | 2814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2815 | (exit $ac_status); }; }; then |
2816 | cross_compiling=no | |
795ca3e5 | 2817 | else |
ad6254c5 AK |
2818 | if test "$cross_compiling" = maybe; then |
2819 | cross_compiling=yes | |
2820 | else | |
ec6a6fbe AK |
2821 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2822 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2823 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2824 | If you meant to cross compile, use \`--host'. |
2825 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2826 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2827 | If you meant to cross compile, use \`--host'. |
2828 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2829 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2830 | fi |
795ca3e5 | 2831 | fi |
80992638 | 2832 | fi |
ec6a6fbe AK |
2833 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2834 | $as_echo "yes" >&6; } | |
ad6254c5 | 2835 | |
ec6a6fbe | 2836 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2837 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2838 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2839 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2840 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2841 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2842 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2843 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2844 | |
ec6a6fbe AK |
2845 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2846 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2847 | if { (ac_try="$ac_link" |
2848 | case "(($ac_try" in | |
2849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2850 | *) ac_try_echo=$ac_try;; | |
2851 | esac | |
ec6a6fbe AK |
2852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2853 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2854 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2855 | ac_status=$? |
ec6a6fbe | 2856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2857 | (exit $ac_status); }; then |
2858 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2859 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2860 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2861 | # `rm'. | |
2862 | for ac_file in conftest.exe conftest conftest.*; do | |
2863 | test -f "$ac_file" || continue | |
2864 | case $ac_file in | |
ec6a6fbe | 2865 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2866 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2867 | break;; |
ad6254c5 AK |
2868 | * ) break;; |
2869 | esac | |
2870 | done | |
80992638 | 2871 | else |
ec6a6fbe AK |
2872 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2873 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2874 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2875 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2876 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2877 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2878 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2879 | fi |
2880 | ||
2881 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2882 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2883 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2884 | |
2885 | rm -f conftest.$ac_ext | |
2886 | EXEEXT=$ac_cv_exeext | |
2887 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2888 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2889 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2890 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2891 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2892 | else |
ad6254c5 | 2893 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2894 | /* confdefs.h. */ |
2895 | _ACEOF | |
2896 | cat confdefs.h >>conftest.$ac_ext | |
2897 | cat >>conftest.$ac_ext <<_ACEOF | |
2898 | /* end confdefs.h. */ | |
2899 | ||
2900 | int | |
2901 | main () | |
2902 | { | |
2903 | ||
2904 | ; | |
2905 | return 0; | |
2906 | } | |
2907 | _ACEOF | |
2908 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2909 | if { (ac_try="$ac_compile" |
2910 | case "(($ac_try" in | |
2911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2912 | *) ac_try_echo=$ac_try;; | |
2913 | esac | |
ec6a6fbe AK |
2914 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2915 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2916 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2917 | ac_status=$? |
ec6a6fbe | 2918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2919 | (exit $ac_status); }; then |
7a197a62 AK |
2920 | for ac_file in conftest.o conftest.obj conftest.*; do |
2921 | test -f "$ac_file" || continue; | |
ad6254c5 | 2922 | case $ac_file in |
ec6a6fbe | 2923 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2924 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2925 | break;; | |
2926 | esac | |
2927 | done | |
2928 | else | |
ec6a6fbe | 2929 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2930 | sed 's/^/| /' conftest.$ac_ext >&5 |
2931 | ||
ec6a6fbe AK |
2932 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2934 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2935 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2936 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2937 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2938 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2939 | fi |
2940 | ||
2941 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2942 | fi | |
ec6a6fbe AK |
2943 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2944 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2945 | OBJEXT=$ac_cv_objext |
2946 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2947 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2948 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2949 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2950 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2951 | else |
2952 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2953 | /* confdefs.h. */ |
2954 | _ACEOF | |
2955 | cat confdefs.h >>conftest.$ac_ext | |
2956 | cat >>conftest.$ac_ext <<_ACEOF | |
2957 | /* end confdefs.h. */ | |
2958 | ||
2959 | int | |
2960 | main () | |
2961 | { | |
2962 | #ifndef __GNUC__ | |
2963 | choke me | |
2964 | #endif | |
80992638 | 2965 | |
ad6254c5 AK |
2966 | ; |
2967 | return 0; | |
2968 | } | |
2969 | _ACEOF | |
2970 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2971 | if { (ac_try="$ac_compile" |
2972 | case "(($ac_try" in | |
2973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2974 | *) ac_try_echo=$ac_try;; | |
2975 | esac | |
ec6a6fbe AK |
2976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2977 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2978 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2979 | ac_status=$? |
8a2fc586 AK |
2980 | grep -v '^ *+' conftest.er1 >conftest.err |
2981 | rm -f conftest.er1 | |
2982 | cat conftest.err >&5 | |
ec6a6fbe | 2983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2984 | (exit $ac_status); } && { |
2985 | test -z "$ac_c_werror_flag" || | |
2986 | test ! -s conftest.err | |
2987 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2988 | ac_compiler_gnu=yes |
80992638 | 2989 | else |
ec6a6fbe | 2990 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2991 | sed 's/^/| /' conftest.$ac_ext >&5 |
2992 | ||
7a197a62 | 2993 | ac_compiler_gnu=no |
8106cdd5 | 2994 | fi |
7a197a62 AK |
2995 | |
2996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2997 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2998 | |
ad6254c5 | 2999 | fi |
ec6a6fbe AK |
3000 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3001 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3002 | if test $ac_compiler_gnu = yes; then | |
3003 | GCC=yes | |
3004 | else | |
3005 | GCC= | |
3006 | fi | |
ad6254c5 AK |
3007 | ac_test_CFLAGS=${CFLAGS+set} |
3008 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3009 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3010 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3011 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3012 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3013 | else |
7a197a62 AK |
3014 | ac_save_c_werror_flag=$ac_c_werror_flag |
3015 | ac_c_werror_flag=yes | |
3016 | ac_cv_prog_cc_g=no | |
3017 | CFLAGS="-g" | |
3018 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3019 | /* confdefs.h. */ |
3020 | _ACEOF | |
3021 | cat confdefs.h >>conftest.$ac_ext | |
3022 | cat >>conftest.$ac_ext <<_ACEOF | |
3023 | /* end confdefs.h. */ | |
3024 | ||
3025 | int | |
3026 | main () | |
3027 | { | |
3028 | ||
3029 | ; | |
3030 | return 0; | |
3031 | } | |
3032 | _ACEOF | |
3033 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3034 | if { (ac_try="$ac_compile" |
3035 | case "(($ac_try" in | |
3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3037 | *) ac_try_echo=$ac_try;; | |
3038 | esac | |
ec6a6fbe AK |
3039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3040 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3041 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3042 | ac_status=$? |
8a2fc586 AK |
3043 | grep -v '^ *+' conftest.er1 >conftest.err |
3044 | rm -f conftest.er1 | |
3045 | cat conftest.err >&5 | |
ec6a6fbe | 3046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3047 | (exit $ac_status); } && { |
3048 | test -z "$ac_c_werror_flag" || | |
3049 | test ! -s conftest.err | |
3050 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3051 | ac_cv_prog_cc_g=yes |
3052 | else | |
ec6a6fbe | 3053 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
3055 | ||
3056 | CFLAGS="" | |
3057 | cat >conftest.$ac_ext <<_ACEOF | |
3058 | /* confdefs.h. */ | |
3059 | _ACEOF | |
3060 | cat confdefs.h >>conftest.$ac_ext | |
3061 | cat >>conftest.$ac_ext <<_ACEOF | |
3062 | /* end confdefs.h. */ | |
3063 | ||
3064 | int | |
3065 | main () | |
3066 | { | |
3067 | ||
3068 | ; | |
3069 | return 0; | |
3070 | } | |
3071 | _ACEOF | |
3072 | rm -f conftest.$ac_objext | |
3073 | if { (ac_try="$ac_compile" | |
3074 | case "(($ac_try" in | |
3075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3076 | *) ac_try_echo=$ac_try;; | |
3077 | esac | |
ec6a6fbe AK |
3078 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3079 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3080 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3081 | ac_status=$? |
7a197a62 AK |
3082 | grep -v '^ *+' conftest.er1 >conftest.err |
3083 | rm -f conftest.er1 | |
3084 | cat conftest.err >&5 | |
ec6a6fbe | 3085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3086 | (exit $ac_status); } && { |
3087 | test -z "$ac_c_werror_flag" || | |
3088 | test ! -s conftest.err | |
3089 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3090 | : |
3091 | else | |
ec6a6fbe | 3092 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
3094 | ||
3095 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3096 | CFLAGS="-g" | |
3097 | cat >conftest.$ac_ext <<_ACEOF | |
3098 | /* confdefs.h. */ | |
3099 | _ACEOF | |
3100 | cat confdefs.h >>conftest.$ac_ext | |
3101 | cat >>conftest.$ac_ext <<_ACEOF | |
3102 | /* end confdefs.h. */ | |
3103 | ||
3104 | int | |
3105 | main () | |
3106 | { | |
3107 | ||
3108 | ; | |
3109 | return 0; | |
3110 | } | |
3111 | _ACEOF | |
3112 | rm -f conftest.$ac_objext | |
3113 | if { (ac_try="$ac_compile" | |
3114 | case "(($ac_try" in | |
3115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3116 | *) ac_try_echo=$ac_try;; | |
3117 | esac | |
ec6a6fbe AK |
3118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3119 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3120 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3121 | ac_status=$? |
7a197a62 AK |
3122 | grep -v '^ *+' conftest.er1 >conftest.err |
3123 | rm -f conftest.er1 | |
3124 | cat conftest.err >&5 | |
ec6a6fbe | 3125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3126 | (exit $ac_status); } && { |
3127 | test -z "$ac_c_werror_flag" || | |
3128 | test ! -s conftest.err | |
3129 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3130 | ac_cv_prog_cc_g=yes |
3131 | else | |
ec6a6fbe | 3132 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3133 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3134 | |
7a197a62 AK |
3135 | |
3136 | fi | |
3137 | ||
3138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3139 | fi | |
3140 | ||
3141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3142 | fi |
7a197a62 AK |
3143 | |
3144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3145 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3146 | fi |
ec6a6fbe AK |
3147 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3148 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3149 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3150 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3151 | elif test $ac_cv_prog_cc_g = yes; then |
3152 | if test "$GCC" = yes; then | |
3153 | CFLAGS="-g -O2" | |
3154 | else | |
3155 | CFLAGS="-g" | |
3156 | fi | |
3157 | else | |
3158 | if test "$GCC" = yes; then | |
3159 | CFLAGS="-O2" | |
3160 | else | |
3161 | CFLAGS= | |
3162 | fi | |
3163 | fi | |
ec6a6fbe AK |
3164 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3165 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3166 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3167 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3168 | else |
7a197a62 | 3169 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3170 | ac_save_CC=$CC |
3171 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3172 | /* confdefs.h. */ |
3173 | _ACEOF | |
3174 | cat confdefs.h >>conftest.$ac_ext | |
3175 | cat >>conftest.$ac_ext <<_ACEOF | |
3176 | /* end confdefs.h. */ | |
3177 | #include <stdarg.h> | |
3178 | #include <stdio.h> | |
3179 | #include <sys/types.h> | |
3180 | #include <sys/stat.h> | |
3181 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3182 | struct buf { int x; }; | |
3183 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3184 | static char *e (p, i) | |
3185 | char **p; | |
3186 | int i; | |
3187 | { | |
3188 | return p[i]; | |
3189 | } | |
3190 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3191 | { | |
3192 | char *s; | |
3193 | va_list v; | |
3194 | va_start (v,p); | |
3195 | s = g (p, va_arg (v,int)); | |
3196 | va_end (v); | |
3197 | return s; | |
3198 | } | |
8a2fc586 AK |
3199 | |
3200 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3201 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3202 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3203 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3204 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3205 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3206 | that's true only with -std. */ |
8a2fc586 AK |
3207 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3208 | ||
7a197a62 AK |
3209 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3210 | inside strings and character constants. */ | |
3211 | #define FOO(x) 'x' | |
3212 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3213 | ||
ad6254c5 AK |
3214 | int test (int i, double x); |
3215 | struct s1 {int (*f) (int a);}; | |
3216 | struct s2 {int (*f) (double a);}; | |
3217 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3218 | int argc; | |
3219 | char **argv; | |
3220 | int | |
3221 | main () | |
3222 | { | |
3223 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3224 | ; | |
3225 | return 0; | |
3226 | } | |
3227 | _ACEOF | |
7a197a62 AK |
3228 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3229 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3230 | do |
3231 | CC="$ac_save_CC $ac_arg" | |
3232 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3233 | if { (ac_try="$ac_compile" |
3234 | case "(($ac_try" in | |
3235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3236 | *) ac_try_echo=$ac_try;; | |
3237 | esac | |
ec6a6fbe AK |
3238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3239 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3240 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3241 | ac_status=$? |
8a2fc586 AK |
3242 | grep -v '^ *+' conftest.er1 >conftest.err |
3243 | rm -f conftest.er1 | |
3244 | cat conftest.err >&5 | |
ec6a6fbe | 3245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3246 | (exit $ac_status); } && { |
3247 | test -z "$ac_c_werror_flag" || | |
3248 | test ! -s conftest.err | |
3249 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3250 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3251 | else |
ec6a6fbe | 3252 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3253 | sed 's/^/| /' conftest.$ac_ext >&5 |
3254 | ||
7a197a62 | 3255 | |
ad6254c5 | 3256 | fi |
7a197a62 AK |
3257 | |
3258 | rm -f core conftest.err conftest.$ac_objext | |
3259 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3260 | done |
7a197a62 | 3261 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3262 | CC=$ac_save_CC |
3263 | ||
3264 | fi | |
7a197a62 AK |
3265 | # AC_CACHE_VAL |
3266 | case "x$ac_cv_prog_cc_c89" in | |
3267 | x) | |
ec6a6fbe AK |
3268 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3269 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3270 | xno) |
ec6a6fbe AK |
3271 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3272 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3273 | *) |
7a197a62 | 3274 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3275 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3276 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3277 | esac |
3278 | ||
ad6254c5 | 3279 | |
ad6254c5 AK |
3280 | ac_ext=c |
3281 | ac_cpp='$CPP $CPPFLAGS' | |
3282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3285 | |
d0191583 JM |
3286 | |
3287 | ||
3288 | ac_ext=c | |
3289 | ac_cpp='$CPP $CPPFLAGS' | |
3290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3293 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3294 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3295 | # On Suns, sometimes $CPP names a directory. |
3296 | if test -n "$CPP" && test -d "$CPP"; then | |
3297 | CPP= | |
3298 | fi | |
3299 | if test -z "$CPP"; then | |
3300 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3301 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3302 | else |
d0191583 JM |
3303 | # Double quotes because CPP needs to be expanded |
3304 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3305 | do | |
3306 | ac_preproc_ok=false | |
3307 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3308 | do |
d0191583 JM |
3309 | # Use a header file that comes with gcc, so configuring glibc |
3310 | # with a fresh cross-compiler works. | |
3311 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3312 | # <limits.h> exists even on freestanding compilers. | |
3313 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3314 | # not just through cpp. "Syntax error" is here to catch this case. | |
3315 | cat >conftest.$ac_ext <<_ACEOF | |
3316 | /* confdefs.h. */ | |
3317 | _ACEOF | |
3318 | cat confdefs.h >>conftest.$ac_ext | |
3319 | cat >>conftest.$ac_ext <<_ACEOF | |
3320 | /* end confdefs.h. */ | |
3321 | #ifdef __STDC__ | |
3322 | # include <limits.h> | |
3323 | #else | |
3324 | # include <assert.h> | |
3325 | #endif | |
3326 | Syntax error | |
3327 | _ACEOF | |
3328 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3329 | case "(($ac_try" in | |
3330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3331 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3332 | esac |
ec6a6fbe AK |
3333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3334 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3335 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3336 | ac_status=$? | |
3337 | grep -v '^ *+' conftest.er1 >conftest.err | |
3338 | rm -f conftest.er1 | |
3339 | cat conftest.err >&5 | |
ec6a6fbe | 3340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3341 | (exit $ac_status); } >/dev/null && { |
3342 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3343 | test ! -s conftest.err | |
3344 | }; then | |
3345 | : | |
3346 | else | |
ec6a6fbe | 3347 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3348 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3349 | |
d0191583 JM |
3350 | # Broken: fails on valid input. |
3351 | continue | |
795ca3e5 | 3352 | fi |
795ca3e5 | 3353 | |
d0191583 | 3354 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3355 | |
d0191583 JM |
3356 | # OK, works on sane cases. Now check whether nonexistent headers |
3357 | # can be detected and how. | |
3358 | cat >conftest.$ac_ext <<_ACEOF | |
3359 | /* confdefs.h. */ | |
3360 | _ACEOF | |
3361 | cat confdefs.h >>conftest.$ac_ext | |
3362 | cat >>conftest.$ac_ext <<_ACEOF | |
3363 | /* end confdefs.h. */ | |
3364 | #include <ac_nonexistent.h> | |
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;; | |
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 | # Broken: success on invalid input. | |
3384 | continue | |
3385 | else | |
ec6a6fbe | 3386 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3387 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3388 | |
d0191583 JM |
3389 | # Passes both tests. |
3390 | ac_preproc_ok=: | |
3391 | break | |
3392 | fi | |
795ca3e5 | 3393 | |
d0191583 JM |
3394 | rm -f conftest.err conftest.$ac_ext |
3395 | ||
3396 | done | |
3397 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3398 | rm -f conftest.err conftest.$ac_ext | |
3399 | if $ac_preproc_ok; then | |
3400 | break | |
795ca3e5 AK |
3401 | fi |
3402 | ||
d0191583 JM |
3403 | done |
3404 | ac_cv_prog_CPP=$CPP | |
3405 | ||
3406 | fi | |
3407 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3408 | else |
d0191583 JM |
3409 | ac_cv_prog_CPP=$CPP |
3410 | fi | |
ec6a6fbe AK |
3411 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3412 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3413 | ac_preproc_ok=false |
3414 | for ac_c_preproc_warn_flag in '' yes | |
3415 | do | |
3416 | # Use a header file that comes with gcc, so configuring glibc | |
3417 | # with a fresh cross-compiler works. | |
3418 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3419 | # <limits.h> exists even on freestanding compilers. | |
3420 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3421 | # not just through cpp. "Syntax error" is here to catch this case. | |
3422 | cat >conftest.$ac_ext <<_ACEOF | |
3423 | /* confdefs.h. */ | |
ad6254c5 | 3424 | _ACEOF |
d0191583 JM |
3425 | cat confdefs.h >>conftest.$ac_ext |
3426 | cat >>conftest.$ac_ext <<_ACEOF | |
3427 | /* end confdefs.h. */ | |
3428 | #ifdef __STDC__ | |
3429 | # include <limits.h> | |
3430 | #else | |
3431 | # include <assert.h> | |
3432 | #endif | |
3433 | Syntax error | |
3434 | _ACEOF | |
3435 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3436 | case "(($ac_try" in | |
3437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3438 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3439 | esac |
ec6a6fbe AK |
3440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3441 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3443 | ac_status=$? | |
3444 | grep -v '^ *+' conftest.er1 >conftest.err | |
3445 | rm -f conftest.er1 | |
3446 | cat conftest.err >&5 | |
ec6a6fbe | 3447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3448 | (exit $ac_status); } >/dev/null && { |
3449 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3450 | test ! -s conftest.err | |
3451 | }; then | |
3452 | : | |
795ca3e5 | 3453 | else |
ec6a6fbe | 3454 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
3456 | ||
3457 | # Broken: fails on valid input. | |
3458 | continue | |
795ca3e5 AK |
3459 | fi |
3460 | ||
d0191583 JM |
3461 | rm -f conftest.err conftest.$ac_ext |
3462 | ||
3463 | # OK, works on sane cases. Now check whether nonexistent headers | |
3464 | # can be detected and how. | |
3465 | cat >conftest.$ac_ext <<_ACEOF | |
3466 | /* confdefs.h. */ | |
3467 | _ACEOF | |
3468 | cat confdefs.h >>conftest.$ac_ext | |
3469 | cat >>conftest.$ac_ext <<_ACEOF | |
3470 | /* end confdefs.h. */ | |
3471 | #include <ac_nonexistent.h> | |
3472 | _ACEOF | |
3473 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3474 | case "(($ac_try" in | |
3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3476 | *) ac_try_echo=$ac_try;; | |
3477 | esac | |
ec6a6fbe AK |
3478 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3479 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3481 | ac_status=$? | |
3482 | grep -v '^ *+' conftest.er1 >conftest.err | |
3483 | rm -f conftest.er1 | |
3484 | cat conftest.err >&5 | |
ec6a6fbe | 3485 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3486 | (exit $ac_status); } >/dev/null && { |
3487 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3488 | test ! -s conftest.err | |
3489 | }; then | |
3490 | # Broken: success on invalid input. | |
3491 | continue | |
795ca3e5 | 3492 | else |
ec6a6fbe | 3493 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3494 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3495 | |
d0191583 JM |
3496 | # Passes both tests. |
3497 | ac_preproc_ok=: | |
3498 | break | |
795ca3e5 | 3499 | fi |
d0191583 JM |
3500 | |
3501 | rm -f conftest.err conftest.$ac_ext | |
3502 | ||
3503 | done | |
3504 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3505 | rm -f conftest.err conftest.$ac_ext | |
3506 | if $ac_preproc_ok; then | |
3507 | : | |
8106cdd5 | 3508 | else |
ec6a6fbe AK |
3509 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3511 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3512 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3513 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3514 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3515 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3516 | fi |
3517 | ||
d0191583 JM |
3518 | ac_ext=c |
3519 | ac_cpp='$CPP $CPPFLAGS' | |
3520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3523 | ||
7a197a62 | 3524 | |
ec6a6fbe AK |
3525 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3526 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3527 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3528 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3529 | else |
ec6a6fbe | 3530 | if test -z "$GREP"; then |
d0191583 | 3531 | ac_path_GREP_found=false |
ec6a6fbe AK |
3532 | # Loop through the user's path and test for each of PROGNAME-LIST |
3533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3534 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3535 | do |
3536 | IFS=$as_save_IFS | |
3537 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3538 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3539 | for ac_exec_ext in '' $ac_executable_extensions; do |
3540 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3541 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3542 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3543 | # Check for GNU $ac_path_GREP |
3544 | case `"$ac_path_GREP" --version 2>&1` in | |
3545 | *GNU*) | |
3546 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3547 | *) | |
3548 | ac_count=0 | |
ec6a6fbe | 3549 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3550 | while : |
3551 | do | |
3552 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3553 | mv "conftest.tmp" "conftest.in" | |
3554 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3555 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3556 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3557 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3558 | ac_count=`expr $ac_count + 1` | |
3559 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3560 | # Best one so far, save it but keep looking for a better one | |
3561 | ac_cv_path_GREP="$ac_path_GREP" | |
3562 | ac_path_GREP_max=$ac_count | |
3563 | fi | |
3564 | # 10*(2^10) chars as input seems more than enough | |
3565 | test $ac_count -gt 10 && break | |
3566 | done | |
3567 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3568 | esac | |
3569 | ||
ec6a6fbe AK |
3570 | $ac_path_GREP_found && break 3 |
3571 | done | |
d0191583 | 3572 | done |
ad6254c5 | 3573 | done |
7a197a62 | 3574 | IFS=$as_save_IFS |
ec6a6fbe AK |
3575 | if test -z "$ac_cv_path_GREP"; then |
3576 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3577 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3578 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3579 | fi |
80992638 | 3580 | else |
d0191583 | 3581 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3582 | fi |
8106cdd5 | 3583 | |
80992638 | 3584 | fi |
ec6a6fbe AK |
3585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3586 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3587 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3588 | |
d0191583 | 3589 | |
ec6a6fbe AK |
3590 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3591 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3592 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3593 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3594 | else |
d0191583 JM |
3595 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3596 | then ac_cv_path_EGREP="$GREP -E" | |
3597 | else | |
ec6a6fbe | 3598 | if test -z "$EGREP"; then |
d0191583 | 3599 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3600 | # Loop through the user's path and test for each of PROGNAME-LIST |
3601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3602 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3603 | do |
3604 | IFS=$as_save_IFS | |
3605 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3606 | for ac_prog in egrep; do |
ec6a6fbe AK |
3607 | for ac_exec_ext in '' $ac_executable_extensions; do |
3608 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3609 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3610 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3611 | # Check for GNU $ac_path_EGREP |
3612 | case `"$ac_path_EGREP" --version 2>&1` in | |
3613 | *GNU*) | |
3614 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3615 | *) | |
3616 | ac_count=0 | |
ec6a6fbe | 3617 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3618 | while : |
3619 | do | |
3620 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3621 | mv "conftest.tmp" "conftest.in" | |
3622 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3623 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3624 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3625 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3626 | ac_count=`expr $ac_count + 1` | |
3627 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3628 | # Best one so far, save it but keep looking for a better one | |
3629 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3630 | ac_path_EGREP_max=$ac_count | |
3631 | fi | |
3632 | # 10*(2^10) chars as input seems more than enough | |
3633 | test $ac_count -gt 10 && break | |
3634 | done | |
3635 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3636 | esac |
8a2fc586 | 3637 | |
ec6a6fbe AK |
3638 | $ac_path_EGREP_found && break 3 |
3639 | done | |
d0191583 | 3640 | done |
8a2fc586 | 3641 | done |
7a197a62 | 3642 | IFS=$as_save_IFS |
ec6a6fbe AK |
3643 | if test -z "$ac_cv_path_EGREP"; then |
3644 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3645 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3646 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3647 | fi |
d0191583 JM |
3648 | else |
3649 | ac_cv_path_EGREP=$EGREP | |
3650 | fi | |
ad6254c5 | 3651 | |
d0191583 JM |
3652 | fi |
3653 | fi | |
ec6a6fbe AK |
3654 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3655 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3656 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3657 | |
3658 | ||
d0191583 | 3659 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3660 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3661 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3662 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3663 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3664 | else |
d0191583 | 3665 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3666 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3667 | /* confdefs.h. */ |
3668 | _ACEOF | |
3669 | cat confdefs.h >>conftest.$ac_ext | |
3670 | cat >>conftest.$ac_ext <<_ACEOF | |
3671 | /* end confdefs.h. */ | |
d0191583 JM |
3672 | #include <sgtty.h> |
3673 | Autoconf TIOCGETP | |
ad6254c5 | 3674 | _ACEOF |
d0191583 JM |
3675 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3676 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3677 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3678 | else |
d0191583 | 3679 | ac_cv_prog_gcc_traditional=no |
80992638 | 3680 | fi |
d0191583 | 3681 | rm -f conftest* |
ad6254c5 | 3682 | |
8106cdd5 | 3683 | |
d0191583 JM |
3684 | if test $ac_cv_prog_gcc_traditional = no; then |
3685 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3686 | /* confdefs.h. */ |
3687 | _ACEOF | |
3688 | cat confdefs.h >>conftest.$ac_ext | |
3689 | cat >>conftest.$ac_ext <<_ACEOF | |
3690 | /* end confdefs.h. */ | |
d0191583 JM |
3691 | #include <termio.h> |
3692 | Autoconf TCGETA | |
ad6254c5 | 3693 | _ACEOF |
d0191583 JM |
3694 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3695 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3696 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3697 | fi |
d0191583 | 3698 | rm -f conftest* |
795ca3e5 | 3699 | |
d0191583 | 3700 | fi |
795ca3e5 | 3701 | fi |
ec6a6fbe AK |
3702 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3703 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3704 | if test $ac_cv_prog_gcc_traditional = yes; then |
3705 | CC="$CC -traditional" | |
3706 | fi | |
795ca3e5 AK |
3707 | fi |
3708 | ||
d0191583 JM |
3709 | # Find a good install program. We prefer a C program (faster), |
3710 | # so one script is as good as another. But avoid the broken or | |
3711 | # incompatible versions: | |
3712 | # SysV /etc/install, /usr/sbin/install | |
3713 | # SunOS /usr/etc/install | |
3714 | # IRIX /sbin/install | |
3715 | # AIX /bin/install | |
3716 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3717 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3718 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3719 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3720 | # OS/2's system install, which has a completely different semantic | |
3721 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3722 | # Reject install programs that cannot install multiple files. |
3723 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3724 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3725 | if test -z "$INSTALL"; then |
3726 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3727 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3728 | else |
d0191583 JM |
3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3730 | for as_dir in $PATH | |
3731 | do | |
3732 | IFS=$as_save_IFS | |
3733 | test -z "$as_dir" && as_dir=. | |
3734 | # Account for people who put trailing slashes in PATH elements. | |
3735 | case $as_dir/ in | |
3736 | ./ | .// | /cC/* | \ | |
3737 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3738 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3739 | /usr/ucb/* ) ;; | |
3740 | *) | |
3741 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3742 | # Don't use installbsd from OSF since it installs stuff as root | |
3743 | # by default. | |
3744 | for ac_prog in ginstall scoinst install; do | |
3745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3746 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3747 | if test $ac_prog = install && | |
3748 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3749 | # AIX install. It has an incompatible calling convention. | |
3750 | : | |
3751 | elif test $ac_prog = install && | |
3752 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3753 | # program-specific install script used by HP pwplus--don't use. | |
3754 | : | |
3755 | else | |
ec6a6fbe AK |
3756 | rm -rf conftest.one conftest.two conftest.dir |
3757 | echo one > conftest.one | |
3758 | echo two > conftest.two | |
3759 | mkdir conftest.dir | |
3760 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3761 | test -s conftest.one && test -s conftest.two && | |
3762 | test -s conftest.dir/conftest.one && | |
3763 | test -s conftest.dir/conftest.two | |
3764 | then | |
3765 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3766 | break 3 | |
3767 | fi | |
d0191583 JM |
3768 | fi |
3769 | fi | |
3770 | done | |
3771 | done | |
3772 | ;; | |
3773 | esac | |
ec6a6fbe | 3774 | |
d0191583 JM |
3775 | done |
3776 | IFS=$as_save_IFS | |
80992638 | 3777 | |
ec6a6fbe | 3778 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3779 | |
3780 | fi | |
3781 | if test "${ac_cv_path_install+set}" = set; then | |
3782 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3783 | else |
d0191583 JM |
3784 | # As a last resort, use the slow shell script. Don't cache a |
3785 | # value for INSTALL within a source directory, because that will | |
3786 | # break other packages using the cache if that directory is | |
3787 | # removed, or if the value is a relative name. | |
3788 | INSTALL=$ac_install_sh | |
7a197a62 | 3789 | fi |
d0191583 | 3790 | fi |
ec6a6fbe AK |
3791 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3792 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3793 | |
d0191583 JM |
3794 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3795 | # It thinks the first close brace ends the variable substitution. | |
3796 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3797 | |
d0191583 | 3798 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3799 | |
d0191583 JM |
3800 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3801 | ||
ec6a6fbe AK |
3802 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3803 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3804 | LN_S=$as_ln_s |
3805 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3806 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3807 | $as_echo "yes" >&6; } | |
d0191583 | 3808 | else |
ec6a6fbe AK |
3809 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3810 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3811 | fi |
d0191583 | 3812 | |
ec6a6fbe AK |
3813 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3814 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3815 | set x ${MAKE-make} | |
3816 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3817 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3818 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3819 | else |
d0191583 JM |
3820 | cat >conftest.make <<\_ACEOF |
3821 | SHELL = /bin/sh | |
3822 | all: | |
3823 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3824 | _ACEOF | |
3825 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3826 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3827 | *@@@%%%=?*=@@@%%%*) | |
3828 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3829 | *) | |
3830 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3831 | esac | |
3832 | rm -f conftest.make | |
ad6254c5 | 3833 | fi |
d0191583 | 3834 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3835 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3836 | $as_echo "yes" >&6; } | |
d0191583 JM |
3837 | SET_MAKE= |
3838 | else | |
ec6a6fbe AK |
3839 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3840 | $as_echo "no" >&6; } | |
d0191583 | 3841 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3842 | fi |
8106cdd5 | 3843 | |
ec6a6fbe AK |
3844 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3845 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3846 | if test -z "$MKDIR_P"; then |
3847 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3848 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3849 | else |
3850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3851 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3852 | do | |
3853 | IFS=$as_save_IFS | |
3854 | test -z "$as_dir" && as_dir=. | |
3855 | for ac_prog in mkdir gmkdir; do | |
3856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3857 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3858 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3859 | 'mkdir (GNU coreutils) '* | \ | |
3860 | 'mkdir (coreutils) '* | \ | |
3861 | 'mkdir (fileutils) '4.1*) | |
3862 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3863 | break 3;; | |
3864 | esac | |
3865 | done | |
3866 | done | |
3867 | done | |
3868 | IFS=$as_save_IFS | |
3869 | ||
3870 | fi | |
3871 | ||
3872 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3873 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3874 | else | |
3875 | # As a last resort, use the slow shell script. Don't cache a | |
3876 | # value for MKDIR_P within a source directory, because that will | |
3877 | # break other packages using the cache if that directory is | |
3878 | # removed, or if the value is a relative name. | |
3879 | test -d ./--version && rmdir ./--version | |
3880 | MKDIR_P="$ac_install_sh -d" | |
3881 | fi | |
3882 | fi | |
ec6a6fbe AK |
3883 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3884 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3885 | |
d0191583 JM |
3886 | if test -n "$ac_tool_prefix"; then |
3887 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3888 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3889 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3890 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3891 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3892 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3893 | else |
3894 | if test -n "$RANLIB"; then | |
3895 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3896 | else | |
3897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3898 | for as_dir in $PATH | |
3899 | do | |
3900 | IFS=$as_save_IFS | |
3901 | test -z "$as_dir" && as_dir=. | |
3902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3904 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3905 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3906 | break 2 |
3907 | fi | |
3908 | done | |
3909 | done | |
3910 | IFS=$as_save_IFS | |
8106cdd5 | 3911 | |
795ca3e5 | 3912 | fi |
d0191583 JM |
3913 | fi |
3914 | RANLIB=$ac_cv_prog_RANLIB | |
3915 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3916 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3917 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3918 | else |
ec6a6fbe AK |
3919 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3920 | $as_echo "no" >&6; } | |
d0191583 JM |
3921 | fi |
3922 | ||
8106cdd5 | 3923 | |
ad6254c5 | 3924 | fi |
d0191583 JM |
3925 | if test -z "$ac_cv_prog_RANLIB"; then |
3926 | ac_ct_RANLIB=$RANLIB | |
3927 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3928 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3929 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3930 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3931 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3932 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3933 | else |
d0191583 JM |
3934 | if test -n "$ac_ct_RANLIB"; then |
3935 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3936 | else | |
3937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3938 | for as_dir in $PATH | |
8106cdd5 | 3939 | do |
d0191583 JM |
3940 | IFS=$as_save_IFS |
3941 | test -z "$as_dir" && as_dir=. | |
3942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3944 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3945 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3946 | break 2 |
3947 | fi | |
3948 | done | |
3949 | done | |
3950 | IFS=$as_save_IFS | |
3951 | ||
3952 | fi | |
3953 | fi | |
3954 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3955 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3956 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3957 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3958 | else |
ec6a6fbe AK |
3959 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3960 | $as_echo "no" >&6; } | |
d0191583 | 3961 | fi |
ad6254c5 | 3962 | |
d0191583 JM |
3963 | if test "x$ac_ct_RANLIB" = x; then |
3964 | RANLIB=":" | |
3965 | else | |
3966 | case $cross_compiling:$ac_tool_warned in | |
3967 | yes:) | |
ec6a6fbe AK |
3968 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3969 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3970 | ac_tool_warned=yes ;; |
3971 | esac | |
3972 | RANLIB=$ac_ct_RANLIB | |
3973 | fi | |
3974 | else | |
3975 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3976 | fi |
7a197a62 | 3977 | |
d0191583 JM |
3978 | # Extract the first word of "cflow", so it can be a program name with args. |
3979 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3980 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3981 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3982 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3983 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3984 | else |
3985 | case $CFLOW_CMD in | |
3986 | [\\/]* | ?:[\\/]*) | |
3987 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3988 | ;; | |
3989 | *) | |
3990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3991 | for as_dir in $PATH | |
3992 | do | |
3993 | IFS=$as_save_IFS | |
3994 | test -z "$as_dir" && as_dir=. | |
3995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3997 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 3998 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3999 | break 2 |
4000 | fi | |
4001 | done | |
4002 | done | |
4003 | IFS=$as_save_IFS | |
ad6254c5 | 4004 | |
d0191583 | 4005 | ;; |
7a197a62 | 4006 | esac |
d0191583 JM |
4007 | fi |
4008 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4009 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4010 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4011 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4012 | else |
ec6a6fbe AK |
4013 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4014 | $as_echo "no" >&6; } | |
795ca3e5 | 4015 | fi |
7a197a62 | 4016 | |
ad6254c5 | 4017 | |
d0191583 JM |
4018 | # Extract the first word of "cscope", so it can be a program name with args. |
4019 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4020 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4021 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4022 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4023 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4024 | else |
4025 | case $CSCOPE_CMD in | |
4026 | [\\/]* | ?:[\\/]*) | |
4027 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4028 | ;; | |
4029 | *) | |
4030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4031 | for as_dir in $PATH | |
4032 | do | |
4033 | IFS=$as_save_IFS | |
4034 | test -z "$as_dir" && as_dir=. | |
4035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4037 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4038 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4039 | break 2 |
4040 | fi | |
795ca3e5 | 4041 | done |
d0191583 JM |
4042 | done |
4043 | IFS=$as_save_IFS | |
795ca3e5 | 4044 | |
d0191583 JM |
4045 | ;; |
4046 | esac | |
ad6254c5 | 4047 | fi |
d0191583 JM |
4048 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4049 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4050 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4051 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4052 | else |
ec6a6fbe AK |
4053 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4054 | $as_echo "no" >&6; } | |
795ca3e5 | 4055 | fi |
ad6254c5 | 4056 | |
7a197a62 | 4057 | |
ad6254c5 | 4058 | |
d0191583 JM |
4059 | ################################################################################ |
4060 | ||
4061 | ||
4062 | ||
4063 | ||
4064 | ||
4065 | ac_header_dirent=no | |
4066 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4067 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4068 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4069 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4071 | $as_echo_n "(cached) " >&6 |
d0191583 | 4072 | else |
ad6254c5 | 4073 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4074 | /* confdefs.h. */ |
4075 | _ACEOF | |
4076 | cat confdefs.h >>conftest.$ac_ext | |
4077 | cat >>conftest.$ac_ext <<_ACEOF | |
4078 | /* end confdefs.h. */ | |
d0191583 JM |
4079 | #include <sys/types.h> |
4080 | #include <$ac_hdr> | |
4081 | ||
4082 | int | |
4083 | main () | |
4084 | { | |
4085 | if ((DIR *) 0) | |
4086 | return 0; | |
4087 | ; | |
4088 | return 0; | |
4089 | } | |
ad6254c5 | 4090 | _ACEOF |
d0191583 JM |
4091 | rm -f conftest.$ac_objext |
4092 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4093 | case "(($ac_try" in |
4094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4095 | *) ac_try_echo=$ac_try;; | |
4096 | esac | |
ec6a6fbe AK |
4097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4098 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4099 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4100 | ac_status=$? |
4101 | grep -v '^ *+' conftest.er1 >conftest.err | |
4102 | rm -f conftest.er1 | |
4103 | cat conftest.err >&5 | |
ec6a6fbe | 4104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4105 | (exit $ac_status); } && { |
4106 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4107 | test ! -s conftest.err |
d0191583 JM |
4108 | } && test -s conftest.$ac_objext; then |
4109 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4110 | else |
ec6a6fbe | 4111 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4112 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4113 | |
d0191583 | 4114 | eval "$as_ac_Header=no" |
795ca3e5 | 4115 | fi |
7a197a62 | 4116 | |
d0191583 | 4117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4118 | fi |
ec6a6fbe AK |
4119 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4120 | $as_echo "$as_val"'` | |
4121 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4122 | $as_echo "$ac_res" >&6; } | |
4123 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4124 | $as_echo "$as_val"'` | |
4125 | if test "x$as_val" = x""yes; then | |
d0191583 | 4126 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4127 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4128 | _ACEOF |
795ca3e5 | 4129 | |
d0191583 JM |
4130 | ac_header_dirent=$ac_hdr; break |
4131 | fi | |
ad6254c5 | 4132 | |
d0191583 JM |
4133 | done |
4134 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4135 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4136 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4137 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4138 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4139 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4140 | else |
d0191583 JM |
4141 | ac_func_search_save_LIBS=$LIBS |
4142 | cat >conftest.$ac_ext <<_ACEOF | |
4143 | /* confdefs.h. */ | |
4144 | _ACEOF | |
4145 | cat confdefs.h >>conftest.$ac_ext | |
4146 | cat >>conftest.$ac_ext <<_ACEOF | |
4147 | /* end confdefs.h. */ | |
ad6254c5 | 4148 | |
d0191583 JM |
4149 | /* Override any GCC internal prototype to avoid an error. |
4150 | Use char because int might match the return type of a GCC | |
4151 | builtin and then its argument prototype would still apply. */ | |
4152 | #ifdef __cplusplus | |
4153 | extern "C" | |
4154 | #endif | |
4155 | char opendir (); | |
4156 | int | |
4157 | main () | |
4158 | { | |
4159 | return opendir (); | |
4160 | ; | |
4161 | return 0; | |
4162 | } | |
4163 | _ACEOF | |
4164 | for ac_lib in '' dir; do | |
4165 | if test -z "$ac_lib"; then | |
4166 | ac_res="none required" | |
4167 | else | |
4168 | ac_res=-l$ac_lib | |
4169 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4170 | fi | |
4171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4172 | if { (ac_try="$ac_link" | |
4173 | case "(($ac_try" in | |
4174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4175 | *) ac_try_echo=$ac_try;; | |
4176 | esac | |
ec6a6fbe AK |
4177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4178 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4179 | (eval "$ac_link") 2>conftest.er1 |
4180 | ac_status=$? | |
4181 | grep -v '^ *+' conftest.er1 >conftest.err | |
4182 | rm -f conftest.er1 | |
4183 | cat conftest.err >&5 | |
ec6a6fbe | 4184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4185 | (exit $ac_status); } && { |
4186 | test -z "$ac_c_werror_flag" || | |
4187 | test ! -s conftest.err | |
ec6a6fbe AK |
4188 | } && test -s conftest$ac_exeext && { |
4189 | test "$cross_compiling" = yes || | |
4190 | $as_test_x conftest$ac_exeext | |
4191 | }; then | |
d0191583 JM |
4192 | ac_cv_search_opendir=$ac_res |
4193 | else | |
ec6a6fbe | 4194 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4195 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4196 | |
ad6254c5 | 4197 | |
795ca3e5 | 4198 | fi |
ad6254c5 | 4199 | |
ec6a6fbe | 4200 | rm -rf conftest.dSYM |
d0191583 JM |
4201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4202 | conftest$ac_exeext | |
4203 | if test "${ac_cv_search_opendir+set}" = set; then | |
4204 | break | |
7a197a62 | 4205 | fi |
d0191583 JM |
4206 | done |
4207 | if test "${ac_cv_search_opendir+set}" = set; then | |
4208 | : | |
7a197a62 | 4209 | else |
d0191583 | 4210 | ac_cv_search_opendir=no |
7a197a62 | 4211 | fi |
d0191583 JM |
4212 | rm conftest.$ac_ext |
4213 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4214 | fi |
ec6a6fbe AK |
4215 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4216 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4217 | ac_res=$ac_cv_search_opendir |
4218 | if test "$ac_res" != no; then | |
4219 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4220 | |
d0191583 | 4221 | fi |
7a197a62 | 4222 | |
7a197a62 | 4223 | else |
ec6a6fbe AK |
4224 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4225 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4226 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4227 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4228 | else |
d0191583 JM |
4229 | ac_func_search_save_LIBS=$LIBS |
4230 | cat >conftest.$ac_ext <<_ACEOF | |
4231 | /* confdefs.h. */ | |
4232 | _ACEOF | |
4233 | cat confdefs.h >>conftest.$ac_ext | |
4234 | cat >>conftest.$ac_ext <<_ACEOF | |
4235 | /* end confdefs.h. */ | |
7a197a62 | 4236 | |
d0191583 JM |
4237 | /* Override any GCC internal prototype to avoid an error. |
4238 | Use char because int might match the return type of a GCC | |
4239 | builtin and then its argument prototype would still apply. */ | |
4240 | #ifdef __cplusplus | |
4241 | extern "C" | |
4242 | #endif | |
4243 | char opendir (); | |
4244 | int | |
4245 | main () | |
4246 | { | |
4247 | return opendir (); | |
4248 | ; | |
4249 | return 0; | |
4250 | } | |
4251 | _ACEOF | |
4252 | for ac_lib in '' x; do | |
4253 | if test -z "$ac_lib"; then | |
4254 | ac_res="none required" | |
4255 | else | |
4256 | ac_res=-l$ac_lib | |
4257 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4258 | fi | |
4259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4260 | if { (ac_try="$ac_link" | |
4261 | case "(($ac_try" in | |
4262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4263 | *) ac_try_echo=$ac_try;; | |
4264 | esac | |
ec6a6fbe AK |
4265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4266 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4267 | (eval "$ac_link") 2>conftest.er1 |
4268 | ac_status=$? | |
4269 | grep -v '^ *+' conftest.er1 >conftest.err | |
4270 | rm -f conftest.er1 | |
4271 | cat conftest.err >&5 | |
ec6a6fbe | 4272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4273 | (exit $ac_status); } && { |
4274 | test -z "$ac_c_werror_flag" || | |
4275 | test ! -s conftest.err | |
ec6a6fbe AK |
4276 | } && test -s conftest$ac_exeext && { |
4277 | test "$cross_compiling" = yes || | |
4278 | $as_test_x conftest$ac_exeext | |
4279 | }; then | |
d0191583 JM |
4280 | ac_cv_search_opendir=$ac_res |
4281 | else | |
ec6a6fbe | 4282 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4283 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4284 | |
4285 | ||
4286 | fi | |
4287 | ||
ec6a6fbe | 4288 | rm -rf conftest.dSYM |
d0191583 JM |
4289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4290 | conftest$ac_exeext | |
4291 | if test "${ac_cv_search_opendir+set}" = set; then | |
4292 | break | |
7a197a62 | 4293 | fi |
d0191583 JM |
4294 | done |
4295 | if test "${ac_cv_search_opendir+set}" = set; then | |
4296 | : | |
7a197a62 | 4297 | else |
d0191583 | 4298 | ac_cv_search_opendir=no |
7a197a62 | 4299 | fi |
d0191583 JM |
4300 | rm conftest.$ac_ext |
4301 | LIBS=$ac_func_search_save_LIBS | |
4302 | fi | |
ec6a6fbe AK |
4303 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4304 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4305 | ac_res=$ac_cv_search_opendir |
4306 | if test "$ac_res" != no; then | |
4307 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4308 | |
7a197a62 | 4309 | fi |
7a197a62 | 4310 | |
d0191583 | 4311 | fi |
7a197a62 | 4312 | |
ec6a6fbe AK |
4313 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4314 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4315 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4316 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4317 | else |
4318 | cat >conftest.$ac_ext <<_ACEOF | |
4319 | /* confdefs.h. */ | |
4320 | _ACEOF | |
4321 | cat confdefs.h >>conftest.$ac_ext | |
4322 | cat >>conftest.$ac_ext <<_ACEOF | |
4323 | /* end confdefs.h. */ | |
4324 | #include <stdlib.h> | |
4325 | #include <stdarg.h> | |
4326 | #include <string.h> | |
4327 | #include <float.h> | |
4328 | ||
4329 | int | |
4330 | main () | |
4331 | { | |
4332 | ||
4333 | ; | |
4334 | return 0; | |
4335 | } | |
4336 | _ACEOF | |
4337 | rm -f conftest.$ac_objext | |
4338 | if { (ac_try="$ac_compile" | |
4339 | case "(($ac_try" in | |
4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4341 | *) ac_try_echo=$ac_try;; | |
4342 | esac | |
ec6a6fbe AK |
4343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4344 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4345 | (eval "$ac_compile") 2>conftest.er1 |
4346 | ac_status=$? | |
4347 | grep -v '^ *+' conftest.er1 >conftest.err | |
4348 | rm -f conftest.er1 | |
4349 | cat conftest.err >&5 | |
ec6a6fbe | 4350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4351 | (exit $ac_status); } && { |
4352 | test -z "$ac_c_werror_flag" || | |
4353 | test ! -s conftest.err | |
4354 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4355 | ac_cv_header_stdc=yes |
4356 | else | |
ec6a6fbe | 4357 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4358 | sed 's/^/| /' conftest.$ac_ext >&5 |
4359 | ||
4360 | ac_cv_header_stdc=no | |
4361 | fi | |
4362 | ||
4363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4364 | ||
4365 | if test $ac_cv_header_stdc = yes; then | |
4366 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4367 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4368 | /* confdefs.h. */ |
4369 | _ACEOF | |
4370 | cat confdefs.h >>conftest.$ac_ext | |
4371 | cat >>conftest.$ac_ext <<_ACEOF | |
4372 | /* end confdefs.h. */ | |
4373 | #include <string.h> | |
8106cdd5 | 4374 | |
ad6254c5 AK |
4375 | _ACEOF |
4376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4377 | $EGREP "memchr" >/dev/null 2>&1; then | |
4378 | : | |
4379 | else | |
4380 | ac_cv_header_stdc=no | |
80992638 | 4381 | fi |
ad6254c5 | 4382 | rm -f conftest* |
795ca3e5 AK |
4383 | |
4384 | fi | |
4385 | ||
ad6254c5 AK |
4386 | if test $ac_cv_header_stdc = yes; then |
4387 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4388 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4389 | /* confdefs.h. */ |
4390 | _ACEOF | |
4391 | cat confdefs.h >>conftest.$ac_ext | |
4392 | cat >>conftest.$ac_ext <<_ACEOF | |
4393 | /* end confdefs.h. */ | |
80992638 | 4394 | #include <stdlib.h> |
ad6254c5 AK |
4395 | |
4396 | _ACEOF | |
80992638 | 4397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4398 | $EGREP "free" >/dev/null 2>&1; then |
4399 | : | |
795ca3e5 | 4400 | else |
ad6254c5 | 4401 | ac_cv_header_stdc=no |
795ca3e5 | 4402 | fi |
80992638 | 4403 | rm -f conftest* |
8106cdd5 | 4404 | |
795ca3e5 AK |
4405 | fi |
4406 | ||
ad6254c5 AK |
4407 | if test $ac_cv_header_stdc = yes; then |
4408 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4409 | if test "$cross_compiling" = yes; then | |
4410 | : | |
795ca3e5 | 4411 | else |
ad6254c5 | 4412 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4413 | /* confdefs.h. */ |
4414 | _ACEOF | |
4415 | cat confdefs.h >>conftest.$ac_ext | |
4416 | cat >>conftest.$ac_ext <<_ACEOF | |
4417 | /* end confdefs.h. */ | |
4418 | #include <ctype.h> | |
7a197a62 | 4419 | #include <stdlib.h> |
ad6254c5 AK |
4420 | #if ((' ' & 0x0FF) == 0x020) |
4421 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4422 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4423 | #else | |
4424 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4425 | (('a' <= (c) && (c) <= 'i') \ |
4426 | || ('j' <= (c) && (c) <= 'r') \ | |
4427 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4428 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4429 | #endif |
ad6254c5 AK |
4430 | |
4431 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4432 | int | |
4433 | main () | |
4434 | { | |
4435 | int i; | |
4436 | for (i = 0; i < 256; i++) | |
4437 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4438 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4439 | return 2; |
4440 | return 0; | |
ad6254c5 AK |
4441 | } |
4442 | _ACEOF | |
4443 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4444 | if { (ac_try="$ac_link" |
4445 | case "(($ac_try" in | |
4446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4447 | *) ac_try_echo=$ac_try;; | |
4448 | esac | |
ec6a6fbe AK |
4449 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4450 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4451 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4452 | ac_status=$? |
ec6a6fbe | 4453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4455 | { (case "(($ac_try" in |
4456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4457 | *) ac_try_echo=$ac_try;; | |
4458 | esac | |
ec6a6fbe AK |
4459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4460 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4461 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4462 | ac_status=$? |
ec6a6fbe | 4463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4464 | (exit $ac_status); }; }; then |
4465 | : | |
795ca3e5 | 4466 | else |
ec6a6fbe AK |
4467 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4468 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4469 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4470 | |
ad6254c5 AK |
4471 | ( exit $ac_status ) |
4472 | ac_cv_header_stdc=no | |
80992638 | 4473 | fi |
ec6a6fbe | 4474 | rm -rf conftest.dSYM |
7a197a62 | 4475 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4476 | fi |
7a197a62 AK |
4477 | |
4478 | ||
ad6254c5 AK |
4479 | fi |
4480 | fi | |
ec6a6fbe AK |
4481 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4482 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4483 | if test $ac_cv_header_stdc = yes; then |
4484 | ||
4485 | cat >>confdefs.h <<\_ACEOF | |
4486 | #define STDC_HEADERS 1 | |
4487 | _ACEOF | |
795ca3e5 AK |
4488 | |
4489 | fi | |
4490 | ||
ec6a6fbe AK |
4491 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4492 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4493 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4494 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4495 | else |
ad6254c5 | 4496 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4497 | /* confdefs.h. */ |
4498 | _ACEOF | |
4499 | cat confdefs.h >>conftest.$ac_ext | |
4500 | cat >>conftest.$ac_ext <<_ACEOF | |
4501 | /* end confdefs.h. */ | |
80992638 | 4502 | #include <sys/types.h> |
ad6254c5 AK |
4503 | #include <sys/wait.h> |
4504 | #ifndef WEXITSTATUS | |
7a197a62 | 4505 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4506 | #endif |
4507 | #ifndef WIFEXITED | |
4508 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4509 | #endif | |
4510 | ||
4511 | int | |
4512 | main () | |
4513 | { | |
4514 | int s; | |
4515 | wait (&s); | |
4516 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4517 | ; | |
4518 | return 0; | |
4519 | } | |
4520 | _ACEOF | |
4521 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4522 | if { (ac_try="$ac_compile" |
4523 | case "(($ac_try" in | |
4524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4525 | *) ac_try_echo=$ac_try;; | |
4526 | esac | |
ec6a6fbe AK |
4527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4528 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4529 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4530 | ac_status=$? |
8a2fc586 AK |
4531 | grep -v '^ *+' conftest.er1 >conftest.err |
4532 | rm -f conftest.er1 | |
4533 | cat conftest.err >&5 | |
ec6a6fbe | 4534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4535 | (exit $ac_status); } && { |
4536 | test -z "$ac_c_werror_flag" || | |
4537 | test ! -s conftest.err | |
4538 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4539 | ac_cv_header_sys_wait_h=yes |
4540 | else | |
ec6a6fbe | 4541 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4542 | sed 's/^/| /' conftest.$ac_ext >&5 |
4543 | ||
7a197a62 | 4544 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4545 | fi |
7a197a62 AK |
4546 | |
4547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4548 | fi |
ec6a6fbe AK |
4549 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4550 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4551 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4552 | |
ad6254c5 AK |
4553 | cat >>confdefs.h <<\_ACEOF |
4554 | #define HAVE_SYS_WAIT_H 1 | |
4555 | _ACEOF | |
795ca3e5 AK |
4556 | |
4557 | fi | |
4558 | ||
ec6a6fbe AK |
4559 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4560 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4561 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4562 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4563 | else |
ad6254c5 | 4564 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4565 | /* confdefs.h. */ |
4566 | _ACEOF | |
4567 | cat confdefs.h >>conftest.$ac_ext | |
4568 | cat >>conftest.$ac_ext <<_ACEOF | |
4569 | /* end confdefs.h. */ | |
795ca3e5 AK |
4570 | #include <sys/types.h> |
4571 | #include <sys/time.h> | |
4572 | #include <time.h> | |
ad6254c5 AK |
4573 | |
4574 | int | |
4575 | main () | |
4576 | { | |
4577 | if ((struct tm *) 0) | |
4578 | return 0; | |
4579 | ; | |
4580 | return 0; | |
4581 | } | |
4582 | _ACEOF | |
4583 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4584 | if { (ac_try="$ac_compile" |
4585 | case "(($ac_try" in | |
4586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4587 | *) ac_try_echo=$ac_try;; | |
4588 | esac | |
ec6a6fbe AK |
4589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4590 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4591 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4592 | ac_status=$? |
8a2fc586 AK |
4593 | grep -v '^ *+' conftest.er1 >conftest.err |
4594 | rm -f conftest.er1 | |
4595 | cat conftest.err >&5 | |
ec6a6fbe | 4596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4597 | (exit $ac_status); } && { |
4598 | test -z "$ac_c_werror_flag" || | |
4599 | test ! -s conftest.err | |
4600 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4601 | ac_cv_header_time=yes |
4602 | else | |
ec6a6fbe | 4603 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4604 | sed 's/^/| /' conftest.$ac_ext >&5 |
4605 | ||
7a197a62 | 4606 | ac_cv_header_time=no |
795ca3e5 | 4607 | fi |
7a197a62 AK |
4608 | |
4609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4610 | fi |
ec6a6fbe AK |
4611 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4612 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4613 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4614 | |
4615 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4616 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4617 | _ACEOF |
b896caa1 | 4618 | |
8106cdd5 | 4619 | fi |
b896caa1 | 4620 | |
b896caa1 | 4621 | |
d0191583 JM |
4622 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4623 | ||
4624 | ||
4625 | ||
4626 | ||
4627 | ||
4628 | ||
4629 | ||
4630 | ||
4631 | ||
4632 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4633 | inttypes.h stdint.h unistd.h | |
4634 | do | |
ec6a6fbe AK |
4635 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4636 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4637 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4639 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4640 | else |
4641 | cat >conftest.$ac_ext <<_ACEOF | |
4642 | /* confdefs.h. */ | |
4643 | _ACEOF | |
4644 | cat confdefs.h >>conftest.$ac_ext | |
4645 | cat >>conftest.$ac_ext <<_ACEOF | |
4646 | /* end confdefs.h. */ | |
4647 | $ac_includes_default | |
4648 | ||
4649 | #include <$ac_header> | |
4650 | _ACEOF | |
4651 | rm -f conftest.$ac_objext | |
4652 | if { (ac_try="$ac_compile" | |
4653 | case "(($ac_try" in | |
4654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4655 | *) ac_try_echo=$ac_try;; | |
4656 | esac | |
ec6a6fbe AK |
4657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4658 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4659 | (eval "$ac_compile") 2>conftest.er1 |
4660 | ac_status=$? | |
4661 | grep -v '^ *+' conftest.er1 >conftest.err | |
4662 | rm -f conftest.er1 | |
4663 | cat conftest.err >&5 | |
ec6a6fbe | 4664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4665 | (exit $ac_status); } && { |
4666 | test -z "$ac_c_werror_flag" || | |
4667 | test ! -s conftest.err | |
4668 | } && test -s conftest.$ac_objext; then | |
4669 | eval "$as_ac_Header=yes" | |
4670 | else | |
ec6a6fbe | 4671 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4672 | sed 's/^/| /' conftest.$ac_ext >&5 |
4673 | ||
4674 | eval "$as_ac_Header=no" | |
4675 | fi | |
4676 | ||
4677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4678 | fi | |
ec6a6fbe AK |
4679 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4680 | $as_echo "$as_val"'` | |
4681 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4682 | $as_echo "$ac_res" >&6; } | |
4683 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4684 | $as_echo "$as_val"'` | |
4685 | if test "x$as_val" = x""yes; then | |
d0191583 | 4686 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4687 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4688 | _ACEOF |
4689 | ||
4690 | fi | |
4691 | ||
4692 | done | |
4693 | ||
b896caa1 | 4694 | |
b896caa1 AK |
4695 | |
4696 | ||
795ca3e5 | 4697 | |
8106cdd5 | 4698 | |
80992638 | 4699 | |
795ca3e5 | 4700 | |
a38df97f | 4701 | |
80992638 | 4702 | |
d0191583 JM |
4703 | |
4704 | ||
4705 | ||
4706 | ||
4707 | ||
4708 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4709 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4710 | do |
ec6a6fbe | 4711 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4712 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4713 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4714 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4715 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4716 | $as_echo_n "(cached) " >&6 |
d0191583 | 4717 | fi |
ec6a6fbe AK |
4718 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4719 | $as_echo "$as_val"'` | |
4720 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4721 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4722 | else |
d0191583 | 4723 | # Is the header compilable? |
ec6a6fbe AK |
4724 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4725 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4726 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4727 | /* confdefs.h. */ |
4728 | _ACEOF | |
4729 | cat confdefs.h >>conftest.$ac_ext | |
4730 | cat >>conftest.$ac_ext <<_ACEOF | |
4731 | /* end confdefs.h. */ | |
4732 | $ac_includes_default | |
ad6254c5 AK |
4733 | #include <$ac_header> |
4734 | _ACEOF | |
4735 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4736 | if { (ac_try="$ac_compile" |
4737 | case "(($ac_try" in | |
4738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4739 | *) ac_try_echo=$ac_try;; | |
4740 | esac | |
ec6a6fbe AK |
4741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4742 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4743 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4744 | ac_status=$? |
8a2fc586 AK |
4745 | grep -v '^ *+' conftest.er1 >conftest.err |
4746 | rm -f conftest.er1 | |
4747 | cat conftest.err >&5 | |
ec6a6fbe | 4748 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4749 | (exit $ac_status); } && { |
4750 | test -z "$ac_c_werror_flag" || | |
4751 | test ! -s conftest.err | |
4752 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4753 | ac_header_compiler=yes |
ad6254c5 | 4754 | else |
ec6a6fbe | 4755 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4756 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4757 | |
d0191583 | 4758 | ac_header_compiler=no |
ad6254c5 | 4759 | fi |
7a197a62 AK |
4760 | |
4761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4762 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4763 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4764 | |
4765 | # Is the header present? | |
ec6a6fbe AK |
4766 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4767 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4768 | cat >conftest.$ac_ext <<_ACEOF |
4769 | /* confdefs.h. */ | |
4770 | _ACEOF | |
4771 | cat confdefs.h >>conftest.$ac_ext | |
4772 | cat >>conftest.$ac_ext <<_ACEOF | |
4773 | /* end confdefs.h. */ | |
4774 | #include <$ac_header> | |
4775 | _ACEOF | |
4776 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4777 | case "(($ac_try" in | |
4778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4779 | *) ac_try_echo=$ac_try;; | |
4780 | esac | |
ec6a6fbe AK |
4781 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4782 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4783 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4784 | ac_status=$? | |
4785 | grep -v '^ *+' conftest.er1 >conftest.err | |
4786 | rm -f conftest.er1 | |
4787 | cat conftest.err >&5 | |
ec6a6fbe | 4788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4789 | (exit $ac_status); } >/dev/null && { |
4790 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4791 | test ! -s conftest.err | |
4792 | }; then | |
4793 | ac_header_preproc=yes | |
4794 | else | |
ec6a6fbe | 4795 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4796 | sed 's/^/| /' conftest.$ac_ext >&5 |
4797 | ||
4798 | ac_header_preproc=no | |
4799 | fi | |
4800 | ||
4801 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4802 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4803 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4804 | |
4805 | # So? What about this header? | |
4806 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4807 | yes:no: ) | |
ec6a6fbe AK |
4808 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4809 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4810 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4811 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4812 | ac_header_preproc=yes |
4813 | ;; | |
4814 | no:yes:* ) | |
ec6a6fbe AK |
4815 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4816 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4817 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4818 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4819 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4820 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4821 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4822 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4823 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4824 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4825 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4826 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4827 | |
4828 | ;; | |
4829 | esac | |
ec6a6fbe AK |
4830 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4831 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4832 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4833 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4834 | else |
4835 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4836 | fi |
ec6a6fbe AK |
4837 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4838 | $as_echo "$as_val"'` | |
4839 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4840 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4841 | |
4842 | fi | |
ec6a6fbe AK |
4843 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4844 | $as_echo "$as_val"'` | |
4845 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4846 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4847 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4848 | _ACEOF |
a38df97f | 4849 | |
d0191583 | 4850 | else |
ec6a6fbe AK |
4851 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4852 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4853 | { (exit 1); exit 1; }; } |
80992638 AK |
4854 | fi |
4855 | ||
ad6254c5 AK |
4856 | done |
4857 | ||
7d1552c9 | 4858 | |
d0191583 JM |
4859 | case "$host_os" in |
4860 | linux*) | |
7d1552c9 | 4861 | |
80992638 | 4862 | |
5a52dca9 | 4863 | |
d0191583 | 4864 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4865 | do |
ec6a6fbe | 4866 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4867 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4868 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4869 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4870 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4871 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4872 | fi |
ec6a6fbe AK |
4873 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4874 | $as_echo "$as_val"'` | |
4875 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4876 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4877 | else |
4878 | # Is the header compilable? | |
ec6a6fbe AK |
4879 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4880 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4881 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4882 | /* confdefs.h. */ |
4883 | _ACEOF | |
4884 | cat confdefs.h >>conftest.$ac_ext | |
4885 | cat >>conftest.$ac_ext <<_ACEOF | |
4886 | /* end confdefs.h. */ | |
4887 | $ac_includes_default | |
4888 | #include <$ac_header> | |
4889 | _ACEOF | |
4890 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4891 | if { (ac_try="$ac_compile" |
4892 | case "(($ac_try" in | |
4893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4894 | *) ac_try_echo=$ac_try;; | |
4895 | esac | |
ec6a6fbe AK |
4896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4897 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4898 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4899 | ac_status=$? |
8a2fc586 AK |
4900 | grep -v '^ *+' conftest.er1 >conftest.err |
4901 | rm -f conftest.er1 | |
4902 | cat conftest.err >&5 | |
ec6a6fbe | 4903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4904 | (exit $ac_status); } && { |
4905 | test -z "$ac_c_werror_flag" || | |
4906 | test ! -s conftest.err | |
4907 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4908 | ac_header_compiler=yes |
4909 | else | |
ec6a6fbe | 4910 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4911 | sed 's/^/| /' conftest.$ac_ext >&5 |
4912 | ||
4913 | ac_header_compiler=no | |
4914 | fi | |
4915 | ||
4916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4917 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4918 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4919 | |
4920 | # Is the header present? | |
ec6a6fbe AK |
4921 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4922 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4923 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4924 | /* confdefs.h. */ |
4925 | _ACEOF | |
4926 | cat confdefs.h >>conftest.$ac_ext | |
4927 | cat >>conftest.$ac_ext <<_ACEOF | |
4928 | /* end confdefs.h. */ | |
4929 | #include <$ac_header> | |
4930 | _ACEOF | |
7a197a62 AK |
4931 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4932 | case "(($ac_try" in | |
4933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4934 | *) ac_try_echo=$ac_try;; | |
4935 | esac | |
ec6a6fbe AK |
4936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4937 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4938 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4939 | ac_status=$? |
4940 | grep -v '^ *+' conftest.er1 >conftest.err | |
4941 | rm -f conftest.er1 | |
4942 | cat conftest.err >&5 | |
ec6a6fbe | 4943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4944 | (exit $ac_status); } >/dev/null && { |
4945 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4946 | test ! -s conftest.err | |
4947 | }; then | |
ad6254c5 AK |
4948 | ac_header_preproc=yes |
4949 | else | |
ec6a6fbe | 4950 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4951 | sed 's/^/| /' conftest.$ac_ext >&5 |
4952 | ||
4953 | ac_header_preproc=no | |
4954 | fi | |
7a197a62 | 4955 | |
ad6254c5 | 4956 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4957 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4958 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4959 | |
4960 | # So? What about this header? | |
8a2fc586 AK |
4961 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4962 | yes:no: ) | |
ec6a6fbe AK |
4963 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4964 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4965 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4966 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4967 | ac_header_preproc=yes |
ad6254c5 | 4968 | ;; |
8a2fc586 | 4969 | no:yes:* ) |
ec6a6fbe AK |
4970 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4971 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4972 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4973 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4974 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4975 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4976 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4977 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4978 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4979 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4980 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4981 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4982 | |
ad6254c5 AK |
4983 | ;; |
4984 | esac | |
ec6a6fbe AK |
4985 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4986 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4988 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4989 | else |
8a2fc586 | 4990 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4991 | fi |
ec6a6fbe AK |
4992 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4993 | $as_echo "$as_val"'` | |
4994 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4995 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4996 | |
4997 | fi | |
ec6a6fbe AK |
4998 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4999 | $as_echo "$as_val"'` | |
5000 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5001 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5002 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5003 | _ACEOF |
b896caa1 | 5004 | |
d8ac0fbc | 5005 | else |
ec6a6fbe AK |
5006 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5007 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5008 | { (exit 1); exit 1; }; } |
80992638 AK |
5009 | fi |
5010 | ||
ad6254c5 | 5011 | done |
d0191583 JM |
5012 | ;; |
5013 | darwin*) | |
d8ac0fbc | 5014 | |
d8ac0fbc | 5015 | |
d0191583 | 5016 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5017 | do |
ec6a6fbe | 5018 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5019 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5020 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5021 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5022 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5023 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5024 | fi |
ec6a6fbe AK |
5025 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5026 | $as_echo "$as_val"'` | |
5027 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5028 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5029 | else |
5030 | # Is the header compilable? | |
ec6a6fbe AK |
5031 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5032 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5033 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5034 | /* confdefs.h. */ |
5035 | _ACEOF | |
5036 | cat confdefs.h >>conftest.$ac_ext | |
5037 | cat >>conftest.$ac_ext <<_ACEOF | |
5038 | /* end confdefs.h. */ | |
5039 | $ac_includes_default | |
5040 | #include <$ac_header> | |
5041 | _ACEOF | |
5042 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5043 | if { (ac_try="$ac_compile" |
5044 | case "(($ac_try" in | |
5045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5046 | *) ac_try_echo=$ac_try;; | |
5047 | esac | |
ec6a6fbe AK |
5048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5049 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5050 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5051 | ac_status=$? |
8a2fc586 AK |
5052 | grep -v '^ *+' conftest.er1 >conftest.err |
5053 | rm -f conftest.er1 | |
5054 | cat conftest.err >&5 | |
ec6a6fbe | 5055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5056 | (exit $ac_status); } && { |
5057 | test -z "$ac_c_werror_flag" || | |
5058 | test ! -s conftest.err | |
5059 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5060 | ac_header_compiler=yes |
5061 | else | |
ec6a6fbe | 5062 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5063 | sed 's/^/| /' conftest.$ac_ext >&5 |
5064 | ||
7a197a62 | 5065 | ac_header_compiler=no |
ad6254c5 | 5066 | fi |
7a197a62 AK |
5067 | |
5068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5069 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5070 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5071 | |
5072 | # Is the header present? | |
ec6a6fbe AK |
5073 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5074 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5075 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5076 | /* confdefs.h. */ |
5077 | _ACEOF | |
5078 | cat confdefs.h >>conftest.$ac_ext | |
5079 | cat >>conftest.$ac_ext <<_ACEOF | |
5080 | /* end confdefs.h. */ | |
5081 | #include <$ac_header> | |
5082 | _ACEOF | |
7a197a62 AK |
5083 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5084 | case "(($ac_try" in | |
5085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5086 | *) ac_try_echo=$ac_try;; | |
5087 | esac | |
ec6a6fbe AK |
5088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5089 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5091 | ac_status=$? |
5092 | grep -v '^ *+' conftest.er1 >conftest.err | |
5093 | rm -f conftest.er1 | |
5094 | cat conftest.err >&5 | |
ec6a6fbe | 5095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5096 | (exit $ac_status); } >/dev/null && { |
5097 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5098 | test ! -s conftest.err | |
5099 | }; then | |
ad6254c5 AK |
5100 | ac_header_preproc=yes |
5101 | else | |
ec6a6fbe | 5102 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5103 | sed 's/^/| /' conftest.$ac_ext >&5 |
5104 | ||
5105 | ac_header_preproc=no | |
5106 | fi | |
7a197a62 | 5107 | |
ad6254c5 | 5108 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5109 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5110 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5111 | |
5112 | # So? What about this header? | |
8a2fc586 AK |
5113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5114 | yes:no: ) | |
ec6a6fbe AK |
5115 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5116 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5117 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5118 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5119 | ac_header_preproc=yes |
ad6254c5 | 5120 | ;; |
8a2fc586 | 5121 | no:yes:* ) |
ec6a6fbe AK |
5122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5123 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5125 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5126 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5127 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5128 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5129 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5130 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5131 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5133 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5134 | |
ad6254c5 AK |
5135 | ;; |
5136 | esac | |
ec6a6fbe AK |
5137 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5138 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5140 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5141 | else |
8a2fc586 | 5142 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5143 | fi |
ec6a6fbe AK |
5144 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5145 | $as_echo "$as_val"'` | |
5146 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5147 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5148 | |
5149 | fi | |
ec6a6fbe AK |
5150 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5151 | $as_echo "$as_val"'` | |
5152 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5153 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5154 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5155 | _ACEOF |
4922197a | 5156 | |
4922197a | 5157 | else |
ec6a6fbe AK |
5158 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5159 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5160 | { (exit 1); exit 1; }; } |
80992638 AK |
5161 | fi |
5162 | ||
ad6254c5 | 5163 | done |
d0191583 JM |
5164 | ;; |
5165 | esac | |
4922197a | 5166 | |
4922197a | 5167 | |
4922197a | 5168 | |
ad6254c5 AK |
5169 | |
5170 | ||
d0191583 JM |
5171 | |
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
5177 | ||
5178 | ||
5179 | ||
5180 | ||
5181 | ||
5182 | ||
5183 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5184 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5185 | sys/types.h unistd.h | |
ad6254c5 | 5186 | do |
ec6a6fbe | 5187 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5189 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5190 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5191 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5192 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5193 | fi |
ec6a6fbe AK |
5194 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5195 | $as_echo "$as_val"'` | |
5196 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5197 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5198 | else |
ad6254c5 | 5199 | # Is the header compilable? |
ec6a6fbe AK |
5200 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5201 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5202 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5203 | /* confdefs.h. */ |
5204 | _ACEOF | |
5205 | cat confdefs.h >>conftest.$ac_ext | |
5206 | cat >>conftest.$ac_ext <<_ACEOF | |
5207 | /* end confdefs.h. */ | |
5208 | $ac_includes_default | |
5209 | #include <$ac_header> | |
5210 | _ACEOF | |
5211 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5212 | if { (ac_try="$ac_compile" |
5213 | case "(($ac_try" in | |
5214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5215 | *) ac_try_echo=$ac_try;; | |
5216 | esac | |
ec6a6fbe AK |
5217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5218 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5219 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5220 | ac_status=$? |
8a2fc586 AK |
5221 | grep -v '^ *+' conftest.er1 >conftest.err |
5222 | rm -f conftest.er1 | |
5223 | cat conftest.err >&5 | |
ec6a6fbe | 5224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5225 | (exit $ac_status); } && { |
5226 | test -z "$ac_c_werror_flag" || | |
5227 | test ! -s conftest.err | |
5228 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5229 | ac_header_compiler=yes |
5230 | else | |
ec6a6fbe | 5231 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5232 | sed 's/^/| /' conftest.$ac_ext >&5 |
5233 | ||
7a197a62 | 5234 | ac_header_compiler=no |
ad6254c5 | 5235 | fi |
7a197a62 AK |
5236 | |
5237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5238 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5239 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5240 | |
5241 | # Is the header present? | |
ec6a6fbe AK |
5242 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5243 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5244 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5245 | /* confdefs.h. */ |
5246 | _ACEOF | |
5247 | cat confdefs.h >>conftest.$ac_ext | |
5248 | cat >>conftest.$ac_ext <<_ACEOF | |
5249 | /* end confdefs.h. */ | |
5250 | #include <$ac_header> | |
5251 | _ACEOF | |
7a197a62 AK |
5252 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5253 | case "(($ac_try" in | |
5254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5255 | *) ac_try_echo=$ac_try;; | |
5256 | esac | |
ec6a6fbe AK |
5257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5258 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5259 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5260 | ac_status=$? |
5261 | grep -v '^ *+' conftest.er1 >conftest.err | |
5262 | rm -f conftest.er1 | |
5263 | cat conftest.err >&5 | |
ec6a6fbe | 5264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5265 | (exit $ac_status); } >/dev/null && { |
5266 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5267 | test ! -s conftest.err | |
5268 | }; then | |
ad6254c5 AK |
5269 | ac_header_preproc=yes |
5270 | else | |
ec6a6fbe | 5271 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5272 | sed 's/^/| /' conftest.$ac_ext >&5 |
5273 | ||
5274 | ac_header_preproc=no | |
5275 | fi | |
7a197a62 | 5276 | |
ad6254c5 | 5277 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5278 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5279 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5280 | |
5281 | # So? What about this header? | |
8a2fc586 AK |
5282 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5283 | yes:no: ) | |
ec6a6fbe AK |
5284 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5285 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5286 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5287 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5288 | ac_header_preproc=yes |
ad6254c5 | 5289 | ;; |
8a2fc586 | 5290 | no:yes:* ) |
ec6a6fbe AK |
5291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5292 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5294 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5295 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5296 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5298 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5300 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5302 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5303 | |
ad6254c5 AK |
5304 | ;; |
5305 | esac | |
ec6a6fbe AK |
5306 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5307 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5309 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5310 | else |
8a2fc586 | 5311 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5312 | fi |
ec6a6fbe AK |
5313 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5314 | $as_echo "$as_val"'` | |
5315 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5316 | $as_echo "$ac_res" >&6; } | |
80992638 | 5317 | |
ad6254c5 | 5318 | fi |
ec6a6fbe AK |
5319 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5320 | $as_echo "$as_val"'` | |
5321 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5322 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5323 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5324 | _ACEOF |
795ca3e5 | 5325 | |
795ca3e5 | 5326 | else |
ec6a6fbe AK |
5327 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5328 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5329 | { (exit 1); exit 1; }; } |
80992638 AK |
5330 | fi |
5331 | ||
ad6254c5 | 5332 | done |
ad6254c5 | 5333 | |
795ca3e5 | 5334 | |
d0191583 JM |
5335 | |
5336 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5337 | do |
ec6a6fbe | 5338 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5339 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5340 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5341 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5342 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5343 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5344 | fi |
ec6a6fbe AK |
5345 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5346 | $as_echo "$as_val"'` | |
5347 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5348 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5349 | else |
5350 | # Is the header compilable? | |
ec6a6fbe AK |
5351 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5352 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5353 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5354 | /* confdefs.h. */ |
5355 | _ACEOF | |
5356 | cat confdefs.h >>conftest.$ac_ext | |
5357 | cat >>conftest.$ac_ext <<_ACEOF | |
5358 | /* end confdefs.h. */ | |
5359 | $ac_includes_default | |
5360 | #include <$ac_header> | |
5361 | _ACEOF | |
5362 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5363 | if { (ac_try="$ac_compile" |
5364 | case "(($ac_try" in | |
5365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5366 | *) ac_try_echo=$ac_try;; | |
5367 | esac | |
ec6a6fbe AK |
5368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5369 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5370 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5371 | ac_status=$? |
8a2fc586 AK |
5372 | grep -v '^ *+' conftest.er1 >conftest.err |
5373 | rm -f conftest.er1 | |
5374 | cat conftest.err >&5 | |
ec6a6fbe | 5375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5376 | (exit $ac_status); } && { |
5377 | test -z "$ac_c_werror_flag" || | |
5378 | test ! -s conftest.err | |
5379 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5380 | ac_header_compiler=yes |
5381 | else | |
ec6a6fbe | 5382 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5383 | sed 's/^/| /' conftest.$ac_ext >&5 |
5384 | ||
7a197a62 | 5385 | ac_header_compiler=no |
ad6254c5 | 5386 | fi |
7a197a62 AK |
5387 | |
5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5389 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5390 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5391 | |
5392 | # Is the header present? | |
ec6a6fbe AK |
5393 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5394 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5395 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5396 | /* confdefs.h. */ |
5397 | _ACEOF | |
5398 | cat confdefs.h >>conftest.$ac_ext | |
5399 | cat >>conftest.$ac_ext <<_ACEOF | |
5400 | /* end confdefs.h. */ | |
5401 | #include <$ac_header> | |
5402 | _ACEOF | |
7a197a62 AK |
5403 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5404 | case "(($ac_try" in | |
5405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5406 | *) ac_try_echo=$ac_try;; | |
5407 | esac | |
ec6a6fbe AK |
5408 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5409 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5410 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5411 | ac_status=$? |
5412 | grep -v '^ *+' conftest.er1 >conftest.err | |
5413 | rm -f conftest.er1 | |
5414 | cat conftest.err >&5 | |
ec6a6fbe | 5415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5416 | (exit $ac_status); } >/dev/null && { |
5417 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5418 | test ! -s conftest.err | |
5419 | }; then | |
ad6254c5 AK |
5420 | ac_header_preproc=yes |
5421 | else | |
ec6a6fbe | 5422 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5423 | sed 's/^/| /' conftest.$ac_ext >&5 |
5424 | ||
5425 | ac_header_preproc=no | |
5426 | fi | |
7a197a62 | 5427 | |
ad6254c5 | 5428 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5429 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5430 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5431 | |
5432 | # So? What about this header? | |
8a2fc586 AK |
5433 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5434 | yes:no: ) | |
ec6a6fbe AK |
5435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5436 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5437 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5438 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5439 | ac_header_preproc=yes |
ad6254c5 | 5440 | ;; |
8a2fc586 | 5441 | no:yes:* ) |
ec6a6fbe AK |
5442 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5443 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5445 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5447 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5449 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5450 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5451 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5452 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5453 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5454 | |
ad6254c5 AK |
5455 | ;; |
5456 | esac | |
ec6a6fbe AK |
5457 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5458 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5459 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5460 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5461 | else |
8a2fc586 | 5462 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5463 | fi |
ec6a6fbe AK |
5464 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5465 | $as_echo "$as_val"'` | |
5466 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5467 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5468 | |
ad6254c5 | 5469 | fi |
ec6a6fbe AK |
5470 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5471 | $as_echo "$as_val"'` | |
5472 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5473 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5474 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5475 | _ACEOF |
5476 | ||
80992638 AK |
5477 | fi |
5478 | ||
ad6254c5 | 5479 | done |
d0191583 | 5480 | |
d3c8211f | 5481 | |
80992638 | 5482 | ################################################################################ |
ec6a6fbe AK |
5483 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5484 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5485 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5486 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5487 | else |
ad6254c5 | 5488 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5489 | /* confdefs.h. */ |
5490 | _ACEOF | |
5491 | cat confdefs.h >>conftest.$ac_ext | |
5492 | cat >>conftest.$ac_ext <<_ACEOF | |
5493 | /* end confdefs.h. */ | |
5494 | ||
5495 | int | |
5496 | main () | |
5497 | { | |
5498 | /* FIXME: Include the comments suggested by Paul. */ | |
5499 | #ifndef __cplusplus | |
5500 | /* Ultrix mips cc rejects this. */ | |
5501 | typedef int charset[2]; | |
25fbec5b | 5502 | const charset cs; |
ad6254c5 | 5503 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5504 | char const *const *pcpcc; |
5505 | char **ppc; | |
ad6254c5 AK |
5506 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5507 | struct point {int x, y;}; | |
5508 | static struct point const zero = {0,0}; | |
5509 | /* AIX XL C 1.02.0.0 rejects this. | |
5510 | It does not let you subtract one const X* pointer from another in | |
5511 | an arm of an if-expression whose if-part is not a constant | |
5512 | expression */ | |
5513 | const char *g = "string"; | |
25fbec5b | 5514 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5515 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5516 | ++pcpcc; |
5517 | ppc = (char**) pcpcc; | |
5518 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5519 | { /* SCO 3.2v4 cc rejects this. */ |
5520 | char *t; | |
5521 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5522 | ||
5523 | *t++ = 0; | |
7a197a62 | 5524 | if (s) return 0; |
ad6254c5 AK |
5525 | } |
5526 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5527 | int x[] = {25, 17}; | |
5528 | const int *foo = &x[0]; | |
5529 | ++foo; | |
5530 | } | |
5531 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5532 | typedef const int *iptr; | |
5533 | iptr p = 0; | |
5534 | ++p; | |
5535 | } | |
5536 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5537 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5538 | struct s { int j; const int *ap[3]; }; | |
5539 | struct s *b; b->j = 5; | |
5540 | } | |
5541 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5542 | const int foo = 10; | |
7a197a62 | 5543 | if (!foo) return 0; |
ad6254c5 | 5544 | } |
25fbec5b | 5545 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5546 | #endif |
5547 | ||
5548 | ; | |
5549 | return 0; | |
5550 | } | |
5551 | _ACEOF | |
5552 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5553 | if { (ac_try="$ac_compile" |
5554 | case "(($ac_try" in | |
5555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5556 | *) ac_try_echo=$ac_try;; | |
5557 | esac | |
ec6a6fbe AK |
5558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5559 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5560 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5561 | ac_status=$? |
8a2fc586 AK |
5562 | grep -v '^ *+' conftest.er1 >conftest.err |
5563 | rm -f conftest.er1 | |
5564 | cat conftest.err >&5 | |
ec6a6fbe | 5565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5566 | (exit $ac_status); } && { |
5567 | test -z "$ac_c_werror_flag" || | |
5568 | test ! -s conftest.err | |
5569 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5570 | ac_cv_c_const=yes |
5571 | else | |
ec6a6fbe | 5572 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5573 | sed 's/^/| /' conftest.$ac_ext >&5 |
5574 | ||
7a197a62 | 5575 | ac_cv_c_const=no |
ad6254c5 | 5576 | fi |
7a197a62 AK |
5577 | |
5578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5579 | fi |
ec6a6fbe AK |
5580 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5581 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5582 | if test $ac_cv_c_const = no; then |
80992638 | 5583 | |
ad6254c5 | 5584 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5585 | #define const /**/ |
ad6254c5 | 5586 | _ACEOF |
80992638 | 5587 | |
d3c8211f | 5588 | fi |
d3c8211f | 5589 | |
ec6a6fbe AK |
5590 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5591 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5592 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5593 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5594 | else |
ad6254c5 AK |
5595 | ac_cv_c_inline=no |
5596 | for ac_kw in inline __inline__ __inline; do | |
5597 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5598 | /* confdefs.h. */ |
5599 | _ACEOF | |
5600 | cat confdefs.h >>conftest.$ac_ext | |
5601 | cat >>conftest.$ac_ext <<_ACEOF | |
5602 | /* end confdefs.h. */ | |
5603 | #ifndef __cplusplus | |
5604 | typedef int foo_t; | |
5605 | static $ac_kw foo_t static_foo () {return 0; } | |
5606 | $ac_kw foo_t foo () {return 0; } | |
5607 | #endif | |
80992638 | 5608 | |
ad6254c5 AK |
5609 | _ACEOF |
5610 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5611 | if { (ac_try="$ac_compile" |
5612 | case "(($ac_try" in | |
5613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5614 | *) ac_try_echo=$ac_try;; | |
5615 | esac | |
ec6a6fbe AK |
5616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5617 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5618 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5619 | ac_status=$? |
8a2fc586 AK |
5620 | grep -v '^ *+' conftest.er1 >conftest.err |
5621 | rm -f conftest.er1 | |
5622 | cat conftest.err >&5 | |
ec6a6fbe | 5623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5624 | (exit $ac_status); } && { |
5625 | test -z "$ac_c_werror_flag" || | |
5626 | test ! -s conftest.err | |
5627 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5628 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5629 | else |
ec6a6fbe | 5630 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5631 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5632 | |
7a197a62 | 5633 | |
8ce0cbda | 5634 | fi |
7a197a62 AK |
5635 | |
5636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5637 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5638 | done |
8ce0cbda | 5639 | |
8ce0cbda | 5640 | fi |
ec6a6fbe AK |
5641 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5642 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5643 | |
5644 | ||
ad6254c5 AK |
5645 | case $ac_cv_c_inline in |
5646 | inline | yes) ;; | |
8a2fc586 AK |
5647 | *) |
5648 | case $ac_cv_c_inline in | |
5649 | no) ac_val=;; | |
5650 | *) ac_val=$ac_cv_c_inline;; | |
5651 | esac | |
5652 | cat >>confdefs.h <<_ACEOF | |
5653 | #ifndef __cplusplus | |
5654 | #define inline $ac_val | |
5655 | #endif | |
c1c065a3 | 5656 | _ACEOF |
d0191583 JM |
5657 | ;; |
5658 | esac | |
5659 | ||
ec6a6fbe AK |
5660 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5661 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5662 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5663 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5664 | else |
5665 | cat >conftest.$ac_ext <<_ACEOF | |
5666 | /* confdefs.h. */ | |
5667 | _ACEOF | |
5668 | cat confdefs.h >>conftest.$ac_ext | |
5669 | cat >>conftest.$ac_ext <<_ACEOF | |
5670 | /* end confdefs.h. */ | |
5671 | $ac_includes_default | |
5672 | int | |
5673 | main () | |
5674 | { | |
5675 | static struct stat ac_aggr; | |
5676 | if (ac_aggr.st_rdev) | |
5677 | return 0; | |
5678 | ; | |
5679 | return 0; | |
5680 | } | |
5681 | _ACEOF | |
5682 | rm -f conftest.$ac_objext | |
5683 | if { (ac_try="$ac_compile" | |
5684 | case "(($ac_try" in | |
5685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5686 | *) ac_try_echo=$ac_try;; | |
5687 | esac | |
ec6a6fbe AK |
5688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5689 | $as_echo "$ac_try_echo") >&5 | |
5690 | (eval "$ac_compile") 2>conftest.er1 | |
5691 | ac_status=$? | |
5692 | grep -v '^ *+' conftest.er1 >conftest.err | |
5693 | rm -f conftest.er1 | |
5694 | cat conftest.err >&5 | |
5695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5696 | (exit $ac_status); } && { | |
5697 | test -z "$ac_c_werror_flag" || | |
5698 | test ! -s conftest.err | |
5699 | } && test -s conftest.$ac_objext; then | |
5700 | ac_cv_member_struct_stat_st_rdev=yes | |
5701 | else | |
5702 | $as_echo "$as_me: failed program was:" >&5 | |
5703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5704 | ||
5705 | cat >conftest.$ac_ext <<_ACEOF | |
5706 | /* confdefs.h. */ | |
5707 | _ACEOF | |
5708 | cat confdefs.h >>conftest.$ac_ext | |
5709 | cat >>conftest.$ac_ext <<_ACEOF | |
5710 | /* end confdefs.h. */ | |
5711 | $ac_includes_default | |
5712 | int | |
5713 | main () | |
5714 | { | |
5715 | static struct stat ac_aggr; | |
5716 | if (sizeof ac_aggr.st_rdev) | |
5717 | return 0; | |
5718 | ; | |
5719 | return 0; | |
5720 | } | |
5721 | _ACEOF | |
5722 | rm -f conftest.$ac_objext | |
5723 | if { (ac_try="$ac_compile" | |
5724 | case "(($ac_try" in | |
5725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5726 | *) ac_try_echo=$ac_try;; | |
5727 | esac | |
5728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5729 | $as_echo "$ac_try_echo") >&5 | |
5730 | (eval "$ac_compile") 2>conftest.er1 | |
5731 | ac_status=$? | |
5732 | grep -v '^ *+' conftest.er1 >conftest.err | |
5733 | rm -f conftest.er1 | |
5734 | cat conftest.err >&5 | |
5735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5736 | (exit $ac_status); } && { | |
5737 | test -z "$ac_c_werror_flag" || | |
5738 | test ! -s conftest.err | |
5739 | } && test -s conftest.$ac_objext; then | |
5740 | ac_cv_member_struct_stat_st_rdev=yes | |
5741 | else | |
5742 | $as_echo "$as_me: failed program was:" >&5 | |
5743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5744 | ||
5745 | ac_cv_member_struct_stat_st_rdev=no | |
5746 | fi | |
5747 | ||
5748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5749 | fi | |
5750 | ||
5751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5752 | fi | |
5753 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5754 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5755 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5756 | ||
5757 | cat >>confdefs.h <<_ACEOF | |
5758 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5759 | _ACEOF | |
5760 | ||
5761 | ||
5762 | fi | |
5763 | ||
5764 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5765 | $as_echo_n "checking for off_t... " >&6; } | |
5766 | if test "${ac_cv_type_off_t+set}" = set; then | |
5767 | $as_echo_n "(cached) " >&6 | |
5768 | else | |
5769 | ac_cv_type_off_t=no | |
5770 | cat >conftest.$ac_ext <<_ACEOF | |
5771 | /* confdefs.h. */ | |
5772 | _ACEOF | |
5773 | cat confdefs.h >>conftest.$ac_ext | |
5774 | cat >>conftest.$ac_ext <<_ACEOF | |
5775 | /* end confdefs.h. */ | |
5776 | $ac_includes_default | |
5777 | int | |
5778 | main () | |
5779 | { | |
5780 | if (sizeof (off_t)) | |
5781 | return 0; | |
5782 | ; | |
5783 | return 0; | |
5784 | } | |
5785 | _ACEOF | |
5786 | rm -f conftest.$ac_objext | |
5787 | if { (ac_try="$ac_compile" | |
5788 | case "(($ac_try" in | |
5789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5790 | *) ac_try_echo=$ac_try;; | |
5791 | esac | |
5792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5793 | $as_echo "$ac_try_echo") >&5 | |
5794 | (eval "$ac_compile") 2>conftest.er1 | |
5795 | ac_status=$? | |
5796 | grep -v '^ *+' conftest.er1 >conftest.err | |
5797 | rm -f conftest.er1 | |
5798 | cat conftest.err >&5 | |
5799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); } && { | |
5801 | test -z "$ac_c_werror_flag" || | |
5802 | test ! -s conftest.err | |
5803 | } && test -s conftest.$ac_objext; then | |
5804 | cat >conftest.$ac_ext <<_ACEOF | |
5805 | /* confdefs.h. */ | |
5806 | _ACEOF | |
5807 | cat confdefs.h >>conftest.$ac_ext | |
5808 | cat >>conftest.$ac_ext <<_ACEOF | |
5809 | /* end confdefs.h. */ | |
5810 | $ac_includes_default | |
5811 | int | |
5812 | main () | |
5813 | { | |
5814 | if (sizeof ((off_t))) | |
5815 | return 0; | |
5816 | ; | |
5817 | return 0; | |
5818 | } | |
5819 | _ACEOF | |
5820 | rm -f conftest.$ac_objext | |
5821 | if { (ac_try="$ac_compile" | |
5822 | case "(($ac_try" in | |
5823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5824 | *) ac_try_echo=$ac_try;; | |
5825 | esac | |
5826 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5827 | $as_echo "$ac_try_echo") >&5 | |
5828 | (eval "$ac_compile") 2>conftest.er1 | |
5829 | ac_status=$? | |
5830 | grep -v '^ *+' conftest.er1 >conftest.err | |
5831 | rm -f conftest.er1 | |
5832 | cat conftest.err >&5 | |
5833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5834 | (exit $ac_status); } && { | |
5835 | test -z "$ac_c_werror_flag" || | |
5836 | test ! -s conftest.err | |
5837 | } && test -s conftest.$ac_objext; then | |
5838 | : | |
5839 | else | |
5840 | $as_echo "$as_me: failed program was:" >&5 | |
5841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5842 | ||
5843 | ac_cv_type_off_t=yes | |
5844 | fi | |
5845 | ||
5846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5847 | else | |
5848 | $as_echo "$as_me: failed program was:" >&5 | |
5849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5850 | ||
5851 | ||
5852 | fi | |
5853 | ||
5854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5855 | fi | |
5856 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5857 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5858 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5859 | : | |
5860 | else | |
5861 | ||
5862 | cat >>confdefs.h <<_ACEOF | |
5863 | #define off_t long int | |
5864 | _ACEOF | |
5865 | ||
5866 | fi | |
5867 | ||
5868 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5869 | $as_echo_n "checking for pid_t... " >&6; } | |
5870 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5871 | $as_echo_n "(cached) " >&6 | |
5872 | else | |
5873 | ac_cv_type_pid_t=no | |
5874 | cat >conftest.$ac_ext <<_ACEOF | |
5875 | /* confdefs.h. */ | |
5876 | _ACEOF | |
5877 | cat confdefs.h >>conftest.$ac_ext | |
5878 | cat >>conftest.$ac_ext <<_ACEOF | |
5879 | /* end confdefs.h. */ | |
5880 | $ac_includes_default | |
5881 | int | |
5882 | main () | |
5883 | { | |
5884 | if (sizeof (pid_t)) | |
5885 | return 0; | |
5886 | ; | |
5887 | return 0; | |
5888 | } | |
5889 | _ACEOF | |
5890 | rm -f conftest.$ac_objext | |
5891 | if { (ac_try="$ac_compile" | |
5892 | case "(($ac_try" in | |
5893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5894 | *) ac_try_echo=$ac_try;; | |
5895 | esac | |
5896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5897 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5898 | (eval "$ac_compile") 2>conftest.er1 |
5899 | ac_status=$? | |
5900 | grep -v '^ *+' conftest.er1 >conftest.err | |
5901 | rm -f conftest.er1 | |
5902 | cat conftest.err >&5 | |
ec6a6fbe | 5903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5904 | (exit $ac_status); } && { |
5905 | test -z "$ac_c_werror_flag" || | |
5906 | test ! -s conftest.err | |
5907 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5908 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5909 | /* confdefs.h. */ |
5910 | _ACEOF | |
5911 | cat confdefs.h >>conftest.$ac_ext | |
5912 | cat >>conftest.$ac_ext <<_ACEOF | |
5913 | /* end confdefs.h. */ | |
5914 | $ac_includes_default | |
5915 | int | |
5916 | main () | |
5917 | { | |
ec6a6fbe AK |
5918 | if (sizeof ((pid_t))) |
5919 | return 0; | |
d0191583 JM |
5920 | ; |
5921 | return 0; | |
5922 | } | |
5923 | _ACEOF | |
5924 | rm -f conftest.$ac_objext | |
5925 | if { (ac_try="$ac_compile" | |
5926 | case "(($ac_try" in | |
5927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5928 | *) ac_try_echo=$ac_try;; | |
5929 | esac | |
ec6a6fbe AK |
5930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5931 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5932 | (eval "$ac_compile") 2>conftest.er1 |
5933 | ac_status=$? | |
5934 | grep -v '^ *+' conftest.er1 >conftest.err | |
5935 | rm -f conftest.er1 | |
5936 | cat conftest.err >&5 | |
ec6a6fbe | 5937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5938 | (exit $ac_status); } && { |
5939 | test -z "$ac_c_werror_flag" || | |
5940 | test ! -s conftest.err | |
5941 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5942 | : |
d0191583 | 5943 | else |
ec6a6fbe | 5944 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5945 | sed 's/^/| /' conftest.$ac_ext >&5 |
5946 | ||
ec6a6fbe | 5947 | ac_cv_type_pid_t=yes |
d0191583 JM |
5948 | fi |
5949 | ||
5950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5951 | else |
5952 | $as_echo "$as_me: failed program was:" >&5 | |
5953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5954 | ||
5955 | ||
d0191583 JM |
5956 | fi |
5957 | ||
5958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5959 | fi | |
ec6a6fbe AK |
5960 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5961 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5962 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5963 | : | |
5964 | else | |
d0191583 JM |
5965 | |
5966 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5967 | #define pid_t int |
d0191583 JM |
5968 | _ACEOF |
5969 | ||
d0191583 | 5970 | fi |
8ce0cbda | 5971 | |
ec6a6fbe AK |
5972 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5973 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5974 | if test "${ac_cv_type_signal+set}" = set; then | |
5975 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5976 | else |
b145d876 ZK |
5977 | cat >conftest.$ac_ext <<_ACEOF |
5978 | /* confdefs.h. */ | |
5979 | _ACEOF | |
5980 | cat confdefs.h >>conftest.$ac_ext | |
5981 | cat >>conftest.$ac_ext <<_ACEOF | |
5982 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5983 | #include <sys/types.h> |
5984 | #include <signal.h> | |
5985 | ||
b145d876 ZK |
5986 | int |
5987 | main () | |
5988 | { | |
ec6a6fbe | 5989 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5990 | ; |
5991 | return 0; | |
5992 | } | |
5993 | _ACEOF | |
5994 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5995 | if { (ac_try="$ac_compile" |
5996 | case "(($ac_try" in | |
5997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5998 | *) ac_try_echo=$ac_try;; | |
5999 | esac | |
ec6a6fbe AK |
6000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6001 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6002 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6003 | ac_status=$? |
8a2fc586 AK |
6004 | grep -v '^ *+' conftest.er1 >conftest.err |
6005 | rm -f conftest.er1 | |
6006 | cat conftest.err >&5 | |
ec6a6fbe | 6007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6008 | (exit $ac_status); } && { |
6009 | test -z "$ac_c_werror_flag" || | |
6010 | test ! -s conftest.err | |
6011 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6012 | ac_cv_type_signal=int |
b145d876 | 6013 | else |
ec6a6fbe | 6014 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
6016 | ||
ec6a6fbe | 6017 | ac_cv_type_signal=void |
ad6254c5 | 6018 | fi |
b145d876 ZK |
6019 | |
6020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6021 | fi | |
ec6a6fbe AK |
6022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6023 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6024 | |
ad6254c5 | 6025 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6026 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6027 | _ACEOF |
199e490e | 6028 | |
b896caa1 | 6029 | |
ec6a6fbe AK |
6030 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6031 | $as_echo_n "checking for size_t... " >&6; } | |
6032 | if test "${ac_cv_type_size_t+set}" = set; then | |
6033 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6034 | else |
ec6a6fbe AK |
6035 | ac_cv_type_size_t=no |
6036 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6037 | /* confdefs.h. */ |
6038 | _ACEOF | |
6039 | cat confdefs.h >>conftest.$ac_ext | |
6040 | cat >>conftest.$ac_ext <<_ACEOF | |
6041 | /* end confdefs.h. */ | |
6042 | $ac_includes_default | |
6043 | int | |
6044 | main () | |
6045 | { | |
ec6a6fbe AK |
6046 | if (sizeof (size_t)) |
6047 | return 0; | |
ad6254c5 AK |
6048 | ; |
6049 | return 0; | |
6050 | } | |
6051 | _ACEOF | |
6052 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6053 | if { (ac_try="$ac_compile" |
6054 | case "(($ac_try" in | |
6055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6056 | *) ac_try_echo=$ac_try;; | |
6057 | esac | |
ec6a6fbe AK |
6058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6059 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6060 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6061 | ac_status=$? |
8a2fc586 AK |
6062 | grep -v '^ *+' conftest.er1 >conftest.err |
6063 | rm -f conftest.er1 | |
6064 | cat conftest.err >&5 | |
ec6a6fbe | 6065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6066 | (exit $ac_status); } && { |
6067 | test -z "$ac_c_werror_flag" || | |
6068 | test ! -s conftest.err | |
6069 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6070 | cat >conftest.$ac_ext <<_ACEOF |
6071 | /* confdefs.h. */ | |
6072 | _ACEOF | |
6073 | cat confdefs.h >>conftest.$ac_ext | |
6074 | cat >>conftest.$ac_ext <<_ACEOF | |
6075 | /* end confdefs.h. */ | |
ec6a6fbe | 6076 | $ac_includes_default |
d0191583 JM |
6077 | int |
6078 | main () | |
6079 | { | |
ec6a6fbe AK |
6080 | if (sizeof ((size_t))) |
6081 | return 0; | |
d0191583 JM |
6082 | ; |
6083 | return 0; | |
6084 | } | |
6085 | _ACEOF | |
6086 | rm -f conftest.$ac_objext | |
6087 | if { (ac_try="$ac_compile" | |
6088 | case "(($ac_try" in | |
6089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6090 | *) ac_try_echo=$ac_try;; | |
6091 | esac | |
ec6a6fbe AK |
6092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6093 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6094 | (eval "$ac_compile") 2>conftest.er1 |
6095 | ac_status=$? | |
6096 | grep -v '^ *+' conftest.er1 >conftest.err | |
6097 | rm -f conftest.er1 | |
6098 | cat conftest.err >&5 | |
ec6a6fbe | 6099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6100 | (exit $ac_status); } && { |
6101 | test -z "$ac_c_werror_flag" || | |
6102 | test ! -s conftest.err | |
6103 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6104 | : |
d0191583 | 6105 | else |
ec6a6fbe | 6106 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6107 | sed 's/^/| /' conftest.$ac_ext >&5 |
6108 | ||
ec6a6fbe AK |
6109 | ac_cv_type_size_t=yes |
6110 | fi | |
6111 | ||
6112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6113 | else | |
6114 | $as_echo "$as_me: failed program was:" >&5 | |
6115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6116 | ||
6117 | ||
d0191583 JM |
6118 | fi |
6119 | ||
6120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6121 | fi | |
ec6a6fbe AK |
6122 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6123 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6124 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6125 | : | |
6126 | else | |
d0191583 JM |
6127 | |
6128 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6129 | #define size_t unsigned int |
d0191583 JM |
6130 | _ACEOF |
6131 | ||
ec6a6fbe | 6132 | fi |
d0191583 | 6133 | |
ec6a6fbe AK |
6134 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6135 | $as_echo_n "checking for mode_t... " >&6; } | |
6136 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6137 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6138 | else |
ec6a6fbe AK |
6139 | ac_cv_type_mode_t=no |
6140 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6141 | /* confdefs.h. */ |
6142 | _ACEOF | |
6143 | cat confdefs.h >>conftest.$ac_ext | |
6144 | cat >>conftest.$ac_ext <<_ACEOF | |
6145 | /* end confdefs.h. */ | |
6146 | $ac_includes_default | |
6147 | int | |
6148 | main () | |
6149 | { | |
ec6a6fbe AK |
6150 | if (sizeof (mode_t)) |
6151 | return 0; | |
ad6254c5 AK |
6152 | ; |
6153 | return 0; | |
6154 | } | |
6155 | _ACEOF | |
6156 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6157 | if { (ac_try="$ac_compile" |
6158 | case "(($ac_try" in | |
6159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6160 | *) ac_try_echo=$ac_try;; | |
6161 | esac | |
ec6a6fbe AK |
6162 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6163 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6164 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6165 | ac_status=$? |
8a2fc586 AK |
6166 | grep -v '^ *+' conftest.er1 >conftest.err |
6167 | rm -f conftest.er1 | |
6168 | cat conftest.err >&5 | |
ec6a6fbe | 6169 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6170 | (exit $ac_status); } && { |
6171 | test -z "$ac_c_werror_flag" || | |
6172 | test ! -s conftest.err | |
6173 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6174 | cat >conftest.$ac_ext <<_ACEOF |
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 | { | |
ec6a6fbe AK |
6184 | if (sizeof ((mode_t))) |
6185 | return 0; | |
ad6254c5 AK |
6186 | ; |
6187 | return 0; | |
6188 | } | |
6189 | _ACEOF | |
6190 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6191 | if { (ac_try="$ac_compile" |
6192 | case "(($ac_try" in | |
6193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6194 | *) ac_try_echo=$ac_try;; | |
6195 | esac | |
ec6a6fbe AK |
6196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6197 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6198 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6199 | ac_status=$? |
8a2fc586 AK |
6200 | grep -v '^ *+' conftest.er1 >conftest.err |
6201 | rm -f conftest.er1 | |
6202 | cat conftest.err >&5 | |
ec6a6fbe | 6203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6204 | (exit $ac_status); } && { |
6205 | test -z "$ac_c_werror_flag" || | |
6206 | test ! -s conftest.err | |
6207 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6208 | : |
6209 | else | |
6210 | $as_echo "$as_me: failed program was:" >&5 | |
6211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6212 | ||
6213 | ac_cv_type_mode_t=yes | |
6214 | fi | |
6215 | ||
6216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6217 | else |
ec6a6fbe | 6218 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6219 | sed 's/^/| /' conftest.$ac_ext >&5 |
6220 | ||
ec6a6fbe | 6221 | |
80992638 | 6222 | fi |
7a197a62 AK |
6223 | |
6224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6225 | fi |
ec6a6fbe AK |
6226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6227 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6228 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6229 | : |
6230 | else | |
80992638 | 6231 | |
ad6254c5 AK |
6232 | cat >>confdefs.h <<_ACEOF |
6233 | #define mode_t int | |
6234 | _ACEOF | |
6235 | ||
6236 | fi | |
6237 | ||
ec6a6fbe AK |
6238 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6239 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6240 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6241 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6242 | else |
6243 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6244 | /* confdefs.h. */ |
6245 | _ACEOF | |
6246 | cat confdefs.h >>conftest.$ac_ext | |
6247 | cat >>conftest.$ac_ext <<_ACEOF | |
6248 | /* end confdefs.h. */ | |
6249 | $ac_includes_default | |
6250 | int | |
6251 | main () | |
6252 | { | |
6253 | static struct stat ac_aggr; | |
6254 | if (ac_aggr.st_rdev) | |
6255 | return 0; | |
6256 | ; | |
6257 | return 0; | |
6258 | } | |
6259 | _ACEOF | |
6260 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6261 | if { (ac_try="$ac_compile" |
6262 | case "(($ac_try" in | |
6263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6264 | *) ac_try_echo=$ac_try;; | |
6265 | esac | |
ec6a6fbe AK |
6266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6267 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6268 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6269 | ac_status=$? |
8a2fc586 AK |
6270 | grep -v '^ *+' conftest.er1 >conftest.err |
6271 | rm -f conftest.er1 | |
6272 | cat conftest.err >&5 | |
ec6a6fbe | 6273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6274 | (exit $ac_status); } && { |
6275 | test -z "$ac_c_werror_flag" || | |
6276 | test ! -s conftest.err | |
6277 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6278 | ac_cv_member_struct_stat_st_rdev=yes |
6279 | else | |
ec6a6fbe | 6280 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6281 | sed 's/^/| /' conftest.$ac_ext >&5 |
6282 | ||
7a197a62 | 6283 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6284 | /* confdefs.h. */ |
6285 | _ACEOF | |
6286 | cat confdefs.h >>conftest.$ac_ext | |
6287 | cat >>conftest.$ac_ext <<_ACEOF | |
6288 | /* end confdefs.h. */ | |
6289 | $ac_includes_default | |
6290 | int | |
6291 | main () | |
6292 | { | |
6293 | static struct stat ac_aggr; | |
6294 | if (sizeof ac_aggr.st_rdev) | |
6295 | return 0; | |
6296 | ; | |
6297 | return 0; | |
6298 | } | |
6299 | _ACEOF | |
6300 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6301 | if { (ac_try="$ac_compile" |
6302 | case "(($ac_try" in | |
6303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6304 | *) ac_try_echo=$ac_try;; | |
6305 | esac | |
ec6a6fbe AK |
6306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6307 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6308 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6309 | ac_status=$? |
8a2fc586 AK |
6310 | grep -v '^ *+' conftest.er1 >conftest.err |
6311 | rm -f conftest.er1 | |
6312 | cat conftest.err >&5 | |
ec6a6fbe | 6313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6314 | (exit $ac_status); } && { |
6315 | test -z "$ac_c_werror_flag" || | |
6316 | test ! -s conftest.err | |
6317 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6318 | ac_cv_member_struct_stat_st_rdev=yes |
6319 | else | |
ec6a6fbe | 6320 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6321 | sed 's/^/| /' conftest.$ac_ext >&5 |
6322 | ||
7a197a62 | 6323 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6324 | fi |
7a197a62 AK |
6325 | |
6326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6327 | fi |
7a197a62 AK |
6328 | |
6329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6330 | fi |
ec6a6fbe AK |
6331 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6332 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6333 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6334 | |
6335 | cat >>confdefs.h <<_ACEOF | |
6336 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6337 | _ACEOF | |
6338 | ||
6339 | ||
ad6254c5 AK |
6340 | fi |
6341 | ||
ec6a6fbe AK |
6342 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6343 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6344 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6345 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6346 | else |
6347 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6348 | /* confdefs.h. */ |
6349 | _ACEOF | |
6350 | cat confdefs.h >>conftest.$ac_ext | |
6351 | cat >>conftest.$ac_ext <<_ACEOF | |
6352 | /* end confdefs.h. */ | |
6353 | #include <sys/types.h> | |
6354 | #include <time.h> | |
6355 | ||
6356 | int | |
6357 | main () | |
6358 | { | |
25fbec5b AK |
6359 | struct tm tm; |
6360 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6361 | return !p; |
ad6254c5 AK |
6362 | ; |
6363 | return 0; | |
6364 | } | |
6365 | _ACEOF | |
6366 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6367 | if { (ac_try="$ac_compile" |
6368 | case "(($ac_try" in | |
6369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6370 | *) ac_try_echo=$ac_try;; | |
6371 | esac | |
ec6a6fbe AK |
6372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6373 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6374 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6375 | ac_status=$? |
8a2fc586 AK |
6376 | grep -v '^ *+' conftest.er1 >conftest.err |
6377 | rm -f conftest.er1 | |
6378 | cat conftest.err >&5 | |
ec6a6fbe | 6379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6380 | (exit $ac_status); } && { |
6381 | test -z "$ac_c_werror_flag" || | |
6382 | test ! -s conftest.err | |
6383 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6384 | ac_cv_struct_tm=time.h |
6385 | else | |
ec6a6fbe | 6386 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6387 | sed 's/^/| /' conftest.$ac_ext >&5 |
6388 | ||
7a197a62 | 6389 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6390 | fi |
7a197a62 AK |
6391 | |
6392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6393 | fi |
ec6a6fbe AK |
6394 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6395 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6396 | if test $ac_cv_struct_tm = sys/time.h; then |
6397 | ||
6398 | cat >>confdefs.h <<\_ACEOF | |
6399 | #define TM_IN_SYS_TIME 1 | |
6400 | _ACEOF | |
6401 | ||
6402 | fi | |
809fae91 | 6403 | |
795ca3e5 | 6404 | |
80992638 | 6405 | ################################################################################ |
ad6254c5 AK |
6406 | |
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
d0191583 JM |
6420 | |
6421 | ||
6422 | ||
6423 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6424 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6425 | uname | |
ad6254c5 | 6426 | do |
ec6a6fbe AK |
6427 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6428 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6429 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6430 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6431 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6432 | else |
ad6254c5 | 6433 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6434 | /* confdefs.h. */ |
6435 | _ACEOF | |
6436 | cat confdefs.h >>conftest.$ac_ext | |
6437 | cat >>conftest.$ac_ext <<_ACEOF | |
6438 | /* end confdefs.h. */ | |
8a2fc586 AK |
6439 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6441 | #define $ac_func innocuous_$ac_func | |
6442 | ||
ad6254c5 AK |
6443 | /* System header to define __stub macros and hopefully few prototypes, |
6444 | which can conflict with char $ac_func (); below. | |
6445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6446 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6447 | |
ad6254c5 AK |
6448 | #ifdef __STDC__ |
6449 | # include <limits.h> | |
6450 | #else | |
6451 | # include <assert.h> | |
6452 | #endif | |
8a2fc586 AK |
6453 | |
6454 | #undef $ac_func | |
6455 | ||
7a197a62 AK |
6456 | /* Override any GCC internal prototype to avoid an error. |
6457 | Use char because int might match the return type of a GCC | |
6458 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6459 | #ifdef __cplusplus |
6460 | extern "C" | |
ad6254c5 | 6461 | #endif |
ad6254c5 AK |
6462 | char $ac_func (); |
6463 | /* The GNU C library defines this for functions which it implements | |
6464 | to always fail with ENOSYS. Some functions are actually named | |
6465 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6466 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6467 | choke me |
ad6254c5 AK |
6468 | #endif |
6469 | ||
6470 | int | |
6471 | main () | |
6472 | { | |
7a197a62 | 6473 | return $ac_func (); |
ad6254c5 AK |
6474 | ; |
6475 | return 0; | |
6476 | } | |
6477 | _ACEOF | |
6478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6479 | if { (ac_try="$ac_link" |
6480 | case "(($ac_try" in | |
6481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6482 | *) ac_try_echo=$ac_try;; | |
6483 | esac | |
ec6a6fbe AK |
6484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6485 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6486 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6487 | ac_status=$? |
8a2fc586 AK |
6488 | grep -v '^ *+' conftest.er1 >conftest.err |
6489 | rm -f conftest.er1 | |
6490 | cat conftest.err >&5 | |
ec6a6fbe | 6491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6492 | (exit $ac_status); } && { |
6493 | test -z "$ac_c_werror_flag" || | |
6494 | test ! -s conftest.err | |
ec6a6fbe AK |
6495 | } && test -s conftest$ac_exeext && { |
6496 | test "$cross_compiling" = yes || | |
6497 | $as_test_x conftest$ac_exeext | |
6498 | }; then | |
fc54be10 AK |
6499 | eval "$as_ac_var=yes" |
6500 | else | |
ec6a6fbe | 6501 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6502 | sed 's/^/| /' conftest.$ac_ext >&5 |
6503 | ||
6504 | eval "$as_ac_var=no" | |
6505 | fi | |
6506 | ||
ec6a6fbe | 6507 | rm -rf conftest.dSYM |
25fbec5b | 6508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6509 | conftest$ac_exeext conftest.$ac_ext |
6510 | fi | |
ec6a6fbe AK |
6511 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6512 | $as_echo "$as_val"'` | |
6513 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6514 | $as_echo "$ac_res" >&6; } | |
6515 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6516 | $as_echo "$as_val"'` | |
6517 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6518 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6519 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6520 | _ACEOF |
6521 | ||
6522 | else | |
ec6a6fbe AK |
6523 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6524 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6525 | { (exit 1); exit 1; }; } |
6526 | fi | |
6527 | done | |
795ca3e5 | 6528 | |
ad6254c5 AK |
6529 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6530 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6531 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6532 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6533 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6534 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6535 | else |
6536 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6537 | /* confdefs.h. */ |
6538 | _ACEOF | |
6539 | cat confdefs.h >>conftest.$ac_ext | |
6540 | cat >>conftest.$ac_ext <<_ACEOF | |
6541 | /* end confdefs.h. */ | |
6542 | #include <alloca.h> | |
6543 | int | |
6544 | main () | |
6545 | { | |
6546 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6547 | if (p) return 0; |
ad6254c5 AK |
6548 | ; |
6549 | return 0; | |
6550 | } | |
6551 | _ACEOF | |
6552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6553 | if { (ac_try="$ac_link" |
6554 | case "(($ac_try" in | |
6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6556 | *) ac_try_echo=$ac_try;; | |
6557 | esac | |
ec6a6fbe AK |
6558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6559 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6560 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6561 | ac_status=$? |
8a2fc586 AK |
6562 | grep -v '^ *+' conftest.er1 >conftest.err |
6563 | rm -f conftest.er1 | |
6564 | cat conftest.err >&5 | |
ec6a6fbe | 6565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6566 | (exit $ac_status); } && { |
6567 | test -z "$ac_c_werror_flag" || | |
6568 | test ! -s conftest.err | |
ec6a6fbe AK |
6569 | } && test -s conftest$ac_exeext && { |
6570 | test "$cross_compiling" = yes || | |
6571 | $as_test_x conftest$ac_exeext | |
6572 | }; then | |
ad6254c5 AK |
6573 | ac_cv_working_alloca_h=yes |
6574 | else | |
ec6a6fbe | 6575 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6576 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6577 | |
7a197a62 | 6578 | ac_cv_working_alloca_h=no |
ad6254c5 | 6579 | fi |
7a197a62 | 6580 | |
ec6a6fbe | 6581 | rm -rf conftest.dSYM |
25fbec5b | 6582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6583 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6584 | fi |
ec6a6fbe AK |
6585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6586 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6587 | if test $ac_cv_working_alloca_h = yes; then |
6588 | ||
6589 | cat >>confdefs.h <<\_ACEOF | |
6590 | #define HAVE_ALLOCA_H 1 | |
6591 | _ACEOF | |
6592 | ||
6593 | fi | |
6594 | ||
ec6a6fbe AK |
6595 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6596 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6597 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6598 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6599 | else |
6600 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6601 | /* confdefs.h. */ |
6602 | _ACEOF | |
6603 | cat confdefs.h >>conftest.$ac_ext | |
6604 | cat >>conftest.$ac_ext <<_ACEOF | |
6605 | /* end confdefs.h. */ | |
6606 | #ifdef __GNUC__ | |
6607 | # define alloca __builtin_alloca | |
6608 | #else | |
6609 | # ifdef _MSC_VER | |
6610 | # include <malloc.h> | |
6611 | # define alloca _alloca | |
6612 | # else | |
25fbec5b | 6613 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6614 | # include <alloca.h> |
6615 | # else | |
6616 | # ifdef _AIX | |
6617 | #pragma alloca | |
6618 | # else | |
6619 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6620 | char *alloca (); | |
6621 | # endif | |
6622 | # endif | |
6623 | # endif | |
6624 | # endif | |
6625 | #endif | |
6626 | ||
6627 | int | |
6628 | main () | |
6629 | { | |
6630 | char *p = (char *) alloca (1); | |
7a197a62 | 6631 | if (p) return 0; |
ad6254c5 AK |
6632 | ; |
6633 | return 0; | |
6634 | } | |
6635 | _ACEOF | |
6636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6637 | if { (ac_try="$ac_link" |
6638 | case "(($ac_try" in | |
6639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6640 | *) ac_try_echo=$ac_try;; | |
6641 | esac | |
ec6a6fbe AK |
6642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6643 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6644 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6645 | ac_status=$? |
8a2fc586 AK |
6646 | grep -v '^ *+' conftest.er1 >conftest.err |
6647 | rm -f conftest.er1 | |
6648 | cat conftest.err >&5 | |
ec6a6fbe | 6649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6650 | (exit $ac_status); } && { |
6651 | test -z "$ac_c_werror_flag" || | |
6652 | test ! -s conftest.err | |
ec6a6fbe AK |
6653 | } && test -s conftest$ac_exeext && { |
6654 | test "$cross_compiling" = yes || | |
6655 | $as_test_x conftest$ac_exeext | |
6656 | }; then | |
ad6254c5 AK |
6657 | ac_cv_func_alloca_works=yes |
6658 | else | |
ec6a6fbe | 6659 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6660 | sed 's/^/| /' conftest.$ac_ext >&5 |
6661 | ||
7a197a62 | 6662 | ac_cv_func_alloca_works=no |
ad6254c5 | 6663 | fi |
7a197a62 | 6664 | |
ec6a6fbe | 6665 | rm -rf conftest.dSYM |
25fbec5b | 6666 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6667 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6668 | fi |
ec6a6fbe AK |
6669 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6670 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6671 | |
6672 | if test $ac_cv_func_alloca_works = yes; then | |
6673 | ||
6674 | cat >>confdefs.h <<\_ACEOF | |
6675 | #define HAVE_ALLOCA 1 | |
6676 | _ACEOF | |
6677 | ||
6678 | else | |
6679 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6680 | # that cause trouble. Some versions do not even contain alloca or | |
6681 | # contain a buggy version. If you still want to use their alloca, | |
6682 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6683 | ||
7a197a62 | 6684 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6685 | |
6686 | cat >>confdefs.h <<\_ACEOF | |
6687 | #define C_ALLOCA 1 | |
6688 | _ACEOF | |
6689 | ||
6690 | ||
ec6a6fbe AK |
6691 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6692 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6693 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6694 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6695 | else |
6696 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6697 | /* confdefs.h. */ |
6698 | _ACEOF | |
6699 | cat confdefs.h >>conftest.$ac_ext | |
6700 | cat >>conftest.$ac_ext <<_ACEOF | |
6701 | /* end confdefs.h. */ | |
7a197a62 | 6702 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6703 | webecray |
6704 | #else | |
6705 | wenotbecray | |
6706 | #endif | |
6707 | ||
6708 | _ACEOF | |
795ca3e5 | 6709 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6710 | $EGREP "webecray" >/dev/null 2>&1; then |
6711 | ac_cv_os_cray=yes | |
6712 | else | |
6713 | ac_cv_os_cray=no | |
795ca3e5 AK |
6714 | fi |
6715 | rm -f conftest* | |
6716 | ||
795ca3e5 | 6717 | fi |
ec6a6fbe AK |
6718 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6719 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6720 | if test $ac_cv_os_cray = yes; then |
6721 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6722 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6723 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6724 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6725 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6726 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6727 | else |
6728 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6729 | /* confdefs.h. */ |
6730 | _ACEOF | |
6731 | cat confdefs.h >>conftest.$ac_ext | |
6732 | cat >>conftest.$ac_ext <<_ACEOF | |
6733 | /* end confdefs.h. */ | |
8a2fc586 AK |
6734 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6736 | #define $ac_func innocuous_$ac_func | |
6737 | ||
ad6254c5 AK |
6738 | /* System header to define __stub macros and hopefully few prototypes, |
6739 | which can conflict with char $ac_func (); below. | |
6740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6741 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6742 | |
ad6254c5 AK |
6743 | #ifdef __STDC__ |
6744 | # include <limits.h> | |
6745 | #else | |
6746 | # include <assert.h> | |
6747 | #endif | |
8a2fc586 AK |
6748 | |
6749 | #undef $ac_func | |
6750 | ||
7a197a62 AK |
6751 | /* Override any GCC internal prototype to avoid an error. |
6752 | Use char because int might match the return type of a GCC | |
6753 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6754 | #ifdef __cplusplus |
6755 | extern "C" | |
ad6254c5 | 6756 | #endif |
ad6254c5 AK |
6757 | char $ac_func (); |
6758 | /* The GNU C library defines this for functions which it implements | |
6759 | to always fail with ENOSYS. Some functions are actually named | |
6760 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6761 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6762 | choke me |
ad6254c5 AK |
6763 | #endif |
6764 | ||
6765 | int | |
6766 | main () | |
6767 | { | |
7a197a62 | 6768 | return $ac_func (); |
ad6254c5 AK |
6769 | ; |
6770 | return 0; | |
6771 | } | |
6772 | _ACEOF | |
6773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6774 | if { (ac_try="$ac_link" |
6775 | case "(($ac_try" in | |
6776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6777 | *) ac_try_echo=$ac_try;; | |
6778 | esac | |
ec6a6fbe AK |
6779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6780 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6781 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6782 | ac_status=$? |
8a2fc586 AK |
6783 | grep -v '^ *+' conftest.er1 >conftest.err |
6784 | rm -f conftest.er1 | |
6785 | cat conftest.err >&5 | |
ec6a6fbe | 6786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6787 | (exit $ac_status); } && { |
6788 | test -z "$ac_c_werror_flag" || | |
6789 | test ! -s conftest.err | |
ec6a6fbe AK |
6790 | } && test -s conftest$ac_exeext && { |
6791 | test "$cross_compiling" = yes || | |
6792 | $as_test_x conftest$ac_exeext | |
6793 | }; then | |
ad6254c5 AK |
6794 | eval "$as_ac_var=yes" |
6795 | else | |
ec6a6fbe | 6796 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6797 | sed 's/^/| /' conftest.$ac_ext >&5 |
6798 | ||
7a197a62 | 6799 | eval "$as_ac_var=no" |
ad6254c5 | 6800 | fi |
7a197a62 | 6801 | |
ec6a6fbe | 6802 | rm -rf conftest.dSYM |
25fbec5b | 6803 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6804 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6805 | fi |
ec6a6fbe AK |
6806 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6807 | $as_echo "$as_val"'` | |
6808 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6809 | $as_echo "$ac_res" >&6; } | |
6810 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6811 | $as_echo "$as_val"'` | |
6812 | if test "x$as_val" = x""yes; then | |
80992638 | 6813 | |
ad6254c5 AK |
6814 | cat >>confdefs.h <<_ACEOF |
6815 | #define CRAY_STACKSEG_END $ac_func | |
6816 | _ACEOF | |
6817 | ||
6818 | break | |
6819 | fi | |
6820 | ||
6821 | done | |
6822 | fi | |
6823 | ||
ec6a6fbe AK |
6824 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6825 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6826 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6827 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6828 | else |
6829 | if test "$cross_compiling" = yes; then | |
6830 | ac_cv_c_stack_direction=0 | |
6831 | else | |
6832 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6833 | /* confdefs.h. */ |
6834 | _ACEOF | |
6835 | cat confdefs.h >>conftest.$ac_ext | |
6836 | cat >>conftest.$ac_ext <<_ACEOF | |
6837 | /* end confdefs.h. */ | |
7a197a62 | 6838 | $ac_includes_default |
ad6254c5 AK |
6839 | int |
6840 | find_stack_direction () | |
6841 | { | |
6842 | static char *addr = 0; | |
6843 | auto char dummy; | |
6844 | if (addr == 0) | |
6845 | { | |
6846 | addr = &dummy; | |
6847 | return find_stack_direction (); | |
6848 | } | |
6849 | else | |
6850 | return (&dummy > addr) ? 1 : -1; | |
6851 | } | |
6852 | ||
6853 | int | |
6854 | main () | |
6855 | { | |
7a197a62 | 6856 | return find_stack_direction () < 0; |
ad6254c5 AK |
6857 | } |
6858 | _ACEOF | |
6859 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6860 | if { (ac_try="$ac_link" |
6861 | case "(($ac_try" in | |
6862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6863 | *) ac_try_echo=$ac_try;; | |
6864 | esac | |
ec6a6fbe AK |
6865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6866 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6867 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6868 | ac_status=$? |
ec6a6fbe | 6869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6871 | { (case "(($ac_try" in |
6872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6873 | *) ac_try_echo=$ac_try;; | |
6874 | esac | |
ec6a6fbe AK |
6875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6876 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6877 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6878 | ac_status=$? |
ec6a6fbe | 6879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6880 | (exit $ac_status); }; }; then |
6881 | ac_cv_c_stack_direction=1 | |
6882 | else | |
ec6a6fbe AK |
6883 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6884 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6885 | sed 's/^/| /' conftest.$ac_ext >&5 |
6886 | ||
6887 | ( exit $ac_status ) | |
6888 | ac_cv_c_stack_direction=-1 | |
6889 | fi | |
ec6a6fbe | 6890 | rm -rf conftest.dSYM |
7a197a62 | 6891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6892 | fi |
7a197a62 AK |
6893 | |
6894 | ||
ad6254c5 | 6895 | fi |
ec6a6fbe AK |
6896 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6897 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6898 | |
6899 | cat >>confdefs.h <<_ACEOF | |
6900 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6901 | _ACEOF | |
6902 | ||
6903 | ||
6904 | fi | |
6905 | ||
ec6a6fbe AK |
6906 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6907 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6908 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6909 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6910 | else |
6911 | if test "$cross_compiling" = yes; then | |
6912 | ac_cv_func_closedir_void=yes | |
6913 | else | |
6914 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6915 | /* confdefs.h. */ |
6916 | _ACEOF | |
6917 | cat confdefs.h >>conftest.$ac_ext | |
6918 | cat >>conftest.$ac_ext <<_ACEOF | |
6919 | /* end confdefs.h. */ | |
6920 | $ac_includes_default | |
6921 | #include <$ac_header_dirent> | |
6922 | #ifndef __cplusplus | |
6923 | int closedir (); | |
6924 | #endif | |
6925 | ||
6926 | int | |
6927 | main () | |
6928 | { | |
7a197a62 | 6929 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6930 | ; |
6931 | return 0; | |
6932 | } | |
6933 | _ACEOF | |
6934 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6935 | if { (ac_try="$ac_link" |
6936 | case "(($ac_try" in | |
6937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6938 | *) ac_try_echo=$ac_try;; | |
6939 | esac | |
ec6a6fbe AK |
6940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6941 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6942 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6943 | ac_status=$? |
ec6a6fbe | 6944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6946 | { (case "(($ac_try" in |
6947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6948 | *) ac_try_echo=$ac_try;; | |
6949 | esac | |
ec6a6fbe AK |
6950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6951 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6952 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6953 | ac_status=$? |
ec6a6fbe | 6954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6955 | (exit $ac_status); }; }; then |
6956 | ac_cv_func_closedir_void=no | |
6957 | else | |
ec6a6fbe AK |
6958 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6959 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6960 | sed 's/^/| /' conftest.$ac_ext >&5 |
6961 | ||
6962 | ( exit $ac_status ) | |
6963 | ac_cv_func_closedir_void=yes | |
6964 | fi | |
ec6a6fbe | 6965 | rm -rf conftest.dSYM |
7a197a62 | 6966 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6967 | fi |
7a197a62 AK |
6968 | |
6969 | ||
ad6254c5 | 6970 | fi |
ec6a6fbe AK |
6971 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6972 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6973 | if test $ac_cv_func_closedir_void = yes; then |
6974 | ||
6975 | cat >>confdefs.h <<\_ACEOF | |
6976 | #define CLOSEDIR_VOID 1 | |
6977 | _ACEOF | |
6978 | ||
6979 | fi | |
6980 | ||
6981 | ||
7a197a62 | 6982 | for ac_header in vfork.h |
ad6254c5 | 6983 | do |
ec6a6fbe | 6984 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6985 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6986 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6987 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6989 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6990 | fi |
ec6a6fbe AK |
6991 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6992 | $as_echo "$as_val"'` | |
6993 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6994 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
6995 | else |
6996 | # Is the header compilable? | |
ec6a6fbe AK |
6997 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6998 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 6999 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7000 | /* confdefs.h. */ |
7001 | _ACEOF | |
7002 | cat confdefs.h >>conftest.$ac_ext | |
7003 | cat >>conftest.$ac_ext <<_ACEOF | |
7004 | /* end confdefs.h. */ | |
7005 | $ac_includes_default | |
7006 | #include <$ac_header> | |
7007 | _ACEOF | |
7008 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7009 | if { (ac_try="$ac_compile" |
7010 | case "(($ac_try" in | |
7011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7012 | *) ac_try_echo=$ac_try;; | |
7013 | esac | |
ec6a6fbe AK |
7014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7015 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7016 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7017 | ac_status=$? |
8a2fc586 AK |
7018 | grep -v '^ *+' conftest.er1 >conftest.err |
7019 | rm -f conftest.er1 | |
7020 | cat conftest.err >&5 | |
ec6a6fbe | 7021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7022 | (exit $ac_status); } && { |
7023 | test -z "$ac_c_werror_flag" || | |
7024 | test ! -s conftest.err | |
7025 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7026 | ac_header_compiler=yes |
7027 | else | |
ec6a6fbe | 7028 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7029 | sed 's/^/| /' conftest.$ac_ext >&5 |
7030 | ||
7a197a62 | 7031 | ac_header_compiler=no |
ad6254c5 | 7032 | fi |
7a197a62 AK |
7033 | |
7034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7035 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7036 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7037 | |
7038 | # Is the header present? | |
ec6a6fbe AK |
7039 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7040 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7041 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7042 | /* confdefs.h. */ |
7043 | _ACEOF | |
7044 | cat confdefs.h >>conftest.$ac_ext | |
7045 | cat >>conftest.$ac_ext <<_ACEOF | |
7046 | /* end confdefs.h. */ | |
7047 | #include <$ac_header> | |
7048 | _ACEOF | |
7a197a62 AK |
7049 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7050 | case "(($ac_try" in | |
7051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7052 | *) ac_try_echo=$ac_try;; | |
7053 | esac | |
ec6a6fbe AK |
7054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7055 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7056 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7057 | ac_status=$? |
7058 | grep -v '^ *+' conftest.er1 >conftest.err | |
7059 | rm -f conftest.er1 | |
7060 | cat conftest.err >&5 | |
ec6a6fbe | 7061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7062 | (exit $ac_status); } >/dev/null && { |
7063 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7064 | test ! -s conftest.err | |
7065 | }; then | |
ad6254c5 AK |
7066 | ac_header_preproc=yes |
7067 | else | |
ec6a6fbe | 7068 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7069 | sed 's/^/| /' conftest.$ac_ext >&5 |
7070 | ||
7071 | ac_header_preproc=no | |
7072 | fi | |
7a197a62 | 7073 | |
ad6254c5 | 7074 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7075 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7076 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7077 | |
7078 | # So? What about this header? | |
8a2fc586 AK |
7079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7080 | yes:no: ) | |
ec6a6fbe AK |
7081 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7082 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7083 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7084 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7085 | ac_header_preproc=yes |
ad6254c5 | 7086 | ;; |
8a2fc586 | 7087 | no:yes:* ) |
ec6a6fbe AK |
7088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7089 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7091 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7093 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7094 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7095 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7097 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7099 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7100 | |
ad6254c5 AK |
7101 | ;; |
7102 | esac | |
ec6a6fbe AK |
7103 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7104 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7106 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7107 | else |
8a2fc586 | 7108 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7109 | fi |
ec6a6fbe AK |
7110 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7111 | $as_echo "$as_val"'` | |
7112 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7113 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7114 | |
795ca3e5 | 7115 | fi |
ec6a6fbe AK |
7116 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7117 | $as_echo "$as_val"'` | |
7118 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7119 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7120 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7121 | _ACEOF |
7122 | ||
7123 | fi | |
7124 | ||
7125 | done | |
795ca3e5 | 7126 | |
ad6254c5 AK |
7127 | |
7128 | ||
7129 | for ac_func in fork vfork | |
7130 | do | |
ec6a6fbe AK |
7131 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7132 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7133 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7134 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7135 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7136 | else |
ad6254c5 | 7137 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7138 | /* confdefs.h. */ |
7139 | _ACEOF | |
7140 | cat confdefs.h >>conftest.$ac_ext | |
7141 | cat >>conftest.$ac_ext <<_ACEOF | |
7142 | /* end confdefs.h. */ | |
8a2fc586 AK |
7143 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7144 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7145 | #define $ac_func innocuous_$ac_func | |
7146 | ||
ad6254c5 AK |
7147 | /* System header to define __stub macros and hopefully few prototypes, |
7148 | which can conflict with char $ac_func (); below. | |
7149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7150 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7151 | |
ad6254c5 AK |
7152 | #ifdef __STDC__ |
7153 | # include <limits.h> | |
7154 | #else | |
7155 | # include <assert.h> | |
795ca3e5 | 7156 | #endif |
8a2fc586 AK |
7157 | |
7158 | #undef $ac_func | |
7159 | ||
7a197a62 AK |
7160 | /* Override any GCC internal prototype to avoid an error. |
7161 | Use char because int might match the return type of a GCC | |
7162 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7163 | #ifdef __cplusplus |
ad6254c5 | 7164 | extern "C" |
ad6254c5 | 7165 | #endif |
ad6254c5 AK |
7166 | char $ac_func (); |
7167 | /* The GNU C library defines this for functions which it implements | |
7168 | to always fail with ENOSYS. Some functions are actually named | |
7169 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7170 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7171 | choke me |
795ca3e5 AK |
7172 | #endif |
7173 | ||
ad6254c5 AK |
7174 | int |
7175 | main () | |
7176 | { | |
7a197a62 | 7177 | return $ac_func (); |
ad6254c5 AK |
7178 | ; |
7179 | return 0; | |
7180 | } | |
7181 | _ACEOF | |
7182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7183 | if { (ac_try="$ac_link" |
7184 | case "(($ac_try" in | |
7185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7186 | *) ac_try_echo=$ac_try;; | |
7187 | esac | |
ec6a6fbe AK |
7188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7189 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7190 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7191 | ac_status=$? |
8a2fc586 AK |
7192 | grep -v '^ *+' conftest.er1 >conftest.err |
7193 | rm -f conftest.er1 | |
7194 | cat conftest.err >&5 | |
ec6a6fbe | 7195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7196 | (exit $ac_status); } && { |
7197 | test -z "$ac_c_werror_flag" || | |
7198 | test ! -s conftest.err | |
ec6a6fbe AK |
7199 | } && test -s conftest$ac_exeext && { |
7200 | test "$cross_compiling" = yes || | |
7201 | $as_test_x conftest$ac_exeext | |
7202 | }; then | |
ad6254c5 | 7203 | eval "$as_ac_var=yes" |
795ca3e5 | 7204 | else |
ec6a6fbe | 7205 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7206 | sed 's/^/| /' conftest.$ac_ext >&5 |
7207 | ||
7a197a62 | 7208 | eval "$as_ac_var=no" |
795ca3e5 | 7209 | fi |
7a197a62 | 7210 | |
ec6a6fbe | 7211 | rm -rf conftest.dSYM |
25fbec5b | 7212 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7213 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7214 | fi |
ec6a6fbe AK |
7215 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7216 | $as_echo "$as_val"'` | |
7217 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7218 | $as_echo "$ac_res" >&6; } | |
7219 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7220 | $as_echo "$as_val"'` | |
7221 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7222 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7223 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7224 | _ACEOF |
7225 | ||
7226 | fi | |
7227 | done | |
7228 | ||
7229 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7230 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7231 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7232 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7233 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7234 | else |
7235 | if test "$cross_compiling" = yes; then | |
7236 | ac_cv_func_fork_works=cross | |
7237 | else | |
7238 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7239 | /* confdefs.h. */ |
7240 | _ACEOF | |
7241 | cat confdefs.h >>conftest.$ac_ext | |
7242 | cat >>conftest.$ac_ext <<_ACEOF | |
7243 | /* end confdefs.h. */ | |
7244 | $ac_includes_default | |
7245 | int | |
7246 | main () | |
7247 | { | |
7248 | ||
7249 | /* By Ruediger Kuhlmann. */ | |
7250 | return fork () < 0; | |
7251 | ||
7252 | ; | |
7253 | return 0; | |
7254 | } | |
ad6254c5 AK |
7255 | _ACEOF |
7256 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7257 | if { (ac_try="$ac_link" |
7258 | case "(($ac_try" in | |
7259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7260 | *) ac_try_echo=$ac_try;; | |
7261 | esac | |
ec6a6fbe AK |
7262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7263 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7264 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7265 | ac_status=$? |
ec6a6fbe | 7266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7268 | { (case "(($ac_try" in |
7269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7270 | *) ac_try_echo=$ac_try;; | |
7271 | esac | |
ec6a6fbe AK |
7272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7273 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7274 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7275 | ac_status=$? |
ec6a6fbe | 7276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7277 | (exit $ac_status); }; }; then |
7278 | ac_cv_func_fork_works=yes | |
7279 | else | |
ec6a6fbe AK |
7280 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7281 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7282 | sed 's/^/| /' conftest.$ac_ext >&5 |
7283 | ||
7284 | ( exit $ac_status ) | |
7285 | ac_cv_func_fork_works=no | |
7286 | fi | |
ec6a6fbe | 7287 | rm -rf conftest.dSYM |
7a197a62 | 7288 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7289 | fi |
7a197a62 AK |
7290 | |
7291 | ||
ad6254c5 | 7292 | fi |
ec6a6fbe AK |
7293 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7294 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7295 | |
7296 | else | |
7297 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7298 | fi | |
7299 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7300 | case $host in | |
7301 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7302 | # Override, as these systems have only a dummy fork() stub | |
7303 | ac_cv_func_fork_works=no | |
7304 | ;; | |
7305 | *) | |
7306 | ac_cv_func_fork_works=yes | |
7307 | ;; | |
7308 | esac | |
ec6a6fbe AK |
7309 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7310 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7311 | fi |
7312 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7313 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7314 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7315 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7316 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7317 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7318 | else |
7319 | if test "$cross_compiling" = yes; then | |
7320 | ac_cv_func_vfork_works=cross | |
7321 | else | |
7322 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7323 | /* confdefs.h. */ |
7324 | _ACEOF | |
7325 | cat confdefs.h >>conftest.$ac_ext | |
7326 | cat >>conftest.$ac_ext <<_ACEOF | |
7327 | /* end confdefs.h. */ | |
7328 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7329 | $ac_includes_default |
ad6254c5 | 7330 | #include <sys/wait.h> |
25fbec5b | 7331 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7332 | # include <vfork.h> |
7333 | #endif | |
7334 | /* On some sparc systems, changes by the child to local and incoming | |
7335 | argument registers are propagated back to the parent. The compiler | |
7336 | is told about this with #include <vfork.h>, but some compilers | |
7337 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7338 | static variable whose address is put into a register that is | |
7339 | clobbered by the vfork. */ | |
7340 | static void | |
7341 | #ifdef __cplusplus | |
7342 | sparc_address_test (int arg) | |
7343 | # else | |
7344 | sparc_address_test (arg) int arg; | |
7345 | #endif | |
7346 | { | |
7347 | static pid_t child; | |
7348 | if (!child) { | |
7349 | child = vfork (); | |
7350 | if (child < 0) { | |
7351 | perror ("vfork"); | |
7352 | _exit(2); | |
7353 | } | |
7354 | if (!child) { | |
7355 | arg = getpid(); | |
7356 | write(-1, "", 0); | |
7357 | _exit (arg); | |
7358 | } | |
7359 | } | |
7360 | } | |
7361 | ||
7362 | int | |
7363 | main () | |
7364 | { | |
7365 | pid_t parent = getpid (); | |
7366 | pid_t child; | |
7367 | ||
7368 | sparc_address_test (0); | |
7369 | ||
7370 | child = vfork (); | |
7371 | ||
7372 | if (child == 0) { | |
7373 | /* Here is another test for sparc vfork register problems. This | |
7374 | test uses lots of local variables, at least as many local | |
7375 | variables as main has allocated so far including compiler | |
7376 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7377 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7378 | reuse the register of parent for one of the local variables, | |
7379 | since it will think that parent can't possibly be used any more | |
7380 | in this routine. Assigning to the local variable will thus | |
7381 | munge parent in the parent process. */ | |
7382 | pid_t | |
7383 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7384 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7385 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7386 | use the same hardware register for all 8 local variables. */ | |
7387 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7388 | || p != p5 || p != p6 || p != p7) | |
7389 | _exit(1); | |
7390 | ||
7391 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7392 | from child file descriptors. If the child closes a descriptor | |
7393 | before it execs or exits, this munges the parent's descriptor | |
7394 | as well. Test for this by closing stdout in the child. */ | |
7395 | _exit(close(fileno(stdout)) != 0); | |
7396 | } else { | |
7397 | int status; | |
7398 | struct stat st; | |
7399 | ||
7400 | while (wait(&status) != child) | |
7401 | ; | |
7a197a62 | 7402 | return ( |
ad6254c5 AK |
7403 | /* Was there some problem with vforking? */ |
7404 | child < 0 | |
7405 | ||
7406 | /* Did the child fail? (This shouldn't happen.) */ | |
7407 | || status | |
7408 | ||
7409 | /* Did the vfork/compiler bug occur? */ | |
7410 | || parent != getpid() | |
7411 | ||
7412 | /* Did the file descriptor bug occur? */ | |
7413 | || fstat(fileno(stdout), &st) != 0 | |
7414 | ); | |
7415 | } | |
7416 | } | |
7417 | _ACEOF | |
7418 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7419 | if { (ac_try="$ac_link" |
7420 | case "(($ac_try" in | |
7421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7422 | *) ac_try_echo=$ac_try;; | |
7423 | esac | |
ec6a6fbe AK |
7424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7425 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7426 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7427 | ac_status=$? |
ec6a6fbe | 7428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7430 | { (case "(($ac_try" in |
7431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7432 | *) ac_try_echo=$ac_try;; | |
7433 | esac | |
ec6a6fbe AK |
7434 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7435 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7436 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7437 | ac_status=$? |
ec6a6fbe | 7438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7439 | (exit $ac_status); }; }; then |
7440 | ac_cv_func_vfork_works=yes | |
7441 | else | |
ec6a6fbe AK |
7442 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7443 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7444 | sed 's/^/| /' conftest.$ac_ext >&5 |
7445 | ||
7446 | ( exit $ac_status ) | |
7447 | ac_cv_func_vfork_works=no | |
7448 | fi | |
ec6a6fbe | 7449 | rm -rf conftest.dSYM |
7a197a62 | 7450 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7451 | fi |
7a197a62 AK |
7452 | |
7453 | ||
ad6254c5 | 7454 | fi |
ec6a6fbe AK |
7455 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7456 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7457 | |
7458 | fi; | |
7459 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7460 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7461 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7462 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7463 | fi |
7464 | ||
7465 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7466 | ||
7467 | cat >>confdefs.h <<\_ACEOF | |
7468 | #define HAVE_WORKING_VFORK 1 | |
7469 | _ACEOF | |
7470 | ||
7471 | else | |
7472 | ||
7473 | cat >>confdefs.h <<\_ACEOF | |
7474 | #define vfork fork | |
7475 | _ACEOF | |
7476 | ||
7477 | fi | |
7478 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7479 | ||
7480 | cat >>confdefs.h <<\_ACEOF | |
7481 | #define HAVE_WORKING_FORK 1 | |
7482 | _ACEOF | |
7483 | ||
7484 | fi | |
7485 | ||
ec6a6fbe AK |
7486 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7487 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7488 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7489 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7490 | else |
7491 | rm -f conftest.sym conftest.file | |
7492 | echo >conftest.file | |
7493 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7494 | if test "$cross_compiling" = yes; then | |
7495 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7496 | else | |
7497 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7498 | /* confdefs.h. */ |
7499 | _ACEOF | |
7500 | cat confdefs.h >>conftest.$ac_ext | |
7501 | cat >>conftest.$ac_ext <<_ACEOF | |
7502 | /* end confdefs.h. */ | |
7503 | $ac_includes_default | |
7504 | int | |
7505 | main () | |
7506 | { | |
7507 | struct stat sbuf; | |
7508 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7509 | That is better in the sense that it means we will not |
7510 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7511 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7512 | ; |
7513 | return 0; | |
7514 | } | |
7515 | _ACEOF | |
7516 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7517 | if { (ac_try="$ac_link" |
7518 | case "(($ac_try" in | |
7519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7520 | *) ac_try_echo=$ac_try;; | |
7521 | esac | |
ec6a6fbe AK |
7522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7523 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7524 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7525 | ac_status=$? |
ec6a6fbe | 7526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7528 | { (case "(($ac_try" in |
7529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7530 | *) ac_try_echo=$ac_try;; | |
7531 | esac | |
ec6a6fbe AK |
7532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7533 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7534 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7535 | ac_status=$? |
ec6a6fbe | 7536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7537 | (exit $ac_status); }; }; then |
7538 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7539 | else | |
ec6a6fbe AK |
7540 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7541 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7542 | sed 's/^/| /' conftest.$ac_ext >&5 |
7543 | ||
7544 | ( exit $ac_status ) | |
7545 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7546 | fi | |
ec6a6fbe | 7547 | rm -rf conftest.dSYM |
7a197a62 | 7548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7549 | fi |
7a197a62 AK |
7550 | |
7551 | ||
ad6254c5 AK |
7552 | else |
7553 | # If the `ln -s' command failed, then we probably don't even | |
7554 | # have an lstat function. | |
7555 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7556 | fi | |
7557 | rm -f conftest.sym conftest.file | |
7558 | ||
7559 | fi | |
ec6a6fbe AK |
7560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7561 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7562 | |
7563 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7564 | ||
7565 | cat >>confdefs.h <<_ACEOF | |
7566 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7567 | _ACEOF | |
7568 | ||
7569 | ||
7570 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7571 | case " $LIBOBJS " in |
8a2fc586 | 7572 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7573 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7574 | ;; | |
8a2fc586 AK |
7575 | esac |
7576 | ||
ad6254c5 AK |
7577 | fi |
7578 | ||
ec6a6fbe AK |
7579 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7580 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7581 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7582 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7583 | else |
7584 | if test "$cross_compiling" = yes; then | |
7585 | ac_cv_func_lstat_empty_string_bug=yes | |
7586 | else | |
7587 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7588 | /* confdefs.h. */ |
7589 | _ACEOF | |
7590 | cat confdefs.h >>conftest.$ac_ext | |
7591 | cat >>conftest.$ac_ext <<_ACEOF | |
7592 | /* end confdefs.h. */ | |
7593 | $ac_includes_default | |
7594 | int | |
7595 | main () | |
7596 | { | |
7597 | struct stat sbuf; | |
7a197a62 | 7598 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7599 | ; |
7600 | return 0; | |
7601 | } | |
7602 | _ACEOF | |
7603 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7604 | if { (ac_try="$ac_link" |
7605 | case "(($ac_try" in | |
7606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7607 | *) ac_try_echo=$ac_try;; | |
7608 | esac | |
ec6a6fbe AK |
7609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7610 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7611 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7612 | ac_status=$? |
ec6a6fbe | 7613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7614 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7615 | { (case "(($ac_try" in |
7616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7617 | *) ac_try_echo=$ac_try;; | |
7618 | esac | |
ec6a6fbe AK |
7619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7620 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7621 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7622 | ac_status=$? |
ec6a6fbe | 7623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7624 | (exit $ac_status); }; }; then |
7a197a62 | 7625 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7626 | else |
ec6a6fbe AK |
7627 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7628 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7629 | sed 's/^/| /' conftest.$ac_ext >&5 |
7630 | ||
7631 | ( exit $ac_status ) | |
7a197a62 | 7632 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7633 | fi |
ec6a6fbe | 7634 | rm -rf conftest.dSYM |
7a197a62 | 7635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7636 | fi |
7a197a62 AK |
7637 | |
7638 | ||
ad6254c5 | 7639 | fi |
ec6a6fbe AK |
7640 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7641 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7642 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7643 | case " $LIBOBJS " in |
8a2fc586 | 7644 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7645 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7646 | ;; | |
8a2fc586 AK |
7647 | esac |
7648 | ||
ad6254c5 AK |
7649 | |
7650 | cat >>confdefs.h <<_ACEOF | |
7651 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7652 | _ACEOF | |
7653 | ||
7654 | fi | |
7655 | ||
7656 | ||
7657 | for ac_header in stdlib.h | |
7658 | do | |
ec6a6fbe | 7659 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7660 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7661 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7662 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7664 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7665 | fi |
ec6a6fbe AK |
7666 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7667 | $as_echo "$as_val"'` | |
7668 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7669 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7670 | else |
7671 | # Is the header compilable? | |
ec6a6fbe AK |
7672 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7673 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7674 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7675 | /* confdefs.h. */ |
7676 | _ACEOF | |
7677 | cat confdefs.h >>conftest.$ac_ext | |
7678 | cat >>conftest.$ac_ext <<_ACEOF | |
7679 | /* end confdefs.h. */ | |
7680 | $ac_includes_default | |
7681 | #include <$ac_header> | |
7682 | _ACEOF | |
7683 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7684 | if { (ac_try="$ac_compile" |
7685 | case "(($ac_try" in | |
7686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7687 | *) ac_try_echo=$ac_try;; | |
7688 | esac | |
ec6a6fbe AK |
7689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7690 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7691 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7692 | ac_status=$? |
8a2fc586 AK |
7693 | grep -v '^ *+' conftest.er1 >conftest.err |
7694 | rm -f conftest.er1 | |
7695 | cat conftest.err >&5 | |
ec6a6fbe | 7696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7697 | (exit $ac_status); } && { |
7698 | test -z "$ac_c_werror_flag" || | |
7699 | test ! -s conftest.err | |
7700 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7701 | ac_header_compiler=yes |
7702 | else | |
ec6a6fbe | 7703 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7704 | sed 's/^/| /' conftest.$ac_ext >&5 |
7705 | ||
7a197a62 | 7706 | ac_header_compiler=no |
ad6254c5 | 7707 | fi |
7a197a62 AK |
7708 | |
7709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7710 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7711 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7712 | |
7713 | # Is the header present? | |
ec6a6fbe AK |
7714 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7715 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7716 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7717 | /* confdefs.h. */ |
7718 | _ACEOF | |
7719 | cat confdefs.h >>conftest.$ac_ext | |
7720 | cat >>conftest.$ac_ext <<_ACEOF | |
7721 | /* end confdefs.h. */ | |
7722 | #include <$ac_header> | |
7723 | _ACEOF | |
7a197a62 AK |
7724 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7725 | case "(($ac_try" in | |
7726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7727 | *) ac_try_echo=$ac_try;; | |
7728 | esac | |
ec6a6fbe AK |
7729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7730 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7731 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7732 | ac_status=$? |
7733 | grep -v '^ *+' conftest.er1 >conftest.err | |
7734 | rm -f conftest.er1 | |
7735 | cat conftest.err >&5 | |
ec6a6fbe | 7736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7737 | (exit $ac_status); } >/dev/null && { |
7738 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7739 | test ! -s conftest.err | |
7740 | }; then | |
ad6254c5 AK |
7741 | ac_header_preproc=yes |
7742 | else | |
ec6a6fbe | 7743 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7744 | sed 's/^/| /' conftest.$ac_ext >&5 |
7745 | ||
7746 | ac_header_preproc=no | |
7747 | fi | |
7a197a62 | 7748 | |
ad6254c5 | 7749 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7750 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7751 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7752 | |
7753 | # So? What about this header? | |
8a2fc586 AK |
7754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7755 | yes:no: ) | |
ec6a6fbe AK |
7756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7757 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7759 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7760 | ac_header_preproc=yes |
ad6254c5 | 7761 | ;; |
8a2fc586 | 7762 | no:yes:* ) |
ec6a6fbe AK |
7763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7764 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7766 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7768 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7770 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7772 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7774 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7775 | |
ad6254c5 AK |
7776 | ;; |
7777 | esac | |
ec6a6fbe AK |
7778 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7779 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7781 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7782 | else |
8a2fc586 | 7783 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7784 | fi |
ec6a6fbe AK |
7785 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7786 | $as_echo "$as_val"'` | |
7787 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7788 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7789 | |
7790 | fi | |
ec6a6fbe AK |
7791 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7792 | $as_echo "$as_val"'` | |
7793 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7794 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7795 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7796 | _ACEOF |
7797 | ||
7798 | fi | |
7799 | ||
7800 | done | |
7801 | ||
ec6a6fbe AK |
7802 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7803 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7804 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7805 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7806 | else |
7807 | if test "$cross_compiling" = yes; then | |
7808 | ac_cv_func_malloc_0_nonnull=no | |
7809 | else | |
7810 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7811 | /* confdefs.h. */ |
7812 | _ACEOF | |
7813 | cat confdefs.h >>conftest.$ac_ext | |
7814 | cat >>conftest.$ac_ext <<_ACEOF | |
7815 | /* end confdefs.h. */ | |
25fbec5b | 7816 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7817 | # include <stdlib.h> |
7818 | #else | |
7819 | char *malloc (); | |
7820 | #endif | |
7821 | ||
7822 | int | |
7823 | main () | |
7824 | { | |
7a197a62 | 7825 | return ! malloc (0); |
ad6254c5 AK |
7826 | ; |
7827 | return 0; | |
7828 | } | |
7829 | _ACEOF | |
7830 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7831 | if { (ac_try="$ac_link" |
7832 | case "(($ac_try" in | |
7833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7834 | *) ac_try_echo=$ac_try;; | |
7835 | esac | |
ec6a6fbe AK |
7836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7837 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7838 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7839 | ac_status=$? |
ec6a6fbe | 7840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7842 | { (case "(($ac_try" in |
7843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7844 | *) ac_try_echo=$ac_try;; | |
7845 | esac | |
ec6a6fbe AK |
7846 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7847 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7848 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7849 | ac_status=$? |
ec6a6fbe | 7850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7851 | (exit $ac_status); }; }; then |
7852 | ac_cv_func_malloc_0_nonnull=yes | |
7853 | else | |
ec6a6fbe AK |
7854 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7855 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7856 | sed 's/^/| /' conftest.$ac_ext >&5 |
7857 | ||
7858 | ( exit $ac_status ) | |
7859 | ac_cv_func_malloc_0_nonnull=no | |
7860 | fi | |
ec6a6fbe | 7861 | rm -rf conftest.dSYM |
7a197a62 | 7862 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7863 | fi |
7a197a62 AK |
7864 | |
7865 | ||
ad6254c5 | 7866 | fi |
ec6a6fbe AK |
7867 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7868 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7869 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7870 | ||
7871 | cat >>confdefs.h <<\_ACEOF | |
7872 | #define HAVE_MALLOC 1 | |
7873 | _ACEOF | |
7874 | ||
7875 | else | |
7876 | cat >>confdefs.h <<\_ACEOF | |
7877 | #define HAVE_MALLOC 0 | |
7878 | _ACEOF | |
7879 | ||
7a197a62 | 7880 | case " $LIBOBJS " in |
8a2fc586 | 7881 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7882 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7883 | ;; | |
8a2fc586 AK |
7884 | esac |
7885 | ||
ad6254c5 AK |
7886 | |
7887 | cat >>confdefs.h <<\_ACEOF | |
7888 | #define malloc rpl_malloc | |
7889 | _ACEOF | |
7890 | ||
7891 | fi | |
7892 | ||
7893 | ||
7894 | ||
ec6a6fbe AK |
7895 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7896 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7897 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7898 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7899 | else |
7900 | if test "$cross_compiling" = yes; then | |
7901 | ac_cv_func_memcmp_working=no | |
7902 | else | |
7903 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7904 | /* confdefs.h. */ |
7905 | _ACEOF | |
7906 | cat confdefs.h >>conftest.$ac_ext | |
7907 | cat >>conftest.$ac_ext <<_ACEOF | |
7908 | /* end confdefs.h. */ | |
8a2fc586 | 7909 | $ac_includes_default |
ad6254c5 AK |
7910 | int |
7911 | main () | |
7912 | { | |
7913 | ||
7914 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7915 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7916 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7917 | return 1; |
ad6254c5 AK |
7918 | |
7919 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7920 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7921 | William Lewis provided this test program. */ | |
7922 | { | |
7923 | char foo[21]; | |
7924 | char bar[21]; | |
7925 | int i; | |
7926 | for (i = 0; i < 4; i++) | |
7927 | { | |
8a2fc586 AK |
7928 | char *a = foo + i; |
7929 | char *b = bar + i; | |
7930 | strcpy (a, "--------01111111"); | |
7931 | strcpy (b, "--------10000000"); | |
7932 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7933 | return 1; |
ad6254c5 | 7934 | } |
7a197a62 | 7935 | return 0; |
ad6254c5 AK |
7936 | } |
7937 | ||
7938 | ; | |
7939 | return 0; | |
7940 | } | |
7941 | _ACEOF | |
7942 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7943 | if { (ac_try="$ac_link" |
7944 | case "(($ac_try" in | |
7945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7946 | *) ac_try_echo=$ac_try;; | |
7947 | esac | |
ec6a6fbe AK |
7948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7949 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7950 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7951 | ac_status=$? |
ec6a6fbe | 7952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7953 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7954 | { (case "(($ac_try" in |
7955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7956 | *) ac_try_echo=$ac_try;; | |
7957 | esac | |
ec6a6fbe AK |
7958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7959 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7960 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7961 | ac_status=$? |
ec6a6fbe | 7962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7963 | (exit $ac_status); }; }; then |
7964 | ac_cv_func_memcmp_working=yes | |
7965 | else | |
ec6a6fbe AK |
7966 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7967 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7968 | sed 's/^/| /' conftest.$ac_ext >&5 |
7969 | ||
7970 | ( exit $ac_status ) | |
7971 | ac_cv_func_memcmp_working=no | |
7972 | fi | |
ec6a6fbe | 7973 | rm -rf conftest.dSYM |
7a197a62 | 7974 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7975 | fi |
7a197a62 AK |
7976 | |
7977 | ||
ad6254c5 | 7978 | fi |
ec6a6fbe AK |
7979 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7980 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7981 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7982 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7983 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7984 | ;; | |
8a2fc586 AK |
7985 | esac |
7986 | ||
ad6254c5 AK |
7987 | |
7988 | ||
7989 | ||
7990 | for ac_header in stdlib.h unistd.h | |
7991 | do | |
ec6a6fbe | 7992 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7994 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7995 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7997 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7998 | fi |
ec6a6fbe AK |
7999 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8000 | $as_echo "$as_val"'` | |
8001 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8002 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8003 | else |
8004 | # Is the header compilable? | |
ec6a6fbe AK |
8005 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8006 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8007 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8008 | /* confdefs.h. */ |
8009 | _ACEOF | |
8010 | cat confdefs.h >>conftest.$ac_ext | |
8011 | cat >>conftest.$ac_ext <<_ACEOF | |
8012 | /* end confdefs.h. */ | |
8013 | $ac_includes_default | |
8014 | #include <$ac_header> | |
8015 | _ACEOF | |
8016 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8017 | if { (ac_try="$ac_compile" |
8018 | case "(($ac_try" in | |
8019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8020 | *) ac_try_echo=$ac_try;; | |
8021 | esac | |
ec6a6fbe AK |
8022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8023 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8024 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8025 | ac_status=$? |
8a2fc586 AK |
8026 | grep -v '^ *+' conftest.er1 >conftest.err |
8027 | rm -f conftest.er1 | |
8028 | cat conftest.err >&5 | |
ec6a6fbe | 8029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8030 | (exit $ac_status); } && { |
8031 | test -z "$ac_c_werror_flag" || | |
8032 | test ! -s conftest.err | |
8033 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8034 | ac_header_compiler=yes |
8035 | else | |
ec6a6fbe | 8036 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8037 | sed 's/^/| /' conftest.$ac_ext >&5 |
8038 | ||
7a197a62 | 8039 | ac_header_compiler=no |
ad6254c5 | 8040 | fi |
7a197a62 AK |
8041 | |
8042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8043 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8044 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8045 | |
8046 | # Is the header present? | |
ec6a6fbe AK |
8047 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8048 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8049 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8050 | /* confdefs.h. */ |
8051 | _ACEOF | |
8052 | cat confdefs.h >>conftest.$ac_ext | |
8053 | cat >>conftest.$ac_ext <<_ACEOF | |
8054 | /* end confdefs.h. */ | |
8055 | #include <$ac_header> | |
8056 | _ACEOF | |
7a197a62 AK |
8057 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8058 | case "(($ac_try" in | |
8059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8060 | *) ac_try_echo=$ac_try;; | |
8061 | esac | |
ec6a6fbe AK |
8062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8063 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8064 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8065 | ac_status=$? |
8066 | grep -v '^ *+' conftest.er1 >conftest.err | |
8067 | rm -f conftest.er1 | |
8068 | cat conftest.err >&5 | |
ec6a6fbe | 8069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8070 | (exit $ac_status); } >/dev/null && { |
8071 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8072 | test ! -s conftest.err | |
8073 | }; then | |
ad6254c5 AK |
8074 | ac_header_preproc=yes |
8075 | else | |
ec6a6fbe | 8076 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8077 | sed 's/^/| /' conftest.$ac_ext >&5 |
8078 | ||
8079 | ac_header_preproc=no | |
8080 | fi | |
7a197a62 | 8081 | |
ad6254c5 | 8082 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8083 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8084 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8085 | |
8086 | # So? What about this header? | |
8a2fc586 AK |
8087 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8088 | yes:no: ) | |
ec6a6fbe AK |
8089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8090 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8092 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8093 | ac_header_preproc=yes |
ad6254c5 | 8094 | ;; |
8a2fc586 | 8095 | no:yes:* ) |
ec6a6fbe AK |
8096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8097 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8099 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8100 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8101 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8102 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8103 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8104 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8105 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8106 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8107 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8108 | |
ad6254c5 AK |
8109 | ;; |
8110 | esac | |
ec6a6fbe AK |
8111 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8112 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8113 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8114 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8115 | else |
8a2fc586 | 8116 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8117 | fi |
ec6a6fbe AK |
8118 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8119 | $as_echo "$as_val"'` | |
8120 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8121 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8122 | |
8123 | fi | |
ec6a6fbe AK |
8124 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8125 | $as_echo "$as_val"'` | |
8126 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8127 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8128 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8129 | _ACEOF |
8130 | ||
8131 | fi | |
8132 | ||
8133 | done | |
8134 | ||
8135 | ||
8136 | for ac_func in getpagesize | |
8137 | do | |
ec6a6fbe AK |
8138 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8139 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8140 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8141 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8142 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8143 | else |
8144 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8145 | /* confdefs.h. */ |
8146 | _ACEOF | |
8147 | cat confdefs.h >>conftest.$ac_ext | |
8148 | cat >>conftest.$ac_ext <<_ACEOF | |
8149 | /* end confdefs.h. */ | |
8a2fc586 AK |
8150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8152 | #define $ac_func innocuous_$ac_func | |
8153 | ||
ad6254c5 AK |
8154 | /* System header to define __stub macros and hopefully few prototypes, |
8155 | which can conflict with char $ac_func (); below. | |
8156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8157 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8158 | |
ad6254c5 AK |
8159 | #ifdef __STDC__ |
8160 | # include <limits.h> | |
8161 | #else | |
8162 | # include <assert.h> | |
8163 | #endif | |
8a2fc586 AK |
8164 | |
8165 | #undef $ac_func | |
8166 | ||
7a197a62 AK |
8167 | /* Override any GCC internal prototype to avoid an error. |
8168 | Use char because int might match the return type of a GCC | |
8169 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8170 | #ifdef __cplusplus |
8171 | extern "C" | |
ad6254c5 | 8172 | #endif |
ad6254c5 AK |
8173 | char $ac_func (); |
8174 | /* The GNU C library defines this for functions which it implements | |
8175 | to always fail with ENOSYS. Some functions are actually named | |
8176 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8177 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8178 | choke me |
ad6254c5 AK |
8179 | #endif |
8180 | ||
8181 | int | |
8182 | main () | |
8183 | { | |
7a197a62 | 8184 | return $ac_func (); |
ad6254c5 AK |
8185 | ; |
8186 | return 0; | |
8187 | } | |
8188 | _ACEOF | |
8189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8190 | if { (ac_try="$ac_link" |
8191 | case "(($ac_try" in | |
8192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8193 | *) ac_try_echo=$ac_try;; | |
8194 | esac | |
ec6a6fbe AK |
8195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8196 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8197 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8198 | ac_status=$? |
8a2fc586 AK |
8199 | grep -v '^ *+' conftest.er1 >conftest.err |
8200 | rm -f conftest.er1 | |
8201 | cat conftest.err >&5 | |
ec6a6fbe | 8202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8203 | (exit $ac_status); } && { |
8204 | test -z "$ac_c_werror_flag" || | |
8205 | test ! -s conftest.err | |
ec6a6fbe AK |
8206 | } && test -s conftest$ac_exeext && { |
8207 | test "$cross_compiling" = yes || | |
8208 | $as_test_x conftest$ac_exeext | |
8209 | }; then | |
ad6254c5 AK |
8210 | eval "$as_ac_var=yes" |
8211 | else | |
ec6a6fbe | 8212 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8213 | sed 's/^/| /' conftest.$ac_ext >&5 |
8214 | ||
7a197a62 | 8215 | eval "$as_ac_var=no" |
ad6254c5 | 8216 | fi |
7a197a62 | 8217 | |
ec6a6fbe | 8218 | rm -rf conftest.dSYM |
25fbec5b | 8219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8220 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8221 | fi |
ec6a6fbe AK |
8222 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8223 | $as_echo "$as_val"'` | |
8224 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8225 | $as_echo "$ac_res" >&6; } | |
8226 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8227 | $as_echo "$as_val"'` | |
8228 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8229 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8230 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8231 | _ACEOF |
8232 | ||
8233 | fi | |
8234 | done | |
8235 | ||
ec6a6fbe AK |
8236 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8237 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8238 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8239 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8240 | else |
8241 | if test "$cross_compiling" = yes; then | |
8242 | ac_cv_func_mmap_fixed_mapped=no | |
8243 | else | |
8244 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8245 | /* confdefs.h. */ |
8246 | _ACEOF | |
8247 | cat confdefs.h >>conftest.$ac_ext | |
8248 | cat >>conftest.$ac_ext <<_ACEOF | |
8249 | /* end confdefs.h. */ | |
8250 | $ac_includes_default | |
8251 | /* malloc might have been renamed as rpl_malloc. */ | |
8252 | #undef malloc | |
8253 | ||
8254 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8255 | Here is a matrix of mmap possibilities: | |
8256 | mmap private not fixed | |
8257 | mmap private fixed at somewhere currently unmapped | |
8258 | mmap private fixed at somewhere already mapped | |
8259 | mmap shared not fixed | |
8260 | mmap shared fixed at somewhere currently unmapped | |
8261 | mmap shared fixed at somewhere already mapped | |
8262 | For private mappings, we should verify that changes cannot be read() | |
8263 | back from the file, nor mmap's back from the file at a different | |
8264 | address. (There have been systems where private was not correctly | |
8265 | implemented like the infamous i386 svr4.0, and systems where the | |
8266 | VM page cache was not coherent with the file system buffer cache | |
8267 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8268 | For shared mappings, we should conversely verify that changes get | |
8269 | propagated back to all the places they're supposed to be. | |
8270 | ||
8271 | Grep wants private fixed already mapped. | |
8272 | The main things grep needs to know about mmap are: | |
8273 | * does it exist and is it safe to write into the mmap'd area | |
8274 | * how to use it (BSD variants) */ | |
8275 | ||
8276 | #include <fcntl.h> | |
8277 | #include <sys/mman.h> | |
8278 | ||
25fbec5b | 8279 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8280 | char *malloc (); |
8281 | #endif | |
8282 | ||
8283 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8284 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8285 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8286 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8287 | # define HAVE_SYS_PARAM_H 1 |
8288 | # endif | |
8289 | ||
8290 | # ifdef _SC_PAGESIZE | |
8291 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8292 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8293 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8294 | # include <sys/param.h> |
8295 | # ifdef EXEC_PAGESIZE | |
8296 | # define getpagesize() EXEC_PAGESIZE | |
8297 | # else /* no EXEC_PAGESIZE */ | |
8298 | # ifdef NBPG | |
8299 | # define getpagesize() NBPG * CLSIZE | |
8300 | # ifndef CLSIZE | |
8301 | # define CLSIZE 1 | |
8302 | # endif /* no CLSIZE */ | |
8303 | # else /* no NBPG */ | |
8304 | # ifdef NBPC | |
8305 | # define getpagesize() NBPC | |
8306 | # else /* no NBPC */ | |
8307 | # ifdef PAGESIZE | |
8308 | # define getpagesize() PAGESIZE | |
8309 | # endif /* PAGESIZE */ | |
8310 | # endif /* no NBPC */ | |
8311 | # endif /* no NBPG */ | |
8312 | # endif /* no EXEC_PAGESIZE */ | |
8313 | # else /* no HAVE_SYS_PARAM_H */ | |
8314 | # define getpagesize() 8192 /* punt totally */ | |
8315 | # endif /* no HAVE_SYS_PARAM_H */ | |
8316 | # endif /* no _SC_PAGESIZE */ | |
8317 | ||
8318 | #endif /* no HAVE_GETPAGESIZE */ | |
8319 | ||
8320 | int | |
8321 | main () | |
8322 | { | |
8323 | char *data, *data2, *data3; | |
8324 | int i, pagesize; | |
8325 | int fd; | |
8326 | ||
8327 | pagesize = getpagesize (); | |
8328 | ||
8329 | /* First, make a file with some known garbage in it. */ | |
8330 | data = (char *) malloc (pagesize); | |
8331 | if (!data) | |
7a197a62 | 8332 | return 1; |
ad6254c5 AK |
8333 | for (i = 0; i < pagesize; ++i) |
8334 | *(data + i) = rand (); | |
8335 | umask (0); | |
8336 | fd = creat ("conftest.mmap", 0600); | |
8337 | if (fd < 0) | |
7a197a62 | 8338 | return 1; |
ad6254c5 | 8339 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8340 | return 1; |
ad6254c5 AK |
8341 | close (fd); |
8342 | ||
8343 | /* Next, try to mmap the file at a fixed address which already has | |
8344 | something else allocated at it. If we can, also make sure that | |
8345 | we see the same garbage. */ | |
8346 | fd = open ("conftest.mmap", O_RDWR); | |
8347 | if (fd < 0) | |
7a197a62 | 8348 | return 1; |
ad6254c5 AK |
8349 | data2 = (char *) malloc (2 * pagesize); |
8350 | if (!data2) | |
7a197a62 AK |
8351 | return 1; |
8352 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8353 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8354 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8355 | return 1; |
ad6254c5 AK |
8356 | for (i = 0; i < pagesize; ++i) |
8357 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8358 | return 1; |
ad6254c5 AK |
8359 | |
8360 | /* Finally, make sure that changes to the mapped area do not | |
8361 | percolate back to the file as seen by read(). (This is a bug on | |
8362 | some variants of i386 svr4.0.) */ | |
8363 | for (i = 0; i < pagesize; ++i) | |
8364 | *(data2 + i) = *(data2 + i) + 1; | |
8365 | data3 = (char *) malloc (pagesize); | |
8366 | if (!data3) | |
7a197a62 | 8367 | return 1; |
ad6254c5 | 8368 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8369 | return 1; |
ad6254c5 AK |
8370 | for (i = 0; i < pagesize; ++i) |
8371 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8372 | return 1; |
ad6254c5 | 8373 | close (fd); |
7a197a62 | 8374 | return 0; |
ad6254c5 AK |
8375 | } |
8376 | _ACEOF | |
8377 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8378 | if { (ac_try="$ac_link" |
8379 | case "(($ac_try" in | |
8380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8381 | *) ac_try_echo=$ac_try;; | |
8382 | esac | |
ec6a6fbe AK |
8383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8384 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8385 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8386 | ac_status=$? |
ec6a6fbe | 8387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8389 | { (case "(($ac_try" in |
8390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8391 | *) ac_try_echo=$ac_try;; | |
8392 | esac | |
ec6a6fbe AK |
8393 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8394 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8395 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8396 | ac_status=$? |
ec6a6fbe | 8397 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8398 | (exit $ac_status); }; }; then |
8399 | ac_cv_func_mmap_fixed_mapped=yes | |
8400 | else | |
ec6a6fbe AK |
8401 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8402 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8403 | sed 's/^/| /' conftest.$ac_ext >&5 |
8404 | ||
8405 | ( exit $ac_status ) | |
8406 | ac_cv_func_mmap_fixed_mapped=no | |
8407 | fi | |
ec6a6fbe | 8408 | rm -rf conftest.dSYM |
7a197a62 | 8409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8410 | fi |
7a197a62 AK |
8411 | |
8412 | ||
ad6254c5 | 8413 | fi |
ec6a6fbe AK |
8414 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8415 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8416 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8417 | ||
8418 | cat >>confdefs.h <<\_ACEOF | |
8419 | #define HAVE_MMAP 1 | |
8420 | _ACEOF | |
8421 | ||
8422 | fi | |
8423 | rm -f conftest.mmap | |
8424 | ||
ec6a6fbe AK |
8425 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8426 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8427 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8428 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8429 | else |
8430 | if test "$cross_compiling" = yes; then | |
8431 | ac_cv_func_stat_empty_string_bug=yes | |
8432 | else | |
8433 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8434 | /* confdefs.h. */ |
8435 | _ACEOF | |
8436 | cat confdefs.h >>conftest.$ac_ext | |
8437 | cat >>conftest.$ac_ext <<_ACEOF | |
8438 | /* end confdefs.h. */ | |
8439 | $ac_includes_default | |
8440 | int | |
8441 | main () | |
8442 | { | |
8443 | struct stat sbuf; | |
7a197a62 | 8444 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8445 | ; |
8446 | return 0; | |
8447 | } | |
8448 | _ACEOF | |
8449 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8450 | if { (ac_try="$ac_link" |
8451 | case "(($ac_try" in | |
8452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8453 | *) ac_try_echo=$ac_try;; | |
8454 | esac | |
ec6a6fbe AK |
8455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8456 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8457 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8458 | ac_status=$? |
ec6a6fbe | 8459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8460 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8461 | { (case "(($ac_try" in |
8462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8463 | *) ac_try_echo=$ac_try;; | |
8464 | esac | |
ec6a6fbe AK |
8465 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8466 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8467 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8468 | ac_status=$? |
ec6a6fbe | 8469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8470 | (exit $ac_status); }; }; then |
7a197a62 | 8471 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8472 | else |
ec6a6fbe AK |
8473 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8474 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8475 | sed 's/^/| /' conftest.$ac_ext >&5 |
8476 | ||
8477 | ( exit $ac_status ) | |
7a197a62 | 8478 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8479 | fi |
ec6a6fbe | 8480 | rm -rf conftest.dSYM |
7a197a62 | 8481 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8482 | fi |
7a197a62 AK |
8483 | |
8484 | ||
ad6254c5 | 8485 | fi |
ec6a6fbe AK |
8486 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8487 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8488 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8489 | case " $LIBOBJS " in |
8a2fc586 | 8490 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8491 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8492 | ;; | |
8a2fc586 AK |
8493 | esac |
8494 | ||
ad6254c5 AK |
8495 | |
8496 | cat >>confdefs.h <<_ACEOF | |
8497 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8498 | _ACEOF | |
8499 | ||
8500 | fi | |
8501 | ||
ec6a6fbe AK |
8502 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8503 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8504 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8505 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8506 | else |
8507 | if test "$cross_compiling" = yes; then | |
8508 | ac_cv_func_strtod=no | |
8509 | else | |
8510 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8511 | /* confdefs.h. */ |
8512 | _ACEOF | |
8513 | cat confdefs.h >>conftest.$ac_ext | |
8514 | cat >>conftest.$ac_ext <<_ACEOF | |
8515 | /* end confdefs.h. */ | |
8516 | ||
7a197a62 AK |
8517 | $ac_includes_default |
8518 | #ifndef strtod | |
ad6254c5 | 8519 | double strtod (); |
7a197a62 | 8520 | #endif |
ad6254c5 AK |
8521 | int |
8522 | main() | |
8523 | { | |
8524 | { | |
8525 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8526 | char *string = " +69"; | |
8527 | char *term; | |
8528 | double value; | |
8529 | value = strtod (string, &term); | |
8530 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8531 | return 1; |
ad6254c5 AK |
8532 | } |
8533 | ||
8534 | { | |
8535 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8536 | terminating character under some conditions. */ | |
8537 | char *string = "NaN"; | |
8538 | char *term; | |
8539 | strtod (string, &term); | |
8540 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8541 | return 1; |
ad6254c5 | 8542 | } |
7a197a62 | 8543 | return 0; |
ad6254c5 AK |
8544 | } |
8545 | ||
8546 | _ACEOF | |
8547 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8548 | if { (ac_try="$ac_link" |
8549 | case "(($ac_try" in | |
8550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8551 | *) ac_try_echo=$ac_try;; | |
8552 | esac | |
ec6a6fbe AK |
8553 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8554 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8555 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8556 | ac_status=$? |
ec6a6fbe | 8557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8558 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8559 | { (case "(($ac_try" in |
8560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8561 | *) ac_try_echo=$ac_try;; | |
8562 | esac | |
ec6a6fbe AK |
8563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8564 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8565 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8566 | ac_status=$? |
ec6a6fbe | 8567 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8568 | (exit $ac_status); }; }; then |
8569 | ac_cv_func_strtod=yes | |
8570 | else | |
ec6a6fbe AK |
8571 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8572 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8573 | sed 's/^/| /' conftest.$ac_ext >&5 |
8574 | ||
8575 | ( exit $ac_status ) | |
8576 | ac_cv_func_strtod=no | |
8577 | fi | |
ec6a6fbe | 8578 | rm -rf conftest.dSYM |
7a197a62 | 8579 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8580 | fi |
7a197a62 AK |
8581 | |
8582 | ||
ad6254c5 | 8583 | fi |
ec6a6fbe AK |
8584 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8585 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8586 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8587 | case " $LIBOBJS " in |
8a2fc586 | 8588 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8589 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8590 | ;; | |
8a2fc586 AK |
8591 | esac |
8592 | ||
ec6a6fbe AK |
8593 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8594 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8595 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8596 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8597 | else |
8598 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8599 | /* confdefs.h. */ |
8600 | _ACEOF | |
8601 | cat confdefs.h >>conftest.$ac_ext | |
8602 | cat >>conftest.$ac_ext <<_ACEOF | |
8603 | /* end confdefs.h. */ | |
8a2fc586 AK |
8604 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8606 | #define pow innocuous_pow | |
8607 | ||
ad6254c5 AK |
8608 | /* System header to define __stub macros and hopefully few prototypes, |
8609 | which can conflict with char pow (); below. | |
8610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8611 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8612 | |
ad6254c5 AK |
8613 | #ifdef __STDC__ |
8614 | # include <limits.h> | |
8615 | #else | |
8616 | # include <assert.h> | |
8617 | #endif | |
8a2fc586 AK |
8618 | |
8619 | #undef pow | |
8620 | ||
7a197a62 AK |
8621 | /* Override any GCC internal prototype to avoid an error. |
8622 | Use char because int might match the return type of a GCC | |
8623 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8624 | #ifdef __cplusplus |
8625 | extern "C" | |
ad6254c5 | 8626 | #endif |
ad6254c5 AK |
8627 | char pow (); |
8628 | /* The GNU C library defines this for functions which it implements | |
8629 | to always fail with ENOSYS. Some functions are actually named | |
8630 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8631 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8632 | choke me |
ad6254c5 AK |
8633 | #endif |
8634 | ||
8635 | int | |
8636 | main () | |
8637 | { | |
7a197a62 | 8638 | return pow (); |
ad6254c5 AK |
8639 | ; |
8640 | return 0; | |
8641 | } | |
8642 | _ACEOF | |
8643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8644 | if { (ac_try="$ac_link" |
8645 | case "(($ac_try" in | |
8646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8647 | *) ac_try_echo=$ac_try;; | |
8648 | esac | |
ec6a6fbe AK |
8649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8650 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8651 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8652 | ac_status=$? |
8a2fc586 AK |
8653 | grep -v '^ *+' conftest.er1 >conftest.err |
8654 | rm -f conftest.er1 | |
8655 | cat conftest.err >&5 | |
ec6a6fbe | 8656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8657 | (exit $ac_status); } && { |
8658 | test -z "$ac_c_werror_flag" || | |
8659 | test ! -s conftest.err | |
ec6a6fbe AK |
8660 | } && test -s conftest$ac_exeext && { |
8661 | test "$cross_compiling" = yes || | |
8662 | $as_test_x conftest$ac_exeext | |
8663 | }; then | |
ad6254c5 AK |
8664 | ac_cv_func_pow=yes |
8665 | else | |
ec6a6fbe | 8666 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8667 | sed 's/^/| /' conftest.$ac_ext >&5 |
8668 | ||
7a197a62 | 8669 | ac_cv_func_pow=no |
ad6254c5 | 8670 | fi |
7a197a62 | 8671 | |
ec6a6fbe | 8672 | rm -rf conftest.dSYM |
25fbec5b | 8673 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8674 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8675 | fi |
ec6a6fbe AK |
8676 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8677 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8678 | |
8679 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8680 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8681 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8682 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8683 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8684 | else |
8685 | ac_check_lib_save_LIBS=$LIBS | |
8686 | LIBS="-lm $LIBS" | |
8687 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8688 | /* confdefs.h. */ |
8689 | _ACEOF | |
8690 | cat confdefs.h >>conftest.$ac_ext | |
8691 | cat >>conftest.$ac_ext <<_ACEOF | |
8692 | /* end confdefs.h. */ | |
8693 | ||
7a197a62 AK |
8694 | /* Override any GCC internal prototype to avoid an error. |
8695 | Use char because int might match the return type of a GCC | |
8696 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8697 | #ifdef __cplusplus |
8698 | extern "C" | |
8699 | #endif | |
ad6254c5 AK |
8700 | char pow (); |
8701 | int | |
8702 | main () | |
8703 | { | |
7a197a62 | 8704 | return pow (); |
ad6254c5 AK |
8705 | ; |
8706 | return 0; | |
8707 | } | |
8708 | _ACEOF | |
8709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8710 | if { (ac_try="$ac_link" |
8711 | case "(($ac_try" in | |
8712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8713 | *) ac_try_echo=$ac_try;; | |
8714 | esac | |
ec6a6fbe AK |
8715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8716 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8717 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8718 | ac_status=$? |
8a2fc586 AK |
8719 | grep -v '^ *+' conftest.er1 >conftest.err |
8720 | rm -f conftest.er1 | |
8721 | cat conftest.err >&5 | |
ec6a6fbe | 8722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8723 | (exit $ac_status); } && { |
8724 | test -z "$ac_c_werror_flag" || | |
8725 | test ! -s conftest.err | |
ec6a6fbe AK |
8726 | } && test -s conftest$ac_exeext && { |
8727 | test "$cross_compiling" = yes || | |
8728 | $as_test_x conftest$ac_exeext | |
8729 | }; then | |
ad6254c5 AK |
8730 | ac_cv_lib_m_pow=yes |
8731 | else | |
ec6a6fbe | 8732 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8733 | sed 's/^/| /' conftest.$ac_ext >&5 |
8734 | ||
7a197a62 | 8735 | ac_cv_lib_m_pow=no |
ad6254c5 | 8736 | fi |
7a197a62 | 8737 | |
ec6a6fbe | 8738 | rm -rf conftest.dSYM |
25fbec5b | 8739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8740 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8741 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8742 | fi |
ec6a6fbe AK |
8743 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8744 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8745 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8746 | POW_LIB=-lm |
8747 | else | |
ec6a6fbe AK |
8748 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8749 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8750 | fi |
72b2cb61 | 8751 | |
d0191583 | 8752 | fi |
72b2cb61 | 8753 | |
ad6254c5 AK |
8754 | fi |
8755 | ||
ad6254c5 | 8756 | |
d0191583 JM |
8757 | for ac_func in vprintf |
8758 | do | |
ec6a6fbe AK |
8759 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8760 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8761 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8762 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8763 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8764 | else |
d0191583 JM |
8765 | cat >conftest.$ac_ext <<_ACEOF |
8766 | /* confdefs.h. */ | |
8767 | _ACEOF | |
8768 | cat confdefs.h >>conftest.$ac_ext | |
8769 | cat >>conftest.$ac_ext <<_ACEOF | |
8770 | /* end confdefs.h. */ | |
8771 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8773 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8774 | |
d0191583 JM |
8775 | /* System header to define __stub macros and hopefully few prototypes, |
8776 | which can conflict with char $ac_func (); below. | |
8777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8778 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8779 | |
d0191583 JM |
8780 | #ifdef __STDC__ |
8781 | # include <limits.h> | |
8782 | #else | |
8783 | # include <assert.h> | |
8784 | #endif | |
ad6254c5 | 8785 | |
d0191583 | 8786 | #undef $ac_func |
72b2cb61 | 8787 | |
d0191583 JM |
8788 | /* Override any GCC internal prototype to avoid an error. |
8789 | Use char because int might match the return type of a GCC | |
8790 | builtin and then its argument prototype would still apply. */ | |
8791 | #ifdef __cplusplus | |
8792 | extern "C" | |
8793 | #endif | |
8794 | char $ac_func (); | |
8795 | /* The GNU C library defines this for functions which it implements | |
8796 | to always fail with ENOSYS. Some functions are actually named | |
8797 | something starting with __ and the normal name is an alias. */ | |
8798 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8799 | choke me | |
8800 | #endif | |
8801 | ||
8802 | int | |
8803 | main () | |
8804 | { | |
8805 | return $ac_func (); | |
8806 | ; | |
8807 | return 0; | |
8808 | } | |
72b2cb61 | 8809 | _ACEOF |
d0191583 JM |
8810 | rm -f conftest.$ac_objext conftest$ac_exeext |
8811 | if { (ac_try="$ac_link" | |
8812 | case "(($ac_try" in | |
8813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8814 | *) ac_try_echo=$ac_try;; | |
8815 | esac | |
ec6a6fbe AK |
8816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8817 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8818 | (eval "$ac_link") 2>conftest.er1 |
8819 | ac_status=$? | |
8820 | grep -v '^ *+' conftest.er1 >conftest.err | |
8821 | rm -f conftest.er1 | |
8822 | cat conftest.err >&5 | |
ec6a6fbe | 8823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8824 | (exit $ac_status); } && { |
8825 | test -z "$ac_c_werror_flag" || | |
8826 | test ! -s conftest.err | |
ec6a6fbe AK |
8827 | } && test -s conftest$ac_exeext && { |
8828 | test "$cross_compiling" = yes || | |
8829 | $as_test_x conftest$ac_exeext | |
8830 | }; then | |
d0191583 JM |
8831 | eval "$as_ac_var=yes" |
8832 | else | |
ec6a6fbe | 8833 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8834 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8835 | |
d0191583 | 8836 | eval "$as_ac_var=no" |
ad6254c5 AK |
8837 | fi |
8838 | ||
ec6a6fbe | 8839 | rm -rf conftest.dSYM |
d0191583 JM |
8840 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8841 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8842 | fi |
ec6a6fbe AK |
8843 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8844 | $as_echo "$as_val"'` | |
8845 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8846 | $as_echo "$ac_res" >&6; } | |
8847 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8848 | $as_echo "$as_val"'` | |
8849 | if test "x$as_val" = x""yes; then | |
d0191583 | 8850 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8851 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8852 | _ACEOF |
7a197a62 | 8853 | |
ec6a6fbe AK |
8854 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8855 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8856 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8857 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8858 | else |
d0191583 JM |
8859 | cat >conftest.$ac_ext <<_ACEOF |
8860 | /* confdefs.h. */ | |
8861 | _ACEOF | |
8862 | cat confdefs.h >>conftest.$ac_ext | |
8863 | cat >>conftest.$ac_ext <<_ACEOF | |
8864 | /* end confdefs.h. */ | |
8865 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8867 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8868 | |
d0191583 JM |
8869 | /* System header to define __stub macros and hopefully few prototypes, |
8870 | which can conflict with char _doprnt (); below. | |
8871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8872 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8873 | |
d0191583 JM |
8874 | #ifdef __STDC__ |
8875 | # include <limits.h> | |
8876 | #else | |
8877 | # include <assert.h> | |
8878 | #endif | |
72b2cb61 | 8879 | |
d0191583 JM |
8880 | #undef _doprnt |
8881 | ||
8882 | /* Override any GCC internal prototype to avoid an error. | |
8883 | Use char because int might match the return type of a GCC | |
8884 | builtin and then its argument prototype would still apply. */ | |
8885 | #ifdef __cplusplus | |
8886 | extern "C" | |
8887 | #endif | |
8888 | char _doprnt (); | |
8889 | /* The GNU C library defines this for functions which it implements | |
8890 | to always fail with ENOSYS. Some functions are actually named | |
8891 | something starting with __ and the normal name is an alias. */ | |
8892 | #if defined __stub__doprnt || defined __stub____doprnt | |
8893 | choke me | |
8894 | #endif | |
8895 | ||
8896 | int | |
8897 | main () | |
8898 | { | |
8899 | return _doprnt (); | |
8900 | ; | |
8901 | return 0; | |
8902 | } | |
72b2cb61 | 8903 | _ACEOF |
d0191583 JM |
8904 | rm -f conftest.$ac_objext conftest$ac_exeext |
8905 | if { (ac_try="$ac_link" | |
8906 | case "(($ac_try" in | |
8907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8908 | *) ac_try_echo=$ac_try;; | |
8909 | esac | |
ec6a6fbe AK |
8910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8911 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8912 | (eval "$ac_link") 2>conftest.er1 |
8913 | ac_status=$? | |
8914 | grep -v '^ *+' conftest.er1 >conftest.err | |
8915 | rm -f conftest.er1 | |
8916 | cat conftest.err >&5 | |
ec6a6fbe | 8917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8918 | (exit $ac_status); } && { |
8919 | test -z "$ac_c_werror_flag" || | |
8920 | test ! -s conftest.err | |
ec6a6fbe AK |
8921 | } && test -s conftest$ac_exeext && { |
8922 | test "$cross_compiling" = yes || | |
8923 | $as_test_x conftest$ac_exeext | |
8924 | }; then | |
d0191583 JM |
8925 | ac_cv_func__doprnt=yes |
8926 | else | |
ec6a6fbe | 8927 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8928 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8929 | |
d0191583 | 8930 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8931 | fi |
8932 | ||
ec6a6fbe | 8933 | rm -rf conftest.dSYM |
d0191583 JM |
8934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8935 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8936 | fi |
ec6a6fbe AK |
8937 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8938 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8939 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8940 | |
d0191583 JM |
8941 | cat >>confdefs.h <<\_ACEOF |
8942 | #define HAVE_DOPRNT 1 | |
8943 | _ACEOF | |
ad6254c5 | 8944 | |
7a197a62 AK |
8945 | fi |
8946 | ||
d0191583 JM |
8947 | fi |
8948 | done | |
8b1a3214 | 8949 | |
ad6254c5 | 8950 | |
7a197a62 | 8951 | |
9c961554 | 8952 | ################################################################################ |
ec6a6fbe AK |
8953 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8954 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8955 | # Check whether --enable-static_link was given. |
8956 | if test "${enable_static_link+set}" = set; then | |
8957 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8958 | else | |
8959 | STATIC_LINK=no | |
8960 | fi | |
8961 | ||
ec6a6fbe AK |
8962 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8963 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8964 | |
d0191583 | 8965 | ################################################################################ |
ad6254c5 | 8966 | |
ad6254c5 AK |
8967 | |
8968 | ################################################################################ | |
ec6a6fbe AK |
8969 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8970 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8971 | OWNER="root" |
8972 | ||
8973 | ||
8974 | # Check whether --with-user was given. | |
8975 | if test "${with_user+set}" = set; then | |
8976 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8977 | fi |
8978 | ||
ec6a6fbe AK |
8979 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8980 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8981 | |
d0191583 JM |
8982 | if test x$OWNER != x; then |
8983 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8984 | fi |
8985 | ||
8986 | ################################################################################ | |
ec6a6fbe AK |
8987 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8988 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8989 | GROUP="root" |
ad6254c5 | 8990 | |
d0191583 JM |
8991 | # Check whether --with-group was given. |
8992 | if test "${with_group+set}" = set; then | |
8993 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8994 | fi |
8995 | ||
ec6a6fbe AK |
8996 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
8997 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
8998 | |
8999 | if test x$GROUP != x; then | |
9000 | GROUP="-g $GROUP" | |
9001 | fi | |
ad6254c5 | 9002 | |
24bbc4d7 | 9003 | ################################################################################ |
ec6a6fbe AK |
9004 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9005 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9006 | |
9007 | ||
9008 | # Check whether --with-device-uid was given. | |
9009 | if test "${with_device_uid+set}" = set; then | |
9010 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9011 | else | |
9012 | DM_DEVICE_UID="0" | |
9013 | fi | |
9014 | ||
ec6a6fbe AK |
9015 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9016 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9017 | |
9018 | ################################################################################ | |
ec6a6fbe AK |
9019 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9020 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9021 | |
9022 | ||
9023 | # Check whether --with-device-gid was given. | |
9024 | if test "${with_device_gid+set}" = set; then | |
9025 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9026 | else | |
9027 | DM_DEVICE_GID="0" | |
9028 | fi | |
9029 | ||
ec6a6fbe AK |
9030 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9031 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9032 | |
93bd259b | 9033 | ################################################################################ |
ec6a6fbe AK |
9034 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9035 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9036 | |
9037 | ||
9038 | # Check whether --with-device-mode was given. | |
9039 | if test "${with_device_mode+set}" = set; then | |
9040 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9041 | else | |
9042 | DM_DEVICE_MODE="0600" | |
9043 | fi | |
9044 | ||
ec6a6fbe AK |
9045 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9046 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9047 | |
ad6254c5 | 9048 | ################################################################################ |
ec6a6fbe AK |
9049 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9050 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9051 | # Check whether --enable-lvm1_fallback was given. |
9052 | if test "${enable_lvm1_fallback+set}" = set; then | |
9053 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9054 | else | |
9055 | LVM1_FALLBACK=no | |
7a197a62 AK |
9056 | fi |
9057 | ||
ec6a6fbe AK |
9058 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9059 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9060 | |
d0191583 | 9061 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9062 | |
9063 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9064 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9065 | _ACEOF |
9066 | ||
ad6254c5 AK |
9067 | fi |
9068 | ||
9069 | ################################################################################ | |
ec6a6fbe AK |
9070 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9071 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9072 | |
9073 | # Check whether --with-lvm1 was given. | |
9074 | if test "${with_lvm1+set}" = set; then | |
9075 | withval=$with_lvm1; LVM1="$withval" | |
9076 | else | |
9077 | LVM1="internal" | |
7a197a62 AK |
9078 | fi |
9079 | ||
ec6a6fbe AK |
9080 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9081 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9082 | |
d0191583 | 9083 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9084 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9085 | " >&5 |
ec6a6fbe | 9086 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9087 | " >&2;} |
9088 | { (exit 1); exit 1; }; } | |
9089 | fi; | |
9090 | ||
9091 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9092 | |
9093 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9094 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9095 | _ACEOF |
9096 | ||
ad6254c5 AK |
9097 | fi |
9098 | ||
9099 | ################################################################################ | |
ec6a6fbe AK |
9100 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9101 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9102 | |
9103 | # Check whether --with-pool was given. | |
9104 | if test "${with_pool+set}" = set; then | |
9105 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9106 | else |
d0191583 | 9107 | POOL="internal" |
7a197a62 AK |
9108 | fi |
9109 | ||
ec6a6fbe AK |
9110 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9111 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9112 | |
d0191583 | 9113 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9114 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9115 | " >&5 |
ec6a6fbe | 9116 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9117 | " >&2;} |
9118 | { (exit 1); exit 1; }; } | |
9119 | fi; | |
7a197a62 | 9120 | |
d0191583 JM |
9121 | if test x$POOL = xinternal; then |
9122 | ||
9123 | cat >>confdefs.h <<\_ACEOF | |
9124 | #define POOL_INTERNAL 1 | |
9125 | _ACEOF | |
9126 | ||
9127 | fi | |
ad6254c5 | 9128 | |
06f62ad1 | 9129 | ################################################################################ |
ec6a6fbe AK |
9130 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9131 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9132 | |
9133 | # Check whether --with-cluster was given. | |
9134 | if test "${with_cluster+set}" = set; then | |
9135 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9136 | fi |
9137 | ||
ec6a6fbe AK |
9138 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9139 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9140 | |
d0191583 | 9141 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9142 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9143 | " >&5 |
ec6a6fbe | 9144 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9145 | " >&2;} |
9146 | { (exit 1); exit 1; }; } | |
d0191583 | 9147 | fi; |
06f62ad1 | 9148 | |
d0191583 | 9149 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9150 | |
9151 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9152 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9153 | _ACEOF |
9154 | ||
15d91f5a | 9155 | fi |
ad6254c5 AK |
9156 | |
9157 | ################################################################################ | |
ec6a6fbe AK |
9158 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9159 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9160 | |
d0191583 JM |
9161 | # Check whether --with-snapshots was given. |
9162 | if test "${with_snapshots+set}" = set; then | |
9163 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9164 | else | |
9165 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9166 | fi |
9167 | ||
ec6a6fbe AK |
9168 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9169 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9170 | |
d0191583 | 9171 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9172 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9173 | " >&5 |
ec6a6fbe | 9174 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9175 | " >&2;} |
9176 | { (exit 1); exit 1; }; } | |
9177 | fi; | |
9178 | ||
9179 | if test x$SNAPSHOTS = xinternal; then | |
9180 | ||
9181 | cat >>confdefs.h <<\_ACEOF | |
9182 | #define SNAPSHOT_INTERNAL 1 | |
9183 | _ACEOF | |
ad6254c5 | 9184 | |
ad6254c5 | 9185 | fi |
7a197a62 | 9186 | |
d0191583 | 9187 | ################################################################################ |
ec6a6fbe AK |
9188 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9189 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9190 | |
9191 | # Check whether --with-mirrors was given. | |
9192 | if test "${with_mirrors+set}" = set; then | |
9193 | withval=$with_mirrors; MIRRORS="$withval" | |
9194 | else | |
9195 | MIRRORS="internal" | |
ad6254c5 | 9196 | fi |
ad6254c5 | 9197 | |
ec6a6fbe AK |
9198 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9199 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9200 | |
d0191583 | 9201 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9202 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9203 | " >&5 |
ec6a6fbe | 9204 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9205 | " >&2;} |
9206 | { (exit 1); exit 1; }; } | |
9207 | fi; | |
ad6254c5 | 9208 | |
d0191583 | 9209 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9210 | |
d0191583 JM |
9211 | cat >>confdefs.h <<\_ACEOF |
9212 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9213 | _ACEOF |
8a2fc586 | 9214 | |
d0191583 | 9215 | fi |
8a2fc586 | 9216 | |
d0191583 | 9217 | ################################################################################ |
ec6a6fbe AK |
9218 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9219 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9220 | # Check whether --enable-readline was given. |
9221 | if test "${enable_readline+set}" = set; then | |
9222 | enableval=$enable_readline; READLINE=$enableval | |
9223 | else | |
06e459df | 9224 | READLINE=maybe |
d0191583 | 9225 | fi |
8a2fc586 | 9226 | |
ec6a6fbe AK |
9227 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9228 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9229 | |
d0191583 | 9230 | ################################################################################ |
ec6a6fbe AK |
9231 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9232 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9233 | # Check whether --enable-realtime was given. |
9234 | if test "${enable_realtime+set}" = set; then | |
9235 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9236 | fi |
ad6254c5 | 9237 | |
ec6a6fbe AK |
9238 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9239 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9240 | |
9241 | ################################################################################ | |
ec6a6fbe AK |
9242 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
9243 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d0191583 JM |
9244 | |
9245 | # Check whether --with-clvmd was given. | |
9246 | if test "${with_clvmd+set}" = set; then | |
9247 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 9248 | else |
d0191583 JM |
9249 | CLVMD="none" |
9250 | fi | |
8a2fc586 | 9251 | |
d0191583 JM |
9252 | if test x$CLVMD = xyes; then |
9253 | CLVMD=all | |
9254 | fi | |
ec6a6fbe AK |
9255 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 |
9256 | $as_echo "$CLVMD" >&6; } | |
8a2fc586 | 9257 | |
d0191583 JM |
9258 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
9259 | CLUSTER=internal | |
9260 | fi | |
8a2fc586 | 9261 | |
a946372e AK |
9262 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
9263 | BUILDGULM=yes | |
9264 | fi | |
9265 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9266 | BUILDCOROSYNC=yes | |
9267 | fi | |
9268 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9269 | BUILDOPENAIS=yes | |
9270 | fi | |
9271 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9272 | BUILDCMAN=yes | |
9273 | fi | |
9274 | ||
9275 | if test x$BUILDGULM = xyes; then | |
9276 | if test x$BUILDCOROSYNC = xyes || \ | |
9277 | test x$BUILDOPENAIS = xyes; then | |
9278 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9279 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9280 | { (exit 1); exit 1; }; } | |
9281 | fi | |
9282 | fi | |
9283 | ||
9284 | if test x$CLVMD != xnone; then | |
e2997b73 AK |
9285 | |
9286 | ||
9287 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9288 | if test -n "$ac_tool_prefix"; then | |
9289 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9290 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9291 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9292 | $as_echo_n "checking for $ac_word... " >&6; } | |
9293 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9294 | $as_echo_n "(cached) " >&6 | |
9295 | else | |
9296 | case $PKG_CONFIG in | |
9297 | [\\/]* | ?:[\\/]*) | |
9298 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9299 | ;; | |
9300 | *) | |
9301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9302 | for as_dir in $PATH | |
9303 | do | |
9304 | IFS=$as_save_IFS | |
9305 | test -z "$as_dir" && as_dir=. | |
9306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9308 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9309 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9310 | break 2 | |
9311 | fi | |
9312 | done | |
9313 | done | |
9314 | IFS=$as_save_IFS | |
9315 | ||
9316 | ;; | |
9317 | esac | |
9318 | fi | |
9319 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9320 | if test -n "$PKG_CONFIG"; then | |
9321 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9322 | $as_echo "$PKG_CONFIG" >&6; } | |
9323 | else | |
9324 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9325 | $as_echo "no" >&6; } | |
9326 | fi | |
9327 | ||
9328 | ||
9329 | fi | |
9330 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9331 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9332 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9333 | set dummy pkg-config; ac_word=$2 | |
9334 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9335 | $as_echo_n "checking for $ac_word... " >&6; } | |
9336 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9337 | $as_echo_n "(cached) " >&6 | |
9338 | else | |
9339 | case $ac_pt_PKG_CONFIG in | |
9340 | [\\/]* | ?:[\\/]*) | |
9341 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9342 | ;; | |
9343 | *) | |
9344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9345 | for as_dir in $PATH | |
9346 | do | |
9347 | IFS=$as_save_IFS | |
9348 | test -z "$as_dir" && as_dir=. | |
9349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9351 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9352 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9353 | break 2 | |
9354 | fi | |
9355 | done | |
9356 | done | |
9357 | IFS=$as_save_IFS | |
9358 | ||
9359 | ;; | |
9360 | esac | |
9361 | fi | |
9362 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9363 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9364 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9365 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9366 | else | |
9367 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9368 | $as_echo "no" >&6; } | |
9369 | fi | |
9370 | ||
9371 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9372 | PKG_CONFIG="" | |
9373 | else | |
9374 | case $cross_compiling:$ac_tool_warned in | |
9375 | yes:) | |
9376 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9377 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9378 | ac_tool_warned=yes ;; | |
9379 | esac | |
9380 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9381 | fi | |
9382 | else | |
9383 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9384 | fi | |
9385 | ||
9386 | fi | |
9387 | if test -n "$PKG_CONFIG"; then | |
9388 | _pkg_min_version=0.9.0 | |
9389 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9390 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9391 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9392 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9393 | $as_echo "yes" >&6; } | |
9394 | else | |
9395 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9396 | $as_echo "no" >&6; } | |
9397 | PKG_CONFIG="" | |
9398 | fi | |
9399 | ||
9400 | fi | |
9401 | ||
9402 | pkg_failed=no | |
a946372e AK |
9403 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9404 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9405 | |
a946372e AK |
9406 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9407 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9408 | elif test -n "$PKG_CONFIG"; then |
9409 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9410 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9411 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9412 | ac_status=$? |
9413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9414 | (exit $ac_status); }; then | |
a946372e | 9415 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9416 | else |
9417 | pkg_failed=yes | |
9418 | fi | |
9419 | else | |
9420 | pkg_failed=untried | |
9421 | fi | |
a946372e AK |
9422 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9423 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9424 | elif test -n "$PKG_CONFIG"; then |
9425 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9426 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9427 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9428 | ac_status=$? |
9429 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9430 | (exit $ac_status); }; then | |
a946372e | 9431 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9432 | else |
9433 | pkg_failed=yes | |
9434 | fi | |
9435 | else | |
9436 | pkg_failed=untried | |
9437 | fi | |
9438 | ||
9439 | ||
9440 | ||
9441 | if test $pkg_failed = yes; then | |
9442 | ||
9443 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9444 | _pkg_short_errors_supported=yes | |
9445 | else | |
9446 | _pkg_short_errors_supported=no | |
9447 | fi | |
9448 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9449 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9450 | else |
a946372e | 9451 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9452 | fi |
9453 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9454 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 AK |
9455 | |
9456 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9457 | $as_echo "no" >&6; } | |
a946372e AK |
9458 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9459 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9460 | elif test $pkg_failed = untried; then |
a946372e AK |
9461 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9462 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9463 | else |
a946372e AK |
9464 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9465 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9466 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9467 | $as_echo "yes" >&6; } | |
9468 | : | |
9469 | fi | |
a946372e | 9470 | fi |
e2997b73 | 9471 | |
a946372e AK |
9472 | soft_bailout() { |
9473 | NOTFOUND=1 | |
9474 | } | |
e2997b73 | 9475 | |
a946372e AK |
9476 | hard_bailout() { |
9477 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9478 | $as_echo "$as_me: error: bailing out" >&2;} | |
9479 | { (exit 1); exit 1; }; } | |
9480 | } | |
9481 | ||
9482 | if test x$CLVMD = xall; then | |
9483 | bailout=soft_bailout | |
9484 | BUILDGULM=yes | |
9485 | BUILDCMAN=yes | |
9486 | BUILDCOROSYNC=yes | |
9487 | BUILDOPENAIS=yes | |
e2997b73 | 9488 | else |
a946372e | 9489 | bailout=hard_bailout |
e2997b73 | 9490 | fi |
a946372e AK |
9491 | |
9492 | check_lib_no_libs() { | |
9493 | lib_no_libs_arg1=$1 | |
9494 | shift | |
9495 | lib_no_libs_arg2=$1 | |
9496 | shift | |
9497 | lib_no_libs_args=$@ | |
9498 | ||
9499 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9500 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9501 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9502 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9503 | $as_echo_n "(cached) " >&6 | |
9504 | else | |
9505 | ac_check_lib_save_LIBS=$LIBS | |
9506 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9507 | cat >conftest.$ac_ext <<_ACEOF | |
9508 | /* confdefs.h. */ | |
9509 | _ACEOF | |
9510 | cat confdefs.h >>conftest.$ac_ext | |
9511 | cat >>conftest.$ac_ext <<_ACEOF | |
9512 | /* end confdefs.h. */ | |
9513 | ||
9514 | /* Override any GCC internal prototype to avoid an error. | |
9515 | Use char because int might match the return type of a GCC | |
9516 | builtin and then its argument prototype would still apply. */ | |
9517 | #ifdef __cplusplus | |
9518 | extern "C" | |
9519 | #endif | |
9520 | char $lib_no_libs_arg2 (); | |
9521 | int | |
9522 | main () | |
9523 | { | |
9524 | return $lib_no_libs_arg2 (); | |
9525 | ; | |
9526 | return 0; | |
9527 | } | |
9528 | _ACEOF | |
9529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9530 | if { (ac_try="$ac_link" | |
9531 | case "(($ac_try" in | |
9532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9533 | *) ac_try_echo=$ac_try;; | |
9534 | esac | |
9535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9536 | $as_echo "$ac_try_echo") >&5 | |
9537 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9538 | ac_status=$? |
a946372e AK |
9539 | grep -v '^ *+' conftest.er1 >conftest.err |
9540 | rm -f conftest.er1 | |
9541 | cat conftest.err >&5 | |
e2997b73 | 9542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9543 | (exit $ac_status); } && { |
9544 | test -z "$ac_c_werror_flag" || | |
9545 | test ! -s conftest.err | |
9546 | } && test -s conftest$ac_exeext && { | |
9547 | test "$cross_compiling" = yes || | |
9548 | $as_test_x conftest$ac_exeext | |
9549 | }; then | |
9550 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9551 | else |
a946372e AK |
9552 | $as_echo "$as_me: failed program was:" >&5 |
9553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9554 | |
a946372e AK |
9555 | eval "$as_ac_Lib=no" |
9556 | fi | |
e2997b73 | 9557 | |
a946372e AK |
9558 | rm -rf conftest.dSYM |
9559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9560 | conftest$ac_exeext conftest.$ac_ext | |
9561 | LIBS=$ac_check_lib_save_LIBS | |
9562 | fi | |
9563 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9564 | $as_echo "$as_val"'` | |
9565 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9566 | $as_echo "$ac_res" >&6; } | |
9567 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9568 | $as_echo "$as_val"'` | |
9569 | if test "x$as_val" = x""yes; then | |
9570 | cat >>confdefs.h <<_ACEOF | |
9571 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9572 | _ACEOF | |
e2997b73 | 9573 | |
a946372e | 9574 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9575 | |
e2997b73 | 9576 | else |
a946372e | 9577 | $bailout |
e2997b73 | 9578 | fi |
e2997b73 | 9579 | |
a946372e AK |
9580 | LIBS=$ac_check_lib_save_LIBS |
9581 | } | |
9582 | ||
9583 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9584 | |
9585 | pkg_failed=no | |
a946372e AK |
9586 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9587 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9588 | |
a946372e AK |
9589 | if test -n "$CCS_CFLAGS"; then |
9590 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9591 | elif test -n "$PKG_CONFIG"; then |
9592 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9593 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9594 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9595 | ac_status=$? |
9596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9597 | (exit $ac_status); }; then | |
a946372e | 9598 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9599 | else |
9600 | pkg_failed=yes | |
9601 | fi | |
9602 | else | |
9603 | pkg_failed=untried | |
9604 | fi | |
a946372e AK |
9605 | if test -n "$CCS_LIBS"; then |
9606 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9607 | elif test -n "$PKG_CONFIG"; then |
9608 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9609 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9610 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9611 | ac_status=$? |
9612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9613 | (exit $ac_status); }; then | |
a946372e | 9614 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9615 | else |
9616 | pkg_failed=yes | |
9617 | fi | |
9618 | else | |
9619 | pkg_failed=untried | |
9620 | fi | |
9621 | ||
9622 | ||
9623 | ||
9624 | if test $pkg_failed = yes; then | |
9625 | ||
9626 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9627 | _pkg_short_errors_supported=yes | |
9628 | else | |
9629 | _pkg_short_errors_supported=no | |
9630 | fi | |
9631 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9632 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9633 | else |
a946372e | 9634 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9635 | fi |
9636 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9637 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 AK |
9638 | |
9639 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9640 | $as_echo "no" >&6; } | |
a946372e | 9641 | NOTFOUND=0 |
e2997b73 | 9642 | |
a946372e AK |
9643 | for ac_header in ccs.h |
9644 | do | |
9645 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9647 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9648 | $as_echo_n "checking for $ac_header... " >&6; } | |
9649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9650 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9651 | fi |
a946372e AK |
9652 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9653 | $as_echo "$as_val"'` | |
9654 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9655 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9656 | else |
a946372e AK |
9657 | # Is the header compilable? |
9658 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9659 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9660 | cat >conftest.$ac_ext <<_ACEOF | |
9661 | /* confdefs.h. */ | |
9662 | _ACEOF | |
9663 | cat confdefs.h >>conftest.$ac_ext | |
9664 | cat >>conftest.$ac_ext <<_ACEOF | |
9665 | /* end confdefs.h. */ | |
9666 | $ac_includes_default | |
9667 | #include <$ac_header> | |
9668 | _ACEOF | |
9669 | rm -f conftest.$ac_objext | |
9670 | if { (ac_try="$ac_compile" | |
9671 | case "(($ac_try" in | |
9672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9673 | *) ac_try_echo=$ac_try;; | |
9674 | esac | |
9675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9676 | $as_echo "$ac_try_echo") >&5 | |
9677 | (eval "$ac_compile") 2>conftest.er1 | |
9678 | ac_status=$? | |
9679 | grep -v '^ *+' conftest.er1 >conftest.err | |
9680 | rm -f conftest.er1 | |
9681 | cat conftest.err >&5 | |
9682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9683 | (exit $ac_status); } && { | |
9684 | test -z "$ac_c_werror_flag" || | |
9685 | test ! -s conftest.err | |
9686 | } && test -s conftest.$ac_objext; then | |
9687 | ac_header_compiler=yes | |
9688 | else | |
9689 | $as_echo "$as_me: failed program was:" >&5 | |
9690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9691 | |
a946372e | 9692 | ac_header_compiler=no |
d0191583 JM |
9693 | fi |
9694 | ||
a946372e AK |
9695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9696 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9697 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9698 | |
a946372e AK |
9699 | # Is the header present? |
9700 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9701 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9702 | cat >conftest.$ac_ext <<_ACEOF | |
9703 | /* confdefs.h. */ | |
9704 | _ACEOF | |
9705 | cat confdefs.h >>conftest.$ac_ext | |
9706 | cat >>conftest.$ac_ext <<_ACEOF | |
9707 | /* end confdefs.h. */ | |
9708 | #include <$ac_header> | |
9709 | _ACEOF | |
9710 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9711 | case "(($ac_try" in | |
9712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9713 | *) ac_try_echo=$ac_try;; | |
9714 | esac | |
9715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9716 | $as_echo "$ac_try_echo") >&5 | |
9717 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9718 | ac_status=$? | |
9719 | grep -v '^ *+' conftest.er1 >conftest.err | |
9720 | rm -f conftest.er1 | |
9721 | cat conftest.err >&5 | |
9722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9723 | (exit $ac_status); } >/dev/null && { | |
9724 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9725 | test ! -s conftest.err | |
9726 | }; then | |
9727 | ac_header_preproc=yes | |
9728 | else | |
9729 | $as_echo "$as_me: failed program was:" >&5 | |
9730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9731 | ||
9732 | ac_header_preproc=no | |
9733 | fi | |
9734 | ||
9735 | rm -f conftest.err conftest.$ac_ext | |
9736 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9737 | $as_echo "$ac_header_preproc" >&6; } | |
9738 | ||
9739 | # So? What about this header? | |
9740 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9741 | yes:no: ) | |
9742 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9743 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9744 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9745 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9746 | ac_header_preproc=yes | |
9747 | ;; | |
9748 | no:yes:* ) | |
9749 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9750 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9751 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9752 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9753 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9754 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9755 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9756 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9758 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9759 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9760 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9761 | ||
9762 | ;; | |
9763 | esac | |
9764 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9765 | $as_echo_n "checking for $ac_header... " >&6; } | |
9766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9767 | $as_echo_n "(cached) " >&6 | |
9768 | else | |
9769 | eval "$as_ac_Header=\$ac_header_preproc" | |
9770 | fi | |
9771 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9772 | $as_echo "$as_val"'` | |
9773 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9774 | $as_echo "$ac_res" >&6; } | |
9775 | ||
9776 | fi | |
9777 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9778 | $as_echo "$as_val"'` | |
9779 | if test "x$as_val" = x""yes; then | |
9780 | cat >>confdefs.h <<_ACEOF | |
9781 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9782 | _ACEOF | |
9783 | ||
9784 | else | |
9785 | $bailout | |
9786 | fi | |
9787 | ||
9788 | done | |
9789 | ||
9790 | check_lib_no_libs ccs ccs_connect | |
9791 | if test $NOTFOUND = 0; then | |
9792 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9793 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9794 | CCS_LIBS="-lccs" | |
9795 | HAVE_CCS=yes | |
9796 | fi | |
9797 | elif test $pkg_failed = untried; then | |
9798 | NOTFOUND=0 | |
9799 | ||
9800 | for ac_header in ccs.h | |
9801 | do | |
9802 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9804 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9805 | $as_echo_n "checking for $ac_header... " >&6; } | |
9806 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9807 | $as_echo_n "(cached) " >&6 | |
9808 | fi | |
9809 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9810 | $as_echo "$as_val"'` | |
9811 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9812 | $as_echo "$ac_res" >&6; } | |
9813 | else | |
9814 | # Is the header compilable? | |
9815 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9816 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9817 | cat >conftest.$ac_ext <<_ACEOF | |
9818 | /* confdefs.h. */ | |
9819 | _ACEOF | |
9820 | cat confdefs.h >>conftest.$ac_ext | |
9821 | cat >>conftest.$ac_ext <<_ACEOF | |
9822 | /* end confdefs.h. */ | |
9823 | $ac_includes_default | |
9824 | #include <$ac_header> | |
9825 | _ACEOF | |
9826 | rm -f conftest.$ac_objext | |
9827 | if { (ac_try="$ac_compile" | |
9828 | case "(($ac_try" in | |
9829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9830 | *) ac_try_echo=$ac_try;; | |
9831 | esac | |
9832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9833 | $as_echo "$ac_try_echo") >&5 | |
9834 | (eval "$ac_compile") 2>conftest.er1 | |
9835 | ac_status=$? | |
9836 | grep -v '^ *+' conftest.er1 >conftest.err | |
9837 | rm -f conftest.er1 | |
9838 | cat conftest.err >&5 | |
9839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9840 | (exit $ac_status); } && { | |
9841 | test -z "$ac_c_werror_flag" || | |
9842 | test ! -s conftest.err | |
9843 | } && test -s conftest.$ac_objext; then | |
9844 | ac_header_compiler=yes | |
9845 | else | |
9846 | $as_echo "$as_me: failed program was:" >&5 | |
9847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9848 | ||
9849 | ac_header_compiler=no | |
9850 | fi | |
9851 | ||
9852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9853 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9854 | $as_echo "$ac_header_compiler" >&6; } | |
9855 | ||
9856 | # Is the header present? | |
9857 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9858 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9859 | cat >conftest.$ac_ext <<_ACEOF | |
9860 | /* confdefs.h. */ | |
9861 | _ACEOF | |
9862 | cat confdefs.h >>conftest.$ac_ext | |
9863 | cat >>conftest.$ac_ext <<_ACEOF | |
9864 | /* end confdefs.h. */ | |
9865 | #include <$ac_header> | |
9866 | _ACEOF | |
9867 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9868 | case "(($ac_try" in | |
9869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9870 | *) ac_try_echo=$ac_try;; | |
9871 | esac | |
9872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9873 | $as_echo "$ac_try_echo") >&5 | |
9874 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9875 | ac_status=$? | |
9876 | grep -v '^ *+' conftest.er1 >conftest.err | |
9877 | rm -f conftest.er1 | |
9878 | cat conftest.err >&5 | |
9879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9880 | (exit $ac_status); } >/dev/null && { | |
9881 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9882 | test ! -s conftest.err | |
9883 | }; then | |
9884 | ac_header_preproc=yes | |
9885 | else | |
9886 | $as_echo "$as_me: failed program was:" >&5 | |
9887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9888 | ||
9889 | ac_header_preproc=no | |
9890 | fi | |
9891 | ||
9892 | rm -f conftest.err conftest.$ac_ext | |
9893 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9894 | $as_echo "$ac_header_preproc" >&6; } | |
9895 | ||
9896 | # So? What about this header? | |
9897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9898 | yes:no: ) | |
9899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9900 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9902 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9903 | ac_header_preproc=yes | |
9904 | ;; | |
9905 | no:yes:* ) | |
9906 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9907 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9908 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9909 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9910 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9911 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9912 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9913 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9914 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9915 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9916 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9917 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9918 | ||
9919 | ;; | |
9920 | esac | |
9921 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9922 | $as_echo_n "checking for $ac_header... " >&6; } | |
9923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9924 | $as_echo_n "(cached) " >&6 | |
9925 | else | |
9926 | eval "$as_ac_Header=\$ac_header_preproc" | |
9927 | fi | |
9928 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9929 | $as_echo "$as_val"'` | |
9930 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9931 | $as_echo "$ac_res" >&6; } | |
9932 | ||
9933 | fi | |
9934 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9935 | $as_echo "$as_val"'` | |
9936 | if test "x$as_val" = x""yes; then | |
9937 | cat >>confdefs.h <<_ACEOF | |
9938 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9939 | _ACEOF | |
9940 | ||
9941 | else | |
9942 | $bailout | |
9943 | fi | |
9944 | ||
9945 | done | |
9946 | ||
9947 | check_lib_no_libs ccs ccs_connect | |
9948 | if test $NOTFOUND = 0; then | |
9949 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9950 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9951 | CCS_LIBS="-lccs" | |
9952 | HAVE_CCS=yes | |
9953 | fi | |
9954 | else | |
9955 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
9956 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
9957 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9958 | $as_echo "yes" >&6; } | |
9959 | HAVE_CCS=yes | |
9960 | fi | |
9961 | ||
9962 | pkg_failed=no | |
9963 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
9964 | $as_echo_n "checking for GULM... " >&6; } | |
9965 | ||
9966 | if test -n "$GULM_CFLAGS"; then | |
9967 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
9968 | elif test -n "$PKG_CONFIG"; then | |
9969 | if test -n "$PKG_CONFIG" && \ | |
9970 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
9971 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
9972 | ac_status=$? | |
9973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9974 | (exit $ac_status); }; then | |
9975 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
9976 | else | |
9977 | pkg_failed=yes | |
9978 | fi | |
9979 | else | |
9980 | pkg_failed=untried | |
9981 | fi | |
9982 | if test -n "$GULM_LIBS"; then | |
9983 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
9984 | elif test -n "$PKG_CONFIG"; then | |
9985 | if test -n "$PKG_CONFIG" && \ | |
9986 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
9987 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
9988 | ac_status=$? | |
9989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9990 | (exit $ac_status); }; then | |
9991 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
9992 | else | |
9993 | pkg_failed=yes | |
9994 | fi | |
9995 | else | |
9996 | pkg_failed=untried | |
9997 | fi | |
9998 | ||
9999 | ||
10000 | ||
10001 | if test $pkg_failed = yes; then | |
10002 | ||
10003 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10004 | _pkg_short_errors_supported=yes | |
10005 | else | |
10006 | _pkg_short_errors_supported=no | |
10007 | fi | |
10008 | if test $_pkg_short_errors_supported = yes; then | |
10009 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10010 | else | |
10011 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10012 | fi | |
10013 | # Put the nasty error message in config.log where it belongs | |
10014 | echo "$GULM_PKG_ERRORS" >&5 | |
10015 | ||
10016 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10017 | $as_echo "no" >&6; } | |
10018 | NOTFOUND=0 | |
10019 | ||
10020 | for ac_header in libgulm.h | |
10021 | do | |
10022 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10023 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10024 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10025 | $as_echo_n "checking for $ac_header... " >&6; } | |
10026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10027 | $as_echo_n "(cached) " >&6 | |
10028 | fi | |
10029 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10030 | $as_echo "$as_val"'` | |
10031 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10032 | $as_echo "$ac_res" >&6; } | |
10033 | else | |
10034 | # Is the header compilable? | |
10035 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10036 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10037 | cat >conftest.$ac_ext <<_ACEOF | |
10038 | /* confdefs.h. */ | |
10039 | _ACEOF | |
10040 | cat confdefs.h >>conftest.$ac_ext | |
10041 | cat >>conftest.$ac_ext <<_ACEOF | |
10042 | /* end confdefs.h. */ | |
10043 | $ac_includes_default | |
10044 | #include <$ac_header> | |
10045 | _ACEOF | |
10046 | rm -f conftest.$ac_objext | |
10047 | if { (ac_try="$ac_compile" | |
10048 | case "(($ac_try" in | |
10049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10050 | *) ac_try_echo=$ac_try;; | |
10051 | esac | |
10052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10053 | $as_echo "$ac_try_echo") >&5 | |
10054 | (eval "$ac_compile") 2>conftest.er1 | |
10055 | ac_status=$? | |
10056 | grep -v '^ *+' conftest.er1 >conftest.err | |
10057 | rm -f conftest.er1 | |
10058 | cat conftest.err >&5 | |
10059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10060 | (exit $ac_status); } && { | |
10061 | test -z "$ac_c_werror_flag" || | |
10062 | test ! -s conftest.err | |
10063 | } && test -s conftest.$ac_objext; then | |
10064 | ac_header_compiler=yes | |
10065 | else | |
10066 | $as_echo "$as_me: failed program was:" >&5 | |
10067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10068 | ||
10069 | ac_header_compiler=no | |
10070 | fi | |
10071 | ||
10072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10073 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10074 | $as_echo "$ac_header_compiler" >&6; } | |
10075 | ||
10076 | # Is the header present? | |
10077 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10078 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10079 | cat >conftest.$ac_ext <<_ACEOF | |
10080 | /* confdefs.h. */ | |
10081 | _ACEOF | |
10082 | cat confdefs.h >>conftest.$ac_ext | |
10083 | cat >>conftest.$ac_ext <<_ACEOF | |
10084 | /* end confdefs.h. */ | |
10085 | #include <$ac_header> | |
10086 | _ACEOF | |
10087 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10088 | case "(($ac_try" in | |
10089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10090 | *) ac_try_echo=$ac_try;; | |
10091 | esac | |
10092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10093 | $as_echo "$ac_try_echo") >&5 | |
10094 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10095 | ac_status=$? | |
10096 | grep -v '^ *+' conftest.er1 >conftest.err | |
10097 | rm -f conftest.er1 | |
10098 | cat conftest.err >&5 | |
10099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10100 | (exit $ac_status); } >/dev/null && { | |
10101 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10102 | test ! -s conftest.err | |
10103 | }; then | |
10104 | ac_header_preproc=yes | |
10105 | else | |
10106 | $as_echo "$as_me: failed program was:" >&5 | |
10107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10108 | ||
10109 | ac_header_preproc=no | |
10110 | fi | |
10111 | ||
10112 | rm -f conftest.err conftest.$ac_ext | |
10113 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10114 | $as_echo "$ac_header_preproc" >&6; } | |
10115 | ||
10116 | # So? What about this header? | |
10117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10118 | yes:no: ) | |
10119 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10120 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10121 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10122 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10123 | ac_header_preproc=yes | |
10124 | ;; | |
10125 | no:yes:* ) | |
10126 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10127 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10128 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10129 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10130 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10131 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10133 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10135 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10136 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10137 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10138 | ||
10139 | ;; | |
10140 | esac | |
10141 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10142 | $as_echo_n "checking for $ac_header... " >&6; } | |
10143 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10144 | $as_echo_n "(cached) " >&6 | |
10145 | else | |
10146 | eval "$as_ac_Header=\$ac_header_preproc" | |
10147 | fi | |
10148 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10149 | $as_echo "$as_val"'` | |
10150 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10151 | $as_echo "$ac_res" >&6; } | |
10152 | ||
10153 | fi | |
10154 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10155 | $as_echo "$as_val"'` | |
10156 | if test "x$as_val" = x""yes; then | |
10157 | cat >>confdefs.h <<_ACEOF | |
10158 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10159 | _ACEOF | |
10160 | ||
10161 | else | |
10162 | $bailout | |
10163 | fi | |
10164 | ||
10165 | done | |
10166 | ||
10167 | check_lib_no_libs gulm lg_core_login | |
10168 | if test $NOTFOUND = 0; then | |
10169 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10170 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10171 | GULM_LIBS="-lgulm" | |
10172 | HAVE_GULM=yes | |
10173 | fi | |
10174 | elif test $pkg_failed = untried; then | |
10175 | NOTFOUND=0 | |
10176 | ||
10177 | for ac_header in libgulm.h | |
10178 | do | |
10179 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10181 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10182 | $as_echo_n "checking for $ac_header... " >&6; } | |
10183 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10184 | $as_echo_n "(cached) " >&6 | |
10185 | fi | |
10186 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10187 | $as_echo "$as_val"'` | |
10188 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10189 | $as_echo "$ac_res" >&6; } | |
10190 | else | |
10191 | # Is the header compilable? | |
10192 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10193 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10194 | cat >conftest.$ac_ext <<_ACEOF | |
10195 | /* confdefs.h. */ | |
10196 | _ACEOF | |
10197 | cat confdefs.h >>conftest.$ac_ext | |
10198 | cat >>conftest.$ac_ext <<_ACEOF | |
10199 | /* end confdefs.h. */ | |
10200 | $ac_includes_default | |
10201 | #include <$ac_header> | |
10202 | _ACEOF | |
10203 | rm -f conftest.$ac_objext | |
10204 | if { (ac_try="$ac_compile" | |
10205 | case "(($ac_try" in | |
10206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10207 | *) ac_try_echo=$ac_try;; | |
10208 | esac | |
10209 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10210 | $as_echo "$ac_try_echo") >&5 | |
10211 | (eval "$ac_compile") 2>conftest.er1 | |
10212 | ac_status=$? | |
10213 | grep -v '^ *+' conftest.er1 >conftest.err | |
10214 | rm -f conftest.er1 | |
10215 | cat conftest.err >&5 | |
10216 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10217 | (exit $ac_status); } && { | |
10218 | test -z "$ac_c_werror_flag" || | |
10219 | test ! -s conftest.err | |
10220 | } && test -s conftest.$ac_objext; then | |
10221 | ac_header_compiler=yes | |
10222 | else | |
10223 | $as_echo "$as_me: failed program was:" >&5 | |
10224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10225 | ||
10226 | ac_header_compiler=no | |
10227 | fi | |
10228 | ||
10229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10230 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10231 | $as_echo "$ac_header_compiler" >&6; } | |
10232 | ||
10233 | # Is the header present? | |
10234 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10235 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10236 | cat >conftest.$ac_ext <<_ACEOF | |
10237 | /* confdefs.h. */ | |
10238 | _ACEOF | |
10239 | cat confdefs.h >>conftest.$ac_ext | |
10240 | cat >>conftest.$ac_ext <<_ACEOF | |
10241 | /* end confdefs.h. */ | |
10242 | #include <$ac_header> | |
10243 | _ACEOF | |
10244 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10245 | case "(($ac_try" in | |
10246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10247 | *) ac_try_echo=$ac_try;; | |
10248 | esac | |
10249 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10250 | $as_echo "$ac_try_echo") >&5 | |
10251 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10252 | ac_status=$? | |
10253 | grep -v '^ *+' conftest.er1 >conftest.err | |
10254 | rm -f conftest.er1 | |
10255 | cat conftest.err >&5 | |
10256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10257 | (exit $ac_status); } >/dev/null && { | |
10258 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10259 | test ! -s conftest.err | |
10260 | }; then | |
10261 | ac_header_preproc=yes | |
10262 | else | |
10263 | $as_echo "$as_me: failed program was:" >&5 | |
10264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10265 | ||
10266 | ac_header_preproc=no | |
10267 | fi | |
10268 | ||
10269 | rm -f conftest.err conftest.$ac_ext | |
10270 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10271 | $as_echo "$ac_header_preproc" >&6; } | |
10272 | ||
10273 | # So? What about this header? | |
10274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10275 | yes:no: ) | |
10276 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10277 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10278 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10279 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10280 | ac_header_preproc=yes | |
10281 | ;; | |
10282 | no:yes:* ) | |
10283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10284 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10286 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10287 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10288 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10289 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10290 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10292 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10294 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10295 | ||
10296 | ;; | |
10297 | esac | |
10298 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10299 | $as_echo_n "checking for $ac_header... " >&6; } | |
10300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10301 | $as_echo_n "(cached) " >&6 | |
10302 | else | |
10303 | eval "$as_ac_Header=\$ac_header_preproc" | |
10304 | fi | |
10305 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10306 | $as_echo "$as_val"'` | |
10307 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10308 | $as_echo "$ac_res" >&6; } | |
10309 | ||
10310 | fi | |
10311 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10312 | $as_echo "$as_val"'` | |
10313 | if test "x$as_val" = x""yes; then | |
10314 | cat >>confdefs.h <<_ACEOF | |
10315 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10316 | _ACEOF | |
10317 | ||
10318 | else | |
10319 | $bailout | |
10320 | fi | |
10321 | ||
10322 | done | |
10323 | ||
10324 | check_lib_no_libs gulm lg_core_login | |
10325 | if test $NOTFOUND = 0; then | |
10326 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10327 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10328 | GULM_LIBS="-lgulm" | |
10329 | HAVE_GULM=yes | |
10330 | fi | |
10331 | else | |
10332 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10333 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10334 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10335 | $as_echo "yes" >&6; } | |
10336 | HAVE_GULM=yes | |
10337 | fi | |
10338 | fi | |
10339 | ||
10340 | if test x$BUILDCMAN = xyes; then | |
10341 | ||
10342 | pkg_failed=no | |
10343 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10344 | $as_echo_n "checking for CMAN... " >&6; } | |
10345 | ||
10346 | if test -n "$CMAN_CFLAGS"; then | |
10347 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10348 | elif test -n "$PKG_CONFIG"; then | |
10349 | if test -n "$PKG_CONFIG" && \ | |
10350 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10351 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10352 | ac_status=$? | |
10353 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10354 | (exit $ac_status); }; then | |
10355 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10356 | else | |
10357 | pkg_failed=yes | |
10358 | fi | |
10359 | else | |
10360 | pkg_failed=untried | |
10361 | fi | |
10362 | if test -n "$CMAN_LIBS"; then | |
10363 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10364 | elif test -n "$PKG_CONFIG"; then | |
10365 | if test -n "$PKG_CONFIG" && \ | |
10366 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10367 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10368 | ac_status=$? | |
10369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10370 | (exit $ac_status); }; then | |
10371 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10372 | else | |
10373 | pkg_failed=yes | |
10374 | fi | |
10375 | else | |
10376 | pkg_failed=untried | |
10377 | fi | |
10378 | ||
10379 | ||
10380 | ||
10381 | if test $pkg_failed = yes; then | |
10382 | ||
10383 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10384 | _pkg_short_errors_supported=yes | |
10385 | else | |
10386 | _pkg_short_errors_supported=no | |
10387 | fi | |
10388 | if test $_pkg_short_errors_supported = yes; then | |
10389 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10390 | else | |
10391 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10392 | fi | |
10393 | # Put the nasty error message in config.log where it belongs | |
10394 | echo "$CMAN_PKG_ERRORS" >&5 | |
10395 | ||
10396 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10397 | $as_echo "no" >&6; } | |
10398 | NOTFOUND=0 | |
10399 | ||
10400 | for ac_header in libcman.h | |
10401 | do | |
10402 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10403 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10404 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10405 | $as_echo_n "checking for $ac_header... " >&6; } | |
10406 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10407 | $as_echo_n "(cached) " >&6 | |
10408 | fi | |
10409 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10410 | $as_echo "$as_val"'` | |
10411 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10412 | $as_echo "$ac_res" >&6; } | |
10413 | else | |
10414 | # Is the header compilable? | |
10415 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10416 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10417 | cat >conftest.$ac_ext <<_ACEOF | |
10418 | /* confdefs.h. */ | |
10419 | _ACEOF | |
10420 | cat confdefs.h >>conftest.$ac_ext | |
10421 | cat >>conftest.$ac_ext <<_ACEOF | |
10422 | /* end confdefs.h. */ | |
10423 | $ac_includes_default | |
10424 | #include <$ac_header> | |
10425 | _ACEOF | |
10426 | rm -f conftest.$ac_objext | |
10427 | if { (ac_try="$ac_compile" | |
10428 | case "(($ac_try" in | |
10429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10430 | *) ac_try_echo=$ac_try;; | |
10431 | esac | |
10432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10433 | $as_echo "$ac_try_echo") >&5 | |
10434 | (eval "$ac_compile") 2>conftest.er1 | |
10435 | ac_status=$? | |
10436 | grep -v '^ *+' conftest.er1 >conftest.err | |
10437 | rm -f conftest.er1 | |
10438 | cat conftest.err >&5 | |
10439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10440 | (exit $ac_status); } && { | |
10441 | test -z "$ac_c_werror_flag" || | |
10442 | test ! -s conftest.err | |
10443 | } && test -s conftest.$ac_objext; then | |
10444 | ac_header_compiler=yes | |
10445 | else | |
10446 | $as_echo "$as_me: failed program was:" >&5 | |
10447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10448 | ||
10449 | ac_header_compiler=no | |
10450 | fi | |
10451 | ||
10452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10453 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10454 | $as_echo "$ac_header_compiler" >&6; } | |
10455 | ||
10456 | # Is the header present? | |
10457 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10458 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10459 | cat >conftest.$ac_ext <<_ACEOF | |
10460 | /* confdefs.h. */ | |
10461 | _ACEOF | |
10462 | cat confdefs.h >>conftest.$ac_ext | |
10463 | cat >>conftest.$ac_ext <<_ACEOF | |
10464 | /* end confdefs.h. */ | |
10465 | #include <$ac_header> | |
10466 | _ACEOF | |
10467 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10468 | case "(($ac_try" in | |
10469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10470 | *) ac_try_echo=$ac_try;; | |
10471 | esac | |
10472 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10473 | $as_echo "$ac_try_echo") >&5 | |
10474 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10475 | ac_status=$? | |
10476 | grep -v '^ *+' conftest.er1 >conftest.err | |
10477 | rm -f conftest.er1 | |
10478 | cat conftest.err >&5 | |
10479 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10480 | (exit $ac_status); } >/dev/null && { | |
10481 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10482 | test ! -s conftest.err | |
10483 | }; then | |
10484 | ac_header_preproc=yes | |
10485 | else | |
10486 | $as_echo "$as_me: failed program was:" >&5 | |
10487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10488 | ||
10489 | ac_header_preproc=no | |
10490 | fi | |
10491 | ||
10492 | rm -f conftest.err conftest.$ac_ext | |
10493 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10494 | $as_echo "$ac_header_preproc" >&6; } | |
10495 | ||
10496 | # So? What about this header? | |
10497 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10498 | yes:no: ) | |
10499 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10500 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10501 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10502 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10503 | ac_header_preproc=yes | |
10504 | ;; | |
10505 | no:yes:* ) | |
10506 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10507 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10508 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10509 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10510 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10511 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10512 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10513 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10514 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10515 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10516 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10517 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10518 | ||
10519 | ;; | |
10520 | esac | |
10521 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10522 | $as_echo_n "checking for $ac_header... " >&6; } | |
10523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10524 | $as_echo_n "(cached) " >&6 | |
10525 | else | |
10526 | eval "$as_ac_Header=\$ac_header_preproc" | |
10527 | fi | |
10528 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10529 | $as_echo "$as_val"'` | |
10530 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10531 | $as_echo "$ac_res" >&6; } | |
10532 | ||
10533 | fi | |
10534 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10535 | $as_echo "$as_val"'` | |
10536 | if test "x$as_val" = x""yes; then | |
10537 | cat >>confdefs.h <<_ACEOF | |
10538 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10539 | _ACEOF | |
10540 | ||
10541 | else | |
10542 | $bailout | |
10543 | fi | |
10544 | ||
10545 | done | |
10546 | ||
10547 | check_lib_no_libs cman cman_init | |
10548 | if test $NOTFOUND = 0; then | |
10549 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10550 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10551 | CMAN_LIBS="-lcman" | |
10552 | HAVE_CMAN=yes | |
10553 | fi | |
10554 | elif test $pkg_failed = untried; then | |
10555 | NOTFOUND=0 | |
10556 | ||
10557 | for ac_header in libcman.h | |
10558 | do | |
10559 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10560 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10561 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10562 | $as_echo_n "checking for $ac_header... " >&6; } | |
10563 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10564 | $as_echo_n "(cached) " >&6 | |
10565 | fi | |
10566 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10567 | $as_echo "$as_val"'` | |
10568 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10569 | $as_echo "$ac_res" >&6; } | |
10570 | else | |
10571 | # Is the header compilable? | |
10572 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10573 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10574 | cat >conftest.$ac_ext <<_ACEOF | |
10575 | /* confdefs.h. */ | |
10576 | _ACEOF | |
10577 | cat confdefs.h >>conftest.$ac_ext | |
10578 | cat >>conftest.$ac_ext <<_ACEOF | |
10579 | /* end confdefs.h. */ | |
10580 | $ac_includes_default | |
10581 | #include <$ac_header> | |
10582 | _ACEOF | |
10583 | rm -f conftest.$ac_objext | |
10584 | if { (ac_try="$ac_compile" | |
10585 | case "(($ac_try" in | |
10586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10587 | *) ac_try_echo=$ac_try;; | |
10588 | esac | |
10589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10590 | $as_echo "$ac_try_echo") >&5 | |
10591 | (eval "$ac_compile") 2>conftest.er1 | |
10592 | ac_status=$? | |
10593 | grep -v '^ *+' conftest.er1 >conftest.err | |
10594 | rm -f conftest.er1 | |
10595 | cat conftest.err >&5 | |
10596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10597 | (exit $ac_status); } && { | |
10598 | test -z "$ac_c_werror_flag" || | |
10599 | test ! -s conftest.err | |
10600 | } && test -s conftest.$ac_objext; then | |
10601 | ac_header_compiler=yes | |
10602 | else | |
10603 | $as_echo "$as_me: failed program was:" >&5 | |
10604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10605 | ||
10606 | ac_header_compiler=no | |
10607 | fi | |
10608 | ||
10609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10610 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10611 | $as_echo "$ac_header_compiler" >&6; } | |
10612 | ||
10613 | # Is the header present? | |
10614 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10615 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10616 | cat >conftest.$ac_ext <<_ACEOF | |
10617 | /* confdefs.h. */ | |
10618 | _ACEOF | |
10619 | cat confdefs.h >>conftest.$ac_ext | |
10620 | cat >>conftest.$ac_ext <<_ACEOF | |
10621 | /* end confdefs.h. */ | |
10622 | #include <$ac_header> | |
10623 | _ACEOF | |
10624 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10625 | case "(($ac_try" in | |
10626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10627 | *) ac_try_echo=$ac_try;; | |
10628 | esac | |
10629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10630 | $as_echo "$ac_try_echo") >&5 | |
10631 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10632 | ac_status=$? | |
10633 | grep -v '^ *+' conftest.er1 >conftest.err | |
10634 | rm -f conftest.er1 | |
10635 | cat conftest.err >&5 | |
10636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10637 | (exit $ac_status); } >/dev/null && { | |
10638 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10639 | test ! -s conftest.err | |
10640 | }; then | |
10641 | ac_header_preproc=yes | |
10642 | else | |
10643 | $as_echo "$as_me: failed program was:" >&5 | |
10644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10645 | ||
10646 | ac_header_preproc=no | |
10647 | fi | |
10648 | ||
10649 | rm -f conftest.err conftest.$ac_ext | |
10650 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10651 | $as_echo "$ac_header_preproc" >&6; } | |
10652 | ||
10653 | # So? What about this header? | |
10654 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10655 | yes:no: ) | |
10656 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10657 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10658 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10659 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10660 | ac_header_preproc=yes | |
10661 | ;; | |
10662 | no:yes:* ) | |
10663 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10664 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10665 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10666 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10667 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10668 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10669 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10670 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10671 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10672 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10674 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10675 | ||
10676 | ;; | |
10677 | esac | |
10678 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10679 | $as_echo_n "checking for $ac_header... " >&6; } | |
10680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10681 | $as_echo_n "(cached) " >&6 | |
10682 | else | |
10683 | eval "$as_ac_Header=\$ac_header_preproc" | |
10684 | fi | |
10685 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10686 | $as_echo "$as_val"'` | |
10687 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10688 | $as_echo "$ac_res" >&6; } | |
10689 | ||
10690 | fi | |
10691 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10692 | $as_echo "$as_val"'` | |
10693 | if test "x$as_val" = x""yes; then | |
10694 | cat >>confdefs.h <<_ACEOF | |
10695 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10696 | _ACEOF | |
10697 | ||
10698 | else | |
10699 | $bailout | |
10700 | fi | |
10701 | ||
10702 | done | |
10703 | ||
10704 | check_lib_no_libs cman cman_init | |
10705 | if test $NOTFOUND = 0; then | |
10706 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10707 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10708 | CMAN_LIBS="-lcman" | |
10709 | HAVE_CMAN=yes | |
10710 | fi | |
10711 | else | |
10712 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10713 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10714 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10715 | $as_echo "yes" >&6; } | |
10716 | HAVE_CMAN=yes | |
10717 | fi | |
10718 | CHECKCONFDB=yes | |
10719 | CHECKDLM=yes | |
10720 | fi | |
10721 | ||
10722 | if test x$BUILDCOROSYNC = xyes || \ | |
10723 | test x$BUILDOPENAIS = xyes; then | |
10724 | ||
10725 | pkg_failed=no | |
10726 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10727 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10728 | ||
10729 | if test -n "$COROSYNC_CFLAGS"; then | |
10730 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10731 | elif test -n "$PKG_CONFIG"; then | |
10732 | if test -n "$PKG_CONFIG" && \ | |
10733 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10734 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10735 | ac_status=$? | |
10736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10737 | (exit $ac_status); }; then | |
10738 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10739 | else | |
10740 | pkg_failed=yes | |
10741 | fi | |
10742 | else | |
10743 | pkg_failed=untried | |
10744 | fi | |
10745 | if test -n "$COROSYNC_LIBS"; then | |
10746 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10747 | elif test -n "$PKG_CONFIG"; then | |
10748 | if test -n "$PKG_CONFIG" && \ | |
10749 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10750 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10751 | ac_status=$? | |
10752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10753 | (exit $ac_status); }; then | |
10754 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10755 | else | |
10756 | pkg_failed=yes | |
10757 | fi | |
10758 | else | |
10759 | pkg_failed=untried | |
10760 | fi | |
10761 | ||
10762 | ||
10763 | ||
10764 | if test $pkg_failed = yes; then | |
10765 | ||
10766 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10767 | _pkg_short_errors_supported=yes | |
10768 | else | |
10769 | _pkg_short_errors_supported=no | |
10770 | fi | |
10771 | if test $_pkg_short_errors_supported = yes; then | |
10772 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10773 | else | |
10774 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10775 | fi | |
10776 | # Put the nasty error message in config.log where it belongs | |
10777 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10778 | ||
10779 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10780 | $as_echo "no" >&6; } | |
10781 | $bailout | |
10782 | elif test $pkg_failed = untried; then | |
10783 | $bailout | |
10784 | else | |
10785 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10786 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10787 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10788 | $as_echo "yes" >&6; } | |
10789 | HAVE_COROSYNC=yes | |
10790 | fi | |
10791 | CHECKCONFDB=yes | |
10792 | fi | |
10793 | ||
10794 | if test x$BUILDCOROSYNC = xyes; then | |
10795 | ||
10796 | pkg_failed=no | |
10797 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10798 | $as_echo_n "checking for QUORUM... " >&6; } | |
10799 | ||
10800 | if test -n "$QUORUM_CFLAGS"; then | |
10801 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10802 | elif test -n "$PKG_CONFIG"; then | |
10803 | if test -n "$PKG_CONFIG" && \ | |
10804 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10805 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10806 | ac_status=$? | |
10807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10808 | (exit $ac_status); }; then | |
10809 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10810 | else | |
10811 | pkg_failed=yes | |
10812 | fi | |
10813 | else | |
10814 | pkg_failed=untried | |
10815 | fi | |
10816 | if test -n "$QUORUM_LIBS"; then | |
10817 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
10818 | elif test -n "$PKG_CONFIG"; then | |
10819 | if test -n "$PKG_CONFIG" && \ | |
10820 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10821 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10822 | ac_status=$? | |
10823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10824 | (exit $ac_status); }; then | |
10825 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
10826 | else | |
10827 | pkg_failed=yes | |
10828 | fi | |
10829 | else | |
10830 | pkg_failed=untried | |
10831 | fi | |
10832 | ||
10833 | ||
10834 | ||
10835 | if test $pkg_failed = yes; then | |
10836 | ||
10837 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10838 | _pkg_short_errors_supported=yes | |
10839 | else | |
10840 | _pkg_short_errors_supported=no | |
10841 | fi | |
10842 | if test $_pkg_short_errors_supported = yes; then | |
10843 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
10844 | else | |
10845 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
10846 | fi | |
10847 | # Put the nasty error message in config.log where it belongs | |
10848 | echo "$QUORUM_PKG_ERRORS" >&5 | |
10849 | ||
10850 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10851 | $as_echo "no" >&6; } | |
10852 | $bailout | |
10853 | elif test $pkg_failed = untried; then | |
10854 | $bailout | |
10855 | else | |
10856 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
10857 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
10858 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10859 | $as_echo "yes" >&6; } | |
10860 | HAVE_QUORUM=yes | |
10861 | fi | |
10862 | CHECKCPG=yes | |
10863 | CHECKDLM=yes | |
10864 | fi | |
10865 | ||
10866 | if test x$BUILDOPENAIS = xyes; then | |
10867 | ||
10868 | pkg_failed=no | |
10869 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
10870 | $as_echo_n "checking for SALCK... " >&6; } | |
10871 | ||
10872 | if test -n "$SALCK_CFLAGS"; then | |
10873 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
10874 | elif test -n "$PKG_CONFIG"; then | |
10875 | if test -n "$PKG_CONFIG" && \ | |
10876 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10877 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10878 | ac_status=$? | |
10879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10880 | (exit $ac_status); }; then | |
10881 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
10882 | else | |
10883 | pkg_failed=yes | |
10884 | fi | |
10885 | else | |
10886 | pkg_failed=untried | |
10887 | fi | |
10888 | if test -n "$SALCK_LIBS"; then | |
10889 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
10890 | elif test -n "$PKG_CONFIG"; then | |
10891 | if test -n "$PKG_CONFIG" && \ | |
10892 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10893 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10894 | ac_status=$? | |
10895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; then | |
10897 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
10898 | else | |
10899 | pkg_failed=yes | |
10900 | fi | |
10901 | else | |
10902 | pkg_failed=untried | |
10903 | fi | |
10904 | ||
10905 | ||
10906 | ||
10907 | if test $pkg_failed = yes; then | |
10908 | ||
10909 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10910 | _pkg_short_errors_supported=yes | |
10911 | else | |
10912 | _pkg_short_errors_supported=no | |
10913 | fi | |
10914 | if test $_pkg_short_errors_supported = yes; then | |
10915 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
10916 | else | |
10917 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
10918 | fi | |
10919 | # Put the nasty error message in config.log where it belongs | |
10920 | echo "$SALCK_PKG_ERRORS" >&5 | |
10921 | ||
10922 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10923 | $as_echo "no" >&6; } | |
10924 | $bailout | |
10925 | elif test $pkg_failed = untried; then | |
10926 | $bailout | |
10927 | else | |
10928 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
10929 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
10930 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10931 | $as_echo "yes" >&6; } | |
10932 | HAVE_SALCK=yes | |
10933 | fi | |
10934 | CHECKCPG=yes | |
10935 | fi | |
10936 | ||
10937 | ||
10938 | ||
10939 | if test x$CHECKCONFDB = xyes; then | |
10940 | ||
10941 | pkg_failed=no | |
10942 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
10943 | $as_echo_n "checking for CONFDB... " >&6; } | |
10944 | ||
10945 | if test -n "$CONFDB_CFLAGS"; then | |
10946 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
10947 | elif test -n "$PKG_CONFIG"; then | |
10948 | if test -n "$PKG_CONFIG" && \ | |
10949 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
10950 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
10951 | ac_status=$? | |
10952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10953 | (exit $ac_status); }; then | |
10954 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
10955 | else | |
10956 | pkg_failed=yes | |
10957 | fi | |
10958 | else | |
10959 | pkg_failed=untried | |
10960 | fi | |
10961 | if test -n "$CONFDB_LIBS"; then | |
10962 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
10963 | elif test -n "$PKG_CONFIG"; then | |
10964 | if test -n "$PKG_CONFIG" && \ | |
10965 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
10966 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
10967 | ac_status=$? | |
10968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10969 | (exit $ac_status); }; then | |
10970 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
10971 | else | |
10972 | pkg_failed=yes | |
10973 | fi | |
10974 | else | |
10975 | pkg_failed=untried | |
10976 | fi | |
10977 | ||
10978 | ||
10979 | ||
10980 | if test $pkg_failed = yes; then | |
10981 | ||
10982 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10983 | _pkg_short_errors_supported=yes | |
10984 | else | |
10985 | _pkg_short_errors_supported=no | |
10986 | fi | |
10987 | if test $_pkg_short_errors_supported = yes; then | |
10988 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
10989 | else | |
10990 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
10991 | fi | |
10992 | # Put the nasty error message in config.log where it belongs | |
10993 | echo "$CONFDB_PKG_ERRORS" >&5 | |
10994 | ||
10995 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10996 | $as_echo "no" >&6; } | |
10997 | HAVE_CONFDB=no | |
10998 | elif test $pkg_failed = untried; then | |
10999 | HAVE_CONFDB=no | |
11000 | else | |
11001 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11002 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11003 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11004 | $as_echo "yes" >&6; } | |
11005 | HAVE_CONFDB=yes | |
11006 | fi | |
11007 | ||
11008 | ||
11009 | for ac_header in corosync/confdb.h | |
11010 | do | |
11011 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11012 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11013 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11014 | $as_echo_n "checking for $ac_header... " >&6; } | |
11015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11016 | $as_echo_n "(cached) " >&6 | |
11017 | fi | |
11018 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11019 | $as_echo "$as_val"'` | |
11020 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11021 | $as_echo "$ac_res" >&6; } | |
11022 | else | |
11023 | # Is the header compilable? | |
11024 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11025 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11026 | cat >conftest.$ac_ext <<_ACEOF | |
11027 | /* confdefs.h. */ | |
11028 | _ACEOF | |
11029 | cat confdefs.h >>conftest.$ac_ext | |
11030 | cat >>conftest.$ac_ext <<_ACEOF | |
11031 | /* end confdefs.h. */ | |
11032 | $ac_includes_default | |
11033 | #include <$ac_header> | |
11034 | _ACEOF | |
11035 | rm -f conftest.$ac_objext | |
11036 | if { (ac_try="$ac_compile" | |
11037 | case "(($ac_try" in | |
11038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11039 | *) ac_try_echo=$ac_try;; | |
11040 | esac | |
11041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11042 | $as_echo "$ac_try_echo") >&5 | |
11043 | (eval "$ac_compile") 2>conftest.er1 | |
11044 | ac_status=$? | |
11045 | grep -v '^ *+' conftest.er1 >conftest.err | |
11046 | rm -f conftest.er1 | |
11047 | cat conftest.err >&5 | |
11048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11049 | (exit $ac_status); } && { | |
11050 | test -z "$ac_c_werror_flag" || | |
11051 | test ! -s conftest.err | |
11052 | } && test -s conftest.$ac_objext; then | |
11053 | ac_header_compiler=yes | |
11054 | else | |
11055 | $as_echo "$as_me: failed program was:" >&5 | |
11056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11057 | ||
11058 | ac_header_compiler=no | |
11059 | fi | |
11060 | ||
11061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11062 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11063 | $as_echo "$ac_header_compiler" >&6; } | |
11064 | ||
11065 | # Is the header present? | |
11066 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11067 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11068 | cat >conftest.$ac_ext <<_ACEOF | |
11069 | /* confdefs.h. */ | |
11070 | _ACEOF | |
11071 | cat confdefs.h >>conftest.$ac_ext | |
11072 | cat >>conftest.$ac_ext <<_ACEOF | |
11073 | /* end confdefs.h. */ | |
11074 | #include <$ac_header> | |
11075 | _ACEOF | |
11076 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11077 | case "(($ac_try" in | |
11078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11079 | *) ac_try_echo=$ac_try;; | |
11080 | esac | |
11081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11082 | $as_echo "$ac_try_echo") >&5 | |
11083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11084 | ac_status=$? | |
11085 | grep -v '^ *+' conftest.er1 >conftest.err | |
11086 | rm -f conftest.er1 | |
11087 | cat conftest.err >&5 | |
11088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11089 | (exit $ac_status); } >/dev/null && { | |
11090 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11091 | test ! -s conftest.err | |
11092 | }; then | |
11093 | ac_header_preproc=yes | |
11094 | else | |
11095 | $as_echo "$as_me: failed program was:" >&5 | |
11096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11097 | ||
11098 | ac_header_preproc=no | |
11099 | fi | |
11100 | ||
11101 | rm -f conftest.err conftest.$ac_ext | |
11102 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11103 | $as_echo "$ac_header_preproc" >&6; } | |
11104 | ||
11105 | # So? What about this header? | |
11106 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11107 | yes:no: ) | |
11108 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11109 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11110 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11111 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11112 | ac_header_preproc=yes | |
11113 | ;; | |
11114 | no:yes:* ) | |
11115 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11116 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11117 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11118 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11119 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11120 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11121 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11122 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11123 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11124 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11125 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11126 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11127 | ||
11128 | ;; | |
11129 | esac | |
11130 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11131 | $as_echo_n "checking for $ac_header... " >&6; } | |
11132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11133 | $as_echo_n "(cached) " >&6 | |
11134 | else | |
11135 | eval "$as_ac_Header=\$ac_header_preproc" | |
11136 | fi | |
11137 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11138 | $as_echo "$as_val"'` | |
11139 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11140 | $as_echo "$ac_res" >&6; } | |
11141 | ||
11142 | fi | |
11143 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11144 | $as_echo "$as_val"'` | |
11145 | if test "x$as_val" = x""yes; then | |
11146 | cat >>confdefs.h <<_ACEOF | |
11147 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11148 | _ACEOF | |
11149 | HAVE_CONFDB_H=yes | |
11150 | else | |
11151 | HAVE_CONFDB_H=no | |
11152 | fi | |
11153 | ||
11154 | done | |
11155 | ||
11156 | ||
11157 | if test x$HAVE_CONFDB != xyes && \ | |
11158 | test x$HAVE_CONFDB_H = xyes; then | |
11159 | check_lib_no_libs confdb confdb_initialize | |
11160 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11161 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11162 | CONFDB_LIBS="-lconfdb" | |
11163 | HAVE_CONFDB=yes | |
11164 | fi | |
11165 | ||
11166 | if test x$BUILDCOROSYNC = xyes && \ | |
11167 | test x$HAVE_CONFDB != xyes && | |
11168 | test x$CLVMD != xall; then | |
11169 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11170 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11171 | { (exit 1); exit 1; }; } | |
11172 | fi | |
11173 | fi | |
11174 | ||
11175 | if test x$CHECKCPG = xyes; then | |
11176 | ||
11177 | pkg_failed=no | |
11178 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11179 | $as_echo_n "checking for CPG... " >&6; } | |
11180 | ||
11181 | if test -n "$CPG_CFLAGS"; then | |
11182 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11183 | elif test -n "$PKG_CONFIG"; then | |
11184 | if test -n "$PKG_CONFIG" && \ | |
11185 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11186 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11187 | ac_status=$? | |
11188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11189 | (exit $ac_status); }; then | |
11190 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11191 | else | |
11192 | pkg_failed=yes | |
11193 | fi | |
11194 | else | |
11195 | pkg_failed=untried | |
11196 | fi | |
11197 | if test -n "$CPG_LIBS"; then | |
11198 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11199 | elif test -n "$PKG_CONFIG"; then | |
11200 | if test -n "$PKG_CONFIG" && \ | |
11201 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11202 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11203 | ac_status=$? | |
11204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11205 | (exit $ac_status); }; then | |
11206 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11207 | else | |
11208 | pkg_failed=yes | |
11209 | fi | |
11210 | else | |
11211 | pkg_failed=untried | |
11212 | fi | |
11213 | ||
11214 | ||
11215 | ||
11216 | if test $pkg_failed = yes; then | |
11217 | ||
11218 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11219 | _pkg_short_errors_supported=yes | |
11220 | else | |
11221 | _pkg_short_errors_supported=no | |
11222 | fi | |
11223 | if test $_pkg_short_errors_supported = yes; then | |
11224 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11225 | else | |
11226 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11227 | fi | |
11228 | # Put the nasty error message in config.log where it belongs | |
11229 | echo "$CPG_PKG_ERRORS" >&5 | |
11230 | ||
11231 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11232 | $as_echo "no" >&6; } | |
11233 | $bailout | |
11234 | elif test $pkg_failed = untried; then | |
11235 | $bailout | |
11236 | else | |
11237 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11238 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11239 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11240 | $as_echo "yes" >&6; } | |
11241 | HAVE_CPG=yes | |
11242 | fi | |
11243 | fi | |
11244 | ||
11245 | if test x$CHECKDLM = xyes; then | |
11246 | ||
11247 | pkg_failed=no | |
11248 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11249 | $as_echo_n "checking for DLM... " >&6; } | |
11250 | ||
11251 | if test -n "$DLM_CFLAGS"; then | |
11252 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11253 | elif test -n "$PKG_CONFIG"; then | |
11254 | if test -n "$PKG_CONFIG" && \ | |
11255 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11256 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11257 | ac_status=$? | |
11258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11259 | (exit $ac_status); }; then | |
11260 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11261 | else | |
11262 | pkg_failed=yes | |
11263 | fi | |
11264 | else | |
11265 | pkg_failed=untried | |
11266 | fi | |
11267 | if test -n "$DLM_LIBS"; then | |
11268 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11269 | elif test -n "$PKG_CONFIG"; then | |
11270 | if test -n "$PKG_CONFIG" && \ | |
11271 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11272 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11273 | ac_status=$? | |
11274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11275 | (exit $ac_status); }; then | |
11276 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11277 | else | |
11278 | pkg_failed=yes | |
11279 | fi | |
11280 | else | |
11281 | pkg_failed=untried | |
11282 | fi | |
11283 | ||
11284 | ||
11285 | ||
11286 | if test $pkg_failed = yes; then | |
11287 | ||
11288 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11289 | _pkg_short_errors_supported=yes | |
11290 | else | |
11291 | _pkg_short_errors_supported=no | |
11292 | fi | |
11293 | if test $_pkg_short_errors_supported = yes; then | |
11294 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11295 | else | |
11296 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11297 | fi | |
11298 | # Put the nasty error message in config.log where it belongs | |
11299 | echo "$DLM_PKG_ERRORS" >&5 | |
11300 | ||
11301 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11302 | $as_echo "no" >&6; } | |
11303 | NOTFOUND=0 | |
11304 | ||
11305 | for ac_header in libdlm.h | |
11306 | do | |
11307 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11309 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11310 | $as_echo_n "checking for $ac_header... " >&6; } | |
11311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11312 | $as_echo_n "(cached) " >&6 | |
11313 | fi | |
11314 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11315 | $as_echo "$as_val"'` | |
11316 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11317 | $as_echo "$ac_res" >&6; } | |
11318 | else | |
11319 | # Is the header compilable? | |
11320 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11321 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11322 | cat >conftest.$ac_ext <<_ACEOF | |
11323 | /* confdefs.h. */ | |
11324 | _ACEOF | |
11325 | cat confdefs.h >>conftest.$ac_ext | |
11326 | cat >>conftest.$ac_ext <<_ACEOF | |
11327 | /* end confdefs.h. */ | |
11328 | $ac_includes_default | |
11329 | #include <$ac_header> | |
11330 | _ACEOF | |
11331 | rm -f conftest.$ac_objext | |
11332 | if { (ac_try="$ac_compile" | |
11333 | case "(($ac_try" in | |
11334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11335 | *) ac_try_echo=$ac_try;; | |
11336 | esac | |
11337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11338 | $as_echo "$ac_try_echo") >&5 | |
11339 | (eval "$ac_compile") 2>conftest.er1 | |
11340 | ac_status=$? | |
11341 | grep -v '^ *+' conftest.er1 >conftest.err | |
11342 | rm -f conftest.er1 | |
11343 | cat conftest.err >&5 | |
11344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11345 | (exit $ac_status); } && { | |
11346 | test -z "$ac_c_werror_flag" || | |
11347 | test ! -s conftest.err | |
11348 | } && test -s conftest.$ac_objext; then | |
11349 | ac_header_compiler=yes | |
11350 | else | |
11351 | $as_echo "$as_me: failed program was:" >&5 | |
11352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11353 | ||
11354 | ac_header_compiler=no | |
11355 | fi | |
11356 | ||
11357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11358 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11359 | $as_echo "$ac_header_compiler" >&6; } | |
11360 | ||
11361 | # Is the header present? | |
11362 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11363 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11364 | cat >conftest.$ac_ext <<_ACEOF | |
11365 | /* confdefs.h. */ | |
11366 | _ACEOF | |
11367 | cat confdefs.h >>conftest.$ac_ext | |
11368 | cat >>conftest.$ac_ext <<_ACEOF | |
11369 | /* end confdefs.h. */ | |
11370 | #include <$ac_header> | |
11371 | _ACEOF | |
11372 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11373 | case "(($ac_try" in | |
11374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11375 | *) ac_try_echo=$ac_try;; | |
11376 | esac | |
11377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11378 | $as_echo "$ac_try_echo") >&5 | |
11379 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11380 | ac_status=$? | |
11381 | grep -v '^ *+' conftest.er1 >conftest.err | |
11382 | rm -f conftest.er1 | |
11383 | cat conftest.err >&5 | |
11384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11385 | (exit $ac_status); } >/dev/null && { | |
11386 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11387 | test ! -s conftest.err | |
11388 | }; then | |
11389 | ac_header_preproc=yes | |
11390 | else | |
11391 | $as_echo "$as_me: failed program was:" >&5 | |
11392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11393 | ||
11394 | ac_header_preproc=no | |
11395 | fi | |
11396 | ||
11397 | rm -f conftest.err conftest.$ac_ext | |
11398 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11399 | $as_echo "$ac_header_preproc" >&6; } | |
11400 | ||
11401 | # So? What about this header? | |
11402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11403 | yes:no: ) | |
11404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11405 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11407 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11408 | ac_header_preproc=yes | |
11409 | ;; | |
11410 | no:yes:* ) | |
11411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11412 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11414 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11415 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11416 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11417 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11418 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11420 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11422 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11423 | ||
11424 | ;; | |
11425 | esac | |
11426 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11427 | $as_echo_n "checking for $ac_header... " >&6; } | |
11428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11429 | $as_echo_n "(cached) " >&6 | |
11430 | else | |
11431 | eval "$as_ac_Header=\$ac_header_preproc" | |
11432 | fi | |
11433 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11434 | $as_echo "$as_val"'` | |
11435 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11436 | $as_echo "$ac_res" >&6; } | |
11437 | ||
11438 | fi | |
11439 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11440 | $as_echo "$as_val"'` | |
11441 | if test "x$as_val" = x""yes; then | |
11442 | cat >>confdefs.h <<_ACEOF | |
11443 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11444 | _ACEOF | |
11445 | ||
11446 | else | |
11447 | $bailout | |
11448 | fi | |
11449 | ||
11450 | done | |
11451 | ||
11452 | check_lib_no_libs dlm dlm_lock -lpthread | |
11453 | if test $NOTFOUND = 0; then | |
11454 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11455 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11456 | DLM_LIBS="-ldlm -lpthread" | |
11457 | HAVE_DLM=yes | |
11458 | fi | |
11459 | elif test $pkg_failed = untried; then | |
11460 | NOTFOUND=0 | |
11461 | ||
11462 | for ac_header in libdlm.h | |
11463 | do | |
11464 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11466 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11467 | $as_echo_n "checking for $ac_header... " >&6; } | |
11468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11469 | $as_echo_n "(cached) " >&6 | |
11470 | fi | |
11471 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11472 | $as_echo "$as_val"'` | |
11473 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11474 | $as_echo "$ac_res" >&6; } | |
11475 | else | |
11476 | # Is the header compilable? | |
11477 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11478 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11479 | cat >conftest.$ac_ext <<_ACEOF | |
11480 | /* confdefs.h. */ | |
11481 | _ACEOF | |
11482 | cat confdefs.h >>conftest.$ac_ext | |
11483 | cat >>conftest.$ac_ext <<_ACEOF | |
11484 | /* end confdefs.h. */ | |
11485 | $ac_includes_default | |
11486 | #include <$ac_header> | |
11487 | _ACEOF | |
11488 | rm -f conftest.$ac_objext | |
11489 | if { (ac_try="$ac_compile" | |
11490 | case "(($ac_try" in | |
11491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11492 | *) ac_try_echo=$ac_try;; | |
11493 | esac | |
11494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11495 | $as_echo "$ac_try_echo") >&5 | |
11496 | (eval "$ac_compile") 2>conftest.er1 | |
11497 | ac_status=$? | |
11498 | grep -v '^ *+' conftest.er1 >conftest.err | |
11499 | rm -f conftest.er1 | |
11500 | cat conftest.err >&5 | |
11501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 | (exit $ac_status); } && { | |
11503 | test -z "$ac_c_werror_flag" || | |
11504 | test ! -s conftest.err | |
11505 | } && test -s conftest.$ac_objext; then | |
11506 | ac_header_compiler=yes | |
11507 | else | |
11508 | $as_echo "$as_me: failed program was:" >&5 | |
11509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11510 | ||
11511 | ac_header_compiler=no | |
11512 | fi | |
11513 | ||
11514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11515 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11516 | $as_echo "$ac_header_compiler" >&6; } | |
11517 | ||
11518 | # Is the header present? | |
11519 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11520 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11521 | cat >conftest.$ac_ext <<_ACEOF | |
11522 | /* confdefs.h. */ | |
11523 | _ACEOF | |
11524 | cat confdefs.h >>conftest.$ac_ext | |
11525 | cat >>conftest.$ac_ext <<_ACEOF | |
11526 | /* end confdefs.h. */ | |
11527 | #include <$ac_header> | |
11528 | _ACEOF | |
11529 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11530 | case "(($ac_try" in | |
11531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11532 | *) ac_try_echo=$ac_try;; | |
11533 | esac | |
11534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11535 | $as_echo "$ac_try_echo") >&5 | |
11536 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11537 | ac_status=$? | |
11538 | grep -v '^ *+' conftest.er1 >conftest.err | |
11539 | rm -f conftest.er1 | |
11540 | cat conftest.err >&5 | |
11541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11542 | (exit $ac_status); } >/dev/null && { | |
11543 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11544 | test ! -s conftest.err | |
11545 | }; then | |
11546 | ac_header_preproc=yes | |
11547 | else | |
11548 | $as_echo "$as_me: failed program was:" >&5 | |
11549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11550 | ||
11551 | ac_header_preproc=no | |
11552 | fi | |
11553 | ||
11554 | rm -f conftest.err conftest.$ac_ext | |
11555 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11556 | $as_echo "$ac_header_preproc" >&6; } | |
11557 | ||
11558 | # So? What about this header? | |
11559 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11560 | yes:no: ) | |
11561 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11562 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11564 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11565 | ac_header_preproc=yes | |
11566 | ;; | |
11567 | no:yes:* ) | |
11568 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11569 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11570 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11571 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11572 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11573 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11574 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11575 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11576 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11577 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11578 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11579 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11580 | ||
11581 | ;; | |
11582 | esac | |
11583 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11584 | $as_echo_n "checking for $ac_header... " >&6; } | |
11585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11586 | $as_echo_n "(cached) " >&6 | |
11587 | else | |
11588 | eval "$as_ac_Header=\$ac_header_preproc" | |
11589 | fi | |
11590 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11591 | $as_echo "$as_val"'` | |
11592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11593 | $as_echo "$ac_res" >&6; } | |
11594 | ||
11595 | fi | |
11596 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11597 | $as_echo "$as_val"'` | |
11598 | if test "x$as_val" = x""yes; then | |
11599 | cat >>confdefs.h <<_ACEOF | |
11600 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11601 | _ACEOF | |
11602 | ||
11603 | else | |
11604 | $bailout | |
11605 | fi | |
11606 | ||
11607 | done | |
11608 | ||
11609 | check_lib_no_libs dlm dlm_lock -lpthread | |
11610 | if test $NOTFOUND = 0; then | |
11611 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11612 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11613 | DLM_LIBS="-ldlm -lpthread" | |
11614 | HAVE_DLM=yes | |
11615 | fi | |
11616 | else | |
11617 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11618 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11619 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11620 | $as_echo "yes" >&6; } | |
11621 | HAVE_DLM=yes | |
11622 | fi | |
11623 | fi | |
11624 | ||
11625 | if test x$CLVMD = xall; then | |
11626 | if test x$HAVE_CCS = xyes && \ | |
11627 | test x$HAVE_GULM = xyes; then | |
11628 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm backend" >&5 | |
11629 | $as_echo "Enabling clvmd gulm backend" >&6; } | |
11630 | NEWCLVMD="$NEWCLVMD,gulm" | |
11631 | fi | |
11632 | if test x$HAVE_CMAN = xyes && \ | |
11633 | test x$HAVE_DLM = xyes; then | |
11634 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman backend" >&5 | |
11635 | $as_echo "Enabling clvmd cman backend" >&6; } | |
11636 | NEWCLVMD="$NEWCLVMD,cman" | |
11637 | fi | |
11638 | if test x$HAVE_COROSYNC = xyes && \ | |
11639 | test x$HAVE_QUORUM = xyes && \ | |
11640 | test x$HAVE_CPG = xyes && \ | |
11641 | test x$HAVE_DLM = xyes && \ | |
11642 | test x$HAVE_CONFDB = xyes; then | |
11643 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync backend" >&5 | |
11644 | $as_echo "Enabling clvmd corosync backend" >&6; } | |
11645 | NEWCLVMD="$NEWCLVMD,corosync" | |
11646 | fi | |
11647 | if test x$HAVE_COROSYNC = xyes && \ | |
11648 | test x$HAVE_CPG = xyes && \ | |
11649 | test x$HAVE_SALCK = xyes; then | |
11650 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais backend" >&5 | |
11651 | $as_echo "Enabling clvmd openais backend" >&6; } | |
11652 | NEWCLVMD="$NEWCLVMD,openais" | |
11653 | fi | |
11654 | CLVMD="$NEWCLVMD" | |
11655 | fi | |
11656 | ||
11657 | ################################################################################ | |
66fd4529 AK |
11658 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11659 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11660 | # Check whether --enable-cmirrord was given. | |
11661 | if test "${enable_cmirrord+set}" = set; then | |
11662 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11663 | else | |
11664 | CMIRRORD=no | |
11665 | fi | |
11666 | ||
11667 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11668 | $as_echo "$CMIRRORD" >&6; } | |
11669 | ||
11670 | BUILD_CMIRRORD=$CMIRRORD | |
11671 | ||
11672 | ################################################################################ | |
11673 | ||
11674 | ||
11675 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11676 | ||
11677 | # Check whether --with-cmirrord-pidfile was given. | |
11678 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11679 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11680 | #define CMIRRORD_PIDFILE "$withval" | |
11681 | _ACEOF | |
11682 | ||
11683 | else | |
11684 | cat >>confdefs.h <<_ACEOF | |
11685 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11686 | _ACEOF | |
11687 | ||
a946372e AK |
11688 | fi |
11689 | ||
66fd4529 | 11690 | fi |
a946372e | 11691 | |
66fd4529 AK |
11692 | ################################################################################ |
11693 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
a946372e AK |
11694 | # |
11695 | # FIXME: ALSO NEED TO CHECK FOR CHECKPOINT MODULE | |
66fd4529 | 11696 | # FIXME: Merge this with the new clvmd logic |
a946372e AK |
11697 | # |
11698 | ||
11699 | pkg_failed=no | |
11700 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11701 | $as_echo_n "checking for CPG... " >&6; } | |
11702 | ||
11703 | if test -n "$CPG_CFLAGS"; then | |
11704 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11705 | elif test -n "$PKG_CONFIG"; then | |
11706 | if test -n "$PKG_CONFIG" && \ | |
11707 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11708 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11709 | ac_status=$? | |
11710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11711 | (exit $ac_status); }; then | |
11712 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11713 | else | |
11714 | pkg_failed=yes | |
11715 | fi | |
11716 | else | |
11717 | pkg_failed=untried | |
11718 | fi | |
11719 | if test -n "$CPG_LIBS"; then | |
11720 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11721 | elif test -n "$PKG_CONFIG"; then | |
11722 | if test -n "$PKG_CONFIG" && \ | |
11723 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11724 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11725 | ac_status=$? | |
11726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11727 | (exit $ac_status); }; then | |
11728 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11729 | else | |
11730 | pkg_failed=yes | |
11731 | fi | |
11732 | else | |
11733 | pkg_failed=untried | |
11734 | fi | |
11735 | ||
11736 | ||
11737 | ||
11738 | if test $pkg_failed = yes; then | |
11739 | ||
11740 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11741 | _pkg_short_errors_supported=yes | |
11742 | else | |
11743 | _pkg_short_errors_supported=no | |
11744 | fi | |
11745 | if test $_pkg_short_errors_supported = yes; then | |
11746 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11747 | else | |
11748 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11749 | fi | |
11750 | # Put the nasty error message in config.log where it belongs | |
11751 | echo "$CPG_PKG_ERRORS" >&5 | |
11752 | ||
11753 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11754 | $as_echo "no" >&6; } | |
11755 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
11756 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
11757 | CPG_LIBS="-lcpg" | |
11758 | elif test $pkg_failed = untried; then | |
11759 | { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5 | |
11760 | $as_echo "no pkg for libcpg library, using -lcpg" >&6; }; | |
11761 | CPG_LIBS="-lcpg" | |
11762 | else | |
11763 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11764 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11765 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11766 | $as_echo "yes" >&6; } | |
11767 | : | |
11768 | fi | |
11769 | fi | |
11770 | ||
11771 | ################################################################################ | |
11772 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
11773 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
11774 | # Check whether --enable-debug was given. | |
11775 | if test "${enable_debug+set}" = set; then | |
11776 | enableval=$enable_debug; DEBUG=$enableval | |
11777 | else | |
11778 | DEBUG=no | |
11779 | fi | |
11780 | ||
11781 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
11782 | $as_echo "$DEBUG" >&6; } | |
11783 | ||
11784 | if test x$DEBUG = xyes; then | |
11785 | COPTIMISE_FLAG= | |
11786 | else | |
11787 | CSCOPE_CMD= | |
11788 | fi | |
11789 | ||
11790 | ################################################################################ | |
11791 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
11792 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
11793 | ||
11794 | # Check whether --with-optimisation was given. | |
11795 | if test "${with_optimisation+set}" = set; then | |
11796 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
11797 | fi | |
11798 | ||
11799 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
11800 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
11801 | ||
11802 | ################################################################################ | |
11803 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
11804 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
11805 | # Check whether --enable-profiling was given. | |
11806 | if test "${enable_profiling+set}" = set; then | |
5556819a | 11807 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 11808 | else |
5556819a | 11809 | PROFILING=no |
fddafd51 ZK |
11810 | fi |
11811 | ||
ec6a6fbe AK |
11812 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
11813 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
11814 | |
11815 | if test "x$PROFILING" = xyes; then | |
11816 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
11817 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 11818 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
11819 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11820 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 11821 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 11822 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
11823 | else |
11824 | case $LCOV in | |
11825 | [\\/]* | ?:[\\/]*) | |
11826 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
11827 | ;; | |
11828 | *) | |
11829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11830 | for as_dir in $PATH | |
11831 | do | |
11832 | IFS=$as_save_IFS | |
11833 | test -z "$as_dir" && as_dir=. | |
11834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11836 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 11837 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
11838 | break 2 |
11839 | fi | |
11840 | done | |
11841 | done | |
11842 | IFS=$as_save_IFS | |
11843 | ||
b145d876 | 11844 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
11845 | ;; |
11846 | esac | |
11847 | fi | |
11848 | LCOV=$ac_cv_path_LCOV | |
11849 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
11850 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
11851 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 11852 | else |
ec6a6fbe AK |
11853 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11854 | $as_echo "no" >&6; } | |
fddafd51 ZK |
11855 | fi |
11856 | ||
11857 | ||
5556819a | 11858 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 11859 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
11860 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11861 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 11862 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 11863 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
11864 | else |
11865 | case $GENHTML in | |
11866 | [\\/]* | ?:[\\/]*) | |
11867 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
11868 | ;; | |
11869 | *) | |
11870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11871 | for as_dir in $PATH | |
11872 | do | |
11873 | IFS=$as_save_IFS | |
11874 | test -z "$as_dir" && as_dir=. | |
11875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11877 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 11878 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
11879 | break 2 |
11880 | fi | |
11881 | done | |
11882 | done | |
11883 | IFS=$as_save_IFS | |
11884 | ||
b145d876 | 11885 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
11886 | ;; |
11887 | esac | |
11888 | fi | |
11889 | GENHTML=$ac_cv_path_GENHTML | |
11890 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
11891 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
11892 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 11893 | else |
ec6a6fbe AK |
11894 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11895 | $as_echo "no" >&6; } | |
fddafd51 ZK |
11896 | fi |
11897 | ||
11898 | ||
b145d876 | 11899 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
11900 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
11901 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
11902 | { (exit 1); exit 1; }; } |
11903 | fi | |
5556819a | 11904 | fi |
d0191583 JM |
11905 | |
11906 | ################################################################################ | |
ec6a6fbe AK |
11907 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
11908 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
11909 | # Check whether --enable-devmapper was given. |
11910 | if test "${enable_devmapper+set}" = set; then | |
11911 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
11912 | fi |
11913 | ||
ec6a6fbe AK |
11914 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
11915 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
11916 | |
11917 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
11918 | |
11919 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11920 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
11921 | _ACEOF |
11922 | ||
11923 | fi | |
11924 | ||
a5f46f6a AK |
11925 | ################################################################################ |
11926 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
11927 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
11928 | # Check whether --enable-udev_sync was given. | |
11929 | if test "${enable_udev_sync+set}" = set; then | |
11930 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
11931 | else | |
11932 | UDEV_SYNC=no | |
11933 | fi | |
11934 | ||
11935 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
11936 | $as_echo "$UDEV_SYNC" >&6; } | |
11937 | ||
11938 | if test x$UDEV_SYNC = xyes; then | |
11939 | ||
11940 | cat >>confdefs.h <<\_ACEOF | |
11941 | #define UDEV_SYNC_SUPPORT 1 | |
11942 | _ACEOF | |
11943 | ||
11944 | fi | |
11945 | ||
11946 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
11947 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
11948 | # Check whether --enable-udev_rules was given. | |
11949 | if test "${enable_udev_rules+set}" = set; then | |
11950 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
11951 | else | |
11952 | UDEV_RULES=$UDEV_SYNC | |
11953 | fi | |
11954 | ||
11955 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
11956 | $as_echo "$UDEV_RULES" >&6; } | |
11957 | ||
93bd259b AK |
11958 | ################################################################################ |
11959 | # Check whether --enable-compat was given. | |
11960 | if test "${enable_compat+set}" = set; then | |
11961 | enableval=$enable_compat; DM_COMPAT=$enableval | |
11962 | else | |
11963 | DM_COMPAT=no | |
11964 | fi | |
11965 | ||
11966 | ||
11967 | ################################################################################ | |
11968 | # Check whether --enable-ioctl was given. | |
11969 | if test "${enable_ioctl+set}" = set; then | |
11970 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
11971 | fi | |
11972 | ||
11973 | ||
d0191583 | 11974 | ################################################################################ |
ec6a6fbe AK |
11975 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
11976 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
11977 | # Check whether --enable-o_direct was given. |
11978 | if test "${enable_o_direct+set}" = set; then | |
11979 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 11980 | fi |
ad6254c5 | 11981 | |
ec6a6fbe AK |
11982 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
11983 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 11984 | |
d0191583 | 11985 | if test x$ODIRECT = xyes; then |
ad6254c5 | 11986 | |
d0191583 JM |
11987 | cat >>confdefs.h <<\_ACEOF |
11988 | #define O_DIRECT_SUPPORT 1 | |
11989 | _ACEOF | |
ad6254c5 | 11990 | |
d0191583 | 11991 | fi |
ad6254c5 | 11992 | |
572fefeb AK |
11993 | ################################################################################ |
11994 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
11995 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
11996 | # Check whether --enable-applib was given. | |
11997 | if test "${enable_applib+set}" = set; then | |
11998 | enableval=$enable_applib; APPLIB=$enableval | |
11999 | else | |
12000 | APPLIB=no | |
12001 | fi | |
12002 | ||
12003 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12004 | $as_echo "$APPLIB" >&6; } | |
12005 | ||
12006 | test x$APPLIB = xyes \ | |
12007 | && LVM2APP_LIB=-llvm2app \ | |
12008 | || LVM2APP_LIB= | |
12009 | ||
d0191583 | 12010 | ################################################################################ |
ec6a6fbe AK |
12011 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12012 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12013 | # Check whether --enable-cmdlib was given. |
12014 | if test "${enable_cmdlib+set}" = set; then | |
12015 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12016 | else |
d0191583 JM |
12017 | CMDLIB=no |
12018 | fi | |
8a2fc586 | 12019 | |
ec6a6fbe AK |
12020 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12021 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12022 | |
2a9a80c9 | 12023 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12024 | && LVM2CMD_LIB=-llvm2cmd \ |
12025 | || LVM2CMD_LIB= | |
12026 | ||
93bd259b AK |
12027 | ################################################################################ |
12028 | # Check whether --enable-pkgconfig was given. | |
12029 | if test "${enable_pkgconfig+set}" = set; then | |
12030 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12031 | else | |
12032 | PKGCONFIG=no | |
12033 | fi | |
12034 | ||
2a9a80c9 | 12035 | |
d0191583 | 12036 | ################################################################################ |
ec6a6fbe AK |
12037 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12038 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12039 | # Check whether --enable-fsadm was given. |
12040 | if test "${enable_fsadm+set}" = set; then | |
12041 | enableval=$enable_fsadm; FSADM=$enableval | |
12042 | fi | |
8a2fc586 | 12043 | |
ec6a6fbe AK |
12044 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12045 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12046 | |
d0191583 | 12047 | ################################################################################ |
ec6a6fbe AK |
12048 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12049 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12050 | # Check whether --enable-dmeventd was given. |
12051 | if test "${enable_dmeventd+set}" = set; then | |
12052 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12053 | fi | |
ad6254c5 | 12054 | |
ec6a6fbe AK |
12055 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12056 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12057 | |
93bd259b AK |
12058 | BUILD_DMEVENTD=$DMEVENTD |
12059 | ||
2a9a80c9 PR |
12060 | if test x$DMEVENTD = xyes; then |
12061 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12062 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12063 | " >&5 |
ec6a6fbe | 12064 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12065 | " >&2;} |
d0191583 | 12066 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12067 | fi |
12068 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12069 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12070 | " >&5 |
ec6a6fbe | 12071 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12072 | " >&2;} |
12073 | { (exit 1); exit 1; }; } | |
12074 | fi | |
ad6254c5 | 12075 | fi |
7a197a62 | 12076 | |
d0191583 JM |
12077 | if test x$DMEVENTD = xyes; then |
12078 | ||
12079 | cat >>confdefs.h <<\_ACEOF | |
12080 | #define DMEVENTD 1 | |
ad6254c5 AK |
12081 | _ACEOF |
12082 | ||
ad6254c5 | 12083 | fi |
93bd259b AK |
12084 | |
12085 | ################################################################################ | |
12086 | ||
ec6a6fbe AK |
12087 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12088 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12089 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12090 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12091 | else |
12092 | ac_check_lib_save_LIBS=$LIBS | |
12093 | LIBS="-lc $LIBS" | |
12094 | cat >conftest.$ac_ext <<_ACEOF | |
12095 | /* confdefs.h. */ | |
12096 | _ACEOF | |
12097 | cat confdefs.h >>conftest.$ac_ext | |
12098 | cat >>conftest.$ac_ext <<_ACEOF | |
12099 | /* end confdefs.h. */ | |
12100 | ||
12101 | /* Override any GCC internal prototype to avoid an error. | |
12102 | Use char because int might match the return type of a GCC | |
12103 | builtin and then its argument prototype would still apply. */ | |
12104 | #ifdef __cplusplus | |
12105 | extern "C" | |
12106 | #endif | |
12107 | char getline (); | |
12108 | int | |
12109 | main () | |
12110 | { | |
12111 | return getline (); | |
12112 | ; | |
12113 | return 0; | |
12114 | } | |
12115 | _ACEOF | |
12116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12117 | if { (ac_try="$ac_link" | |
12118 | case "(($ac_try" in | |
12119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12120 | *) ac_try_echo=$ac_try;; | |
12121 | esac | |
ec6a6fbe AK |
12122 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12123 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12124 | (eval "$ac_link") 2>conftest.er1 |
12125 | ac_status=$? | |
12126 | grep -v '^ *+' conftest.er1 >conftest.err | |
12127 | rm -f conftest.er1 | |
12128 | cat conftest.err >&5 | |
ec6a6fbe | 12129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12130 | (exit $ac_status); } && { |
12131 | test -z "$ac_c_werror_flag" || | |
12132 | test ! -s conftest.err | |
ec6a6fbe AK |
12133 | } && test -s conftest$ac_exeext && { |
12134 | test "$cross_compiling" = yes || | |
12135 | $as_test_x conftest$ac_exeext | |
12136 | }; then | |
93bd259b AK |
12137 | ac_cv_lib_c_getline=yes |
12138 | else | |
ec6a6fbe | 12139 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12140 | sed 's/^/| /' conftest.$ac_ext >&5 |
12141 | ||
12142 | ac_cv_lib_c_getline=no | |
12143 | fi | |
12144 | ||
ec6a6fbe | 12145 | rm -rf conftest.dSYM |
93bd259b AK |
12146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12147 | conftest$ac_exeext conftest.$ac_ext | |
12148 | LIBS=$ac_check_lib_save_LIBS | |
12149 | fi | |
ec6a6fbe AK |
12150 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12151 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12152 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12153 | |
12154 | cat >>confdefs.h <<\_ACEOF | |
12155 | #define HAVE_GETLINE 1 | |
12156 | _ACEOF | |
12157 | ||
12158 | fi | |
12159 | ||
12160 | ||
12161 | ################################################################################ | |
12162 | ||
ec6a6fbe AK |
12163 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12164 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12165 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12166 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12167 | else |
12168 | ac_check_lib_save_LIBS=$LIBS | |
12169 | LIBS="-lc $LIBS" | |
12170 | cat >conftest.$ac_ext <<_ACEOF | |
12171 | /* confdefs.h. */ | |
12172 | _ACEOF | |
12173 | cat confdefs.h >>conftest.$ac_ext | |
12174 | cat >>conftest.$ac_ext <<_ACEOF | |
12175 | /* end confdefs.h. */ | |
12176 | ||
12177 | /* Override any GCC internal prototype to avoid an error. | |
12178 | Use char because int might match the return type of a GCC | |
12179 | builtin and then its argument prototype would still apply. */ | |
12180 | #ifdef __cplusplus | |
12181 | extern "C" | |
12182 | #endif | |
12183 | char canonicalize_file_name (); | |
12184 | int | |
12185 | main () | |
12186 | { | |
12187 | return canonicalize_file_name (); | |
12188 | ; | |
12189 | return 0; | |
12190 | } | |
12191 | _ACEOF | |
12192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12193 | if { (ac_try="$ac_link" | |
12194 | case "(($ac_try" in | |
12195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12196 | *) ac_try_echo=$ac_try;; | |
12197 | esac | |
ec6a6fbe AK |
12198 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12199 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12200 | (eval "$ac_link") 2>conftest.er1 |
12201 | ac_status=$? | |
12202 | grep -v '^ *+' conftest.er1 >conftest.err | |
12203 | rm -f conftest.er1 | |
12204 | cat conftest.err >&5 | |
ec6a6fbe | 12205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12206 | (exit $ac_status); } && { |
12207 | test -z "$ac_c_werror_flag" || | |
12208 | test ! -s conftest.err | |
ec6a6fbe AK |
12209 | } && test -s conftest$ac_exeext && { |
12210 | test "$cross_compiling" = yes || | |
12211 | $as_test_x conftest$ac_exeext | |
12212 | }; then | |
93bd259b AK |
12213 | ac_cv_lib_c_canonicalize_file_name=yes |
12214 | else | |
ec6a6fbe | 12215 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12216 | sed 's/^/| /' conftest.$ac_ext >&5 |
12217 | ||
12218 | ac_cv_lib_c_canonicalize_file_name=no | |
12219 | fi | |
12220 | ||
ec6a6fbe | 12221 | rm -rf conftest.dSYM |
93bd259b AK |
12222 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12223 | conftest$ac_exeext conftest.$ac_ext | |
12224 | LIBS=$ac_check_lib_save_LIBS | |
12225 | fi | |
ec6a6fbe AK |
12226 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12227 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12228 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12229 | |
12230 | cat >>confdefs.h <<\_ACEOF | |
12231 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12232 | _ACEOF | |
12233 | ||
12234 | fi | |
12235 | ||
12236 | ||
d0191583 JM |
12237 | ################################################################################ |
12238 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12239 | then exec_prefix=""; | |
12240 | fi; | |
ad6254c5 AK |
12241 | |
12242 | ################################################################################ | |
06e459df | 12243 | if test x$READLINE != xno; then |
ec6a6fbe AK |
12244 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
12245 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 12246 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 12247 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12248 | else |
12249 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 12250 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12251 | /* confdefs.h. */ |
12252 | _ACEOF | |
12253 | cat confdefs.h >>conftest.$ac_ext | |
12254 | cat >>conftest.$ac_ext <<_ACEOF | |
12255 | /* end confdefs.h. */ | |
12256 | ||
7a197a62 AK |
12257 | /* Override any GCC internal prototype to avoid an error. |
12258 | Use char because int might match the return type of a GCC | |
12259 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12260 | #ifdef __cplusplus |
12261 | extern "C" | |
12262 | #endif | |
ad6254c5 AK |
12263 | char tgetent (); |
12264 | int | |
12265 | main () | |
12266 | { | |
7a197a62 | 12267 | return tgetent (); |
ad6254c5 AK |
12268 | ; |
12269 | return 0; | |
12270 | } | |
12271 | _ACEOF | |
18dcfb69 | 12272 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
12273 | if test -z "$ac_lib"; then |
12274 | ac_res="none required" | |
12275 | else | |
12276 | ac_res=-l$ac_lib | |
12277 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12278 | fi | |
12279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12280 | if { (ac_try="$ac_link" | |
12281 | case "(($ac_try" in | |
12282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12283 | *) ac_try_echo=$ac_try;; | |
12284 | esac | |
ec6a6fbe AK |
12285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12286 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12287 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12288 | ac_status=$? |
8a2fc586 AK |
12289 | grep -v '^ *+' conftest.er1 >conftest.err |
12290 | rm -f conftest.er1 | |
12291 | cat conftest.err >&5 | |
ec6a6fbe | 12292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12293 | (exit $ac_status); } && { |
12294 | test -z "$ac_c_werror_flag" || | |
12295 | test ! -s conftest.err | |
ec6a6fbe AK |
12296 | } && test -s conftest$ac_exeext && { |
12297 | test "$cross_compiling" = yes || | |
12298 | $as_test_x conftest$ac_exeext | |
12299 | }; then | |
7a197a62 | 12300 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 12301 | else |
ec6a6fbe | 12302 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12303 | sed 's/^/| /' conftest.$ac_ext >&5 |
12304 | ||
ad6254c5 | 12305 | |
7a197a62 | 12306 | fi |
ad6254c5 | 12307 | |
ec6a6fbe | 12308 | rm -rf conftest.dSYM |
25fbec5b | 12309 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
12310 | conftest$ac_exeext |
12311 | if test "${ac_cv_search_tgetent+set}" = set; then | |
12312 | break | |
ad6254c5 | 12313 | fi |
7a197a62 AK |
12314 | done |
12315 | if test "${ac_cv_search_tgetent+set}" = set; then | |
12316 | : | |
12317 | else | |
12318 | ac_cv_search_tgetent=no | |
ad6254c5 | 12319 | fi |
7a197a62 | 12320 | rm conftest.$ac_ext |
ad6254c5 AK |
12321 | LIBS=$ac_func_search_save_LIBS |
12322 | fi | |
ec6a6fbe AK |
12323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
12324 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
12325 | ac_res=$ac_cv_search_tgetent |
12326 | if test "$ac_res" != no; then | |
12327 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 12328 | tg_found=yes |
ad6254c5 | 12329 | else |
06e459df JM |
12330 | tg_found=no |
12331 | fi | |
12332 | ||
12333 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 12334 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
12335 | --enable-readline option (which is enabled by default). Either disable readline |
12336 | support with --disable-readline or download and install termcap from: | |
12337 | ftp.gnu.org/gnu/termcap | |
12338 | Note: if you are using precompiled packages you will also need the development | |
12339 | package as well (which may be called termcap-devel or something similar). | |
12340 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
12341 | not found either - but you could try installing that as well. | |
12342 | " >&5 | |
ec6a6fbe | 12343 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
12344 | --enable-readline option (which is enabled by default). Either disable readline |
12345 | support with --disable-readline or download and install termcap from: | |
12346 | ftp.gnu.org/gnu/termcap | |
12347 | Note: if you are using precompiled packages you will also need the development | |
12348 | package as well (which may be called termcap-devel or something similar). | |
12349 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
12350 | not found either - but you could try installing that as well. | |
12351 | " >&2;} | |
12352 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
12353 | fi |
12354 | ||
12355 | ################################################################################ | |
ec6a6fbe AK |
12356 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12357 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12358 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12359 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12360 | else |
12361 | ac_check_lib_save_LIBS=$LIBS | |
12362 | LIBS="-ldl $LIBS" | |
12363 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12364 | /* confdefs.h. */ |
12365 | _ACEOF | |
12366 | cat confdefs.h >>conftest.$ac_ext | |
12367 | cat >>conftest.$ac_ext <<_ACEOF | |
12368 | /* end confdefs.h. */ | |
12369 | ||
7a197a62 AK |
12370 | /* Override any GCC internal prototype to avoid an error. |
12371 | Use char because int might match the return type of a GCC | |
12372 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12373 | #ifdef __cplusplus |
12374 | extern "C" | |
12375 | #endif | |
ad6254c5 AK |
12376 | char dlopen (); |
12377 | int | |
12378 | main () | |
12379 | { | |
7a197a62 | 12380 | return dlopen (); |
ad6254c5 AK |
12381 | ; |
12382 | return 0; | |
12383 | } | |
12384 | _ACEOF | |
12385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12386 | if { (ac_try="$ac_link" |
12387 | case "(($ac_try" in | |
12388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12389 | *) ac_try_echo=$ac_try;; | |
12390 | esac | |
ec6a6fbe AK |
12391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12392 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12393 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12394 | ac_status=$? |
8a2fc586 AK |
12395 | grep -v '^ *+' conftest.er1 >conftest.err |
12396 | rm -f conftest.er1 | |
12397 | cat conftest.err >&5 | |
ec6a6fbe | 12398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12399 | (exit $ac_status); } && { |
12400 | test -z "$ac_c_werror_flag" || | |
12401 | test ! -s conftest.err | |
ec6a6fbe AK |
12402 | } && test -s conftest$ac_exeext && { |
12403 | test "$cross_compiling" = yes || | |
12404 | $as_test_x conftest$ac_exeext | |
12405 | }; then | |
ad6254c5 AK |
12406 | ac_cv_lib_dl_dlopen=yes |
12407 | else | |
ec6a6fbe | 12408 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12409 | sed 's/^/| /' conftest.$ac_ext >&5 |
12410 | ||
7a197a62 | 12411 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12412 | fi |
7a197a62 | 12413 | |
ec6a6fbe | 12414 | rm -rf conftest.dSYM |
25fbec5b | 12415 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12416 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12417 | LIBS=$ac_check_lib_save_LIBS |
12418 | fi | |
ec6a6fbe AK |
12419 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12420 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12421 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
12422 | HAVE_LIBDL=yes |
12423 | else | |
12424 | HAVE_LIBDL=no | |
12425 | fi | |
12426 | ||
12427 | ||
7e9e9502 | 12428 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
12429 | |
12430 | cat >>confdefs.h <<\_ACEOF | |
12431 | #define HAVE_LIBDL 1 | |
12432 | _ACEOF | |
12433 | ||
ad6254c5 AK |
12434 | LIBS="-ldl $LIBS" |
12435 | else | |
12436 | HAVE_LIBDL=no | |
12437 | fi | |
12438 | ||
12439 | ################################################################################ | |
12440 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12441 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12442 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12443 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12444 | " >&5 |
ec6a6fbe | 12445 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12446 | " >&2;} |
12447 | { (exit 1); exit 1; }; } | |
12448 | fi | |
12449 | ||
d0191583 | 12450 | ################################################################################ |
ec6a6fbe AK |
12451 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12452 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12453 | # Check whether --enable-selinux was given. |
12454 | if test "${enable_selinux+set}" = set; then | |
12455 | enableval=$enable_selinux; SELINUX=$enableval | |
12456 | fi | |
12457 | ||
ec6a6fbe AK |
12458 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12459 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12460 | |
ad6254c5 AK |
12461 | ################################################################################ |
12462 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12463 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12464 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12465 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12466 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12467 | else |
12468 | ac_check_lib_save_LIBS=$LIBS | |
12469 | LIBS="-lsepol $LIBS" | |
12470 | cat >conftest.$ac_ext <<_ACEOF | |
12471 | /* confdefs.h. */ | |
12472 | _ACEOF | |
12473 | cat confdefs.h >>conftest.$ac_ext | |
12474 | cat >>conftest.$ac_ext <<_ACEOF | |
12475 | /* end confdefs.h. */ | |
12476 | ||
7a197a62 AK |
12477 | /* Override any GCC internal prototype to avoid an error. |
12478 | Use char because int might match the return type of a GCC | |
12479 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12480 | #ifdef __cplusplus |
12481 | extern "C" | |
12482 | #endif | |
8a2fc586 AK |
12483 | char sepol_check_context (); |
12484 | int | |
12485 | main () | |
12486 | { | |
7a197a62 | 12487 | return sepol_check_context (); |
8a2fc586 AK |
12488 | ; |
12489 | return 0; | |
12490 | } | |
12491 | _ACEOF | |
12492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12493 | if { (ac_try="$ac_link" |
12494 | case "(($ac_try" in | |
12495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12496 | *) ac_try_echo=$ac_try;; | |
12497 | esac | |
ec6a6fbe AK |
12498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12499 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12500 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12501 | ac_status=$? |
12502 | grep -v '^ *+' conftest.er1 >conftest.err | |
12503 | rm -f conftest.er1 | |
12504 | cat conftest.err >&5 | |
ec6a6fbe | 12505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12506 | (exit $ac_status); } && { |
12507 | test -z "$ac_c_werror_flag" || | |
12508 | test ! -s conftest.err | |
ec6a6fbe AK |
12509 | } && test -s conftest$ac_exeext && { |
12510 | test "$cross_compiling" = yes || | |
12511 | $as_test_x conftest$ac_exeext | |
12512 | }; then | |
8a2fc586 AK |
12513 | ac_cv_lib_sepol_sepol_check_context=yes |
12514 | else | |
ec6a6fbe | 12515 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12516 | sed 's/^/| /' conftest.$ac_ext >&5 |
12517 | ||
7a197a62 | 12518 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12519 | fi |
7a197a62 | 12520 | |
ec6a6fbe | 12521 | rm -rf conftest.dSYM |
25fbec5b | 12522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12523 | conftest$ac_exeext conftest.$ac_ext |
12524 | LIBS=$ac_check_lib_save_LIBS | |
12525 | fi | |
ec6a6fbe AK |
12526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12527 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12528 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
12529 | HAVE_SEPOL=yes |
12530 | else | |
12531 | HAVE_SEPOL=no | |
12532 | fi | |
12533 | ||
8a2fc586 AK |
12534 | |
12535 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
12536 | |
12537 | cat >>confdefs.h <<\_ACEOF | |
12538 | #define HAVE_SEPOL 1 | |
12539 | _ACEOF | |
12540 | ||
8a2fc586 AK |
12541 | LIBS="-lsepol $LIBS" |
12542 | fi | |
12543 | ||
ec6a6fbe AK |
12544 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12545 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12546 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12547 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12548 | else |
12549 | ac_check_lib_save_LIBS=$LIBS | |
12550 | LIBS="-lselinux $LIBS" | |
12551 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12552 | /* confdefs.h. */ |
12553 | _ACEOF | |
12554 | cat confdefs.h >>conftest.$ac_ext | |
12555 | cat >>conftest.$ac_ext <<_ACEOF | |
12556 | /* end confdefs.h. */ | |
12557 | ||
7a197a62 AK |
12558 | /* Override any GCC internal prototype to avoid an error. |
12559 | Use char because int might match the return type of a GCC | |
12560 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12561 | #ifdef __cplusplus |
12562 | extern "C" | |
12563 | #endif | |
ad6254c5 AK |
12564 | char is_selinux_enabled (); |
12565 | int | |
12566 | main () | |
12567 | { | |
7a197a62 | 12568 | return is_selinux_enabled (); |
ad6254c5 AK |
12569 | ; |
12570 | return 0; | |
12571 | } | |
12572 | _ACEOF | |
12573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12574 | if { (ac_try="$ac_link" |
12575 | case "(($ac_try" in | |
12576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12577 | *) ac_try_echo=$ac_try;; | |
12578 | esac | |
ec6a6fbe AK |
12579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12580 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12581 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12582 | ac_status=$? |
8a2fc586 AK |
12583 | grep -v '^ *+' conftest.er1 >conftest.err |
12584 | rm -f conftest.er1 | |
12585 | cat conftest.err >&5 | |
ec6a6fbe | 12586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12587 | (exit $ac_status); } && { |
12588 | test -z "$ac_c_werror_flag" || | |
12589 | test ! -s conftest.err | |
ec6a6fbe AK |
12590 | } && test -s conftest$ac_exeext && { |
12591 | test "$cross_compiling" = yes || | |
12592 | $as_test_x conftest$ac_exeext | |
12593 | }; then | |
ad6254c5 AK |
12594 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12595 | else | |
ec6a6fbe | 12596 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12597 | sed 's/^/| /' conftest.$ac_ext >&5 |
12598 | ||
7a197a62 | 12599 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12600 | fi |
7a197a62 | 12601 | |
ec6a6fbe | 12602 | rm -rf conftest.dSYM |
25fbec5b | 12603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12604 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12605 | LIBS=$ac_check_lib_save_LIBS |
12606 | fi | |
ec6a6fbe AK |
12607 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12608 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12609 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
12610 | HAVE_SELINUX=yes |
12611 | else | |
12612 | HAVE_SELINUX=no | |
12613 | fi | |
12614 | ||
ad6254c5 AK |
12615 | |
12616 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
12617 | |
12618 | cat >>confdefs.h <<\_ACEOF | |
12619 | #define HAVE_SELINUX 1 | |
12620 | _ACEOF | |
12621 | ||
ad6254c5 AK |
12622 | LIBS="-lselinux $LIBS" |
12623 | else | |
ec6a6fbe AK |
12624 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
12625 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
12626 | fi |
12627 | ||
d0191583 | 12628 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
12629 | # fails on at least Debian unstable due to unsatisfied references |
12630 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
12631 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
12632 | lvm_saved_libs=$LIBS | |
12633 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
12634 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
12635 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 12636 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 12637 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
12638 | else |
12639 | ac_func_search_save_LIBS=$LIBS | |
12640 | cat >conftest.$ac_ext <<_ACEOF | |
12641 | /* confdefs.h. */ | |
12642 | _ACEOF | |
12643 | cat confdefs.h >>conftest.$ac_ext | |
12644 | cat >>conftest.$ac_ext <<_ACEOF | |
12645 | /* end confdefs.h. */ | |
12646 | ||
12647 | /* Override any GCC internal prototype to avoid an error. | |
12648 | Use char because int might match the return type of a GCC | |
12649 | builtin and then its argument prototype would still apply. */ | |
12650 | #ifdef __cplusplus | |
12651 | extern "C" | |
12652 | #endif | |
12653 | char pthread_mutex_lock (); | |
12654 | int | |
12655 | main () | |
12656 | { | |
12657 | return pthread_mutex_lock (); | |
12658 | ; | |
12659 | return 0; | |
12660 | } | |
12661 | _ACEOF | |
12662 | for ac_lib in '' pthread; do | |
12663 | if test -z "$ac_lib"; then | |
12664 | ac_res="none required" | |
12665 | else | |
12666 | ac_res=-l$ac_lib | |
12667 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12668 | fi | |
12669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12670 | if { (ac_try="$ac_link" | |
12671 | case "(($ac_try" in | |
12672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12673 | *) ac_try_echo=$ac_try;; | |
12674 | esac | |
ec6a6fbe AK |
12675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12676 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
12677 | (eval "$ac_link") 2>conftest.er1 |
12678 | ac_status=$? | |
12679 | grep -v '^ *+' conftest.er1 >conftest.err | |
12680 | rm -f conftest.er1 | |
12681 | cat conftest.err >&5 | |
ec6a6fbe | 12682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12683 | (exit $ac_status); } && { |
12684 | test -z "$ac_c_werror_flag" || | |
12685 | test ! -s conftest.err | |
ec6a6fbe AK |
12686 | } && test -s conftest$ac_exeext && { |
12687 | test "$cross_compiling" = yes || | |
12688 | $as_test_x conftest$ac_exeext | |
12689 | }; then | |
66e941e8 JM |
12690 | ac_cv_search_pthread_mutex_lock=$ac_res |
12691 | else | |
ec6a6fbe | 12692 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
12693 | sed 's/^/| /' conftest.$ac_ext >&5 |
12694 | ||
12695 | ||
12696 | fi | |
12697 | ||
ec6a6fbe | 12698 | rm -rf conftest.dSYM |
25fbec5b | 12699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
12700 | conftest$ac_exeext |
12701 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
12702 | break | |
12703 | fi | |
12704 | done | |
12705 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
12706 | : | |
12707 | else | |
12708 | ac_cv_search_pthread_mutex_lock=no | |
12709 | fi | |
12710 | rm conftest.$ac_ext | |
12711 | LIBS=$ac_func_search_save_LIBS | |
12712 | fi | |
ec6a6fbe AK |
12713 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
12714 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
12715 | ac_res=$ac_cv_search_pthread_mutex_lock |
12716 | if test "$ac_res" != no; then | |
12717 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12718 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
12719 | LIB_PTHREAD=-lpthread | |
12720 | fi | |
12721 | ||
12722 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
12723 | fi |
12724 | fi | |
12725 | ||
8b1a3214 AK |
12726 | ################################################################################ |
12727 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
12728 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
12729 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 12730 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 12731 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
12732 | else |
12733 | ac_check_lib_save_LIBS=$LIBS | |
12734 | LIBS="-lrt $LIBS" | |
12735 | cat >conftest.$ac_ext <<_ACEOF | |
12736 | /* confdefs.h. */ | |
12737 | _ACEOF | |
12738 | cat confdefs.h >>conftest.$ac_ext | |
12739 | cat >>conftest.$ac_ext <<_ACEOF | |
12740 | /* end confdefs.h. */ | |
12741 | ||
7a197a62 AK |
12742 | /* Override any GCC internal prototype to avoid an error. |
12743 | Use char because int might match the return type of a GCC | |
12744 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
12745 | #ifdef __cplusplus |
12746 | extern "C" | |
12747 | #endif | |
8b1a3214 AK |
12748 | char clock_gettime (); |
12749 | int | |
12750 | main () | |
12751 | { | |
7a197a62 | 12752 | return clock_gettime (); |
8b1a3214 AK |
12753 | ; |
12754 | return 0; | |
12755 | } | |
12756 | _ACEOF | |
12757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12758 | if { (ac_try="$ac_link" |
12759 | case "(($ac_try" in | |
12760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12761 | *) ac_try_echo=$ac_try;; | |
12762 | esac | |
ec6a6fbe AK |
12763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12764 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12765 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
12766 | ac_status=$? |
12767 | grep -v '^ *+' conftest.er1 >conftest.err | |
12768 | rm -f conftest.er1 | |
12769 | cat conftest.err >&5 | |
ec6a6fbe | 12770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12771 | (exit $ac_status); } && { |
12772 | test -z "$ac_c_werror_flag" || | |
12773 | test ! -s conftest.err | |
ec6a6fbe AK |
12774 | } && test -s conftest$ac_exeext && { |
12775 | test "$cross_compiling" = yes || | |
12776 | $as_test_x conftest$ac_exeext | |
12777 | }; then | |
8b1a3214 AK |
12778 | ac_cv_lib_rt_clock_gettime=yes |
12779 | else | |
ec6a6fbe | 12780 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
12781 | sed 's/^/| /' conftest.$ac_ext >&5 |
12782 | ||
7a197a62 | 12783 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 12784 | fi |
7a197a62 | 12785 | |
ec6a6fbe | 12786 | rm -rf conftest.dSYM |
25fbec5b | 12787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
12788 | conftest$ac_exeext conftest.$ac_ext |
12789 | LIBS=$ac_check_lib_save_LIBS | |
12790 | fi | |
ec6a6fbe AK |
12791 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
12792 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
12793 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
12794 | HAVE_REALTIME=yes |
12795 | else | |
12796 | HAVE_REALTIME=no | |
12797 | fi | |
12798 | ||
8b1a3214 AK |
12799 | |
12800 | if test x$HAVE_REALTIME = xyes; then | |
12801 | ||
12802 | cat >>confdefs.h <<\_ACEOF | |
12803 | #define HAVE_REALTIME 1 | |
12804 | _ACEOF | |
12805 | ||
12806 | LIBS="-lrt $LIBS" | |
12807 | else | |
ec6a6fbe AK |
12808 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
12809 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
12810 | fi |
12811 | fi | |
12812 | ||
ad6254c5 AK |
12813 | ################################################################################ |
12814 | ||
12815 | for ac_header in getopt.h | |
12816 | do | |
ec6a6fbe | 12817 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12818 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
12819 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12820 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12821 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12822 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12823 | fi |
ec6a6fbe AK |
12824 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12825 | $as_echo "$as_val"'` | |
12826 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12827 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
12828 | else |
12829 | # Is the header compilable? | |
ec6a6fbe AK |
12830 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12831 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 12832 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12833 | /* confdefs.h. */ |
12834 | _ACEOF | |
12835 | cat confdefs.h >>conftest.$ac_ext | |
12836 | cat >>conftest.$ac_ext <<_ACEOF | |
12837 | /* end confdefs.h. */ | |
12838 | $ac_includes_default | |
12839 | #include <$ac_header> | |
12840 | _ACEOF | |
12841 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12842 | if { (ac_try="$ac_compile" |
12843 | case "(($ac_try" in | |
12844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12845 | *) ac_try_echo=$ac_try;; | |
12846 | esac | |
ec6a6fbe AK |
12847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12848 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12849 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12850 | ac_status=$? |
8a2fc586 AK |
12851 | grep -v '^ *+' conftest.er1 >conftest.err |
12852 | rm -f conftest.er1 | |
12853 | cat conftest.err >&5 | |
ec6a6fbe | 12854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12855 | (exit $ac_status); } && { |
12856 | test -z "$ac_c_werror_flag" || | |
12857 | test ! -s conftest.err | |
12858 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
12859 | ac_header_compiler=yes |
12860 | else | |
ec6a6fbe | 12861 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12862 | sed 's/^/| /' conftest.$ac_ext >&5 |
12863 | ||
7a197a62 | 12864 | ac_header_compiler=no |
ad6254c5 | 12865 | fi |
7a197a62 AK |
12866 | |
12867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
12868 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12869 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12870 | |
12871 | # Is the header present? | |
ec6a6fbe AK |
12872 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12873 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 12874 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12875 | /* confdefs.h. */ |
12876 | _ACEOF | |
12877 | cat confdefs.h >>conftest.$ac_ext | |
12878 | cat >>conftest.$ac_ext <<_ACEOF | |
12879 | /* end confdefs.h. */ | |
12880 | #include <$ac_header> | |
12881 | _ACEOF | |
7a197a62 AK |
12882 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12883 | case "(($ac_try" in | |
12884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12885 | *) ac_try_echo=$ac_try;; | |
12886 | esac | |
ec6a6fbe AK |
12887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12888 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12889 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12890 | ac_status=$? |
12891 | grep -v '^ *+' conftest.er1 >conftest.err | |
12892 | rm -f conftest.er1 | |
12893 | cat conftest.err >&5 | |
ec6a6fbe | 12894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12895 | (exit $ac_status); } >/dev/null && { |
12896 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12897 | test ! -s conftest.err | |
12898 | }; then | |
ad6254c5 AK |
12899 | ac_header_preproc=yes |
12900 | else | |
ec6a6fbe | 12901 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12902 | sed 's/^/| /' conftest.$ac_ext >&5 |
12903 | ||
12904 | ac_header_preproc=no | |
12905 | fi | |
7a197a62 | 12906 | |
ad6254c5 | 12907 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
12908 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12909 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12910 | |
12911 | # So? What about this header? | |
8a2fc586 AK |
12912 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12913 | yes:no: ) | |
ec6a6fbe AK |
12914 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12915 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12916 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12917 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12918 | ac_header_preproc=yes |
ad6254c5 | 12919 | ;; |
8a2fc586 | 12920 | no:yes:* ) |
ec6a6fbe AK |
12921 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12922 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12923 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12924 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12925 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12926 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12927 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12928 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12929 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12930 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12931 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12932 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12933 | |
ad6254c5 AK |
12934 | ;; |
12935 | esac | |
ec6a6fbe AK |
12936 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12937 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 12938 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 12939 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 12940 | else |
8a2fc586 | 12941 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 12942 | fi |
ec6a6fbe AK |
12943 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
12944 | $as_echo "$as_val"'` | |
12945 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12946 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
12947 | |
12948 | fi | |
ec6a6fbe AK |
12949 | as_val=`eval 'as_val=${'$as_ac_Header'} |
12950 | $as_echo "$as_val"'` | |
12951 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 12952 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 12953 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12954 | _ACEOF |
72b2cb61 AK |
12955 | |
12956 | cat >>confdefs.h <<\_ACEOF | |
12957 | #define HAVE_GETOPTLONG 1 | |
12958 | _ACEOF | |
12959 | ||
ad6254c5 AK |
12960 | fi |
12961 | ||
12962 | done | |
12963 | ||
12964 | ||
12965 | ################################################################################ | |
06e459df | 12966 | if test x$READLINE != xno; then |
bc1024f8 JM |
12967 | rl_found=yes |
12968 | ||
ec6a6fbe AK |
12969 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
12970 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 12971 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 12972 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12973 | else |
12974 | ac_check_lib_save_LIBS=$LIBS | |
12975 | LIBS="-lreadline $LIBS" | |
12976 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12977 | /* confdefs.h. */ |
12978 | _ACEOF | |
12979 | cat confdefs.h >>conftest.$ac_ext | |
12980 | cat >>conftest.$ac_ext <<_ACEOF | |
12981 | /* end confdefs.h. */ | |
12982 | ||
7a197a62 AK |
12983 | /* Override any GCC internal prototype to avoid an error. |
12984 | Use char because int might match the return type of a GCC | |
12985 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12986 | #ifdef __cplusplus |
12987 | extern "C" | |
12988 | #endif | |
ad6254c5 AK |
12989 | char readline (); |
12990 | int | |
12991 | main () | |
12992 | { | |
7a197a62 | 12993 | return readline (); |
ad6254c5 AK |
12994 | ; |
12995 | return 0; | |
12996 | } | |
12997 | _ACEOF | |
12998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12999 | if { (ac_try="$ac_link" |
13000 | case "(($ac_try" in | |
13001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13002 | *) ac_try_echo=$ac_try;; | |
13003 | esac | |
ec6a6fbe AK |
13004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13005 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13006 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13007 | ac_status=$? |
8a2fc586 AK |
13008 | grep -v '^ *+' conftest.er1 >conftest.err |
13009 | rm -f conftest.er1 | |
13010 | cat conftest.err >&5 | |
ec6a6fbe | 13011 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13012 | (exit $ac_status); } && { |
13013 | test -z "$ac_c_werror_flag" || | |
13014 | test ! -s conftest.err | |
ec6a6fbe AK |
13015 | } && test -s conftest$ac_exeext && { |
13016 | test "$cross_compiling" = yes || | |
13017 | $as_test_x conftest$ac_exeext | |
13018 | }; then | |
ad6254c5 AK |
13019 | ac_cv_lib_readline_readline=yes |
13020 | else | |
ec6a6fbe | 13021 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13022 | sed 's/^/| /' conftest.$ac_ext >&5 |
13023 | ||
7a197a62 | 13024 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13025 | fi |
7a197a62 | 13026 | |
ec6a6fbe | 13027 | rm -rf conftest.dSYM |
25fbec5b | 13028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13029 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13030 | LIBS=$ac_check_lib_save_LIBS |
13031 | fi | |
ec6a6fbe AK |
13032 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13033 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13034 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
13035 | cat >>confdefs.h <<_ACEOF |
13036 | #define HAVE_LIBREADLINE 1 | |
13037 | _ACEOF | |
13038 | ||
13039 | LIBS="-lreadline $LIBS" | |
13040 | ||
ad6254c5 | 13041 | else |
06e459df JM |
13042 | rl_found=no |
13043 | fi | |
13044 | ||
13045 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 13046 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13047 | --enable-readline option (which is enabled by default). Either disable readline |
13048 | support with --disable-readline or download and install readline from: | |
13049 | ftp.gnu.org/gnu/readline | |
13050 | Note: if you are using precompiled packages you will also need the development | |
13051 | package as well (which may be called readline-devel or something similar). | |
13052 | " >&5 | |
ec6a6fbe | 13053 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13054 | --enable-readline option (which is enabled by default). Either disable readline |
13055 | support with --disable-readline or download and install readline from: | |
13056 | ftp.gnu.org/gnu/readline | |
13057 | Note: if you are using precompiled packages you will also need the development | |
13058 | package as well (which may be called readline-devel or something similar). | |
13059 | " >&2;} | |
13060 | { (exit 1); exit 1; }; } | |
06e459df | 13061 | if test $rl_found = yes; then |
bc1024f8 JM |
13062 | |
13063 | for ac_func in rl_completion_matches | |
13064 | do | |
ec6a6fbe AK |
13065 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13066 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13067 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13068 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13069 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13070 | else |
13071 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13072 | /* confdefs.h. */ |
13073 | _ACEOF | |
13074 | cat confdefs.h >>conftest.$ac_ext | |
13075 | cat >>conftest.$ac_ext <<_ACEOF | |
13076 | /* end confdefs.h. */ | |
bc1024f8 | 13077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13079 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13080 | |
ad6254c5 | 13081 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13082 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13083 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13084 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13085 | |
ad6254c5 AK |
13086 | #ifdef __STDC__ |
13087 | # include <limits.h> | |
13088 | #else | |
13089 | # include <assert.h> | |
13090 | #endif | |
8a2fc586 | 13091 | |
bc1024f8 | 13092 | #undef $ac_func |
8a2fc586 | 13093 | |
7a197a62 AK |
13094 | /* Override any GCC internal prototype to avoid an error. |
13095 | Use char because int might match the return type of a GCC | |
13096 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13097 | #ifdef __cplusplus |
13098 | extern "C" | |
ad6254c5 | 13099 | #endif |
bc1024f8 | 13100 | char $ac_func (); |
ad6254c5 AK |
13101 | /* The GNU C library defines this for functions which it implements |
13102 | to always fail with ENOSYS. Some functions are actually named | |
13103 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13104 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13105 | choke me |
ad6254c5 AK |
13106 | #endif |
13107 | ||
13108 | int | |
13109 | main () | |
13110 | { | |
bc1024f8 | 13111 | return $ac_func (); |
ad6254c5 AK |
13112 | ; |
13113 | return 0; | |
13114 | } | |
13115 | _ACEOF | |
13116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13117 | if { (ac_try="$ac_link" |
13118 | case "(($ac_try" in | |
13119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13120 | *) ac_try_echo=$ac_try;; | |
13121 | esac | |
ec6a6fbe AK |
13122 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13123 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13124 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13125 | ac_status=$? |
8a2fc586 AK |
13126 | grep -v '^ *+' conftest.er1 >conftest.err |
13127 | rm -f conftest.er1 | |
13128 | cat conftest.err >&5 | |
ec6a6fbe | 13129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13130 | (exit $ac_status); } && { |
13131 | test -z "$ac_c_werror_flag" || | |
13132 | test ! -s conftest.err | |
ec6a6fbe AK |
13133 | } && test -s conftest$ac_exeext && { |
13134 | test "$cross_compiling" = yes || | |
13135 | $as_test_x conftest$ac_exeext | |
13136 | }; then | |
bc1024f8 | 13137 | eval "$as_ac_var=yes" |
ad6254c5 | 13138 | else |
ec6a6fbe | 13139 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13140 | sed 's/^/| /' conftest.$ac_ext >&5 |
13141 | ||
bc1024f8 | 13142 | eval "$as_ac_var=no" |
ad6254c5 | 13143 | fi |
7a197a62 | 13144 | |
ec6a6fbe | 13145 | rm -rf conftest.dSYM |
25fbec5b | 13146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13147 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13148 | fi |
ec6a6fbe AK |
13149 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13150 | $as_echo "$as_val"'` | |
13151 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13152 | $as_echo "$ac_res" >&6; } | |
13153 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13154 | $as_echo "$as_val"'` | |
13155 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13156 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13157 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13158 | _ACEOF |
13159 | ||
13160 | fi | |
bc1024f8 | 13161 | done |
ad6254c5 | 13162 | |
d179cc7a JM |
13163 | |
13164 | cat >>confdefs.h <<\_ACEOF | |
13165 | #define READLINE_SUPPORT 1 | |
13166 | _ACEOF | |
13167 | ||
06e459df | 13168 | fi |
ad6254c5 AK |
13169 | fi |
13170 | ||
13171 | ################################################################################ | |
ec6a6fbe AK |
13172 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13173 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13174 | # Check whether --enable-nls was given. |
ad6254c5 | 13175 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13176 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13177 | else |
13178 | INTL=no | |
7a197a62 AK |
13179 | fi |
13180 | ||
ec6a6fbe AK |
13181 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13182 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13183 | |
13184 | if test x$INTL = xyes; then | |
93bd259b | 13185 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13186 | INTL_PACKAGE="lvm2" |
13187 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13188 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13189 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13190 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13191 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13192 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13193 | else |
13194 | case $MSGFMT in | |
13195 | [\\/]* | ?:[\\/]*) | |
13196 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13197 | ;; | |
13198 | *) | |
13199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13200 | for as_dir in $PATH | |
13201 | do | |
13202 | IFS=$as_save_IFS | |
13203 | test -z "$as_dir" && as_dir=. | |
13204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13206 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13207 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13208 | break 2 |
13209 | fi | |
13210 | done | |
13211 | done | |
7a197a62 | 13212 | IFS=$as_save_IFS |
ad6254c5 AK |
13213 | |
13214 | ;; | |
13215 | esac | |
13216 | fi | |
13217 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13218 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13219 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13220 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13221 | else |
ec6a6fbe AK |
13222 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13223 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13224 | fi |
13225 | ||
7a197a62 | 13226 | |
ad6254c5 | 13227 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13228 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13229 | " >&5 |
ec6a6fbe | 13230 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13231 | " >&2;} |
13232 | { (exit 1); exit 1; }; } | |
13233 | fi; | |
13234 | ||
13235 | ||
7a197a62 | 13236 | # Check whether --with-localedir was given. |
ad6254c5 | 13237 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13238 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13239 | else |
13240 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13241 | fi |
13242 | ||
ad6254c5 AK |
13243 | fi |
13244 | ||
13245 | ################################################################################ | |
13246 | ||
7a197a62 | 13247 | # Check whether --with-confdir was given. |
ad6254c5 | 13248 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13249 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13250 | else |
13251 | CONFDIR='/etc' | |
7a197a62 AK |
13252 | fi |
13253 | ||
ad6254c5 AK |
13254 | |
13255 | ||
7a197a62 | 13256 | # Check whether --with-staticdir was given. |
ad6254c5 | 13257 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13258 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13259 | else |
13260 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13261 | fi |
ad6254c5 | 13262 | |
33f732c5 | 13263 | |
7a197a62 | 13264 | |
68f2de6d AK |
13265 | # Check whether --with-usrlibdir was given. |
13266 | if test "${with_usrlibdir+set}" = set; then | |
13267 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13268 | else | |
13269 | usrlibdir='${prefix}/lib' | |
13270 | fi | |
13271 | ||
13272 | ||
13273 | ||
13274 | # Check whether --with-usrsbindir was given. | |
13275 | if test "${with_usrsbindir+set}" = set; then | |
13276 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13277 | else | |
13278 | usrsbindir='${prefix}/sbin' | |
13279 | fi | |
13280 | ||
13281 | ||
a5f46f6a AK |
13282 | ################################################################################ |
13283 | ||
13284 | # Check whether --with-udev_prefix was given. | |
13285 | if test "${with_udev_prefix+set}" = set; then | |
13286 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13287 | else | |
13288 | udev_prefix='${exec_prefix}' | |
13289 | fi | |
13290 | ||
13291 | ||
78ce7acc AK |
13292 | |
13293 | # Check whether --with-udevdir was given. | |
13294 | if test "${with_udevdir+set}" = set; then | |
13295 | withval=$with_udevdir; udevdir="$withval" | |
13296 | else | |
13297 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13298 | fi | |
13299 | ||
a5f46f6a | 13300 | |
ad6254c5 AK |
13301 | ################################################################################ |
13302 | if test x$READLINE = xyes; then | |
13303 | ||
13304 | ||
13305 | for ac_header in readline/readline.h readline/history.h | |
13306 | do | |
ec6a6fbe | 13307 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13309 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13310 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13312 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13313 | fi |
ec6a6fbe AK |
13314 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13315 | $as_echo "$as_val"'` | |
13316 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13317 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13318 | else |
13319 | # Is the header compilable? | |
ec6a6fbe AK |
13320 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13321 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13322 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13323 | /* confdefs.h. */ |
13324 | _ACEOF | |
13325 | cat confdefs.h >>conftest.$ac_ext | |
13326 | cat >>conftest.$ac_ext <<_ACEOF | |
13327 | /* end confdefs.h. */ | |
13328 | $ac_includes_default | |
13329 | #include <$ac_header> | |
13330 | _ACEOF | |
13331 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13332 | if { (ac_try="$ac_compile" |
13333 | case "(($ac_try" in | |
13334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13335 | *) ac_try_echo=$ac_try;; | |
13336 | esac | |
ec6a6fbe AK |
13337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13338 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13339 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13340 | ac_status=$? |
8a2fc586 AK |
13341 | grep -v '^ *+' conftest.er1 >conftest.err |
13342 | rm -f conftest.er1 | |
13343 | cat conftest.err >&5 | |
ec6a6fbe | 13344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13345 | (exit $ac_status); } && { |
13346 | test -z "$ac_c_werror_flag" || | |
13347 | test ! -s conftest.err | |
13348 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13349 | ac_header_compiler=yes |
13350 | else | |
ec6a6fbe | 13351 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13352 | sed 's/^/| /' conftest.$ac_ext >&5 |
13353 | ||
7a197a62 | 13354 | ac_header_compiler=no |
ad6254c5 | 13355 | fi |
7a197a62 AK |
13356 | |
13357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13358 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13359 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13360 | |
13361 | # Is the header present? | |
ec6a6fbe AK |
13362 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13363 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13364 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13365 | /* confdefs.h. */ |
13366 | _ACEOF | |
13367 | cat confdefs.h >>conftest.$ac_ext | |
13368 | cat >>conftest.$ac_ext <<_ACEOF | |
13369 | /* end confdefs.h. */ | |
13370 | #include <$ac_header> | |
13371 | _ACEOF | |
7a197a62 AK |
13372 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13373 | case "(($ac_try" in | |
13374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13375 | *) ac_try_echo=$ac_try;; | |
13376 | esac | |
ec6a6fbe AK |
13377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13378 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13379 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13380 | ac_status=$? |
13381 | grep -v '^ *+' conftest.er1 >conftest.err | |
13382 | rm -f conftest.er1 | |
13383 | cat conftest.err >&5 | |
ec6a6fbe | 13384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13385 | (exit $ac_status); } >/dev/null && { |
13386 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13387 | test ! -s conftest.err | |
13388 | }; then | |
ad6254c5 AK |
13389 | ac_header_preproc=yes |
13390 | else | |
ec6a6fbe | 13391 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13392 | sed 's/^/| /' conftest.$ac_ext >&5 |
13393 | ||
13394 | ac_header_preproc=no | |
13395 | fi | |
7a197a62 | 13396 | |
ad6254c5 | 13397 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13398 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13399 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13400 | |
13401 | # So? What about this header? | |
8a2fc586 AK |
13402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13403 | yes:no: ) | |
ec6a6fbe AK |
13404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13405 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13407 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13408 | ac_header_preproc=yes |
ad6254c5 | 13409 | ;; |
8a2fc586 | 13410 | no:yes:* ) |
ec6a6fbe AK |
13411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13412 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13414 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13415 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13416 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13417 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13418 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13420 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13422 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13423 | |
ad6254c5 AK |
13424 | ;; |
13425 | esac | |
ec6a6fbe AK |
13426 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13427 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13429 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13430 | else |
8a2fc586 | 13431 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13432 | fi |
ec6a6fbe AK |
13433 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13434 | $as_echo "$as_val"'` | |
13435 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13436 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13437 | |
13438 | fi | |
ec6a6fbe AK |
13439 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13440 | $as_echo "$as_val"'` | |
13441 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13442 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13443 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13444 | _ACEOF |
13445 | ||
13446 | else | |
ec6a6fbe AK |
13447 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13448 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
13449 | { (exit 1); exit 1; }; } |
13450 | fi | |
13451 | ||
13452 | done | |
13453 | ||
13454 | fi | |
13455 | ||
5c7fc7c4 | 13456 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
13457 | |
13458 | ||
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | ||
13464 | ||
13465 | ||
13466 | ||
13467 | 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 | |
13468 | do | |
ec6a6fbe | 13469 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13471 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13472 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13474 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13475 | fi |
ec6a6fbe AK |
13476 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13477 | $as_echo "$as_val"'` | |
13478 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13479 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13480 | else |
13481 | # Is the header compilable? | |
ec6a6fbe AK |
13482 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13483 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13484 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13485 | /* confdefs.h. */ |
13486 | _ACEOF | |
13487 | cat confdefs.h >>conftest.$ac_ext | |
13488 | cat >>conftest.$ac_ext <<_ACEOF | |
13489 | /* end confdefs.h. */ | |
13490 | $ac_includes_default | |
13491 | #include <$ac_header> | |
13492 | _ACEOF | |
13493 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13494 | if { (ac_try="$ac_compile" |
13495 | case "(($ac_try" in | |
13496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13497 | *) ac_try_echo=$ac_try;; | |
13498 | esac | |
ec6a6fbe AK |
13499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13500 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13501 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13502 | ac_status=$? |
8a2fc586 AK |
13503 | grep -v '^ *+' conftest.er1 >conftest.err |
13504 | rm -f conftest.er1 | |
13505 | cat conftest.err >&5 | |
ec6a6fbe | 13506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13507 | (exit $ac_status); } && { |
13508 | test -z "$ac_c_werror_flag" || | |
13509 | test ! -s conftest.err | |
13510 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13511 | ac_header_compiler=yes |
13512 | else | |
ec6a6fbe | 13513 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13514 | sed 's/^/| /' conftest.$ac_ext >&5 |
13515 | ||
7a197a62 | 13516 | ac_header_compiler=no |
ad6254c5 | 13517 | fi |
7a197a62 AK |
13518 | |
13519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13520 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13521 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13522 | |
13523 | # Is the header present? | |
ec6a6fbe AK |
13524 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13525 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13526 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13527 | /* confdefs.h. */ |
13528 | _ACEOF | |
13529 | cat confdefs.h >>conftest.$ac_ext | |
13530 | cat >>conftest.$ac_ext <<_ACEOF | |
13531 | /* end confdefs.h. */ | |
13532 | #include <$ac_header> | |
13533 | _ACEOF | |
7a197a62 AK |
13534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13535 | case "(($ac_try" in | |
13536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13537 | *) ac_try_echo=$ac_try;; | |
13538 | esac | |
ec6a6fbe AK |
13539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13540 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13541 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13542 | ac_status=$? |
13543 | grep -v '^ *+' conftest.er1 >conftest.err | |
13544 | rm -f conftest.er1 | |
13545 | cat conftest.err >&5 | |
ec6a6fbe | 13546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13547 | (exit $ac_status); } >/dev/null && { |
13548 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13549 | test ! -s conftest.err | |
13550 | }; then | |
ad6254c5 AK |
13551 | ac_header_preproc=yes |
13552 | else | |
ec6a6fbe | 13553 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13554 | sed 's/^/| /' conftest.$ac_ext >&5 |
13555 | ||
13556 | ac_header_preproc=no | |
13557 | fi | |
7a197a62 | 13558 | |
ad6254c5 | 13559 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13560 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13561 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13562 | |
13563 | # So? What about this header? | |
8a2fc586 AK |
13564 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13565 | yes:no: ) | |
ec6a6fbe AK |
13566 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13567 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13568 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13569 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13570 | ac_header_preproc=yes |
ad6254c5 | 13571 | ;; |
8a2fc586 | 13572 | no:yes:* ) |
ec6a6fbe AK |
13573 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13574 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13575 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13576 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13577 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13578 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13579 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13580 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13581 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13582 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13583 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13584 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13585 | |
ad6254c5 AK |
13586 | ;; |
13587 | esac | |
ec6a6fbe AK |
13588 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13589 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13591 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13592 | else |
8a2fc586 | 13593 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13594 | fi |
ec6a6fbe AK |
13595 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13596 | $as_echo "$as_val"'` | |
13597 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13598 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13599 | |
13600 | fi | |
ec6a6fbe AK |
13601 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13602 | $as_echo "$as_val"'` | |
13603 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13604 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13605 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13606 | _ACEOF |
13607 | ||
13608 | else | |
ec6a6fbe AK |
13609 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13610 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 13611 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
13612 | fi |
13613 | ||
ad6254c5 AK |
13614 | done |
13615 | ||
13616 | ||
795ca3e5 | 13617 | |
8106cdd5 | 13618 | |
ad6254c5 AK |
13619 | |
13620 | ||
13621 | for ac_func in dup2 getmntent memmove select socket | |
13622 | do | |
ec6a6fbe AK |
13623 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13624 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13625 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 13626 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13627 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 13628 | else |
ad6254c5 | 13629 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13630 | /* confdefs.h. */ |
13631 | _ACEOF | |
13632 | cat confdefs.h >>conftest.$ac_ext | |
13633 | cat >>conftest.$ac_ext <<_ACEOF | |
13634 | /* end confdefs.h. */ | |
8a2fc586 AK |
13635 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13637 | #define $ac_func innocuous_$ac_func | |
13638 | ||
795ca3e5 | 13639 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
13640 | which can conflict with char $ac_func (); below. |
13641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13642 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13643 | |
ad6254c5 AK |
13644 | #ifdef __STDC__ |
13645 | # include <limits.h> | |
13646 | #else | |
13647 | # include <assert.h> | |
13648 | #endif | |
8a2fc586 AK |
13649 | |
13650 | #undef $ac_func | |
13651 | ||
7a197a62 AK |
13652 | /* Override any GCC internal prototype to avoid an error. |
13653 | Use char because int might match the return type of a GCC | |
13654 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13655 | #ifdef __cplusplus |
13656 | extern "C" | |
ad6254c5 | 13657 | #endif |
ad6254c5 | 13658 | char $ac_func (); |
795ca3e5 AK |
13659 | /* The GNU C library defines this for functions which it implements |
13660 | to always fail with ENOSYS. Some functions are actually named | |
13661 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 13662 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 13663 | choke me |
795ca3e5 AK |
13664 | #endif |
13665 | ||
ad6254c5 AK |
13666 | int |
13667 | main () | |
13668 | { | |
7a197a62 | 13669 | return $ac_func (); |
ad6254c5 AK |
13670 | ; |
13671 | return 0; | |
13672 | } | |
13673 | _ACEOF | |
13674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13675 | if { (ac_try="$ac_link" |
13676 | case "(($ac_try" in | |
13677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13678 | *) ac_try_echo=$ac_try;; | |
13679 | esac | |
ec6a6fbe AK |
13680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13681 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13682 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13683 | ac_status=$? |
8a2fc586 AK |
13684 | grep -v '^ *+' conftest.er1 >conftest.err |
13685 | rm -f conftest.er1 | |
13686 | cat conftest.err >&5 | |
ec6a6fbe | 13687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13688 | (exit $ac_status); } && { |
13689 | test -z "$ac_c_werror_flag" || | |
13690 | test ! -s conftest.err | |
ec6a6fbe AK |
13691 | } && test -s conftest$ac_exeext && { |
13692 | test "$cross_compiling" = yes || | |
13693 | $as_test_x conftest$ac_exeext | |
13694 | }; then | |
ad6254c5 | 13695 | eval "$as_ac_var=yes" |
795ca3e5 | 13696 | else |
ec6a6fbe | 13697 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13698 | sed 's/^/| /' conftest.$ac_ext >&5 |
13699 | ||
7a197a62 | 13700 | eval "$as_ac_var=no" |
80992638 | 13701 | fi |
7a197a62 | 13702 | |
ec6a6fbe | 13703 | rm -rf conftest.dSYM |
25fbec5b | 13704 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13705 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 13706 | fi |
ec6a6fbe AK |
13707 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13708 | $as_echo "$as_val"'` | |
13709 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13710 | $as_echo "$ac_res" >&6; } | |
13711 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13712 | $as_echo "$as_val"'` | |
13713 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13714 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13715 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 13716 | _ACEOF |
80992638 AK |
13717 | |
13718 | else | |
ec6a6fbe AK |
13719 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13720 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 13721 | { (exit 1); exit 1; }; } |
8106cdd5 | 13722 | fi |
ad6254c5 | 13723 | done |
795ca3e5 | 13724 | |
25fbec5b AK |
13725 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
13726 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
13727 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
13728 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 13729 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 13730 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
13731 | else |
13732 | ac_func_search_save_LIBS=$LIBS | |
13733 | cat >conftest.$ac_ext <<_ACEOF | |
13734 | /* confdefs.h. */ | |
13735 | _ACEOF | |
13736 | cat confdefs.h >>conftest.$ac_ext | |
13737 | cat >>conftest.$ac_ext <<_ACEOF | |
13738 | /* end confdefs.h. */ | |
80992638 | 13739 | |
7a197a62 AK |
13740 | /* Override any GCC internal prototype to avoid an error. |
13741 | Use char because int might match the return type of a GCC | |
ad6254c5 | 13742 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
13743 | #ifdef __cplusplus |
13744 | extern "C" | |
13745 | #endif | |
25fbec5b | 13746 | char getmntent (); |
ad6254c5 AK |
13747 | int |
13748 | main () | |
13749 | { | |
25fbec5b | 13750 | return getmntent (); |
ad6254c5 AK |
13751 | ; |
13752 | return 0; | |
13753 | } | |
13754 | _ACEOF | |
25fbec5b AK |
13755 | for ac_lib in '' sun seq gen; do |
13756 | if test -z "$ac_lib"; then | |
13757 | ac_res="none required" | |
13758 | else | |
13759 | ac_res=-l$ac_lib | |
13760 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13761 | fi | |
13762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13763 | if { (ac_try="$ac_link" |
13764 | case "(($ac_try" in | |
13765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13766 | *) ac_try_echo=$ac_try;; | |
13767 | esac | |
ec6a6fbe AK |
13768 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13769 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13770 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13771 | ac_status=$? |
8a2fc586 AK |
13772 | grep -v '^ *+' conftest.er1 >conftest.err |
13773 | rm -f conftest.er1 | |
13774 | cat conftest.err >&5 | |
ec6a6fbe | 13775 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13776 | (exit $ac_status); } && { |
13777 | test -z "$ac_c_werror_flag" || | |
13778 | test ! -s conftest.err | |
ec6a6fbe AK |
13779 | } && test -s conftest$ac_exeext && { |
13780 | test "$cross_compiling" = yes || | |
13781 | $as_test_x conftest$ac_exeext | |
13782 | }; then | |
25fbec5b | 13783 | ac_cv_search_getmntent=$ac_res |
80992638 | 13784 | else |
ec6a6fbe | 13785 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13786 | sed 's/^/| /' conftest.$ac_ext >&5 |
13787 | ||
25fbec5b | 13788 | |
795ca3e5 AK |
13789 | fi |
13790 | ||
ec6a6fbe | 13791 | rm -rf conftest.dSYM |
25fbec5b AK |
13792 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13793 | conftest$ac_exeext | |
13794 | if test "${ac_cv_search_getmntent+set}" = set; then | |
13795 | break | |
795ca3e5 | 13796 | fi |
25fbec5b AK |
13797 | done |
13798 | if test "${ac_cv_search_getmntent+set}" = set; then | |
13799 | : | |
13800 | else | |
13801 | ac_cv_search_getmntent=no | |
13802 | fi | |
13803 | rm conftest.$ac_ext | |
13804 | LIBS=$ac_func_search_save_LIBS | |
13805 | fi | |
ec6a6fbe AK |
13806 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
13807 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
13808 | ac_res=$ac_cv_search_getmntent |
13809 | if test "$ac_res" != no; then | |
13810 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13811 | ac_cv_func_getmntent=yes | |
13812 | ||
13813 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 13814 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 13815 | _ACEOF |
795ca3e5 | 13816 | |
25fbec5b AK |
13817 | else |
13818 | ac_cv_func_getmntent=no | |
795ca3e5 | 13819 | fi |
795ca3e5 AK |
13820 | |
13821 | ||
ad6254c5 AK |
13822 | # AC_FUNC_REALLOC |
13823 | ||
13824 | ||
13825 | for ac_header in sys/select.h sys/socket.h | |
13826 | do | |
ec6a6fbe | 13827 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13829 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13830 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13831 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13832 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13833 | fi |
ec6a6fbe AK |
13834 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13835 | $as_echo "$as_val"'` | |
13836 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13837 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 13838 | else |
ad6254c5 | 13839 | # Is the header compilable? |
ec6a6fbe AK |
13840 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13841 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13842 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13843 | /* confdefs.h. */ |
13844 | _ACEOF | |
13845 | cat confdefs.h >>conftest.$ac_ext | |
13846 | cat >>conftest.$ac_ext <<_ACEOF | |
13847 | /* end confdefs.h. */ | |
13848 | $ac_includes_default | |
13849 | #include <$ac_header> | |
13850 | _ACEOF | |
13851 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13852 | if { (ac_try="$ac_compile" |
13853 | case "(($ac_try" in | |
13854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13855 | *) ac_try_echo=$ac_try;; | |
13856 | esac | |
ec6a6fbe AK |
13857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13858 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13859 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13860 | ac_status=$? |
8a2fc586 AK |
13861 | grep -v '^ *+' conftest.er1 >conftest.err |
13862 | rm -f conftest.er1 | |
13863 | cat conftest.err >&5 | |
ec6a6fbe | 13864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13865 | (exit $ac_status); } && { |
13866 | test -z "$ac_c_werror_flag" || | |
13867 | test ! -s conftest.err | |
13868 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 13869 | ac_header_compiler=yes |
80992638 | 13870 | else |
ec6a6fbe | 13871 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13872 | sed 's/^/| /' conftest.$ac_ext >&5 |
13873 | ||
7a197a62 | 13874 | ac_header_compiler=no |
ad6254c5 | 13875 | fi |
7a197a62 AK |
13876 | |
13877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13878 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13879 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13880 | |
13881 | # Is the header present? | |
ec6a6fbe AK |
13882 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13883 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13884 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13885 | /* confdefs.h. */ |
13886 | _ACEOF | |
13887 | cat confdefs.h >>conftest.$ac_ext | |
13888 | cat >>conftest.$ac_ext <<_ACEOF | |
13889 | /* end confdefs.h. */ | |
13890 | #include <$ac_header> | |
13891 | _ACEOF | |
7a197a62 AK |
13892 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13893 | case "(($ac_try" in | |
13894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13895 | *) ac_try_echo=$ac_try;; | |
13896 | esac | |
ec6a6fbe AK |
13897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13898 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13899 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13900 | ac_status=$? |
13901 | grep -v '^ *+' conftest.er1 >conftest.err | |
13902 | rm -f conftest.er1 | |
13903 | cat conftest.err >&5 | |
ec6a6fbe | 13904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13905 | (exit $ac_status); } >/dev/null && { |
13906 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13907 | test ! -s conftest.err | |
13908 | }; then | |
ad6254c5 AK |
13909 | ac_header_preproc=yes |
13910 | else | |
ec6a6fbe | 13911 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13912 | sed 's/^/| /' conftest.$ac_ext >&5 |
13913 | ||
13914 | ac_header_preproc=no | |
13915 | fi | |
7a197a62 | 13916 | |
ad6254c5 | 13917 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13918 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13919 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13920 | |
13921 | # So? What about this header? | |
8a2fc586 AK |
13922 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13923 | yes:no: ) | |
ec6a6fbe AK |
13924 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13925 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13926 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13927 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13928 | ac_header_preproc=yes |
ad6254c5 | 13929 | ;; |
8a2fc586 | 13930 | no:yes:* ) |
ec6a6fbe AK |
13931 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13932 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13933 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13934 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13935 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13936 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13937 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13938 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13939 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13940 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13941 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13942 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13943 | |
ad6254c5 AK |
13944 | ;; |
13945 | esac | |
ec6a6fbe AK |
13946 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13947 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13948 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13949 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13950 | else |
8a2fc586 | 13951 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 13952 | fi |
ec6a6fbe AK |
13953 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13954 | $as_echo "$as_val"'` | |
13955 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13956 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 13957 | |
795ca3e5 | 13958 | fi |
ec6a6fbe AK |
13959 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13960 | $as_echo "$as_val"'` | |
13961 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13962 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13963 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13964 | _ACEOF |
13965 | ||
795ca3e5 AK |
13966 | fi |
13967 | ||
ad6254c5 AK |
13968 | done |
13969 | ||
ec6a6fbe AK |
13970 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
13971 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 13972 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 13973 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 13974 | else |
ad6254c5 | 13975 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 13976 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
13977 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
13978 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13979 | /* confdefs.h. */ |
13980 | _ACEOF | |
13981 | cat confdefs.h >>conftest.$ac_ext | |
13982 | cat >>conftest.$ac_ext <<_ACEOF | |
13983 | /* end confdefs.h. */ | |
13984 | $ac_includes_default | |
25fbec5b | 13985 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
13986 | # include <sys/select.h> |
13987 | #endif | |
25fbec5b | 13988 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
13989 | # include <sys/socket.h> |
13990 | #endif | |
13991 | ||
13992 | int | |
13993 | main () | |
13994 | { | |
13995 | extern int select ($ac_arg1, | |
8a2fc586 AK |
13996 | $ac_arg234, $ac_arg234, $ac_arg234, |
13997 | $ac_arg5); | |
ad6254c5 AK |
13998 | ; |
13999 | return 0; | |
14000 | } | |
14001 | _ACEOF | |
14002 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14003 | if { (ac_try="$ac_compile" |
14004 | case "(($ac_try" in | |
14005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14006 | *) ac_try_echo=$ac_try;; | |
14007 | esac | |
ec6a6fbe AK |
14008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14009 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14010 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14011 | ac_status=$? |
8a2fc586 AK |
14012 | grep -v '^ *+' conftest.er1 >conftest.err |
14013 | rm -f conftest.er1 | |
14014 | cat conftest.err >&5 | |
ec6a6fbe | 14015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14016 | (exit $ac_status); } && { |
14017 | test -z "$ac_c_werror_flag" || | |
14018 | test ! -s conftest.err | |
14019 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14020 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14021 | else | |
ec6a6fbe | 14022 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14023 | sed 's/^/| /' conftest.$ac_ext >&5 |
14024 | ||
7a197a62 | 14025 | |
ad6254c5 | 14026 | fi |
7a197a62 AK |
14027 | |
14028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14029 | done |
14030 | done | |
14031 | done | |
14032 | # Provide a safe default value. | |
14033 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14034 | ||
26e7f2e0 | 14035 | fi |
ec6a6fbe AK |
14036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14037 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14038 | ac_save_IFS=$IFS; IFS=',' |
14039 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14040 | IFS=$ac_save_IFS | |
14041 | shift | |
14042 | ||
14043 | cat >>confdefs.h <<_ACEOF | |
14044 | #define SELECT_TYPE_ARG1 $1 | |
14045 | _ACEOF | |
14046 | ||
14047 | ||
14048 | cat >>confdefs.h <<_ACEOF | |
14049 | #define SELECT_TYPE_ARG234 ($2) | |
14050 | _ACEOF | |
14051 | ||
14052 | ||
14053 | cat >>confdefs.h <<_ACEOF | |
14054 | #define SELECT_TYPE_ARG5 ($3) | |
14055 | _ACEOF | |
14056 | ||
80992638 | 14057 | rm -f conftest* |
80992638 | 14058 | |
8106cdd5 | 14059 | fi |
ad6254c5 | 14060 | |
ad6254c5 AK |
14061 | if test x$CLUSTER != xnone; then |
14062 | ||
14063 | ||
14064 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14065 | do |
ec6a6fbe | 14066 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14067 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14068 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14069 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14071 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14072 | fi |
ec6a6fbe AK |
14073 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14074 | $as_echo "$as_val"'` | |
14075 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14076 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14077 | else |
14078 | # Is the header compilable? | |
ec6a6fbe AK |
14079 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14080 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14081 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14082 | /* confdefs.h. */ |
14083 | _ACEOF | |
14084 | cat confdefs.h >>conftest.$ac_ext | |
14085 | cat >>conftest.$ac_ext <<_ACEOF | |
14086 | /* end confdefs.h. */ | |
14087 | $ac_includes_default | |
14088 | #include <$ac_header> | |
14089 | _ACEOF | |
14090 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14091 | if { (ac_try="$ac_compile" |
14092 | case "(($ac_try" in | |
14093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14094 | *) ac_try_echo=$ac_try;; | |
14095 | esac | |
ec6a6fbe AK |
14096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14097 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14098 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14099 | ac_status=$? |
8a2fc586 AK |
14100 | grep -v '^ *+' conftest.er1 >conftest.err |
14101 | rm -f conftest.er1 | |
14102 | cat conftest.err >&5 | |
ec6a6fbe | 14103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14104 | (exit $ac_status); } && { |
14105 | test -z "$ac_c_werror_flag" || | |
14106 | test ! -s conftest.err | |
14107 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14108 | ac_header_compiler=yes |
14109 | else | |
ec6a6fbe | 14110 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14111 | sed 's/^/| /' conftest.$ac_ext >&5 |
14112 | ||
7a197a62 | 14113 | ac_header_compiler=no |
ad6254c5 | 14114 | fi |
7a197a62 AK |
14115 | |
14116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14117 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14118 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14119 | |
14120 | # Is the header present? | |
ec6a6fbe AK |
14121 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14122 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14123 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14124 | /* confdefs.h. */ |
14125 | _ACEOF | |
14126 | cat confdefs.h >>conftest.$ac_ext | |
14127 | cat >>conftest.$ac_ext <<_ACEOF | |
14128 | /* end confdefs.h. */ | |
14129 | #include <$ac_header> | |
14130 | _ACEOF | |
7a197a62 AK |
14131 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14132 | case "(($ac_try" in | |
14133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14134 | *) ac_try_echo=$ac_try;; | |
14135 | esac | |
ec6a6fbe AK |
14136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14137 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14139 | ac_status=$? |
14140 | grep -v '^ *+' conftest.er1 >conftest.err | |
14141 | rm -f conftest.er1 | |
14142 | cat conftest.err >&5 | |
ec6a6fbe | 14143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14144 | (exit $ac_status); } >/dev/null && { |
14145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14146 | test ! -s conftest.err | |
14147 | }; then | |
ad6254c5 AK |
14148 | ac_header_preproc=yes |
14149 | else | |
ec6a6fbe | 14150 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14151 | sed 's/^/| /' conftest.$ac_ext >&5 |
14152 | ||
14153 | ac_header_preproc=no | |
14154 | fi | |
7a197a62 | 14155 | |
ad6254c5 | 14156 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14157 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14158 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14159 | |
14160 | # So? What about this header? | |
8a2fc586 AK |
14161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14162 | yes:no: ) | |
ec6a6fbe AK |
14163 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14164 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14165 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14166 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14167 | ac_header_preproc=yes |
ad6254c5 | 14168 | ;; |
8a2fc586 | 14169 | no:yes:* ) |
ec6a6fbe AK |
14170 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14171 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14172 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14173 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14174 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14175 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14177 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14179 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14181 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14182 | |
ad6254c5 AK |
14183 | ;; |
14184 | esac | |
ec6a6fbe AK |
14185 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14186 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14188 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14189 | else |
8a2fc586 | 14190 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14191 | fi |
ec6a6fbe AK |
14192 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14193 | $as_echo "$as_val"'` | |
14194 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14195 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14196 | |
14197 | fi | |
ec6a6fbe AK |
14198 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14199 | $as_echo "$as_val"'` | |
14200 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14201 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14202 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14203 | _ACEOF |
14204 | ||
80992638 | 14205 | else |
ec6a6fbe AK |
14206 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14207 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14208 | { (exit 1); exit 1; }; } |
b896caa1 | 14209 | fi |
ad6254c5 | 14210 | |
b896caa1 AK |
14211 | done |
14212 | ||
14213 | ||
ad6254c5 AK |
14214 | for ac_func in socket |
14215 | do | |
ec6a6fbe AK |
14216 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14217 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14218 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14219 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14220 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14221 | else |
ad6254c5 | 14222 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14223 | /* confdefs.h. */ |
14224 | _ACEOF | |
14225 | cat confdefs.h >>conftest.$ac_ext | |
14226 | cat >>conftest.$ac_ext <<_ACEOF | |
14227 | /* end confdefs.h. */ | |
8a2fc586 AK |
14228 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14230 | #define $ac_func innocuous_$ac_func | |
14231 | ||
ad6254c5 AK |
14232 | /* System header to define __stub macros and hopefully few prototypes, |
14233 | which can conflict with char $ac_func (); below. | |
14234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14235 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14236 | |
ad6254c5 AK |
14237 | #ifdef __STDC__ |
14238 | # include <limits.h> | |
14239 | #else | |
14240 | # include <assert.h> | |
14241 | #endif | |
8a2fc586 AK |
14242 | |
14243 | #undef $ac_func | |
14244 | ||
7a197a62 AK |
14245 | /* Override any GCC internal prototype to avoid an error. |
14246 | Use char because int might match the return type of a GCC | |
14247 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14248 | #ifdef __cplusplus |
14249 | extern "C" | |
ad6254c5 | 14250 | #endif |
ad6254c5 AK |
14251 | char $ac_func (); |
14252 | /* The GNU C library defines this for functions which it implements | |
14253 | to always fail with ENOSYS. Some functions are actually named | |
14254 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14255 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14256 | choke me |
ad6254c5 AK |
14257 | #endif |
14258 | ||
14259 | int | |
14260 | main () | |
14261 | { | |
7a197a62 | 14262 | return $ac_func (); |
ad6254c5 AK |
14263 | ; |
14264 | return 0; | |
14265 | } | |
14266 | _ACEOF | |
14267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14268 | if { (ac_try="$ac_link" |
14269 | case "(($ac_try" in | |
14270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14271 | *) ac_try_echo=$ac_try;; | |
14272 | esac | |
ec6a6fbe AK |
14273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14274 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14275 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14276 | ac_status=$? |
8a2fc586 AK |
14277 | grep -v '^ *+' conftest.er1 >conftest.err |
14278 | rm -f conftest.er1 | |
14279 | cat conftest.err >&5 | |
ec6a6fbe | 14280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14281 | (exit $ac_status); } && { |
14282 | test -z "$ac_c_werror_flag" || | |
14283 | test ! -s conftest.err | |
ec6a6fbe AK |
14284 | } && test -s conftest$ac_exeext && { |
14285 | test "$cross_compiling" = yes || | |
14286 | $as_test_x conftest$ac_exeext | |
14287 | }; then | |
ad6254c5 AK |
14288 | eval "$as_ac_var=yes" |
14289 | else | |
ec6a6fbe | 14290 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14291 | sed 's/^/| /' conftest.$ac_ext >&5 |
14292 | ||
7a197a62 | 14293 | eval "$as_ac_var=no" |
ad6254c5 | 14294 | fi |
7a197a62 | 14295 | |
ec6a6fbe | 14296 | rm -rf conftest.dSYM |
25fbec5b | 14297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14298 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14299 | fi |
ec6a6fbe AK |
14300 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14301 | $as_echo "$as_val"'` | |
14302 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14303 | $as_echo "$ac_res" >&6; } | |
14304 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14305 | $as_echo "$as_val"'` | |
14306 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14307 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14308 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14309 | _ACEOF |
14310 | ||
14311 | else | |
ec6a6fbe AK |
14312 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14313 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14314 | { (exit 1); exit 1; }; } |
14315 | fi | |
14316 | done | |
14317 | ||
14318 | fi | |
14319 | ||
14320 | if test x$HAVE_LIBDL = xyes; then | |
14321 | ||
14322 | for ac_header in dlfcn.h | |
14323 | do | |
ec6a6fbe | 14324 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14326 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14327 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14328 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14329 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14330 | fi |
ec6a6fbe AK |
14331 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14332 | $as_echo "$as_val"'` | |
14333 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14334 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14335 | else |
14336 | # Is the header compilable? | |
ec6a6fbe AK |
14337 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14338 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14339 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14340 | /* confdefs.h. */ |
14341 | _ACEOF | |
14342 | cat confdefs.h >>conftest.$ac_ext | |
14343 | cat >>conftest.$ac_ext <<_ACEOF | |
14344 | /* end confdefs.h. */ | |
14345 | $ac_includes_default | |
14346 | #include <$ac_header> | |
14347 | _ACEOF | |
14348 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14349 | if { (ac_try="$ac_compile" |
14350 | case "(($ac_try" in | |
14351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14352 | *) ac_try_echo=$ac_try;; | |
14353 | esac | |
ec6a6fbe AK |
14354 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14355 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14356 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14357 | ac_status=$? |
8a2fc586 AK |
14358 | grep -v '^ *+' conftest.er1 >conftest.err |
14359 | rm -f conftest.er1 | |
14360 | cat conftest.err >&5 | |
ec6a6fbe | 14361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14362 | (exit $ac_status); } && { |
14363 | test -z "$ac_c_werror_flag" || | |
14364 | test ! -s conftest.err | |
14365 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14366 | ac_header_compiler=yes |
14367 | else | |
ec6a6fbe | 14368 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14369 | sed 's/^/| /' conftest.$ac_ext >&5 |
14370 | ||
7a197a62 | 14371 | ac_header_compiler=no |
ad6254c5 | 14372 | fi |
7a197a62 AK |
14373 | |
14374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14375 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14376 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14377 | |
14378 | # Is the header present? | |
ec6a6fbe AK |
14379 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14380 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14381 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14382 | /* confdefs.h. */ |
14383 | _ACEOF | |
14384 | cat confdefs.h >>conftest.$ac_ext | |
14385 | cat >>conftest.$ac_ext <<_ACEOF | |
14386 | /* end confdefs.h. */ | |
14387 | #include <$ac_header> | |
14388 | _ACEOF | |
7a197a62 AK |
14389 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14390 | case "(($ac_try" in | |
14391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14392 | *) ac_try_echo=$ac_try;; | |
14393 | esac | |
ec6a6fbe AK |
14394 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14395 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14396 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14397 | ac_status=$? |
14398 | grep -v '^ *+' conftest.er1 >conftest.err | |
14399 | rm -f conftest.er1 | |
14400 | cat conftest.err >&5 | |
ec6a6fbe | 14401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14402 | (exit $ac_status); } >/dev/null && { |
14403 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14404 | test ! -s conftest.err | |
14405 | }; then | |
ad6254c5 AK |
14406 | ac_header_preproc=yes |
14407 | else | |
ec6a6fbe | 14408 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14409 | sed 's/^/| /' conftest.$ac_ext >&5 |
14410 | ||
14411 | ac_header_preproc=no | |
14412 | fi | |
7a197a62 | 14413 | |
ad6254c5 | 14414 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14415 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14416 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14417 | |
14418 | # So? What about this header? | |
8a2fc586 AK |
14419 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14420 | yes:no: ) | |
ec6a6fbe AK |
14421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14422 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14423 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14424 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14425 | ac_header_preproc=yes |
ad6254c5 | 14426 | ;; |
8a2fc586 | 14427 | no:yes:* ) |
ec6a6fbe AK |
14428 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14429 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14430 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14431 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14432 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14433 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14434 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14435 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14436 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14437 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14439 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14440 | |
ad6254c5 AK |
14441 | ;; |
14442 | esac | |
ec6a6fbe AK |
14443 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14444 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14446 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14447 | else |
8a2fc586 | 14448 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 14449 | fi |
ec6a6fbe AK |
14450 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14451 | $as_echo "$as_val"'` | |
14452 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14453 | $as_echo "$ac_res" >&6; } | |
80992638 | 14454 | |
8106cdd5 | 14455 | fi |
ec6a6fbe AK |
14456 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14457 | $as_echo "$as_val"'` | |
14458 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14459 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14460 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14461 | _ACEOF |
795ca3e5 AK |
14462 | |
14463 | else | |
ec6a6fbe AK |
14464 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14465 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14466 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14467 | fi |
14468 | ||
ad6254c5 | 14469 | done |
80992638 | 14470 | |
ad6254c5 | 14471 | fi |
80992638 | 14472 | |
ad6254c5 | 14473 | if test x$INTL = xyes; then |
83912faa | 14474 | |
ad6254c5 AK |
14475 | for ac_header in libintl.h |
14476 | do | |
ec6a6fbe | 14477 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14479 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14480 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14481 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14482 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14483 | fi |
ec6a6fbe AK |
14484 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14485 | $as_echo "$as_val"'` | |
14486 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14487 | $as_echo "$ac_res" >&6; } | |
83912faa | 14488 | else |
ad6254c5 | 14489 | # Is the header compilable? |
ec6a6fbe AK |
14490 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14491 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14492 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14493 | /* confdefs.h. */ |
14494 | _ACEOF | |
14495 | cat confdefs.h >>conftest.$ac_ext | |
14496 | cat >>conftest.$ac_ext <<_ACEOF | |
14497 | /* end confdefs.h. */ | |
14498 | $ac_includes_default | |
14499 | #include <$ac_header> | |
14500 | _ACEOF | |
14501 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14502 | if { (ac_try="$ac_compile" |
14503 | case "(($ac_try" in | |
14504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14505 | *) ac_try_echo=$ac_try;; | |
14506 | esac | |
ec6a6fbe AK |
14507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14508 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14509 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14510 | ac_status=$? |
8a2fc586 AK |
14511 | grep -v '^ *+' conftest.er1 >conftest.err |
14512 | rm -f conftest.er1 | |
14513 | cat conftest.err >&5 | |
ec6a6fbe | 14514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14515 | (exit $ac_status); } && { |
14516 | test -z "$ac_c_werror_flag" || | |
14517 | test ! -s conftest.err | |
14518 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14519 | ac_header_compiler=yes |
14520 | else | |
ec6a6fbe | 14521 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14522 | sed 's/^/| /' conftest.$ac_ext >&5 |
14523 | ||
7a197a62 | 14524 | ac_header_compiler=no |
ad6254c5 | 14525 | fi |
7a197a62 AK |
14526 | |
14527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14528 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14529 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14530 | |
14531 | # Is the header present? | |
ec6a6fbe AK |
14532 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14533 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14534 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14535 | /* confdefs.h. */ |
14536 | _ACEOF | |
14537 | cat confdefs.h >>conftest.$ac_ext | |
14538 | cat >>conftest.$ac_ext <<_ACEOF | |
14539 | /* end confdefs.h. */ | |
14540 | #include <$ac_header> | |
14541 | _ACEOF | |
7a197a62 AK |
14542 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14543 | case "(($ac_try" in | |
14544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14545 | *) ac_try_echo=$ac_try;; | |
14546 | esac | |
ec6a6fbe AK |
14547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14548 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14549 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14550 | ac_status=$? |
14551 | grep -v '^ *+' conftest.er1 >conftest.err | |
14552 | rm -f conftest.er1 | |
14553 | cat conftest.err >&5 | |
ec6a6fbe | 14554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14555 | (exit $ac_status); } >/dev/null && { |
14556 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14557 | test ! -s conftest.err | |
14558 | }; then | |
ad6254c5 AK |
14559 | ac_header_preproc=yes |
14560 | else | |
ec6a6fbe | 14561 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14562 | sed 's/^/| /' conftest.$ac_ext >&5 |
14563 | ||
14564 | ac_header_preproc=no | |
14565 | fi | |
7a197a62 | 14566 | |
ad6254c5 | 14567 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14568 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14569 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14570 | |
14571 | # So? What about this header? | |
8a2fc586 AK |
14572 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14573 | yes:no: ) | |
ec6a6fbe AK |
14574 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14575 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14576 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14577 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14578 | ac_header_preproc=yes |
ad6254c5 | 14579 | ;; |
8a2fc586 | 14580 | no:yes:* ) |
ec6a6fbe AK |
14581 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14582 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14583 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14584 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14585 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14586 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14587 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14588 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14589 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14590 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14591 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14592 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14593 | |
ad6254c5 AK |
14594 | ;; |
14595 | esac | |
ec6a6fbe AK |
14596 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14597 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14599 | $as_echo_n "(cached) " >&6 |
80992638 | 14600 | else |
8a2fc586 | 14601 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 14602 | fi |
ec6a6fbe AK |
14603 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14604 | $as_echo "$as_val"'` | |
14605 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14606 | $as_echo "$ac_res" >&6; } | |
83912faa | 14607 | |
69792976 | 14608 | fi |
ec6a6fbe AK |
14609 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14610 | $as_echo "$as_val"'` | |
14611 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14612 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14613 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14614 | _ACEOF |
69792976 | 14615 | |
69792976 | 14616 | else |
ec6a6fbe AK |
14617 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14618 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14619 | { (exit 1); exit 1; }; } |
80992638 AK |
14620 | fi |
14621 | ||
ad6254c5 | 14622 | done |
69792976 | 14623 | |
ad6254c5 AK |
14624 | fi |
14625 | ||
ad6254c5 AK |
14626 | if test x$HAVE_SELINUX = xyes; then |
14627 | ||
14628 | for ac_header in selinux/selinux.h | |
14629 | do | |
ec6a6fbe | 14630 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14631 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14632 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14633 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14634 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14635 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14636 | fi |
ec6a6fbe AK |
14637 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14638 | $as_echo "$as_val"'` | |
14639 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14640 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 14641 | else |
ad6254c5 | 14642 | # Is the header compilable? |
ec6a6fbe AK |
14643 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14644 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14645 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14646 | /* confdefs.h. */ |
14647 | _ACEOF | |
14648 | cat confdefs.h >>conftest.$ac_ext | |
14649 | cat >>conftest.$ac_ext <<_ACEOF | |
14650 | /* end confdefs.h. */ | |
14651 | $ac_includes_default | |
14652 | #include <$ac_header> | |
14653 | _ACEOF | |
14654 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14655 | if { (ac_try="$ac_compile" |
14656 | case "(($ac_try" in | |
14657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14658 | *) ac_try_echo=$ac_try;; | |
14659 | esac | |
ec6a6fbe AK |
14660 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14661 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14662 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14663 | ac_status=$? |
8a2fc586 AK |
14664 | grep -v '^ *+' conftest.er1 >conftest.err |
14665 | rm -f conftest.er1 | |
14666 | cat conftest.err >&5 | |
ec6a6fbe | 14667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14668 | (exit $ac_status); } && { |
14669 | test -z "$ac_c_werror_flag" || | |
14670 | test ! -s conftest.err | |
14671 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14672 | ac_header_compiler=yes |
14673 | else | |
ec6a6fbe | 14674 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14675 | sed 's/^/| /' conftest.$ac_ext >&5 |
14676 | ||
7a197a62 | 14677 | ac_header_compiler=no |
ad6254c5 | 14678 | fi |
7a197a62 AK |
14679 | |
14680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14681 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14682 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14683 | |
14684 | # Is the header present? | |
ec6a6fbe AK |
14685 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14686 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14687 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14688 | /* confdefs.h. */ |
14689 | _ACEOF | |
14690 | cat confdefs.h >>conftest.$ac_ext | |
14691 | cat >>conftest.$ac_ext <<_ACEOF | |
14692 | /* end confdefs.h. */ | |
14693 | #include <$ac_header> | |
14694 | _ACEOF | |
7a197a62 AK |
14695 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14696 | case "(($ac_try" in | |
14697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14698 | *) ac_try_echo=$ac_try;; | |
14699 | esac | |
ec6a6fbe AK |
14700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14701 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14702 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14703 | ac_status=$? |
14704 | grep -v '^ *+' conftest.er1 >conftest.err | |
14705 | rm -f conftest.er1 | |
14706 | cat conftest.err >&5 | |
ec6a6fbe | 14707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14708 | (exit $ac_status); } >/dev/null && { |
14709 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14710 | test ! -s conftest.err | |
14711 | }; then | |
ad6254c5 AK |
14712 | ac_header_preproc=yes |
14713 | else | |
ec6a6fbe | 14714 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14715 | sed 's/^/| /' conftest.$ac_ext >&5 |
14716 | ||
14717 | ac_header_preproc=no | |
14718 | fi | |
7a197a62 | 14719 | |
ad6254c5 | 14720 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14721 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14722 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14723 | |
14724 | # So? What about this header? | |
8a2fc586 AK |
14725 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14726 | yes:no: ) | |
ec6a6fbe AK |
14727 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14728 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14729 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14730 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14731 | ac_header_preproc=yes |
ad6254c5 | 14732 | ;; |
8a2fc586 | 14733 | no:yes:* ) |
ec6a6fbe AK |
14734 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14735 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14736 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14737 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14738 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14739 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14740 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14741 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14742 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14743 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14744 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14745 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14746 | |
ad6254c5 AK |
14747 | ;; |
14748 | esac | |
ec6a6fbe AK |
14749 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14750 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14751 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14752 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14753 | else |
8a2fc586 | 14754 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 14755 | fi |
ec6a6fbe AK |
14756 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14757 | $as_echo "$as_val"'` | |
14758 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14759 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 14760 | |
ad6254c5 | 14761 | fi |
ec6a6fbe AK |
14762 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14763 | $as_echo "$as_val"'` | |
14764 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14765 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14766 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14767 | _ACEOF |
0a62c911 | 14768 | |
0a62c911 | 14769 | else |
ec6a6fbe AK |
14770 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14771 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14772 | { (exit 1); exit 1; }; } |
80992638 AK |
14773 | fi |
14774 | ||
ad6254c5 | 14775 | done |
0a62c911 | 14776 | |
ad6254c5 | 14777 | fi |
0a62c911 | 14778 | |
a5f46f6a AK |
14779 | if test x$UDEV_SYNC = xyes; then |
14780 | ||
14781 | ||
14782 | for ac_header in sys/ipc.h sys/sem.h | |
14783 | do | |
14784 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14785 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14786 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14787 | $as_echo_n "checking for $ac_header... " >&6; } | |
14788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14789 | $as_echo_n "(cached) " >&6 | |
14790 | fi | |
14791 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14792 | $as_echo "$as_val"'` | |
14793 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14794 | $as_echo "$ac_res" >&6; } | |
14795 | else | |
14796 | # Is the header compilable? | |
14797 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14798 | $as_echo_n "checking $ac_header usability... " >&6; } | |
14799 | cat >conftest.$ac_ext <<_ACEOF | |
14800 | /* confdefs.h. */ | |
14801 | _ACEOF | |
14802 | cat confdefs.h >>conftest.$ac_ext | |
14803 | cat >>conftest.$ac_ext <<_ACEOF | |
14804 | /* end confdefs.h. */ | |
14805 | $ac_includes_default | |
14806 | #include <$ac_header> | |
14807 | _ACEOF | |
14808 | rm -f conftest.$ac_objext | |
14809 | if { (ac_try="$ac_compile" | |
14810 | case "(($ac_try" in | |
14811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14812 | *) ac_try_echo=$ac_try;; | |
14813 | esac | |
14814 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14815 | $as_echo "$ac_try_echo") >&5 | |
14816 | (eval "$ac_compile") 2>conftest.er1 | |
14817 | ac_status=$? | |
14818 | grep -v '^ *+' conftest.er1 >conftest.err | |
14819 | rm -f conftest.er1 | |
14820 | cat conftest.err >&5 | |
14821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14822 | (exit $ac_status); } && { | |
14823 | test -z "$ac_c_werror_flag" || | |
14824 | test ! -s conftest.err | |
14825 | } && test -s conftest.$ac_objext; then | |
14826 | ac_header_compiler=yes | |
14827 | else | |
14828 | $as_echo "$as_me: failed program was:" >&5 | |
14829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14830 | ||
14831 | ac_header_compiler=no | |
14832 | fi | |
14833 | ||
14834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14835 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14836 | $as_echo "$ac_header_compiler" >&6; } | |
14837 | ||
14838 | # Is the header present? | |
14839 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14840 | $as_echo_n "checking $ac_header presence... " >&6; } | |
14841 | cat >conftest.$ac_ext <<_ACEOF | |
14842 | /* confdefs.h. */ | |
14843 | _ACEOF | |
14844 | cat confdefs.h >>conftest.$ac_ext | |
14845 | cat >>conftest.$ac_ext <<_ACEOF | |
14846 | /* end confdefs.h. */ | |
14847 | #include <$ac_header> | |
14848 | _ACEOF | |
14849 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14850 | case "(($ac_try" in | |
14851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14852 | *) ac_try_echo=$ac_try;; | |
14853 | esac | |
14854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14855 | $as_echo "$ac_try_echo") >&5 | |
14856 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14857 | ac_status=$? | |
14858 | grep -v '^ *+' conftest.er1 >conftest.err | |
14859 | rm -f conftest.er1 | |
14860 | cat conftest.err >&5 | |
14861 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14862 | (exit $ac_status); } >/dev/null && { | |
14863 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14864 | test ! -s conftest.err | |
14865 | }; then | |
14866 | ac_header_preproc=yes | |
14867 | else | |
14868 | $as_echo "$as_me: failed program was:" >&5 | |
14869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14870 | ||
14871 | ac_header_preproc=no | |
14872 | fi | |
14873 | ||
14874 | rm -f conftest.err conftest.$ac_ext | |
14875 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14876 | $as_echo "$ac_header_preproc" >&6; } | |
14877 | ||
14878 | # So? What about this header? | |
14879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14880 | yes:no: ) | |
14881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14882 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14884 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14885 | ac_header_preproc=yes | |
14886 | ;; | |
14887 | no:yes:* ) | |
14888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14889 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14891 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14892 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14893 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14894 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14895 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14896 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14897 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14898 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14899 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14900 | ||
14901 | ;; | |
14902 | esac | |
14903 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14904 | $as_echo_n "checking for $ac_header... " >&6; } | |
14905 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14906 | $as_echo_n "(cached) " >&6 | |
14907 | else | |
14908 | eval "$as_ac_Header=\$ac_header_preproc" | |
14909 | fi | |
14910 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14911 | $as_echo "$as_val"'` | |
14912 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14913 | $as_echo "$ac_res" >&6; } | |
14914 | ||
14915 | fi | |
14916 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
14917 | $as_echo "$as_val"'` | |
14918 | if test "x$as_val" = x""yes; then | |
14919 | cat >>confdefs.h <<_ACEOF | |
14920 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14921 | _ACEOF | |
14922 | ||
14923 | else | |
14924 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
14925 | $as_echo "$as_me: error: bailing out" >&2;} | |
14926 | { (exit 1); exit 1; }; } | |
14927 | fi | |
14928 | ||
14929 | done | |
14930 | ||
14931 | fi | |
14932 | ||
a653923f AK |
14933 | ################################################################################ |
14934 | # Extract the first word of "modprobe", so it can be a program name with args. | |
14935 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
14936 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14937 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 14938 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 14939 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
14940 | else |
14941 | case $MODPROBE_CMD in | |
14942 | [\\/]* | ?:[\\/]*) | |
14943 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
14944 | ;; | |
14945 | *) | |
14946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14947 | for as_dir in $PATH | |
14948 | do | |
14949 | IFS=$as_save_IFS | |
14950 | test -z "$as_dir" && as_dir=. | |
14951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 14952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 14953 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 14954 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
14955 | break 2 |
14956 | fi | |
14957 | done | |
14958 | done | |
7a197a62 | 14959 | IFS=$as_save_IFS |
72b2cb61 AK |
14960 | |
14961 | ;; | |
14962 | esac | |
14963 | fi | |
14964 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 14965 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
14966 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
14967 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 14968 | else |
ec6a6fbe AK |
14969 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14970 | $as_echo "no" >&6; } | |
72b2cb61 AK |
14971 | fi |
14972 | ||
a653923f | 14973 | |
7a197a62 | 14974 | |
a653923f | 14975 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
14976 | |
14977 | cat >>confdefs.h <<_ACEOF | |
14978 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
14979 | _ACEOF | |
14980 | ||
a653923f AK |
14981 | fi |
14982 | ||
80992638 | 14983 | ################################################################################ |
93bd259b AK |
14984 | |
14985 | ||
14986 | if test "$BUILD_DMEVENTD" = yes; then | |
14987 | ||
14988 | # Check whether --with-dmeventd-pidfile was given. | |
14989 | if test "${with_dmeventd_pidfile+set}" = set; then | |
14990 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
14991 | #define DMEVENTD_PIDFILE "$withval" | |
14992 | _ACEOF | |
14993 | ||
14994 | else | |
14995 | cat >>confdefs.h <<_ACEOF | |
14996 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
14997 | _ACEOF | |
14998 | ||
14999 | fi | |
15000 | ||
15001 | fi | |
15002 | ||
15003 | ||
15004 | ||
15005 | if test "$BUILD_DMEVENTD" = yes; then | |
15006 | dmeventd_prefix="$exec_prefix" | |
15007 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15008 | dmeventd_prefix="$prefix" | |
15009 | fi | |
15010 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15011 | dmeventd_prefix="" | |
15012 | fi | |
15013 | ||
15014 | # Check whether --with-dmeventd-path was given. | |
15015 | if test "${with_dmeventd_path+set}" = set; then | |
15016 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15017 | #define DMEVENTD_PATH "$withval" | |
15018 | _ACEOF | |
15019 | ||
15020 | else | |
15021 | cat >>confdefs.h <<_ACEOF | |
15022 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15023 | _ACEOF | |
15024 | ||
15025 | fi | |
15026 | ||
15027 | fi | |
15028 | ||
15029 | ################################################################################ | |
ec6a6fbe AK |
15030 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15031 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15032 | |
15033 | # Check whether --with-interface was given. | |
15034 | if test "${with_interface+set}" = set; then | |
15035 | withval=$with_interface; interface="$withval" | |
15036 | else | |
15037 | interface=ioctl | |
15038 | fi | |
15039 | ||
15040 | if [ "x$interface" != xioctl ]; | |
15041 | then | |
ec6a6fbe AK |
15042 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15043 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15044 | { (exit 1); exit 1; }; } |
15045 | fi | |
ec6a6fbe AK |
15046 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15047 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15048 | |
15049 | ################################################################################ | |
2c44337b | 15050 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15051 | |
15052 | cat >>confdefs.h <<_ACEOF | |
15053 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15054 | _ACEOF | |
15055 | ||
15056 | ||
ec6a6fbe | 15057 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15058 | |
d0191583 | 15059 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15060 | |
ec6a6fbe | 15061 | VER=`cat VERSION` |
bf456146 | 15062 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15063 | VER=`echo "$VER" | $AWK '{print $1}'` |
15064 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15065 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15066 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15067 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15068 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15069 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15070 | |
80992638 | 15071 | ################################################################################ |
fae0c576 | 15072 | |
83912faa | 15073 | |
795ca3e5 AK |
15074 | |
15075 | ||
15076 | ||
15077 | ||
15078 | ||
15079 | ||
5a52dca9 | 15080 | |
8ef2b021 | 15081 | |
199e490e | 15082 | |
69792976 AK |
15083 | |
15084 | ||
15085 | ||
d0191583 | 15086 | |
69792976 | 15087 | |
8106cdd5 AK |
15088 | |
15089 | ||
15090 | ||
15091 | ||
15092 | ||
d68a82ec | 15093 | |
036f273a | 15094 | |
7d1552c9 | 15095 | |
8106cdd5 | 15096 | |
0a62c911 | 15097 | |
8106cdd5 | 15098 | |
4a7f3eb2 | 15099 | |
4922197a AK |
15100 | |
15101 | ||
d8ac0fbc | 15102 | |
1a9ea74d | 15103 | |
8a2fc586 AK |
15104 | |
15105 | ||
d0191583 | 15106 | |
93bd259b AK |
15107 | |
15108 | ||
15109 | ||
15110 | ||
15111 | ||
d0191583 JM |
15112 | |
15113 | ||
15114 | ||
15115 | ||
15116 | ||
8a2fc586 | 15117 | |
8ce0cbda | 15118 | |
8b1a3214 | 15119 | |
ec6a6fbe AK |
15120 | |
15121 | ||
15122 | ||
15123 | ||
e2997b73 AK |
15124 | |
15125 | ||
15126 | ||
15127 | ||
15128 | ||
15129 | ||
a946372e AK |
15130 | |
15131 | ||
15132 | ||
15133 | ||
15134 | ||
15135 | ||
15136 | ||
15137 | ||
15138 | ||
15139 | ||
15140 | ||
ec6a6fbe | 15141 | |
33f732c5 | 15142 | |
66e941e8 | 15143 | |
d3c8211f | 15144 | |
7e3fe830 | 15145 | |
a5f46f6a AK |
15146 | |
15147 | ||
15148 | ||
572fefeb | 15149 | |
bf456146 | 15150 | |
68f2de6d AK |
15151 | |
15152 | ||
80992638 | 15153 | ################################################################################ |
a946372e | 15154 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/clogd/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 liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 15155 | |
ad6254c5 | 15156 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15157 | # This file is a shell script that caches the results of configure |
15158 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15159 | # scripts and configure runs, see configure's option --config-cache. |
15160 | # It is not useful on other systems. If it contains results you don't | |
15161 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15162 | # |
ad6254c5 AK |
15163 | # config.status only pays attention to the cache file if you give it |
15164 | # the --recheck option to rerun configure. | |
795ca3e5 | 15165 | # |
ad6254c5 AK |
15166 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15167 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15168 | # following values. | |
15169 | ||
15170 | _ACEOF | |
15171 | ||
795ca3e5 AK |
15172 | # The following way of writing the cache mishandles newlines in values, |
15173 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15174 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15175 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15176 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15177 | ( |
15178 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15179 | eval ac_val=\$$ac_var | |
15180 | case $ac_val in #( | |
15181 | *${as_nl}*) | |
15182 | case $ac_var in #( | |
ec6a6fbe AK |
15183 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15184 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15185 | esac |
15186 | case $ac_var in #( | |
15187 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15188 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15189 | *) $as_unset $ac_var ;; |
15190 | esac ;; | |
15191 | esac | |
15192 | done | |
15193 | ||
ad6254c5 | 15194 | (set) 2>&1 | |
7a197a62 AK |
15195 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15196 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15197 | # `set' does not quote correctly, so add quotes (double-quote |
15198 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15199 | sed -n \ | |
8a2fc586 AK |
15200 | "s/'/'\\\\''/g; |
15201 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15202 | ;; #( |
ad6254c5 AK |
15203 | *) |
15204 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15205 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15206 | ;; |
7a197a62 AK |
15207 | esac | |
15208 | sort | |
15209 | ) | | |
ad6254c5 | 15210 | sed ' |
7a197a62 | 15211 | /^ac_cv_env_/b end |
ad6254c5 | 15212 | t clear |
7a197a62 | 15213 | :clear |
ad6254c5 AK |
15214 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15215 | t end | |
7a197a62 AK |
15216 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15217 | :end' >>confcache | |
15218 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15219 | if test -w "$cache_file"; then | |
15220 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15221 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15222 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15223 | cat confcache >$cache_file |
795ca3e5 | 15224 | else |
ec6a6fbe AK |
15225 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15226 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15227 | fi |
15228 | fi | |
15229 | rm -f confcache | |
15230 | ||
795ca3e5 AK |
15231 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15232 | # Let make expand exec_prefix. | |
15233 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15234 | ||
72b2cb61 | 15235 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15236 | |
15237 | ac_libobjs= | |
15238 | ac_ltlibobjs= | |
15239 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15240 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15241 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15242 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15243 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15244 | # will be set to the directory where LIBOBJS objects are built. | |
15245 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15246 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15247 | done |
15248 | LIBOBJS=$ac_libobjs | |
80992638 | 15249 | |
ad6254c5 AK |
15250 | LTLIBOBJS=$ac_ltlibobjs |
15251 | ||
15252 | ||
15253 | ||
15254 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15255 | ac_write_fail=0 |
ad6254c5 AK |
15256 | ac_clean_files_save=$ac_clean_files |
15257 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15258 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15259 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15260 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15261 | #! $SHELL |
15262 | # Generated by $as_me. | |
795ca3e5 | 15263 | # Run this file to recreate the current configuration. |
795ca3e5 | 15264 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15265 | # configure, is in config.log if it exists. |
15266 | ||
15267 | debug=false | |
15268 | ac_cs_recheck=false | |
15269 | ac_cs_silent=false | |
15270 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15271 | _ACEOF | |
15272 | ||
ec6a6fbe | 15273 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15274 | ## --------------------- ## |
15275 | ## M4sh Initialization. ## | |
15276 | ## --------------------- ## | |
15277 | ||
25fbec5b AK |
15278 | # Be more Bourne compatible |
15279 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15281 | emulate sh | |
15282 | NULLCMD=: | |
ec6a6fbe | 15283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15284 | # is contrary to our usage. Disable this feature. |
15285 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15286 | setopt NO_GLOB_SUBST |
15287 | else | |
25fbec5b AK |
15288 | case `(set -o) 2>/dev/null` in |
15289 | *posix*) set -o posix ;; | |
15290 | esac | |
15291 | ||
7a197a62 | 15292 | fi |
25fbec5b AK |
15293 | |
15294 | ||
7a197a62 AK |
15295 | |
15296 | ||
15297 | # PATH needs CR | |
15298 | # Avoid depending upon Character Ranges. | |
15299 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15300 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15301 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15302 | as_cr_digits='0123456789' | |
15303 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15304 | ||
ec6a6fbe AK |
15305 | as_nl=' |
15306 | ' | |
15307 | export as_nl | |
15308 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15309 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15310 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15311 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15312 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15313 | as_echo='printf %s\n' | |
15314 | as_echo_n='printf %s' | |
15315 | else | |
15316 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15317 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15318 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15319 | else |
ec6a6fbe AK |
15320 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15321 | as_echo_n_body='eval | |
15322 | arg=$1; | |
15323 | case $arg in | |
15324 | *"$as_nl"*) | |
15325 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15326 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15327 | esac; | |
15328 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15329 | ' | |
15330 | export as_echo_n_body | |
15331 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15332 | fi |
ec6a6fbe AK |
15333 | export as_echo_body |
15334 | as_echo='sh -c $as_echo_body as_echo' | |
15335 | fi | |
15336 | ||
15337 | # The user is always right. | |
15338 | if test "${PATH_SEPARATOR+set}" != set; then | |
15339 | PATH_SEPARATOR=: | |
15340 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15341 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15342 | PATH_SEPARATOR=';' | |
15343 | } | |
ad6254c5 AK |
15344 | fi |
15345 | ||
15346 | # Support unset when possible. | |
8a2fc586 | 15347 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15348 | as_unset=unset |
15349 | else | |
15350 | as_unset=false | |
15351 | fi | |
8106cdd5 | 15352 | |
ad6254c5 | 15353 | |
7a197a62 AK |
15354 | # IFS |
15355 | # We need space, tab and new line, in precisely that order. Quoting is | |
15356 | # there to prevent editors from complaining about space-tab. | |
15357 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15358 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15359 | IFS=" "" $as_nl" |
15360 | ||
15361 | # Find who we are. Look in the path if we contain no directory separator. | |
15362 | case $0 in | |
15363 | *[\\/]* ) as_myself=$0 ;; | |
15364 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15365 | for as_dir in $PATH | |
15366 | do | |
15367 | IFS=$as_save_IFS | |
15368 | test -z "$as_dir" && as_dir=. | |
15369 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15370 | done | |
15371 | IFS=$as_save_IFS | |
15372 | ||
15373 | ;; | |
15374 | esac | |
15375 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15376 | # in which case we are not to be found in the path. | |
15377 | if test "x$as_myself" = x; then | |
15378 | as_myself=$0 | |
15379 | fi | |
15380 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15381 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15382 | { (exit 1); exit 1; } |
15383 | fi | |
15384 | ||
ad6254c5 | 15385 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15386 | for as_var in ENV MAIL MAILPATH |
15387 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15388 | done | |
ad6254c5 AK |
15389 | PS1='$ ' |
15390 | PS2='> ' | |
15391 | PS4='+ ' | |
15392 | ||
15393 | # NLS nuisances. | |
ec6a6fbe AK |
15394 | LC_ALL=C |
15395 | export LC_ALL | |
15396 | LANGUAGE=C | |
15397 | export LANGUAGE | |
8106cdd5 | 15398 | |
ad6254c5 | 15399 | # Required to use basename. |
7a197a62 AK |
15400 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15401 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15402 | as_expr=expr |
15403 | else | |
15404 | as_expr=false | |
15405 | fi | |
8106cdd5 | 15406 | |
7a197a62 | 15407 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15408 | as_basename=basename |
15409 | else | |
15410 | as_basename=false | |
15411 | fi | |
15412 | ||
15413 | ||
15414 | # Name of the executable. | |
7a197a62 | 15415 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15416 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15417 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15418 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15419 | $as_echo X/"$0" | |
7a197a62 AK |
15420 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15421 | s//\1/ | |
15422 | q | |
15423 | } | |
15424 | /^X\/\(\/\/\)$/{ | |
15425 | s//\1/ | |
15426 | q | |
15427 | } | |
15428 | /^X\/\(\/\).*/{ | |
15429 | s//\1/ | |
15430 | q | |
15431 | } | |
15432 | s/.*/./; q'` | |
ad6254c5 | 15433 | |
7a197a62 AK |
15434 | # CDPATH. |
15435 | $as_unset CDPATH | |
ad6254c5 AK |
15436 | |
15437 | ||
ad6254c5 | 15438 | |
ad6254c5 AK |
15439 | as_lineno_1=$LINENO |
15440 | as_lineno_2=$LINENO | |
ad6254c5 | 15441 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15442 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15443 | |
ad6254c5 AK |
15444 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15445 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15446 | # line-number line after each line using $LINENO; the second 'sed' |
15447 | # does the real work. The second script uses 'N' to pair each | |
15448 | # line-number line with the line containing $LINENO, and appends | |
15449 | # trailing '-' during substitution so that $LINENO is not a special | |
15450 | # case at line end. | |
ad6254c5 | 15451 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15452 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15453 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15454 | sed -n ' | |
15455 | p | |
15456 | /[$]LINENO/= | |
15457 | ' <$as_myself | | |
ad6254c5 | 15458 | sed ' |
7a197a62 AK |
15459 | s/[$]LINENO.*/&-/ |
15460 | t lineno | |
15461 | b | |
15462 | :lineno | |
ad6254c5 | 15463 | N |
7a197a62 AK |
15464 | :loop |
15465 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15466 | t loop |
7a197a62 | 15467 | s/-\n.*// |
ad6254c5 | 15468 | ' >$as_me.lineno && |
7a197a62 | 15469 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15470 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15471 | { (exit 1); exit 1; }; } |
15472 | ||
15473 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15474 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15475 | # original and so on. Autoconf is especially sensitive to this). |
15476 | . "./$as_me.lineno" | |
ad6254c5 AK |
15477 | # Exit status is that of the last command. |
15478 | exit | |
15479 | } | |
15480 | ||
15481 | ||
7a197a62 AK |
15482 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15483 | as_dirname=dirname | |
15484 | else | |
15485 | as_dirname=false | |
15486 | fi | |
15487 | ||
15488 | ECHO_C= ECHO_N= ECHO_T= | |
15489 | case `echo -n x` in | |
15490 | -n*) | |
15491 | case `echo 'x\c'` in | |
15492 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15493 | *) ECHO_C='\c';; | |
15494 | esac;; | |
15495 | *) | |
15496 | ECHO_N='-n';; | |
ad6254c5 | 15497 | esac |
7a197a62 AK |
15498 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15499 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15500 | as_expr=expr |
15501 | else | |
15502 | as_expr=false | |
15503 | fi | |
80992638 | 15504 | |
ad6254c5 | 15505 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15506 | if test -d conf$$.dir; then |
15507 | rm -f conf$$.dir/conf$$.file | |
15508 | else | |
15509 | rm -f conf$$.dir | |
ec6a6fbe AK |
15510 | mkdir conf$$.dir 2>/dev/null |
15511 | fi | |
15512 | if (echo >conf$$.file) 2>/dev/null; then | |
15513 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15514 | as_ln_s='ln -s' | |
15515 | # ... but there are two gotchas: | |
15516 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15517 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15518 | # In both cases, we have to default to `cp -p'. | |
15519 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15520 | as_ln_s='cp -p' | |
15521 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15522 | as_ln_s=ln | |
15523 | else | |
ad6254c5 | 15524 | as_ln_s='cp -p' |
ec6a6fbe | 15525 | fi |
ad6254c5 AK |
15526 | else |
15527 | as_ln_s='cp -p' | |
15528 | fi | |
7a197a62 AK |
15529 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15530 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15531 | |
ad6254c5 AK |
15532 | if mkdir -p . 2>/dev/null; then |
15533 | as_mkdir_p=: | |
15534 | else | |
8a2fc586 | 15535 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
15536 | as_mkdir_p=false |
15537 | fi | |
15538 | ||
25fbec5b AK |
15539 | if test -x / >/dev/null 2>&1; then |
15540 | as_test_x='test -x' | |
7a197a62 | 15541 | else |
25fbec5b AK |
15542 | if ls -dL / >/dev/null 2>&1; then |
15543 | as_ls_L_option=L | |
15544 | else | |
15545 | as_ls_L_option= | |
15546 | fi | |
15547 | as_test_x=' | |
15548 | eval sh -c '\'' | |
15549 | if test -d "$1"; then | |
ec6a6fbe | 15550 | test -d "$1/."; |
25fbec5b AK |
15551 | else |
15552 | case $1 in | |
ec6a6fbe | 15553 | -*)set "./$1";; |
25fbec5b AK |
15554 | esac; |
15555 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
15556 | ???[sx]*):;;*)false;;esac;fi | |
15557 | '\'' sh | |
15558 | ' | |
7a197a62 | 15559 | fi |
25fbec5b | 15560 | as_executable_p=$as_test_x |
ad6254c5 AK |
15561 | |
15562 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 15563 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15564 | |
15565 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 15566 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15567 | |
15568 | ||
ad6254c5 AK |
15569 | exec 6>&1 |
15570 | ||
7a197a62 | 15571 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 15572 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
15573 | # values after options handling. |
15574 | ac_log=" | |
ad6254c5 | 15575 | This file was extended by $as_me, which was |
ec6a6fbe | 15576 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
15577 | |
15578 | CONFIG_FILES = $CONFIG_FILES | |
15579 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15580 | CONFIG_LINKS = $CONFIG_LINKS | |
15581 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15582 | $ $0 $@ | |
15583 | ||
7a197a62 AK |
15584 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15585 | " | |
15586 | ||
ad6254c5 AK |
15587 | _ACEOF |
15588 | ||
ec6a6fbe AK |
15589 | case $ac_config_files in *" |
15590 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15591 | esac | |
15592 | ||
15593 | case $ac_config_headers in *" | |
15594 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15595 | esac | |
15596 | ||
15597 | ||
15598 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 15599 | # Files that config.status was made for. |
68f2de6d AK |
15600 | config_files="$ac_config_files" |
15601 | config_headers="$ac_config_headers" | |
ad6254c5 | 15602 | |
7a197a62 | 15603 | _ACEOF |
ad6254c5 | 15604 | |
ec6a6fbe | 15605 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15606 | ac_cs_usage="\ |
15607 | \`$as_me' instantiates files from templates according to the | |
15608 | current configuration. | |
15609 | ||
ec6a6fbe | 15610 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
15611 | |
15612 | -h, --help print this help, then exit | |
25fbec5b | 15613 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
15614 | -q, --quiet, --silent |
15615 | do not print progress messages | |
ad6254c5 AK |
15616 | -d, --debug don't remove temporary files |
15617 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
15618 | --file=FILE[:TEMPLATE] |
15619 | instantiate the configuration file FILE | |
15620 | --header=FILE[:TEMPLATE] | |
15621 | instantiate the configuration header FILE | |
ad6254c5 AK |
15622 | |
15623 | Configuration files: | |
15624 | $config_files | |
15625 | ||
72b2cb61 AK |
15626 | Configuration headers: |
15627 | $config_headers | |
15628 | ||
ad6254c5 | 15629 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 15630 | |
7a197a62 | 15631 | _ACEOF |
ec6a6fbe | 15632 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15633 | ac_cs_version="\\ |
15634 | config.status | |
ec6a6fbe AK |
15635 | configured by $0, generated by GNU Autoconf 2.63, |
15636 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 15637 | |
ec6a6fbe | 15638 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
15639 | This config.status script is free software; the Free Software Foundation |
15640 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
15641 | |
15642 | ac_pwd='$ac_pwd' | |
15643 | srcdir='$srcdir' | |
15644 | INSTALL='$INSTALL' | |
fddafd51 | 15645 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
15646 | AWK='$AWK' |
15647 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
15648 | _ACEOF |
15649 | ||
ec6a6fbe AK |
15650 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15651 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
15652 | ac_need_defaults=: |
15653 | while test $# != 0 | |
15654 | do | |
15655 | case $1 in | |
15656 | --*=*) | |
7a197a62 AK |
15657 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15658 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
15659 | ac_shift=: |
15660 | ;; | |
7a197a62 | 15661 | *) |
ad6254c5 AK |
15662 | ac_option=$1 |
15663 | ac_optarg=$2 | |
15664 | ac_shift=shift | |
15665 | ;; | |
ad6254c5 AK |
15666 | esac |
15667 | ||
15668 | case $ac_option in | |
15669 | # Handling of the options. | |
ad6254c5 AK |
15670 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15671 | ac_cs_recheck=: ;; | |
7a197a62 | 15672 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 15673 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 15674 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
15675 | debug=: ;; |
15676 | --file | --fil | --fi | --f ) | |
15677 | $ac_shift | |
ec6a6fbe AK |
15678 | case $ac_optarg in |
15679 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15680 | esac | |
15681 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
15682 | ac_need_defaults=false;; |
15683 | --header | --heade | --head | --hea ) | |
15684 | $ac_shift | |
ec6a6fbe AK |
15685 | case $ac_optarg in |
15686 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15687 | esac | |
15688 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 15689 | ac_need_defaults=false;; |
7a197a62 AK |
15690 | --he | --h) |
15691 | # Conflict between --help and --header | |
ec6a6fbe | 15692 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
15693 | Try \`$0 --help' for more information." >&2 |
15694 | { (exit 1); exit 1; }; };; | |
15695 | --help | --hel | -h ) | |
ec6a6fbe | 15696 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
15697 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15698 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15699 | ac_cs_silent=: ;; | |
15700 | ||
15701 | # This is an error. | |
ec6a6fbe | 15702 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 15703 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
15704 | { (exit 1); exit 1; }; } ;; |
15705 | ||
7a197a62 AK |
15706 | *) ac_config_targets="$ac_config_targets $1" |
15707 | ac_need_defaults=false ;; | |
ad6254c5 AK |
15708 | |
15709 | esac | |
15710 | shift | |
15711 | done | |
15712 | ||
15713 | ac_configure_extra_args= | |
15714 | ||
15715 | if $ac_cs_silent; then | |
15716 | exec 6>/dev/null | |
15717 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15718 | fi | |
15719 | ||
15720 | _ACEOF | |
ec6a6fbe | 15721 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 15722 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
15723 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15724 | shift | |
15725 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15726 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 15727 | export CONFIG_SHELL |
ec6a6fbe | 15728 | exec "\$@" |
ad6254c5 AK |
15729 | fi |
15730 | ||
15731 | _ACEOF | |
ec6a6fbe | 15732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
15733 | exec 5>>config.log |
15734 | { | |
15735 | echo | |
15736 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15737 | ## Running $as_me. ## | |
15738 | _ASBOX | |
ec6a6fbe | 15739 | $as_echo "$ac_log" |
7a197a62 | 15740 | } >&5 |
ad6254c5 | 15741 | |
7a197a62 | 15742 | _ACEOF |
ec6a6fbe | 15743 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 15744 | _ACEOF |
ad6254c5 | 15745 | |
ec6a6fbe | 15746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
15747 | |
15748 | # Handling of arguments. | |
ad6254c5 AK |
15749 | for ac_config_target in $ac_config_targets |
15750 | do | |
7a197a62 AK |
15751 | case $ac_config_target in |
15752 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
15753 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15754 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
15755 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
15756 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
a946372e | 15757 | "daemons/clogd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clogd/Makefile" ;; |
93bd259b AK |
15758 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
15759 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 15760 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
15761 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
15762 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 15763 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
15764 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
15765 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
15766 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
15767 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
15768 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
15769 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 15770 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 15771 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
15772 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
15773 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 15774 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 15775 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
15776 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
15777 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 15778 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
7a197a62 | 15779 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 15780 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 15781 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 15782 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 15783 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 15784 | |
ec6a6fbe AK |
15785 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
15786 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 15787 | { (exit 1); exit 1; }; };; |
80992638 | 15788 | esac |
ad6254c5 AK |
15789 | done |
15790 | ||
7a197a62 | 15791 | |
ad6254c5 AK |
15792 | # If the user did not use the arguments to specify the items to instantiate, |
15793 | # then the envvar interface is used. Set only those that are not. | |
15794 | # We use the long form for the default assignment because of an extremely | |
15795 | # bizarre bug on SunOS 4.1.3. | |
15796 | if $ac_need_defaults; then | |
15797 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 15798 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
15799 | fi |
15800 | ||
15801 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 15802 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 15803 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
15804 | # Hook for its removal unless debugging. |
15805 | # Note that there is a small window in which the directory will not be cleaned: | |
15806 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
15807 | $debug || |
15808 | { | |
7a197a62 AK |
15809 | tmp= |
15810 | trap 'exit_status=$? | |
15811 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15812 | ' 0 | |
ad6254c5 AK |
15813 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
15814 | } | |
ad6254c5 AK |
15815 | # Create a (secure) tmp directory for tmp files. |
15816 | ||
15817 | { | |
7a197a62 | 15818 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
15819 | test -n "$tmp" && test -d "$tmp" |
15820 | } || | |
15821 | { | |
7a197a62 AK |
15822 | tmp=./conf$$-$RANDOM |
15823 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
15824 | } || |
15825 | { | |
ec6a6fbe | 15826 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
15827 | { (exit 1); exit 1; } |
15828 | } | |
15829 | ||
ec6a6fbe AK |
15830 | # Set up the scripts for CONFIG_FILES section. |
15831 | # No need to generate them if there are no CONFIG_FILES. | |
15832 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 15833 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 15834 | |
68f2de6d | 15835 | |
ec6a6fbe AK |
15836 | ac_cr='\r' |
15837 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15838 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15839 | ac_cs_awk_cr='\\r' | |
15840 | else | |
15841 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 15842 | fi |
7a197a62 | 15843 | |
ec6a6fbe | 15844 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 15845 | _ACEOF |
7a197a62 | 15846 | |
8106cdd5 | 15847 | |
ec6a6fbe AK |
15848 | { |
15849 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15850 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15851 | echo "_ACEOF" | |
15852 | } >conf$$subs.sh || | |
15853 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
15854 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
15855 | { (exit 1); exit 1; }; } | |
15856 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
15857 | ac_delim='%!_!# ' |
15858 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
15859 | . ./conf$$subs.sh || |
15860 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
15861 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
15862 | { (exit 1); exit 1; }; } | |
15863 | ||
15864 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15865 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
15866 | break |
15867 | elif $ac_last_try; then | |
ec6a6fbe AK |
15868 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
15869 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
15870 | { (exit 1); exit 1; }; } |
15871 | else | |
15872 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15873 | fi | |
15874 | done | |
ec6a6fbe AK |
15875 | rm -f conf$$subs.sh |
15876 | ||
15877 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15878 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
15879 | _ACEOF | |
15880 | sed -n ' | |
15881 | h | |
15882 | s/^/S["/; s/!.*/"]=/ | |
15883 | p | |
15884 | g | |
15885 | s/^[^!]*!// | |
15886 | :repl | |
15887 | t repl | |
15888 | s/'"$ac_delim"'$// | |
15889 | t delim | |
15890 | :nl | |
15891 | h | |
15892 | s/\(.\{148\}\).*/\1/ | |
15893 | t more1 | |
15894 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15895 | p | |
15896 | n | |
15897 | b repl | |
15898 | :more1 | |
15899 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15900 | p | |
15901 | g | |
15902 | s/.\{148\}// | |
15903 | t nl | |
15904 | :delim | |
15905 | h | |
15906 | s/\(.\{148\}\).*/\1/ | |
15907 | t more2 | |
15908 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15909 | p | |
15910 | b | |
15911 | :more2 | |
15912 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15913 | p | |
15914 | g | |
15915 | s/.\{148\}// | |
15916 | t delim | |
15917 | ' <conf$$subs.awk | sed ' | |
15918 | /^[^""]/{ | |
15919 | N | |
15920 | s/\n// | |
15921 | } | |
15922 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15923 | rm -f conf$$subs.awk | |
15924 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15925 | _ACAWK | |
15926 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15927 | for (key in S) S_is_set[key] = 1 | |
15928 | FS = "\a" | |
7a197a62 | 15929 | |
ec6a6fbe AK |
15930 | } |
15931 | { | |
15932 | line = $ 0 | |
15933 | nfields = split(line, field, "@") | |
15934 | substed = 0 | |
15935 | len = length(field[1]) | |
15936 | for (i = 2; i < nfields; i++) { | |
15937 | key = field[i] | |
15938 | keylen = length(key) | |
15939 | if (S_is_set[key]) { | |
15940 | value = S[key] | |
15941 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15942 | len += length(value) + length(field[++i]) | |
15943 | substed = 1 | |
15944 | } else | |
15945 | len += 1 + keylen | |
15946 | } | |
15947 | ||
15948 | print line | |
15949 | } | |
fddafd51 | 15950 | |
ec6a6fbe | 15951 | _ACAWK |
1995c9ff | 15952 | _ACEOF |
ec6a6fbe AK |
15953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15954 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15955 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15956 | else | |
15957 | cat | |
15958 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15959 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
15960 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
15961 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
15962 | _ACEOF |
15963 | ||
7a197a62 AK |
15964 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
15965 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15966 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15967 | # (actually we leave an empty line to preserve line numbers). | |
15968 | if test "x$srcdir" = x.; then | |
15969 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15970 | s/:*\$(srcdir):*/:/ | |
15971 | s/:*\${srcdir}:*/:/ | |
15972 | s/:*@srcdir@:*/:/ | |
15973 | s/^\([^=]*=[ ]*\):*/\1/ | |
15974 | s/:*$// | |
15975 | s/^[^=]*=[ ]*$// | |
15976 | }' | |
15977 | fi | |
15978 | ||
ec6a6fbe | 15979 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
15980 | fi # test -n "$CONFIG_FILES" |
15981 | ||
ec6a6fbe AK |
15982 | # Set up the scripts for CONFIG_HEADERS section. |
15983 | # No need to generate them if there are no CONFIG_HEADERS. | |
15984 | # This happens for instance with `./config.status Makefile'. | |
15985 | if test -n "$CONFIG_HEADERS"; then | |
15986 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
15987 | BEGIN { | |
15988 | _ACEOF | |
15989 | ||
15990 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
15991 | # here-document in config.status, that substitutes the proper values into | |
15992 | # config.h.in to produce config.h. | |
15993 | ||
15994 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
15995 | # handling of long lines. | |
15996 | ac_delim='%!_!# ' | |
15997 | for ac_last_try in false false :; do | |
15998 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
15999 | if test -z "$ac_t"; then | |
16000 | break | |
16001 | elif $ac_last_try; then | |
16002 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16003 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16004 | { (exit 1); exit 1; }; } | |
16005 | else | |
16006 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16007 | fi | |
16008 | done | |
16009 | ||
16010 | # For the awk script, D is an array of macro values keyed by name, | |
16011 | # likewise P contains macro parameters if any. Preserve backslash | |
16012 | # newline sequences. | |
16013 | ||
16014 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16015 | sed -n ' | |
16016 | s/.\{148\}/&'"$ac_delim"'/g | |
16017 | t rset | |
16018 | :rset | |
16019 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16020 | t def | |
16021 | d | |
16022 | :def | |
16023 | s/\\$// | |
16024 | t bsnl | |
16025 | s/["\\]/\\&/g | |
16026 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16027 | D["\1"]=" \3"/p | |
16028 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16029 | d | |
16030 | :bsnl | |
16031 | s/["\\]/\\&/g | |
16032 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16033 | D["\1"]=" \3\\\\\\n"\\/p | |
16034 | t cont | |
16035 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16036 | t cont | |
16037 | d | |
16038 | :cont | |
16039 | n | |
16040 | s/.\{148\}/&'"$ac_delim"'/g | |
16041 | t clear | |
16042 | :clear | |
16043 | s/\\$// | |
16044 | t bsnlc | |
16045 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16046 | d | |
16047 | :bsnlc | |
16048 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16049 | b cont | |
16050 | ' <confdefs.h | sed ' | |
16051 | s/'"$ac_delim"'/"\\\ | |
16052 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16053 | ||
16054 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16055 | for (key in D) D_is_set[key] = 1 | |
16056 | FS = "\a" | |
16057 | } | |
16058 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16059 | line = \$ 0 | |
16060 | split(line, arg, " ") | |
16061 | if (arg[1] == "#") { | |
16062 | defundef = arg[2] | |
16063 | mac1 = arg[3] | |
16064 | } else { | |
16065 | defundef = substr(arg[1], 2) | |
16066 | mac1 = arg[2] | |
16067 | } | |
16068 | split(mac1, mac2, "(") #) | |
16069 | macro = mac2[1] | |
16070 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16071 | if (D_is_set[macro]) { | |
16072 | # Preserve the white space surrounding the "#". | |
16073 | print prefix "define", macro P[macro] D[macro] | |
16074 | next | |
16075 | } else { | |
16076 | # Replace #undef with comments. This is necessary, for example, | |
16077 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16078 | # on some systems where configure will not decide to define it. | |
16079 | if (defundef == "undef") { | |
16080 | print "/*", prefix defundef, macro, "*/" | |
16081 | next | |
16082 | } | |
16083 | } | |
16084 | } | |
16085 | { print } | |
16086 | _ACAWK | |
16087 | _ACEOF | |
16088 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16089 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16090 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16091 | { (exit 1); exit 1; }; } | |
16092 | fi # test -n "$CONFIG_HEADERS" | |
16093 | ||
7a197a62 | 16094 | |
ec6a6fbe AK |
16095 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16096 | shift | |
16097 | for ac_tag | |
7a197a62 AK |
16098 | do |
16099 | case $ac_tag in | |
16100 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16101 | esac | |
16102 | case $ac_mode$ac_tag in | |
16103 | :[FHL]*:*);; | |
ec6a6fbe AK |
16104 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16105 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16106 | { (exit 1); exit 1; }; };; |
16107 | :[FH]-) ac_tag=-:-;; | |
16108 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16109 | esac | |
16110 | ac_save_IFS=$IFS | |
16111 | IFS=: | |
16112 | set x $ac_tag | |
16113 | IFS=$ac_save_IFS | |
16114 | shift | |
16115 | ac_file=$1 | |
16116 | shift | |
16117 | ||
16118 | case $ac_mode in | |
16119 | :L) ac_source=$1;; | |
16120 | :[FH]) | |
16121 | ac_file_inputs= | |
16122 | for ac_f | |
16123 | do | |
16124 | case $ac_f in | |
16125 | -) ac_f="$tmp/stdin";; | |
16126 | *) # Look for the file first in the build tree, then in the source tree | |
16127 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16128 | # because $ac_f cannot contain `:'. | |
16129 | test -f "$ac_f" || | |
16130 | case $ac_f in | |
16131 | [\\/$]*) false;; | |
16132 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16133 | esac || | |
ec6a6fbe AK |
16134 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16135 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16136 | { (exit 1); exit 1; }; };; |
16137 | esac | |
ec6a6fbe AK |
16138 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16139 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16140 | done |
16141 | ||
16142 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16143 | # use $as_me), people would be surprised to read: | |
16144 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16145 | configure_input='Generated from '` |
16146 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16147 | `' by configure.' | |
7a197a62 AK |
16148 | if test x"$ac_file" != x-; then |
16149 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16150 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16151 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16152 | fi |
ec6a6fbe AK |
16153 | # Neutralize special characters interpreted by sed in replacement strings. |
16154 | case $configure_input in #( | |
16155 | *\&* | *\|* | *\\* ) | |
16156 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16157 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16158 | *) ac_sed_conf_input=$configure_input;; | |
16159 | esac | |
7a197a62 AK |
16160 | |
16161 | case $ac_tag in | |
ec6a6fbe AK |
16162 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16163 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16164 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16165 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16166 | esac |
16167 | ;; | |
80992638 | 16168 | esac |
8106cdd5 | 16169 | |
7a197a62 | 16170 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16171 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16172 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16173 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16174 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16175 | $as_echo X"$ac_file" | |
7a197a62 AK |
16176 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16177 | s//\1/ | |
16178 | q | |
16179 | } | |
16180 | /^X\(\/\/\)[^/].*/{ | |
16181 | s//\1/ | |
16182 | q | |
16183 | } | |
16184 | /^X\(\/\/\)$/{ | |
16185 | s//\1/ | |
16186 | q | |
16187 | } | |
16188 | /^X\(\/\).*/{ | |
16189 | s//\1/ | |
16190 | q | |
16191 | } | |
16192 | s/.*/./; q'` | |
16193 | { as_dir="$ac_dir" | |
16194 | case $as_dir in #( | |
16195 | -*) as_dir=./$as_dir;; | |
16196 | esac | |
16197 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16198 | as_dirs= |
7a197a62 AK |
16199 | while :; do |
16200 | case $as_dir in #( | |
ec6a6fbe | 16201 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16202 | *) as_qdir=$as_dir;; |
16203 | esac | |
16204 | as_dirs="'$as_qdir' $as_dirs" | |
16205 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16206 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16207 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16208 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16209 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16210 | $as_echo X"$as_dir" | |
7a197a62 AK |
16211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16212 | s//\1/ | |
16213 | q | |
16214 | } | |
16215 | /^X\(\/\/\)[^/].*/{ | |
16216 | s//\1/ | |
16217 | q | |
16218 | } | |
16219 | /^X\(\/\/\)$/{ | |
16220 | s//\1/ | |
16221 | q | |
16222 | } | |
16223 | /^X\(\/\).*/{ | |
16224 | s//\1/ | |
16225 | q | |
16226 | } | |
16227 | s/.*/./; q'` | |
16228 | test -d "$as_dir" && break | |
ad6254c5 | 16229 | done |
7a197a62 | 16230 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16231 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16232 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16233 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16234 | ac_builddir=. |
16235 | ||
7a197a62 AK |
16236 | case "$ac_dir" in |
16237 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16238 | *) | |
ec6a6fbe | 16239 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16240 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16241 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16242 | case $ac_top_builddir_sub in |
16243 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16244 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16245 | esac ;; | |
16246 | esac | |
16247 | ac_abs_top_builddir=$ac_pwd | |
16248 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16249 | # for backward compatibility: | |
16250 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16251 | |
16252 | case $srcdir in | |
7a197a62 | 16253 | .) # We are building in place. |
ad6254c5 | 16254 | ac_srcdir=. |
7a197a62 AK |
16255 | ac_top_srcdir=$ac_top_builddir_sub |
16256 | ac_abs_top_srcdir=$ac_pwd ;; | |
16257 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16258 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16259 | ac_top_srcdir=$srcdir |
16260 | ac_abs_top_srcdir=$srcdir ;; | |
16261 | *) # Relative name. | |
16262 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16263 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16264 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16265 | esac |
7a197a62 | 16266 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16267 | |
ad6254c5 | 16268 | |
7a197a62 AK |
16269 | case $ac_mode in |
16270 | :F) | |
16271 | # | |
16272 | # CONFIG_FILE | |
16273 | # | |
ad6254c5 AK |
16274 | |
16275 | case $INSTALL in | |
16276 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16277 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16278 | esac |
fddafd51 ZK |
16279 | ac_MKDIR_P=$MKDIR_P |
16280 | case $MKDIR_P in | |
16281 | [\\/$]* | ?:[\\/]* ) ;; | |
16282 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16283 | esac | |
7a197a62 | 16284 | _ACEOF |
795ca3e5 | 16285 | |
ec6a6fbe | 16286 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16287 | # If the template does not know about datarootdir, expand it. |
16288 | # FIXME: This hack should be removed a few years after 2.60. | |
16289 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16290 | ||
ec6a6fbe AK |
16291 | ac_sed_dataroot=' |
16292 | /datarootdir/ { | |
7a197a62 AK |
16293 | p |
16294 | q | |
16295 | } | |
16296 | /@datadir@/p | |
16297 | /@docdir@/p | |
16298 | /@infodir@/p | |
16299 | /@localedir@/p | |
16300 | /@mandir@/p | |
ec6a6fbe AK |
16301 | ' |
16302 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16303 | *datarootdir*) ac_datarootdir_seen=yes;; |
16304 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16306 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16307 | _ACEOF |
ec6a6fbe | 16308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16309 | ac_datarootdir_hack=' |
16310 | s&@datadir@&$datadir&g | |
16311 | s&@docdir@&$docdir&g | |
16312 | s&@infodir@&$infodir&g | |
16313 | s&@localedir@&$localedir&g | |
16314 | s&@mandir@&$mandir&g | |
16315 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16316 | esac | |
16317 | _ACEOF | |
16318 | ||
16319 | # Neutralize VPATH when `$srcdir' = `.'. | |
16320 | # Shell code in configure.ac might set extrasub. | |
16321 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16322 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16323 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16324 | $extrasub |
16325 | _ACEOF | |
ec6a6fbe | 16326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16327 | :t |
16328 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16329 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16330 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16331 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16332 | s&@srcdir@&$ac_srcdir&;t t |
16333 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16334 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16335 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16336 | s&@builddir@&$ac_builddir&;t t | |
16337 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16338 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16339 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16340 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16341 | $ac_datarootdir_hack |
ec6a6fbe AK |
16342 | " |
16343 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16344 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16345 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16346 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16347 | |
16348 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16349 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16350 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16351 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16352 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16353 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16354 | which seems to be undefined. Please make sure it is defined." >&2;} |
16355 | ||
16356 | rm -f "$tmp/stdin" | |
72b2cb61 | 16357 | case $ac_file in |
ec6a6fbe AK |
16358 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16359 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16360 | esac \ | |
16361 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16362 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16363 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16364 | ;; |
16365 | :H) | |
16366 | # | |
16367 | # CONFIG_HEADER | |
16368 | # | |
72b2cb61 | 16369 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16370 | { |
16371 | $as_echo "/* $configure_input */" \ | |
16372 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16373 | } >"$tmp/config.h" \ | |
16374 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16375 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16376 | { (exit 1); exit 1; }; } | |
16377 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16378 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16379 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16380 | else |
ec6a6fbe AK |
16381 | rm -f "$ac_file" |
16382 | mv "$tmp/config.h" "$ac_file" \ | |
16383 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16384 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16385 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16386 | fi |
16387 | else | |
ec6a6fbe AK |
16388 | $as_echo "/* $configure_input */" \ |
16389 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16390 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16391 | $as_echo "$as_me: error: could not create -" >&2;} | |
16392 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16393 | fi |
7a197a62 AK |
16394 | ;; |
16395 | ||
16396 | ||
16397 | esac | |
16398 | ||
16399 | done # for ac_tag | |
795ca3e5 | 16400 | |
795ca3e5 | 16401 | |
ad6254c5 AK |
16402 | { (exit 0); exit 0; } |
16403 | _ACEOF | |
795ca3e5 | 16404 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16405 | ac_clean_files=$ac_clean_files_save |
16406 | ||
ec6a6fbe AK |
16407 | test $ac_write_fail = 0 || |
16408 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16409 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16410 | { (exit 1); exit 1; }; } | |
16411 | ||
ad6254c5 AK |
16412 | |
16413 | # configure is writing to config.log, and then calls config.status. | |
16414 | # config.status does its own redirection, appending to config.log. | |
16415 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16416 | # by configure, so config.status won't be able to write to it; its | |
16417 | # output is simply discarded. So we exec the FD to /dev/null, | |
16418 | # effectively closing config.log, so it can be properly (re)opened and | |
16419 | # appended to by config.status. When coming back to configure, we | |
16420 | # need to make the FD available again. | |
16421 | if test "$no_create" != yes; then | |
16422 | ac_cs_success=: | |
16423 | ac_config_status_args= | |
16424 | test "$silent" = yes && | |
16425 | ac_config_status_args="$ac_config_status_args --quiet" | |
16426 | exec 5>/dev/null | |
16427 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16428 | exec 5>>config.log | |
16429 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16430 | # would make configure fail if this is the last instruction. | |
16431 | $ac_cs_success || { (exit 1); exit 1; } | |
16432 | fi | |
ec6a6fbe AK |
16433 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16434 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16435 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16436 | fi | |
795ca3e5 | 16437 | |
2dc95e1c AK |
16438 | |
16439 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16440 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16441 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16442 | fi |