]>
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 | |
23b059e7 | 649 | WRITE_INSTALL |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
f7f0854e | 652 | UDEV_PC |
db724a44 | 653 | UDEV_LIBS |
54b362f9 | 654 | TESTING |
ec6a6fbe AK |
655 | STATIC_LINK |
656 | STATICDIR | |
657 | SNAPSHOTS | |
f7f0854e | 658 | SELINUX_PC |
e1b8a236 | 659 | SELINUX_LIBS |
539f4a77 | 660 | READLINE_LIBS |
f30875db | 661 | PTHREAD_LIBS |
ec6a6fbe AK |
662 | POOL |
663 | PKGCONFIG | |
8fea97b7 | 664 | REPLICATORS |
ec6a6fbe AK |
665 | MIRRORS |
666 | LVM_RELEASE_DATE | |
667 | LVM_RELEASE | |
668 | LVM_PATCHLEVEL | |
669 | LVM_MINOR | |
670 | LVM_MAJOR | |
bf456146 | 671 | LVM_LIBAPI |
ec6a6fbe | 672 | LVM_VERSION |
ec6a6fbe AK |
673 | LVM1_FALLBACK |
674 | LVM1 | |
675 | LOCALEDIR | |
676 | LIB_SUFFIX | |
677 | LDDEPS | |
678 | JOBS | |
679 | INTL_PACKAGE | |
680 | INTL | |
ec6a6fbe AK |
681 | HAVE_REALTIME |
682 | HAVE_LIBDL | |
ec6a6fbe AK |
683 | FSADM |
684 | DM_LIB_PATCHLEVEL | |
685 | DM_LIB_VERSION | |
686 | DM_IOCTLS | |
687 | DM_DEVICE_UID | |
688 | DM_DEVICE_MODE | |
689 | DM_DEVICE_GID | |
690 | DM_COMPAT | |
691 | DMEVENTD | |
19a2c6e0 | 692 | DL_LIBS |
ec6a6fbe | 693 | DEVMAPPER |
3399ae32 AK |
694 | DEFAULT_LOCK_DIR |
695 | DEFAULT_CACHE_SUBDIR | |
696 | DEFAULT_BACKUP_SUBDIR | |
697 | DEFAULT_ARCHIVE_SUBDIR | |
698 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
699 | DEBUG |
700 | COPTIMISE_FLAG | |
e2997b73 | 701 | CONFDIR |
ec6a6fbe AK |
702 | CMDLIB |
703 | CLVMD | |
704 | CLUSTER | |
705 | CLDWHOLEARCHIVE | |
706 | CLDNOWHOLEARCHIVE | |
707 | CLDFLAGS | |
708 | BUILD_DMEVENTD | |
66fd4529 | 709 | BUILD_CMIRRORD |
572fefeb | 710 | APPLIB |
ec6a6fbe AK |
711 | MODPROBE_CMD |
712 | MSGFMT | |
713 | LVM2CMD_LIB | |
572fefeb | 714 | LVM2APP_LIB |
54b362f9 AK |
715 | VALGRIND |
716 | RUBY19 | |
fd4728e1 | 717 | GENPNG |
ec6a6fbe AK |
718 | GENHTML |
719 | LCOV | |
90c80887 AK |
720 | SACKPT_LIBS |
721 | SACKPT_CFLAGS | |
a946372e AK |
722 | DLM_LIBS |
723 | DLM_CFLAGS | |
e2997b73 AK |
724 | CPG_LIBS |
725 | CPG_CFLAGS | |
726 | CONFDB_LIBS | |
727 | CONFDB_CFLAGS | |
a946372e AK |
728 | SALCK_LIBS |
729 | SALCK_CFLAGS | |
e2997b73 AK |
730 | QUORUM_LIBS |
731 | QUORUM_CFLAGS | |
a946372e AK |
732 | COROSYNC_LIBS |
733 | COROSYNC_CFLAGS | |
734 | CMAN_LIBS | |
735 | CMAN_CFLAGS | |
736 | GULM_LIBS | |
737 | GULM_CFLAGS | |
738 | CCS_LIBS | |
739 | CCS_CFLAGS | |
740 | PKGCONFIGINIT_LIBS | |
741 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 742 | PKG_CONFIG |
ec6a6fbe AK |
743 | POW_LIB |
744 | LIBOBJS | |
745 | ALLOCA | |
746 | CSCOPE_CMD | |
747 | CFLOW_CMD | |
748 | RANLIB | |
749 | MKDIR_P | |
750 | SET_MAKE | |
751 | LN_S | |
752 | INSTALL_DATA | |
753 | INSTALL_SCRIPT | |
754 | INSTALL_PROGRAM | |
755 | EGREP | |
756 | GREP | |
757 | CPP | |
758 | OBJEXT | |
759 | EXEEXT | |
760 | ac_ct_CC | |
761 | CPPFLAGS | |
762 | LDFLAGS | |
763 | CFLAGS | |
764 | CC | |
765 | AWK | |
766 | SED | |
767 | target_os | |
768 | target_vendor | |
769 | target_cpu | |
770 | target | |
771 | host_os | |
772 | host_vendor | |
773 | host_cpu | |
774 | host | |
775 | build_os | |
776 | build_vendor | |
777 | build_cpu | |
778 | build | |
779 | target_alias | |
780 | host_alias | |
781 | build_alias | |
782 | LIBS | |
783 | ECHO_T | |
784 | ECHO_N | |
785 | ECHO_C | |
786 | DEFS | |
787 | mandir | |
788 | localedir | |
789 | libdir | |
790 | psdir | |
791 | pdfdir | |
792 | dvidir | |
793 | htmldir | |
794 | infodir | |
795 | docdir | |
796 | oldincludedir | |
797 | includedir | |
798 | localstatedir | |
799 | sharedstatedir | |
800 | sysconfdir | |
801 | datadir | |
802 | datarootdir | |
803 | libexecdir | |
804 | sbindir | |
805 | bindir | |
806 | program_transform_name | |
807 | prefix | |
808 | exec_prefix | |
809 | PACKAGE_BUGREPORT | |
810 | PACKAGE_STRING | |
811 | PACKAGE_VERSION | |
812 | PACKAGE_TARNAME | |
813 | PACKAGE_NAME | |
814 | PATH_SEPARATOR | |
815 | SHELL' | |
ad6254c5 | 816 | ac_subst_files='' |
ec6a6fbe AK |
817 | ac_user_opts=' |
818 | enable_option_checking | |
819 | enable_static_link | |
820 | with_user | |
821 | with_group | |
822 | with_device_uid | |
823 | with_device_gid | |
824 | with_device_mode | |
825 | enable_lvm1_fallback | |
826 | with_lvm1 | |
827 | with_pool | |
828 | with_cluster | |
829 | with_snapshots | |
830 | with_mirrors | |
8fea97b7 | 831 | with_replicators |
ec6a6fbe AK |
832 | enable_readline |
833 | enable_realtime | |
834 | with_clvmd | |
8c4e8a18 | 835 | with_clvmd_pidfile |
66fd4529 AK |
836 | enable_cmirrord |
837 | with_cmirrord_pidfile | |
ec6a6fbe AK |
838 | enable_debug |
839 | with_optimisation | |
840 | enable_profiling | |
54b362f9 | 841 | enable_testing |
ec6a6fbe | 842 | enable_devmapper |
a5f46f6a AK |
843 | enable_udev_sync |
844 | enable_udev_rules | |
ec6a6fbe | 845 | enable_compat |
95eaa683 | 846 | enable_units_compat |
ec6a6fbe AK |
847 | enable_ioctl |
848 | enable_o_direct | |
572fefeb | 849 | enable_applib |
ec6a6fbe AK |
850 | enable_cmdlib |
851 | enable_pkgconfig | |
23b059e7 | 852 | enable_write_install |
ec6a6fbe AK |
853 | enable_fsadm |
854 | enable_dmeventd | |
855 | enable_selinux | |
856 | enable_nls | |
857 | with_localedir | |
858 | with_confdir | |
859 | with_staticdir | |
860 | with_usrlibdir | |
861 | with_usrsbindir | |
a5f46f6a | 862 | with_udev_prefix |
78ce7acc | 863 | with_udevdir |
ec6a6fbe AK |
864 | with_dmeventd_pidfile |
865 | with_dmeventd_path | |
8bae0a1e | 866 | with_default_run_dir |
3399ae32 AK |
867 | with_default_system_dir |
868 | with_default_archive_subdir | |
869 | with_default_backup_subdir | |
870 | with_default_cache_subdir | |
871 | with_default_locking_dir | |
ec6a6fbe AK |
872 | with_interface |
873 | ' | |
7a197a62 AK |
874 | ac_precious_vars='build_alias |
875 | host_alias | |
876 | target_alias | |
877 | CC | |
878 | CFLAGS | |
879 | LDFLAGS | |
25fbec5b | 880 | LIBS |
7a197a62 | 881 | CPPFLAGS |
e2997b73 AK |
882 | CPP |
883 | PKG_CONFIG | |
a946372e AK |
884 | PKGCONFIGINIT_CFLAGS |
885 | PKGCONFIGINIT_LIBS | |
886 | CCS_CFLAGS | |
887 | CCS_LIBS | |
888 | GULM_CFLAGS | |
889 | GULM_LIBS | |
890 | CMAN_CFLAGS | |
891 | CMAN_LIBS | |
892 | COROSYNC_CFLAGS | |
893 | COROSYNC_LIBS | |
e2997b73 AK |
894 | QUORUM_CFLAGS |
895 | QUORUM_LIBS | |
a946372e AK |
896 | SALCK_CFLAGS |
897 | SALCK_LIBS | |
e2997b73 AK |
898 | CONFDB_CFLAGS |
899 | CONFDB_LIBS | |
900 | CPG_CFLAGS | |
a946372e AK |
901 | CPG_LIBS |
902 | DLM_CFLAGS | |
90c80887 AK |
903 | DLM_LIBS |
904 | SACKPT_CFLAGS | |
905 | SACKPT_LIBS' | |
7a197a62 | 906 | |
795ca3e5 AK |
907 | |
908 | # Initialize some variables set by options. | |
ad6254c5 AK |
909 | ac_init_help= |
910 | ac_init_version=false | |
ec6a6fbe AK |
911 | ac_unrecognized_opts= |
912 | ac_unrecognized_sep= | |
795ca3e5 AK |
913 | # The variables have the same names as the options, with |
914 | # dashes changed to underlines. | |
ad6254c5 | 915 | cache_file=/dev/null |
795ca3e5 | 916 | exec_prefix=NONE |
795ca3e5 | 917 | no_create= |
795ca3e5 AK |
918 | no_recursion= |
919 | prefix=NONE | |
920 | program_prefix=NONE | |
921 | program_suffix=NONE | |
922 | program_transform_name=s,x,x, | |
923 | silent= | |
924 | site= | |
925 | srcdir= | |
795ca3e5 AK |
926 | verbose= |
927 | x_includes=NONE | |
928 | x_libraries=NONE | |
ad6254c5 AK |
929 | |
930 | # Installation directory options. | |
931 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
932 | # and all the variables that are supposed to be based on exec_prefix | |
933 | # by default will actually change. | |
934 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 935 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
936 | bindir='${exec_prefix}/bin' |
937 | sbindir='${exec_prefix}/sbin' | |
938 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
939 | datarootdir='${prefix}/share' |
940 | datadir='${datarootdir}' | |
795ca3e5 AK |
941 | sysconfdir='${prefix}/etc' |
942 | sharedstatedir='${prefix}/com' | |
943 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
944 | includedir='${prefix}/include' |
945 | oldincludedir='/usr/include' | |
7a197a62 AK |
946 | docdir='${datarootdir}/doc/${PACKAGE}' |
947 | infodir='${datarootdir}/info' | |
948 | htmldir='${docdir}' | |
949 | dvidir='${docdir}' | |
950 | pdfdir='${docdir}' | |
951 | psdir='${docdir}' | |
952 | libdir='${exec_prefix}/lib' | |
953 | localedir='${datarootdir}/locale' | |
954 | mandir='${datarootdir}/man' | |
795ca3e5 | 955 | |
795ca3e5 | 956 | ac_prev= |
7a197a62 | 957 | ac_dashdash= |
795ca3e5 AK |
958 | for ac_option |
959 | do | |
795ca3e5 AK |
960 | # If the previous option needs an argument, assign it. |
961 | if test -n "$ac_prev"; then | |
7a197a62 | 962 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
963 | ac_prev= |
964 | continue | |
965 | fi | |
966 | ||
7a197a62 AK |
967 | case $ac_option in |
968 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
969 | *) ac_optarg=yes ;; | |
970 | esac | |
795ca3e5 AK |
971 | |
972 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
973 | ||
7a197a62 AK |
974 | case $ac_dashdash$ac_option in |
975 | --) | |
976 | ac_dashdash=yes ;; | |
795ca3e5 AK |
977 | |
978 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
979 | ac_prev=bindir ;; | |
980 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 981 | bindir=$ac_optarg ;; |
795ca3e5 AK |
982 | |
983 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 984 | ac_prev=build_alias ;; |
795ca3e5 | 985 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 986 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
987 | |
988 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
989 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
990 | ac_prev=cache_file ;; | |
991 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
992 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
993 | cache_file=$ac_optarg ;; |
994 | ||
995 | --config-cache | -C) | |
996 | cache_file=config.cache ;; | |
795ca3e5 | 997 | |
7a197a62 | 998 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 999 | ac_prev=datadir ;; |
7a197a62 | 1000 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1001 | datadir=$ac_optarg ;; |
795ca3e5 | 1002 | |
7a197a62 AK |
1003 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1004 | | --dataroo | --dataro | --datar) | |
1005 | ac_prev=datarootdir ;; | |
1006 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1007 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1008 | datarootdir=$ac_optarg ;; | |
1009 | ||
795ca3e5 | 1010 | -disable-* | --disable-*) |
ec6a6fbe | 1011 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1012 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1014 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1015 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1016 | ac_useropt_orig=$ac_useropt |
1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1018 | case $ac_user_opts in | |
1019 | *" | |
1020 | "enable_$ac_useropt" | |
1021 | "*) ;; | |
1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1023 | ac_unrecognized_sep=', ';; | |
1024 | esac | |
1025 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1026 | |
1027 | -docdir | --docdir | --docdi | --doc | --do) | |
1028 | ac_prev=docdir ;; | |
1029 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1030 | docdir=$ac_optarg ;; | |
1031 | ||
1032 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1033 | ac_prev=dvidir ;; | |
1034 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1035 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1036 | |
1037 | -enable-* | --enable-*) | |
ec6a6fbe | 1038 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1039 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1040 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1041 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1042 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1043 | ac_useropt_orig=$ac_useropt |
1044 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1045 | case $ac_user_opts in | |
1046 | *" | |
1047 | "enable_$ac_useropt" | |
1048 | "*) ;; | |
1049 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1050 | ac_unrecognized_sep=', ';; | |
1051 | esac | |
1052 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1053 | |
1054 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1055 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1056 | | --exec | --exe | --ex) | |
1057 | ac_prev=exec_prefix ;; | |
1058 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1059 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1060 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1061 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1062 | |
1063 | -gas | --gas | --ga | --g) | |
1064 | # Obsolete; use --with-gas. | |
1065 | with_gas=yes ;; | |
1066 | ||
ad6254c5 AK |
1067 | -help | --help | --hel | --he | -h) |
1068 | ac_init_help=long ;; | |
1069 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1070 | ac_init_help=recursive ;; | |
1071 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1072 | ac_init_help=short ;; | |
795ca3e5 AK |
1073 | |
1074 | -host | --host | --hos | --ho) | |
ad6254c5 | 1075 | ac_prev=host_alias ;; |
795ca3e5 | 1076 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1077 | host_alias=$ac_optarg ;; |
795ca3e5 | 1078 | |
7a197a62 AK |
1079 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1080 | ac_prev=htmldir ;; | |
1081 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1082 | | --ht=*) | |
1083 | htmldir=$ac_optarg ;; | |
1084 | ||
795ca3e5 AK |
1085 | -includedir | --includedir | --includedi | --included | --include \ |
1086 | | --includ | --inclu | --incl | --inc) | |
1087 | ac_prev=includedir ;; | |
1088 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1089 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1090 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1091 | |
1092 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1093 | ac_prev=infodir ;; | |
1094 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1095 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -libdir | --libdir | --libdi | --libd) | |
1098 | ac_prev=libdir ;; | |
1099 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1100 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1101 | |
1102 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1103 | | --libexe | --libex | --libe) | |
1104 | ac_prev=libexecdir ;; | |
1105 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1106 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1107 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1108 | |
7a197a62 AK |
1109 | -localedir | --localedir | --localedi | --localed | --locale) |
1110 | ac_prev=localedir ;; | |
1111 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1112 | localedir=$ac_optarg ;; | |
1113 | ||
795ca3e5 | 1114 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1115 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1116 | ac_prev=localstatedir ;; |
1117 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1118 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1119 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1120 | |
1121 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1122 | ac_prev=mandir ;; | |
1123 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1124 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1125 | |
1126 | -nfp | --nfp | --nf) | |
1127 | # Obsolete; use --without-fp. | |
1128 | with_fp=no ;; | |
1129 | ||
1130 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1131 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1132 | no_create=yes ;; |
1133 | ||
1134 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1135 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1136 | no_recursion=yes ;; | |
1137 | ||
1138 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1139 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1140 | | --oldin | --oldi | --old | --ol | --o) | |
1141 | ac_prev=oldincludedir ;; | |
1142 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1143 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1144 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1145 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1146 | |
1147 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1148 | ac_prev=prefix ;; | |
1149 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1150 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1151 | |
1152 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1153 | | --program-pre | --program-pr | --program-p) | |
1154 | ac_prev=program_prefix ;; | |
1155 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1156 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1157 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1158 | |
1159 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1160 | | --program-suf | --program-su | --program-s) | |
1161 | ac_prev=program_suffix ;; | |
1162 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1163 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1164 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1165 | |
1166 | -program-transform-name | --program-transform-name \ | |
1167 | | --program-transform-nam | --program-transform-na \ | |
1168 | | --program-transform-n | --program-transform- \ | |
1169 | | --program-transform | --program-transfor \ | |
1170 | | --program-transfo | --program-transf \ | |
1171 | | --program-trans | --program-tran \ | |
1172 | | --progr-tra | --program-tr | --program-t) | |
1173 | ac_prev=program_transform_name ;; | |
1174 | -program-transform-name=* | --program-transform-name=* \ | |
1175 | | --program-transform-nam=* | --program-transform-na=* \ | |
1176 | | --program-transform-n=* | --program-transform-=* \ | |
1177 | | --program-transform=* | --program-transfor=* \ | |
1178 | | --program-transfo=* | --program-transf=* \ | |
1179 | | --program-trans=* | --program-tran=* \ | |
1180 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1181 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1182 | |
7a197a62 AK |
1183 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1184 | ac_prev=pdfdir ;; | |
1185 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1186 | pdfdir=$ac_optarg ;; | |
1187 | ||
1188 | -psdir | --psdir | --psdi | --psd | --ps) | |
1189 | ac_prev=psdir ;; | |
1190 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1191 | psdir=$ac_optarg ;; | |
1192 | ||
795ca3e5 AK |
1193 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1194 | | -silent | --silent | --silen | --sile | --sil) | |
1195 | silent=yes ;; | |
1196 | ||
1197 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1198 | ac_prev=sbindir ;; | |
1199 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1200 | | --sbi=* | --sb=*) | |
ad6254c5 | 1201 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1202 | |
1203 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1204 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1205 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1206 | | --sha | --sh) | |
1207 | ac_prev=sharedstatedir ;; | |
1208 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1209 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1210 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1211 | | --sha=* | --sh=*) | |
ad6254c5 | 1212 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1213 | |
1214 | -site | --site | --sit) | |
1215 | ac_prev=site ;; | |
1216 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1217 | site=$ac_optarg ;; |
795ca3e5 AK |
1218 | |
1219 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1220 | ac_prev=srcdir ;; | |
1221 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1222 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1223 | |
1224 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1225 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1226 | ac_prev=sysconfdir ;; | |
1227 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1228 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1229 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1230 | |
1231 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1232 | ac_prev=target_alias ;; |
795ca3e5 | 1233 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1234 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1235 | |
1236 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1237 | verbose=yes ;; | |
1238 | ||
ad6254c5 AK |
1239 | -version | --version | --versio | --versi | --vers | -V) |
1240 | ac_init_version=: ;; | |
795ca3e5 AK |
1241 | |
1242 | -with-* | --with-*) | |
ec6a6fbe | 1243 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1244 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1245 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1246 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1247 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1248 | ac_useropt_orig=$ac_useropt |
1249 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1250 | case $ac_user_opts in | |
1251 | *" | |
1252 | "with_$ac_useropt" | |
1253 | "*) ;; | |
1254 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1255 | ac_unrecognized_sep=', ';; | |
1256 | esac | |
1257 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1258 | |
1259 | -without-* | --without-*) | |
ec6a6fbe | 1260 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1261 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1262 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1263 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1264 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1265 | ac_useropt_orig=$ac_useropt |
1266 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1267 | case $ac_user_opts in | |
1268 | *" | |
1269 | "with_$ac_useropt" | |
1270 | "*) ;; | |
1271 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1272 | ac_unrecognized_sep=', ';; | |
1273 | esac | |
1274 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1275 | |
1276 | --x) | |
1277 | # Obsolete; use --with-x. | |
1278 | with_x=yes ;; | |
1279 | ||
1280 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1281 | | --x-incl | --x-inc | --x-in | --x-i) | |
1282 | ac_prev=x_includes ;; | |
1283 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1284 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1285 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1286 | |
1287 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1288 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1289 | ac_prev=x_libraries ;; | |
1290 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1291 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1292 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1293 | |
ec6a6fbe | 1294 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1295 | Try \`$0 --help' for more information." >&2 |
1296 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1297 | ;; |
1298 | ||
ad6254c5 AK |
1299 | *=*) |
1300 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1301 | # Reject names that are not valid shell variable names. | |
1302 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1303 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1304 | { (exit 1); exit 1; }; } |
7a197a62 | 1305 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1306 | export $ac_envvar ;; |
1307 | ||
795ca3e5 | 1308 | *) |
ad6254c5 | 1309 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1310 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1311 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1312 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1313 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1314 | ;; |
1315 | ||
1316 | esac | |
1317 | done | |
1318 | ||
1319 | if test -n "$ac_prev"; then | |
ad6254c5 | 1320 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1321 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1322 | { (exit 1); exit 1; }; } |
795ca3e5 | 1323 | fi |
795ca3e5 | 1324 | |
ec6a6fbe AK |
1325 | if test -n "$ac_unrecognized_opts"; then |
1326 | case $enable_option_checking in | |
1327 | no) ;; | |
1328 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1329 | { (exit 1); exit 1; }; } ;; | |
1330 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1331 | esac | |
1332 | fi | |
1333 | ||
1334 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1335 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1336 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1337 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1338 | libdir localedir mandir | |
795ca3e5 | 1339 | do |
7a197a62 | 1340 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1341 | # Remove trailing slashes. |
1342 | case $ac_val in | |
1343 | */ ) | |
1344 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1345 | eval $ac_var=\$ac_val;; | |
1346 | esac | |
1347 | # Be sure to have absolute directory names. | |
ad6254c5 | 1348 | case $ac_val in |
7a197a62 AK |
1349 | [\\/$]* | ?:[\\/]* ) continue;; |
1350 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1351 | esac |
ec6a6fbe | 1352 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1353 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1354 | done |
1355 | ||
ad6254c5 AK |
1356 | # There might be people who depend on the old broken behavior: `$host' |
1357 | # used to hold the argument of --host etc. | |
1358 | # FIXME: To remove some day. | |
1359 | build=$build_alias | |
1360 | host=$host_alias | |
1361 | target=$target_alias | |
1362 | ||
1363 | # FIXME: To remove some day. | |
1364 | if test "x$host_alias" != x; then | |
1365 | if test "x$build_alias" = x; then | |
1366 | cross_compiling=maybe | |
ec6a6fbe | 1367 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1368 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1369 | elif test "x$build_alias" != "x$host_alias"; then | |
1370 | cross_compiling=yes | |
1371 | fi | |
1372 | fi | |
8106cdd5 | 1373 | |
ad6254c5 AK |
1374 | ac_tool_prefix= |
1375 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1376 | ||
1377 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1378 | |
795ca3e5 | 1379 | |
7a197a62 AK |
1380 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1381 | ac_ls_di=`ls -di .` && | |
1382 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1383 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1384 | { (exit 1); exit 1; }; } |
1385 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1386 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1387 | { (exit 1); exit 1; }; } |
1388 | ||
1389 | ||
795ca3e5 AK |
1390 | # Find the source files, if location was not specified. |
1391 | if test -z "$srcdir"; then | |
1392 | ac_srcdir_defaulted=yes | |
7a197a62 | 1393 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1394 | ac_confdir=`$as_dirname -- "$as_myself" || |
1395 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1396 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1397 | X"$as_myself" : 'X\(//\)$' \| \ | |
1398 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1399 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1401 | s//\1/ | |
1402 | q | |
1403 | } | |
1404 | /^X\(\/\/\)[^/].*/{ | |
1405 | s//\1/ | |
1406 | q | |
1407 | } | |
1408 | /^X\(\/\/\)$/{ | |
1409 | s//\1/ | |
1410 | q | |
1411 | } | |
1412 | /^X\(\/\).*/{ | |
1413 | s//\1/ | |
1414 | q | |
1415 | } | |
1416 | s/.*/./; q'` | |
795ca3e5 | 1417 | srcdir=$ac_confdir |
7a197a62 | 1418 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1419 | srcdir=.. |
1420 | fi | |
1421 | else | |
1422 | ac_srcdir_defaulted=no | |
1423 | fi | |
7a197a62 AK |
1424 | if test ! -r "$srcdir/$ac_unique_file"; then |
1425 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1426 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1427 | { (exit 1); exit 1; }; } |
795ca3e5 | 1428 | fi |
7a197a62 AK |
1429 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1430 | ac_abs_confdir=`( | |
ec6a6fbe | 1431 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1432 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1433 | pwd)` |
1434 | # When building in place, set srcdir=. | |
1435 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1436 | srcdir=. | |
1437 | fi | |
1438 | # Remove unnecessary trailing slashes from srcdir. | |
1439 | # Double slashes in file names in object file debugging info | |
1440 | # mess up M-x gdb in Emacs. | |
1441 | case $srcdir in | |
1442 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1443 | esac | |
1444 | for ac_var in $ac_precious_vars; do | |
1445 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1446 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1447 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1448 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1449 | done | |
ad6254c5 AK |
1450 | |
1451 | # | |
1452 | # Report the --help message. | |
1453 | # | |
1454 | if test "$ac_init_help" = "long"; then | |
1455 | # Omit some internal or obsolete options to make the list less imposing. | |
1456 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1457 | cat <<_ACEOF | |
1458 | \`configure' configures this package to adapt to many kinds of systems. | |
1459 | ||
1460 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1461 | ||
1462 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1463 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1464 | ||
1465 | Defaults for the options are specified in brackets. | |
1466 | ||
1467 | Configuration: | |
1468 | -h, --help display this help and exit | |
1469 | --help=short display options specific to this package | |
1470 | --help=recursive display the short help of all the included packages | |
1471 | -V, --version display version information and exit | |
1472 | -q, --quiet, --silent do not print \`checking...' messages | |
1473 | --cache-file=FILE cache test results in FILE [disabled] | |
1474 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1475 | -n, --no-create do not create output files | |
1476 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1477 | ||
ad6254c5 AK |
1478 | Installation directories: |
1479 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1480 | [$ac_default_prefix] |
ad6254c5 | 1481 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1482 | [PREFIX] |
ad6254c5 AK |
1483 | |
1484 | By default, \`make install' will install all the files in | |
1485 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1486 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1487 | for instance \`--prefix=\$HOME'. | |
1488 | ||
1489 | For better control, use the options below. | |
1490 | ||
1491 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1492 | --bindir=DIR user executables [EPREFIX/bin] |
1493 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1494 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1495 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1496 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1497 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1498 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1499 | --includedir=DIR C header files [PREFIX/include] | |
1500 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1501 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1502 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1503 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1504 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1505 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1506 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1507 | --htmldir=DIR html documentation [DOCDIR] | |
1508 | --dvidir=DIR dvi documentation [DOCDIR] | |
1509 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1510 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1511 | _ACEOF |
1512 | ||
1513 | cat <<\_ACEOF | |
1514 | ||
1515 | System types: | |
1516 | --build=BUILD configure for building on BUILD [guessed] | |
1517 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1518 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1519 | _ACEOF | |
1520 | fi | |
1521 | ||
1522 | if test -n "$ac_init_help"; then | |
1523 | ||
1524 | cat <<\_ACEOF | |
1525 | ||
1526 | Optional Features: | |
ec6a6fbe | 1527 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1528 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1529 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1530 | --enable-static_link use this to link the tools to their libraries |
1531 | statically (default is dynamic linking | |
1532 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1533 | device-mapper is missing from the kernel |
71082be4 ZK |
1534 | --disable-readline disable readline support |
1535 | --enable-realtime enable realtime clock support | |
1536 | --enable-cmirrord enable the cluster mirror log daemon | |
1537 | --enable-debug enable debugging | |
1538 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1539 | --enable-testing enable testing targets in the makefile |
71082be4 ZK |
1540 | --disable-devmapper disable LVM2 device-mapper interaction |
1541 | --enable-udev_sync enable synchronisation with udev processing | |
1542 | --enable-udev_rules install rule files needed for udev synchronisation | |
1543 | --enable-compat enable support for old device-mapper versions | |
1544 | --enable-units-compat enable output compatibility with old versions that | |
1545 | that do not use KiB-style unit suffixes | |
1546 | --disable-driver disable calls to device-mapper in the kernel | |
1547 | --disable-o_direct disable O_DIRECT | |
1548 | --enable-applib build application library | |
1549 | --enable-cmdlib build shared command library | |
1550 | --enable-pkgconfig install pkgconfig support | |
1551 | --enable-write_install install user writable files | |
1552 | --disable-fsadm disable fsadm | |
1553 | --enable-dmeventd enable the device-mapper event daemon | |
1554 | --disable-selinux disable selinux support | |
1555 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1556 | |
1557 | Optional Packages: | |
1558 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1559 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
71082be4 ZK |
1560 | --with-user=USER set the owner of installed files [USER=] |
1561 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1562 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1563 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1564 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
ad6254c5 | 1565 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
71082be4 | 1566 | [TYPE=internal] |
ad6254c5 | 1567 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
71082be4 ZK |
1568 | [TYPE=internal] |
1569 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none | |
1570 | [TYPE=internal] | |
1571 | --with-snapshots=TYPE snapshot support: internal/shared/none | |
1572 | [TYPE=internal] | |
1573 | --with-mirrors=TYPE mirror support: internal/shared/none | |
1574 | [TYPE=internal] | |
1575 | --with-replicators=TYPE replicator support: internal/shared/none | |
1576 | [TYPE=none] | |
1577 | --with-clvmd=TYPE build cluster LVM Daemon | |
8c222979 | 1578 | The following cluster manager combinations are valid: |
a946372e AK |
1579 | * cman,gulm (RHEL4 or equivalent) |
1580 | * cman (RHEL5 or equivalent) | |
1581 | * cman,corosync,openais (or selection of them) | |
1091650a | 1582 | * singlenode (localhost only) |
a946372e AK |
1583 | * all (autodetect) |
1584 | * none (disable build) | |
71082be4 | 1585 | [TYPE=none] |
8c4e8a18 FDN |
1586 | --with-clvmd-pidfile=PATH |
1587 | clvmd pidfile [/var/run/clvmd.pid] | |
71082be4 ZK |
1588 | --with-cmirrord-pidfile=PATH |
1589 | cmirrord pidfile [/var/run/cmirrord.pid] | |
d0191583 | 1590 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
71082be4 ZK |
1591 | --with-localedir=DIR translation files in DIR [PREFIX/share/locale] |
1592 | --with-confdir=DIR configuration files in DIR [/etc] | |
1593 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1594 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1595 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1596 | --with-udev-prefix=UPREFIX | |
1597 | install udev rule files in UPREFIX [EPREFIX] | |
78ce7acc | 1598 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
71082be4 ZK |
1599 | --with-dmeventd-pidfile=PATH |
1600 | dmeventd pidfile [/var/run/dmeventd.pid] | |
1601 | --with-dmeventd-path=PATH | |
1602 | dmeventd path [EPREFIX/sbin/dmeventd] | |
8bae0a1e | 1603 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 ZK |
1604 | --with-default-system-dir=DIR |
1605 | default LVM system directory [/etc/lvm] | |
1606 | --with-default-archive-subdir=SUBDIR | |
1607 | default metadata archive subdir [archive] | |
1608 | --with-default-backup-subdir=SUBDIR | |
1609 | default metadata backup subdir [backup] | |
1610 | --with-default-cache-subdir=SUBDIR | |
1611 | default metadata cache subdir [cache] | |
1612 | --with-default-locking-dir=DIR | |
1613 | default locking directory [/var/lock/lvm] | |
1614 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1615 | |
1616 | Some influential environment variables: | |
1617 | CC C compiler command | |
1618 | CFLAGS C compiler flags | |
1619 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1620 | nonstandard directory <lib dir> | |
25fbec5b | 1621 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1622 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1623 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1624 | CPP C preprocessor |
e2997b73 | 1625 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1626 | PKGCONFIGINIT_CFLAGS |
1627 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1628 | PKGCONFIGINIT_LIBS | |
1629 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1630 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1631 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1632 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1633 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1634 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1635 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1636 | COROSYNC_CFLAGS | |
1637 | C compiler flags for COROSYNC, overriding pkg-config | |
1638 | COROSYNC_LIBS | |
1639 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1640 | QUORUM_CFLAGS |
1641 | C compiler flags for QUORUM, overriding pkg-config | |
1642 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1643 | SALCK_CFLAGS |
1644 | C compiler flags for SALCK, overriding pkg-config | |
1645 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1646 | CONFDB_CFLAGS |
1647 | C compiler flags for CONFDB, overriding pkg-config | |
1648 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1649 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1650 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1651 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1652 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1653 | SACKPT_CFLAGS |
1654 | C compiler flags for SACKPT, overriding pkg-config | |
1655 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1656 | |
1657 | Use these variables to override the choices made by `configure' or to help | |
1658 | it to find libraries and programs with nonstandard names/locations. | |
1659 | ||
1660 | _ACEOF | |
7a197a62 | 1661 | ac_status=$? |
ad6254c5 AK |
1662 | fi |
1663 | ||
1664 | if test "$ac_init_help" = "recursive"; then | |
1665 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1666 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1667 | test -d "$ac_dir" || |
1668 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1669 | continue | |
ad6254c5 AK |
1670 | ac_builddir=. |
1671 | ||
7a197a62 AK |
1672 | case "$ac_dir" in |
1673 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1674 | *) | |
ec6a6fbe | 1675 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1676 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1677 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1678 | case $ac_top_builddir_sub in |
1679 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1680 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1681 | esac ;; | |
1682 | esac | |
1683 | ac_abs_top_builddir=$ac_pwd | |
1684 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1685 | # for backward compatibility: | |
1686 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1687 | |
1688 | case $srcdir in | |
7a197a62 | 1689 | .) # We are building in place. |
ad6254c5 | 1690 | ac_srcdir=. |
7a197a62 AK |
1691 | ac_top_srcdir=$ac_top_builddir_sub |
1692 | ac_abs_top_srcdir=$ac_pwd ;; | |
1693 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1694 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1695 | ac_top_srcdir=$srcdir |
1696 | ac_abs_top_srcdir=$srcdir ;; | |
1697 | *) # Relative name. | |
1698 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1699 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1700 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1701 | esac |
7a197a62 AK |
1702 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1703 | ||
1704 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1705 | # Check for guested configure. | |
1706 | if test -f "$ac_srcdir/configure.gnu"; then | |
1707 | echo && | |
1708 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1709 | elif test -f "$ac_srcdir/configure"; then | |
1710 | echo && | |
1711 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1712 | else |
ec6a6fbe | 1713 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1714 | fi || ac_status=$? |
1715 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1716 | done |
1717 | fi | |
1718 | ||
7a197a62 | 1719 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1720 | if $ac_init_version; then |
1721 | cat <<\_ACEOF | |
7a197a62 | 1722 | configure |
ec6a6fbe | 1723 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1724 | |
7a197a62 | 1725 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1726 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1727 | This configure script is free software; the Free Software Foundation |
1728 | gives unlimited permission to copy, distribute and modify it. | |
1729 | _ACEOF | |
7a197a62 | 1730 | exit |
ad6254c5 | 1731 | fi |
7a197a62 | 1732 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1733 | This file contains any messages produced by compilers while |
1734 | running configure, to aid debugging if configure makes a mistake. | |
1735 | ||
1736 | It was created by $as_me, which was | |
ec6a6fbe | 1737 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1738 | |
1739 | $ $0 $@ | |
1740 | ||
1741 | _ACEOF | |
7a197a62 | 1742 | exec 5>>config.log |
ad6254c5 AK |
1743 | { |
1744 | cat <<_ASUNAME | |
1745 | ## --------- ## | |
1746 | ## Platform. ## | |
1747 | ## --------- ## | |
1748 | ||
1749 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1750 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1751 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1752 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1753 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1754 | ||
1755 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1756 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1757 | ||
1758 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1759 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1760 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1761 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1762 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1763 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1764 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1765 | ||
1766 | _ASUNAME | |
1767 | ||
1768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1769 | for as_dir in $PATH | |
1770 | do | |
1771 | IFS=$as_save_IFS | |
1772 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1773 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1774 | done |
7a197a62 | 1775 | IFS=$as_save_IFS |
ad6254c5 AK |
1776 | |
1777 | } >&5 | |
1778 | ||
1779 | cat >&5 <<_ACEOF | |
1780 | ||
1781 | ||
1782 | ## ----------- ## | |
1783 | ## Core tests. ## | |
1784 | ## ----------- ## | |
1785 | ||
1786 | _ACEOF | |
1787 | ||
1788 | ||
1789 | # Keep a trace of the command line. | |
1790 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1791 | # Strip out --silent because we don't want to record it for future runs. | |
1792 | # Also quote any args containing shell meta-characters. | |
1793 | # Make two passes to allow for proper duplicate-argument suppression. | |
1794 | ac_configure_args= | |
1795 | ac_configure_args0= | |
1796 | ac_configure_args1= | |
ad6254c5 AK |
1797 | ac_must_keep_next=false |
1798 | for ac_pass in 1 2 | |
1799 | do | |
1800 | for ac_arg | |
1801 | do | |
1802 | case $ac_arg in | |
1803 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1804 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1805 | | -silent | --silent | --silen | --sile | --sil) | |
1806 | continue ;; | |
7a197a62 | 1807 | *\'*) |
ec6a6fbe | 1808 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1809 | esac |
1810 | case $ac_pass in | |
1811 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1812 | 2) | |
1813 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1814 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1815 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1816 | else |
8a2fc586 AK |
1817 | case $ac_arg in |
1818 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1819 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1820 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1821 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1822 | case "$ac_configure_args0 " in | |
1823 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1824 | esac | |
1825 | ;; | |
1826 | -* ) ac_must_keep_next=true ;; | |
1827 | esac | |
ad6254c5 | 1828 | fi |
7a197a62 | 1829 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1830 | ;; |
1831 | esac | |
1832 | done | |
1833 | done | |
1834 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1835 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1836 | ||
1837 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1838 | # config.log. We remove comments because anyway the quotes in there | |
1839 | # would cause problems or look ugly. | |
7a197a62 AK |
1840 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1841 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1842 | trap 'exit_status=$? |
1843 | # Save into config.log some information that might help in debugging. | |
1844 | { | |
1845 | echo | |
1846 | ||
1847 | cat <<\_ASBOX | |
1848 | ## ---------------- ## | |
1849 | ## Cache variables. ## | |
1850 | ## ---------------- ## | |
1851 | _ASBOX | |
1852 | echo | |
1853 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1854 | ( |
1855 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1856 | eval ac_val=\$$ac_var | |
1857 | case $ac_val in #( | |
1858 | *${as_nl}*) | |
1859 | case $ac_var in #( | |
ec6a6fbe AK |
1860 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1861 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1862 | esac |
1863 | case $ac_var in #( | |
1864 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1865 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1866 | *) $as_unset $ac_var ;; |
1867 | esac ;; | |
1868 | esac | |
1869 | done | |
ad6254c5 | 1870 | (set) 2>&1 | |
7a197a62 AK |
1871 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1872 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1873 | sed -n \ |
7a197a62 AK |
1874 | "s/'\''/'\''\\\\'\'''\''/g; |
1875 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1876 | ;; #( | |
ad6254c5 | 1877 | *) |
7a197a62 | 1878 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1879 | ;; |
7a197a62 AK |
1880 | esac | |
1881 | sort | |
1882 | ) | |
ad6254c5 AK |
1883 | echo |
1884 | ||
1885 | cat <<\_ASBOX | |
1886 | ## ----------------- ## | |
1887 | ## Output variables. ## | |
1888 | ## ----------------- ## | |
1889 | _ASBOX | |
1890 | echo | |
1891 | for ac_var in $ac_subst_vars | |
1892 | do | |
7a197a62 AK |
1893 | eval ac_val=\$$ac_var |
1894 | case $ac_val in | |
ec6a6fbe | 1895 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1896 | esac |
ec6a6fbe | 1897 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1898 | done | sort |
1899 | echo | |
1900 | ||
1901 | if test -n "$ac_subst_files"; then | |
1902 | cat <<\_ASBOX | |
7a197a62 AK |
1903 | ## ------------------- ## |
1904 | ## File substitutions. ## | |
1905 | ## ------------------- ## | |
ad6254c5 AK |
1906 | _ASBOX |
1907 | echo | |
1908 | for ac_var in $ac_subst_files | |
1909 | do | |
7a197a62 AK |
1910 | eval ac_val=\$$ac_var |
1911 | case $ac_val in | |
ec6a6fbe | 1912 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1913 | esac |
ec6a6fbe | 1914 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1915 | done | sort |
1916 | echo | |
1917 | fi | |
1918 | ||
1919 | if test -s confdefs.h; then | |
1920 | cat <<\_ASBOX | |
1921 | ## ----------- ## | |
1922 | ## confdefs.h. ## | |
1923 | ## ----------- ## | |
1924 | _ASBOX | |
1925 | echo | |
7a197a62 | 1926 | cat confdefs.h |
ad6254c5 AK |
1927 | echo |
1928 | fi | |
1929 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1930 | $as_echo "$as_me: caught signal $ac_signal" |
1931 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1932 | } >&5 |
7a197a62 AK |
1933 | rm -f core *.core core.conftest.* && |
1934 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1935 | exit $exit_status |
7a197a62 | 1936 | ' 0 |
ad6254c5 AK |
1937 | for ac_signal in 1 2 13 15; do |
1938 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1939 | done | |
1940 | ac_signal=0 | |
1941 | ||
1942 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1943 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1944 | |
1945 | # Predefined preprocessor variables. | |
1946 | ||
1947 | cat >>confdefs.h <<_ACEOF | |
1948 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1949 | _ACEOF | |
1950 | ||
1951 | ||
1952 | cat >>confdefs.h <<_ACEOF | |
1953 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1954 | _ACEOF | |
1955 | ||
1956 | ||
1957 | cat >>confdefs.h <<_ACEOF | |
1958 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1959 | _ACEOF | |
8106cdd5 | 1960 | |
ad6254c5 AK |
1961 | |
1962 | cat >>confdefs.h <<_ACEOF | |
1963 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1964 | _ACEOF | |
1965 | ||
1966 | ||
1967 | cat >>confdefs.h <<_ACEOF | |
1968 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1969 | _ACEOF | |
1970 | ||
1971 | ||
1972 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1973 | # Prefer an explicitly selected file to automatically selected ones. |
1974 | ac_site_file1=NONE | |
1975 | ac_site_file2=NONE | |
7a197a62 | 1976 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1977 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1978 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1979 | ac_site_file1=$prefix/share/config.site |
1980 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1981 | else |
ec6a6fbe AK |
1982 | ac_site_file1=$ac_default_prefix/share/config.site |
1983 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1984 | fi |
ec6a6fbe | 1985 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1986 | do |
ec6a6fbe | 1987 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1988 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1989 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1990 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1991 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1992 | . "$ac_site_file" |
1993 | fi | |
1994 | done | |
1995 | ||
1996 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1997 | # Some versions of bash will fail to source /dev/null (special |
1998 | # files actually), so we avoid doing that. | |
1999 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
2000 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2001 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 2002 | case $cache_file in |
7a197a62 AK |
2003 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2004 | *) . "./$cache_file";; | |
ad6254c5 AK |
2005 | esac |
2006 | fi | |
795ca3e5 | 2007 | else |
ec6a6fbe AK |
2008 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2009 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
2010 | >$cache_file |
2011 | fi | |
2012 | ||
2013 | # Check that the precious variables saved in the cache have kept the same | |
2014 | # value. | |
2015 | ac_cache_corrupted=false | |
7a197a62 | 2016 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2017 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2018 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2019 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2020 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2021 | case $ac_old_set,$ac_new_set in |
2022 | set,) | |
ec6a6fbe AK |
2023 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2024 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2025 | ac_cache_corrupted=: ;; |
2026 | ,set) | |
ec6a6fbe AK |
2027 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2028 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2029 | ac_cache_corrupted=: ;; |
2030 | ,);; | |
2031 | *) | |
2032 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2033 | # differences in whitespace do not lead to failure. |
2034 | ac_old_val_w=`echo x $ac_old_val` | |
2035 | ac_new_val_w=`echo x $ac_new_val` | |
2036 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2037 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2038 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2039 | ac_cache_corrupted=: | |
2040 | else | |
2041 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2042 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2043 | eval $ac_var=\$ac_old_val | |
2044 | fi | |
2045 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2046 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2047 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2048 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2049 | fi;; |
2050 | esac | |
2051 | # Pass precious variables to config.status. | |
2052 | if test "$ac_new_set" = set; then | |
2053 | case $ac_new_val in | |
ec6a6fbe | 2054 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2055 | *) ac_arg=$ac_var=$ac_new_val ;; |
2056 | esac | |
2057 | case " $ac_configure_args " in | |
2058 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2059 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2060 | esac | |
2061 | fi | |
2062 | done | |
2063 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2064 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2065 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2066 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2067 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2068 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2069 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2070 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2071 | fi |
2072 | ||
ad6254c5 AK |
2073 | |
2074 | ||
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ||
2082 | ||
2083 | ||
2084 | ||
2085 | ||
2086 | ||
2087 | ||
2088 | ||
7a197a62 AK |
2089 | ac_ext=c |
2090 | ac_cpp='$CPP $CPPFLAGS' | |
2091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2094 | |
795ca3e5 AK |
2095 | |
2096 | ||
7a197a62 | 2097 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2098 | |
2099 | ||
80992638 | 2100 | ################################################################################ |
795ca3e5 | 2101 | ac_aux_dir= |
7a197a62 AK |
2102 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2103 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2104 | ac_aux_dir=$ac_dir |
2105 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2106 | break | |
7a197a62 | 2107 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2108 | ac_aux_dir=$ac_dir |
2109 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2110 | break | |
7a197a62 | 2111 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2112 | ac_aux_dir=$ac_dir |
2113 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2114 | break | |
795ca3e5 AK |
2115 | fi |
2116 | done | |
2117 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2118 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2119 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2120 | { (exit 1); exit 1; }; } |
795ca3e5 | 2121 | fi |
7a197a62 AK |
2122 | |
2123 | # These three variables are undocumented and unsupported, | |
2124 | # and are intended to be withdrawn in a future Autoconf release. | |
2125 | # They can cause serious problems if a builder's source tree is in a directory | |
2126 | # whose full name contains unusual characters. | |
2127 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2128 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2129 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2130 | ||
8ce0cbda AK |
2131 | |
2132 | ||
ad6254c5 | 2133 | ################################################################################ |
8ce0cbda | 2134 | # Make sure we can run config.sub. |
7a197a62 | 2135 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2136 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2137 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2138 | { (exit 1); exit 1; }; } |
2139 | ||
ec6a6fbe AK |
2140 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2141 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2142 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2143 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2144 | else |
7a197a62 AK |
2145 | ac_build_alias=$build_alias |
2146 | test "x$ac_build_alias" = x && | |
2147 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2148 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2149 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2150 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2151 | { (exit 1); exit 1; }; } |
7a197a62 | 2152 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2153 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2154 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2155 | { (exit 1); exit 1; }; } |
2156 | ||
2157 | fi | |
ec6a6fbe AK |
2158 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2159 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2160 | case $ac_cv_build in |
2161 | *-*-*) ;; | |
ec6a6fbe AK |
2162 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2163 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2164 | { (exit 1); exit 1; }; };; |
2165 | esac | |
ad6254c5 | 2166 | build=$ac_cv_build |
7a197a62 AK |
2167 | ac_save_IFS=$IFS; IFS='-' |
2168 | set x $ac_cv_build | |
2169 | shift | |
2170 | build_cpu=$1 | |
2171 | build_vendor=$2 | |
2172 | shift; shift | |
2173 | # Remember, the first character of IFS is used to create $*, | |
2174 | # except with old shells: | |
2175 | build_os=$* | |
2176 | IFS=$ac_save_IFS | |
2177 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2178 | |
2179 | ||
ec6a6fbe AK |
2180 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2181 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2182 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2183 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2184 | else |
7a197a62 AK |
2185 | if test "x$host_alias" = x; then |
2186 | ac_cv_host=$ac_cv_build | |
2187 | else | |
2188 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2189 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2190 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2191 | { (exit 1); exit 1; }; } |
7a197a62 | 2192 | fi |
ad6254c5 AK |
2193 | |
2194 | fi | |
ec6a6fbe AK |
2195 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2196 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2197 | case $ac_cv_host in |
2198 | *-*-*) ;; | |
ec6a6fbe AK |
2199 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2200 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2201 | { (exit 1); exit 1; }; };; |
2202 | esac | |
ad6254c5 | 2203 | host=$ac_cv_host |
7a197a62 AK |
2204 | ac_save_IFS=$IFS; IFS='-' |
2205 | set x $ac_cv_host | |
2206 | shift | |
2207 | host_cpu=$1 | |
2208 | host_vendor=$2 | |
2209 | shift; shift | |
2210 | # Remember, the first character of IFS is used to create $*, | |
2211 | # except with old shells: | |
2212 | host_os=$* | |
2213 | IFS=$ac_save_IFS | |
2214 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2215 | |
2216 | ||
ec6a6fbe AK |
2217 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2218 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2219 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2220 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2221 | else |
7a197a62 AK |
2222 | if test "x$target_alias" = x; then |
2223 | ac_cv_target=$ac_cv_host | |
2224 | else | |
2225 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2226 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2227 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2228 | { (exit 1); exit 1; }; } |
7a197a62 | 2229 | fi |
8ce0cbda | 2230 | |
ad6254c5 | 2231 | fi |
ec6a6fbe AK |
2232 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2233 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2234 | case $ac_cv_target in |
2235 | *-*-*) ;; | |
ec6a6fbe AK |
2236 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2237 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2238 | { (exit 1); exit 1; }; };; |
2239 | esac | |
ad6254c5 | 2240 | target=$ac_cv_target |
7a197a62 AK |
2241 | ac_save_IFS=$IFS; IFS='-' |
2242 | set x $ac_cv_target | |
2243 | shift | |
2244 | target_cpu=$1 | |
2245 | target_vendor=$2 | |
2246 | shift; shift | |
2247 | # Remember, the first character of IFS is used to create $*, | |
2248 | # except with old shells: | |
2249 | target_os=$* | |
2250 | IFS=$ac_save_IFS | |
2251 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2252 | |
8ce0cbda | 2253 | |
ad6254c5 AK |
2254 | # The aliases save the names the user supplied, while $host etc. |
2255 | # will get canonicalized. | |
2256 | test -n "$target_alias" && | |
8ce0cbda AK |
2257 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2258 | NONENONEs,x,x, && | |
2259 | program_prefix=${target_alias}- | |
2260 | ||
8ce0cbda AK |
2261 | case "$host_os" in |
2262 | linux*) | |
7f54ef36 | 2263 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2264 | COPTIMISE_FLAG="-O2" |
2265 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2266 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2267 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2268 | LDDEPS="$LDDEPS .export.sym" | |
2269 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2270 | LIB_SUFFIX=so |
8ce0cbda AK |
2271 | DEVMAPPER=yes |
2272 | ODIRECT=yes | |
d0191583 | 2273 | DM_IOCTLS=yes |
8ce0cbda AK |
2274 | SELINUX=yes |
2275 | CLUSTER=internal | |
93bd259b | 2276 | FSADM=yes |
d0191583 | 2277 | ;; |
8ce0cbda AK |
2278 | darwin*) |
2279 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2280 | COPTIMISE_FLAG="-O2" | |
2281 | CLDFLAGS="$CLDFLAGS" | |
2282 | CLDWHOLEARCHIVE="-all_load" | |
2283 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2284 | LIB_SUFFIX=dylib |
a653923f | 2285 | DEVMAPPER=yes |
8ce0cbda | 2286 | ODIRECT=no |
d0191583 | 2287 | DM_IOCTLS=no |
8ce0cbda AK |
2288 | SELINUX=no |
2289 | CLUSTER=none | |
d0191583 JM |
2290 | FSADM=no |
2291 | ;; | |
8ce0cbda AK |
2292 | esac |
2293 | ||
80992638 | 2294 | ################################################################################ |
ec6a6fbe AK |
2295 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2296 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2297 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2298 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2299 | else |
2300 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2301 | for ac_i in 1 2 3 4 5 6 7; do | |
2302 | ac_script="$ac_script$as_nl$ac_script" | |
2303 | done | |
ec6a6fbe | 2304 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2305 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2306 | if test -z "$SED"; then |
5951ef33 | 2307 | ac_path_SED_found=false |
ec6a6fbe AK |
2308 | # Loop through the user's path and test for each of PROGNAME-LIST |
2309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2310 | for as_dir in $PATH |
2311 | do | |
2312 | IFS=$as_save_IFS | |
2313 | test -z "$as_dir" && as_dir=. | |
2314 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2315 | for ac_exec_ext in '' $ac_executable_extensions; do |
2316 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2317 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2318 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2319 | # Check for GNU $ac_path_SED |
2320 | case `"$ac_path_SED" --version 2>&1` in | |
2321 | *GNU*) | |
2322 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2323 | *) | |
2324 | ac_count=0 | |
ec6a6fbe | 2325 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2326 | while : |
2327 | do | |
2328 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2329 | mv "conftest.tmp" "conftest.in" | |
2330 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2331 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2332 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2333 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2334 | ac_count=`expr $ac_count + 1` | |
2335 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2336 | # Best one so far, save it but keep looking for a better one | |
2337 | ac_cv_path_SED="$ac_path_SED" | |
2338 | ac_path_SED_max=$ac_count | |
2339 | fi | |
2340 | # 10*(2^10) chars as input seems more than enough | |
2341 | test $ac_count -gt 10 && break | |
2342 | done | |
2343 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2344 | esac | |
2345 | ||
ec6a6fbe AK |
2346 | $ac_path_SED_found && break 3 |
2347 | done | |
5951ef33 AK |
2348 | done |
2349 | done | |
5951ef33 | 2350 | IFS=$as_save_IFS |
ec6a6fbe AK |
2351 | if test -z "$ac_cv_path_SED"; then |
2352 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2353 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2354 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2355 | fi |
5951ef33 AK |
2356 | else |
2357 | ac_cv_path_SED=$SED | |
2358 | fi | |
2359 | ||
2360 | fi | |
ec6a6fbe AK |
2361 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2362 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2363 | SED="$ac_cv_path_SED" |
2364 | rm -f conftest.sed | |
2365 | ||
ad6254c5 | 2366 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2367 | do |
ad6254c5 | 2368 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2369 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2370 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2371 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2372 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2373 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2374 | else |
2375 | if test -n "$AWK"; then | |
2376 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2377 | else | |
ad6254c5 AK |
2378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2379 | for as_dir in $PATH | |
2380 | do | |
2381 | IFS=$as_save_IFS | |
2382 | test -z "$as_dir" && as_dir=. | |
2383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2385 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2386 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2387 | break 2 |
2388 | fi | |
2389 | done | |
2390 | done | |
7a197a62 | 2391 | IFS=$as_save_IFS |
ad6254c5 | 2392 | |
795ca3e5 AK |
2393 | fi |
2394 | fi | |
ad6254c5 | 2395 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2396 | if test -n "$AWK"; then |
ec6a6fbe AK |
2397 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2398 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2399 | else |
ec6a6fbe AK |
2400 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2401 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2402 | fi |
2403 | ||
7a197a62 | 2404 | |
ad6254c5 AK |
2405 | test -n "$AWK" && break |
2406 | done | |
2407 | ||
2408 | ac_ext=c | |
2409 | ac_cpp='$CPP $CPPFLAGS' | |
2410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2413 | if test -n "$ac_tool_prefix"; then | |
2414 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2415 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2416 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2417 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2418 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2419 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2420 | else |
2421 | if test -n "$CC"; then | |
2422 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2423 | else | |
2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2425 | for as_dir in $PATH | |
2426 | do | |
2427 | IFS=$as_save_IFS | |
2428 | test -z "$as_dir" && as_dir=. | |
2429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2431 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2432 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2433 | break 2 |
2434 | fi | |
2435 | done | |
8106cdd5 | 2436 | done |
7a197a62 | 2437 | IFS=$as_save_IFS |
8106cdd5 | 2438 | |
ad6254c5 AK |
2439 | fi |
2440 | fi | |
2441 | CC=$ac_cv_prog_CC | |
2442 | if test -n "$CC"; then | |
ec6a6fbe AK |
2443 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2444 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2445 | else |
ec6a6fbe AK |
2446 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2447 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2448 | fi |
2449 | ||
7a197a62 | 2450 | |
ad6254c5 AK |
2451 | fi |
2452 | if test -z "$ac_cv_prog_CC"; then | |
2453 | ac_ct_CC=$CC | |
2454 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2455 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2456 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2457 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2458 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2459 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2460 | else |
2461 | if test -n "$ac_ct_CC"; then | |
2462 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2463 | else | |
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2465 | for as_dir in $PATH | |
2466 | do | |
2467 | IFS=$as_save_IFS | |
2468 | test -z "$as_dir" && as_dir=. | |
2469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2471 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2472 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2473 | break 2 |
2474 | fi | |
2475 | done | |
2476 | done | |
7a197a62 | 2477 | IFS=$as_save_IFS |
ad6254c5 AK |
2478 | |
2479 | fi | |
2480 | fi | |
2481 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2482 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2483 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2484 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2485 | else |
ec6a6fbe AK |
2486 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2487 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2488 | fi |
2489 | ||
7a197a62 AK |
2490 | if test "x$ac_ct_CC" = x; then |
2491 | CC="" | |
2492 | else | |
2493 | case $cross_compiling:$ac_tool_warned in | |
2494 | yes:) | |
ec6a6fbe AK |
2495 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2496 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2497 | ac_tool_warned=yes ;; |
2498 | esac | |
2499 | CC=$ac_ct_CC | |
2500 | fi | |
ad6254c5 AK |
2501 | else |
2502 | CC="$ac_cv_prog_CC" | |
2503 | fi | |
2504 | ||
2505 | if test -z "$CC"; then | |
7a197a62 AK |
2506 | if test -n "$ac_tool_prefix"; then |
2507 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2508 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2509 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2510 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2511 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2512 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2513 | else |
2514 | if test -n "$CC"; then | |
2515 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2516 | else | |
ad6254c5 AK |
2517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2518 | for as_dir in $PATH | |
2519 | do | |
2520 | IFS=$as_save_IFS | |
2521 | test -z "$as_dir" && as_dir=. | |
2522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2524 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2525 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2526 | break 2 |
2527 | fi | |
2528 | done | |
2529 | done | |
7a197a62 | 2530 | IFS=$as_save_IFS |
ad6254c5 | 2531 | |
8106cdd5 AK |
2532 | fi |
2533 | fi | |
ad6254c5 | 2534 | CC=$ac_cv_prog_CC |
8106cdd5 | 2535 | if test -n "$CC"; then |
ec6a6fbe AK |
2536 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2537 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2538 | else |
ec6a6fbe AK |
2539 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2540 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2541 | fi |
2542 | ||
8106cdd5 | 2543 | |
7a197a62 | 2544 | fi |
ad6254c5 | 2545 | fi |
795ca3e5 AK |
2546 | if test -z "$CC"; then |
2547 | # Extract the first word of "cc", so it can be a program name with args. | |
2548 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2549 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2550 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2551 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2552 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2553 | else |
2554 | if test -n "$CC"; then | |
2555 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2556 | else | |
795ca3e5 | 2557 | ac_prog_rejected=no |
ad6254c5 AK |
2558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2559 | for as_dir in $PATH | |
2560 | do | |
2561 | IFS=$as_save_IFS | |
2562 | test -z "$as_dir" && as_dir=. | |
2563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2565 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2566 | ac_prog_rejected=yes | |
2567 | continue | |
2568 | fi | |
2569 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2570 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2571 | break 2 |
2572 | fi | |
2573 | done | |
2574 | done | |
7a197a62 | 2575 | IFS=$as_save_IFS |
ad6254c5 | 2576 | |
795ca3e5 AK |
2577 | if test $ac_prog_rejected = yes; then |
2578 | # We found a bogon in the path, so make sure we never use it. | |
2579 | set dummy $ac_cv_prog_CC | |
2580 | shift | |
ad6254c5 | 2581 | if test $# != 0; then |
795ca3e5 AK |
2582 | # We chose a different compiler from the bogus one. |
2583 | # However, it has the same basename, so the bogon will be chosen | |
2584 | # first if we set CC to just the basename; use the full file name. | |
2585 | shift | |
ad6254c5 | 2586 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2587 | fi |
2588 | fi | |
2589 | fi | |
2590 | fi | |
ad6254c5 | 2591 | CC=$ac_cv_prog_CC |
795ca3e5 | 2592 | if test -n "$CC"; then |
ec6a6fbe AK |
2593 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2594 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2595 | else |
ec6a6fbe AK |
2596 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2597 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2598 | fi |
2599 | ||
7a197a62 | 2600 | |
ad6254c5 AK |
2601 | fi |
2602 | if test -z "$CC"; then | |
2603 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2604 | for ac_prog in cl.exe |
ad6254c5 AK |
2605 | do |
2606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2608 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2609 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2610 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2611 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2612 | else |
2613 | if test -n "$CC"; then | |
2614 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2615 | else | |
ad6254c5 AK |
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2617 | for as_dir in $PATH | |
2618 | do | |
2619 | IFS=$as_save_IFS | |
2620 | test -z "$as_dir" && as_dir=. | |
2621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2624 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2625 | break 2 |
2626 | fi | |
2627 | done | |
2628 | done | |
7a197a62 | 2629 | IFS=$as_save_IFS |
ad6254c5 | 2630 | |
795ca3e5 AK |
2631 | fi |
2632 | fi | |
ad6254c5 | 2633 | CC=$ac_cv_prog_CC |
795ca3e5 | 2634 | if test -n "$CC"; then |
ec6a6fbe AK |
2635 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2636 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2637 | else |
ec6a6fbe AK |
2638 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2639 | $as_echo "no" >&6; } | |
795ca3e5 | 2640 | fi |
ad6254c5 | 2641 | |
7a197a62 | 2642 | |
ad6254c5 AK |
2643 | test -n "$CC" && break |
2644 | done | |
2645 | fi | |
2646 | if test -z "$CC"; then | |
2647 | ac_ct_CC=$CC | |
7a197a62 | 2648 | for ac_prog in cl.exe |
ad6254c5 AK |
2649 | do |
2650 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2651 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2652 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2653 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2654 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2655 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2656 | else |
2657 | if test -n "$ac_ct_CC"; then | |
2658 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2659 | else | |
2660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2661 | for as_dir in $PATH | |
2662 | do | |
2663 | IFS=$as_save_IFS | |
2664 | test -z "$as_dir" && as_dir=. | |
2665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2667 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2668 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2669 | break 2 |
795ca3e5 | 2670 | fi |
ad6254c5 AK |
2671 | done |
2672 | done | |
7a197a62 | 2673 | IFS=$as_save_IFS |
ad6254c5 AK |
2674 | |
2675 | fi | |
2676 | fi | |
2677 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2678 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2679 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2680 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2681 | else |
ec6a6fbe AK |
2682 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2683 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2684 | fi |
2685 | ||
7a197a62 | 2686 | |
ad6254c5 AK |
2687 | test -n "$ac_ct_CC" && break |
2688 | done | |
795ca3e5 | 2689 | |
7a197a62 AK |
2690 | if test "x$ac_ct_CC" = x; then |
2691 | CC="" | |
2692 | else | |
2693 | case $cross_compiling:$ac_tool_warned in | |
2694 | yes:) | |
ec6a6fbe AK |
2695 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2696 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2697 | ac_tool_warned=yes ;; |
2698 | esac | |
2699 | CC=$ac_ct_CC | |
2700 | fi | |
ad6254c5 AK |
2701 | fi |
2702 | ||
2703 | fi | |
2704 | ||
2705 | ||
ec6a6fbe AK |
2706 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2707 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2708 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2709 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2710 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2711 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2712 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2713 | |
2714 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2715 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2716 | set X $ac_compile | |
2717 | ac_compiler=$2 | |
7a197a62 AK |
2718 | { (ac_try="$ac_compiler --version >&5" |
2719 | case "(($ac_try" in | |
2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2721 | *) ac_try_echo=$ac_try;; | |
2722 | esac | |
ec6a6fbe AK |
2723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2724 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2725 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2726 | ac_status=$? |
ec6a6fbe | 2727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2728 | (exit $ac_status); } |
7a197a62 AK |
2729 | { (ac_try="$ac_compiler -v >&5" |
2730 | case "(($ac_try" in | |
2731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2732 | *) ac_try_echo=$ac_try;; | |
2733 | esac | |
ec6a6fbe AK |
2734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2735 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2736 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2737 | ac_status=$? |
ec6a6fbe | 2738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2739 | (exit $ac_status); } |
7a197a62 AK |
2740 | { (ac_try="$ac_compiler -V >&5" |
2741 | case "(($ac_try" in | |
2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2743 | *) ac_try_echo=$ac_try;; | |
2744 | esac | |
ec6a6fbe AK |
2745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2746 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2747 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2748 | ac_status=$? |
ec6a6fbe | 2749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2750 | (exit $ac_status); } |
2751 | ||
2752 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2753 | /* confdefs.h. */ |
2754 | _ACEOF | |
2755 | cat confdefs.h >>conftest.$ac_ext | |
2756 | cat >>conftest.$ac_ext <<_ACEOF | |
2757 | /* end confdefs.h. */ | |
2758 | ||
2759 | int | |
2760 | main () | |
2761 | { | |
2762 | ||
2763 | ; | |
2764 | return 0; | |
2765 | } | |
2766 | _ACEOF | |
2767 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2768 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2769 | # Try to create an executable without -o first, disregard a.out. |
2770 | # It will help us diagnose broken compilers, and finding out an intuition | |
2771 | # of exeext. | |
ec6a6fbe AK |
2772 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2773 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2774 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2775 | ||
2776 | # The possible output files: | |
2777 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2778 | ||
7a197a62 AK |
2779 | ac_rmfiles= |
2780 | for ac_file in $ac_files | |
2781 | do | |
2782 | case $ac_file in | |
ec6a6fbe | 2783 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2784 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2785 | esac | |
2786 | done | |
2787 | rm -f $ac_rmfiles | |
2788 | ||
2789 | if { (ac_try="$ac_link_default" | |
2790 | case "(($ac_try" in | |
2791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2792 | *) ac_try_echo=$ac_try;; | |
2793 | esac | |
ec6a6fbe AK |
2794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2795 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2796 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2797 | ac_status=$? |
ec6a6fbe | 2798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2799 | (exit $ac_status); }; then |
7a197a62 AK |
2800 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2801 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2802 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2803 | # so that the user can short-circuit this test for compilers unknown to | |
2804 | # Autoconf. | |
25fbec5b | 2805 | for ac_file in $ac_files '' |
ad6254c5 AK |
2806 | do |
2807 | test -f "$ac_file" || continue | |
2808 | case $ac_file in | |
ec6a6fbe | 2809 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2810 | ;; |
ad6254c5 | 2811 | [ab].out ) |
8a2fc586 AK |
2812 | # We found the default executable, but exeext='' is most |
2813 | # certainly right. | |
2814 | break;; | |
ad6254c5 | 2815 | *.* ) |
7a197a62 AK |
2816 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2817 | then :; else | |
2818 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2819 | fi | |
2820 | # We set ac_cv_exeext here because the later test for it is not | |
2821 | # safe: cross compilers may not add the suffix if given an `-o' | |
2822 | # argument, so we may need to know it at that point already. | |
2823 | # Even if this section looks crufty: it has the advantage of | |
2824 | # actually working. | |
8a2fc586 | 2825 | break;; |
ad6254c5 | 2826 | * ) |
8a2fc586 | 2827 | break;; |
ad6254c5 AK |
2828 | esac |
2829 | done | |
7a197a62 AK |
2830 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2831 | ||
ad6254c5 | 2832 | else |
25fbec5b AK |
2833 | ac_file='' |
2834 | fi | |
2835 | ||
ec6a6fbe AK |
2836 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2837 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2838 | if test -z "$ac_file"; then |
ec6a6fbe | 2839 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2840 | sed 's/^/| /' conftest.$ac_ext >&5 |
2841 | ||
ec6a6fbe AK |
2842 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2843 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2844 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2845 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2846 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2847 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2848 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2849 | fi |
2850 | ||
2851 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2852 | |
7a197a62 | 2853 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2854 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2855 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2856 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2857 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2858 | # If not cross compiling, check that we can run a simple program. | |
2859 | if test "$cross_compiling" != yes; then | |
2860 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2861 | { (case "(($ac_try" in |
2862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2863 | *) ac_try_echo=$ac_try;; | |
2864 | esac | |
ec6a6fbe AK |
2865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2866 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2867 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2868 | ac_status=$? |
ec6a6fbe | 2869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2870 | (exit $ac_status); }; }; then |
2871 | cross_compiling=no | |
795ca3e5 | 2872 | else |
ad6254c5 AK |
2873 | if test "$cross_compiling" = maybe; then |
2874 | cross_compiling=yes | |
2875 | else | |
ec6a6fbe AK |
2876 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2877 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2878 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2879 | If you meant to cross compile, use \`--host'. |
2880 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2881 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2882 | If you meant to cross compile, use \`--host'. |
2883 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2884 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2885 | fi |
795ca3e5 | 2886 | fi |
80992638 | 2887 | fi |
ec6a6fbe AK |
2888 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2889 | $as_echo "yes" >&6; } | |
ad6254c5 | 2890 | |
ec6a6fbe | 2891 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2892 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2893 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2894 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2895 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2896 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2897 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2898 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2899 | |
ec6a6fbe AK |
2900 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2901 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2902 | if { (ac_try="$ac_link" |
2903 | case "(($ac_try" in | |
2904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2905 | *) ac_try_echo=$ac_try;; | |
2906 | esac | |
ec6a6fbe AK |
2907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2908 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2909 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2910 | ac_status=$? |
ec6a6fbe | 2911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2912 | (exit $ac_status); }; then |
2913 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2914 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2915 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2916 | # `rm'. | |
2917 | for ac_file in conftest.exe conftest conftest.*; do | |
2918 | test -f "$ac_file" || continue | |
2919 | case $ac_file in | |
ec6a6fbe | 2920 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2921 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2922 | break;; |
ad6254c5 AK |
2923 | * ) break;; |
2924 | esac | |
2925 | done | |
80992638 | 2926 | else |
ec6a6fbe AK |
2927 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2928 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2929 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2930 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2931 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2932 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2933 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2934 | fi |
2935 | ||
2936 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2937 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2938 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2939 | |
2940 | rm -f conftest.$ac_ext | |
2941 | EXEEXT=$ac_cv_exeext | |
2942 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2943 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2944 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2945 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2946 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2947 | else |
ad6254c5 | 2948 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2949 | /* confdefs.h. */ |
2950 | _ACEOF | |
2951 | cat confdefs.h >>conftest.$ac_ext | |
2952 | cat >>conftest.$ac_ext <<_ACEOF | |
2953 | /* end confdefs.h. */ | |
2954 | ||
2955 | int | |
2956 | main () | |
2957 | { | |
2958 | ||
2959 | ; | |
2960 | return 0; | |
2961 | } | |
2962 | _ACEOF | |
2963 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2964 | if { (ac_try="$ac_compile" |
2965 | case "(($ac_try" in | |
2966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2967 | *) ac_try_echo=$ac_try;; | |
2968 | esac | |
ec6a6fbe AK |
2969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2970 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2971 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2972 | ac_status=$? |
ec6a6fbe | 2973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2974 | (exit $ac_status); }; then |
7a197a62 AK |
2975 | for ac_file in conftest.o conftest.obj conftest.*; do |
2976 | test -f "$ac_file" || continue; | |
ad6254c5 | 2977 | case $ac_file in |
ec6a6fbe | 2978 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2979 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2980 | break;; | |
2981 | esac | |
2982 | done | |
2983 | else | |
ec6a6fbe | 2984 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2985 | sed 's/^/| /' conftest.$ac_ext >&5 |
2986 | ||
ec6a6fbe AK |
2987 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2988 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2989 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2990 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2991 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2992 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2993 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2994 | fi |
2995 | ||
2996 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2997 | fi | |
ec6a6fbe AK |
2998 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2999 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
3000 | OBJEXT=$ac_cv_objext |
3001 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
3002 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3003 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 3004 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 3005 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3006 | else |
3007 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3008 | /* confdefs.h. */ |
3009 | _ACEOF | |
3010 | cat confdefs.h >>conftest.$ac_ext | |
3011 | cat >>conftest.$ac_ext <<_ACEOF | |
3012 | /* end confdefs.h. */ | |
3013 | ||
3014 | int | |
3015 | main () | |
3016 | { | |
3017 | #ifndef __GNUC__ | |
3018 | choke me | |
3019 | #endif | |
80992638 | 3020 | |
ad6254c5 AK |
3021 | ; |
3022 | return 0; | |
3023 | } | |
3024 | _ACEOF | |
3025 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3026 | if { (ac_try="$ac_compile" |
3027 | case "(($ac_try" in | |
3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3029 | *) ac_try_echo=$ac_try;; | |
3030 | esac | |
ec6a6fbe AK |
3031 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3032 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3033 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3034 | ac_status=$? |
8a2fc586 AK |
3035 | grep -v '^ *+' conftest.er1 >conftest.err |
3036 | rm -f conftest.er1 | |
3037 | cat conftest.err >&5 | |
ec6a6fbe | 3038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3039 | (exit $ac_status); } && { |
3040 | test -z "$ac_c_werror_flag" || | |
3041 | test ! -s conftest.err | |
3042 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3043 | ac_compiler_gnu=yes |
80992638 | 3044 | else |
ec6a6fbe | 3045 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3046 | sed 's/^/| /' conftest.$ac_ext >&5 |
3047 | ||
7a197a62 | 3048 | ac_compiler_gnu=no |
8106cdd5 | 3049 | fi |
7a197a62 AK |
3050 | |
3051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3052 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3053 | |
ad6254c5 | 3054 | fi |
ec6a6fbe AK |
3055 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3056 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3057 | if test $ac_compiler_gnu = yes; then | |
3058 | GCC=yes | |
3059 | else | |
3060 | GCC= | |
3061 | fi | |
ad6254c5 AK |
3062 | ac_test_CFLAGS=${CFLAGS+set} |
3063 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3064 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3065 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3066 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3067 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3068 | else |
7a197a62 AK |
3069 | ac_save_c_werror_flag=$ac_c_werror_flag |
3070 | ac_c_werror_flag=yes | |
3071 | ac_cv_prog_cc_g=no | |
3072 | CFLAGS="-g" | |
3073 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3074 | /* confdefs.h. */ |
3075 | _ACEOF | |
3076 | cat confdefs.h >>conftest.$ac_ext | |
3077 | cat >>conftest.$ac_ext <<_ACEOF | |
3078 | /* end confdefs.h. */ | |
3079 | ||
3080 | int | |
3081 | main () | |
3082 | { | |
3083 | ||
3084 | ; | |
3085 | return 0; | |
3086 | } | |
3087 | _ACEOF | |
3088 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3089 | if { (ac_try="$ac_compile" |
3090 | case "(($ac_try" in | |
3091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3092 | *) ac_try_echo=$ac_try;; | |
3093 | esac | |
ec6a6fbe AK |
3094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3095 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3096 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3097 | ac_status=$? |
8a2fc586 AK |
3098 | grep -v '^ *+' conftest.er1 >conftest.err |
3099 | rm -f conftest.er1 | |
3100 | cat conftest.err >&5 | |
ec6a6fbe | 3101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3102 | (exit $ac_status); } && { |
3103 | test -z "$ac_c_werror_flag" || | |
3104 | test ! -s conftest.err | |
3105 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3106 | ac_cv_prog_cc_g=yes |
3107 | else | |
ec6a6fbe | 3108 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3109 | sed 's/^/| /' conftest.$ac_ext >&5 |
3110 | ||
3111 | CFLAGS="" | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
3113 | /* confdefs.h. */ | |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | ||
3119 | int | |
3120 | main () | |
3121 | { | |
3122 | ||
3123 | ; | |
3124 | return 0; | |
3125 | } | |
3126 | _ACEOF | |
3127 | rm -f conftest.$ac_objext | |
3128 | if { (ac_try="$ac_compile" | |
3129 | case "(($ac_try" in | |
3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3131 | *) ac_try_echo=$ac_try;; | |
3132 | esac | |
ec6a6fbe AK |
3133 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3134 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3135 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3136 | ac_status=$? |
7a197a62 AK |
3137 | grep -v '^ *+' conftest.er1 >conftest.err |
3138 | rm -f conftest.er1 | |
3139 | cat conftest.err >&5 | |
ec6a6fbe | 3140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3141 | (exit $ac_status); } && { |
3142 | test -z "$ac_c_werror_flag" || | |
3143 | test ! -s conftest.err | |
3144 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3145 | : |
3146 | else | |
ec6a6fbe | 3147 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
3149 | ||
3150 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3151 | CFLAGS="-g" | |
3152 | cat >conftest.$ac_ext <<_ACEOF | |
3153 | /* confdefs.h. */ | |
3154 | _ACEOF | |
3155 | cat confdefs.h >>conftest.$ac_ext | |
3156 | cat >>conftest.$ac_ext <<_ACEOF | |
3157 | /* end confdefs.h. */ | |
3158 | ||
3159 | int | |
3160 | main () | |
3161 | { | |
3162 | ||
3163 | ; | |
3164 | return 0; | |
3165 | } | |
3166 | _ACEOF | |
3167 | rm -f conftest.$ac_objext | |
3168 | if { (ac_try="$ac_compile" | |
3169 | case "(($ac_try" in | |
3170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3171 | *) ac_try_echo=$ac_try;; | |
3172 | esac | |
ec6a6fbe AK |
3173 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3174 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3175 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3176 | ac_status=$? |
7a197a62 AK |
3177 | grep -v '^ *+' conftest.er1 >conftest.err |
3178 | rm -f conftest.er1 | |
3179 | cat conftest.err >&5 | |
ec6a6fbe | 3180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3181 | (exit $ac_status); } && { |
3182 | test -z "$ac_c_werror_flag" || | |
3183 | test ! -s conftest.err | |
3184 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3185 | ac_cv_prog_cc_g=yes |
3186 | else | |
ec6a6fbe | 3187 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3188 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3189 | |
7a197a62 AK |
3190 | |
3191 | fi | |
3192 | ||
3193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3194 | fi | |
3195 | ||
3196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3197 | fi |
7a197a62 AK |
3198 | |
3199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3200 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3201 | fi |
ec6a6fbe AK |
3202 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3203 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3204 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3205 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3206 | elif test $ac_cv_prog_cc_g = yes; then |
3207 | if test "$GCC" = yes; then | |
3208 | CFLAGS="-g -O2" | |
3209 | else | |
3210 | CFLAGS="-g" | |
3211 | fi | |
3212 | else | |
3213 | if test "$GCC" = yes; then | |
3214 | CFLAGS="-O2" | |
3215 | else | |
3216 | CFLAGS= | |
3217 | fi | |
3218 | fi | |
ec6a6fbe AK |
3219 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3220 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3221 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3222 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3223 | else |
7a197a62 | 3224 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3225 | ac_save_CC=$CC |
3226 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3227 | /* confdefs.h. */ |
3228 | _ACEOF | |
3229 | cat confdefs.h >>conftest.$ac_ext | |
3230 | cat >>conftest.$ac_ext <<_ACEOF | |
3231 | /* end confdefs.h. */ | |
3232 | #include <stdarg.h> | |
3233 | #include <stdio.h> | |
3234 | #include <sys/types.h> | |
3235 | #include <sys/stat.h> | |
3236 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3237 | struct buf { int x; }; | |
3238 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3239 | static char *e (p, i) | |
3240 | char **p; | |
3241 | int i; | |
3242 | { | |
3243 | return p[i]; | |
3244 | } | |
3245 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3246 | { | |
3247 | char *s; | |
3248 | va_list v; | |
3249 | va_start (v,p); | |
3250 | s = g (p, va_arg (v,int)); | |
3251 | va_end (v); | |
3252 | return s; | |
3253 | } | |
8a2fc586 AK |
3254 | |
3255 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3256 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3257 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3258 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3259 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3260 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3261 | that's true only with -std. */ |
8a2fc586 AK |
3262 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3263 | ||
7a197a62 AK |
3264 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3265 | inside strings and character constants. */ | |
3266 | #define FOO(x) 'x' | |
3267 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3268 | ||
ad6254c5 AK |
3269 | int test (int i, double x); |
3270 | struct s1 {int (*f) (int a);}; | |
3271 | struct s2 {int (*f) (double a);}; | |
3272 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3273 | int argc; | |
3274 | char **argv; | |
3275 | int | |
3276 | main () | |
3277 | { | |
3278 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3279 | ; | |
3280 | return 0; | |
3281 | } | |
3282 | _ACEOF | |
7a197a62 AK |
3283 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3284 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3285 | do |
3286 | CC="$ac_save_CC $ac_arg" | |
3287 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3288 | if { (ac_try="$ac_compile" |
3289 | case "(($ac_try" in | |
3290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3291 | *) ac_try_echo=$ac_try;; | |
3292 | esac | |
ec6a6fbe AK |
3293 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3294 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3295 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3296 | ac_status=$? |
8a2fc586 AK |
3297 | grep -v '^ *+' conftest.er1 >conftest.err |
3298 | rm -f conftest.er1 | |
3299 | cat conftest.err >&5 | |
ec6a6fbe | 3300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3301 | (exit $ac_status); } && { |
3302 | test -z "$ac_c_werror_flag" || | |
3303 | test ! -s conftest.err | |
3304 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3305 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3306 | else |
ec6a6fbe | 3307 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3308 | sed 's/^/| /' conftest.$ac_ext >&5 |
3309 | ||
7a197a62 | 3310 | |
ad6254c5 | 3311 | fi |
7a197a62 AK |
3312 | |
3313 | rm -f core conftest.err conftest.$ac_objext | |
3314 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3315 | done |
7a197a62 | 3316 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3317 | CC=$ac_save_CC |
3318 | ||
3319 | fi | |
7a197a62 AK |
3320 | # AC_CACHE_VAL |
3321 | case "x$ac_cv_prog_cc_c89" in | |
3322 | x) | |
ec6a6fbe AK |
3323 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3324 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3325 | xno) |
ec6a6fbe AK |
3326 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3327 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3328 | *) |
7a197a62 | 3329 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3330 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3331 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3332 | esac |
3333 | ||
ad6254c5 | 3334 | |
ad6254c5 AK |
3335 | ac_ext=c |
3336 | ac_cpp='$CPP $CPPFLAGS' | |
3337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3340 | |
d0191583 JM |
3341 | |
3342 | ||
3343 | ac_ext=c | |
3344 | ac_cpp='$CPP $CPPFLAGS' | |
3345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3348 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3349 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3350 | # On Suns, sometimes $CPP names a directory. |
3351 | if test -n "$CPP" && test -d "$CPP"; then | |
3352 | CPP= | |
3353 | fi | |
3354 | if test -z "$CPP"; then | |
3355 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3356 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3357 | else |
d0191583 JM |
3358 | # Double quotes because CPP needs to be expanded |
3359 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3360 | do | |
3361 | ac_preproc_ok=false | |
3362 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3363 | do |
d0191583 JM |
3364 | # Use a header file that comes with gcc, so configuring glibc |
3365 | # with a fresh cross-compiler works. | |
3366 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3367 | # <limits.h> exists even on freestanding compilers. | |
3368 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3369 | # not just through cpp. "Syntax error" is here to catch this case. | |
3370 | cat >conftest.$ac_ext <<_ACEOF | |
3371 | /* confdefs.h. */ | |
3372 | _ACEOF | |
3373 | cat confdefs.h >>conftest.$ac_ext | |
3374 | cat >>conftest.$ac_ext <<_ACEOF | |
3375 | /* end confdefs.h. */ | |
3376 | #ifdef __STDC__ | |
3377 | # include <limits.h> | |
3378 | #else | |
3379 | # include <assert.h> | |
3380 | #endif | |
3381 | Syntax error | |
3382 | _ACEOF | |
3383 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3384 | case "(($ac_try" in | |
3385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3386 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3387 | esac |
ec6a6fbe AK |
3388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3389 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3391 | ac_status=$? | |
3392 | grep -v '^ *+' conftest.er1 >conftest.err | |
3393 | rm -f conftest.er1 | |
3394 | cat conftest.err >&5 | |
ec6a6fbe | 3395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3396 | (exit $ac_status); } >/dev/null && { |
3397 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3398 | test ! -s conftest.err | |
3399 | }; then | |
3400 | : | |
3401 | else | |
ec6a6fbe | 3402 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3403 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3404 | |
d0191583 JM |
3405 | # Broken: fails on valid input. |
3406 | continue | |
795ca3e5 | 3407 | fi |
795ca3e5 | 3408 | |
d0191583 | 3409 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3410 | |
d0191583 JM |
3411 | # OK, works on sane cases. Now check whether nonexistent headers |
3412 | # can be detected and how. | |
3413 | cat >conftest.$ac_ext <<_ACEOF | |
3414 | /* confdefs.h. */ | |
3415 | _ACEOF | |
3416 | cat confdefs.h >>conftest.$ac_ext | |
3417 | cat >>conftest.$ac_ext <<_ACEOF | |
3418 | /* end confdefs.h. */ | |
3419 | #include <ac_nonexistent.h> | |
3420 | _ACEOF | |
3421 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3422 | case "(($ac_try" in | |
3423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3424 | *) ac_try_echo=$ac_try;; | |
3425 | esac | |
ec6a6fbe AK |
3426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3427 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3428 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3429 | ac_status=$? | |
3430 | grep -v '^ *+' conftest.er1 >conftest.err | |
3431 | rm -f conftest.er1 | |
3432 | cat conftest.err >&5 | |
ec6a6fbe | 3433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3434 | (exit $ac_status); } >/dev/null && { |
3435 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3436 | test ! -s conftest.err | |
3437 | }; then | |
3438 | # Broken: success on invalid input. | |
3439 | continue | |
3440 | else | |
ec6a6fbe | 3441 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3442 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3443 | |
d0191583 JM |
3444 | # Passes both tests. |
3445 | ac_preproc_ok=: | |
3446 | break | |
3447 | fi | |
795ca3e5 | 3448 | |
d0191583 JM |
3449 | rm -f conftest.err conftest.$ac_ext |
3450 | ||
3451 | done | |
3452 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3453 | rm -f conftest.err conftest.$ac_ext | |
3454 | if $ac_preproc_ok; then | |
3455 | break | |
795ca3e5 AK |
3456 | fi |
3457 | ||
d0191583 JM |
3458 | done |
3459 | ac_cv_prog_CPP=$CPP | |
3460 | ||
3461 | fi | |
3462 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3463 | else |
d0191583 JM |
3464 | ac_cv_prog_CPP=$CPP |
3465 | fi | |
ec6a6fbe AK |
3466 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3467 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3468 | ac_preproc_ok=false |
3469 | for ac_c_preproc_warn_flag in '' yes | |
3470 | do | |
3471 | # Use a header file that comes with gcc, so configuring glibc | |
3472 | # with a fresh cross-compiler works. | |
3473 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3474 | # <limits.h> exists even on freestanding compilers. | |
3475 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3476 | # not just through cpp. "Syntax error" is here to catch this case. | |
3477 | cat >conftest.$ac_ext <<_ACEOF | |
3478 | /* confdefs.h. */ | |
ad6254c5 | 3479 | _ACEOF |
d0191583 JM |
3480 | cat confdefs.h >>conftest.$ac_ext |
3481 | cat >>conftest.$ac_ext <<_ACEOF | |
3482 | /* end confdefs.h. */ | |
3483 | #ifdef __STDC__ | |
3484 | # include <limits.h> | |
3485 | #else | |
3486 | # include <assert.h> | |
3487 | #endif | |
3488 | Syntax error | |
3489 | _ACEOF | |
3490 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3491 | case "(($ac_try" in | |
3492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3493 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3494 | esac |
ec6a6fbe AK |
3495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3496 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3497 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3498 | ac_status=$? | |
3499 | grep -v '^ *+' conftest.er1 >conftest.err | |
3500 | rm -f conftest.er1 | |
3501 | cat conftest.err >&5 | |
ec6a6fbe | 3502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3503 | (exit $ac_status); } >/dev/null && { |
3504 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3505 | test ! -s conftest.err | |
3506 | }; then | |
3507 | : | |
795ca3e5 | 3508 | else |
ec6a6fbe | 3509 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
3511 | ||
3512 | # Broken: fails on valid input. | |
3513 | continue | |
795ca3e5 AK |
3514 | fi |
3515 | ||
d0191583 JM |
3516 | rm -f conftest.err conftest.$ac_ext |
3517 | ||
3518 | # OK, works on sane cases. Now check whether nonexistent headers | |
3519 | # can be detected and how. | |
3520 | cat >conftest.$ac_ext <<_ACEOF | |
3521 | /* confdefs.h. */ | |
3522 | _ACEOF | |
3523 | cat confdefs.h >>conftest.$ac_ext | |
3524 | cat >>conftest.$ac_ext <<_ACEOF | |
3525 | /* end confdefs.h. */ | |
3526 | #include <ac_nonexistent.h> | |
3527 | _ACEOF | |
3528 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3529 | case "(($ac_try" in | |
3530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3531 | *) ac_try_echo=$ac_try;; | |
3532 | esac | |
ec6a6fbe AK |
3533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3534 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3535 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3536 | ac_status=$? | |
3537 | grep -v '^ *+' conftest.er1 >conftest.err | |
3538 | rm -f conftest.er1 | |
3539 | cat conftest.err >&5 | |
ec6a6fbe | 3540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3541 | (exit $ac_status); } >/dev/null && { |
3542 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3543 | test ! -s conftest.err | |
3544 | }; then | |
3545 | # Broken: success on invalid input. | |
3546 | continue | |
795ca3e5 | 3547 | else |
ec6a6fbe | 3548 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3549 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3550 | |
d0191583 JM |
3551 | # Passes both tests. |
3552 | ac_preproc_ok=: | |
3553 | break | |
795ca3e5 | 3554 | fi |
d0191583 JM |
3555 | |
3556 | rm -f conftest.err conftest.$ac_ext | |
3557 | ||
3558 | done | |
3559 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3560 | rm -f conftest.err conftest.$ac_ext | |
3561 | if $ac_preproc_ok; then | |
3562 | : | |
8106cdd5 | 3563 | else |
ec6a6fbe AK |
3564 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3565 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3566 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3567 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3568 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3569 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3570 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3571 | fi |
3572 | ||
d0191583 JM |
3573 | ac_ext=c |
3574 | ac_cpp='$CPP $CPPFLAGS' | |
3575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3578 | ||
7a197a62 | 3579 | |
ec6a6fbe AK |
3580 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3581 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3582 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3583 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3584 | else |
ec6a6fbe | 3585 | if test -z "$GREP"; then |
d0191583 | 3586 | ac_path_GREP_found=false |
ec6a6fbe AK |
3587 | # Loop through the user's path and test for each of PROGNAME-LIST |
3588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3589 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3590 | do |
3591 | IFS=$as_save_IFS | |
3592 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3593 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3594 | for ac_exec_ext in '' $ac_executable_extensions; do |
3595 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3596 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3597 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3598 | # Check for GNU $ac_path_GREP |
3599 | case `"$ac_path_GREP" --version 2>&1` in | |
3600 | *GNU*) | |
3601 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3602 | *) | |
3603 | ac_count=0 | |
ec6a6fbe | 3604 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3605 | while : |
3606 | do | |
3607 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3608 | mv "conftest.tmp" "conftest.in" | |
3609 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3610 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3611 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3612 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3613 | ac_count=`expr $ac_count + 1` | |
3614 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3615 | # Best one so far, save it but keep looking for a better one | |
3616 | ac_cv_path_GREP="$ac_path_GREP" | |
3617 | ac_path_GREP_max=$ac_count | |
3618 | fi | |
3619 | # 10*(2^10) chars as input seems more than enough | |
3620 | test $ac_count -gt 10 && break | |
3621 | done | |
3622 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3623 | esac | |
3624 | ||
ec6a6fbe AK |
3625 | $ac_path_GREP_found && break 3 |
3626 | done | |
d0191583 | 3627 | done |
ad6254c5 | 3628 | done |
7a197a62 | 3629 | IFS=$as_save_IFS |
ec6a6fbe AK |
3630 | if test -z "$ac_cv_path_GREP"; then |
3631 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3632 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3633 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3634 | fi |
80992638 | 3635 | else |
d0191583 | 3636 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3637 | fi |
8106cdd5 | 3638 | |
80992638 | 3639 | fi |
ec6a6fbe AK |
3640 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3641 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3642 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3643 | |
d0191583 | 3644 | |
ec6a6fbe AK |
3645 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3646 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3647 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3648 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3649 | else |
d0191583 JM |
3650 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3651 | then ac_cv_path_EGREP="$GREP -E" | |
3652 | else | |
ec6a6fbe | 3653 | if test -z "$EGREP"; then |
d0191583 | 3654 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3655 | # Loop through the user's path and test for each of PROGNAME-LIST |
3656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3657 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3658 | do |
3659 | IFS=$as_save_IFS | |
3660 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3661 | for ac_prog in egrep; do |
ec6a6fbe AK |
3662 | for ac_exec_ext in '' $ac_executable_extensions; do |
3663 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3664 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3665 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3666 | # Check for GNU $ac_path_EGREP |
3667 | case `"$ac_path_EGREP" --version 2>&1` in | |
3668 | *GNU*) | |
3669 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3670 | *) | |
3671 | ac_count=0 | |
ec6a6fbe | 3672 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3673 | while : |
3674 | do | |
3675 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3676 | mv "conftest.tmp" "conftest.in" | |
3677 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3678 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3679 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3680 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3681 | ac_count=`expr $ac_count + 1` | |
3682 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3683 | # Best one so far, save it but keep looking for a better one | |
3684 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3685 | ac_path_EGREP_max=$ac_count | |
3686 | fi | |
3687 | # 10*(2^10) chars as input seems more than enough | |
3688 | test $ac_count -gt 10 && break | |
3689 | done | |
3690 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3691 | esac |
8a2fc586 | 3692 | |
ec6a6fbe AK |
3693 | $ac_path_EGREP_found && break 3 |
3694 | done | |
d0191583 | 3695 | done |
8a2fc586 | 3696 | done |
7a197a62 | 3697 | IFS=$as_save_IFS |
ec6a6fbe AK |
3698 | if test -z "$ac_cv_path_EGREP"; then |
3699 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3700 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3701 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3702 | fi |
d0191583 JM |
3703 | else |
3704 | ac_cv_path_EGREP=$EGREP | |
3705 | fi | |
ad6254c5 | 3706 | |
d0191583 JM |
3707 | fi |
3708 | fi | |
ec6a6fbe AK |
3709 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3710 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3711 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3712 | |
3713 | ||
d0191583 | 3714 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3715 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3716 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3717 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3718 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3719 | else |
d0191583 | 3720 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3721 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3722 | /* confdefs.h. */ |
3723 | _ACEOF | |
3724 | cat confdefs.h >>conftest.$ac_ext | |
3725 | cat >>conftest.$ac_ext <<_ACEOF | |
3726 | /* end confdefs.h. */ | |
d0191583 JM |
3727 | #include <sgtty.h> |
3728 | Autoconf TIOCGETP | |
ad6254c5 | 3729 | _ACEOF |
d0191583 JM |
3730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3731 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3732 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3733 | else |
d0191583 | 3734 | ac_cv_prog_gcc_traditional=no |
80992638 | 3735 | fi |
d0191583 | 3736 | rm -f conftest* |
ad6254c5 | 3737 | |
8106cdd5 | 3738 | |
d0191583 JM |
3739 | if test $ac_cv_prog_gcc_traditional = no; then |
3740 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3741 | /* confdefs.h. */ |
3742 | _ACEOF | |
3743 | cat confdefs.h >>conftest.$ac_ext | |
3744 | cat >>conftest.$ac_ext <<_ACEOF | |
3745 | /* end confdefs.h. */ | |
d0191583 JM |
3746 | #include <termio.h> |
3747 | Autoconf TCGETA | |
ad6254c5 | 3748 | _ACEOF |
d0191583 JM |
3749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3750 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3751 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3752 | fi |
d0191583 | 3753 | rm -f conftest* |
795ca3e5 | 3754 | |
d0191583 | 3755 | fi |
795ca3e5 | 3756 | fi |
ec6a6fbe AK |
3757 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3758 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3759 | if test $ac_cv_prog_gcc_traditional = yes; then |
3760 | CC="$CC -traditional" | |
3761 | fi | |
795ca3e5 AK |
3762 | fi |
3763 | ||
d0191583 JM |
3764 | # Find a good install program. We prefer a C program (faster), |
3765 | # so one script is as good as another. But avoid the broken or | |
3766 | # incompatible versions: | |
3767 | # SysV /etc/install, /usr/sbin/install | |
3768 | # SunOS /usr/etc/install | |
3769 | # IRIX /sbin/install | |
3770 | # AIX /bin/install | |
3771 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3772 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3773 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3774 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3775 | # OS/2's system install, which has a completely different semantic | |
3776 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3777 | # Reject install programs that cannot install multiple files. |
3778 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3779 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3780 | if test -z "$INSTALL"; then |
3781 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3782 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3783 | else |
d0191583 JM |
3784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3785 | for as_dir in $PATH | |
3786 | do | |
3787 | IFS=$as_save_IFS | |
3788 | test -z "$as_dir" && as_dir=. | |
3789 | # Account for people who put trailing slashes in PATH elements. | |
3790 | case $as_dir/ in | |
3791 | ./ | .// | /cC/* | \ | |
3792 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3793 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3794 | /usr/ucb/* ) ;; | |
3795 | *) | |
3796 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3797 | # Don't use installbsd from OSF since it installs stuff as root | |
3798 | # by default. | |
3799 | for ac_prog in ginstall scoinst install; do | |
3800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3801 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3802 | if test $ac_prog = install && | |
3803 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3804 | # AIX install. It has an incompatible calling convention. | |
3805 | : | |
3806 | elif test $ac_prog = install && | |
3807 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3808 | # program-specific install script used by HP pwplus--don't use. | |
3809 | : | |
3810 | else | |
ec6a6fbe AK |
3811 | rm -rf conftest.one conftest.two conftest.dir |
3812 | echo one > conftest.one | |
3813 | echo two > conftest.two | |
3814 | mkdir conftest.dir | |
3815 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3816 | test -s conftest.one && test -s conftest.two && | |
3817 | test -s conftest.dir/conftest.one && | |
3818 | test -s conftest.dir/conftest.two | |
3819 | then | |
3820 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3821 | break 3 | |
3822 | fi | |
d0191583 JM |
3823 | fi |
3824 | fi | |
3825 | done | |
3826 | done | |
3827 | ;; | |
3828 | esac | |
ec6a6fbe | 3829 | |
d0191583 JM |
3830 | done |
3831 | IFS=$as_save_IFS | |
80992638 | 3832 | |
ec6a6fbe | 3833 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3834 | |
3835 | fi | |
3836 | if test "${ac_cv_path_install+set}" = set; then | |
3837 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3838 | else |
d0191583 JM |
3839 | # As a last resort, use the slow shell script. Don't cache a |
3840 | # value for INSTALL within a source directory, because that will | |
3841 | # break other packages using the cache if that directory is | |
3842 | # removed, or if the value is a relative name. | |
3843 | INSTALL=$ac_install_sh | |
7a197a62 | 3844 | fi |
d0191583 | 3845 | fi |
ec6a6fbe AK |
3846 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3847 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3848 | |
d0191583 JM |
3849 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3850 | # It thinks the first close brace ends the variable substitution. | |
3851 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3852 | |
d0191583 | 3853 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3854 | |
d0191583 JM |
3855 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3856 | ||
ec6a6fbe AK |
3857 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3858 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3859 | LN_S=$as_ln_s |
3860 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3861 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3862 | $as_echo "yes" >&6; } | |
d0191583 | 3863 | else |
ec6a6fbe AK |
3864 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3865 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3866 | fi |
d0191583 | 3867 | |
ec6a6fbe AK |
3868 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3869 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3870 | set x ${MAKE-make} | |
3871 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3872 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3873 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3874 | else |
d0191583 JM |
3875 | cat >conftest.make <<\_ACEOF |
3876 | SHELL = /bin/sh | |
3877 | all: | |
3878 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3879 | _ACEOF | |
3880 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3881 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3882 | *@@@%%%=?*=@@@%%%*) | |
3883 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3884 | *) | |
3885 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3886 | esac | |
3887 | rm -f conftest.make | |
ad6254c5 | 3888 | fi |
d0191583 | 3889 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3890 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3891 | $as_echo "yes" >&6; } | |
d0191583 JM |
3892 | SET_MAKE= |
3893 | else | |
ec6a6fbe AK |
3894 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3895 | $as_echo "no" >&6; } | |
d0191583 | 3896 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3897 | fi |
8106cdd5 | 3898 | |
ec6a6fbe AK |
3899 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3900 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3901 | if test -z "$MKDIR_P"; then |
3902 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3903 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3904 | else |
3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3906 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3907 | do | |
3908 | IFS=$as_save_IFS | |
3909 | test -z "$as_dir" && as_dir=. | |
3910 | for ac_prog in mkdir gmkdir; do | |
3911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3912 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3913 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3914 | 'mkdir (GNU coreutils) '* | \ | |
3915 | 'mkdir (coreutils) '* | \ | |
3916 | 'mkdir (fileutils) '4.1*) | |
3917 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3918 | break 3;; | |
3919 | esac | |
3920 | done | |
3921 | done | |
3922 | done | |
3923 | IFS=$as_save_IFS | |
3924 | ||
3925 | fi | |
3926 | ||
3927 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3928 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3929 | else | |
3930 | # As a last resort, use the slow shell script. Don't cache a | |
3931 | # value for MKDIR_P within a source directory, because that will | |
3932 | # break other packages using the cache if that directory is | |
3933 | # removed, or if the value is a relative name. | |
3934 | test -d ./--version && rmdir ./--version | |
3935 | MKDIR_P="$ac_install_sh -d" | |
3936 | fi | |
3937 | fi | |
ec6a6fbe AK |
3938 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3939 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3940 | |
d0191583 JM |
3941 | if test -n "$ac_tool_prefix"; then |
3942 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3943 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3944 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3945 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3946 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3947 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3948 | else |
3949 | if test -n "$RANLIB"; then | |
3950 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3951 | else | |
3952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3953 | for as_dir in $PATH | |
3954 | do | |
3955 | IFS=$as_save_IFS | |
3956 | test -z "$as_dir" && as_dir=. | |
3957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3959 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3960 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3961 | break 2 |
3962 | fi | |
3963 | done | |
3964 | done | |
3965 | IFS=$as_save_IFS | |
8106cdd5 | 3966 | |
795ca3e5 | 3967 | fi |
d0191583 JM |
3968 | fi |
3969 | RANLIB=$ac_cv_prog_RANLIB | |
3970 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3971 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3972 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3973 | else |
ec6a6fbe AK |
3974 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3975 | $as_echo "no" >&6; } | |
d0191583 JM |
3976 | fi |
3977 | ||
8106cdd5 | 3978 | |
ad6254c5 | 3979 | fi |
d0191583 JM |
3980 | if test -z "$ac_cv_prog_RANLIB"; then |
3981 | ac_ct_RANLIB=$RANLIB | |
3982 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3983 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3984 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3985 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3986 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3987 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3988 | else |
d0191583 JM |
3989 | if test -n "$ac_ct_RANLIB"; then |
3990 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3991 | else | |
3992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3993 | for as_dir in $PATH | |
8106cdd5 | 3994 | do |
d0191583 JM |
3995 | IFS=$as_save_IFS |
3996 | test -z "$as_dir" && as_dir=. | |
3997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3999 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 4000 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4001 | break 2 |
4002 | fi | |
4003 | done | |
4004 | done | |
4005 | IFS=$as_save_IFS | |
4006 | ||
4007 | fi | |
4008 | fi | |
4009 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4010 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
4011 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4012 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4013 | else |
ec6a6fbe AK |
4014 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4015 | $as_echo "no" >&6; } | |
d0191583 | 4016 | fi |
ad6254c5 | 4017 | |
d0191583 JM |
4018 | if test "x$ac_ct_RANLIB" = x; then |
4019 | RANLIB=":" | |
4020 | else | |
4021 | case $cross_compiling:$ac_tool_warned in | |
4022 | yes:) | |
ec6a6fbe AK |
4023 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4025 | ac_tool_warned=yes ;; |
4026 | esac | |
4027 | RANLIB=$ac_ct_RANLIB | |
4028 | fi | |
4029 | else | |
4030 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4031 | fi |
7a197a62 | 4032 | |
d0191583 JM |
4033 | # Extract the first word of "cflow", so it can be a program name with args. |
4034 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4035 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4036 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4037 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4038 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4039 | else |
4040 | case $CFLOW_CMD in | |
4041 | [\\/]* | ?:[\\/]*) | |
4042 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4043 | ;; | |
4044 | *) | |
4045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4046 | for as_dir in $PATH | |
4047 | do | |
4048 | IFS=$as_save_IFS | |
4049 | test -z "$as_dir" && as_dir=. | |
4050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4052 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4053 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4054 | break 2 |
4055 | fi | |
4056 | done | |
4057 | done | |
4058 | IFS=$as_save_IFS | |
ad6254c5 | 4059 | |
d0191583 | 4060 | ;; |
7a197a62 | 4061 | esac |
d0191583 JM |
4062 | fi |
4063 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4064 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4065 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4066 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4067 | else |
ec6a6fbe AK |
4068 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4069 | $as_echo "no" >&6; } | |
795ca3e5 | 4070 | fi |
7a197a62 | 4071 | |
ad6254c5 | 4072 | |
d0191583 JM |
4073 | # Extract the first word of "cscope", so it can be a program name with args. |
4074 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4075 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4076 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4077 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4078 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4079 | else |
4080 | case $CSCOPE_CMD in | |
4081 | [\\/]* | ?:[\\/]*) | |
4082 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4083 | ;; | |
4084 | *) | |
4085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4086 | for as_dir in $PATH | |
4087 | do | |
4088 | IFS=$as_save_IFS | |
4089 | test -z "$as_dir" && as_dir=. | |
4090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4092 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4093 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4094 | break 2 |
4095 | fi | |
795ca3e5 | 4096 | done |
d0191583 JM |
4097 | done |
4098 | IFS=$as_save_IFS | |
795ca3e5 | 4099 | |
d0191583 JM |
4100 | ;; |
4101 | esac | |
ad6254c5 | 4102 | fi |
d0191583 JM |
4103 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4104 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4105 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4106 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4107 | else |
ec6a6fbe AK |
4108 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4109 | $as_echo "no" >&6; } | |
795ca3e5 | 4110 | fi |
ad6254c5 | 4111 | |
7a197a62 | 4112 | |
ad6254c5 | 4113 | |
d0191583 JM |
4114 | ################################################################################ |
4115 | ||
4116 | ||
4117 | ||
4118 | ||
4119 | ||
4120 | ac_header_dirent=no | |
4121 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4122 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4123 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4124 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4125 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4126 | $as_echo_n "(cached) " >&6 |
d0191583 | 4127 | else |
ad6254c5 | 4128 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4129 | /* confdefs.h. */ |
4130 | _ACEOF | |
4131 | cat confdefs.h >>conftest.$ac_ext | |
4132 | cat >>conftest.$ac_ext <<_ACEOF | |
4133 | /* end confdefs.h. */ | |
d0191583 JM |
4134 | #include <sys/types.h> |
4135 | #include <$ac_hdr> | |
4136 | ||
4137 | int | |
4138 | main () | |
4139 | { | |
4140 | if ((DIR *) 0) | |
4141 | return 0; | |
4142 | ; | |
4143 | return 0; | |
4144 | } | |
ad6254c5 | 4145 | _ACEOF |
d0191583 JM |
4146 | rm -f conftest.$ac_objext |
4147 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4148 | case "(($ac_try" in |
4149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4150 | *) ac_try_echo=$ac_try;; | |
4151 | esac | |
ec6a6fbe AK |
4152 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4153 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4154 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4155 | ac_status=$? |
4156 | grep -v '^ *+' conftest.er1 >conftest.err | |
4157 | rm -f conftest.er1 | |
4158 | cat conftest.err >&5 | |
ec6a6fbe | 4159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4160 | (exit $ac_status); } && { |
4161 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4162 | test ! -s conftest.err |
d0191583 JM |
4163 | } && test -s conftest.$ac_objext; then |
4164 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4165 | else |
ec6a6fbe | 4166 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4167 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4168 | |
d0191583 | 4169 | eval "$as_ac_Header=no" |
795ca3e5 | 4170 | fi |
7a197a62 | 4171 | |
d0191583 | 4172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4173 | fi |
ec6a6fbe AK |
4174 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4175 | $as_echo "$as_val"'` | |
4176 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4177 | $as_echo "$ac_res" >&6; } | |
4178 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4179 | $as_echo "$as_val"'` | |
4180 | if test "x$as_val" = x""yes; then | |
d0191583 | 4181 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4182 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4183 | _ACEOF |
795ca3e5 | 4184 | |
d0191583 JM |
4185 | ac_header_dirent=$ac_hdr; break |
4186 | fi | |
ad6254c5 | 4187 | |
d0191583 JM |
4188 | done |
4189 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4190 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4191 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4192 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4193 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4194 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4195 | else |
d0191583 JM |
4196 | ac_func_search_save_LIBS=$LIBS |
4197 | cat >conftest.$ac_ext <<_ACEOF | |
4198 | /* confdefs.h. */ | |
4199 | _ACEOF | |
4200 | cat confdefs.h >>conftest.$ac_ext | |
4201 | cat >>conftest.$ac_ext <<_ACEOF | |
4202 | /* end confdefs.h. */ | |
ad6254c5 | 4203 | |
d0191583 JM |
4204 | /* Override any GCC internal prototype to avoid an error. |
4205 | Use char because int might match the return type of a GCC | |
4206 | builtin and then its argument prototype would still apply. */ | |
4207 | #ifdef __cplusplus | |
4208 | extern "C" | |
4209 | #endif | |
4210 | char opendir (); | |
4211 | int | |
4212 | main () | |
4213 | { | |
4214 | return opendir (); | |
4215 | ; | |
4216 | return 0; | |
4217 | } | |
4218 | _ACEOF | |
4219 | for ac_lib in '' dir; do | |
4220 | if test -z "$ac_lib"; then | |
4221 | ac_res="none required" | |
4222 | else | |
4223 | ac_res=-l$ac_lib | |
4224 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4225 | fi | |
4226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4227 | if { (ac_try="$ac_link" | |
4228 | case "(($ac_try" in | |
4229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4230 | *) ac_try_echo=$ac_try;; | |
4231 | esac | |
ec6a6fbe AK |
4232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4233 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4234 | (eval "$ac_link") 2>conftest.er1 |
4235 | ac_status=$? | |
4236 | grep -v '^ *+' conftest.er1 >conftest.err | |
4237 | rm -f conftest.er1 | |
4238 | cat conftest.err >&5 | |
ec6a6fbe | 4239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4240 | (exit $ac_status); } && { |
4241 | test -z "$ac_c_werror_flag" || | |
4242 | test ! -s conftest.err | |
ec6a6fbe AK |
4243 | } && test -s conftest$ac_exeext && { |
4244 | test "$cross_compiling" = yes || | |
4245 | $as_test_x conftest$ac_exeext | |
4246 | }; then | |
d0191583 JM |
4247 | ac_cv_search_opendir=$ac_res |
4248 | else | |
ec6a6fbe | 4249 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4250 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4251 | |
ad6254c5 | 4252 | |
795ca3e5 | 4253 | fi |
ad6254c5 | 4254 | |
ec6a6fbe | 4255 | rm -rf conftest.dSYM |
d0191583 JM |
4256 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4257 | conftest$ac_exeext | |
4258 | if test "${ac_cv_search_opendir+set}" = set; then | |
4259 | break | |
7a197a62 | 4260 | fi |
d0191583 JM |
4261 | done |
4262 | if test "${ac_cv_search_opendir+set}" = set; then | |
4263 | : | |
7a197a62 | 4264 | else |
d0191583 | 4265 | ac_cv_search_opendir=no |
7a197a62 | 4266 | fi |
d0191583 JM |
4267 | rm conftest.$ac_ext |
4268 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4269 | fi |
ec6a6fbe AK |
4270 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4271 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4272 | ac_res=$ac_cv_search_opendir |
4273 | if test "$ac_res" != no; then | |
4274 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4275 | |
d0191583 | 4276 | fi |
7a197a62 | 4277 | |
7a197a62 | 4278 | else |
ec6a6fbe AK |
4279 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4280 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4281 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4282 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4283 | else |
d0191583 JM |
4284 | ac_func_search_save_LIBS=$LIBS |
4285 | cat >conftest.$ac_ext <<_ACEOF | |
4286 | /* confdefs.h. */ | |
4287 | _ACEOF | |
4288 | cat confdefs.h >>conftest.$ac_ext | |
4289 | cat >>conftest.$ac_ext <<_ACEOF | |
4290 | /* end confdefs.h. */ | |
7a197a62 | 4291 | |
d0191583 JM |
4292 | /* Override any GCC internal prototype to avoid an error. |
4293 | Use char because int might match the return type of a GCC | |
4294 | builtin and then its argument prototype would still apply. */ | |
4295 | #ifdef __cplusplus | |
4296 | extern "C" | |
4297 | #endif | |
4298 | char opendir (); | |
4299 | int | |
4300 | main () | |
4301 | { | |
4302 | return opendir (); | |
4303 | ; | |
4304 | return 0; | |
4305 | } | |
4306 | _ACEOF | |
4307 | for ac_lib in '' x; do | |
4308 | if test -z "$ac_lib"; then | |
4309 | ac_res="none required" | |
4310 | else | |
4311 | ac_res=-l$ac_lib | |
4312 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4313 | fi | |
4314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4315 | if { (ac_try="$ac_link" | |
4316 | case "(($ac_try" in | |
4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4318 | *) ac_try_echo=$ac_try;; | |
4319 | esac | |
ec6a6fbe AK |
4320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4321 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4322 | (eval "$ac_link") 2>conftest.er1 |
4323 | ac_status=$? | |
4324 | grep -v '^ *+' conftest.er1 >conftest.err | |
4325 | rm -f conftest.er1 | |
4326 | cat conftest.err >&5 | |
ec6a6fbe | 4327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4328 | (exit $ac_status); } && { |
4329 | test -z "$ac_c_werror_flag" || | |
4330 | test ! -s conftest.err | |
ec6a6fbe AK |
4331 | } && test -s conftest$ac_exeext && { |
4332 | test "$cross_compiling" = yes || | |
4333 | $as_test_x conftest$ac_exeext | |
4334 | }; then | |
d0191583 JM |
4335 | ac_cv_search_opendir=$ac_res |
4336 | else | |
ec6a6fbe | 4337 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4338 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4339 | |
4340 | ||
4341 | fi | |
4342 | ||
ec6a6fbe | 4343 | rm -rf conftest.dSYM |
d0191583 JM |
4344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4345 | conftest$ac_exeext | |
4346 | if test "${ac_cv_search_opendir+set}" = set; then | |
4347 | break | |
7a197a62 | 4348 | fi |
d0191583 JM |
4349 | done |
4350 | if test "${ac_cv_search_opendir+set}" = set; then | |
4351 | : | |
7a197a62 | 4352 | else |
d0191583 | 4353 | ac_cv_search_opendir=no |
7a197a62 | 4354 | fi |
d0191583 JM |
4355 | rm conftest.$ac_ext |
4356 | LIBS=$ac_func_search_save_LIBS | |
4357 | fi | |
ec6a6fbe AK |
4358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4359 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4360 | ac_res=$ac_cv_search_opendir |
4361 | if test "$ac_res" != no; then | |
4362 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4363 | |
7a197a62 | 4364 | fi |
7a197a62 | 4365 | |
d0191583 | 4366 | fi |
7a197a62 | 4367 | |
ec6a6fbe AK |
4368 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4369 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4370 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4371 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4372 | else |
4373 | cat >conftest.$ac_ext <<_ACEOF | |
4374 | /* confdefs.h. */ | |
4375 | _ACEOF | |
4376 | cat confdefs.h >>conftest.$ac_ext | |
4377 | cat >>conftest.$ac_ext <<_ACEOF | |
4378 | /* end confdefs.h. */ | |
4379 | #include <stdlib.h> | |
4380 | #include <stdarg.h> | |
4381 | #include <string.h> | |
4382 | #include <float.h> | |
4383 | ||
4384 | int | |
4385 | main () | |
4386 | { | |
4387 | ||
4388 | ; | |
4389 | return 0; | |
4390 | } | |
4391 | _ACEOF | |
4392 | rm -f conftest.$ac_objext | |
4393 | if { (ac_try="$ac_compile" | |
4394 | case "(($ac_try" in | |
4395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4396 | *) ac_try_echo=$ac_try;; | |
4397 | esac | |
ec6a6fbe AK |
4398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4399 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4400 | (eval "$ac_compile") 2>conftest.er1 |
4401 | ac_status=$? | |
4402 | grep -v '^ *+' conftest.er1 >conftest.err | |
4403 | rm -f conftest.er1 | |
4404 | cat conftest.err >&5 | |
ec6a6fbe | 4405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4406 | (exit $ac_status); } && { |
4407 | test -z "$ac_c_werror_flag" || | |
4408 | test ! -s conftest.err | |
4409 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4410 | ac_cv_header_stdc=yes |
4411 | else | |
ec6a6fbe | 4412 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4413 | sed 's/^/| /' conftest.$ac_ext >&5 |
4414 | ||
4415 | ac_cv_header_stdc=no | |
4416 | fi | |
4417 | ||
4418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4419 | ||
4420 | if test $ac_cv_header_stdc = yes; then | |
4421 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4422 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4423 | /* confdefs.h. */ |
4424 | _ACEOF | |
4425 | cat confdefs.h >>conftest.$ac_ext | |
4426 | cat >>conftest.$ac_ext <<_ACEOF | |
4427 | /* end confdefs.h. */ | |
4428 | #include <string.h> | |
8106cdd5 | 4429 | |
ad6254c5 AK |
4430 | _ACEOF |
4431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4432 | $EGREP "memchr" >/dev/null 2>&1; then | |
4433 | : | |
4434 | else | |
4435 | ac_cv_header_stdc=no | |
80992638 | 4436 | fi |
ad6254c5 | 4437 | rm -f conftest* |
795ca3e5 AK |
4438 | |
4439 | fi | |
4440 | ||
ad6254c5 AK |
4441 | if test $ac_cv_header_stdc = yes; then |
4442 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4443 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4444 | /* confdefs.h. */ |
4445 | _ACEOF | |
4446 | cat confdefs.h >>conftest.$ac_ext | |
4447 | cat >>conftest.$ac_ext <<_ACEOF | |
4448 | /* end confdefs.h. */ | |
80992638 | 4449 | #include <stdlib.h> |
ad6254c5 AK |
4450 | |
4451 | _ACEOF | |
80992638 | 4452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4453 | $EGREP "free" >/dev/null 2>&1; then |
4454 | : | |
795ca3e5 | 4455 | else |
ad6254c5 | 4456 | ac_cv_header_stdc=no |
795ca3e5 | 4457 | fi |
80992638 | 4458 | rm -f conftest* |
8106cdd5 | 4459 | |
795ca3e5 AK |
4460 | fi |
4461 | ||
ad6254c5 AK |
4462 | if test $ac_cv_header_stdc = yes; then |
4463 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4464 | if test "$cross_compiling" = yes; then | |
4465 | : | |
795ca3e5 | 4466 | else |
ad6254c5 | 4467 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4468 | /* confdefs.h. */ |
4469 | _ACEOF | |
4470 | cat confdefs.h >>conftest.$ac_ext | |
4471 | cat >>conftest.$ac_ext <<_ACEOF | |
4472 | /* end confdefs.h. */ | |
4473 | #include <ctype.h> | |
7a197a62 | 4474 | #include <stdlib.h> |
ad6254c5 AK |
4475 | #if ((' ' & 0x0FF) == 0x020) |
4476 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4477 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4478 | #else | |
4479 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4480 | (('a' <= (c) && (c) <= 'i') \ |
4481 | || ('j' <= (c) && (c) <= 'r') \ | |
4482 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4483 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4484 | #endif |
ad6254c5 AK |
4485 | |
4486 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4487 | int | |
4488 | main () | |
4489 | { | |
4490 | int i; | |
4491 | for (i = 0; i < 256; i++) | |
4492 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4493 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4494 | return 2; |
4495 | return 0; | |
ad6254c5 AK |
4496 | } |
4497 | _ACEOF | |
4498 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4499 | if { (ac_try="$ac_link" |
4500 | case "(($ac_try" in | |
4501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4502 | *) ac_try_echo=$ac_try;; | |
4503 | esac | |
ec6a6fbe AK |
4504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4505 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4506 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4507 | ac_status=$? |
ec6a6fbe | 4508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4509 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4510 | { (case "(($ac_try" in |
4511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4512 | *) ac_try_echo=$ac_try;; | |
4513 | esac | |
ec6a6fbe AK |
4514 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4515 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4516 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4517 | ac_status=$? |
ec6a6fbe | 4518 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4519 | (exit $ac_status); }; }; then |
4520 | : | |
795ca3e5 | 4521 | else |
ec6a6fbe AK |
4522 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4523 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4524 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4525 | |
ad6254c5 AK |
4526 | ( exit $ac_status ) |
4527 | ac_cv_header_stdc=no | |
80992638 | 4528 | fi |
ec6a6fbe | 4529 | rm -rf conftest.dSYM |
7a197a62 | 4530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4531 | fi |
7a197a62 AK |
4532 | |
4533 | ||
ad6254c5 AK |
4534 | fi |
4535 | fi | |
ec6a6fbe AK |
4536 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4537 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4538 | if test $ac_cv_header_stdc = yes; then |
4539 | ||
4540 | cat >>confdefs.h <<\_ACEOF | |
4541 | #define STDC_HEADERS 1 | |
4542 | _ACEOF | |
795ca3e5 AK |
4543 | |
4544 | fi | |
4545 | ||
d911ec67 | 4546 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4547 | |
ad6254c5 | 4548 | |
7a197a62 | 4549 | |
8106cdd5 | 4550 | |
795ca3e5 | 4551 | |
795ca3e5 | 4552 | |
d911ec67 AK |
4553 | |
4554 | ||
4555 | ||
4556 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4557 | inttypes.h stdint.h unistd.h | |
4558 | do | |
4559 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4560 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4561 | $as_echo_n "checking for $ac_header... " >&6; } | |
4562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4563 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4564 | else |
ad6254c5 | 4565 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4566 | /* confdefs.h. */ |
4567 | _ACEOF | |
4568 | cat confdefs.h >>conftest.$ac_ext | |
4569 | cat >>conftest.$ac_ext <<_ACEOF | |
4570 | /* end confdefs.h. */ | |
d911ec67 | 4571 | $ac_includes_default |
ad6254c5 | 4572 | |
d911ec67 | 4573 | #include <$ac_header> |
ad6254c5 AK |
4574 | _ACEOF |
4575 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4576 | if { (ac_try="$ac_compile" |
4577 | case "(($ac_try" in | |
4578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4579 | *) ac_try_echo=$ac_try;; | |
4580 | esac | |
ec6a6fbe AK |
4581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4582 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4583 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4584 | ac_status=$? |
8a2fc586 AK |
4585 | grep -v '^ *+' conftest.er1 >conftest.err |
4586 | rm -f conftest.er1 | |
4587 | cat conftest.err >&5 | |
ec6a6fbe | 4588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4589 | (exit $ac_status); } && { |
4590 | test -z "$ac_c_werror_flag" || | |
4591 | test ! -s conftest.err | |
4592 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4593 | eval "$as_ac_Header=yes" |
795ca3e5 | 4594 | else |
ec6a6fbe | 4595 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4596 | sed 's/^/| /' conftest.$ac_ext >&5 |
4597 | ||
d911ec67 | 4598 | eval "$as_ac_Header=no" |
795ca3e5 | 4599 | fi |
7a197a62 AK |
4600 | |
4601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4602 | fi |
d911ec67 AK |
4603 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4604 | $as_echo "$as_val"'` | |
4605 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4606 | $as_echo "$ac_res" >&6; } | |
4607 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4608 | $as_echo "$as_val"'` | |
4609 | if test "x$as_val" = x""yes; then | |
4610 | cat >>confdefs.h <<_ACEOF | |
4611 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4612 | _ACEOF |
b896caa1 | 4613 | |
8106cdd5 | 4614 | fi |
b896caa1 | 4615 | |
d911ec67 | 4616 | done |
d0191583 JM |
4617 | |
4618 | ||
d911ec67 AK |
4619 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4620 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4621 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4622 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4623 | else |
4624 | cat >conftest.$ac_ext <<_ACEOF | |
4625 | /* confdefs.h. */ | |
4626 | _ACEOF | |
4627 | cat confdefs.h >>conftest.$ac_ext | |
4628 | cat >>conftest.$ac_ext <<_ACEOF | |
4629 | /* end confdefs.h. */ | |
d911ec67 AK |
4630 | #include <sys/types.h> |
4631 | int | |
4632 | main () | |
4633 | { | |
4634 | return makedev(0, 0); | |
4635 | ; | |
4636 | return 0; | |
4637 | } | |
d0191583 | 4638 | _ACEOF |
d911ec67 AK |
4639 | rm -f conftest.$ac_objext conftest$ac_exeext |
4640 | if { (ac_try="$ac_link" | |
d0191583 JM |
4641 | case "(($ac_try" in |
4642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4643 | *) ac_try_echo=$ac_try;; | |
4644 | esac | |
ec6a6fbe AK |
4645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4646 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4647 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4648 | ac_status=$? |
4649 | grep -v '^ *+' conftest.er1 >conftest.err | |
4650 | rm -f conftest.er1 | |
4651 | cat conftest.err >&5 | |
ec6a6fbe | 4652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4653 | (exit $ac_status); } && { |
4654 | test -z "$ac_c_werror_flag" || | |
4655 | test ! -s conftest.err | |
d911ec67 AK |
4656 | } && test -s conftest$ac_exeext && { |
4657 | test "$cross_compiling" = yes || | |
4658 | $as_test_x conftest$ac_exeext | |
4659 | }; then | |
4660 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4661 | else |
ec6a6fbe | 4662 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4663 | sed 's/^/| /' conftest.$ac_ext >&5 |
4664 | ||
d911ec67 | 4665 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4666 | fi |
4667 | ||
d911ec67 AK |
4668 | rm -rf conftest.dSYM |
4669 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4670 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4671 | |
4672 | fi | |
d911ec67 AK |
4673 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4674 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4675 | |
d911ec67 AK |
4676 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4677 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4678 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4679 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4680 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4681 | $as_echo_n "(cached) " >&6 |
d0191583 | 4682 | fi |
d911ec67 AK |
4683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4684 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4685 | else |
d0191583 | 4686 | # Is the header compilable? |
d911ec67 AK |
4687 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4688 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4689 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4690 | /* confdefs.h. */ |
4691 | _ACEOF | |
4692 | cat confdefs.h >>conftest.$ac_ext | |
4693 | cat >>conftest.$ac_ext <<_ACEOF | |
4694 | /* end confdefs.h. */ | |
4695 | $ac_includes_default | |
d911ec67 | 4696 | #include <sys/mkdev.h> |
ad6254c5 AK |
4697 | _ACEOF |
4698 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4699 | if { (ac_try="$ac_compile" |
4700 | case "(($ac_try" in | |
4701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4702 | *) ac_try_echo=$ac_try;; | |
4703 | esac | |
ec6a6fbe AK |
4704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4705 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4706 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4707 | ac_status=$? |
8a2fc586 AK |
4708 | grep -v '^ *+' conftest.er1 >conftest.err |
4709 | rm -f conftest.er1 | |
4710 | cat conftest.err >&5 | |
ec6a6fbe | 4711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4712 | (exit $ac_status); } && { |
4713 | test -z "$ac_c_werror_flag" || | |
4714 | test ! -s conftest.err | |
4715 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4716 | ac_header_compiler=yes |
ad6254c5 | 4717 | else |
ec6a6fbe | 4718 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4719 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4720 | |
d0191583 | 4721 | ac_header_compiler=no |
ad6254c5 | 4722 | fi |
7a197a62 AK |
4723 | |
4724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4725 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4726 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4727 | |
4728 | # Is the header present? | |
d911ec67 AK |
4729 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4730 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4731 | cat >conftest.$ac_ext <<_ACEOF |
4732 | /* confdefs.h. */ | |
4733 | _ACEOF | |
4734 | cat confdefs.h >>conftest.$ac_ext | |
4735 | cat >>conftest.$ac_ext <<_ACEOF | |
4736 | /* end confdefs.h. */ | |
d911ec67 | 4737 | #include <sys/mkdev.h> |
d0191583 JM |
4738 | _ACEOF |
4739 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4740 | case "(($ac_try" in | |
4741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4742 | *) ac_try_echo=$ac_try;; | |
4743 | esac | |
ec6a6fbe AK |
4744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4745 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4747 | ac_status=$? | |
4748 | grep -v '^ *+' conftest.er1 >conftest.err | |
4749 | rm -f conftest.er1 | |
4750 | cat conftest.err >&5 | |
ec6a6fbe | 4751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4752 | (exit $ac_status); } >/dev/null && { |
4753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4754 | test ! -s conftest.err | |
4755 | }; then | |
4756 | ac_header_preproc=yes | |
4757 | else | |
ec6a6fbe | 4758 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4759 | sed 's/^/| /' conftest.$ac_ext >&5 |
4760 | ||
4761 | ac_header_preproc=no | |
4762 | fi | |
4763 | ||
4764 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4765 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4766 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4767 | |
4768 | # So? What about this header? | |
4769 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4770 | yes:no: ) | |
d911ec67 AK |
4771 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4772 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4773 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4774 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4775 | ac_header_preproc=yes |
4776 | ;; | |
4777 | no:yes:* ) | |
d911ec67 AK |
4778 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4779 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4780 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4781 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4782 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4783 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4784 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4785 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4786 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4787 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4788 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4789 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4790 | |
4791 | ;; | |
4792 | esac | |
d911ec67 AK |
4793 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4794 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4795 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4796 | $as_echo_n "(cached) " >&6 |
d0191583 | 4797 | else |
d911ec67 | 4798 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4799 | fi |
d911ec67 AK |
4800 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4801 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4802 | |
4803 | fi | |
d911ec67 AK |
4804 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4805 | ||
4806 | cat >>confdefs.h <<\_ACEOF | |
4807 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4808 | _ACEOF |
a38df97f | 4809 | |
80992638 AK |
4810 | fi |
4811 | ||
80992638 | 4812 | |
5a52dca9 | 4813 | |
d911ec67 AK |
4814 | if test $ac_cv_header_sys_mkdev_h = no; then |
4815 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4816 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4817 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4818 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4819 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4820 | fi |
d911ec67 AK |
4821 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4822 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4823 | else |
4824 | # Is the header compilable? | |
d911ec67 AK |
4825 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4826 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4827 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4828 | /* confdefs.h. */ |
4829 | _ACEOF | |
4830 | cat confdefs.h >>conftest.$ac_ext | |
4831 | cat >>conftest.$ac_ext <<_ACEOF | |
4832 | /* end confdefs.h. */ | |
4833 | $ac_includes_default | |
d911ec67 | 4834 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4835 | _ACEOF |
4836 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4837 | if { (ac_try="$ac_compile" |
4838 | case "(($ac_try" in | |
4839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4840 | *) ac_try_echo=$ac_try;; | |
4841 | esac | |
ec6a6fbe AK |
4842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4843 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4844 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4845 | ac_status=$? |
8a2fc586 AK |
4846 | grep -v '^ *+' conftest.er1 >conftest.err |
4847 | rm -f conftest.er1 | |
4848 | cat conftest.err >&5 | |
ec6a6fbe | 4849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4850 | (exit $ac_status); } && { |
4851 | test -z "$ac_c_werror_flag" || | |
4852 | test ! -s conftest.err | |
4853 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4854 | ac_header_compiler=yes |
4855 | else | |
ec6a6fbe | 4856 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4857 | sed 's/^/| /' conftest.$ac_ext >&5 |
4858 | ||
4859 | ac_header_compiler=no | |
4860 | fi | |
4861 | ||
4862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4863 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4864 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4865 | |
4866 | # Is the header present? | |
d911ec67 AK |
4867 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4868 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4869 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4870 | /* confdefs.h. */ |
4871 | _ACEOF | |
4872 | cat confdefs.h >>conftest.$ac_ext | |
4873 | cat >>conftest.$ac_ext <<_ACEOF | |
4874 | /* end confdefs.h. */ | |
d911ec67 | 4875 | #include <sys/sysmacros.h> |
ad6254c5 | 4876 | _ACEOF |
7a197a62 AK |
4877 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4878 | case "(($ac_try" in | |
4879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4880 | *) ac_try_echo=$ac_try;; | |
4881 | esac | |
ec6a6fbe AK |
4882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4883 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4884 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4885 | ac_status=$? |
4886 | grep -v '^ *+' conftest.er1 >conftest.err | |
4887 | rm -f conftest.er1 | |
4888 | cat conftest.err >&5 | |
ec6a6fbe | 4889 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4890 | (exit $ac_status); } >/dev/null && { |
4891 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4892 | test ! -s conftest.err | |
4893 | }; then | |
ad6254c5 AK |
4894 | ac_header_preproc=yes |
4895 | else | |
ec6a6fbe | 4896 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4897 | sed 's/^/| /' conftest.$ac_ext >&5 |
4898 | ||
4899 | ac_header_preproc=no | |
4900 | fi | |
7a197a62 | 4901 | |
ad6254c5 | 4902 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4903 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4904 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4905 | |
4906 | # So? What about this header? | |
8a2fc586 AK |
4907 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4908 | yes:no: ) | |
d911ec67 AK |
4909 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4910 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4911 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4912 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4913 | ac_header_preproc=yes |
ad6254c5 | 4914 | ;; |
8a2fc586 | 4915 | no:yes:* ) |
d911ec67 AK |
4916 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4917 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4918 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4919 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4920 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4921 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4922 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4923 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4924 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4925 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4926 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4927 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4928 | |
ad6254c5 AK |
4929 | ;; |
4930 | esac | |
d911ec67 AK |
4931 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4932 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4933 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4934 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4935 | else |
d911ec67 | 4936 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4937 | fi |
d911ec67 AK |
4938 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4939 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4940 | |
4941 | fi | |
d911ec67 AK |
4942 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4943 | ||
4944 | cat >>confdefs.h <<\_ACEOF | |
4945 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4946 | _ACEOF |
b896caa1 | 4947 | |
80992638 AK |
4948 | fi |
4949 | ||
d8ac0fbc | 4950 | |
d911ec67 AK |
4951 | fi |
4952 | fi | |
d8ac0fbc | 4953 | |
d911ec67 AK |
4954 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4955 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4956 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4957 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4958 | else |
d911ec67 | 4959 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4960 | /* confdefs.h. */ |
4961 | _ACEOF | |
4962 | cat confdefs.h >>conftest.$ac_ext | |
4963 | cat >>conftest.$ac_ext <<_ACEOF | |
4964 | /* end confdefs.h. */ | |
d911ec67 AK |
4965 | #include <stdlib.h> |
4966 | #include <stdarg.h> | |
4967 | #include <string.h> | |
4968 | #include <float.h> | |
4969 | ||
4970 | int | |
4971 | main () | |
4972 | { | |
4973 | ||
4974 | ; | |
4975 | return 0; | |
4976 | } | |
ad6254c5 AK |
4977 | _ACEOF |
4978 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4979 | if { (ac_try="$ac_compile" |
4980 | case "(($ac_try" in | |
4981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4982 | *) ac_try_echo=$ac_try;; | |
4983 | esac | |
ec6a6fbe AK |
4984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4985 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4986 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4987 | ac_status=$? |
8a2fc586 AK |
4988 | grep -v '^ *+' conftest.er1 >conftest.err |
4989 | rm -f conftest.er1 | |
4990 | cat conftest.err >&5 | |
ec6a6fbe | 4991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4992 | (exit $ac_status); } && { |
4993 | test -z "$ac_c_werror_flag" || | |
4994 | test ! -s conftest.err | |
4995 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4996 | ac_cv_header_stdc=yes |
ad6254c5 | 4997 | else |
ec6a6fbe | 4998 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4999 | sed 's/^/| /' conftest.$ac_ext >&5 |
5000 | ||
d911ec67 | 5001 | ac_cv_header_stdc=no |
ad6254c5 | 5002 | fi |
7a197a62 AK |
5003 | |
5004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5005 | |
d911ec67 AK |
5006 | if test $ac_cv_header_stdc = yes; then |
5007 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5008 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5009 | /* confdefs.h. */ |
5010 | _ACEOF | |
5011 | cat confdefs.h >>conftest.$ac_ext | |
5012 | cat >>conftest.$ac_ext <<_ACEOF | |
5013 | /* end confdefs.h. */ | |
d911ec67 AK |
5014 | #include <string.h> |
5015 | ||
ad6254c5 | 5016 | _ACEOF |
d911ec67 AK |
5017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5018 | $EGREP "memchr" >/dev/null 2>&1; then | |
5019 | : | |
5020 | else | |
5021 | ac_cv_header_stdc=no | |
5022 | fi | |
5023 | rm -f conftest* | |
5024 | ||
5025 | fi | |
5026 | ||
5027 | if test $ac_cv_header_stdc = yes; then | |
5028 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5029 | cat >conftest.$ac_ext <<_ACEOF | |
5030 | /* confdefs.h. */ | |
5031 | _ACEOF | |
5032 | cat confdefs.h >>conftest.$ac_ext | |
5033 | cat >>conftest.$ac_ext <<_ACEOF | |
5034 | /* end confdefs.h. */ | |
5035 | #include <stdlib.h> | |
5036 | ||
5037 | _ACEOF | |
5038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5039 | $EGREP "free" >/dev/null 2>&1; then | |
5040 | : | |
5041 | else | |
5042 | ac_cv_header_stdc=no | |
5043 | fi | |
5044 | rm -f conftest* | |
5045 | ||
5046 | fi | |
5047 | ||
5048 | if test $ac_cv_header_stdc = yes; then | |
5049 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5050 | if test "$cross_compiling" = yes; then | |
5051 | : | |
5052 | else | |
5053 | cat >conftest.$ac_ext <<_ACEOF | |
5054 | /* confdefs.h. */ | |
5055 | _ACEOF | |
5056 | cat confdefs.h >>conftest.$ac_ext | |
5057 | cat >>conftest.$ac_ext <<_ACEOF | |
5058 | /* end confdefs.h. */ | |
5059 | #include <ctype.h> | |
5060 | #include <stdlib.h> | |
5061 | #if ((' ' & 0x0FF) == 0x020) | |
5062 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5063 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5064 | #else | |
5065 | # define ISLOWER(c) \ | |
5066 | (('a' <= (c) && (c) <= 'i') \ | |
5067 | || ('j' <= (c) && (c) <= 'r') \ | |
5068 | || ('s' <= (c) && (c) <= 'z')) | |
5069 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5070 | #endif | |
5071 | ||
5072 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5073 | int | |
5074 | main () | |
5075 | { | |
5076 | int i; | |
5077 | for (i = 0; i < 256; i++) | |
5078 | if (XOR (islower (i), ISLOWER (i)) | |
5079 | || toupper (i) != TOUPPER (i)) | |
5080 | return 2; | |
5081 | return 0; | |
5082 | } | |
5083 | _ACEOF | |
5084 | rm -f conftest$ac_exeext | |
5085 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5086 | case "(($ac_try" in |
5087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5088 | *) ac_try_echo=$ac_try;; | |
5089 | esac | |
ec6a6fbe AK |
5090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5091 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5092 | (eval "$ac_link") 2>&5 |
5093 | ac_status=$? | |
5094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5096 | { (case "(($ac_try" in | |
5097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5098 | *) ac_try_echo=$ac_try;; | |
5099 | esac | |
5100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5101 | $as_echo "$ac_try_echo") >&5 | |
5102 | (eval "$ac_try") 2>&5 | |
5103 | ac_status=$? | |
5104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5105 | (exit $ac_status); }; }; then | |
5106 | : | |
5107 | else | |
5108 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5109 | $as_echo "$as_me: failed program was:" >&5 | |
5110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5111 | ||
5112 | ( exit $ac_status ) | |
5113 | ac_cv_header_stdc=no | |
5114 | fi | |
5115 | rm -rf conftest.dSYM | |
5116 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5117 | fi | |
5118 | ||
5119 | ||
5120 | fi | |
5121 | fi | |
5122 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5123 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5124 | if test $ac_cv_header_stdc = yes; then | |
5125 | ||
5126 | cat >>confdefs.h <<\_ACEOF | |
5127 | #define STDC_HEADERS 1 | |
5128 | _ACEOF | |
5129 | ||
5130 | fi | |
5131 | ||
5132 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5133 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5134 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5135 | $as_echo_n "(cached) " >&6 | |
5136 | else | |
5137 | cat >conftest.$ac_ext <<_ACEOF | |
5138 | /* confdefs.h. */ | |
5139 | _ACEOF | |
5140 | cat confdefs.h >>conftest.$ac_ext | |
5141 | cat >>conftest.$ac_ext <<_ACEOF | |
5142 | /* end confdefs.h. */ | |
5143 | #include <sys/types.h> | |
5144 | #include <sys/wait.h> | |
5145 | #ifndef WEXITSTATUS | |
5146 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5147 | #endif | |
5148 | #ifndef WIFEXITED | |
5149 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5150 | #endif | |
5151 | ||
5152 | int | |
5153 | main () | |
5154 | { | |
5155 | int s; | |
5156 | wait (&s); | |
5157 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5158 | ; | |
5159 | return 0; | |
5160 | } | |
5161 | _ACEOF | |
5162 | rm -f conftest.$ac_objext | |
5163 | if { (ac_try="$ac_compile" | |
5164 | case "(($ac_try" in | |
5165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5166 | *) ac_try_echo=$ac_try;; | |
5167 | esac | |
5168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5169 | $as_echo "$ac_try_echo") >&5 | |
5170 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5171 | ac_status=$? |
5172 | grep -v '^ *+' conftest.er1 >conftest.err | |
5173 | rm -f conftest.er1 | |
5174 | cat conftest.err >&5 | |
ec6a6fbe | 5175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5176 | (exit $ac_status); } && { |
5177 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5178 | test ! -s conftest.err |
d911ec67 AK |
5179 | } && test -s conftest.$ac_objext; then |
5180 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5181 | else |
ec6a6fbe | 5182 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5183 | sed 's/^/| /' conftest.$ac_ext >&5 |
5184 | ||
d911ec67 | 5185 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5186 | fi |
7a197a62 | 5187 | |
d911ec67 AK |
5188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5189 | fi | |
5190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5191 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5192 | if test $ac_cv_header_sys_wait_h = yes; then | |
5193 | ||
5194 | cat >>confdefs.h <<\_ACEOF | |
5195 | #define HAVE_SYS_WAIT_H 1 | |
5196 | _ACEOF | |
5197 | ||
5198 | fi | |
5199 | ||
5200 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5201 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5202 | if test "${ac_cv_header_time+set}" = set; then | |
5203 | $as_echo_n "(cached) " >&6 | |
5204 | else | |
5205 | cat >conftest.$ac_ext <<_ACEOF | |
5206 | /* confdefs.h. */ | |
5207 | _ACEOF | |
5208 | cat confdefs.h >>conftest.$ac_ext | |
5209 | cat >>conftest.$ac_ext <<_ACEOF | |
5210 | /* end confdefs.h. */ | |
5211 | #include <sys/types.h> | |
5212 | #include <sys/time.h> | |
5213 | #include <time.h> | |
5214 | ||
5215 | int | |
5216 | main () | |
5217 | { | |
5218 | if ((struct tm *) 0) | |
5219 | return 0; | |
5220 | ; | |
5221 | return 0; | |
5222 | } | |
5223 | _ACEOF | |
5224 | rm -f conftest.$ac_objext | |
5225 | if { (ac_try="$ac_compile" | |
5226 | case "(($ac_try" in | |
5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5228 | *) ac_try_echo=$ac_try;; | |
5229 | esac | |
5230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5231 | $as_echo "$ac_try_echo") >&5 | |
5232 | (eval "$ac_compile") 2>conftest.er1 | |
5233 | ac_status=$? | |
5234 | grep -v '^ *+' conftest.er1 >conftest.err | |
5235 | rm -f conftest.er1 | |
5236 | cat conftest.err >&5 | |
5237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5238 | (exit $ac_status); } && { | |
5239 | test -z "$ac_c_werror_flag" || | |
5240 | test ! -s conftest.err | |
5241 | } && test -s conftest.$ac_objext; then | |
5242 | ac_cv_header_time=yes | |
5243 | else | |
5244 | $as_echo "$as_me: failed program was:" >&5 | |
5245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5246 | ||
5247 | ac_cv_header_time=no | |
5248 | fi | |
5249 | ||
5250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5251 | fi | |
5252 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5253 | $as_echo "$ac_cv_header_time" >&6; } | |
5254 | if test $ac_cv_header_time = yes; then | |
5255 | ||
5256 | cat >>confdefs.h <<\_ACEOF | |
5257 | #define TIME_WITH_SYS_TIME 1 | |
5258 | _ACEOF | |
5259 | ||
5260 | fi | |
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5278 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5279 | sys/wait.h time.h | |
5280 | do | |
5281 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5282 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5283 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5284 | $as_echo_n "checking for $ac_header... " >&6; } | |
5285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5286 | $as_echo_n "(cached) " >&6 | |
5287 | fi | |
5288 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5289 | $as_echo "$as_val"'` | |
5290 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5291 | $as_echo "$ac_res" >&6; } | |
5292 | else | |
5293 | # Is the header compilable? | |
5294 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5295 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5296 | cat >conftest.$ac_ext <<_ACEOF | |
5297 | /* confdefs.h. */ | |
5298 | _ACEOF | |
5299 | cat confdefs.h >>conftest.$ac_ext | |
5300 | cat >>conftest.$ac_ext <<_ACEOF | |
5301 | /* end confdefs.h. */ | |
5302 | $ac_includes_default | |
5303 | #include <$ac_header> | |
5304 | _ACEOF | |
5305 | rm -f conftest.$ac_objext | |
5306 | if { (ac_try="$ac_compile" | |
5307 | case "(($ac_try" in | |
5308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5309 | *) ac_try_echo=$ac_try;; | |
5310 | esac | |
5311 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5312 | $as_echo "$ac_try_echo") >&5 | |
5313 | (eval "$ac_compile") 2>conftest.er1 | |
5314 | ac_status=$? | |
5315 | grep -v '^ *+' conftest.er1 >conftest.err | |
5316 | rm -f conftest.er1 | |
5317 | cat conftest.err >&5 | |
5318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5319 | (exit $ac_status); } && { | |
5320 | test -z "$ac_c_werror_flag" || | |
5321 | test ! -s conftest.err | |
5322 | } && test -s conftest.$ac_objext; then | |
5323 | ac_header_compiler=yes | |
5324 | else | |
5325 | $as_echo "$as_me: failed program was:" >&5 | |
5326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5327 | ||
5328 | ac_header_compiler=no | |
5329 | fi | |
5330 | ||
5331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5332 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5333 | $as_echo "$ac_header_compiler" >&6; } | |
5334 | ||
5335 | # Is the header present? | |
5336 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5337 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5338 | cat >conftest.$ac_ext <<_ACEOF | |
5339 | /* confdefs.h. */ | |
5340 | _ACEOF | |
5341 | cat confdefs.h >>conftest.$ac_ext | |
5342 | cat >>conftest.$ac_ext <<_ACEOF | |
5343 | /* end confdefs.h. */ | |
5344 | #include <$ac_header> | |
5345 | _ACEOF | |
5346 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5347 | case "(($ac_try" in | |
5348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5349 | *) ac_try_echo=$ac_try;; | |
5350 | esac | |
5351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5352 | $as_echo "$ac_try_echo") >&5 | |
5353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5354 | ac_status=$? | |
5355 | grep -v '^ *+' conftest.er1 >conftest.err | |
5356 | rm -f conftest.er1 | |
5357 | cat conftest.err >&5 | |
5358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5359 | (exit $ac_status); } >/dev/null && { | |
5360 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5361 | test ! -s conftest.err | |
5362 | }; then | |
5363 | ac_header_preproc=yes | |
5364 | else | |
5365 | $as_echo "$as_me: failed program was:" >&5 | |
5366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5367 | ||
5368 | ac_header_preproc=no | |
5369 | fi | |
5370 | ||
5371 | rm -f conftest.err conftest.$ac_ext | |
5372 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5373 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5374 | |
5375 | # So? What about this header? | |
8a2fc586 AK |
5376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5377 | yes:no: ) | |
ec6a6fbe AK |
5378 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5379 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5380 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5381 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5382 | ac_header_preproc=yes |
ad6254c5 | 5383 | ;; |
8a2fc586 | 5384 | no:yes:* ) |
ec6a6fbe AK |
5385 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5386 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5387 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5388 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5389 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5390 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5391 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5392 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5393 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5394 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5395 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5396 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5397 | |
ad6254c5 AK |
5398 | ;; |
5399 | esac | |
d911ec67 AK |
5400 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5401 | $as_echo_n "checking for $ac_header... " >&6; } | |
5402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5403 | $as_echo_n "(cached) " >&6 | |
5404 | else | |
5405 | eval "$as_ac_Header=\$ac_header_preproc" | |
5406 | fi | |
5407 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5408 | $as_echo "$as_val"'` | |
5409 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5410 | $as_echo "$ac_res" >&6; } | |
5411 | ||
5412 | fi | |
5413 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5414 | $as_echo "$as_val"'` | |
5415 | if test "x$as_val" = x""yes; then | |
5416 | cat >>confdefs.h <<_ACEOF | |
5417 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5418 | _ACEOF | |
5419 | ||
5420 | else | |
5421 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5422 | $as_echo "$as_me: error: bailing out" >&2;} | |
5423 | { (exit 1); exit 1; }; } | |
5424 | fi | |
5425 | ||
5426 | done | |
5427 | ||
5428 | ||
5429 | case "$host_os" in | |
5430 | linux*) | |
5431 | ||
5432 | ||
5433 | ||
5434 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5435 | do | |
5436 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5437 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5438 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5439 | $as_echo_n "checking for $ac_header... " >&6; } | |
5440 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5441 | $as_echo_n "(cached) " >&6 | |
5442 | fi | |
5443 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5444 | $as_echo "$as_val"'` | |
5445 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5446 | $as_echo "$ac_res" >&6; } | |
5447 | else | |
5448 | # Is the header compilable? | |
5449 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5450 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5451 | cat >conftest.$ac_ext <<_ACEOF | |
5452 | /* confdefs.h. */ | |
5453 | _ACEOF | |
5454 | cat confdefs.h >>conftest.$ac_ext | |
5455 | cat >>conftest.$ac_ext <<_ACEOF | |
5456 | /* end confdefs.h. */ | |
5457 | $ac_includes_default | |
5458 | #include <$ac_header> | |
5459 | _ACEOF | |
5460 | rm -f conftest.$ac_objext | |
5461 | if { (ac_try="$ac_compile" | |
5462 | case "(($ac_try" in | |
5463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5464 | *) ac_try_echo=$ac_try;; | |
5465 | esac | |
5466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5467 | $as_echo "$ac_try_echo") >&5 | |
5468 | (eval "$ac_compile") 2>conftest.er1 | |
5469 | ac_status=$? | |
5470 | grep -v '^ *+' conftest.er1 >conftest.err | |
5471 | rm -f conftest.er1 | |
5472 | cat conftest.err >&5 | |
5473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5474 | (exit $ac_status); } && { | |
5475 | test -z "$ac_c_werror_flag" || | |
5476 | test ! -s conftest.err | |
5477 | } && test -s conftest.$ac_objext; then | |
5478 | ac_header_compiler=yes | |
5479 | else | |
5480 | $as_echo "$as_me: failed program was:" >&5 | |
5481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5482 | ||
5483 | ac_header_compiler=no | |
5484 | fi | |
5485 | ||
5486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5487 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5488 | $as_echo "$ac_header_compiler" >&6; } | |
5489 | ||
5490 | # Is the header present? | |
5491 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5492 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5493 | cat >conftest.$ac_ext <<_ACEOF | |
5494 | /* confdefs.h. */ | |
5495 | _ACEOF | |
5496 | cat confdefs.h >>conftest.$ac_ext | |
5497 | cat >>conftest.$ac_ext <<_ACEOF | |
5498 | /* end confdefs.h. */ | |
5499 | #include <$ac_header> | |
5500 | _ACEOF | |
5501 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5502 | case "(($ac_try" in | |
5503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5504 | *) ac_try_echo=$ac_try;; | |
5505 | esac | |
5506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5507 | $as_echo "$ac_try_echo") >&5 | |
5508 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5509 | ac_status=$? | |
5510 | grep -v '^ *+' conftest.er1 >conftest.err | |
5511 | rm -f conftest.er1 | |
5512 | cat conftest.err >&5 | |
5513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5514 | (exit $ac_status); } >/dev/null && { | |
5515 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5516 | test ! -s conftest.err | |
5517 | }; then | |
5518 | ac_header_preproc=yes | |
5519 | else | |
5520 | $as_echo "$as_me: failed program was:" >&5 | |
5521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5522 | ||
5523 | ac_header_preproc=no | |
5524 | fi | |
5525 | ||
5526 | rm -f conftest.err conftest.$ac_ext | |
5527 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5528 | $as_echo "$ac_header_preproc" >&6; } | |
5529 | ||
5530 | # So? What about this header? | |
5531 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5532 | yes:no: ) | |
5533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5534 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5536 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5537 | ac_header_preproc=yes | |
5538 | ;; | |
5539 | no:yes:* ) | |
5540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5541 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5543 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5545 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5547 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5549 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5550 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5551 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5552 | ||
5553 | ;; | |
5554 | esac | |
5555 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5556 | $as_echo_n "checking for $ac_header... " >&6; } | |
5557 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5558 | $as_echo_n "(cached) " >&6 | |
5559 | else | |
5560 | eval "$as_ac_Header=\$ac_header_preproc" | |
5561 | fi | |
5562 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5563 | $as_echo "$as_val"'` | |
5564 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5565 | $as_echo "$ac_res" >&6; } | |
5566 | ||
5567 | fi | |
5568 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5569 | $as_echo "$as_val"'` | |
5570 | if test "x$as_val" = x""yes; then | |
5571 | cat >>confdefs.h <<_ACEOF | |
5572 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5573 | _ACEOF | |
5574 | ||
5575 | else | |
5576 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5577 | $as_echo "$as_me: error: bailing out" >&2;} | |
5578 | { (exit 1); exit 1; }; } | |
5579 | fi | |
5580 | ||
5581 | done | |
5582 | ;; | |
5583 | darwin*) | |
5584 | ||
5585 | ||
5586 | for ac_header in machine/endian.h sys/disk.h | |
5587 | do | |
5588 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5589 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5590 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5591 | $as_echo_n "checking for $ac_header... " >&6; } | |
5592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5593 | $as_echo_n "(cached) " >&6 | |
5594 | fi | |
5595 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5596 | $as_echo "$as_val"'` | |
5597 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5598 | $as_echo "$ac_res" >&6; } | |
5599 | else | |
5600 | # Is the header compilable? | |
5601 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5602 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5603 | cat >conftest.$ac_ext <<_ACEOF | |
5604 | /* confdefs.h. */ | |
5605 | _ACEOF | |
5606 | cat confdefs.h >>conftest.$ac_ext | |
5607 | cat >>conftest.$ac_ext <<_ACEOF | |
5608 | /* end confdefs.h. */ | |
5609 | $ac_includes_default | |
5610 | #include <$ac_header> | |
5611 | _ACEOF | |
5612 | rm -f conftest.$ac_objext | |
5613 | if { (ac_try="$ac_compile" | |
5614 | case "(($ac_try" in | |
5615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5616 | *) ac_try_echo=$ac_try;; | |
5617 | esac | |
5618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5619 | $as_echo "$ac_try_echo") >&5 | |
5620 | (eval "$ac_compile") 2>conftest.er1 | |
5621 | ac_status=$? | |
5622 | grep -v '^ *+' conftest.er1 >conftest.err | |
5623 | rm -f conftest.er1 | |
5624 | cat conftest.err >&5 | |
5625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5626 | (exit $ac_status); } && { | |
5627 | test -z "$ac_c_werror_flag" || | |
5628 | test ! -s conftest.err | |
5629 | } && test -s conftest.$ac_objext; then | |
5630 | ac_header_compiler=yes | |
5631 | else | |
5632 | $as_echo "$as_me: failed program was:" >&5 | |
5633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5634 | ||
5635 | ac_header_compiler=no | |
5636 | fi | |
5637 | ||
5638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5639 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5640 | $as_echo "$ac_header_compiler" >&6; } | |
5641 | ||
5642 | # Is the header present? | |
5643 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5644 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5645 | cat >conftest.$ac_ext <<_ACEOF | |
5646 | /* confdefs.h. */ | |
5647 | _ACEOF | |
5648 | cat confdefs.h >>conftest.$ac_ext | |
5649 | cat >>conftest.$ac_ext <<_ACEOF | |
5650 | /* end confdefs.h. */ | |
5651 | #include <$ac_header> | |
5652 | _ACEOF | |
5653 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5654 | case "(($ac_try" in | |
5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5656 | *) ac_try_echo=$ac_try;; | |
5657 | esac | |
5658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5659 | $as_echo "$ac_try_echo") >&5 | |
5660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5661 | ac_status=$? | |
5662 | grep -v '^ *+' conftest.er1 >conftest.err | |
5663 | rm -f conftest.er1 | |
5664 | cat conftest.err >&5 | |
5665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5666 | (exit $ac_status); } >/dev/null && { | |
5667 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5668 | test ! -s conftest.err | |
5669 | }; then | |
5670 | ac_header_preproc=yes | |
5671 | else | |
5672 | $as_echo "$as_me: failed program was:" >&5 | |
5673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5674 | ||
5675 | ac_header_preproc=no | |
5676 | fi | |
5677 | ||
5678 | rm -f conftest.err conftest.$ac_ext | |
5679 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5680 | $as_echo "$ac_header_preproc" >&6; } | |
5681 | ||
5682 | # So? What about this header? | |
5683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5684 | yes:no: ) | |
5685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5686 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5688 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5689 | ac_header_preproc=yes | |
5690 | ;; | |
5691 | no:yes:* ) | |
5692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5693 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5695 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5697 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5699 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5701 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5703 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5704 | ||
5705 | ;; | |
5706 | esac | |
5707 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5708 | $as_echo_n "checking for $ac_header... " >&6; } | |
5709 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5710 | $as_echo_n "(cached) " >&6 | |
5711 | else | |
5712 | eval "$as_ac_Header=\$ac_header_preproc" | |
5713 | fi | |
5714 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5715 | $as_echo "$as_val"'` | |
5716 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5717 | $as_echo "$ac_res" >&6; } | |
5718 | ||
5719 | fi | |
5720 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5721 | $as_echo "$as_val"'` | |
5722 | if test "x$as_val" = x""yes; then | |
5723 | cat >>confdefs.h <<_ACEOF | |
5724 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5725 | _ACEOF | |
5726 | ||
5727 | else | |
5728 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5729 | $as_echo "$as_me: error: bailing out" >&2;} | |
5730 | { (exit 1); exit 1; }; } | |
5731 | fi | |
5732 | ||
5733 | done | |
5734 | ;; | |
5735 | esac | |
5736 | ||
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | ||
5752 | ||
5753 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5754 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5755 | sys/types.h unistd.h | |
5756 | do | |
5757 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5759 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5760 | $as_echo_n "checking for $ac_header... " >&6; } | |
5761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5762 | $as_echo_n "(cached) " >&6 | |
5763 | fi | |
5764 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5765 | $as_echo "$as_val"'` | |
5766 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5767 | $as_echo "$ac_res" >&6; } | |
5768 | else | |
5769 | # Is the header compilable? | |
5770 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5771 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5772 | cat >conftest.$ac_ext <<_ACEOF | |
5773 | /* confdefs.h. */ | |
5774 | _ACEOF | |
5775 | cat confdefs.h >>conftest.$ac_ext | |
5776 | cat >>conftest.$ac_ext <<_ACEOF | |
5777 | /* end confdefs.h. */ | |
5778 | $ac_includes_default | |
5779 | #include <$ac_header> | |
5780 | _ACEOF | |
5781 | rm -f conftest.$ac_objext | |
5782 | if { (ac_try="$ac_compile" | |
5783 | case "(($ac_try" in | |
5784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5785 | *) ac_try_echo=$ac_try;; | |
5786 | esac | |
5787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5788 | $as_echo "$ac_try_echo") >&5 | |
5789 | (eval "$ac_compile") 2>conftest.er1 | |
5790 | ac_status=$? | |
5791 | grep -v '^ *+' conftest.er1 >conftest.err | |
5792 | rm -f conftest.er1 | |
5793 | cat conftest.err >&5 | |
5794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5795 | (exit $ac_status); } && { | |
5796 | test -z "$ac_c_werror_flag" || | |
5797 | test ! -s conftest.err | |
5798 | } && test -s conftest.$ac_objext; then | |
5799 | ac_header_compiler=yes | |
5800 | else | |
5801 | $as_echo "$as_me: failed program was:" >&5 | |
5802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5803 | ||
5804 | ac_header_compiler=no | |
5805 | fi | |
5806 | ||
5807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5808 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5809 | $as_echo "$ac_header_compiler" >&6; } | |
5810 | ||
5811 | # Is the header present? | |
5812 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5813 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5814 | cat >conftest.$ac_ext <<_ACEOF | |
5815 | /* confdefs.h. */ | |
5816 | _ACEOF | |
5817 | cat confdefs.h >>conftest.$ac_ext | |
5818 | cat >>conftest.$ac_ext <<_ACEOF | |
5819 | /* end confdefs.h. */ | |
5820 | #include <$ac_header> | |
5821 | _ACEOF | |
5822 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5823 | case "(($ac_try" in | |
5824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5825 | *) ac_try_echo=$ac_try;; | |
5826 | esac | |
5827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5828 | $as_echo "$ac_try_echo") >&5 | |
5829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5830 | ac_status=$? | |
5831 | grep -v '^ *+' conftest.er1 >conftest.err | |
5832 | rm -f conftest.er1 | |
5833 | cat conftest.err >&5 | |
5834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5835 | (exit $ac_status); } >/dev/null && { | |
5836 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5837 | test ! -s conftest.err | |
5838 | }; then | |
5839 | ac_header_preproc=yes | |
5840 | else | |
5841 | $as_echo "$as_me: failed program was:" >&5 | |
5842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5843 | ||
5844 | ac_header_preproc=no | |
5845 | fi | |
5846 | ||
5847 | rm -f conftest.err conftest.$ac_ext | |
5848 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5849 | $as_echo "$ac_header_preproc" >&6; } | |
5850 | ||
5851 | # So? What about this header? | |
5852 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5853 | yes:no: ) | |
5854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5855 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5857 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5858 | ac_header_preproc=yes | |
5859 | ;; | |
5860 | no:yes:* ) | |
5861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5862 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5864 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5866 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5868 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5870 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5872 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5873 | ||
5874 | ;; | |
5875 | esac | |
5876 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5877 | $as_echo_n "checking for $ac_header... " >&6; } | |
5878 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5879 | $as_echo_n "(cached) " >&6 | |
5880 | else | |
5881 | eval "$as_ac_Header=\$ac_header_preproc" | |
5882 | fi | |
5883 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5884 | $as_echo "$as_val"'` | |
5885 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5886 | $as_echo "$ac_res" >&6; } | |
5887 | ||
5888 | fi | |
5889 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5890 | $as_echo "$as_val"'` | |
5891 | if test "x$as_val" = x""yes; then | |
5892 | cat >>confdefs.h <<_ACEOF | |
5893 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5894 | _ACEOF | |
5895 | ||
5896 | else | |
5897 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5898 | $as_echo "$as_me: error: bailing out" >&2;} | |
5899 | { (exit 1); exit 1; }; } | |
5900 | fi | |
5901 | ||
5902 | done | |
5903 | ||
5904 | ||
5905 | ||
5906 | for ac_header in termios.h sys/statvfs.h | |
5907 | do | |
5908 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5910 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5911 | $as_echo_n "checking for $ac_header... " >&6; } | |
5912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5913 | $as_echo_n "(cached) " >&6 | |
5914 | fi | |
5915 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5916 | $as_echo "$as_val"'` | |
5917 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5918 | $as_echo "$ac_res" >&6; } | |
5919 | else | |
5920 | # Is the header compilable? | |
5921 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5922 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5923 | cat >conftest.$ac_ext <<_ACEOF | |
5924 | /* confdefs.h. */ | |
5925 | _ACEOF | |
5926 | cat confdefs.h >>conftest.$ac_ext | |
5927 | cat >>conftest.$ac_ext <<_ACEOF | |
5928 | /* end confdefs.h. */ | |
5929 | $ac_includes_default | |
5930 | #include <$ac_header> | |
5931 | _ACEOF | |
5932 | rm -f conftest.$ac_objext | |
5933 | if { (ac_try="$ac_compile" | |
5934 | case "(($ac_try" in | |
5935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5936 | *) ac_try_echo=$ac_try;; | |
5937 | esac | |
5938 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5939 | $as_echo "$ac_try_echo") >&5 | |
5940 | (eval "$ac_compile") 2>conftest.er1 | |
5941 | ac_status=$? | |
5942 | grep -v '^ *+' conftest.er1 >conftest.err | |
5943 | rm -f conftest.er1 | |
5944 | cat conftest.err >&5 | |
5945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5946 | (exit $ac_status); } && { | |
5947 | test -z "$ac_c_werror_flag" || | |
5948 | test ! -s conftest.err | |
5949 | } && test -s conftest.$ac_objext; then | |
5950 | ac_header_compiler=yes | |
5951 | else | |
5952 | $as_echo "$as_me: failed program was:" >&5 | |
5953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5954 | ||
5955 | ac_header_compiler=no | |
5956 | fi | |
5957 | ||
5958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5959 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5960 | $as_echo "$ac_header_compiler" >&6; } | |
5961 | ||
5962 | # Is the header present? | |
5963 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5964 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5965 | cat >conftest.$ac_ext <<_ACEOF | |
5966 | /* confdefs.h. */ | |
5967 | _ACEOF | |
5968 | cat confdefs.h >>conftest.$ac_ext | |
5969 | cat >>conftest.$ac_ext <<_ACEOF | |
5970 | /* end confdefs.h. */ | |
5971 | #include <$ac_header> | |
5972 | _ACEOF | |
5973 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5974 | case "(($ac_try" in | |
5975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5976 | *) ac_try_echo=$ac_try;; | |
5977 | esac | |
5978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5979 | $as_echo "$ac_try_echo") >&5 | |
5980 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5981 | ac_status=$? | |
5982 | grep -v '^ *+' conftest.er1 >conftest.err | |
5983 | rm -f conftest.er1 | |
5984 | cat conftest.err >&5 | |
5985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5986 | (exit $ac_status); } >/dev/null && { | |
5987 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5988 | test ! -s conftest.err | |
5989 | }; then | |
5990 | ac_header_preproc=yes | |
5991 | else | |
5992 | $as_echo "$as_me: failed program was:" >&5 | |
5993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5994 | ||
5995 | ac_header_preproc=no | |
5996 | fi | |
5997 | ||
5998 | rm -f conftest.err conftest.$ac_ext | |
5999 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6000 | $as_echo "$ac_header_preproc" >&6; } | |
6001 | ||
6002 | # So? What about this header? | |
6003 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6004 | yes:no: ) | |
6005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6006 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6007 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6008 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6009 | ac_header_preproc=yes | |
6010 | ;; | |
6011 | no:yes:* ) | |
6012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6013 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6015 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6017 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6019 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6021 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6023 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6024 | ||
6025 | ;; | |
6026 | esac | |
6027 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6028 | $as_echo_n "checking for $ac_header... " >&6; } | |
6029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6030 | $as_echo_n "(cached) " >&6 | |
6031 | else | |
6032 | eval "$as_ac_Header=\$ac_header_preproc" | |
6033 | fi | |
6034 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6035 | $as_echo "$as_val"'` | |
6036 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6037 | $as_echo "$ac_res" >&6; } | |
6038 | ||
6039 | fi | |
6040 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6041 | $as_echo "$as_val"'` | |
6042 | if test "x$as_val" = x""yes; then | |
6043 | cat >>confdefs.h <<_ACEOF | |
6044 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6045 | _ACEOF | |
6046 | ||
6047 | fi | |
6048 | ||
6049 | done | |
6050 | ||
6051 | ||
6052 | ################################################################################ | |
6053 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6054 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6055 | if test "${ac_cv_c_const+set}" = set; then | |
6056 | $as_echo_n "(cached) " >&6 | |
6057 | else | |
6058 | cat >conftest.$ac_ext <<_ACEOF | |
6059 | /* confdefs.h. */ | |
6060 | _ACEOF | |
6061 | cat confdefs.h >>conftest.$ac_ext | |
6062 | cat >>conftest.$ac_ext <<_ACEOF | |
6063 | /* end confdefs.h. */ | |
6064 | ||
6065 | int | |
6066 | main () | |
6067 | { | |
6068 | /* FIXME: Include the comments suggested by Paul. */ | |
6069 | #ifndef __cplusplus | |
6070 | /* Ultrix mips cc rejects this. */ | |
6071 | typedef int charset[2]; | |
6072 | const charset cs; | |
6073 | /* SunOS 4.1.1 cc rejects this. */ | |
6074 | char const *const *pcpcc; | |
6075 | char **ppc; | |
6076 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6077 | struct point {int x, y;}; | |
6078 | static struct point const zero = {0,0}; | |
6079 | /* AIX XL C 1.02.0.0 rejects this. | |
6080 | It does not let you subtract one const X* pointer from another in | |
6081 | an arm of an if-expression whose if-part is not a constant | |
6082 | expression */ | |
6083 | const char *g = "string"; | |
6084 | pcpcc = &g + (g ? g-g : 0); | |
6085 | /* HPUX 7.0 cc rejects these. */ | |
6086 | ++pcpcc; | |
6087 | ppc = (char**) pcpcc; | |
6088 | pcpcc = (char const *const *) ppc; | |
6089 | { /* SCO 3.2v4 cc rejects this. */ | |
6090 | char *t; | |
6091 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6092 | ||
6093 | *t++ = 0; | |
6094 | if (s) return 0; | |
6095 | } | |
6096 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6097 | int x[] = {25, 17}; | |
6098 | const int *foo = &x[0]; | |
6099 | ++foo; | |
6100 | } | |
6101 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6102 | typedef const int *iptr; | |
6103 | iptr p = 0; | |
6104 | ++p; | |
6105 | } | |
6106 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6107 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6108 | struct s { int j; const int *ap[3]; }; | |
6109 | struct s *b; b->j = 5; | |
6110 | } | |
6111 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6112 | const int foo = 10; | |
6113 | if (!foo) return 0; | |
6114 | } | |
6115 | return !cs[0] && !zero.x; | |
6116 | #endif | |
6117 | ||
6118 | ; | |
6119 | return 0; | |
6120 | } | |
6121 | _ACEOF | |
6122 | rm -f conftest.$ac_objext | |
6123 | if { (ac_try="$ac_compile" | |
6124 | case "(($ac_try" in | |
6125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6126 | *) ac_try_echo=$ac_try;; | |
6127 | esac | |
6128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6129 | $as_echo "$ac_try_echo") >&5 | |
6130 | (eval "$ac_compile") 2>conftest.er1 | |
6131 | ac_status=$? | |
6132 | grep -v '^ *+' conftest.er1 >conftest.err | |
6133 | rm -f conftest.er1 | |
6134 | cat conftest.err >&5 | |
6135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6136 | (exit $ac_status); } && { | |
6137 | test -z "$ac_c_werror_flag" || | |
6138 | test ! -s conftest.err | |
6139 | } && test -s conftest.$ac_objext; then | |
6140 | ac_cv_c_const=yes | |
6141 | else | |
6142 | $as_echo "$as_me: failed program was:" >&5 | |
6143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6144 | ||
6145 | ac_cv_c_const=no | |
6146 | fi | |
6147 | ||
6148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6149 | fi | |
6150 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6151 | $as_echo "$ac_cv_c_const" >&6; } | |
6152 | if test $ac_cv_c_const = no; then | |
6153 | ||
6154 | cat >>confdefs.h <<\_ACEOF | |
6155 | #define const /**/ | |
6156 | _ACEOF | |
6157 | ||
6158 | fi | |
6159 | ||
6160 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6161 | $as_echo_n "checking for inline... " >&6; } | |
6162 | if test "${ac_cv_c_inline+set}" = set; then | |
6163 | $as_echo_n "(cached) " >&6 | |
6164 | else | |
6165 | ac_cv_c_inline=no | |
6166 | for ac_kw in inline __inline__ __inline; do | |
6167 | cat >conftest.$ac_ext <<_ACEOF | |
6168 | /* confdefs.h. */ | |
6169 | _ACEOF | |
6170 | cat confdefs.h >>conftest.$ac_ext | |
6171 | cat >>conftest.$ac_ext <<_ACEOF | |
6172 | /* end confdefs.h. */ | |
6173 | #ifndef __cplusplus | |
6174 | typedef int foo_t; | |
6175 | static $ac_kw foo_t static_foo () {return 0; } | |
6176 | $ac_kw foo_t foo () {return 0; } | |
6177 | #endif | |
6178 | ||
6179 | _ACEOF | |
6180 | rm -f conftest.$ac_objext | |
6181 | if { (ac_try="$ac_compile" | |
6182 | case "(($ac_try" in | |
6183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6184 | *) ac_try_echo=$ac_try;; | |
6185 | esac | |
6186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6187 | $as_echo "$ac_try_echo") >&5 | |
6188 | (eval "$ac_compile") 2>conftest.er1 | |
6189 | ac_status=$? | |
6190 | grep -v '^ *+' conftest.er1 >conftest.err | |
6191 | rm -f conftest.er1 | |
6192 | cat conftest.err >&5 | |
6193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6194 | (exit $ac_status); } && { | |
6195 | test -z "$ac_c_werror_flag" || | |
6196 | test ! -s conftest.err | |
6197 | } && test -s conftest.$ac_objext; then | |
6198 | ac_cv_c_inline=$ac_kw | |
6199 | else | |
6200 | $as_echo "$as_me: failed program was:" >&5 | |
6201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6202 | ||
6203 | ||
6204 | fi | |
6205 | ||
6206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6207 | test "$ac_cv_c_inline" != no && break | |
6208 | done | |
6209 | ||
6210 | fi | |
6211 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6212 | $as_echo "$ac_cv_c_inline" >&6; } | |
6213 | ||
6214 | ||
6215 | case $ac_cv_c_inline in | |
6216 | inline | yes) ;; | |
6217 | *) | |
6218 | case $ac_cv_c_inline in | |
6219 | no) ac_val=;; | |
6220 | *) ac_val=$ac_cv_c_inline;; | |
6221 | esac | |
6222 | cat >>confdefs.h <<_ACEOF | |
6223 | #ifndef __cplusplus | |
6224 | #define inline $ac_val | |
6225 | #endif | |
6226 | _ACEOF | |
6227 | ;; | |
6228 | esac | |
6229 | ||
6230 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6231 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6232 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6233 | $as_echo_n "(cached) " >&6 | |
6234 | else | |
6235 | cat >conftest.$ac_ext <<_ACEOF | |
6236 | /* confdefs.h. */ | |
6237 | _ACEOF | |
6238 | cat confdefs.h >>conftest.$ac_ext | |
6239 | cat >>conftest.$ac_ext <<_ACEOF | |
6240 | /* end confdefs.h. */ | |
6241 | $ac_includes_default | |
6242 | int | |
6243 | main () | |
6244 | { | |
6245 | static struct stat ac_aggr; | |
6246 | if (ac_aggr.st_rdev) | |
6247 | return 0; | |
6248 | ; | |
6249 | return 0; | |
6250 | } | |
6251 | _ACEOF | |
6252 | rm -f conftest.$ac_objext | |
6253 | if { (ac_try="$ac_compile" | |
6254 | case "(($ac_try" in | |
6255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6256 | *) ac_try_echo=$ac_try;; | |
6257 | esac | |
6258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6259 | $as_echo "$ac_try_echo") >&5 | |
6260 | (eval "$ac_compile") 2>conftest.er1 | |
6261 | ac_status=$? | |
6262 | grep -v '^ *+' conftest.er1 >conftest.err | |
6263 | rm -f conftest.er1 | |
6264 | cat conftest.err >&5 | |
6265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6266 | (exit $ac_status); } && { | |
6267 | test -z "$ac_c_werror_flag" || | |
6268 | test ! -s conftest.err | |
6269 | } && test -s conftest.$ac_objext; then | |
6270 | ac_cv_member_struct_stat_st_rdev=yes | |
6271 | else | |
6272 | $as_echo "$as_me: failed program was:" >&5 | |
6273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6274 | ||
6275 | cat >conftest.$ac_ext <<_ACEOF | |
6276 | /* confdefs.h. */ | |
6277 | _ACEOF | |
6278 | cat confdefs.h >>conftest.$ac_ext | |
6279 | cat >>conftest.$ac_ext <<_ACEOF | |
6280 | /* end confdefs.h. */ | |
6281 | $ac_includes_default | |
6282 | int | |
6283 | main () | |
6284 | { | |
6285 | static struct stat ac_aggr; | |
6286 | if (sizeof ac_aggr.st_rdev) | |
6287 | return 0; | |
6288 | ; | |
6289 | return 0; | |
6290 | } | |
6291 | _ACEOF | |
6292 | rm -f conftest.$ac_objext | |
6293 | if { (ac_try="$ac_compile" | |
6294 | case "(($ac_try" in | |
6295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6296 | *) ac_try_echo=$ac_try;; | |
6297 | esac | |
6298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6299 | $as_echo "$ac_try_echo") >&5 | |
6300 | (eval "$ac_compile") 2>conftest.er1 | |
6301 | ac_status=$? | |
6302 | grep -v '^ *+' conftest.er1 >conftest.err | |
6303 | rm -f conftest.er1 | |
6304 | cat conftest.err >&5 | |
6305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6306 | (exit $ac_status); } && { | |
6307 | test -z "$ac_c_werror_flag" || | |
6308 | test ! -s conftest.err | |
6309 | } && test -s conftest.$ac_objext; then | |
6310 | ac_cv_member_struct_stat_st_rdev=yes | |
6311 | else | |
6312 | $as_echo "$as_me: failed program was:" >&5 | |
6313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6314 | ||
6315 | ac_cv_member_struct_stat_st_rdev=no | |
6316 | fi | |
6317 | ||
6318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6319 | fi | |
6320 | ||
6321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6322 | fi | |
6323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6324 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6325 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6326 | ||
6327 | cat >>confdefs.h <<_ACEOF | |
6328 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6329 | _ACEOF | |
6330 | ||
6331 | ||
6332 | fi | |
6333 | ||
6334 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6335 | $as_echo_n "checking for off_t... " >&6; } | |
6336 | if test "${ac_cv_type_off_t+set}" = set; then | |
6337 | $as_echo_n "(cached) " >&6 | |
6338 | else | |
6339 | ac_cv_type_off_t=no | |
6340 | cat >conftest.$ac_ext <<_ACEOF | |
6341 | /* confdefs.h. */ | |
6342 | _ACEOF | |
6343 | cat confdefs.h >>conftest.$ac_ext | |
6344 | cat >>conftest.$ac_ext <<_ACEOF | |
6345 | /* end confdefs.h. */ | |
6346 | $ac_includes_default | |
6347 | int | |
6348 | main () | |
6349 | { | |
6350 | if (sizeof (off_t)) | |
6351 | return 0; | |
6352 | ; | |
6353 | return 0; | |
6354 | } | |
6355 | _ACEOF | |
6356 | rm -f conftest.$ac_objext | |
6357 | if { (ac_try="$ac_compile" | |
6358 | case "(($ac_try" in | |
6359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6360 | *) ac_try_echo=$ac_try;; | |
6361 | esac | |
6362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6363 | $as_echo "$ac_try_echo") >&5 | |
6364 | (eval "$ac_compile") 2>conftest.er1 | |
6365 | ac_status=$? | |
6366 | grep -v '^ *+' conftest.er1 >conftest.err | |
6367 | rm -f conftest.er1 | |
6368 | cat conftest.err >&5 | |
6369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6370 | (exit $ac_status); } && { | |
6371 | test -z "$ac_c_werror_flag" || | |
6372 | test ! -s conftest.err | |
6373 | } && test -s conftest.$ac_objext; then | |
6374 | cat >conftest.$ac_ext <<_ACEOF | |
6375 | /* confdefs.h. */ | |
6376 | _ACEOF | |
6377 | cat confdefs.h >>conftest.$ac_ext | |
6378 | cat >>conftest.$ac_ext <<_ACEOF | |
6379 | /* end confdefs.h. */ | |
6380 | $ac_includes_default | |
6381 | int | |
6382 | main () | |
6383 | { | |
6384 | if (sizeof ((off_t))) | |
6385 | return 0; | |
6386 | ; | |
6387 | return 0; | |
6388 | } | |
6389 | _ACEOF | |
6390 | rm -f conftest.$ac_objext | |
6391 | if { (ac_try="$ac_compile" | |
6392 | case "(($ac_try" in | |
6393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6394 | *) ac_try_echo=$ac_try;; | |
6395 | esac | |
6396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6397 | $as_echo "$ac_try_echo") >&5 | |
6398 | (eval "$ac_compile") 2>conftest.er1 | |
6399 | ac_status=$? | |
6400 | grep -v '^ *+' conftest.er1 >conftest.err | |
6401 | rm -f conftest.er1 | |
6402 | cat conftest.err >&5 | |
6403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); } && { | |
6405 | test -z "$ac_c_werror_flag" || | |
6406 | test ! -s conftest.err | |
6407 | } && test -s conftest.$ac_objext; then | |
6408 | : | |
6409 | else | |
6410 | $as_echo "$as_me: failed program was:" >&5 | |
6411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6412 | ||
6413 | ac_cv_type_off_t=yes | |
6414 | fi | |
6415 | ||
6416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6417 | else | |
6418 | $as_echo "$as_me: failed program was:" >&5 | |
6419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6420 | ||
6421 | ||
6422 | fi | |
6423 | ||
6424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6425 | fi | |
6426 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6427 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6428 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6429 | : | |
6430 | else | |
6431 | ||
6432 | cat >>confdefs.h <<_ACEOF | |
6433 | #define off_t long int | |
6434 | _ACEOF | |
6435 | ||
6436 | fi | |
6437 | ||
6438 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6439 | $as_echo_n "checking for pid_t... " >&6; } | |
6440 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6441 | $as_echo_n "(cached) " >&6 | |
6442 | else | |
6443 | ac_cv_type_pid_t=no | |
6444 | cat >conftest.$ac_ext <<_ACEOF | |
6445 | /* confdefs.h. */ | |
6446 | _ACEOF | |
6447 | cat confdefs.h >>conftest.$ac_ext | |
6448 | cat >>conftest.$ac_ext <<_ACEOF | |
6449 | /* end confdefs.h. */ | |
6450 | $ac_includes_default | |
6451 | int | |
6452 | main () | |
6453 | { | |
6454 | if (sizeof (pid_t)) | |
6455 | return 0; | |
6456 | ; | |
6457 | return 0; | |
6458 | } | |
6459 | _ACEOF | |
6460 | rm -f conftest.$ac_objext | |
6461 | if { (ac_try="$ac_compile" | |
6462 | case "(($ac_try" in | |
6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6464 | *) ac_try_echo=$ac_try;; | |
6465 | esac | |
6466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6467 | $as_echo "$ac_try_echo") >&5 | |
6468 | (eval "$ac_compile") 2>conftest.er1 | |
6469 | ac_status=$? | |
6470 | grep -v '^ *+' conftest.er1 >conftest.err | |
6471 | rm -f conftest.er1 | |
6472 | cat conftest.err >&5 | |
6473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6474 | (exit $ac_status); } && { | |
6475 | test -z "$ac_c_werror_flag" || | |
6476 | test ! -s conftest.err | |
6477 | } && test -s conftest.$ac_objext; then | |
6478 | cat >conftest.$ac_ext <<_ACEOF | |
6479 | /* confdefs.h. */ | |
6480 | _ACEOF | |
6481 | cat confdefs.h >>conftest.$ac_ext | |
6482 | cat >>conftest.$ac_ext <<_ACEOF | |
6483 | /* end confdefs.h. */ | |
6484 | $ac_includes_default | |
6485 | int | |
6486 | main () | |
6487 | { | |
6488 | if (sizeof ((pid_t))) | |
6489 | return 0; | |
6490 | ; | |
6491 | return 0; | |
6492 | } | |
6493 | _ACEOF | |
6494 | rm -f conftest.$ac_objext | |
6495 | if { (ac_try="$ac_compile" | |
6496 | case "(($ac_try" in | |
6497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6498 | *) ac_try_echo=$ac_try;; | |
6499 | esac | |
6500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6501 | $as_echo "$ac_try_echo") >&5 | |
6502 | (eval "$ac_compile") 2>conftest.er1 | |
6503 | ac_status=$? | |
6504 | grep -v '^ *+' conftest.er1 >conftest.err | |
6505 | rm -f conftest.er1 | |
6506 | cat conftest.err >&5 | |
6507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6508 | (exit $ac_status); } && { | |
6509 | test -z "$ac_c_werror_flag" || | |
6510 | test ! -s conftest.err | |
6511 | } && test -s conftest.$ac_objext; then | |
6512 | : | |
6513 | else | |
6514 | $as_echo "$as_me: failed program was:" >&5 | |
6515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6516 | ||
6517 | ac_cv_type_pid_t=yes | |
6518 | fi | |
6519 | ||
6520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6521 | else | |
6522 | $as_echo "$as_me: failed program was:" >&5 | |
6523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6524 | ||
6525 | ||
6526 | fi | |
6527 | ||
6528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6529 | fi | |
6530 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6531 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6532 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6533 | : | |
6534 | else | |
6535 | ||
6536 | cat >>confdefs.h <<_ACEOF | |
6537 | #define pid_t int | |
6538 | _ACEOF | |
6539 | ||
6540 | fi | |
6541 | ||
6542 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6543 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6544 | if test "${ac_cv_type_signal+set}" = set; then | |
6545 | $as_echo_n "(cached) " >&6 | |
6546 | else | |
6547 | cat >conftest.$ac_ext <<_ACEOF | |
6548 | /* confdefs.h. */ | |
6549 | _ACEOF | |
6550 | cat confdefs.h >>conftest.$ac_ext | |
6551 | cat >>conftest.$ac_ext <<_ACEOF | |
6552 | /* end confdefs.h. */ | |
6553 | #include <sys/types.h> | |
6554 | #include <signal.h> | |
6555 | ||
6556 | int | |
6557 | main () | |
6558 | { | |
6559 | return *(signal (0, 0)) (0) == 1; | |
6560 | ; | |
6561 | return 0; | |
6562 | } | |
6563 | _ACEOF | |
6564 | rm -f conftest.$ac_objext | |
6565 | if { (ac_try="$ac_compile" | |
6566 | case "(($ac_try" in | |
6567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6568 | *) ac_try_echo=$ac_try;; | |
6569 | esac | |
6570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6571 | $as_echo "$ac_try_echo") >&5 | |
6572 | (eval "$ac_compile") 2>conftest.er1 | |
6573 | ac_status=$? | |
6574 | grep -v '^ *+' conftest.er1 >conftest.err | |
6575 | rm -f conftest.er1 | |
6576 | cat conftest.err >&5 | |
6577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6578 | (exit $ac_status); } && { | |
6579 | test -z "$ac_c_werror_flag" || | |
6580 | test ! -s conftest.err | |
6581 | } && test -s conftest.$ac_objext; then | |
6582 | ac_cv_type_signal=int | |
6583 | else | |
6584 | $as_echo "$as_me: failed program was:" >&5 | |
6585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6586 | ||
6587 | ac_cv_type_signal=void | |
6588 | fi | |
6589 | ||
6590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6591 | fi | |
6592 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6593 | $as_echo "$ac_cv_type_signal" >&6; } | |
6594 | ||
6595 | cat >>confdefs.h <<_ACEOF | |
6596 | #define RETSIGTYPE $ac_cv_type_signal | |
6597 | _ACEOF | |
6598 | ||
6599 | ||
6600 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6601 | $as_echo_n "checking for size_t... " >&6; } | |
6602 | if test "${ac_cv_type_size_t+set}" = set; then | |
6603 | $as_echo_n "(cached) " >&6 | |
6604 | else | |
6605 | ac_cv_type_size_t=no | |
6606 | cat >conftest.$ac_ext <<_ACEOF | |
6607 | /* confdefs.h. */ | |
6608 | _ACEOF | |
6609 | cat confdefs.h >>conftest.$ac_ext | |
6610 | cat >>conftest.$ac_ext <<_ACEOF | |
6611 | /* end confdefs.h. */ | |
6612 | $ac_includes_default | |
6613 | int | |
6614 | main () | |
6615 | { | |
6616 | if (sizeof (size_t)) | |
6617 | return 0; | |
6618 | ; | |
6619 | return 0; | |
6620 | } | |
6621 | _ACEOF | |
6622 | rm -f conftest.$ac_objext | |
6623 | if { (ac_try="$ac_compile" | |
6624 | case "(($ac_try" in | |
6625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6626 | *) ac_try_echo=$ac_try;; | |
6627 | esac | |
6628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6629 | $as_echo "$ac_try_echo") >&5 | |
6630 | (eval "$ac_compile") 2>conftest.er1 | |
6631 | ac_status=$? | |
6632 | grep -v '^ *+' conftest.er1 >conftest.err | |
6633 | rm -f conftest.er1 | |
6634 | cat conftest.err >&5 | |
6635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6636 | (exit $ac_status); } && { | |
6637 | test -z "$ac_c_werror_flag" || | |
6638 | test ! -s conftest.err | |
6639 | } && test -s conftest.$ac_objext; then | |
6640 | cat >conftest.$ac_ext <<_ACEOF | |
6641 | /* confdefs.h. */ | |
6642 | _ACEOF | |
6643 | cat confdefs.h >>conftest.$ac_ext | |
6644 | cat >>conftest.$ac_ext <<_ACEOF | |
6645 | /* end confdefs.h. */ | |
6646 | $ac_includes_default | |
6647 | int | |
6648 | main () | |
6649 | { | |
6650 | if (sizeof ((size_t))) | |
6651 | return 0; | |
6652 | ; | |
6653 | return 0; | |
6654 | } | |
6655 | _ACEOF | |
6656 | rm -f conftest.$ac_objext | |
6657 | if { (ac_try="$ac_compile" | |
6658 | case "(($ac_try" in | |
6659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6660 | *) ac_try_echo=$ac_try;; | |
6661 | esac | |
6662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6663 | $as_echo "$ac_try_echo") >&5 | |
6664 | (eval "$ac_compile") 2>conftest.er1 | |
6665 | ac_status=$? | |
6666 | grep -v '^ *+' conftest.er1 >conftest.err | |
6667 | rm -f conftest.er1 | |
6668 | cat conftest.err >&5 | |
6669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6670 | (exit $ac_status); } && { | |
6671 | test -z "$ac_c_werror_flag" || | |
6672 | test ! -s conftest.err | |
6673 | } && test -s conftest.$ac_objext; then | |
6674 | : | |
ad6254c5 | 6675 | else |
d911ec67 AK |
6676 | $as_echo "$as_me: failed program was:" >&5 |
6677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6678 | |
d911ec67 | 6679 | ac_cv_type_size_t=yes |
ad6254c5 | 6680 | fi |
4922197a | 6681 | |
d911ec67 | 6682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6683 | else |
d911ec67 AK |
6684 | $as_echo "$as_me: failed program was:" >&5 |
6685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6686 | |
6687 | ||
d911ec67 | 6688 | fi |
d0191583 | 6689 | |
d911ec67 AK |
6690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6691 | fi | |
6692 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6693 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6694 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6695 | : | |
6696 | else | |
d0191583 | 6697 | |
d911ec67 AK |
6698 | cat >>confdefs.h <<_ACEOF |
6699 | #define size_t unsigned int | |
6700 | _ACEOF | |
d0191583 | 6701 | |
d911ec67 | 6702 | fi |
d0191583 | 6703 | |
d911ec67 AK |
6704 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6705 | $as_echo_n "checking for mode_t... " >&6; } | |
6706 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6707 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6708 | else |
d911ec67 | 6709 | ac_cv_type_mode_t=no |
ad6254c5 | 6710 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6711 | /* confdefs.h. */ |
6712 | _ACEOF | |
6713 | cat confdefs.h >>conftest.$ac_ext | |
6714 | cat >>conftest.$ac_ext <<_ACEOF | |
6715 | /* end confdefs.h. */ | |
6716 | $ac_includes_default | |
d911ec67 AK |
6717 | int |
6718 | main () | |
6719 | { | |
6720 | if (sizeof (mode_t)) | |
6721 | return 0; | |
6722 | ; | |
6723 | return 0; | |
6724 | } | |
ad6254c5 AK |
6725 | _ACEOF |
6726 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6727 | if { (ac_try="$ac_compile" |
6728 | case "(($ac_try" in | |
6729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6730 | *) ac_try_echo=$ac_try;; | |
6731 | esac | |
ec6a6fbe AK |
6732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6733 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6734 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6735 | ac_status=$? |
8a2fc586 AK |
6736 | grep -v '^ *+' conftest.er1 >conftest.err |
6737 | rm -f conftest.er1 | |
6738 | cat conftest.err >&5 | |
ec6a6fbe | 6739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6740 | (exit $ac_status); } && { |
6741 | test -z "$ac_c_werror_flag" || | |
6742 | test ! -s conftest.err | |
6743 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6744 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6745 | /* confdefs.h. */ |
6746 | _ACEOF | |
6747 | cat confdefs.h >>conftest.$ac_ext | |
6748 | cat >>conftest.$ac_ext <<_ACEOF | |
6749 | /* end confdefs.h. */ | |
d911ec67 AK |
6750 | $ac_includes_default |
6751 | int | |
6752 | main () | |
6753 | { | |
6754 | if (sizeof ((mode_t))) | |
6755 | return 0; | |
6756 | ; | |
6757 | return 0; | |
6758 | } | |
ad6254c5 | 6759 | _ACEOF |
d911ec67 AK |
6760 | rm -f conftest.$ac_objext |
6761 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6762 | case "(($ac_try" in |
6763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6764 | *) ac_try_echo=$ac_try;; | |
6765 | esac | |
ec6a6fbe AK |
6766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6767 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6768 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6769 | ac_status=$? |
6770 | grep -v '^ *+' conftest.er1 >conftest.err | |
6771 | rm -f conftest.er1 | |
6772 | cat conftest.err >&5 | |
ec6a6fbe | 6773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6774 | (exit $ac_status); } && { |
6775 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6776 | test ! -s conftest.err |
d911ec67 AK |
6777 | } && test -s conftest.$ac_objext; then |
6778 | : | |
ad6254c5 | 6779 | else |
ec6a6fbe | 6780 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6781 | sed 's/^/| /' conftest.$ac_ext >&5 |
6782 | ||
d911ec67 | 6783 | ac_cv_type_mode_t=yes |
ad6254c5 | 6784 | fi |
7a197a62 | 6785 | |
d911ec67 AK |
6786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6787 | else | |
6788 | $as_echo "$as_me: failed program was:" >&5 | |
6789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6790 | |
7a197a62 | 6791 | |
80992638 AK |
6792 | fi |
6793 | ||
d911ec67 | 6794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6795 | fi |
d911ec67 AK |
6796 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6797 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6798 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6799 | : | |
795ca3e5 | 6800 | else |
80992638 | 6801 | |
d911ec67 AK |
6802 | cat >>confdefs.h <<_ACEOF |
6803 | #define mode_t int | |
6804 | _ACEOF | |
ad6254c5 | 6805 | |
d911ec67 | 6806 | fi |
795ca3e5 | 6807 | |
d0191583 | 6808 | |
d911ec67 AK |
6809 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6810 | $as_echo_n "checking for int8_t... " >&6; } | |
6811 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6812 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6813 | else |
d911ec67 AK |
6814 | ac_cv_c_int8_t=no |
6815 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6816 | 'long long int' 'short int' 'signed char'; do | |
6817 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6818 | /* confdefs.h. */ |
6819 | _ACEOF | |
6820 | cat confdefs.h >>conftest.$ac_ext | |
6821 | cat >>conftest.$ac_ext <<_ACEOF | |
6822 | /* end confdefs.h. */ | |
6823 | $ac_includes_default | |
d911ec67 AK |
6824 | int |
6825 | main () | |
6826 | { | |
6827 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6828 | test_array [0] = 0 | |
6829 | ||
6830 | ; | |
6831 | return 0; | |
6832 | } | |
ad6254c5 AK |
6833 | _ACEOF |
6834 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6835 | if { (ac_try="$ac_compile" |
6836 | case "(($ac_try" in | |
6837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6838 | *) ac_try_echo=$ac_try;; | |
6839 | esac | |
ec6a6fbe AK |
6840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6841 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6842 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6843 | ac_status=$? |
8a2fc586 AK |
6844 | grep -v '^ *+' conftest.er1 >conftest.err |
6845 | rm -f conftest.er1 | |
6846 | cat conftest.err >&5 | |
ec6a6fbe | 6847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6848 | (exit $ac_status); } && { |
6849 | test -z "$ac_c_werror_flag" || | |
6850 | test ! -s conftest.err | |
6851 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6852 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6853 | /* confdefs.h. */ |
6854 | _ACEOF | |
6855 | cat confdefs.h >>conftest.$ac_ext | |
6856 | cat >>conftest.$ac_ext <<_ACEOF | |
6857 | /* end confdefs.h. */ | |
d911ec67 AK |
6858 | $ac_includes_default |
6859 | int | |
6860 | main () | |
6861 | { | |
6862 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6863 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6864 | test_array [0] = 0 | |
6865 | ||
6866 | ; | |
6867 | return 0; | |
6868 | } | |
ad6254c5 | 6869 | _ACEOF |
d911ec67 AK |
6870 | rm -f conftest.$ac_objext |
6871 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6872 | case "(($ac_try" in |
6873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6874 | *) ac_try_echo=$ac_try;; | |
6875 | esac | |
ec6a6fbe AK |
6876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6877 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6878 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6879 | ac_status=$? |
6880 | grep -v '^ *+' conftest.er1 >conftest.err | |
6881 | rm -f conftest.er1 | |
6882 | cat conftest.err >&5 | |
ec6a6fbe | 6883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6884 | (exit $ac_status); } && { |
6885 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6886 | test ! -s conftest.err |
d911ec67 AK |
6887 | } && test -s conftest.$ac_objext; then |
6888 | : | |
ad6254c5 | 6889 | else |
ec6a6fbe | 6890 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6891 | sed 's/^/| /' conftest.$ac_ext >&5 |
6892 | ||
d911ec67 AK |
6893 | case $ac_type in |
6894 | int8_t) ac_cv_c_int8_t=yes ;; | |
6895 | *) ac_cv_c_int8_t=$ac_type ;; | |
6896 | esac | |
ad6254c5 | 6897 | |
d911ec67 | 6898 | fi |
7a197a62 | 6899 | |
d911ec67 | 6900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6901 | else |
d911ec67 AK |
6902 | $as_echo "$as_me: failed program was:" >&5 |
6903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6904 | ||
b896caa1 | 6905 | |
ad6254c5 | 6906 | fi |
ad6254c5 | 6907 | |
d911ec67 AK |
6908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6909 | test "$ac_cv_c_int8_t" != no && break | |
6910 | done | |
80992638 | 6911 | fi |
d911ec67 AK |
6912 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6913 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6914 | case $ac_cv_c_int8_t in #( | |
6915 | no|yes) ;; #( | |
6916 | *) | |
80992638 | 6917 | |
d911ec67 AK |
6918 | cat >>confdefs.h <<_ACEOF |
6919 | #define int8_t $ac_cv_c_int8_t | |
6920 | _ACEOF | |
6921 | ;; | |
6922 | esac | |
d0191583 | 6923 | |
d3c8211f | 6924 | |
d911ec67 AK |
6925 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6926 | $as_echo_n "checking for int16_t... " >&6; } | |
6927 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6928 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6929 | else |
d911ec67 AK |
6930 | ac_cv_c_int16_t=no |
6931 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6932 | 'long long int' 'short int' 'signed char'; do | |
6933 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6934 | /* confdefs.h. */ |
6935 | _ACEOF | |
6936 | cat confdefs.h >>conftest.$ac_ext | |
6937 | cat >>conftest.$ac_ext <<_ACEOF | |
6938 | /* end confdefs.h. */ | |
d911ec67 | 6939 | $ac_includes_default |
ad6254c5 AK |
6940 | int |
6941 | main () | |
6942 | { | |
d911ec67 AK |
6943 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6944 | test_array [0] = 0 | |
ad6254c5 AK |
6945 | |
6946 | ; | |
6947 | return 0; | |
6948 | } | |
6949 | _ACEOF | |
6950 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6951 | if { (ac_try="$ac_compile" |
6952 | case "(($ac_try" in | |
6953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6954 | *) ac_try_echo=$ac_try;; | |
6955 | esac | |
ec6a6fbe AK |
6956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6957 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6958 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6959 | ac_status=$? |
8a2fc586 AK |
6960 | grep -v '^ *+' conftest.er1 >conftest.err |
6961 | rm -f conftest.er1 | |
6962 | cat conftest.err >&5 | |
ec6a6fbe | 6963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6964 | (exit $ac_status); } && { |
6965 | test -z "$ac_c_werror_flag" || | |
6966 | test ! -s conftest.err | |
6967 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6968 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6969 | /* confdefs.h. */ |
6970 | _ACEOF | |
6971 | cat confdefs.h >>conftest.$ac_ext | |
6972 | cat >>conftest.$ac_ext <<_ACEOF | |
6973 | /* end confdefs.h. */ | |
d911ec67 AK |
6974 | $ac_includes_default |
6975 | int | |
6976 | main () | |
6977 | { | |
6978 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6979 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6980 | test_array [0] = 0 | |
80992638 | 6981 | |
d911ec67 AK |
6982 | ; |
6983 | return 0; | |
6984 | } | |
ad6254c5 AK |
6985 | _ACEOF |
6986 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6987 | if { (ac_try="$ac_compile" |
6988 | case "(($ac_try" in | |
6989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6990 | *) ac_try_echo=$ac_try;; | |
6991 | esac | |
ec6a6fbe AK |
6992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6993 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6994 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6995 | ac_status=$? |
8a2fc586 AK |
6996 | grep -v '^ *+' conftest.er1 >conftest.err |
6997 | rm -f conftest.er1 | |
6998 | cat conftest.err >&5 | |
ec6a6fbe | 6999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7000 | (exit $ac_status); } && { |
7001 | test -z "$ac_c_werror_flag" || | |
7002 | test ! -s conftest.err | |
7003 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7004 | : |
ad6254c5 | 7005 | else |
ec6a6fbe | 7006 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 7007 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 7008 | |
d911ec67 AK |
7009 | case $ac_type in |
7010 | int16_t) ac_cv_c_int16_t=yes ;; | |
7011 | *) ac_cv_c_int16_t=$ac_type ;; | |
7012 | esac | |
7a197a62 | 7013 | |
8ce0cbda | 7014 | fi |
7a197a62 AK |
7015 | |
7016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7017 | else |
7018 | $as_echo "$as_me: failed program was:" >&5 | |
7019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7020 | |
8a2fc586 | 7021 | |
d911ec67 | 7022 | fi |
8a2fc586 | 7023 | |
d911ec67 AK |
7024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7025 | test "$ac_cv_c_int16_t" != no && break | |
7026 | done | |
7027 | fi | |
7028 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7029 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7030 | case $ac_cv_c_int16_t in #( | |
7031 | no|yes) ;; #( | |
8a2fc586 | 7032 | *) |
d911ec67 AK |
7033 | |
7034 | cat >>confdefs.h <<_ACEOF | |
7035 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7036 | _ACEOF |
d911ec67 AK |
7037 | ;; |
7038 | esac | |
d0191583 | 7039 | |
d911ec67 AK |
7040 | |
7041 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7042 | $as_echo_n "checking for int32_t... " >&6; } | |
7043 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7044 | $as_echo_n "(cached) " >&6 |
d0191583 | 7045 | else |
d911ec67 AK |
7046 | ac_cv_c_int32_t=no |
7047 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7048 | 'long long int' 'short int' 'signed char'; do | |
7049 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7050 | /* confdefs.h. */ |
7051 | _ACEOF | |
7052 | cat confdefs.h >>conftest.$ac_ext | |
7053 | cat >>conftest.$ac_ext <<_ACEOF | |
7054 | /* end confdefs.h. */ | |
7055 | $ac_includes_default | |
7056 | int | |
7057 | main () | |
7058 | { | |
d911ec67 AK |
7059 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7060 | test_array [0] = 0 | |
7061 | ||
d0191583 JM |
7062 | ; |
7063 | return 0; | |
7064 | } | |
7065 | _ACEOF | |
7066 | rm -f conftest.$ac_objext | |
7067 | if { (ac_try="$ac_compile" | |
7068 | case "(($ac_try" in | |
7069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7070 | *) ac_try_echo=$ac_try;; | |
7071 | esac | |
ec6a6fbe AK |
7072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7073 | $as_echo "$ac_try_echo") >&5 | |
7074 | (eval "$ac_compile") 2>conftest.er1 | |
7075 | ac_status=$? | |
7076 | grep -v '^ *+' conftest.er1 >conftest.err | |
7077 | rm -f conftest.er1 | |
7078 | cat conftest.err >&5 | |
7079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7080 | (exit $ac_status); } && { | |
7081 | test -z "$ac_c_werror_flag" || | |
7082 | test ! -s conftest.err | |
7083 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7084 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7085 | /* confdefs.h. */ |
7086 | _ACEOF | |
7087 | cat confdefs.h >>conftest.$ac_ext | |
7088 | cat >>conftest.$ac_ext <<_ACEOF | |
7089 | /* end confdefs.h. */ | |
7090 | $ac_includes_default | |
7091 | int | |
7092 | main () | |
7093 | { | |
d911ec67 AK |
7094 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7095 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7096 | test_array [0] = 0 | |
7097 | ||
ec6a6fbe AK |
7098 | ; |
7099 | return 0; | |
7100 | } | |
7101 | _ACEOF | |
7102 | rm -f conftest.$ac_objext | |
7103 | if { (ac_try="$ac_compile" | |
7104 | case "(($ac_try" in | |
7105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7106 | *) ac_try_echo=$ac_try;; | |
7107 | esac | |
7108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7109 | $as_echo "$ac_try_echo") >&5 | |
7110 | (eval "$ac_compile") 2>conftest.er1 | |
7111 | ac_status=$? | |
7112 | grep -v '^ *+' conftest.er1 >conftest.err | |
7113 | rm -f conftest.er1 | |
7114 | cat conftest.err >&5 | |
7115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7116 | (exit $ac_status); } && { | |
7117 | test -z "$ac_c_werror_flag" || | |
7118 | test ! -s conftest.err | |
7119 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7120 | : |
ec6a6fbe AK |
7121 | else |
7122 | $as_echo "$as_me: failed program was:" >&5 | |
7123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7124 | ||
d911ec67 AK |
7125 | case $ac_type in |
7126 | int32_t) ac_cv_c_int32_t=yes ;; | |
7127 | *) ac_cv_c_int32_t=$ac_type ;; | |
7128 | esac | |
7129 | ||
ec6a6fbe AK |
7130 | fi |
7131 | ||
7132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7133 | else |
7134 | $as_echo "$as_me: failed program was:" >&5 | |
7135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7136 | ||
7137 | ||
ec6a6fbe AK |
7138 | fi |
7139 | ||
7140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7141 | test "$ac_cv_c_int32_t" != no && break |
7142 | done | |
ec6a6fbe | 7143 | fi |
d911ec67 AK |
7144 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7145 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7146 | case $ac_cv_c_int32_t in #( | |
7147 | no|yes) ;; #( | |
7148 | *) | |
ec6a6fbe AK |
7149 | |
7150 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7151 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7152 | _ACEOF |
d911ec67 AK |
7153 | ;; |
7154 | esac | |
ec6a6fbe AK |
7155 | |
7156 | ||
d911ec67 AK |
7157 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7158 | $as_echo_n "checking for int64_t... " >&6; } | |
7159 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7160 | $as_echo_n "(cached) " >&6 |
7161 | else | |
d911ec67 AK |
7162 | ac_cv_c_int64_t=no |
7163 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7164 | 'long long int' 'short int' 'signed char'; do | |
7165 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7166 | /* confdefs.h. */ |
7167 | _ACEOF | |
7168 | cat confdefs.h >>conftest.$ac_ext | |
7169 | cat >>conftest.$ac_ext <<_ACEOF | |
7170 | /* end confdefs.h. */ | |
7171 | $ac_includes_default | |
7172 | int | |
7173 | main () | |
7174 | { | |
d911ec67 AK |
7175 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7176 | test_array [0] = 0 | |
7177 | ||
ec6a6fbe AK |
7178 | ; |
7179 | return 0; | |
7180 | } | |
7181 | _ACEOF | |
7182 | rm -f conftest.$ac_objext | |
7183 | if { (ac_try="$ac_compile" | |
7184 | case "(($ac_try" in | |
7185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7186 | *) ac_try_echo=$ac_try;; | |
7187 | esac | |
7188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7189 | $as_echo "$ac_try_echo") >&5 | |
7190 | (eval "$ac_compile") 2>conftest.er1 | |
7191 | ac_status=$? | |
7192 | grep -v '^ *+' conftest.er1 >conftest.err | |
7193 | rm -f conftest.er1 | |
7194 | cat conftest.err >&5 | |
7195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7196 | (exit $ac_status); } && { | |
7197 | test -z "$ac_c_werror_flag" || | |
7198 | test ! -s conftest.err | |
7199 | } && test -s conftest.$ac_objext; then | |
7200 | cat >conftest.$ac_ext <<_ACEOF | |
7201 | /* confdefs.h. */ | |
7202 | _ACEOF | |
7203 | cat confdefs.h >>conftest.$ac_ext | |
7204 | cat >>conftest.$ac_ext <<_ACEOF | |
7205 | /* end confdefs.h. */ | |
7206 | $ac_includes_default | |
7207 | int | |
7208 | main () | |
7209 | { | |
d911ec67 AK |
7210 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7211 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7212 | test_array [0] = 0 | |
7213 | ||
ec6a6fbe AK |
7214 | ; |
7215 | return 0; | |
7216 | } | |
7217 | _ACEOF | |
7218 | rm -f conftest.$ac_objext | |
7219 | if { (ac_try="$ac_compile" | |
7220 | case "(($ac_try" in | |
7221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7222 | *) ac_try_echo=$ac_try;; | |
7223 | esac | |
7224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7225 | $as_echo "$ac_try_echo") >&5 | |
7226 | (eval "$ac_compile") 2>conftest.er1 | |
7227 | ac_status=$? | |
7228 | grep -v '^ *+' conftest.er1 >conftest.err | |
7229 | rm -f conftest.er1 | |
7230 | cat conftest.err >&5 | |
7231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7232 | (exit $ac_status); } && { | |
7233 | test -z "$ac_c_werror_flag" || | |
7234 | test ! -s conftest.err | |
7235 | } && test -s conftest.$ac_objext; then | |
7236 | : | |
7237 | else | |
7238 | $as_echo "$as_me: failed program was:" >&5 | |
7239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7240 | ||
d911ec67 AK |
7241 | case $ac_type in |
7242 | int64_t) ac_cv_c_int64_t=yes ;; | |
7243 | *) ac_cv_c_int64_t=$ac_type ;; | |
7244 | esac | |
7245 | ||
ec6a6fbe AK |
7246 | fi |
7247 | ||
7248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7249 | else | |
7250 | $as_echo "$as_me: failed program was:" >&5 | |
7251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7252 | ||
7253 | ||
7254 | fi | |
7255 | ||
7256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7257 | test "$ac_cv_c_int64_t" != no && break |
7258 | done | |
ec6a6fbe | 7259 | fi |
d911ec67 AK |
7260 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7261 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7262 | case $ac_cv_c_int64_t in #( | |
7263 | no|yes) ;; #( | |
7264 | *) | |
ec6a6fbe AK |
7265 | |
7266 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7267 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7268 | _ACEOF |
d911ec67 AK |
7269 | ;; |
7270 | esac | |
ec6a6fbe | 7271 | |
d911ec67 AK |
7272 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7273 | $as_echo_n "checking for ssize_t... " >&6; } | |
7274 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7275 | $as_echo_n "(cached) " >&6 |
7276 | else | |
d911ec67 | 7277 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7278 | cat >conftest.$ac_ext <<_ACEOF |
7279 | /* confdefs.h. */ | |
7280 | _ACEOF | |
7281 | cat confdefs.h >>conftest.$ac_ext | |
7282 | cat >>conftest.$ac_ext <<_ACEOF | |
7283 | /* end confdefs.h. */ | |
7284 | $ac_includes_default | |
7285 | int | |
7286 | main () | |
7287 | { | |
d911ec67 | 7288 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7289 | return 0; |
7290 | ; | |
7291 | return 0; | |
7292 | } | |
7293 | _ACEOF | |
7294 | rm -f conftest.$ac_objext | |
7295 | if { (ac_try="$ac_compile" | |
7296 | case "(($ac_try" in | |
7297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7298 | *) ac_try_echo=$ac_try;; | |
7299 | esac | |
7300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7301 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7302 | (eval "$ac_compile") 2>conftest.er1 |
7303 | ac_status=$? | |
7304 | grep -v '^ *+' conftest.er1 >conftest.err | |
7305 | rm -f conftest.er1 | |
7306 | cat conftest.err >&5 | |
ec6a6fbe | 7307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7308 | (exit $ac_status); } && { |
7309 | test -z "$ac_c_werror_flag" || | |
7310 | test ! -s conftest.err | |
7311 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7312 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7313 | /* confdefs.h. */ |
7314 | _ACEOF | |
7315 | cat confdefs.h >>conftest.$ac_ext | |
7316 | cat >>conftest.$ac_ext <<_ACEOF | |
7317 | /* end confdefs.h. */ | |
7318 | $ac_includes_default | |
7319 | int | |
7320 | main () | |
7321 | { | |
d911ec67 | 7322 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7323 | return 0; |
d0191583 JM |
7324 | ; |
7325 | return 0; | |
7326 | } | |
7327 | _ACEOF | |
7328 | rm -f conftest.$ac_objext | |
7329 | if { (ac_try="$ac_compile" | |
7330 | case "(($ac_try" in | |
7331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7332 | *) ac_try_echo=$ac_try;; | |
7333 | esac | |
ec6a6fbe AK |
7334 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7335 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7336 | (eval "$ac_compile") 2>conftest.er1 |
7337 | ac_status=$? | |
7338 | grep -v '^ *+' conftest.er1 >conftest.err | |
7339 | rm -f conftest.er1 | |
7340 | cat conftest.err >&5 | |
ec6a6fbe | 7341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7342 | (exit $ac_status); } && { |
7343 | test -z "$ac_c_werror_flag" || | |
7344 | test ! -s conftest.err | |
7345 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7346 | : |
d0191583 | 7347 | else |
ec6a6fbe | 7348 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7349 | sed 's/^/| /' conftest.$ac_ext >&5 |
7350 | ||
d911ec67 | 7351 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7352 | fi |
7353 | ||
7354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7355 | else |
7356 | $as_echo "$as_me: failed program was:" >&5 | |
7357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7358 | ||
7359 | ||
d0191583 JM |
7360 | fi |
7361 | ||
7362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7363 | fi | |
d911ec67 AK |
7364 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7365 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7366 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7367 | : |
7368 | else | |
d0191583 JM |
7369 | |
7370 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7371 | #define ssize_t int |
d0191583 JM |
7372 | _ACEOF |
7373 | ||
d0191583 | 7374 | fi |
8ce0cbda | 7375 | |
d911ec67 AK |
7376 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7377 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7378 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7379 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7380 | else |
b145d876 ZK |
7381 | cat >conftest.$ac_ext <<_ACEOF |
7382 | /* confdefs.h. */ | |
7383 | _ACEOF | |
7384 | cat confdefs.h >>conftest.$ac_ext | |
7385 | cat >>conftest.$ac_ext <<_ACEOF | |
7386 | /* end confdefs.h. */ | |
ec6a6fbe | 7387 | #include <sys/types.h> |
ec6a6fbe | 7388 | |
ad6254c5 | 7389 | _ACEOF |
d911ec67 AK |
7390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7391 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7392 | ac_cv_type_uid_t=yes | |
b145d876 | 7393 | else |
d911ec67 | 7394 | ac_cv_type_uid_t=no |
ad6254c5 | 7395 | fi |
d911ec67 | 7396 | rm -f conftest* |
b145d876 | 7397 | |
b145d876 | 7398 | fi |
d911ec67 AK |
7399 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7400 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7401 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7402 | |
d911ec67 AK |
7403 | cat >>confdefs.h <<\_ACEOF |
7404 | #define uid_t int | |
ad6254c5 | 7405 | _ACEOF |
199e490e | 7406 | |
b896caa1 | 7407 | |
d911ec67 AK |
7408 | cat >>confdefs.h <<\_ACEOF |
7409 | #define gid_t int | |
7410 | _ACEOF | |
7411 | ||
7412 | fi | |
7413 | ||
7414 | ||
7415 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7416 | $as_echo_n "checking for uint8_t... " >&6; } | |
7417 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7418 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7419 | else |
d911ec67 AK |
7420 | ac_cv_c_uint8_t=no |
7421 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7422 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7423 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7424 | /* confdefs.h. */ |
7425 | _ACEOF | |
7426 | cat confdefs.h >>conftest.$ac_ext | |
7427 | cat >>conftest.$ac_ext <<_ACEOF | |
7428 | /* end confdefs.h. */ | |
7429 | $ac_includes_default | |
7430 | int | |
7431 | main () | |
7432 | { | |
d911ec67 AK |
7433 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7434 | test_array [0] = 0 | |
7435 | ||
ad6254c5 AK |
7436 | ; |
7437 | return 0; | |
7438 | } | |
7439 | _ACEOF | |
7440 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7441 | if { (ac_try="$ac_compile" |
7442 | case "(($ac_try" in | |
7443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7444 | *) ac_try_echo=$ac_try;; | |
7445 | esac | |
ec6a6fbe AK |
7446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7447 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7448 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7449 | ac_status=$? |
8a2fc586 AK |
7450 | grep -v '^ *+' conftest.er1 >conftest.err |
7451 | rm -f conftest.er1 | |
7452 | cat conftest.err >&5 | |
ec6a6fbe | 7453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7454 | (exit $ac_status); } && { |
7455 | test -z "$ac_c_werror_flag" || | |
7456 | test ! -s conftest.err | |
7457 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7458 | case $ac_type in |
7459 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7460 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7461 | esac | |
7462 | ||
7463 | else | |
7464 | $as_echo "$as_me: failed program was:" >&5 | |
7465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7466 | ||
7467 | ||
7468 | fi | |
7469 | ||
7470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7471 | test "$ac_cv_c_uint8_t" != no && break | |
7472 | done | |
7473 | fi | |
7474 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7475 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7476 | case $ac_cv_c_uint8_t in #( | |
7477 | no|yes) ;; #( | |
7478 | *) | |
7479 | ||
7480 | cat >>confdefs.h <<\_ACEOF | |
7481 | #define _UINT8_T 1 | |
7482 | _ACEOF | |
7483 | ||
7484 | ||
7485 | cat >>confdefs.h <<_ACEOF | |
7486 | #define uint8_t $ac_cv_c_uint8_t | |
7487 | _ACEOF | |
7488 | ;; | |
7489 | esac | |
7490 | ||
7491 | ||
7492 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7493 | $as_echo_n "checking for uint16_t... " >&6; } | |
7494 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7495 | $as_echo_n "(cached) " >&6 | |
7496 | else | |
7497 | ac_cv_c_uint16_t=no | |
7498 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7499 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7500 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7501 | /* confdefs.h. */ |
7502 | _ACEOF | |
7503 | cat confdefs.h >>conftest.$ac_ext | |
7504 | cat >>conftest.$ac_ext <<_ACEOF | |
7505 | /* end confdefs.h. */ | |
ec6a6fbe | 7506 | $ac_includes_default |
d0191583 JM |
7507 | int |
7508 | main () | |
7509 | { | |
d911ec67 AK |
7510 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7511 | test_array [0] = 0 | |
7512 | ||
d0191583 JM |
7513 | ; |
7514 | return 0; | |
7515 | } | |
7516 | _ACEOF | |
7517 | rm -f conftest.$ac_objext | |
7518 | if { (ac_try="$ac_compile" | |
7519 | case "(($ac_try" in | |
7520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7521 | *) ac_try_echo=$ac_try;; | |
7522 | esac | |
ec6a6fbe AK |
7523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7524 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7525 | (eval "$ac_compile") 2>conftest.er1 |
7526 | ac_status=$? | |
7527 | grep -v '^ *+' conftest.er1 >conftest.err | |
7528 | rm -f conftest.er1 | |
7529 | cat conftest.err >&5 | |
ec6a6fbe | 7530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7531 | (exit $ac_status); } && { |
7532 | test -z "$ac_c_werror_flag" || | |
7533 | test ! -s conftest.err | |
7534 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7535 | case $ac_type in |
7536 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7537 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7538 | esac | |
ec6a6fbe | 7539 | |
ec6a6fbe AK |
7540 | else |
7541 | $as_echo "$as_me: failed program was:" >&5 | |
7542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7543 | ||
7544 | ||
d0191583 JM |
7545 | fi |
7546 | ||
7547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7548 | test "$ac_cv_c_uint16_t" != no && break |
7549 | done | |
d0191583 | 7550 | fi |
d911ec67 AK |
7551 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7552 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7553 | case $ac_cv_c_uint16_t in #( | |
7554 | no|yes) ;; #( | |
7555 | *) | |
7556 | ||
d0191583 JM |
7557 | |
7558 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7559 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7560 | _ACEOF |
d911ec67 AK |
7561 | ;; |
7562 | esac | |
d0191583 JM |
7563 | |
7564 | ||
d911ec67 AK |
7565 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7566 | $as_echo_n "checking for uint32_t... " >&6; } | |
7567 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7568 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7569 | else |
d911ec67 AK |
7570 | ac_cv_c_uint32_t=no |
7571 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7572 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7573 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7574 | /* confdefs.h. */ |
7575 | _ACEOF | |
7576 | cat confdefs.h >>conftest.$ac_ext | |
7577 | cat >>conftest.$ac_ext <<_ACEOF | |
7578 | /* end confdefs.h. */ | |
7579 | $ac_includes_default | |
7580 | int | |
7581 | main () | |
7582 | { | |
d911ec67 AK |
7583 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7584 | test_array [0] = 0 | |
7585 | ||
ad6254c5 AK |
7586 | ; |
7587 | return 0; | |
7588 | } | |
7589 | _ACEOF | |
7590 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7591 | if { (ac_try="$ac_compile" |
7592 | case "(($ac_try" in | |
7593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7594 | *) ac_try_echo=$ac_try;; | |
7595 | esac | |
ec6a6fbe AK |
7596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7597 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7598 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7599 | ac_status=$? |
8a2fc586 AK |
7600 | grep -v '^ *+' conftest.er1 >conftest.err |
7601 | rm -f conftest.er1 | |
7602 | cat conftest.err >&5 | |
ec6a6fbe | 7603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7604 | (exit $ac_status); } && { |
7605 | test -z "$ac_c_werror_flag" || | |
7606 | test ! -s conftest.err | |
7607 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7608 | case $ac_type in |
7609 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7610 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7611 | esac | |
7612 | ||
7613 | else | |
7614 | $as_echo "$as_me: failed program was:" >&5 | |
7615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7616 | ||
7617 | ||
7618 | fi | |
7619 | ||
7620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7621 | test "$ac_cv_c_uint32_t" != no && break | |
7622 | done | |
7623 | fi | |
7624 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7625 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7626 | case $ac_cv_c_uint32_t in #( | |
7627 | no|yes) ;; #( | |
7628 | *) | |
7629 | ||
7630 | cat >>confdefs.h <<\_ACEOF | |
7631 | #define _UINT32_T 1 | |
7632 | _ACEOF | |
7633 | ||
7634 | ||
7635 | cat >>confdefs.h <<_ACEOF | |
7636 | #define uint32_t $ac_cv_c_uint32_t | |
7637 | _ACEOF | |
7638 | ;; | |
7639 | esac | |
7640 | ||
7641 | ||
7642 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7643 | $as_echo_n "checking for uint64_t... " >&6; } | |
7644 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7645 | $as_echo_n "(cached) " >&6 | |
7646 | else | |
7647 | ac_cv_c_uint64_t=no | |
7648 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7649 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7650 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7651 | /* confdefs.h. */ |
7652 | _ACEOF | |
7653 | cat confdefs.h >>conftest.$ac_ext | |
7654 | cat >>conftest.$ac_ext <<_ACEOF | |
7655 | /* end confdefs.h. */ | |
7656 | $ac_includes_default | |
7657 | int | |
7658 | main () | |
7659 | { | |
d911ec67 AK |
7660 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7661 | test_array [0] = 0 | |
7662 | ||
ad6254c5 AK |
7663 | ; |
7664 | return 0; | |
7665 | } | |
7666 | _ACEOF | |
7667 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7668 | if { (ac_try="$ac_compile" |
7669 | case "(($ac_try" in | |
7670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7671 | *) ac_try_echo=$ac_try;; | |
7672 | esac | |
ec6a6fbe AK |
7673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7674 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7675 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7676 | ac_status=$? |
8a2fc586 AK |
7677 | grep -v '^ *+' conftest.er1 >conftest.err |
7678 | rm -f conftest.er1 | |
7679 | cat conftest.err >&5 | |
ec6a6fbe | 7680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7681 | (exit $ac_status); } && { |
7682 | test -z "$ac_c_werror_flag" || | |
7683 | test ! -s conftest.err | |
7684 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7685 | case $ac_type in |
7686 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7687 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7688 | esac | |
ec6a6fbe | 7689 | |
fddafd51 | 7690 | else |
ec6a6fbe | 7691 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7692 | sed 's/^/| /' conftest.$ac_ext >&5 |
7693 | ||
ec6a6fbe | 7694 | |
80992638 | 7695 | fi |
7a197a62 AK |
7696 | |
7697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7698 | test "$ac_cv_c_uint64_t" != no && break |
7699 | done | |
ad6254c5 | 7700 | fi |
d911ec67 AK |
7701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7702 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7703 | case $ac_cv_c_uint64_t in #( | |
7704 | no|yes) ;; #( | |
7705 | *) | |
80992638 | 7706 | |
d911ec67 AK |
7707 | cat >>confdefs.h <<\_ACEOF |
7708 | #define _UINT64_T 1 | |
ad6254c5 AK |
7709 | _ACEOF |
7710 | ||
d911ec67 AK |
7711 | |
7712 | cat >>confdefs.h <<_ACEOF | |
7713 | #define uint64_t $ac_cv_c_uint64_t | |
7714 | _ACEOF | |
7715 | ;; | |
7716 | esac | |
ad6254c5 | 7717 | |
ec6a6fbe AK |
7718 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7719 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7720 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7721 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7722 | else |
7723 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7724 | /* confdefs.h. */ |
7725 | _ACEOF | |
7726 | cat confdefs.h >>conftest.$ac_ext | |
7727 | cat >>conftest.$ac_ext <<_ACEOF | |
7728 | /* end confdefs.h. */ | |
7729 | $ac_includes_default | |
7730 | int | |
7731 | main () | |
7732 | { | |
7733 | static struct stat ac_aggr; | |
7734 | if (ac_aggr.st_rdev) | |
7735 | return 0; | |
7736 | ; | |
7737 | return 0; | |
7738 | } | |
7739 | _ACEOF | |
7740 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7741 | if { (ac_try="$ac_compile" |
7742 | case "(($ac_try" in | |
7743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7744 | *) ac_try_echo=$ac_try;; | |
7745 | esac | |
ec6a6fbe AK |
7746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7747 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7748 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7749 | ac_status=$? |
8a2fc586 AK |
7750 | grep -v '^ *+' conftest.er1 >conftest.err |
7751 | rm -f conftest.er1 | |
7752 | cat conftest.err >&5 | |
ec6a6fbe | 7753 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7754 | (exit $ac_status); } && { |
7755 | test -z "$ac_c_werror_flag" || | |
7756 | test ! -s conftest.err | |
7757 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7758 | ac_cv_member_struct_stat_st_rdev=yes |
7759 | else | |
ec6a6fbe | 7760 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7761 | sed 's/^/| /' conftest.$ac_ext >&5 |
7762 | ||
7a197a62 | 7763 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7764 | /* confdefs.h. */ |
7765 | _ACEOF | |
7766 | cat confdefs.h >>conftest.$ac_ext | |
7767 | cat >>conftest.$ac_ext <<_ACEOF | |
7768 | /* end confdefs.h. */ | |
7769 | $ac_includes_default | |
7770 | int | |
7771 | main () | |
7772 | { | |
7773 | static struct stat ac_aggr; | |
7774 | if (sizeof ac_aggr.st_rdev) | |
7775 | return 0; | |
7776 | ; | |
7777 | return 0; | |
7778 | } | |
7779 | _ACEOF | |
7780 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7781 | if { (ac_try="$ac_compile" |
7782 | case "(($ac_try" in | |
7783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7784 | *) ac_try_echo=$ac_try;; | |
7785 | esac | |
ec6a6fbe AK |
7786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7787 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7788 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7789 | ac_status=$? |
8a2fc586 AK |
7790 | grep -v '^ *+' conftest.er1 >conftest.err |
7791 | rm -f conftest.er1 | |
7792 | cat conftest.err >&5 | |
ec6a6fbe | 7793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7794 | (exit $ac_status); } && { |
7795 | test -z "$ac_c_werror_flag" || | |
7796 | test ! -s conftest.err | |
7797 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7798 | ac_cv_member_struct_stat_st_rdev=yes |
7799 | else | |
ec6a6fbe | 7800 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7801 | sed 's/^/| /' conftest.$ac_ext >&5 |
7802 | ||
7a197a62 | 7803 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7804 | fi |
7a197a62 AK |
7805 | |
7806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7807 | fi |
7a197a62 AK |
7808 | |
7809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7810 | fi |
ec6a6fbe AK |
7811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7812 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7813 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7814 | |
7815 | cat >>confdefs.h <<_ACEOF | |
7816 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7817 | _ACEOF | |
7818 | ||
7819 | ||
ad6254c5 AK |
7820 | fi |
7821 | ||
ec6a6fbe AK |
7822 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7823 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7824 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7825 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7826 | else |
7827 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7828 | /* confdefs.h. */ |
7829 | _ACEOF | |
7830 | cat confdefs.h >>conftest.$ac_ext | |
7831 | cat >>conftest.$ac_ext <<_ACEOF | |
7832 | /* end confdefs.h. */ | |
7833 | #include <sys/types.h> | |
7834 | #include <time.h> | |
7835 | ||
7836 | int | |
7837 | main () | |
7838 | { | |
25fbec5b AK |
7839 | struct tm tm; |
7840 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7841 | return !p; |
ad6254c5 AK |
7842 | ; |
7843 | return 0; | |
7844 | } | |
7845 | _ACEOF | |
7846 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7847 | if { (ac_try="$ac_compile" |
7848 | case "(($ac_try" in | |
7849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7850 | *) ac_try_echo=$ac_try;; | |
7851 | esac | |
ec6a6fbe AK |
7852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7853 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7854 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7855 | ac_status=$? |
8a2fc586 AK |
7856 | grep -v '^ *+' conftest.er1 >conftest.err |
7857 | rm -f conftest.er1 | |
7858 | cat conftest.err >&5 | |
ec6a6fbe | 7859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7860 | (exit $ac_status); } && { |
7861 | test -z "$ac_c_werror_flag" || | |
7862 | test ! -s conftest.err | |
d911ec67 AK |
7863 | } && test -s conftest.$ac_objext; then |
7864 | ac_cv_struct_tm=time.h | |
7865 | else | |
7866 | $as_echo "$as_me: failed program was:" >&5 | |
7867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7868 | ||
7869 | ac_cv_struct_tm=sys/time.h | |
7870 | fi | |
7871 | ||
7872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7873 | fi | |
7874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7875 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7876 | if test $ac_cv_struct_tm = sys/time.h; then | |
7877 | ||
7878 | cat >>confdefs.h <<\_ACEOF | |
7879 | #define TM_IN_SYS_TIME 1 | |
7880 | _ACEOF | |
7881 | ||
7882 | fi | |
7883 | ||
7884 | ||
7885 | ################################################################################ | |
7886 | { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5 | |
7887 | $as_echo_n "checking for library containing floor... " >&6; } | |
7888 | if test "${ac_cv_search_floor+set}" = set; then | |
7889 | $as_echo_n "(cached) " >&6 | |
7890 | else | |
7891 | ac_func_search_save_LIBS=$LIBS | |
7892 | cat >conftest.$ac_ext <<_ACEOF | |
7893 | /* confdefs.h. */ | |
7894 | _ACEOF | |
7895 | cat confdefs.h >>conftest.$ac_ext | |
7896 | cat >>conftest.$ac_ext <<_ACEOF | |
7897 | /* end confdefs.h. */ | |
7898 | ||
7899 | /* Override any GCC internal prototype to avoid an error. | |
7900 | Use char because int might match the return type of a GCC | |
7901 | builtin and then its argument prototype would still apply. */ | |
7902 | #ifdef __cplusplus | |
7903 | extern "C" | |
7904 | #endif | |
7905 | char floor (); | |
7906 | int | |
7907 | main () | |
7908 | { | |
7909 | return floor (); | |
7910 | ; | |
7911 | return 0; | |
7912 | } | |
7913 | _ACEOF | |
7914 | for ac_lib in '' m; do | |
7915 | if test -z "$ac_lib"; then | |
7916 | ac_res="none required" | |
7917 | else | |
7918 | ac_res=-l$ac_lib | |
7919 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7920 | fi | |
7921 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7922 | if { (ac_try="$ac_link" | |
7923 | case "(($ac_try" in | |
7924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7925 | *) ac_try_echo=$ac_try;; | |
7926 | esac | |
7927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7928 | $as_echo "$ac_try_echo") >&5 | |
7929 | (eval "$ac_link") 2>conftest.er1 | |
7930 | ac_status=$? | |
7931 | grep -v '^ *+' conftest.er1 >conftest.err | |
7932 | rm -f conftest.er1 | |
7933 | cat conftest.err >&5 | |
7934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7935 | (exit $ac_status); } && { | |
7936 | test -z "$ac_c_werror_flag" || | |
7937 | test ! -s conftest.err | |
7938 | } && test -s conftest$ac_exeext && { | |
7939 | test "$cross_compiling" = yes || | |
7940 | $as_test_x conftest$ac_exeext | |
7941 | }; then | |
7942 | ac_cv_search_floor=$ac_res | |
ad6254c5 | 7943 | else |
ec6a6fbe | 7944 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7945 | sed 's/^/| /' conftest.$ac_ext >&5 |
7946 | ||
7a197a62 | 7947 | |
ad6254c5 | 7948 | fi |
ad6254c5 | 7949 | |
d911ec67 AK |
7950 | rm -rf conftest.dSYM |
7951 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7952 | conftest$ac_exeext | |
7953 | if test "${ac_cv_search_floor+set}" = set; then | |
7954 | break | |
7955 | fi | |
7956 | done | |
7957 | if test "${ac_cv_search_floor+set}" = set; then | |
7958 | : | |
7959 | else | |
7960 | ac_cv_search_floor=no | |
7961 | fi | |
7962 | rm conftest.$ac_ext | |
7963 | LIBS=$ac_func_search_save_LIBS | |
7964 | fi | |
7965 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5 | |
7966 | $as_echo "$ac_cv_search_floor" >&6; } | |
7967 | ac_res=$ac_cv_search_floor | |
7968 | if test "$ac_res" != no; then | |
7969 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 | 7970 | |
d911ec67 AK |
7971 | else |
7972 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
7973 | $as_echo "$as_me: error: bailing out" >&2;} | |
7974 | { (exit 1); exit 1; }; } | |
ad6254c5 | 7975 | fi |
809fae91 | 7976 | |
795ca3e5 | 7977 | |
ad6254c5 AK |
7978 | |
7979 | ||
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | ||
d0191583 JM |
7992 | |
7993 | ||
7994 | ||
d911ec67 AK |
7995 | |
7996 | ||
7997 | ||
7998 | ||
7999 | ||
8000 | ||
8001 | ||
8002 | for ac_func in floor ftruncate gethostname getpagesize \ | |
8003 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
8004 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
8005 | strstr strtol strtoul uname | |
ad6254c5 | 8006 | do |
ec6a6fbe AK |
8007 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8008 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8009 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8010 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8011 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8012 | else |
ad6254c5 | 8013 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8014 | /* confdefs.h. */ |
8015 | _ACEOF | |
8016 | cat confdefs.h >>conftest.$ac_ext | |
8017 | cat >>conftest.$ac_ext <<_ACEOF | |
8018 | /* end confdefs.h. */ | |
8a2fc586 AK |
8019 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8021 | #define $ac_func innocuous_$ac_func | |
8022 | ||
ad6254c5 AK |
8023 | /* System header to define __stub macros and hopefully few prototypes, |
8024 | which can conflict with char $ac_func (); below. | |
8025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8026 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8027 | |
ad6254c5 AK |
8028 | #ifdef __STDC__ |
8029 | # include <limits.h> | |
8030 | #else | |
8031 | # include <assert.h> | |
8032 | #endif | |
8a2fc586 AK |
8033 | |
8034 | #undef $ac_func | |
8035 | ||
7a197a62 AK |
8036 | /* Override any GCC internal prototype to avoid an error. |
8037 | Use char because int might match the return type of a GCC | |
8038 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8039 | #ifdef __cplusplus |
8040 | extern "C" | |
ad6254c5 | 8041 | #endif |
ad6254c5 AK |
8042 | char $ac_func (); |
8043 | /* The GNU C library defines this for functions which it implements | |
8044 | to always fail with ENOSYS. Some functions are actually named | |
8045 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8046 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8047 | choke me |
ad6254c5 AK |
8048 | #endif |
8049 | ||
8050 | int | |
8051 | main () | |
8052 | { | |
7a197a62 | 8053 | return $ac_func (); |
ad6254c5 AK |
8054 | ; |
8055 | return 0; | |
8056 | } | |
8057 | _ACEOF | |
8058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8059 | if { (ac_try="$ac_link" |
8060 | case "(($ac_try" in | |
8061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8062 | *) ac_try_echo=$ac_try;; | |
8063 | esac | |
ec6a6fbe AK |
8064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8065 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8066 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8067 | ac_status=$? |
8a2fc586 AK |
8068 | grep -v '^ *+' conftest.er1 >conftest.err |
8069 | rm -f conftest.er1 | |
8070 | cat conftest.err >&5 | |
ec6a6fbe | 8071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8072 | (exit $ac_status); } && { |
8073 | test -z "$ac_c_werror_flag" || | |
8074 | test ! -s conftest.err | |
ec6a6fbe AK |
8075 | } && test -s conftest$ac_exeext && { |
8076 | test "$cross_compiling" = yes || | |
8077 | $as_test_x conftest$ac_exeext | |
8078 | }; then | |
fc54be10 AK |
8079 | eval "$as_ac_var=yes" |
8080 | else | |
ec6a6fbe | 8081 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8082 | sed 's/^/| /' conftest.$ac_ext >&5 |
8083 | ||
8084 | eval "$as_ac_var=no" | |
8085 | fi | |
8086 | ||
ec6a6fbe | 8087 | rm -rf conftest.dSYM |
25fbec5b | 8088 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8089 | conftest$ac_exeext conftest.$ac_ext |
8090 | fi | |
ec6a6fbe AK |
8091 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8092 | $as_echo "$as_val"'` | |
8093 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8094 | $as_echo "$ac_res" >&6; } | |
8095 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8096 | $as_echo "$as_val"'` | |
8097 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8098 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8099 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8100 | _ACEOF |
8101 | ||
8102 | else | |
ec6a6fbe AK |
8103 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8104 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8105 | { (exit 1); exit 1; }; } |
8106 | fi | |
8107 | done | |
795ca3e5 | 8108 | |
a0f9708e AK |
8109 | |
8110 | for ac_func in siginterrupt | |
8111 | do | |
8112 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8113 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8114 | $as_echo_n "checking for $ac_func... " >&6; } | |
8115 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8116 | $as_echo_n "(cached) " >&6 | |
8117 | else | |
8118 | cat >conftest.$ac_ext <<_ACEOF | |
8119 | /* confdefs.h. */ | |
8120 | _ACEOF | |
8121 | cat confdefs.h >>conftest.$ac_ext | |
8122 | cat >>conftest.$ac_ext <<_ACEOF | |
8123 | /* end confdefs.h. */ | |
8124 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8125 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8126 | #define $ac_func innocuous_$ac_func | |
8127 | ||
8128 | /* System header to define __stub macros and hopefully few prototypes, | |
8129 | which can conflict with char $ac_func (); below. | |
8130 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8131 | <limits.h> exists even on freestanding compilers. */ | |
8132 | ||
8133 | #ifdef __STDC__ | |
8134 | # include <limits.h> | |
8135 | #else | |
8136 | # include <assert.h> | |
8137 | #endif | |
8138 | ||
8139 | #undef $ac_func | |
8140 | ||
8141 | /* Override any GCC internal prototype to avoid an error. | |
8142 | Use char because int might match the return type of a GCC | |
8143 | builtin and then its argument prototype would still apply. */ | |
8144 | #ifdef __cplusplus | |
8145 | extern "C" | |
8146 | #endif | |
8147 | char $ac_func (); | |
8148 | /* The GNU C library defines this for functions which it implements | |
8149 | to always fail with ENOSYS. Some functions are actually named | |
8150 | something starting with __ and the normal name is an alias. */ | |
8151 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8152 | choke me | |
8153 | #endif | |
8154 | ||
8155 | int | |
8156 | main () | |
8157 | { | |
8158 | return $ac_func (); | |
8159 | ; | |
8160 | return 0; | |
8161 | } | |
8162 | _ACEOF | |
8163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8164 | if { (ac_try="$ac_link" | |
8165 | case "(($ac_try" in | |
8166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8167 | *) ac_try_echo=$ac_try;; | |
8168 | esac | |
8169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8170 | $as_echo "$ac_try_echo") >&5 | |
8171 | (eval "$ac_link") 2>conftest.er1 | |
8172 | ac_status=$? | |
8173 | grep -v '^ *+' conftest.er1 >conftest.err | |
8174 | rm -f conftest.er1 | |
8175 | cat conftest.err >&5 | |
8176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8177 | (exit $ac_status); } && { | |
8178 | test -z "$ac_c_werror_flag" || | |
8179 | test ! -s conftest.err | |
8180 | } && test -s conftest$ac_exeext && { | |
8181 | test "$cross_compiling" = yes || | |
8182 | $as_test_x conftest$ac_exeext | |
8183 | }; then | |
8184 | eval "$as_ac_var=yes" | |
8185 | else | |
8186 | $as_echo "$as_me: failed program was:" >&5 | |
8187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8188 | ||
8189 | eval "$as_ac_var=no" | |
8190 | fi | |
8191 | ||
8192 | rm -rf conftest.dSYM | |
8193 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8194 | conftest$ac_exeext conftest.$ac_ext | |
8195 | fi | |
8196 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8197 | $as_echo "$as_val"'` | |
8198 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8199 | $as_echo "$ac_res" >&6; } | |
8200 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8201 | $as_echo "$as_val"'` | |
8202 | if test "x$as_val" = x""yes; then | |
8203 | cat >>confdefs.h <<_ACEOF | |
8204 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8205 | _ACEOF | |
8206 | ||
8207 | fi | |
8208 | done | |
8209 | ||
ad6254c5 AK |
8210 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8211 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8212 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8213 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8214 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8215 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8216 | else |
8217 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8218 | /* confdefs.h. */ |
8219 | _ACEOF | |
8220 | cat confdefs.h >>conftest.$ac_ext | |
8221 | cat >>conftest.$ac_ext <<_ACEOF | |
8222 | /* end confdefs.h. */ | |
8223 | #include <alloca.h> | |
8224 | int | |
8225 | main () | |
8226 | { | |
8227 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8228 | if (p) return 0; |
ad6254c5 AK |
8229 | ; |
8230 | return 0; | |
8231 | } | |
8232 | _ACEOF | |
8233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8234 | if { (ac_try="$ac_link" |
8235 | case "(($ac_try" in | |
8236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8237 | *) ac_try_echo=$ac_try;; | |
8238 | esac | |
ec6a6fbe AK |
8239 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8240 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8241 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8242 | ac_status=$? |
8a2fc586 AK |
8243 | grep -v '^ *+' conftest.er1 >conftest.err |
8244 | rm -f conftest.er1 | |
8245 | cat conftest.err >&5 | |
ec6a6fbe | 8246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8247 | (exit $ac_status); } && { |
8248 | test -z "$ac_c_werror_flag" || | |
8249 | test ! -s conftest.err | |
ec6a6fbe AK |
8250 | } && test -s conftest$ac_exeext && { |
8251 | test "$cross_compiling" = yes || | |
8252 | $as_test_x conftest$ac_exeext | |
8253 | }; then | |
ad6254c5 AK |
8254 | ac_cv_working_alloca_h=yes |
8255 | else | |
ec6a6fbe | 8256 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8257 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8258 | |
7a197a62 | 8259 | ac_cv_working_alloca_h=no |
ad6254c5 | 8260 | fi |
7a197a62 | 8261 | |
ec6a6fbe | 8262 | rm -rf conftest.dSYM |
25fbec5b | 8263 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8264 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8265 | fi |
ec6a6fbe AK |
8266 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8267 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8268 | if test $ac_cv_working_alloca_h = yes; then |
8269 | ||
8270 | cat >>confdefs.h <<\_ACEOF | |
8271 | #define HAVE_ALLOCA_H 1 | |
8272 | _ACEOF | |
8273 | ||
8274 | fi | |
8275 | ||
ec6a6fbe AK |
8276 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8277 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8278 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8279 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8280 | else |
8281 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8282 | /* confdefs.h. */ |
8283 | _ACEOF | |
8284 | cat confdefs.h >>conftest.$ac_ext | |
8285 | cat >>conftest.$ac_ext <<_ACEOF | |
8286 | /* end confdefs.h. */ | |
8287 | #ifdef __GNUC__ | |
8288 | # define alloca __builtin_alloca | |
8289 | #else | |
8290 | # ifdef _MSC_VER | |
8291 | # include <malloc.h> | |
8292 | # define alloca _alloca | |
8293 | # else | |
25fbec5b | 8294 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8295 | # include <alloca.h> |
8296 | # else | |
8297 | # ifdef _AIX | |
8298 | #pragma alloca | |
8299 | # else | |
8300 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8301 | char *alloca (); | |
8302 | # endif | |
8303 | # endif | |
8304 | # endif | |
8305 | # endif | |
8306 | #endif | |
8307 | ||
8308 | int | |
8309 | main () | |
8310 | { | |
8311 | char *p = (char *) alloca (1); | |
7a197a62 | 8312 | if (p) return 0; |
ad6254c5 AK |
8313 | ; |
8314 | return 0; | |
8315 | } | |
8316 | _ACEOF | |
8317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8318 | if { (ac_try="$ac_link" |
8319 | case "(($ac_try" in | |
8320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8321 | *) ac_try_echo=$ac_try;; | |
8322 | esac | |
ec6a6fbe AK |
8323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8324 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8325 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8326 | ac_status=$? |
8a2fc586 AK |
8327 | grep -v '^ *+' conftest.er1 >conftest.err |
8328 | rm -f conftest.er1 | |
8329 | cat conftest.err >&5 | |
ec6a6fbe | 8330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8331 | (exit $ac_status); } && { |
8332 | test -z "$ac_c_werror_flag" || | |
8333 | test ! -s conftest.err | |
ec6a6fbe AK |
8334 | } && test -s conftest$ac_exeext && { |
8335 | test "$cross_compiling" = yes || | |
8336 | $as_test_x conftest$ac_exeext | |
8337 | }; then | |
ad6254c5 AK |
8338 | ac_cv_func_alloca_works=yes |
8339 | else | |
ec6a6fbe | 8340 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8341 | sed 's/^/| /' conftest.$ac_ext >&5 |
8342 | ||
7a197a62 | 8343 | ac_cv_func_alloca_works=no |
ad6254c5 | 8344 | fi |
7a197a62 | 8345 | |
ec6a6fbe | 8346 | rm -rf conftest.dSYM |
25fbec5b | 8347 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8348 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8349 | fi |
ec6a6fbe AK |
8350 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8351 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8352 | |
8353 | if test $ac_cv_func_alloca_works = yes; then | |
8354 | ||
8355 | cat >>confdefs.h <<\_ACEOF | |
8356 | #define HAVE_ALLOCA 1 | |
8357 | _ACEOF | |
8358 | ||
8359 | else | |
8360 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8361 | # that cause trouble. Some versions do not even contain alloca or | |
8362 | # contain a buggy version. If you still want to use their alloca, | |
8363 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8364 | ||
7a197a62 | 8365 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8366 | |
8367 | cat >>confdefs.h <<\_ACEOF | |
8368 | #define C_ALLOCA 1 | |
8369 | _ACEOF | |
8370 | ||
8371 | ||
ec6a6fbe AK |
8372 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8373 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8374 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8375 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8376 | else |
8377 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8378 | /* confdefs.h. */ |
8379 | _ACEOF | |
8380 | cat confdefs.h >>conftest.$ac_ext | |
8381 | cat >>conftest.$ac_ext <<_ACEOF | |
8382 | /* end confdefs.h. */ | |
7a197a62 | 8383 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8384 | webecray |
8385 | #else | |
8386 | wenotbecray | |
8387 | #endif | |
8388 | ||
8389 | _ACEOF | |
795ca3e5 | 8390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8391 | $EGREP "webecray" >/dev/null 2>&1; then |
8392 | ac_cv_os_cray=yes | |
8393 | else | |
8394 | ac_cv_os_cray=no | |
795ca3e5 AK |
8395 | fi |
8396 | rm -f conftest* | |
8397 | ||
795ca3e5 | 8398 | fi |
ec6a6fbe AK |
8399 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8400 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8401 | if test $ac_cv_os_cray = yes; then |
8402 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8403 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8404 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8405 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8406 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8407 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8408 | else |
8409 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8410 | /* confdefs.h. */ |
8411 | _ACEOF | |
8412 | cat confdefs.h >>conftest.$ac_ext | |
8413 | cat >>conftest.$ac_ext <<_ACEOF | |
8414 | /* end confdefs.h. */ | |
8a2fc586 AK |
8415 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8417 | #define $ac_func innocuous_$ac_func | |
8418 | ||
ad6254c5 AK |
8419 | /* System header to define __stub macros and hopefully few prototypes, |
8420 | which can conflict with char $ac_func (); below. | |
8421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8422 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8423 | |
ad6254c5 AK |
8424 | #ifdef __STDC__ |
8425 | # include <limits.h> | |
8426 | #else | |
8427 | # include <assert.h> | |
8428 | #endif | |
8a2fc586 AK |
8429 | |
8430 | #undef $ac_func | |
8431 | ||
7a197a62 AK |
8432 | /* Override any GCC internal prototype to avoid an error. |
8433 | Use char because int might match the return type of a GCC | |
8434 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8435 | #ifdef __cplusplus |
8436 | extern "C" | |
ad6254c5 | 8437 | #endif |
ad6254c5 AK |
8438 | char $ac_func (); |
8439 | /* The GNU C library defines this for functions which it implements | |
8440 | to always fail with ENOSYS. Some functions are actually named | |
8441 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8442 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8443 | choke me |
ad6254c5 AK |
8444 | #endif |
8445 | ||
8446 | int | |
8447 | main () | |
8448 | { | |
7a197a62 | 8449 | return $ac_func (); |
ad6254c5 AK |
8450 | ; |
8451 | return 0; | |
8452 | } | |
8453 | _ACEOF | |
8454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8455 | if { (ac_try="$ac_link" |
8456 | case "(($ac_try" in | |
8457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8458 | *) ac_try_echo=$ac_try;; | |
8459 | esac | |
ec6a6fbe AK |
8460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8461 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8462 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8463 | ac_status=$? |
8a2fc586 AK |
8464 | grep -v '^ *+' conftest.er1 >conftest.err |
8465 | rm -f conftest.er1 | |
8466 | cat conftest.err >&5 | |
ec6a6fbe | 8467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8468 | (exit $ac_status); } && { |
8469 | test -z "$ac_c_werror_flag" || | |
8470 | test ! -s conftest.err | |
ec6a6fbe AK |
8471 | } && test -s conftest$ac_exeext && { |
8472 | test "$cross_compiling" = yes || | |
8473 | $as_test_x conftest$ac_exeext | |
8474 | }; then | |
ad6254c5 AK |
8475 | eval "$as_ac_var=yes" |
8476 | else | |
ec6a6fbe | 8477 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8478 | sed 's/^/| /' conftest.$ac_ext >&5 |
8479 | ||
7a197a62 | 8480 | eval "$as_ac_var=no" |
ad6254c5 | 8481 | fi |
7a197a62 | 8482 | |
ec6a6fbe | 8483 | rm -rf conftest.dSYM |
25fbec5b | 8484 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8485 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8486 | fi |
ec6a6fbe AK |
8487 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8488 | $as_echo "$as_val"'` | |
8489 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8490 | $as_echo "$ac_res" >&6; } | |
8491 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8492 | $as_echo "$as_val"'` | |
8493 | if test "x$as_val" = x""yes; then | |
80992638 | 8494 | |
ad6254c5 AK |
8495 | cat >>confdefs.h <<_ACEOF |
8496 | #define CRAY_STACKSEG_END $ac_func | |
8497 | _ACEOF | |
8498 | ||
8499 | break | |
8500 | fi | |
8501 | ||
8502 | done | |
8503 | fi | |
8504 | ||
ec6a6fbe AK |
8505 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8506 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8507 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8508 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8509 | else |
8510 | if test "$cross_compiling" = yes; then | |
8511 | ac_cv_c_stack_direction=0 | |
8512 | else | |
8513 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8514 | /* confdefs.h. */ |
8515 | _ACEOF | |
8516 | cat confdefs.h >>conftest.$ac_ext | |
8517 | cat >>conftest.$ac_ext <<_ACEOF | |
8518 | /* end confdefs.h. */ | |
7a197a62 | 8519 | $ac_includes_default |
ad6254c5 AK |
8520 | int |
8521 | find_stack_direction () | |
8522 | { | |
8523 | static char *addr = 0; | |
8524 | auto char dummy; | |
8525 | if (addr == 0) | |
8526 | { | |
8527 | addr = &dummy; | |
8528 | return find_stack_direction (); | |
8529 | } | |
8530 | else | |
8531 | return (&dummy > addr) ? 1 : -1; | |
8532 | } | |
8533 | ||
8534 | int | |
8535 | main () | |
8536 | { | |
7a197a62 | 8537 | return find_stack_direction () < 0; |
ad6254c5 AK |
8538 | } |
8539 | _ACEOF | |
8540 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8541 | if { (ac_try="$ac_link" |
8542 | case "(($ac_try" in | |
8543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8544 | *) ac_try_echo=$ac_try;; | |
8545 | esac | |
ec6a6fbe AK |
8546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8547 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8548 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8549 | ac_status=$? |
ec6a6fbe | 8550 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8552 | { (case "(($ac_try" in |
8553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8554 | *) ac_try_echo=$ac_try;; | |
8555 | esac | |
ec6a6fbe AK |
8556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8557 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8558 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8559 | ac_status=$? |
ec6a6fbe | 8560 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8561 | (exit $ac_status); }; }; then |
8562 | ac_cv_c_stack_direction=1 | |
8563 | else | |
ec6a6fbe AK |
8564 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8565 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8566 | sed 's/^/| /' conftest.$ac_ext >&5 |
8567 | ||
8568 | ( exit $ac_status ) | |
8569 | ac_cv_c_stack_direction=-1 | |
8570 | fi | |
ec6a6fbe | 8571 | rm -rf conftest.dSYM |
7a197a62 | 8572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8573 | fi |
7a197a62 AK |
8574 | |
8575 | ||
ad6254c5 | 8576 | fi |
ec6a6fbe AK |
8577 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8578 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8579 | |
d911ec67 AK |
8580 | cat >>confdefs.h <<_ACEOF |
8581 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8582 | _ACEOF | |
8583 | ||
8584 | ||
8585 | fi | |
8586 | ||
8587 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8588 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8589 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8590 | $as_echo_n "(cached) " >&6 | |
8591 | else | |
8592 | if test "$cross_compiling" = yes; then | |
8593 | ac_cv_func_closedir_void=yes | |
8594 | else | |
8595 | cat >conftest.$ac_ext <<_ACEOF | |
8596 | /* confdefs.h. */ | |
8597 | _ACEOF | |
8598 | cat confdefs.h >>conftest.$ac_ext | |
8599 | cat >>conftest.$ac_ext <<_ACEOF | |
8600 | /* end confdefs.h. */ | |
8601 | $ac_includes_default | |
8602 | #include <$ac_header_dirent> | |
8603 | #ifndef __cplusplus | |
8604 | int closedir (); | |
8605 | #endif | |
8606 | ||
8607 | int | |
8608 | main () | |
8609 | { | |
8610 | return closedir (opendir (".")) != 0; | |
8611 | ; | |
8612 | return 0; | |
8613 | } | |
8614 | _ACEOF | |
8615 | rm -f conftest$ac_exeext | |
8616 | if { (ac_try="$ac_link" | |
8617 | case "(($ac_try" in | |
8618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8619 | *) ac_try_echo=$ac_try;; | |
8620 | esac | |
8621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8622 | $as_echo "$ac_try_echo") >&5 | |
8623 | (eval "$ac_link") 2>&5 | |
8624 | ac_status=$? | |
8625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8627 | { (case "(($ac_try" in | |
8628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8629 | *) ac_try_echo=$ac_try;; | |
8630 | esac | |
8631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8632 | $as_echo "$ac_try_echo") >&5 | |
8633 | (eval "$ac_try") 2>&5 | |
8634 | ac_status=$? | |
8635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8636 | (exit $ac_status); }; }; then | |
8637 | ac_cv_func_closedir_void=no | |
8638 | else | |
8639 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8640 | $as_echo "$as_me: failed program was:" >&5 | |
8641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8642 | ||
8643 | ( exit $ac_status ) | |
8644 | ac_cv_func_closedir_void=yes | |
8645 | fi | |
8646 | rm -rf conftest.dSYM | |
8647 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8648 | fi | |
8649 | ||
8650 | ||
8651 | fi | |
8652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8653 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8654 | if test $ac_cv_func_closedir_void = yes; then | |
8655 | ||
8656 | cat >>confdefs.h <<\_ACEOF | |
8657 | #define CLOSEDIR_VOID 1 | |
8658 | _ACEOF | |
8659 | ||
8660 | fi | |
8661 | ||
8662 | ||
8663 | for ac_header in unistd.h | |
8664 | do | |
8665 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8666 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8667 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8668 | $as_echo_n "checking for $ac_header... " >&6; } | |
8669 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8670 | $as_echo_n "(cached) " >&6 | |
8671 | fi | |
8672 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8673 | $as_echo "$as_val"'` | |
8674 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8675 | $as_echo "$ac_res" >&6; } | |
8676 | else | |
8677 | # Is the header compilable? | |
8678 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8679 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8680 | cat >conftest.$ac_ext <<_ACEOF | |
8681 | /* confdefs.h. */ | |
8682 | _ACEOF | |
8683 | cat confdefs.h >>conftest.$ac_ext | |
8684 | cat >>conftest.$ac_ext <<_ACEOF | |
8685 | /* end confdefs.h. */ | |
8686 | $ac_includes_default | |
8687 | #include <$ac_header> | |
8688 | _ACEOF | |
8689 | rm -f conftest.$ac_objext | |
8690 | if { (ac_try="$ac_compile" | |
8691 | case "(($ac_try" in | |
8692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8693 | *) ac_try_echo=$ac_try;; | |
8694 | esac | |
8695 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8696 | $as_echo "$ac_try_echo") >&5 | |
8697 | (eval "$ac_compile") 2>conftest.er1 | |
8698 | ac_status=$? | |
8699 | grep -v '^ *+' conftest.er1 >conftest.err | |
8700 | rm -f conftest.er1 | |
8701 | cat conftest.err >&5 | |
8702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8703 | (exit $ac_status); } && { | |
8704 | test -z "$ac_c_werror_flag" || | |
8705 | test ! -s conftest.err | |
8706 | } && test -s conftest.$ac_objext; then | |
8707 | ac_header_compiler=yes | |
8708 | else | |
8709 | $as_echo "$as_me: failed program was:" >&5 | |
8710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8711 | ||
8712 | ac_header_compiler=no | |
8713 | fi | |
8714 | ||
8715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8716 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8717 | $as_echo "$ac_header_compiler" >&6; } | |
8718 | ||
8719 | # Is the header present? | |
8720 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8721 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8722 | cat >conftest.$ac_ext <<_ACEOF | |
8723 | /* confdefs.h. */ | |
8724 | _ACEOF | |
8725 | cat confdefs.h >>conftest.$ac_ext | |
8726 | cat >>conftest.$ac_ext <<_ACEOF | |
8727 | /* end confdefs.h. */ | |
8728 | #include <$ac_header> | |
8729 | _ACEOF | |
8730 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8731 | case "(($ac_try" in | |
8732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8733 | *) ac_try_echo=$ac_try;; | |
8734 | esac | |
8735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8736 | $as_echo "$ac_try_echo") >&5 | |
8737 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8738 | ac_status=$? | |
8739 | grep -v '^ *+' conftest.er1 >conftest.err | |
8740 | rm -f conftest.er1 | |
8741 | cat conftest.err >&5 | |
8742 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8743 | (exit $ac_status); } >/dev/null && { | |
8744 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8745 | test ! -s conftest.err | |
8746 | }; then | |
8747 | ac_header_preproc=yes | |
8748 | else | |
8749 | $as_echo "$as_me: failed program was:" >&5 | |
8750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8751 | ||
8752 | ac_header_preproc=no | |
8753 | fi | |
8754 | ||
8755 | rm -f conftest.err conftest.$ac_ext | |
8756 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8757 | $as_echo "$ac_header_preproc" >&6; } | |
8758 | ||
8759 | # So? What about this header? | |
8760 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8761 | yes:no: ) | |
8762 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8763 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8764 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8765 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8766 | ac_header_preproc=yes | |
8767 | ;; | |
8768 | no:yes:* ) | |
8769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8770 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8772 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8774 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8775 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8776 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8777 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8778 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8779 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8780 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8781 | ||
8782 | ;; | |
8783 | esac | |
8784 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8785 | $as_echo_n "checking for $ac_header... " >&6; } | |
8786 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8787 | $as_echo_n "(cached) " >&6 | |
8788 | else | |
8789 | eval "$as_ac_Header=\$ac_header_preproc" | |
8790 | fi | |
8791 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8792 | $as_echo "$as_val"'` | |
8793 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8794 | $as_echo "$ac_res" >&6; } | |
8795 | ||
8796 | fi | |
8797 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8798 | $as_echo "$as_val"'` | |
8799 | if test "x$as_val" = x""yes; then | |
8800 | cat >>confdefs.h <<_ACEOF | |
8801 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8802 | _ACEOF |
8803 | ||
ad6254c5 AK |
8804 | fi |
8805 | ||
d911ec67 AK |
8806 | done |
8807 | ||
8808 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8809 | $as_echo_n "checking for working chown... " >&6; } | |
8810 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8811 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8812 | else |
8813 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8814 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8815 | else |
8816 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8817 | /* confdefs.h. */ |
8818 | _ACEOF | |
8819 | cat confdefs.h >>conftest.$ac_ext | |
8820 | cat >>conftest.$ac_ext <<_ACEOF | |
8821 | /* end confdefs.h. */ | |
8822 | $ac_includes_default | |
d911ec67 | 8823 | #include <fcntl.h> |
ad6254c5 AK |
8824 | |
8825 | int | |
8826 | main () | |
8827 | { | |
d911ec67 AK |
8828 | char *f = "conftest.chown"; |
8829 | struct stat before, after; | |
8830 | ||
8831 | if (creat (f, 0600) < 0) | |
8832 | return 1; | |
8833 | if (stat (f, &before) < 0) | |
8834 | return 1; | |
8835 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8836 | return 1; | |
8837 | if (stat (f, &after) < 0) | |
8838 | return 1; | |
8839 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8840 | ||
ad6254c5 AK |
8841 | ; |
8842 | return 0; | |
8843 | } | |
8844 | _ACEOF | |
8845 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8846 | if { (ac_try="$ac_link" |
8847 | case "(($ac_try" in | |
8848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8849 | *) ac_try_echo=$ac_try;; | |
8850 | esac | |
ec6a6fbe AK |
8851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8852 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8853 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8854 | ac_status=$? |
ec6a6fbe | 8855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8856 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8857 | { (case "(($ac_try" in |
8858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8859 | *) ac_try_echo=$ac_try;; | |
8860 | esac | |
ec6a6fbe AK |
8861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8862 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8863 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8864 | ac_status=$? |
ec6a6fbe | 8865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8866 | (exit $ac_status); }; }; then |
d911ec67 | 8867 | ac_cv_func_chown_works=yes |
ad6254c5 | 8868 | else |
ec6a6fbe AK |
8869 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8870 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8871 | sed 's/^/| /' conftest.$ac_ext >&5 |
8872 | ||
8873 | ( exit $ac_status ) | |
d911ec67 | 8874 | ac_cv_func_chown_works=no |
ad6254c5 | 8875 | fi |
ec6a6fbe | 8876 | rm -rf conftest.dSYM |
7a197a62 | 8877 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8878 | fi |
7a197a62 AK |
8879 | |
8880 | ||
d911ec67 AK |
8881 | rm -f conftest.chown |
8882 | ||
ad6254c5 | 8883 | fi |
d911ec67 AK |
8884 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8885 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8886 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8887 | |
8888 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8889 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8890 | _ACEOF |
8891 | ||
8892 | fi | |
8893 | ||
8894 | ||
7a197a62 | 8895 | for ac_header in vfork.h |
ad6254c5 | 8896 | do |
ec6a6fbe | 8897 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8898 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8899 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8900 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8902 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8903 | fi |
ec6a6fbe AK |
8904 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8905 | $as_echo "$as_val"'` | |
8906 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8907 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8908 | else |
8909 | # Is the header compilable? | |
ec6a6fbe AK |
8910 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8911 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8912 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8913 | /* confdefs.h. */ |
8914 | _ACEOF | |
8915 | cat confdefs.h >>conftest.$ac_ext | |
8916 | cat >>conftest.$ac_ext <<_ACEOF | |
8917 | /* end confdefs.h. */ | |
8918 | $ac_includes_default | |
8919 | #include <$ac_header> | |
8920 | _ACEOF | |
8921 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8922 | if { (ac_try="$ac_compile" |
8923 | case "(($ac_try" in | |
8924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8925 | *) ac_try_echo=$ac_try;; | |
8926 | esac | |
ec6a6fbe AK |
8927 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8928 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8929 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8930 | ac_status=$? |
8a2fc586 AK |
8931 | grep -v '^ *+' conftest.er1 >conftest.err |
8932 | rm -f conftest.er1 | |
8933 | cat conftest.err >&5 | |
ec6a6fbe | 8934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8935 | (exit $ac_status); } && { |
8936 | test -z "$ac_c_werror_flag" || | |
8937 | test ! -s conftest.err | |
8938 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8939 | ac_header_compiler=yes |
8940 | else | |
ec6a6fbe | 8941 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8942 | sed 's/^/| /' conftest.$ac_ext >&5 |
8943 | ||
7a197a62 | 8944 | ac_header_compiler=no |
ad6254c5 | 8945 | fi |
7a197a62 AK |
8946 | |
8947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8948 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8949 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8950 | |
8951 | # Is the header present? | |
ec6a6fbe AK |
8952 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8953 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8954 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8955 | /* confdefs.h. */ |
8956 | _ACEOF | |
8957 | cat confdefs.h >>conftest.$ac_ext | |
8958 | cat >>conftest.$ac_ext <<_ACEOF | |
8959 | /* end confdefs.h. */ | |
8960 | #include <$ac_header> | |
8961 | _ACEOF | |
7a197a62 AK |
8962 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8963 | case "(($ac_try" in | |
8964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8965 | *) ac_try_echo=$ac_try;; | |
8966 | esac | |
ec6a6fbe AK |
8967 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8968 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8969 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8970 | ac_status=$? |
8971 | grep -v '^ *+' conftest.er1 >conftest.err | |
8972 | rm -f conftest.er1 | |
8973 | cat conftest.err >&5 | |
ec6a6fbe | 8974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8975 | (exit $ac_status); } >/dev/null && { |
8976 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8977 | test ! -s conftest.err | |
8978 | }; then | |
ad6254c5 AK |
8979 | ac_header_preproc=yes |
8980 | else | |
ec6a6fbe | 8981 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8982 | sed 's/^/| /' conftest.$ac_ext >&5 |
8983 | ||
8984 | ac_header_preproc=no | |
8985 | fi | |
7a197a62 | 8986 | |
ad6254c5 | 8987 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8988 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8989 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8990 | |
8991 | # So? What about this header? | |
8a2fc586 AK |
8992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8993 | yes:no: ) | |
ec6a6fbe AK |
8994 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8995 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8996 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8997 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8998 | ac_header_preproc=yes |
ad6254c5 | 8999 | ;; |
8a2fc586 | 9000 | no:yes:* ) |
ec6a6fbe AK |
9001 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9002 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9003 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9004 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9006 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9007 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9008 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9010 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9012 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9013 | |
ad6254c5 AK |
9014 | ;; |
9015 | esac | |
ec6a6fbe AK |
9016 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9017 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9018 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9019 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9020 | else |
8a2fc586 | 9021 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9022 | fi |
ec6a6fbe AK |
9023 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9024 | $as_echo "$as_val"'` | |
9025 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9026 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 9027 | |
795ca3e5 | 9028 | fi |
ec6a6fbe AK |
9029 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9030 | $as_echo "$as_val"'` | |
9031 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9032 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9033 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9034 | _ACEOF |
9035 | ||
9036 | fi | |
9037 | ||
9038 | done | |
795ca3e5 | 9039 | |
ad6254c5 AK |
9040 | |
9041 | ||
9042 | for ac_func in fork vfork | |
9043 | do | |
ec6a6fbe AK |
9044 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9045 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9046 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9047 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9048 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9049 | else |
ad6254c5 | 9050 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9051 | /* confdefs.h. */ |
9052 | _ACEOF | |
9053 | cat confdefs.h >>conftest.$ac_ext | |
9054 | cat >>conftest.$ac_ext <<_ACEOF | |
9055 | /* end confdefs.h. */ | |
8a2fc586 AK |
9056 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9057 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9058 | #define $ac_func innocuous_$ac_func | |
9059 | ||
ad6254c5 AK |
9060 | /* System header to define __stub macros and hopefully few prototypes, |
9061 | which can conflict with char $ac_func (); below. | |
9062 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9063 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9064 | |
ad6254c5 AK |
9065 | #ifdef __STDC__ |
9066 | # include <limits.h> | |
9067 | #else | |
9068 | # include <assert.h> | |
795ca3e5 | 9069 | #endif |
8a2fc586 AK |
9070 | |
9071 | #undef $ac_func | |
9072 | ||
7a197a62 AK |
9073 | /* Override any GCC internal prototype to avoid an error. |
9074 | Use char because int might match the return type of a GCC | |
9075 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 9076 | #ifdef __cplusplus |
ad6254c5 | 9077 | extern "C" |
ad6254c5 | 9078 | #endif |
ad6254c5 AK |
9079 | char $ac_func (); |
9080 | /* The GNU C library defines this for functions which it implements | |
9081 | to always fail with ENOSYS. Some functions are actually named | |
9082 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9083 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9084 | choke me |
795ca3e5 AK |
9085 | #endif |
9086 | ||
ad6254c5 AK |
9087 | int |
9088 | main () | |
9089 | { | |
7a197a62 | 9090 | return $ac_func (); |
ad6254c5 AK |
9091 | ; |
9092 | return 0; | |
9093 | } | |
9094 | _ACEOF | |
9095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9096 | if { (ac_try="$ac_link" |
9097 | case "(($ac_try" in | |
9098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9099 | *) ac_try_echo=$ac_try;; | |
9100 | esac | |
ec6a6fbe AK |
9101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9102 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9103 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9104 | ac_status=$? |
8a2fc586 AK |
9105 | grep -v '^ *+' conftest.er1 >conftest.err |
9106 | rm -f conftest.er1 | |
9107 | cat conftest.err >&5 | |
ec6a6fbe | 9108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9109 | (exit $ac_status); } && { |
9110 | test -z "$ac_c_werror_flag" || | |
9111 | test ! -s conftest.err | |
ec6a6fbe AK |
9112 | } && test -s conftest$ac_exeext && { |
9113 | test "$cross_compiling" = yes || | |
9114 | $as_test_x conftest$ac_exeext | |
9115 | }; then | |
ad6254c5 | 9116 | eval "$as_ac_var=yes" |
795ca3e5 | 9117 | else |
ec6a6fbe | 9118 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9119 | sed 's/^/| /' conftest.$ac_ext >&5 |
9120 | ||
7a197a62 | 9121 | eval "$as_ac_var=no" |
795ca3e5 | 9122 | fi |
7a197a62 | 9123 | |
ec6a6fbe | 9124 | rm -rf conftest.dSYM |
25fbec5b | 9125 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9126 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9127 | fi |
ec6a6fbe AK |
9128 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9129 | $as_echo "$as_val"'` | |
9130 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9131 | $as_echo "$ac_res" >&6; } | |
9132 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9133 | $as_echo "$as_val"'` | |
9134 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9135 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9136 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9137 | _ACEOF |
9138 | ||
9139 | fi | |
9140 | done | |
9141 | ||
9142 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9143 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9144 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9145 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9146 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9147 | else |
9148 | if test "$cross_compiling" = yes; then | |
9149 | ac_cv_func_fork_works=cross | |
9150 | else | |
9151 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9152 | /* confdefs.h. */ |
9153 | _ACEOF | |
9154 | cat confdefs.h >>conftest.$ac_ext | |
9155 | cat >>conftest.$ac_ext <<_ACEOF | |
9156 | /* end confdefs.h. */ | |
9157 | $ac_includes_default | |
9158 | int | |
9159 | main () | |
9160 | { | |
9161 | ||
9162 | /* By Ruediger Kuhlmann. */ | |
9163 | return fork () < 0; | |
9164 | ||
9165 | ; | |
9166 | return 0; | |
9167 | } | |
ad6254c5 AK |
9168 | _ACEOF |
9169 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9170 | if { (ac_try="$ac_link" |
9171 | case "(($ac_try" in | |
9172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9173 | *) ac_try_echo=$ac_try;; | |
9174 | esac | |
ec6a6fbe AK |
9175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9176 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9177 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9178 | ac_status=$? |
ec6a6fbe | 9179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9181 | { (case "(($ac_try" in |
9182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9183 | *) ac_try_echo=$ac_try;; | |
9184 | esac | |
ec6a6fbe AK |
9185 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9186 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9187 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9188 | ac_status=$? |
ec6a6fbe | 9189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9190 | (exit $ac_status); }; }; then |
9191 | ac_cv_func_fork_works=yes | |
9192 | else | |
ec6a6fbe AK |
9193 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9194 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9195 | sed 's/^/| /' conftest.$ac_ext >&5 |
9196 | ||
9197 | ( exit $ac_status ) | |
9198 | ac_cv_func_fork_works=no | |
9199 | fi | |
ec6a6fbe | 9200 | rm -rf conftest.dSYM |
7a197a62 | 9201 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9202 | fi |
7a197a62 AK |
9203 | |
9204 | ||
ad6254c5 | 9205 | fi |
ec6a6fbe AK |
9206 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9207 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9208 | |
9209 | else | |
9210 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9211 | fi | |
9212 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9213 | case $host in | |
9214 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9215 | # Override, as these systems have only a dummy fork() stub | |
9216 | ac_cv_func_fork_works=no | |
9217 | ;; | |
9218 | *) | |
9219 | ac_cv_func_fork_works=yes | |
9220 | ;; | |
9221 | esac | |
ec6a6fbe AK |
9222 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9223 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9224 | fi |
9225 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9226 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9227 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9228 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9229 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9230 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9231 | else |
9232 | if test "$cross_compiling" = yes; then | |
9233 | ac_cv_func_vfork_works=cross | |
9234 | else | |
9235 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9236 | /* confdefs.h. */ |
9237 | _ACEOF | |
9238 | cat confdefs.h >>conftest.$ac_ext | |
9239 | cat >>conftest.$ac_ext <<_ACEOF | |
9240 | /* end confdefs.h. */ | |
9241 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9242 | $ac_includes_default |
ad6254c5 | 9243 | #include <sys/wait.h> |
25fbec5b | 9244 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9245 | # include <vfork.h> |
9246 | #endif | |
9247 | /* On some sparc systems, changes by the child to local and incoming | |
9248 | argument registers are propagated back to the parent. The compiler | |
9249 | is told about this with #include <vfork.h>, but some compilers | |
9250 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9251 | static variable whose address is put into a register that is | |
9252 | clobbered by the vfork. */ | |
9253 | static void | |
9254 | #ifdef __cplusplus | |
9255 | sparc_address_test (int arg) | |
9256 | # else | |
9257 | sparc_address_test (arg) int arg; | |
9258 | #endif | |
9259 | { | |
9260 | static pid_t child; | |
9261 | if (!child) { | |
9262 | child = vfork (); | |
9263 | if (child < 0) { | |
9264 | perror ("vfork"); | |
9265 | _exit(2); | |
9266 | } | |
9267 | if (!child) { | |
9268 | arg = getpid(); | |
9269 | write(-1, "", 0); | |
9270 | _exit (arg); | |
9271 | } | |
9272 | } | |
9273 | } | |
9274 | ||
9275 | int | |
9276 | main () | |
9277 | { | |
9278 | pid_t parent = getpid (); | |
9279 | pid_t child; | |
9280 | ||
9281 | sparc_address_test (0); | |
9282 | ||
9283 | child = vfork (); | |
9284 | ||
9285 | if (child == 0) { | |
9286 | /* Here is another test for sparc vfork register problems. This | |
9287 | test uses lots of local variables, at least as many local | |
9288 | variables as main has allocated so far including compiler | |
9289 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9290 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9291 | reuse the register of parent for one of the local variables, | |
9292 | since it will think that parent can't possibly be used any more | |
9293 | in this routine. Assigning to the local variable will thus | |
9294 | munge parent in the parent process. */ | |
9295 | pid_t | |
9296 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9297 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9298 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9299 | use the same hardware register for all 8 local variables. */ | |
9300 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9301 | || p != p5 || p != p6 || p != p7) | |
9302 | _exit(1); | |
9303 | ||
9304 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9305 | from child file descriptors. If the child closes a descriptor | |
9306 | before it execs or exits, this munges the parent's descriptor | |
9307 | as well. Test for this by closing stdout in the child. */ | |
9308 | _exit(close(fileno(stdout)) != 0); | |
9309 | } else { | |
9310 | int status; | |
9311 | struct stat st; | |
9312 | ||
9313 | while (wait(&status) != child) | |
9314 | ; | |
7a197a62 | 9315 | return ( |
ad6254c5 AK |
9316 | /* Was there some problem with vforking? */ |
9317 | child < 0 | |
9318 | ||
9319 | /* Did the child fail? (This shouldn't happen.) */ | |
9320 | || status | |
9321 | ||
9322 | /* Did the vfork/compiler bug occur? */ | |
9323 | || parent != getpid() | |
9324 | ||
9325 | /* Did the file descriptor bug occur? */ | |
9326 | || fstat(fileno(stdout), &st) != 0 | |
9327 | ); | |
9328 | } | |
9329 | } | |
9330 | _ACEOF | |
9331 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9332 | if { (ac_try="$ac_link" |
9333 | case "(($ac_try" in | |
9334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9335 | *) ac_try_echo=$ac_try;; | |
9336 | esac | |
ec6a6fbe AK |
9337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9338 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9339 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9340 | ac_status=$? |
ec6a6fbe | 9341 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9343 | { (case "(($ac_try" in |
9344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9345 | *) ac_try_echo=$ac_try;; | |
9346 | esac | |
ec6a6fbe AK |
9347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9348 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9349 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9350 | ac_status=$? |
ec6a6fbe | 9351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9352 | (exit $ac_status); }; }; then |
9353 | ac_cv_func_vfork_works=yes | |
9354 | else | |
ec6a6fbe AK |
9355 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9356 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9357 | sed 's/^/| /' conftest.$ac_ext >&5 |
9358 | ||
9359 | ( exit $ac_status ) | |
9360 | ac_cv_func_vfork_works=no | |
9361 | fi | |
ec6a6fbe | 9362 | rm -rf conftest.dSYM |
7a197a62 | 9363 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9364 | fi |
7a197a62 AK |
9365 | |
9366 | ||
ad6254c5 | 9367 | fi |
ec6a6fbe AK |
9368 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9369 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9370 | |
9371 | fi; | |
9372 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9373 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9374 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9375 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9376 | fi |
9377 | ||
9378 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9379 | ||
9380 | cat >>confdefs.h <<\_ACEOF | |
9381 | #define HAVE_WORKING_VFORK 1 | |
9382 | _ACEOF | |
9383 | ||
9384 | else | |
9385 | ||
9386 | cat >>confdefs.h <<\_ACEOF | |
9387 | #define vfork fork | |
9388 | _ACEOF | |
9389 | ||
9390 | fi | |
9391 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9392 | ||
9393 | cat >>confdefs.h <<\_ACEOF | |
9394 | #define HAVE_WORKING_FORK 1 | |
9395 | _ACEOF | |
9396 | ||
9397 | fi | |
9398 | ||
ec6a6fbe AK |
9399 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9400 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9401 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9402 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9403 | else |
9404 | rm -f conftest.sym conftest.file | |
9405 | echo >conftest.file | |
9406 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9407 | if test "$cross_compiling" = yes; then | |
9408 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9409 | else | |
9410 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9411 | /* confdefs.h. */ |
9412 | _ACEOF | |
9413 | cat confdefs.h >>conftest.$ac_ext | |
9414 | cat >>conftest.$ac_ext <<_ACEOF | |
9415 | /* end confdefs.h. */ | |
9416 | $ac_includes_default | |
9417 | int | |
9418 | main () | |
9419 | { | |
9420 | struct stat sbuf; | |
9421 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9422 | That is better in the sense that it means we will not |
9423 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9424 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9425 | ; |
9426 | return 0; | |
9427 | } | |
9428 | _ACEOF | |
9429 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9430 | if { (ac_try="$ac_link" |
9431 | case "(($ac_try" in | |
9432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9433 | *) ac_try_echo=$ac_try;; | |
9434 | esac | |
ec6a6fbe AK |
9435 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9436 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9437 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9438 | ac_status=$? |
ec6a6fbe | 9439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9441 | { (case "(($ac_try" in |
9442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9443 | *) ac_try_echo=$ac_try;; | |
9444 | esac | |
ec6a6fbe AK |
9445 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9446 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9447 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9448 | ac_status=$? |
ec6a6fbe | 9449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9450 | (exit $ac_status); }; }; then |
9451 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9452 | else | |
ec6a6fbe AK |
9453 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9454 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9455 | sed 's/^/| /' conftest.$ac_ext >&5 |
9456 | ||
9457 | ( exit $ac_status ) | |
9458 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9459 | fi | |
ec6a6fbe | 9460 | rm -rf conftest.dSYM |
7a197a62 | 9461 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9462 | fi |
7a197a62 AK |
9463 | |
9464 | ||
ad6254c5 AK |
9465 | else |
9466 | # If the `ln -s' command failed, then we probably don't even | |
9467 | # have an lstat function. | |
9468 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9469 | fi | |
9470 | rm -f conftest.sym conftest.file | |
9471 | ||
9472 | fi | |
ec6a6fbe AK |
9473 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9474 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9475 | |
9476 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9477 | ||
9478 | cat >>confdefs.h <<_ACEOF | |
9479 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9480 | _ACEOF | |
9481 | ||
9482 | ||
9483 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9484 | case " $LIBOBJS " in |
8a2fc586 | 9485 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9486 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9487 | ;; | |
8a2fc586 AK |
9488 | esac |
9489 | ||
ad6254c5 AK |
9490 | fi |
9491 | ||
ec6a6fbe AK |
9492 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9493 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9494 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9495 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9496 | else |
9497 | if test "$cross_compiling" = yes; then | |
9498 | ac_cv_func_lstat_empty_string_bug=yes | |
9499 | else | |
9500 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9501 | /* confdefs.h. */ |
9502 | _ACEOF | |
9503 | cat confdefs.h >>conftest.$ac_ext | |
9504 | cat >>conftest.$ac_ext <<_ACEOF | |
9505 | /* end confdefs.h. */ | |
9506 | $ac_includes_default | |
9507 | int | |
9508 | main () | |
9509 | { | |
9510 | struct stat sbuf; | |
7a197a62 | 9511 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9512 | ; |
9513 | return 0; | |
9514 | } | |
9515 | _ACEOF | |
9516 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9517 | if { (ac_try="$ac_link" |
9518 | case "(($ac_try" in | |
9519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9520 | *) ac_try_echo=$ac_try;; | |
9521 | esac | |
ec6a6fbe AK |
9522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9523 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9524 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9525 | ac_status=$? |
ec6a6fbe | 9526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9528 | { (case "(($ac_try" in |
9529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9530 | *) ac_try_echo=$ac_try;; | |
9531 | esac | |
ec6a6fbe AK |
9532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9533 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9534 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9535 | ac_status=$? |
ec6a6fbe | 9536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9537 | (exit $ac_status); }; }; then |
7a197a62 | 9538 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9539 | else |
ec6a6fbe AK |
9540 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9541 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9542 | sed 's/^/| /' conftest.$ac_ext >&5 |
9543 | ||
9544 | ( exit $ac_status ) | |
7a197a62 | 9545 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9546 | fi |
ec6a6fbe | 9547 | rm -rf conftest.dSYM |
7a197a62 | 9548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9549 | fi |
7a197a62 AK |
9550 | |
9551 | ||
ad6254c5 | 9552 | fi |
ec6a6fbe AK |
9553 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9554 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9555 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 9556 | case " $LIBOBJS " in |
8a2fc586 | 9557 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9558 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9559 | ;; | |
8a2fc586 AK |
9560 | esac |
9561 | ||
ad6254c5 AK |
9562 | |
9563 | cat >>confdefs.h <<_ACEOF | |
9564 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9565 | _ACEOF | |
9566 | ||
9567 | fi | |
9568 | ||
9569 | ||
9570 | for ac_header in stdlib.h | |
9571 | do | |
ec6a6fbe | 9572 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9573 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9574 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9575 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9577 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9578 | fi |
ec6a6fbe AK |
9579 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9580 | $as_echo "$as_val"'` | |
9581 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9582 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9583 | else |
9584 | # Is the header compilable? | |
ec6a6fbe AK |
9585 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9586 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9587 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9588 | /* confdefs.h. */ |
9589 | _ACEOF | |
9590 | cat confdefs.h >>conftest.$ac_ext | |
9591 | cat >>conftest.$ac_ext <<_ACEOF | |
9592 | /* end confdefs.h. */ | |
9593 | $ac_includes_default | |
9594 | #include <$ac_header> | |
9595 | _ACEOF | |
9596 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9597 | if { (ac_try="$ac_compile" |
9598 | case "(($ac_try" in | |
9599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9600 | *) ac_try_echo=$ac_try;; | |
9601 | esac | |
ec6a6fbe AK |
9602 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9603 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9604 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9605 | ac_status=$? |
8a2fc586 AK |
9606 | grep -v '^ *+' conftest.er1 >conftest.err |
9607 | rm -f conftest.er1 | |
9608 | cat conftest.err >&5 | |
ec6a6fbe | 9609 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9610 | (exit $ac_status); } && { |
9611 | test -z "$ac_c_werror_flag" || | |
9612 | test ! -s conftest.err | |
9613 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9614 | ac_header_compiler=yes |
9615 | else | |
ec6a6fbe | 9616 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9617 | sed 's/^/| /' conftest.$ac_ext >&5 |
9618 | ||
7a197a62 | 9619 | ac_header_compiler=no |
ad6254c5 | 9620 | fi |
7a197a62 AK |
9621 | |
9622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9623 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9624 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9625 | |
9626 | # Is the header present? | |
ec6a6fbe AK |
9627 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9628 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9629 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9630 | /* confdefs.h. */ |
9631 | _ACEOF | |
9632 | cat confdefs.h >>conftest.$ac_ext | |
9633 | cat >>conftest.$ac_ext <<_ACEOF | |
9634 | /* end confdefs.h. */ | |
9635 | #include <$ac_header> | |
9636 | _ACEOF | |
7a197a62 AK |
9637 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9638 | case "(($ac_try" in | |
9639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9640 | *) ac_try_echo=$ac_try;; | |
9641 | esac | |
ec6a6fbe AK |
9642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9643 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9645 | ac_status=$? |
9646 | grep -v '^ *+' conftest.er1 >conftest.err | |
9647 | rm -f conftest.er1 | |
9648 | cat conftest.err >&5 | |
ec6a6fbe | 9649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9650 | (exit $ac_status); } >/dev/null && { |
9651 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9652 | test ! -s conftest.err | |
9653 | }; then | |
ad6254c5 AK |
9654 | ac_header_preproc=yes |
9655 | else | |
ec6a6fbe | 9656 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9657 | sed 's/^/| /' conftest.$ac_ext >&5 |
9658 | ||
9659 | ac_header_preproc=no | |
9660 | fi | |
7a197a62 | 9661 | |
ad6254c5 | 9662 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9663 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9664 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9665 | |
9666 | # So? What about this header? | |
8a2fc586 AK |
9667 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9668 | yes:no: ) | |
ec6a6fbe AK |
9669 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9670 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9671 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9672 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9673 | ac_header_preproc=yes |
ad6254c5 | 9674 | ;; |
8a2fc586 | 9675 | no:yes:* ) |
ec6a6fbe AK |
9676 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9677 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9679 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9681 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9683 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9685 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9687 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9688 | |
ad6254c5 AK |
9689 | ;; |
9690 | esac | |
ec6a6fbe AK |
9691 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9692 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9693 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9694 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9695 | else |
8a2fc586 | 9696 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9697 | fi |
ec6a6fbe AK |
9698 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9699 | $as_echo "$as_val"'` | |
9700 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9701 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9702 | |
9703 | fi | |
ec6a6fbe AK |
9704 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9705 | $as_echo "$as_val"'` | |
9706 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9707 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9708 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9709 | _ACEOF |
9710 | ||
9711 | fi | |
9712 | ||
9713 | done | |
9714 | ||
ec6a6fbe AK |
9715 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9716 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9717 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9718 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9719 | else |
9720 | if test "$cross_compiling" = yes; then | |
9721 | ac_cv_func_malloc_0_nonnull=no | |
9722 | else | |
9723 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9724 | /* confdefs.h. */ |
9725 | _ACEOF | |
9726 | cat confdefs.h >>conftest.$ac_ext | |
9727 | cat >>conftest.$ac_ext <<_ACEOF | |
9728 | /* end confdefs.h. */ | |
25fbec5b | 9729 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9730 | # include <stdlib.h> |
9731 | #else | |
9732 | char *malloc (); | |
9733 | #endif | |
9734 | ||
9735 | int | |
9736 | main () | |
9737 | { | |
7a197a62 | 9738 | return ! malloc (0); |
ad6254c5 AK |
9739 | ; |
9740 | return 0; | |
9741 | } | |
9742 | _ACEOF | |
9743 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9744 | if { (ac_try="$ac_link" |
9745 | case "(($ac_try" in | |
9746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9747 | *) ac_try_echo=$ac_try;; | |
9748 | esac | |
ec6a6fbe AK |
9749 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9750 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9751 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9752 | ac_status=$? |
ec6a6fbe | 9753 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9755 | { (case "(($ac_try" in |
9756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9757 | *) ac_try_echo=$ac_try;; | |
9758 | esac | |
ec6a6fbe AK |
9759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9760 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9761 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9762 | ac_status=$? |
ec6a6fbe | 9763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9764 | (exit $ac_status); }; }; then |
9765 | ac_cv_func_malloc_0_nonnull=yes | |
9766 | else | |
ec6a6fbe AK |
9767 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9768 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9769 | sed 's/^/| /' conftest.$ac_ext >&5 |
9770 | ||
9771 | ( exit $ac_status ) | |
9772 | ac_cv_func_malloc_0_nonnull=no | |
9773 | fi | |
ec6a6fbe | 9774 | rm -rf conftest.dSYM |
7a197a62 | 9775 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9776 | fi |
7a197a62 AK |
9777 | |
9778 | ||
ad6254c5 | 9779 | fi |
ec6a6fbe AK |
9780 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9781 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9782 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9783 | ||
9784 | cat >>confdefs.h <<\_ACEOF | |
9785 | #define HAVE_MALLOC 1 | |
9786 | _ACEOF | |
9787 | ||
9788 | else | |
9789 | cat >>confdefs.h <<\_ACEOF | |
9790 | #define HAVE_MALLOC 0 | |
9791 | _ACEOF | |
9792 | ||
7a197a62 | 9793 | case " $LIBOBJS " in |
8a2fc586 | 9794 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9795 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9796 | ;; | |
8a2fc586 AK |
9797 | esac |
9798 | ||
ad6254c5 AK |
9799 | |
9800 | cat >>confdefs.h <<\_ACEOF | |
9801 | #define malloc rpl_malloc | |
9802 | _ACEOF | |
9803 | ||
9804 | fi | |
9805 | ||
9806 | ||
9807 | ||
ec6a6fbe AK |
9808 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9809 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9810 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9811 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9812 | else |
9813 | if test "$cross_compiling" = yes; then | |
9814 | ac_cv_func_memcmp_working=no | |
9815 | else | |
9816 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9817 | /* confdefs.h. */ |
9818 | _ACEOF | |
9819 | cat confdefs.h >>conftest.$ac_ext | |
9820 | cat >>conftest.$ac_ext <<_ACEOF | |
9821 | /* end confdefs.h. */ | |
8a2fc586 | 9822 | $ac_includes_default |
ad6254c5 AK |
9823 | int |
9824 | main () | |
9825 | { | |
9826 | ||
9827 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9828 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9829 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9830 | return 1; |
ad6254c5 AK |
9831 | |
9832 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9833 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9834 | William Lewis provided this test program. */ | |
9835 | { | |
9836 | char foo[21]; | |
9837 | char bar[21]; | |
9838 | int i; | |
9839 | for (i = 0; i < 4; i++) | |
9840 | { | |
8a2fc586 AK |
9841 | char *a = foo + i; |
9842 | char *b = bar + i; | |
9843 | strcpy (a, "--------01111111"); | |
9844 | strcpy (b, "--------10000000"); | |
9845 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9846 | return 1; |
ad6254c5 | 9847 | } |
7a197a62 | 9848 | return 0; |
ad6254c5 AK |
9849 | } |
9850 | ||
9851 | ; | |
9852 | return 0; | |
9853 | } | |
9854 | _ACEOF | |
9855 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9856 | if { (ac_try="$ac_link" |
9857 | case "(($ac_try" in | |
9858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9859 | *) ac_try_echo=$ac_try;; | |
9860 | esac | |
ec6a6fbe AK |
9861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9862 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9863 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9864 | ac_status=$? |
ec6a6fbe | 9865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9866 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9867 | { (case "(($ac_try" in |
9868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9869 | *) ac_try_echo=$ac_try;; | |
9870 | esac | |
ec6a6fbe AK |
9871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9872 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9873 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9874 | ac_status=$? |
ec6a6fbe | 9875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9876 | (exit $ac_status); }; }; then |
9877 | ac_cv_func_memcmp_working=yes | |
9878 | else | |
ec6a6fbe AK |
9879 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9880 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9881 | sed 's/^/| /' conftest.$ac_ext >&5 |
9882 | ||
9883 | ( exit $ac_status ) | |
9884 | ac_cv_func_memcmp_working=no | |
9885 | fi | |
ec6a6fbe | 9886 | rm -rf conftest.dSYM |
7a197a62 | 9887 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9888 | fi |
7a197a62 AK |
9889 | |
9890 | ||
ad6254c5 | 9891 | fi |
ec6a6fbe AK |
9892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9893 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9894 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9895 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9896 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9897 | ;; | |
8a2fc586 AK |
9898 | esac |
9899 | ||
ad6254c5 AK |
9900 | |
9901 | ||
9902 | ||
9903 | for ac_header in stdlib.h unistd.h | |
9904 | do | |
ec6a6fbe | 9905 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9907 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9908 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9910 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9911 | fi |
ec6a6fbe AK |
9912 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9913 | $as_echo "$as_val"'` | |
9914 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9915 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9916 | else |
9917 | # Is the header compilable? | |
ec6a6fbe AK |
9918 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9919 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9920 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9921 | /* confdefs.h. */ |
9922 | _ACEOF | |
9923 | cat confdefs.h >>conftest.$ac_ext | |
9924 | cat >>conftest.$ac_ext <<_ACEOF | |
9925 | /* end confdefs.h. */ | |
9926 | $ac_includes_default | |
9927 | #include <$ac_header> | |
9928 | _ACEOF | |
9929 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9930 | if { (ac_try="$ac_compile" |
9931 | case "(($ac_try" in | |
9932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9933 | *) ac_try_echo=$ac_try;; | |
9934 | esac | |
ec6a6fbe AK |
9935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9936 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9937 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9938 | ac_status=$? |
8a2fc586 AK |
9939 | grep -v '^ *+' conftest.er1 >conftest.err |
9940 | rm -f conftest.er1 | |
9941 | cat conftest.err >&5 | |
ec6a6fbe | 9942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9943 | (exit $ac_status); } && { |
9944 | test -z "$ac_c_werror_flag" || | |
9945 | test ! -s conftest.err | |
9946 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9947 | ac_header_compiler=yes |
9948 | else | |
ec6a6fbe | 9949 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9950 | sed 's/^/| /' conftest.$ac_ext >&5 |
9951 | ||
7a197a62 | 9952 | ac_header_compiler=no |
ad6254c5 | 9953 | fi |
7a197a62 AK |
9954 | |
9955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9956 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9957 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9958 | |
9959 | # Is the header present? | |
ec6a6fbe AK |
9960 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9961 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9962 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9963 | /* confdefs.h. */ |
9964 | _ACEOF | |
9965 | cat confdefs.h >>conftest.$ac_ext | |
9966 | cat >>conftest.$ac_ext <<_ACEOF | |
9967 | /* end confdefs.h. */ | |
9968 | #include <$ac_header> | |
9969 | _ACEOF | |
7a197a62 AK |
9970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9971 | case "(($ac_try" in | |
9972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9973 | *) ac_try_echo=$ac_try;; | |
9974 | esac | |
ec6a6fbe AK |
9975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9976 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9978 | ac_status=$? |
9979 | grep -v '^ *+' conftest.er1 >conftest.err | |
9980 | rm -f conftest.er1 | |
9981 | cat conftest.err >&5 | |
ec6a6fbe | 9982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9983 | (exit $ac_status); } >/dev/null && { |
9984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9985 | test ! -s conftest.err | |
9986 | }; then | |
ad6254c5 AK |
9987 | ac_header_preproc=yes |
9988 | else | |
ec6a6fbe | 9989 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9990 | sed 's/^/| /' conftest.$ac_ext >&5 |
9991 | ||
9992 | ac_header_preproc=no | |
9993 | fi | |
7a197a62 | 9994 | |
ad6254c5 | 9995 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9996 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9997 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9998 | |
9999 | # So? What about this header? | |
8a2fc586 AK |
10000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10001 | yes:no: ) | |
ec6a6fbe AK |
10002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10003 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10005 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10006 | ac_header_preproc=yes |
ad6254c5 | 10007 | ;; |
8a2fc586 | 10008 | no:yes:* ) |
ec6a6fbe AK |
10009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10010 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10012 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10014 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10016 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10018 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10020 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10021 | |
ad6254c5 AK |
10022 | ;; |
10023 | esac | |
ec6a6fbe AK |
10024 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10025 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10027 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10028 | else |
8a2fc586 | 10029 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10030 | fi |
ec6a6fbe AK |
10031 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10032 | $as_echo "$as_val"'` | |
10033 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10034 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10035 | |
10036 | fi | |
ec6a6fbe AK |
10037 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10038 | $as_echo "$as_val"'` | |
10039 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10040 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10041 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10042 | _ACEOF |
10043 | ||
10044 | fi | |
10045 | ||
10046 | done | |
10047 | ||
10048 | ||
10049 | for ac_func in getpagesize | |
10050 | do | |
ec6a6fbe AK |
10051 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10052 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10053 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10054 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10055 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10056 | else |
10057 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10058 | /* confdefs.h. */ |
10059 | _ACEOF | |
10060 | cat confdefs.h >>conftest.$ac_ext | |
10061 | cat >>conftest.$ac_ext <<_ACEOF | |
10062 | /* end confdefs.h. */ | |
8a2fc586 AK |
10063 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10064 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10065 | #define $ac_func innocuous_$ac_func | |
10066 | ||
ad6254c5 AK |
10067 | /* System header to define __stub macros and hopefully few prototypes, |
10068 | which can conflict with char $ac_func (); below. | |
10069 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10070 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10071 | |
ad6254c5 AK |
10072 | #ifdef __STDC__ |
10073 | # include <limits.h> | |
10074 | #else | |
10075 | # include <assert.h> | |
10076 | #endif | |
8a2fc586 AK |
10077 | |
10078 | #undef $ac_func | |
10079 | ||
7a197a62 AK |
10080 | /* Override any GCC internal prototype to avoid an error. |
10081 | Use char because int might match the return type of a GCC | |
10082 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10083 | #ifdef __cplusplus |
10084 | extern "C" | |
ad6254c5 | 10085 | #endif |
ad6254c5 AK |
10086 | char $ac_func (); |
10087 | /* The GNU C library defines this for functions which it implements | |
10088 | to always fail with ENOSYS. Some functions are actually named | |
10089 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10090 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10091 | choke me |
ad6254c5 AK |
10092 | #endif |
10093 | ||
10094 | int | |
10095 | main () | |
10096 | { | |
7a197a62 | 10097 | return $ac_func (); |
ad6254c5 AK |
10098 | ; |
10099 | return 0; | |
10100 | } | |
10101 | _ACEOF | |
10102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10103 | if { (ac_try="$ac_link" |
10104 | case "(($ac_try" in | |
10105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10106 | *) ac_try_echo=$ac_try;; | |
10107 | esac | |
ec6a6fbe AK |
10108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10109 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10110 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10111 | ac_status=$? |
8a2fc586 AK |
10112 | grep -v '^ *+' conftest.er1 >conftest.err |
10113 | rm -f conftest.er1 | |
10114 | cat conftest.err >&5 | |
ec6a6fbe | 10115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10116 | (exit $ac_status); } && { |
10117 | test -z "$ac_c_werror_flag" || | |
10118 | test ! -s conftest.err | |
ec6a6fbe AK |
10119 | } && test -s conftest$ac_exeext && { |
10120 | test "$cross_compiling" = yes || | |
10121 | $as_test_x conftest$ac_exeext | |
10122 | }; then | |
ad6254c5 AK |
10123 | eval "$as_ac_var=yes" |
10124 | else | |
ec6a6fbe | 10125 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10126 | sed 's/^/| /' conftest.$ac_ext >&5 |
10127 | ||
7a197a62 | 10128 | eval "$as_ac_var=no" |
ad6254c5 | 10129 | fi |
7a197a62 | 10130 | |
ec6a6fbe | 10131 | rm -rf conftest.dSYM |
25fbec5b | 10132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10133 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10134 | fi |
ec6a6fbe AK |
10135 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10136 | $as_echo "$as_val"'` | |
10137 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10138 | $as_echo "$ac_res" >&6; } | |
10139 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10140 | $as_echo "$as_val"'` | |
10141 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10142 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10143 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10144 | _ACEOF |
10145 | ||
10146 | fi | |
10147 | done | |
10148 | ||
ec6a6fbe AK |
10149 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10150 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10151 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10152 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10153 | else |
10154 | if test "$cross_compiling" = yes; then | |
10155 | ac_cv_func_mmap_fixed_mapped=no | |
10156 | else | |
10157 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10158 | /* confdefs.h. */ |
10159 | _ACEOF | |
10160 | cat confdefs.h >>conftest.$ac_ext | |
10161 | cat >>conftest.$ac_ext <<_ACEOF | |
10162 | /* end confdefs.h. */ | |
10163 | $ac_includes_default | |
10164 | /* malloc might have been renamed as rpl_malloc. */ | |
10165 | #undef malloc | |
10166 | ||
10167 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10168 | Here is a matrix of mmap possibilities: | |
10169 | mmap private not fixed | |
10170 | mmap private fixed at somewhere currently unmapped | |
10171 | mmap private fixed at somewhere already mapped | |
10172 | mmap shared not fixed | |
10173 | mmap shared fixed at somewhere currently unmapped | |
10174 | mmap shared fixed at somewhere already mapped | |
10175 | For private mappings, we should verify that changes cannot be read() | |
10176 | back from the file, nor mmap's back from the file at a different | |
10177 | address. (There have been systems where private was not correctly | |
10178 | implemented like the infamous i386 svr4.0, and systems where the | |
10179 | VM page cache was not coherent with the file system buffer cache | |
10180 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10181 | For shared mappings, we should conversely verify that changes get | |
10182 | propagated back to all the places they're supposed to be. | |
10183 | ||
10184 | Grep wants private fixed already mapped. | |
10185 | The main things grep needs to know about mmap are: | |
10186 | * does it exist and is it safe to write into the mmap'd area | |
10187 | * how to use it (BSD variants) */ | |
10188 | ||
10189 | #include <fcntl.h> | |
10190 | #include <sys/mman.h> | |
10191 | ||
25fbec5b | 10192 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10193 | char *malloc (); |
10194 | #endif | |
10195 | ||
10196 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10197 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10198 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10199 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10200 | # define HAVE_SYS_PARAM_H 1 |
10201 | # endif | |
10202 | ||
10203 | # ifdef _SC_PAGESIZE | |
10204 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10205 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10206 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10207 | # include <sys/param.h> |
10208 | # ifdef EXEC_PAGESIZE | |
10209 | # define getpagesize() EXEC_PAGESIZE | |
10210 | # else /* no EXEC_PAGESIZE */ | |
10211 | # ifdef NBPG | |
10212 | # define getpagesize() NBPG * CLSIZE | |
10213 | # ifndef CLSIZE | |
10214 | # define CLSIZE 1 | |
10215 | # endif /* no CLSIZE */ | |
10216 | # else /* no NBPG */ | |
10217 | # ifdef NBPC | |
10218 | # define getpagesize() NBPC | |
10219 | # else /* no NBPC */ | |
10220 | # ifdef PAGESIZE | |
10221 | # define getpagesize() PAGESIZE | |
10222 | # endif /* PAGESIZE */ | |
10223 | # endif /* no NBPC */ | |
10224 | # endif /* no NBPG */ | |
10225 | # endif /* no EXEC_PAGESIZE */ | |
10226 | # else /* no HAVE_SYS_PARAM_H */ | |
10227 | # define getpagesize() 8192 /* punt totally */ | |
10228 | # endif /* no HAVE_SYS_PARAM_H */ | |
10229 | # endif /* no _SC_PAGESIZE */ | |
10230 | ||
10231 | #endif /* no HAVE_GETPAGESIZE */ | |
10232 | ||
10233 | int | |
10234 | main () | |
10235 | { | |
10236 | char *data, *data2, *data3; | |
10237 | int i, pagesize; | |
10238 | int fd; | |
10239 | ||
10240 | pagesize = getpagesize (); | |
10241 | ||
10242 | /* First, make a file with some known garbage in it. */ | |
10243 | data = (char *) malloc (pagesize); | |
10244 | if (!data) | |
7a197a62 | 10245 | return 1; |
ad6254c5 AK |
10246 | for (i = 0; i < pagesize; ++i) |
10247 | *(data + i) = rand (); | |
10248 | umask (0); | |
10249 | fd = creat ("conftest.mmap", 0600); | |
10250 | if (fd < 0) | |
7a197a62 | 10251 | return 1; |
ad6254c5 | 10252 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10253 | return 1; |
ad6254c5 AK |
10254 | close (fd); |
10255 | ||
10256 | /* Next, try to mmap the file at a fixed address which already has | |
10257 | something else allocated at it. If we can, also make sure that | |
10258 | we see the same garbage. */ | |
10259 | fd = open ("conftest.mmap", O_RDWR); | |
10260 | if (fd < 0) | |
7a197a62 | 10261 | return 1; |
ad6254c5 AK |
10262 | data2 = (char *) malloc (2 * pagesize); |
10263 | if (!data2) | |
7a197a62 AK |
10264 | return 1; |
10265 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10266 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10267 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10268 | return 1; |
ad6254c5 AK |
10269 | for (i = 0; i < pagesize; ++i) |
10270 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10271 | return 1; |
ad6254c5 | 10272 | |
d911ec67 AK |
10273 | /* Finally, make sure that changes to the mapped area do not |
10274 | percolate back to the file as seen by read(). (This is a bug on | |
10275 | some variants of i386 svr4.0.) */ | |
10276 | for (i = 0; i < pagesize; ++i) | |
10277 | *(data2 + i) = *(data2 + i) + 1; | |
10278 | data3 = (char *) malloc (pagesize); | |
10279 | if (!data3) | |
10280 | return 1; | |
10281 | if (read (fd, data3, pagesize) != pagesize) | |
10282 | return 1; | |
10283 | for (i = 0; i < pagesize; ++i) | |
10284 | if (*(data + i) != *(data3 + i)) | |
10285 | return 1; | |
10286 | close (fd); | |
10287 | return 0; | |
10288 | } | |
10289 | _ACEOF | |
10290 | rm -f conftest$ac_exeext | |
10291 | if { (ac_try="$ac_link" | |
10292 | case "(($ac_try" in | |
10293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10294 | *) ac_try_echo=$ac_try;; | |
10295 | esac | |
10296 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10297 | $as_echo "$ac_try_echo") >&5 | |
10298 | (eval "$ac_link") 2>&5 | |
10299 | ac_status=$? | |
10300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10301 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10302 | { (case "(($ac_try" in | |
10303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10304 | *) ac_try_echo=$ac_try;; | |
10305 | esac | |
10306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10307 | $as_echo "$ac_try_echo") >&5 | |
10308 | (eval "$ac_try") 2>&5 | |
10309 | ac_status=$? | |
10310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10311 | (exit $ac_status); }; }; then | |
10312 | ac_cv_func_mmap_fixed_mapped=yes | |
10313 | else | |
10314 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10315 | $as_echo "$as_me: failed program was:" >&5 | |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
10318 | ( exit $ac_status ) | |
10319 | ac_cv_func_mmap_fixed_mapped=no | |
10320 | fi | |
10321 | rm -rf conftest.dSYM | |
10322 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10323 | fi | |
10324 | ||
10325 | ||
10326 | fi | |
10327 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10328 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10329 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10330 | ||
10331 | cat >>confdefs.h <<\_ACEOF | |
10332 | #define HAVE_MMAP 1 | |
10333 | _ACEOF | |
10334 | ||
10335 | fi | |
10336 | rm -f conftest.mmap | |
10337 | ||
10338 | ||
10339 | for ac_header in stdlib.h | |
10340 | do | |
10341 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10342 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10343 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10344 | $as_echo_n "checking for $ac_header... " >&6; } | |
10345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10346 | $as_echo_n "(cached) " >&6 | |
10347 | fi | |
10348 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10349 | $as_echo "$as_val"'` | |
10350 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10351 | $as_echo "$ac_res" >&6; } | |
10352 | else | |
10353 | # Is the header compilable? | |
10354 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10355 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10356 | cat >conftest.$ac_ext <<_ACEOF | |
10357 | /* confdefs.h. */ | |
10358 | _ACEOF | |
10359 | cat confdefs.h >>conftest.$ac_ext | |
10360 | cat >>conftest.$ac_ext <<_ACEOF | |
10361 | /* end confdefs.h. */ | |
10362 | $ac_includes_default | |
10363 | #include <$ac_header> | |
10364 | _ACEOF | |
10365 | rm -f conftest.$ac_objext | |
10366 | if { (ac_try="$ac_compile" | |
10367 | case "(($ac_try" in | |
10368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10369 | *) ac_try_echo=$ac_try;; | |
10370 | esac | |
10371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10372 | $as_echo "$ac_try_echo") >&5 | |
10373 | (eval "$ac_compile") 2>conftest.er1 | |
10374 | ac_status=$? | |
10375 | grep -v '^ *+' conftest.er1 >conftest.err | |
10376 | rm -f conftest.er1 | |
10377 | cat conftest.err >&5 | |
10378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10379 | (exit $ac_status); } && { | |
10380 | test -z "$ac_c_werror_flag" || | |
10381 | test ! -s conftest.err | |
10382 | } && test -s conftest.$ac_objext; then | |
10383 | ac_header_compiler=yes | |
10384 | else | |
10385 | $as_echo "$as_me: failed program was:" >&5 | |
10386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10387 | ||
10388 | ac_header_compiler=no | |
10389 | fi | |
10390 | ||
10391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10392 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10393 | $as_echo "$ac_header_compiler" >&6; } | |
10394 | ||
10395 | # Is the header present? | |
10396 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10397 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10398 | cat >conftest.$ac_ext <<_ACEOF | |
10399 | /* confdefs.h. */ | |
10400 | _ACEOF | |
10401 | cat confdefs.h >>conftest.$ac_ext | |
10402 | cat >>conftest.$ac_ext <<_ACEOF | |
10403 | /* end confdefs.h. */ | |
10404 | #include <$ac_header> | |
10405 | _ACEOF | |
10406 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10407 | case "(($ac_try" in | |
10408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10409 | *) ac_try_echo=$ac_try;; | |
10410 | esac | |
10411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10412 | $as_echo "$ac_try_echo") >&5 | |
10413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10414 | ac_status=$? | |
10415 | grep -v '^ *+' conftest.er1 >conftest.err | |
10416 | rm -f conftest.er1 | |
10417 | cat conftest.err >&5 | |
10418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10419 | (exit $ac_status); } >/dev/null && { | |
10420 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10421 | test ! -s conftest.err | |
10422 | }; then | |
10423 | ac_header_preproc=yes | |
10424 | else | |
10425 | $as_echo "$as_me: failed program was:" >&5 | |
10426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10427 | ||
10428 | ac_header_preproc=no | |
10429 | fi | |
10430 | ||
10431 | rm -f conftest.err conftest.$ac_ext | |
10432 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10433 | $as_echo "$ac_header_preproc" >&6; } | |
10434 | ||
10435 | # So? What about this header? | |
10436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10437 | yes:no: ) | |
10438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10439 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10440 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10441 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10442 | ac_header_preproc=yes | |
10443 | ;; | |
10444 | no:yes:* ) | |
10445 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10446 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10447 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10448 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10450 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10452 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10454 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10456 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10457 | ||
10458 | ;; | |
10459 | esac | |
10460 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10461 | $as_echo_n "checking for $ac_header... " >&6; } | |
10462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10463 | $as_echo_n "(cached) " >&6 | |
10464 | else | |
10465 | eval "$as_ac_Header=\$ac_header_preproc" | |
10466 | fi | |
10467 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10468 | $as_echo "$as_val"'` | |
10469 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10470 | $as_echo "$ac_res" >&6; } | |
10471 | ||
10472 | fi | |
10473 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10474 | $as_echo "$as_val"'` | |
10475 | if test "x$as_val" = x""yes; then | |
10476 | cat >>confdefs.h <<_ACEOF | |
10477 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10478 | _ACEOF | |
10479 | ||
10480 | fi | |
10481 | ||
10482 | done | |
10483 | ||
10484 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10485 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10486 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10487 | $as_echo_n "(cached) " >&6 | |
10488 | else | |
10489 | if test "$cross_compiling" = yes; then | |
10490 | ac_cv_func_realloc_0_nonnull=no | |
10491 | else | |
10492 | cat >conftest.$ac_ext <<_ACEOF | |
10493 | /* confdefs.h. */ | |
10494 | _ACEOF | |
10495 | cat confdefs.h >>conftest.$ac_ext | |
10496 | cat >>conftest.$ac_ext <<_ACEOF | |
10497 | /* end confdefs.h. */ | |
10498 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10499 | # include <stdlib.h> | |
10500 | #else | |
10501 | char *realloc (); | |
10502 | #endif | |
10503 | ||
10504 | int | |
10505 | main () | |
10506 | { | |
10507 | return ! realloc (0, 0); | |
10508 | ; | |
7a197a62 | 10509 | return 0; |
ad6254c5 AK |
10510 | } |
10511 | _ACEOF | |
10512 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10513 | if { (ac_try="$ac_link" |
10514 | case "(($ac_try" in | |
10515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10516 | *) ac_try_echo=$ac_try;; | |
10517 | esac | |
ec6a6fbe AK |
10518 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10519 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10520 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10521 | ac_status=$? |
ec6a6fbe | 10522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10523 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10524 | { (case "(($ac_try" in |
10525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10526 | *) ac_try_echo=$ac_try;; | |
10527 | esac | |
ec6a6fbe AK |
10528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10529 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10530 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10531 | ac_status=$? |
ec6a6fbe | 10532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10533 | (exit $ac_status); }; }; then |
d911ec67 | 10534 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10535 | else |
ec6a6fbe AK |
10536 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10537 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10538 | sed 's/^/| /' conftest.$ac_ext >&5 |
10539 | ||
10540 | ( exit $ac_status ) | |
d911ec67 | 10541 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10542 | fi |
ec6a6fbe | 10543 | rm -rf conftest.dSYM |
7a197a62 | 10544 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10545 | fi |
7a197a62 AK |
10546 | |
10547 | ||
ad6254c5 | 10548 | fi |
d911ec67 AK |
10549 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10550 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10551 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10552 | |
10553 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10554 | #define HAVE_REALLOC 1 |
10555 | _ACEOF | |
10556 | ||
10557 | else | |
10558 | cat >>confdefs.h <<\_ACEOF | |
10559 | #define HAVE_REALLOC 0 | |
10560 | _ACEOF | |
10561 | ||
10562 | case " $LIBOBJS " in | |
10563 | *" realloc.$ac_objext "* ) ;; | |
10564 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10565 | ;; | |
10566 | esac | |
10567 | ||
10568 | ||
10569 | cat >>confdefs.h <<\_ACEOF | |
10570 | #define realloc rpl_realloc | |
ad6254c5 AK |
10571 | _ACEOF |
10572 | ||
10573 | fi | |
d911ec67 AK |
10574 | |
10575 | ||
ad6254c5 | 10576 | |
ec6a6fbe AK |
10577 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10578 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10579 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10580 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10581 | else |
10582 | if test "$cross_compiling" = yes; then | |
10583 | ac_cv_func_stat_empty_string_bug=yes | |
10584 | else | |
10585 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10586 | /* confdefs.h. */ |
10587 | _ACEOF | |
10588 | cat confdefs.h >>conftest.$ac_ext | |
10589 | cat >>conftest.$ac_ext <<_ACEOF | |
10590 | /* end confdefs.h. */ | |
10591 | $ac_includes_default | |
10592 | int | |
10593 | main () | |
10594 | { | |
10595 | struct stat sbuf; | |
7a197a62 | 10596 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10597 | ; |
10598 | return 0; | |
10599 | } | |
10600 | _ACEOF | |
10601 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10602 | if { (ac_try="$ac_link" |
10603 | case "(($ac_try" in | |
10604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10605 | *) ac_try_echo=$ac_try;; | |
10606 | esac | |
ec6a6fbe AK |
10607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10608 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10609 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10610 | ac_status=$? |
ec6a6fbe | 10611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10613 | { (case "(($ac_try" in |
10614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10615 | *) ac_try_echo=$ac_try;; | |
10616 | esac | |
ec6a6fbe AK |
10617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10618 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10619 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10620 | ac_status=$? |
ec6a6fbe | 10621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10622 | (exit $ac_status); }; }; then |
7a197a62 | 10623 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10624 | else |
ec6a6fbe AK |
10625 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10626 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10627 | sed 's/^/| /' conftest.$ac_ext >&5 |
10628 | ||
10629 | ( exit $ac_status ) | |
7a197a62 | 10630 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10631 | fi |
ec6a6fbe | 10632 | rm -rf conftest.dSYM |
7a197a62 | 10633 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10634 | fi |
7a197a62 AK |
10635 | |
10636 | ||
ad6254c5 | 10637 | fi |
ec6a6fbe AK |
10638 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10639 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10640 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10641 | case " $LIBOBJS " in |
8a2fc586 | 10642 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10643 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10644 | ;; | |
8a2fc586 AK |
10645 | esac |
10646 | ||
ad6254c5 AK |
10647 | |
10648 | cat >>confdefs.h <<_ACEOF | |
10649 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10650 | _ACEOF | |
10651 | ||
10652 | fi | |
10653 | ||
ec6a6fbe AK |
10654 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10655 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10656 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10657 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10658 | else |
10659 | if test "$cross_compiling" = yes; then | |
10660 | ac_cv_func_strtod=no | |
10661 | else | |
10662 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10663 | /* confdefs.h. */ |
10664 | _ACEOF | |
10665 | cat confdefs.h >>conftest.$ac_ext | |
10666 | cat >>conftest.$ac_ext <<_ACEOF | |
10667 | /* end confdefs.h. */ | |
10668 | ||
7a197a62 AK |
10669 | $ac_includes_default |
10670 | #ifndef strtod | |
ad6254c5 | 10671 | double strtod (); |
7a197a62 | 10672 | #endif |
ad6254c5 AK |
10673 | int |
10674 | main() | |
10675 | { | |
10676 | { | |
10677 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10678 | char *string = " +69"; | |
10679 | char *term; | |
10680 | double value; | |
10681 | value = strtod (string, &term); | |
10682 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10683 | return 1; |
ad6254c5 AK |
10684 | } |
10685 | ||
10686 | { | |
10687 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10688 | terminating character under some conditions. */ | |
10689 | char *string = "NaN"; | |
10690 | char *term; | |
10691 | strtod (string, &term); | |
10692 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10693 | return 1; |
ad6254c5 | 10694 | } |
7a197a62 | 10695 | return 0; |
ad6254c5 AK |
10696 | } |
10697 | ||
10698 | _ACEOF | |
10699 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10700 | if { (ac_try="$ac_link" |
10701 | case "(($ac_try" in | |
10702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10703 | *) ac_try_echo=$ac_try;; | |
10704 | esac | |
ec6a6fbe AK |
10705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10706 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10707 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10708 | ac_status=$? |
ec6a6fbe | 10709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10710 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10711 | { (case "(($ac_try" in |
10712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10713 | *) ac_try_echo=$ac_try;; | |
10714 | esac | |
ec6a6fbe AK |
10715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10716 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10717 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10718 | ac_status=$? |
ec6a6fbe | 10719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10720 | (exit $ac_status); }; }; then |
10721 | ac_cv_func_strtod=yes | |
10722 | else | |
ec6a6fbe AK |
10723 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10724 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10725 | sed 's/^/| /' conftest.$ac_ext >&5 |
10726 | ||
10727 | ( exit $ac_status ) | |
10728 | ac_cv_func_strtod=no | |
10729 | fi | |
ec6a6fbe | 10730 | rm -rf conftest.dSYM |
7a197a62 | 10731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10732 | fi |
7a197a62 AK |
10733 | |
10734 | ||
ad6254c5 | 10735 | fi |
ec6a6fbe AK |
10736 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10737 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10738 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10739 | case " $LIBOBJS " in |
8a2fc586 | 10740 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10741 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10742 | ;; | |
8a2fc586 AK |
10743 | esac |
10744 | ||
ec6a6fbe AK |
10745 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10746 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10747 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10748 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10749 | else |
10750 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10751 | /* confdefs.h. */ |
10752 | _ACEOF | |
10753 | cat confdefs.h >>conftest.$ac_ext | |
10754 | cat >>conftest.$ac_ext <<_ACEOF | |
10755 | /* end confdefs.h. */ | |
8a2fc586 AK |
10756 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10758 | #define pow innocuous_pow | |
10759 | ||
ad6254c5 AK |
10760 | /* System header to define __stub macros and hopefully few prototypes, |
10761 | which can conflict with char pow (); below. | |
10762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10763 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10764 | |
ad6254c5 AK |
10765 | #ifdef __STDC__ |
10766 | # include <limits.h> | |
10767 | #else | |
10768 | # include <assert.h> | |
10769 | #endif | |
8a2fc586 AK |
10770 | |
10771 | #undef pow | |
10772 | ||
7a197a62 AK |
10773 | /* Override any GCC internal prototype to avoid an error. |
10774 | Use char because int might match the return type of a GCC | |
10775 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10776 | #ifdef __cplusplus |
10777 | extern "C" | |
ad6254c5 | 10778 | #endif |
ad6254c5 AK |
10779 | char pow (); |
10780 | /* The GNU C library defines this for functions which it implements | |
10781 | to always fail with ENOSYS. Some functions are actually named | |
10782 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10783 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10784 | choke me |
ad6254c5 AK |
10785 | #endif |
10786 | ||
10787 | int | |
10788 | main () | |
10789 | { | |
7a197a62 | 10790 | return pow (); |
ad6254c5 AK |
10791 | ; |
10792 | return 0; | |
10793 | } | |
10794 | _ACEOF | |
10795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10796 | if { (ac_try="$ac_link" |
10797 | case "(($ac_try" in | |
10798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10799 | *) ac_try_echo=$ac_try;; | |
10800 | esac | |
ec6a6fbe AK |
10801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10802 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10803 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10804 | ac_status=$? |
8a2fc586 AK |
10805 | grep -v '^ *+' conftest.er1 >conftest.err |
10806 | rm -f conftest.er1 | |
10807 | cat conftest.err >&5 | |
ec6a6fbe | 10808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10809 | (exit $ac_status); } && { |
10810 | test -z "$ac_c_werror_flag" || | |
10811 | test ! -s conftest.err | |
ec6a6fbe AK |
10812 | } && test -s conftest$ac_exeext && { |
10813 | test "$cross_compiling" = yes || | |
10814 | $as_test_x conftest$ac_exeext | |
10815 | }; then | |
ad6254c5 AK |
10816 | ac_cv_func_pow=yes |
10817 | else | |
ec6a6fbe | 10818 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10819 | sed 's/^/| /' conftest.$ac_ext >&5 |
10820 | ||
7a197a62 | 10821 | ac_cv_func_pow=no |
ad6254c5 | 10822 | fi |
7a197a62 | 10823 | |
ec6a6fbe | 10824 | rm -rf conftest.dSYM |
25fbec5b | 10825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10826 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10827 | fi |
ec6a6fbe AK |
10828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10829 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10830 | |
10831 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10832 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10833 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10834 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10835 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10836 | else |
10837 | ac_check_lib_save_LIBS=$LIBS | |
10838 | LIBS="-lm $LIBS" | |
10839 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10840 | /* confdefs.h. */ |
10841 | _ACEOF | |
10842 | cat confdefs.h >>conftest.$ac_ext | |
10843 | cat >>conftest.$ac_ext <<_ACEOF | |
10844 | /* end confdefs.h. */ | |
10845 | ||
7a197a62 AK |
10846 | /* Override any GCC internal prototype to avoid an error. |
10847 | Use char because int might match the return type of a GCC | |
10848 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10849 | #ifdef __cplusplus |
10850 | extern "C" | |
10851 | #endif | |
ad6254c5 AK |
10852 | char pow (); |
10853 | int | |
10854 | main () | |
10855 | { | |
7a197a62 | 10856 | return pow (); |
ad6254c5 AK |
10857 | ; |
10858 | return 0; | |
10859 | } | |
10860 | _ACEOF | |
10861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10862 | if { (ac_try="$ac_link" |
10863 | case "(($ac_try" in | |
10864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10865 | *) ac_try_echo=$ac_try;; | |
10866 | esac | |
ec6a6fbe AK |
10867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10868 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10869 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10870 | ac_status=$? |
8a2fc586 AK |
10871 | grep -v '^ *+' conftest.er1 >conftest.err |
10872 | rm -f conftest.er1 | |
10873 | cat conftest.err >&5 | |
ec6a6fbe | 10874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10875 | (exit $ac_status); } && { |
10876 | test -z "$ac_c_werror_flag" || | |
10877 | test ! -s conftest.err | |
ec6a6fbe AK |
10878 | } && test -s conftest$ac_exeext && { |
10879 | test "$cross_compiling" = yes || | |
10880 | $as_test_x conftest$ac_exeext | |
10881 | }; then | |
ad6254c5 AK |
10882 | ac_cv_lib_m_pow=yes |
10883 | else | |
ec6a6fbe | 10884 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10885 | sed 's/^/| /' conftest.$ac_ext >&5 |
10886 | ||
7a197a62 | 10887 | ac_cv_lib_m_pow=no |
ad6254c5 | 10888 | fi |
7a197a62 | 10889 | |
ec6a6fbe | 10890 | rm -rf conftest.dSYM |
25fbec5b | 10891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10892 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10893 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10894 | fi |
ec6a6fbe AK |
10895 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10896 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10897 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10898 | POW_LIB=-lm |
10899 | else | |
ec6a6fbe AK |
10900 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10901 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10902 | fi |
72b2cb61 | 10903 | |
d0191583 | 10904 | fi |
72b2cb61 | 10905 | |
ad6254c5 AK |
10906 | fi |
10907 | ||
ad6254c5 | 10908 | |
d0191583 JM |
10909 | for ac_func in vprintf |
10910 | do | |
ec6a6fbe AK |
10911 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10912 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10913 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10914 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10915 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10916 | else |
d0191583 JM |
10917 | cat >conftest.$ac_ext <<_ACEOF |
10918 | /* confdefs.h. */ | |
10919 | _ACEOF | |
10920 | cat confdefs.h >>conftest.$ac_ext | |
10921 | cat >>conftest.$ac_ext <<_ACEOF | |
10922 | /* end confdefs.h. */ | |
10923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10925 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10926 | |
d0191583 JM |
10927 | /* System header to define __stub macros and hopefully few prototypes, |
10928 | which can conflict with char $ac_func (); below. | |
10929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10930 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10931 | |
d0191583 JM |
10932 | #ifdef __STDC__ |
10933 | # include <limits.h> | |
10934 | #else | |
10935 | # include <assert.h> | |
10936 | #endif | |
ad6254c5 | 10937 | |
d0191583 | 10938 | #undef $ac_func |
72b2cb61 | 10939 | |
d0191583 JM |
10940 | /* Override any GCC internal prototype to avoid an error. |
10941 | Use char because int might match the return type of a GCC | |
10942 | builtin and then its argument prototype would still apply. */ | |
10943 | #ifdef __cplusplus | |
10944 | extern "C" | |
10945 | #endif | |
10946 | char $ac_func (); | |
10947 | /* The GNU C library defines this for functions which it implements | |
10948 | to always fail with ENOSYS. Some functions are actually named | |
10949 | something starting with __ and the normal name is an alias. */ | |
10950 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10951 | choke me | |
10952 | #endif | |
10953 | ||
10954 | int | |
10955 | main () | |
10956 | { | |
10957 | return $ac_func (); | |
10958 | ; | |
10959 | return 0; | |
10960 | } | |
72b2cb61 | 10961 | _ACEOF |
d0191583 JM |
10962 | rm -f conftest.$ac_objext conftest$ac_exeext |
10963 | if { (ac_try="$ac_link" | |
10964 | case "(($ac_try" in | |
10965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10966 | *) ac_try_echo=$ac_try;; | |
10967 | esac | |
ec6a6fbe AK |
10968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10969 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10970 | (eval "$ac_link") 2>conftest.er1 |
10971 | ac_status=$? | |
10972 | grep -v '^ *+' conftest.er1 >conftest.err | |
10973 | rm -f conftest.er1 | |
10974 | cat conftest.err >&5 | |
ec6a6fbe | 10975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10976 | (exit $ac_status); } && { |
10977 | test -z "$ac_c_werror_flag" || | |
10978 | test ! -s conftest.err | |
ec6a6fbe AK |
10979 | } && test -s conftest$ac_exeext && { |
10980 | test "$cross_compiling" = yes || | |
10981 | $as_test_x conftest$ac_exeext | |
10982 | }; then | |
d0191583 JM |
10983 | eval "$as_ac_var=yes" |
10984 | else | |
ec6a6fbe | 10985 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10986 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10987 | |
d0191583 | 10988 | eval "$as_ac_var=no" |
ad6254c5 AK |
10989 | fi |
10990 | ||
ec6a6fbe | 10991 | rm -rf conftest.dSYM |
d0191583 JM |
10992 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10993 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 10994 | fi |
ec6a6fbe AK |
10995 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10996 | $as_echo "$as_val"'` | |
10997 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10998 | $as_echo "$ac_res" >&6; } | |
10999 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11000 | $as_echo "$as_val"'` | |
11001 | if test "x$as_val" = x""yes; then | |
d0191583 | 11002 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11003 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 11004 | _ACEOF |
7a197a62 | 11005 | |
ec6a6fbe AK |
11006 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
11007 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 11008 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 11009 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11010 | else |
d0191583 JM |
11011 | cat >conftest.$ac_ext <<_ACEOF |
11012 | /* confdefs.h. */ | |
11013 | _ACEOF | |
11014 | cat confdefs.h >>conftest.$ac_ext | |
11015 | cat >>conftest.$ac_ext <<_ACEOF | |
11016 | /* end confdefs.h. */ | |
11017 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
11018 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11019 | #define _doprnt innocuous__doprnt | |
7a197a62 | 11020 | |
d0191583 JM |
11021 | /* System header to define __stub macros and hopefully few prototypes, |
11022 | which can conflict with char _doprnt (); below. | |
11023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11024 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 11025 | |
d0191583 JM |
11026 | #ifdef __STDC__ |
11027 | # include <limits.h> | |
11028 | #else | |
11029 | # include <assert.h> | |
11030 | #endif | |
72b2cb61 | 11031 | |
d0191583 JM |
11032 | #undef _doprnt |
11033 | ||
11034 | /* Override any GCC internal prototype to avoid an error. | |
11035 | Use char because int might match the return type of a GCC | |
11036 | builtin and then its argument prototype would still apply. */ | |
11037 | #ifdef __cplusplus | |
11038 | extern "C" | |
11039 | #endif | |
11040 | char _doprnt (); | |
11041 | /* The GNU C library defines this for functions which it implements | |
11042 | to always fail with ENOSYS. Some functions are actually named | |
11043 | something starting with __ and the normal name is an alias. */ | |
11044 | #if defined __stub__doprnt || defined __stub____doprnt | |
11045 | choke me | |
11046 | #endif | |
11047 | ||
11048 | int | |
11049 | main () | |
11050 | { | |
11051 | return _doprnt (); | |
11052 | ; | |
11053 | return 0; | |
11054 | } | |
72b2cb61 | 11055 | _ACEOF |
d0191583 JM |
11056 | rm -f conftest.$ac_objext conftest$ac_exeext |
11057 | if { (ac_try="$ac_link" | |
11058 | case "(($ac_try" in | |
11059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11060 | *) ac_try_echo=$ac_try;; | |
11061 | esac | |
ec6a6fbe AK |
11062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11063 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
11064 | (eval "$ac_link") 2>conftest.er1 |
11065 | ac_status=$? | |
11066 | grep -v '^ *+' conftest.er1 >conftest.err | |
11067 | rm -f conftest.er1 | |
11068 | cat conftest.err >&5 | |
ec6a6fbe | 11069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
11070 | (exit $ac_status); } && { |
11071 | test -z "$ac_c_werror_flag" || | |
11072 | test ! -s conftest.err | |
ec6a6fbe AK |
11073 | } && test -s conftest$ac_exeext && { |
11074 | test "$cross_compiling" = yes || | |
11075 | $as_test_x conftest$ac_exeext | |
11076 | }; then | |
d0191583 JM |
11077 | ac_cv_func__doprnt=yes |
11078 | else | |
ec6a6fbe | 11079 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11080 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11081 | |
d0191583 | 11082 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11083 | fi |
11084 | ||
ec6a6fbe | 11085 | rm -rf conftest.dSYM |
d0191583 JM |
11086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11087 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11088 | fi |
ec6a6fbe AK |
11089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11090 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11091 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11092 | |
d0191583 JM |
11093 | cat >>confdefs.h <<\_ACEOF |
11094 | #define HAVE_DOPRNT 1 | |
11095 | _ACEOF | |
ad6254c5 | 11096 | |
7a197a62 AK |
11097 | fi |
11098 | ||
d0191583 JM |
11099 | fi |
11100 | done | |
8b1a3214 | 11101 | |
ad6254c5 | 11102 | |
7a197a62 | 11103 | |
9c961554 | 11104 | ################################################################################ |
ec6a6fbe AK |
11105 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11106 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11107 | # Check whether --enable-static_link was given. |
11108 | if test "${enable_static_link+set}" = set; then | |
11109 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11110 | else | |
11111 | STATIC_LINK=no | |
11112 | fi | |
11113 | ||
ec6a6fbe AK |
11114 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11115 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11116 | |
d0191583 | 11117 | ################################################################################ |
ad6254c5 | 11118 | |
ad6254c5 AK |
11119 | |
11120 | ################################################################################ | |
ec6a6fbe AK |
11121 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11122 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11123 | |
11124 | # Check whether --with-user was given. | |
11125 | if test "${with_user+set}" = set; then | |
71082be4 | 11126 | withval=$with_user; OWNER=$withval |
7a197a62 AK |
11127 | fi |
11128 | ||
ec6a6fbe AK |
11129 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11130 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11131 | |
d0191583 | 11132 | if test x$OWNER != x; then |
23b059e7 | 11133 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11134 | fi |
11135 | ||
11136 | ################################################################################ | |
ec6a6fbe AK |
11137 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11138 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11139 | |
d0191583 JM |
11140 | # Check whether --with-group was given. |
11141 | if test "${with_group+set}" = set; then | |
71082be4 | 11142 | withval=$with_group; GROUP=$withval |
7a197a62 AK |
11143 | fi |
11144 | ||
ec6a6fbe AK |
11145 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11146 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11147 | |
11148 | if test x$GROUP != x; then | |
23b059e7 | 11149 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11150 | fi |
ad6254c5 | 11151 | |
24bbc4d7 | 11152 | ################################################################################ |
ec6a6fbe AK |
11153 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11154 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11155 | |
11156 | ||
11157 | # Check whether --with-device-uid was given. | |
11158 | if test "${with_device_uid+set}" = set; then | |
71082be4 | 11159 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
24bbc4d7 | 11160 | else |
71082be4 | 11161 | DM_DEVICE_UID=0 |
24bbc4d7 AK |
11162 | fi |
11163 | ||
ec6a6fbe AK |
11164 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11165 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11166 | |
11167 | ################################################################################ | |
ec6a6fbe AK |
11168 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11169 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11170 | |
11171 | ||
11172 | # Check whether --with-device-gid was given. | |
11173 | if test "${with_device_gid+set}" = set; then | |
71082be4 | 11174 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
24bbc4d7 | 11175 | else |
71082be4 | 11176 | DM_DEVICE_GID=0 |
24bbc4d7 AK |
11177 | fi |
11178 | ||
ec6a6fbe AK |
11179 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11180 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11181 | |
93bd259b | 11182 | ################################################################################ |
ec6a6fbe AK |
11183 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11184 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11185 | |
11186 | ||
11187 | # Check whether --with-device-mode was given. | |
11188 | if test "${with_device_mode+set}" = set; then | |
71082be4 | 11189 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
93bd259b | 11190 | else |
71082be4 | 11191 | DM_DEVICE_MODE=0600 |
93bd259b AK |
11192 | fi |
11193 | ||
ec6a6fbe AK |
11194 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11195 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11196 | |
ad6254c5 | 11197 | ################################################################################ |
ec6a6fbe AK |
11198 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11199 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11200 | # Check whether --enable-lvm1_fallback was given. |
11201 | if test "${enable_lvm1_fallback+set}" = set; then | |
11202 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11203 | else | |
11204 | LVM1_FALLBACK=no | |
7a197a62 AK |
11205 | fi |
11206 | ||
ec6a6fbe AK |
11207 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11208 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11209 | |
d0191583 | 11210 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11211 | |
11212 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11213 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11214 | _ACEOF |
11215 | ||
ad6254c5 AK |
11216 | fi |
11217 | ||
11218 | ################################################################################ | |
ec6a6fbe AK |
11219 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11220 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11221 | |
11222 | # Check whether --with-lvm1 was given. | |
11223 | if test "${with_lvm1+set}" = set; then | |
71082be4 | 11224 | withval=$with_lvm1; LVM1=$withval |
d0191583 | 11225 | else |
71082be4 | 11226 | LVM1=internal |
7a197a62 AK |
11227 | fi |
11228 | ||
ec6a6fbe AK |
11229 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11230 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11231 | |
d0191583 | 11232 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11233 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11234 | " >&5 |
ec6a6fbe | 11235 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11236 | " >&2;} |
11237 | { (exit 1); exit 1; }; } | |
11238 | fi; | |
11239 | ||
11240 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11241 | |
11242 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11243 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11244 | _ACEOF |
11245 | ||
ad6254c5 AK |
11246 | fi |
11247 | ||
11248 | ################################################################################ | |
ec6a6fbe AK |
11249 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11250 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11251 | |
11252 | # Check whether --with-pool was given. | |
11253 | if test "${with_pool+set}" = set; then | |
71082be4 | 11254 | withval=$with_pool; POOL=$withval |
ad6254c5 | 11255 | else |
71082be4 | 11256 | POOL=internal |
7a197a62 AK |
11257 | fi |
11258 | ||
ec6a6fbe AK |
11259 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11260 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11261 | |
d0191583 | 11262 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11263 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11264 | " >&5 |
ec6a6fbe | 11265 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11266 | " >&2;} |
11267 | { (exit 1); exit 1; }; } | |
11268 | fi; | |
7a197a62 | 11269 | |
d0191583 JM |
11270 | if test x$POOL = xinternal; then |
11271 | ||
11272 | cat >>confdefs.h <<\_ACEOF | |
11273 | #define POOL_INTERNAL 1 | |
11274 | _ACEOF | |
11275 | ||
11276 | fi | |
ad6254c5 | 11277 | |
06f62ad1 | 11278 | ################################################################################ |
ec6a6fbe AK |
11279 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11280 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11281 | |
11282 | # Check whether --with-cluster was given. | |
11283 | if test "${with_cluster+set}" = set; then | |
71082be4 | 11284 | withval=$with_cluster; CLUSTER=$withval |
7a197a62 AK |
11285 | fi |
11286 | ||
ec6a6fbe AK |
11287 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11288 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11289 | |
d0191583 | 11290 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11291 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11292 | " >&5 |
ec6a6fbe | 11293 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11294 | " >&2;} |
11295 | { (exit 1); exit 1; }; } | |
d0191583 | 11296 | fi; |
06f62ad1 | 11297 | |
d0191583 | 11298 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11299 | |
11300 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11301 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11302 | _ACEOF |
11303 | ||
15d91f5a | 11304 | fi |
ad6254c5 AK |
11305 | |
11306 | ################################################################################ | |
ec6a6fbe AK |
11307 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11308 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11309 | |
d0191583 JM |
11310 | # Check whether --with-snapshots was given. |
11311 | if test "${with_snapshots+set}" = set; then | |
71082be4 | 11312 | withval=$with_snapshots; SNAPSHOTS=$withval |
d0191583 | 11313 | else |
71082be4 | 11314 | SNAPSHOTS=internal |
ad6254c5 AK |
11315 | fi |
11316 | ||
ec6a6fbe AK |
11317 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11318 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11319 | |
d0191583 | 11320 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11321 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11322 | " >&5 |
ec6a6fbe | 11323 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11324 | " >&2;} |
11325 | { (exit 1); exit 1; }; } | |
11326 | fi; | |
11327 | ||
11328 | if test x$SNAPSHOTS = xinternal; then | |
11329 | ||
11330 | cat >>confdefs.h <<\_ACEOF | |
11331 | #define SNAPSHOT_INTERNAL 1 | |
11332 | _ACEOF | |
ad6254c5 | 11333 | |
ad6254c5 | 11334 | fi |
7a197a62 | 11335 | |
d0191583 | 11336 | ################################################################################ |
ec6a6fbe AK |
11337 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11338 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11339 | |
11340 | # Check whether --with-mirrors was given. | |
11341 | if test "${with_mirrors+set}" = set; then | |
71082be4 | 11342 | withval=$with_mirrors; MIRRORS=$withval |
d0191583 | 11343 | else |
71082be4 | 11344 | MIRRORS=internal |
ad6254c5 | 11345 | fi |
ad6254c5 | 11346 | |
ec6a6fbe AK |
11347 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11348 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11349 | |
d0191583 | 11350 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11351 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11352 | " >&5 |
ec6a6fbe | 11353 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11354 | " >&2;} |
11355 | { (exit 1); exit 1; }; } | |
11356 | fi; | |
ad6254c5 | 11357 | |
d0191583 | 11358 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11359 | |
d0191583 JM |
11360 | cat >>confdefs.h <<\_ACEOF |
11361 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11362 | _ACEOF |
8a2fc586 | 11363 | |
d0191583 | 11364 | fi |
8a2fc586 | 11365 | |
8fea97b7 ZK |
11366 | ################################################################################ |
11367 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11368 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11369 | ||
11370 | # Check whether --with-replicators was given. | |
11371 | if test "${with_replicators+set}" = set; then | |
11372 | withval=$with_replicators; REPLICATORS=$withval | |
11373 | else | |
71082be4 | 11374 | REPLICATORS=none |
8fea97b7 ZK |
11375 | fi |
11376 | ||
11377 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11378 | $as_echo "$REPLICATORS" >&6; } | |
11379 | ||
11380 | case "$REPLICATORS" in | |
11381 | none|shared) ;; | |
11382 | internal) | |
11383 | cat >>confdefs.h <<\_ACEOF | |
11384 | #define REPLICATOR_INTERNAL 1 | |
11385 | _ACEOF | |
11386 | ;; | |
11387 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11388 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11389 | { (exit 1); exit 1; }; } ;; | |
11390 | esac | |
11391 | ||
d0191583 | 11392 | ################################################################################ |
ec6a6fbe AK |
11393 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11394 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11395 | # Check whether --enable-readline was given. |
11396 | if test "${enable_readline+set}" = set; then | |
11397 | enableval=$enable_readline; READLINE=$enableval | |
11398 | else | |
06e459df | 11399 | READLINE=maybe |
d0191583 | 11400 | fi |
8a2fc586 | 11401 | |
ec6a6fbe AK |
11402 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11403 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11404 | |
d0191583 | 11405 | ################################################################################ |
ec6a6fbe AK |
11406 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11407 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11408 | # Check whether --enable-realtime was given. |
11409 | if test "${enable_realtime+set}" = set; then | |
11410 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11411 | fi |
ad6254c5 | 11412 | |
ec6a6fbe AK |
11413 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11414 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
11415 | |
11416 | ################################################################################ | |
90c80887 | 11417 | pkg_config_init() { |
e2997b73 AK |
11418 | |
11419 | ||
11420 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11421 | if test -n "$ac_tool_prefix"; then | |
11422 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11423 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11424 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11425 | $as_echo_n "checking for $ac_word... " >&6; } | |
11426 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11427 | $as_echo_n "(cached) " >&6 | |
11428 | else | |
11429 | case $PKG_CONFIG in | |
11430 | [\\/]* | ?:[\\/]*) | |
11431 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11432 | ;; | |
11433 | *) | |
11434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11435 | for as_dir in $PATH | |
11436 | do | |
11437 | IFS=$as_save_IFS | |
11438 | test -z "$as_dir" && as_dir=. | |
11439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11441 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11442 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11443 | break 2 | |
11444 | fi | |
11445 | done | |
11446 | done | |
11447 | IFS=$as_save_IFS | |
11448 | ||
11449 | ;; | |
11450 | esac | |
11451 | fi | |
11452 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11453 | if test -n "$PKG_CONFIG"; then | |
11454 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11455 | $as_echo "$PKG_CONFIG" >&6; } | |
11456 | else | |
11457 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11458 | $as_echo "no" >&6; } | |
11459 | fi | |
11460 | ||
11461 | ||
11462 | fi | |
11463 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11464 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11465 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11466 | set dummy pkg-config; ac_word=$2 | |
11467 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11468 | $as_echo_n "checking for $ac_word... " >&6; } | |
11469 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11470 | $as_echo_n "(cached) " >&6 | |
11471 | else | |
11472 | case $ac_pt_PKG_CONFIG in | |
11473 | [\\/]* | ?:[\\/]*) | |
11474 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11475 | ;; | |
11476 | *) | |
11477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11478 | for as_dir in $PATH | |
11479 | do | |
11480 | IFS=$as_save_IFS | |
11481 | test -z "$as_dir" && as_dir=. | |
11482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11484 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11485 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11486 | break 2 | |
11487 | fi | |
11488 | done | |
11489 | done | |
11490 | IFS=$as_save_IFS | |
11491 | ||
11492 | ;; | |
11493 | esac | |
11494 | fi | |
11495 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11496 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11497 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11498 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11499 | else | |
11500 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11501 | $as_echo "no" >&6; } | |
11502 | fi | |
11503 | ||
11504 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11505 | PKG_CONFIG="" | |
11506 | else | |
11507 | case $cross_compiling:$ac_tool_warned in | |
11508 | yes:) | |
11509 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11510 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11511 | ac_tool_warned=yes ;; | |
11512 | esac | |
11513 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11514 | fi | |
11515 | else | |
11516 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11517 | fi | |
11518 | ||
11519 | fi | |
11520 | if test -n "$PKG_CONFIG"; then | |
11521 | _pkg_min_version=0.9.0 | |
11522 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11523 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11524 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11525 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11526 | $as_echo "yes" >&6; } | |
11527 | else | |
11528 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11529 | $as_echo "no" >&6; } | |
11530 | PKG_CONFIG="" | |
11531 | fi | |
8c4e8a18 | 11532 | |
e2997b73 AK |
11533 | fi |
11534 | ||
11535 | pkg_failed=no | |
a946372e AK |
11536 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11537 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11538 | |
a946372e AK |
11539 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11540 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11541 | elif test -n "$PKG_CONFIG"; then |
11542 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11543 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11544 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11545 | ac_status=$? |
11546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11547 | (exit $ac_status); }; then | |
a946372e | 11548 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11549 | else |
11550 | pkg_failed=yes | |
11551 | fi | |
11552 | else | |
11553 | pkg_failed=untried | |
11554 | fi | |
a946372e AK |
11555 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11556 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11557 | elif test -n "$PKG_CONFIG"; then |
11558 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11559 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11560 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11561 | ac_status=$? |
11562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11563 | (exit $ac_status); }; then | |
a946372e | 11564 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11565 | else |
11566 | pkg_failed=yes | |
11567 | fi | |
11568 | else | |
11569 | pkg_failed=untried | |
11570 | fi | |
11571 | ||
11572 | ||
11573 | ||
11574 | if test $pkg_failed = yes; then | |
11575 | ||
11576 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11577 | _pkg_short_errors_supported=yes | |
11578 | else | |
11579 | _pkg_short_errors_supported=no | |
11580 | fi | |
11581 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11582 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11583 | else |
a946372e | 11584 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11585 | fi |
11586 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11587 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11588 | |
8c4e8a18 FDN |
11589 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11590 | $as_echo "no" >&6; } | |
11591 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 | |
a946372e | 11592 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11593 | elif test $pkg_failed = untried; then |
a946372e AK |
11594 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11595 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11596 | else |
a946372e AK |
11597 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11598 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11599 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11600 | $as_echo "yes" >&6; } | |
8c4e8a18 | 11601 | : |
e2997b73 | 11602 | fi |
90c80887 AK |
11603 | PKGCONFIG_INIT=1 |
11604 | } | |
11605 | ||
11606 | ################################################################################ | |
11607 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11608 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11609 | ||
11610 | # Check whether --with-clvmd was given. | |
11611 | if test "${with_clvmd+set}" = set; then | |
71082be4 | 11612 | withval=$with_clvmd; CLVMD=$withval |
90c80887 | 11613 | else |
71082be4 | 11614 | CLVMD=none |
90c80887 AK |
11615 | fi |
11616 | ||
11617 | if test x$CLVMD = xyes; then | |
11618 | CLVMD=all | |
11619 | fi | |
11620 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11621 | $as_echo "$CLVMD" >&6; } | |
11622 | ||
11623 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11624 | CLUSTER=internal | |
11625 | fi | |
11626 | ||
11627 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
11628 | pkg_config_init | |
11629 | fi | |
11630 | ||
11631 | ||
11632 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11633 | BUILDGULM=yes | |
11634 | fi | |
11635 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11636 | BUILDCOROSYNC=yes | |
11637 | fi | |
11638 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11639 | BUILDOPENAIS=yes | |
11640 | fi | |
11641 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11642 | BUILDCMAN=yes | |
11643 | fi | |
11644 | ||
11645 | if test x$BUILDGULM = xyes; then | |
11646 | if test x$BUILDCOROSYNC = xyes || \ | |
11647 | test x$BUILDOPENAIS = xyes; then | |
11648 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11649 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11650 | { (exit 1); exit 1; }; } | |
11651 | fi | |
a946372e | 11652 | fi |
e2997b73 | 11653 | |
a946372e AK |
11654 | soft_bailout() { |
11655 | NOTFOUND=1 | |
11656 | } | |
e2997b73 | 11657 | |
a946372e AK |
11658 | hard_bailout() { |
11659 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11660 | $as_echo "$as_me: error: bailing out" >&2;} | |
11661 | { (exit 1); exit 1; }; } | |
11662 | } | |
11663 | ||
11664 | if test x$CLVMD = xall; then | |
11665 | bailout=soft_bailout | |
11666 | BUILDGULM=yes | |
11667 | BUILDCMAN=yes | |
11668 | BUILDCOROSYNC=yes | |
11669 | BUILDOPENAIS=yes | |
e2997b73 | 11670 | else |
a946372e | 11671 | bailout=hard_bailout |
e2997b73 | 11672 | fi |
a946372e AK |
11673 | |
11674 | check_lib_no_libs() { | |
11675 | lib_no_libs_arg1=$1 | |
11676 | shift | |
11677 | lib_no_libs_arg2=$1 | |
11678 | shift | |
11679 | lib_no_libs_args=$@ | |
11680 | ||
11681 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11682 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11683 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11684 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11685 | $as_echo_n "(cached) " >&6 | |
11686 | else | |
11687 | ac_check_lib_save_LIBS=$LIBS | |
11688 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11689 | cat >conftest.$ac_ext <<_ACEOF | |
11690 | /* confdefs.h. */ | |
11691 | _ACEOF | |
11692 | cat confdefs.h >>conftest.$ac_ext | |
11693 | cat >>conftest.$ac_ext <<_ACEOF | |
11694 | /* end confdefs.h. */ | |
11695 | ||
11696 | /* Override any GCC internal prototype to avoid an error. | |
11697 | Use char because int might match the return type of a GCC | |
11698 | builtin and then its argument prototype would still apply. */ | |
11699 | #ifdef __cplusplus | |
11700 | extern "C" | |
11701 | #endif | |
11702 | char $lib_no_libs_arg2 (); | |
11703 | int | |
11704 | main () | |
11705 | { | |
11706 | return $lib_no_libs_arg2 (); | |
11707 | ; | |
11708 | return 0; | |
11709 | } | |
11710 | _ACEOF | |
11711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11712 | if { (ac_try="$ac_link" | |
11713 | case "(($ac_try" in | |
11714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11715 | *) ac_try_echo=$ac_try;; | |
11716 | esac | |
11717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11718 | $as_echo "$ac_try_echo") >&5 | |
11719 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11720 | ac_status=$? |
a946372e AK |
11721 | grep -v '^ *+' conftest.er1 >conftest.err |
11722 | rm -f conftest.er1 | |
11723 | cat conftest.err >&5 | |
e2997b73 | 11724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11725 | (exit $ac_status); } && { |
11726 | test -z "$ac_c_werror_flag" || | |
11727 | test ! -s conftest.err | |
11728 | } && test -s conftest$ac_exeext && { | |
11729 | test "$cross_compiling" = yes || | |
11730 | $as_test_x conftest$ac_exeext | |
11731 | }; then | |
11732 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11733 | else |
a946372e AK |
11734 | $as_echo "$as_me: failed program was:" >&5 |
11735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11736 | |
a946372e AK |
11737 | eval "$as_ac_Lib=no" |
11738 | fi | |
e2997b73 | 11739 | |
a946372e AK |
11740 | rm -rf conftest.dSYM |
11741 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11742 | conftest$ac_exeext conftest.$ac_ext | |
11743 | LIBS=$ac_check_lib_save_LIBS | |
11744 | fi | |
11745 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11746 | $as_echo "$as_val"'` | |
11747 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11748 | $as_echo "$ac_res" >&6; } | |
11749 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11750 | $as_echo "$as_val"'` | |
11751 | if test "x$as_val" = x""yes; then | |
11752 | cat >>confdefs.h <<_ACEOF | |
11753 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11754 | _ACEOF | |
e2997b73 | 11755 | |
a946372e | 11756 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11757 | |
e2997b73 | 11758 | else |
a946372e | 11759 | $bailout |
e2997b73 | 11760 | fi |
e2997b73 | 11761 | |
a946372e AK |
11762 | LIBS=$ac_check_lib_save_LIBS |
11763 | } | |
11764 | ||
11765 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11766 | |
11767 | pkg_failed=no | |
a946372e AK |
11768 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11769 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11770 | |
a946372e AK |
11771 | if test -n "$CCS_CFLAGS"; then |
11772 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11773 | elif test -n "$PKG_CONFIG"; then |
11774 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11775 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11776 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11777 | ac_status=$? |
11778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11779 | (exit $ac_status); }; then | |
a946372e | 11780 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11781 | else |
11782 | pkg_failed=yes | |
11783 | fi | |
11784 | else | |
11785 | pkg_failed=untried | |
11786 | fi | |
a946372e AK |
11787 | if test -n "$CCS_LIBS"; then |
11788 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11789 | elif test -n "$PKG_CONFIG"; then |
11790 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11791 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11792 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11793 | ac_status=$? |
11794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11795 | (exit $ac_status); }; then | |
a946372e | 11796 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11797 | else |
11798 | pkg_failed=yes | |
11799 | fi | |
11800 | else | |
11801 | pkg_failed=untried | |
11802 | fi | |
11803 | ||
11804 | ||
11805 | ||
11806 | if test $pkg_failed = yes; then | |
11807 | ||
11808 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11809 | _pkg_short_errors_supported=yes | |
11810 | else | |
11811 | _pkg_short_errors_supported=no | |
11812 | fi | |
11813 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11814 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11815 | else |
a946372e | 11816 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11817 | fi |
11818 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11819 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11820 | |
8c4e8a18 FDN |
11821 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11822 | $as_echo "no" >&6; } | |
11823 | NOTFOUND=0 | |
e2997b73 | 11824 | |
a946372e AK |
11825 | for ac_header in ccs.h |
11826 | do | |
11827 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11829 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11830 | $as_echo_n "checking for $ac_header... " >&6; } | |
11831 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11832 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11833 | fi |
a946372e AK |
11834 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11835 | $as_echo "$as_val"'` | |
11836 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11837 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11838 | else |
a946372e AK |
11839 | # Is the header compilable? |
11840 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11841 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11842 | cat >conftest.$ac_ext <<_ACEOF | |
11843 | /* confdefs.h. */ | |
11844 | _ACEOF | |
11845 | cat confdefs.h >>conftest.$ac_ext | |
11846 | cat >>conftest.$ac_ext <<_ACEOF | |
11847 | /* end confdefs.h. */ | |
11848 | $ac_includes_default | |
11849 | #include <$ac_header> | |
11850 | _ACEOF | |
11851 | rm -f conftest.$ac_objext | |
11852 | if { (ac_try="$ac_compile" | |
11853 | case "(($ac_try" in | |
11854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11855 | *) ac_try_echo=$ac_try;; | |
11856 | esac | |
11857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11858 | $as_echo "$ac_try_echo") >&5 | |
11859 | (eval "$ac_compile") 2>conftest.er1 | |
11860 | ac_status=$? | |
11861 | grep -v '^ *+' conftest.er1 >conftest.err | |
11862 | rm -f conftest.er1 | |
11863 | cat conftest.err >&5 | |
11864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11865 | (exit $ac_status); } && { | |
11866 | test -z "$ac_c_werror_flag" || | |
11867 | test ! -s conftest.err | |
11868 | } && test -s conftest.$ac_objext; then | |
11869 | ac_header_compiler=yes | |
11870 | else | |
11871 | $as_echo "$as_me: failed program was:" >&5 | |
11872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11873 | |
a946372e | 11874 | ac_header_compiler=no |
d0191583 JM |
11875 | fi |
11876 | ||
a946372e AK |
11877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11878 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11879 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11880 | |
a946372e AK |
11881 | # Is the header present? |
11882 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11883 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11884 | cat >conftest.$ac_ext <<_ACEOF | |
11885 | /* confdefs.h. */ | |
11886 | _ACEOF | |
11887 | cat confdefs.h >>conftest.$ac_ext | |
11888 | cat >>conftest.$ac_ext <<_ACEOF | |
11889 | /* end confdefs.h. */ | |
11890 | #include <$ac_header> | |
11891 | _ACEOF | |
11892 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11893 | case "(($ac_try" in | |
11894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11895 | *) ac_try_echo=$ac_try;; | |
11896 | esac | |
11897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11898 | $as_echo "$ac_try_echo") >&5 | |
11899 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11900 | ac_status=$? | |
11901 | grep -v '^ *+' conftest.er1 >conftest.err | |
11902 | rm -f conftest.er1 | |
11903 | cat conftest.err >&5 | |
11904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11905 | (exit $ac_status); } >/dev/null && { | |
11906 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11907 | test ! -s conftest.err | |
11908 | }; then | |
11909 | ac_header_preproc=yes | |
11910 | else | |
11911 | $as_echo "$as_me: failed program was:" >&5 | |
11912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11913 | ||
11914 | ac_header_preproc=no | |
11915 | fi | |
11916 | ||
11917 | rm -f conftest.err conftest.$ac_ext | |
11918 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11919 | $as_echo "$ac_header_preproc" >&6; } | |
11920 | ||
11921 | # So? What about this header? | |
11922 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11923 | yes:no: ) | |
11924 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11925 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11926 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11927 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11928 | ac_header_preproc=yes | |
11929 | ;; | |
11930 | no:yes:* ) | |
11931 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11932 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11933 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11934 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11935 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11936 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11937 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11938 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11939 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11940 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11941 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11942 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11943 | ||
11944 | ;; | |
11945 | esac | |
11946 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11947 | $as_echo_n "checking for $ac_header... " >&6; } | |
11948 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11949 | $as_echo_n "(cached) " >&6 | |
11950 | else | |
11951 | eval "$as_ac_Header=\$ac_header_preproc" | |
11952 | fi | |
11953 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11954 | $as_echo "$as_val"'` | |
11955 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11956 | $as_echo "$ac_res" >&6; } | |
11957 | ||
11958 | fi | |
11959 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11960 | $as_echo "$as_val"'` | |
11961 | if test "x$as_val" = x""yes; then | |
11962 | cat >>confdefs.h <<_ACEOF | |
11963 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11964 | _ACEOF | |
11965 | ||
11966 | else | |
11967 | $bailout | |
11968 | fi | |
11969 | ||
11970 | done | |
11971 | ||
11972 | check_lib_no_libs ccs ccs_connect | |
11973 | if test $NOTFOUND = 0; then | |
11974 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11975 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11976 | CCS_LIBS="-lccs" | |
11977 | HAVE_CCS=yes | |
11978 | fi | |
11979 | elif test $pkg_failed = untried; then | |
11980 | NOTFOUND=0 | |
11981 | ||
11982 | for ac_header in ccs.h | |
11983 | do | |
11984 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11985 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11986 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11987 | $as_echo_n "checking for $ac_header... " >&6; } | |
11988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11989 | $as_echo_n "(cached) " >&6 | |
11990 | fi | |
11991 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11992 | $as_echo "$as_val"'` | |
11993 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11994 | $as_echo "$ac_res" >&6; } | |
11995 | else | |
11996 | # Is the header compilable? | |
11997 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11998 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11999 | cat >conftest.$ac_ext <<_ACEOF | |
12000 | /* confdefs.h. */ | |
12001 | _ACEOF | |
12002 | cat confdefs.h >>conftest.$ac_ext | |
12003 | cat >>conftest.$ac_ext <<_ACEOF | |
12004 | /* end confdefs.h. */ | |
12005 | $ac_includes_default | |
12006 | #include <$ac_header> | |
12007 | _ACEOF | |
12008 | rm -f conftest.$ac_objext | |
12009 | if { (ac_try="$ac_compile" | |
12010 | case "(($ac_try" in | |
12011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12012 | *) ac_try_echo=$ac_try;; | |
12013 | esac | |
12014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12015 | $as_echo "$ac_try_echo") >&5 | |
12016 | (eval "$ac_compile") 2>conftest.er1 | |
12017 | ac_status=$? | |
12018 | grep -v '^ *+' conftest.er1 >conftest.err | |
12019 | rm -f conftest.er1 | |
12020 | cat conftest.err >&5 | |
12021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12022 | (exit $ac_status); } && { | |
12023 | test -z "$ac_c_werror_flag" || | |
12024 | test ! -s conftest.err | |
12025 | } && test -s conftest.$ac_objext; then | |
12026 | ac_header_compiler=yes | |
12027 | else | |
12028 | $as_echo "$as_me: failed program was:" >&5 | |
12029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12030 | ||
12031 | ac_header_compiler=no | |
12032 | fi | |
12033 | ||
12034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12035 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12036 | $as_echo "$ac_header_compiler" >&6; } | |
12037 | ||
12038 | # Is the header present? | |
12039 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12040 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12041 | cat >conftest.$ac_ext <<_ACEOF | |
12042 | /* confdefs.h. */ | |
12043 | _ACEOF | |
12044 | cat confdefs.h >>conftest.$ac_ext | |
12045 | cat >>conftest.$ac_ext <<_ACEOF | |
12046 | /* end confdefs.h. */ | |
12047 | #include <$ac_header> | |
12048 | _ACEOF | |
12049 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12050 | case "(($ac_try" in | |
12051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12052 | *) ac_try_echo=$ac_try;; | |
12053 | esac | |
12054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12055 | $as_echo "$ac_try_echo") >&5 | |
12056 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12057 | ac_status=$? | |
12058 | grep -v '^ *+' conftest.er1 >conftest.err | |
12059 | rm -f conftest.er1 | |
12060 | cat conftest.err >&5 | |
12061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12062 | (exit $ac_status); } >/dev/null && { | |
12063 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12064 | test ! -s conftest.err | |
12065 | }; then | |
12066 | ac_header_preproc=yes | |
12067 | else | |
12068 | $as_echo "$as_me: failed program was:" >&5 | |
12069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12070 | ||
12071 | ac_header_preproc=no | |
12072 | fi | |
12073 | ||
12074 | rm -f conftest.err conftest.$ac_ext | |
12075 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12076 | $as_echo "$ac_header_preproc" >&6; } | |
12077 | ||
12078 | # So? What about this header? | |
12079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12080 | yes:no: ) | |
12081 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12082 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12083 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12084 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12085 | ac_header_preproc=yes | |
12086 | ;; | |
12087 | no:yes:* ) | |
12088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12089 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12091 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12093 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12094 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12095 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12097 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12099 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12100 | ||
12101 | ;; | |
12102 | esac | |
12103 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12104 | $as_echo_n "checking for $ac_header... " >&6; } | |
12105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12106 | $as_echo_n "(cached) " >&6 | |
12107 | else | |
12108 | eval "$as_ac_Header=\$ac_header_preproc" | |
12109 | fi | |
12110 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12111 | $as_echo "$as_val"'` | |
12112 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12113 | $as_echo "$ac_res" >&6; } | |
12114 | ||
12115 | fi | |
12116 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12117 | $as_echo "$as_val"'` | |
12118 | if test "x$as_val" = x""yes; then | |
12119 | cat >>confdefs.h <<_ACEOF | |
12120 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12121 | _ACEOF | |
12122 | ||
12123 | else | |
12124 | $bailout | |
12125 | fi | |
12126 | ||
12127 | done | |
12128 | ||
12129 | check_lib_no_libs ccs ccs_connect | |
12130 | if test $NOTFOUND = 0; then | |
12131 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12132 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12133 | CCS_LIBS="-lccs" | |
12134 | HAVE_CCS=yes | |
12135 | fi | |
12136 | else | |
12137 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12138 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12139 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12140 | $as_echo "yes" >&6; } | |
12141 | HAVE_CCS=yes | |
12142 | fi | |
12143 | ||
12144 | pkg_failed=no | |
12145 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12146 | $as_echo_n "checking for GULM... " >&6; } | |
12147 | ||
12148 | if test -n "$GULM_CFLAGS"; then | |
12149 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12150 | elif test -n "$PKG_CONFIG"; then | |
12151 | if test -n "$PKG_CONFIG" && \ | |
12152 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12153 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12154 | ac_status=$? | |
12155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12156 | (exit $ac_status); }; then | |
12157 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12158 | else | |
12159 | pkg_failed=yes | |
12160 | fi | |
12161 | else | |
12162 | pkg_failed=untried | |
12163 | fi | |
12164 | if test -n "$GULM_LIBS"; then | |
12165 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12166 | elif test -n "$PKG_CONFIG"; then | |
12167 | if test -n "$PKG_CONFIG" && \ | |
12168 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12169 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12170 | ac_status=$? | |
12171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12172 | (exit $ac_status); }; then | |
12173 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12174 | else | |
12175 | pkg_failed=yes | |
12176 | fi | |
12177 | else | |
12178 | pkg_failed=untried | |
12179 | fi | |
12180 | ||
12181 | ||
12182 | ||
12183 | if test $pkg_failed = yes; then | |
12184 | ||
12185 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12186 | _pkg_short_errors_supported=yes | |
12187 | else | |
12188 | _pkg_short_errors_supported=no | |
12189 | fi | |
12190 | if test $_pkg_short_errors_supported = yes; then | |
12191 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12192 | else | |
12193 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12194 | fi | |
12195 | # Put the nasty error message in config.log where it belongs | |
12196 | echo "$GULM_PKG_ERRORS" >&5 | |
12197 | ||
8c4e8a18 FDN |
12198 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12199 | $as_echo "no" >&6; } | |
12200 | NOTFOUND=0 | |
a946372e AK |
12201 | |
12202 | for ac_header in libgulm.h | |
12203 | do | |
12204 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12206 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12207 | $as_echo_n "checking for $ac_header... " >&6; } | |
12208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12209 | $as_echo_n "(cached) " >&6 | |
12210 | fi | |
12211 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12212 | $as_echo "$as_val"'` | |
12213 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12214 | $as_echo "$ac_res" >&6; } | |
12215 | else | |
12216 | # Is the header compilable? | |
12217 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12218 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12219 | cat >conftest.$ac_ext <<_ACEOF | |
12220 | /* confdefs.h. */ | |
12221 | _ACEOF | |
12222 | cat confdefs.h >>conftest.$ac_ext | |
12223 | cat >>conftest.$ac_ext <<_ACEOF | |
12224 | /* end confdefs.h. */ | |
12225 | $ac_includes_default | |
12226 | #include <$ac_header> | |
12227 | _ACEOF | |
12228 | rm -f conftest.$ac_objext | |
12229 | if { (ac_try="$ac_compile" | |
12230 | case "(($ac_try" in | |
12231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12232 | *) ac_try_echo=$ac_try;; | |
12233 | esac | |
12234 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12235 | $as_echo "$ac_try_echo") >&5 | |
12236 | (eval "$ac_compile") 2>conftest.er1 | |
12237 | ac_status=$? | |
12238 | grep -v '^ *+' conftest.er1 >conftest.err | |
12239 | rm -f conftest.er1 | |
12240 | cat conftest.err >&5 | |
12241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12242 | (exit $ac_status); } && { | |
12243 | test -z "$ac_c_werror_flag" || | |
12244 | test ! -s conftest.err | |
12245 | } && test -s conftest.$ac_objext; then | |
12246 | ac_header_compiler=yes | |
12247 | else | |
12248 | $as_echo "$as_me: failed program was:" >&5 | |
12249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12250 | ||
12251 | ac_header_compiler=no | |
12252 | fi | |
12253 | ||
12254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12255 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12256 | $as_echo "$ac_header_compiler" >&6; } | |
12257 | ||
12258 | # Is the header present? | |
12259 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12260 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12261 | cat >conftest.$ac_ext <<_ACEOF | |
12262 | /* confdefs.h. */ | |
12263 | _ACEOF | |
12264 | cat confdefs.h >>conftest.$ac_ext | |
12265 | cat >>conftest.$ac_ext <<_ACEOF | |
12266 | /* end confdefs.h. */ | |
12267 | #include <$ac_header> | |
12268 | _ACEOF | |
12269 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12270 | case "(($ac_try" in | |
12271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12272 | *) ac_try_echo=$ac_try;; | |
12273 | esac | |
12274 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12275 | $as_echo "$ac_try_echo") >&5 | |
12276 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12277 | ac_status=$? | |
12278 | grep -v '^ *+' conftest.er1 >conftest.err | |
12279 | rm -f conftest.er1 | |
12280 | cat conftest.err >&5 | |
12281 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12282 | (exit $ac_status); } >/dev/null && { | |
12283 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12284 | test ! -s conftest.err | |
12285 | }; then | |
12286 | ac_header_preproc=yes | |
12287 | else | |
12288 | $as_echo "$as_me: failed program was:" >&5 | |
12289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12290 | ||
12291 | ac_header_preproc=no | |
12292 | fi | |
12293 | ||
12294 | rm -f conftest.err conftest.$ac_ext | |
12295 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12296 | $as_echo "$ac_header_preproc" >&6; } | |
12297 | ||
12298 | # So? What about this header? | |
12299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12300 | yes:no: ) | |
12301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12302 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12304 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12305 | ac_header_preproc=yes | |
12306 | ;; | |
12307 | no:yes:* ) | |
12308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12309 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12311 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12313 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12315 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12317 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12318 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12319 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12320 | ||
12321 | ;; | |
12322 | esac | |
12323 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12324 | $as_echo_n "checking for $ac_header... " >&6; } | |
12325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12326 | $as_echo_n "(cached) " >&6 | |
12327 | else | |
12328 | eval "$as_ac_Header=\$ac_header_preproc" | |
12329 | fi | |
12330 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12331 | $as_echo "$as_val"'` | |
12332 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12333 | $as_echo "$ac_res" >&6; } | |
12334 | ||
12335 | fi | |
12336 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12337 | $as_echo "$as_val"'` | |
12338 | if test "x$as_val" = x""yes; then | |
12339 | cat >>confdefs.h <<_ACEOF | |
12340 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12341 | _ACEOF | |
12342 | ||
12343 | else | |
12344 | $bailout | |
12345 | fi | |
12346 | ||
12347 | done | |
12348 | ||
12349 | check_lib_no_libs gulm lg_core_login | |
12350 | if test $NOTFOUND = 0; then | |
12351 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12352 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12353 | GULM_LIBS="-lgulm" | |
12354 | HAVE_GULM=yes | |
12355 | fi | |
12356 | elif test $pkg_failed = untried; then | |
12357 | NOTFOUND=0 | |
12358 | ||
12359 | for ac_header in libgulm.h | |
12360 | do | |
12361 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12362 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12363 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12364 | $as_echo_n "checking for $ac_header... " >&6; } | |
12365 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12366 | $as_echo_n "(cached) " >&6 | |
12367 | fi | |
12368 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12369 | $as_echo "$as_val"'` | |
12370 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12371 | $as_echo "$ac_res" >&6; } | |
12372 | else | |
12373 | # Is the header compilable? | |
12374 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12375 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12376 | cat >conftest.$ac_ext <<_ACEOF | |
12377 | /* confdefs.h. */ | |
12378 | _ACEOF | |
12379 | cat confdefs.h >>conftest.$ac_ext | |
12380 | cat >>conftest.$ac_ext <<_ACEOF | |
12381 | /* end confdefs.h. */ | |
12382 | $ac_includes_default | |
12383 | #include <$ac_header> | |
12384 | _ACEOF | |
12385 | rm -f conftest.$ac_objext | |
12386 | if { (ac_try="$ac_compile" | |
12387 | case "(($ac_try" in | |
12388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12389 | *) ac_try_echo=$ac_try;; | |
12390 | esac | |
12391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12392 | $as_echo "$ac_try_echo") >&5 | |
12393 | (eval "$ac_compile") 2>conftest.er1 | |
12394 | ac_status=$? | |
12395 | grep -v '^ *+' conftest.er1 >conftest.err | |
12396 | rm -f conftest.er1 | |
12397 | cat conftest.err >&5 | |
12398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12399 | (exit $ac_status); } && { | |
12400 | test -z "$ac_c_werror_flag" || | |
12401 | test ! -s conftest.err | |
12402 | } && test -s conftest.$ac_objext; then | |
12403 | ac_header_compiler=yes | |
12404 | else | |
12405 | $as_echo "$as_me: failed program was:" >&5 | |
12406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12407 | ||
12408 | ac_header_compiler=no | |
12409 | fi | |
12410 | ||
12411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12412 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12413 | $as_echo "$ac_header_compiler" >&6; } | |
12414 | ||
12415 | # Is the header present? | |
12416 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12417 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12418 | cat >conftest.$ac_ext <<_ACEOF | |
12419 | /* confdefs.h. */ | |
12420 | _ACEOF | |
12421 | cat confdefs.h >>conftest.$ac_ext | |
12422 | cat >>conftest.$ac_ext <<_ACEOF | |
12423 | /* end confdefs.h. */ | |
12424 | #include <$ac_header> | |
12425 | _ACEOF | |
12426 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12427 | case "(($ac_try" in | |
12428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12429 | *) ac_try_echo=$ac_try;; | |
12430 | esac | |
12431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12432 | $as_echo "$ac_try_echo") >&5 | |
12433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12434 | ac_status=$? | |
12435 | grep -v '^ *+' conftest.er1 >conftest.err | |
12436 | rm -f conftest.er1 | |
12437 | cat conftest.err >&5 | |
12438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12439 | (exit $ac_status); } >/dev/null && { | |
12440 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12441 | test ! -s conftest.err | |
12442 | }; then | |
12443 | ac_header_preproc=yes | |
12444 | else | |
12445 | $as_echo "$as_me: failed program was:" >&5 | |
12446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12447 | ||
12448 | ac_header_preproc=no | |
12449 | fi | |
12450 | ||
12451 | rm -f conftest.err conftest.$ac_ext | |
12452 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12453 | $as_echo "$ac_header_preproc" >&6; } | |
12454 | ||
12455 | # So? What about this header? | |
12456 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12457 | yes:no: ) | |
12458 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12459 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12460 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12461 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12462 | ac_header_preproc=yes | |
12463 | ;; | |
12464 | no:yes:* ) | |
12465 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12466 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12467 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12468 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12469 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12470 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12471 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12472 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12473 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12474 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12475 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12476 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12477 | ||
12478 | ;; | |
12479 | esac | |
12480 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12481 | $as_echo_n "checking for $ac_header... " >&6; } | |
12482 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12483 | $as_echo_n "(cached) " >&6 | |
12484 | else | |
12485 | eval "$as_ac_Header=\$ac_header_preproc" | |
12486 | fi | |
12487 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12488 | $as_echo "$as_val"'` | |
12489 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12490 | $as_echo "$ac_res" >&6; } | |
12491 | ||
12492 | fi | |
12493 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12494 | $as_echo "$as_val"'` | |
12495 | if test "x$as_val" = x""yes; then | |
12496 | cat >>confdefs.h <<_ACEOF | |
12497 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12498 | _ACEOF | |
12499 | ||
12500 | else | |
12501 | $bailout | |
12502 | fi | |
12503 | ||
12504 | done | |
12505 | ||
12506 | check_lib_no_libs gulm lg_core_login | |
12507 | if test $NOTFOUND = 0; then | |
12508 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12509 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12510 | GULM_LIBS="-lgulm" | |
12511 | HAVE_GULM=yes | |
12512 | fi | |
12513 | else | |
12514 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12515 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12516 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12517 | $as_echo "yes" >&6; } | |
12518 | HAVE_GULM=yes | |
12519 | fi | |
12520 | fi | |
12521 | ||
12522 | if test x$BUILDCMAN = xyes; then | |
12523 | ||
12524 | pkg_failed=no | |
12525 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12526 | $as_echo_n "checking for CMAN... " >&6; } | |
12527 | ||
12528 | if test -n "$CMAN_CFLAGS"; then | |
12529 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12530 | elif test -n "$PKG_CONFIG"; then | |
12531 | if test -n "$PKG_CONFIG" && \ | |
12532 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12533 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12534 | ac_status=$? | |
12535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12536 | (exit $ac_status); }; then | |
12537 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12538 | else | |
12539 | pkg_failed=yes | |
12540 | fi | |
12541 | else | |
12542 | pkg_failed=untried | |
12543 | fi | |
12544 | if test -n "$CMAN_LIBS"; then | |
12545 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12546 | elif test -n "$PKG_CONFIG"; then | |
12547 | if test -n "$PKG_CONFIG" && \ | |
12548 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12549 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12550 | ac_status=$? | |
12551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12552 | (exit $ac_status); }; then | |
12553 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12554 | else | |
12555 | pkg_failed=yes | |
12556 | fi | |
12557 | else | |
12558 | pkg_failed=untried | |
12559 | fi | |
12560 | ||
12561 | ||
12562 | ||
12563 | if test $pkg_failed = yes; then | |
12564 | ||
12565 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12566 | _pkg_short_errors_supported=yes | |
12567 | else | |
12568 | _pkg_short_errors_supported=no | |
12569 | fi | |
12570 | if test $_pkg_short_errors_supported = yes; then | |
12571 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12572 | else | |
12573 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12574 | fi | |
12575 | # Put the nasty error message in config.log where it belongs | |
12576 | echo "$CMAN_PKG_ERRORS" >&5 | |
12577 | ||
8c4e8a18 FDN |
12578 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12579 | $as_echo "no" >&6; } | |
12580 | NOTFOUND=0 | |
a946372e AK |
12581 | |
12582 | for ac_header in libcman.h | |
12583 | do | |
12584 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12586 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12587 | $as_echo_n "checking for $ac_header... " >&6; } | |
12588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12589 | $as_echo_n "(cached) " >&6 | |
12590 | fi | |
12591 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12592 | $as_echo "$as_val"'` | |
12593 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12594 | $as_echo "$ac_res" >&6; } | |
12595 | else | |
12596 | # Is the header compilable? | |
12597 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12598 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12599 | cat >conftest.$ac_ext <<_ACEOF | |
12600 | /* confdefs.h. */ | |
12601 | _ACEOF | |
12602 | cat confdefs.h >>conftest.$ac_ext | |
12603 | cat >>conftest.$ac_ext <<_ACEOF | |
12604 | /* end confdefs.h. */ | |
12605 | $ac_includes_default | |
12606 | #include <$ac_header> | |
12607 | _ACEOF | |
12608 | rm -f conftest.$ac_objext | |
12609 | if { (ac_try="$ac_compile" | |
12610 | case "(($ac_try" in | |
12611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12612 | *) ac_try_echo=$ac_try;; | |
12613 | esac | |
12614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12615 | $as_echo "$ac_try_echo") >&5 | |
12616 | (eval "$ac_compile") 2>conftest.er1 | |
12617 | ac_status=$? | |
12618 | grep -v '^ *+' conftest.er1 >conftest.err | |
12619 | rm -f conftest.er1 | |
12620 | cat conftest.err >&5 | |
12621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12622 | (exit $ac_status); } && { | |
12623 | test -z "$ac_c_werror_flag" || | |
12624 | test ! -s conftest.err | |
12625 | } && test -s conftest.$ac_objext; then | |
12626 | ac_header_compiler=yes | |
12627 | else | |
12628 | $as_echo "$as_me: failed program was:" >&5 | |
12629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12630 | ||
12631 | ac_header_compiler=no | |
12632 | fi | |
12633 | ||
12634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12635 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12636 | $as_echo "$ac_header_compiler" >&6; } | |
12637 | ||
12638 | # Is the header present? | |
12639 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12640 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12641 | cat >conftest.$ac_ext <<_ACEOF | |
12642 | /* confdefs.h. */ | |
12643 | _ACEOF | |
12644 | cat confdefs.h >>conftest.$ac_ext | |
12645 | cat >>conftest.$ac_ext <<_ACEOF | |
12646 | /* end confdefs.h. */ | |
12647 | #include <$ac_header> | |
12648 | _ACEOF | |
12649 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12650 | case "(($ac_try" in | |
12651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12652 | *) ac_try_echo=$ac_try;; | |
12653 | esac | |
12654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12655 | $as_echo "$ac_try_echo") >&5 | |
12656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12657 | ac_status=$? | |
12658 | grep -v '^ *+' conftest.er1 >conftest.err | |
12659 | rm -f conftest.er1 | |
12660 | cat conftest.err >&5 | |
12661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12662 | (exit $ac_status); } >/dev/null && { | |
12663 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12664 | test ! -s conftest.err | |
12665 | }; then | |
12666 | ac_header_preproc=yes | |
12667 | else | |
12668 | $as_echo "$as_me: failed program was:" >&5 | |
12669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12670 | ||
12671 | ac_header_preproc=no | |
12672 | fi | |
12673 | ||
12674 | rm -f conftest.err conftest.$ac_ext | |
12675 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12676 | $as_echo "$ac_header_preproc" >&6; } | |
12677 | ||
12678 | # So? What about this header? | |
12679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12680 | yes:no: ) | |
12681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12682 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12684 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12685 | ac_header_preproc=yes | |
12686 | ;; | |
12687 | no:yes:* ) | |
12688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12689 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12691 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12693 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12695 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12697 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12699 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12700 | ||
12701 | ;; | |
12702 | esac | |
12703 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12704 | $as_echo_n "checking for $ac_header... " >&6; } | |
12705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12706 | $as_echo_n "(cached) " >&6 | |
12707 | else | |
12708 | eval "$as_ac_Header=\$ac_header_preproc" | |
12709 | fi | |
12710 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12711 | $as_echo "$as_val"'` | |
12712 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12713 | $as_echo "$ac_res" >&6; } | |
12714 | ||
12715 | fi | |
12716 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12717 | $as_echo "$as_val"'` | |
12718 | if test "x$as_val" = x""yes; then | |
12719 | cat >>confdefs.h <<_ACEOF | |
12720 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12721 | _ACEOF | |
12722 | ||
12723 | else | |
12724 | $bailout | |
12725 | fi | |
12726 | ||
12727 | done | |
12728 | ||
12729 | check_lib_no_libs cman cman_init | |
12730 | if test $NOTFOUND = 0; then | |
12731 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12732 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12733 | CMAN_LIBS="-lcman" | |
12734 | HAVE_CMAN=yes | |
12735 | fi | |
12736 | elif test $pkg_failed = untried; then | |
12737 | NOTFOUND=0 | |
12738 | ||
12739 | for ac_header in libcman.h | |
12740 | do | |
12741 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12743 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12744 | $as_echo_n "checking for $ac_header... " >&6; } | |
12745 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12746 | $as_echo_n "(cached) " >&6 | |
12747 | fi | |
12748 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12749 | $as_echo "$as_val"'` | |
12750 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12751 | $as_echo "$ac_res" >&6; } | |
12752 | else | |
12753 | # Is the header compilable? | |
12754 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12755 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12756 | cat >conftest.$ac_ext <<_ACEOF | |
12757 | /* confdefs.h. */ | |
12758 | _ACEOF | |
12759 | cat confdefs.h >>conftest.$ac_ext | |
12760 | cat >>conftest.$ac_ext <<_ACEOF | |
12761 | /* end confdefs.h. */ | |
12762 | $ac_includes_default | |
12763 | #include <$ac_header> | |
12764 | _ACEOF | |
12765 | rm -f conftest.$ac_objext | |
12766 | if { (ac_try="$ac_compile" | |
12767 | case "(($ac_try" in | |
12768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12769 | *) ac_try_echo=$ac_try;; | |
12770 | esac | |
12771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12772 | $as_echo "$ac_try_echo") >&5 | |
12773 | (eval "$ac_compile") 2>conftest.er1 | |
12774 | ac_status=$? | |
12775 | grep -v '^ *+' conftest.er1 >conftest.err | |
12776 | rm -f conftest.er1 | |
12777 | cat conftest.err >&5 | |
12778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12779 | (exit $ac_status); } && { | |
12780 | test -z "$ac_c_werror_flag" || | |
12781 | test ! -s conftest.err | |
12782 | } && test -s conftest.$ac_objext; then | |
12783 | ac_header_compiler=yes | |
12784 | else | |
12785 | $as_echo "$as_me: failed program was:" >&5 | |
12786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12787 | ||
12788 | ac_header_compiler=no | |
12789 | fi | |
12790 | ||
12791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12792 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12793 | $as_echo "$ac_header_compiler" >&6; } | |
12794 | ||
12795 | # Is the header present? | |
12796 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12797 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12798 | cat >conftest.$ac_ext <<_ACEOF | |
12799 | /* confdefs.h. */ | |
12800 | _ACEOF | |
12801 | cat confdefs.h >>conftest.$ac_ext | |
12802 | cat >>conftest.$ac_ext <<_ACEOF | |
12803 | /* end confdefs.h. */ | |
12804 | #include <$ac_header> | |
12805 | _ACEOF | |
12806 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12807 | case "(($ac_try" in | |
12808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12809 | *) ac_try_echo=$ac_try;; | |
12810 | esac | |
12811 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12812 | $as_echo "$ac_try_echo") >&5 | |
12813 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12814 | ac_status=$? | |
12815 | grep -v '^ *+' conftest.er1 >conftest.err | |
12816 | rm -f conftest.er1 | |
12817 | cat conftest.err >&5 | |
12818 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12819 | (exit $ac_status); } >/dev/null && { | |
12820 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12821 | test ! -s conftest.err | |
12822 | }; then | |
12823 | ac_header_preproc=yes | |
12824 | else | |
12825 | $as_echo "$as_me: failed program was:" >&5 | |
12826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12827 | ||
12828 | ac_header_preproc=no | |
12829 | fi | |
12830 | ||
12831 | rm -f conftest.err conftest.$ac_ext | |
12832 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12833 | $as_echo "$ac_header_preproc" >&6; } | |
12834 | ||
12835 | # So? What about this header? | |
12836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12837 | yes:no: ) | |
12838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12839 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12841 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12842 | ac_header_preproc=yes | |
12843 | ;; | |
12844 | no:yes:* ) | |
12845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12846 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12848 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12850 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12851 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12852 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12854 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12856 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12857 | ||
12858 | ;; | |
12859 | esac | |
12860 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12861 | $as_echo_n "checking for $ac_header... " >&6; } | |
12862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12863 | $as_echo_n "(cached) " >&6 | |
12864 | else | |
12865 | eval "$as_ac_Header=\$ac_header_preproc" | |
12866 | fi | |
12867 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12868 | $as_echo "$as_val"'` | |
12869 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12870 | $as_echo "$ac_res" >&6; } | |
12871 | ||
12872 | fi | |
12873 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12874 | $as_echo "$as_val"'` | |
12875 | if test "x$as_val" = x""yes; then | |
12876 | cat >>confdefs.h <<_ACEOF | |
12877 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12878 | _ACEOF | |
12879 | ||
12880 | else | |
12881 | $bailout | |
12882 | fi | |
12883 | ||
12884 | done | |
12885 | ||
12886 | check_lib_no_libs cman cman_init | |
12887 | if test $NOTFOUND = 0; then | |
12888 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12889 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12890 | CMAN_LIBS="-lcman" | |
12891 | HAVE_CMAN=yes | |
12892 | fi | |
12893 | else | |
12894 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12895 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12896 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12897 | $as_echo "yes" >&6; } | |
12898 | HAVE_CMAN=yes | |
12899 | fi | |
12900 | CHECKCONFDB=yes | |
12901 | CHECKDLM=yes | |
12902 | fi | |
12903 | ||
12904 | if test x$BUILDCOROSYNC = xyes || \ | |
12905 | test x$BUILDOPENAIS = xyes; then | |
12906 | ||
12907 | pkg_failed=no | |
12908 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12909 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12910 | ||
12911 | if test -n "$COROSYNC_CFLAGS"; then | |
12912 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12913 | elif test -n "$PKG_CONFIG"; then | |
12914 | if test -n "$PKG_CONFIG" && \ | |
12915 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12916 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12917 | ac_status=$? | |
12918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12919 | (exit $ac_status); }; then | |
12920 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12921 | else | |
12922 | pkg_failed=yes | |
12923 | fi | |
12924 | else | |
12925 | pkg_failed=untried | |
12926 | fi | |
12927 | if test -n "$COROSYNC_LIBS"; then | |
12928 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12929 | elif test -n "$PKG_CONFIG"; then | |
12930 | if test -n "$PKG_CONFIG" && \ | |
12931 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12932 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12933 | ac_status=$? | |
12934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12935 | (exit $ac_status); }; then | |
12936 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12937 | else | |
12938 | pkg_failed=yes | |
12939 | fi | |
12940 | else | |
12941 | pkg_failed=untried | |
12942 | fi | |
12943 | ||
12944 | ||
12945 | ||
12946 | if test $pkg_failed = yes; then | |
12947 | ||
12948 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12949 | _pkg_short_errors_supported=yes | |
12950 | else | |
12951 | _pkg_short_errors_supported=no | |
12952 | fi | |
12953 | if test $_pkg_short_errors_supported = yes; then | |
12954 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12955 | else | |
12956 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12957 | fi | |
12958 | # Put the nasty error message in config.log where it belongs | |
12959 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12960 | ||
8c4e8a18 | 12961 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 12962 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
12963 | $bailout |
12964 | elif test $pkg_failed = untried; then | |
a946372e AK |
12965 | $bailout |
12966 | else | |
12967 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12968 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12969 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12970 | $as_echo "yes" >&6; } | |
12971 | HAVE_COROSYNC=yes | |
12972 | fi | |
12973 | CHECKCONFDB=yes | |
12974 | fi | |
12975 | ||
12976 | if test x$BUILDCOROSYNC = xyes; then | |
12977 | ||
12978 | pkg_failed=no | |
12979 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
12980 | $as_echo_n "checking for QUORUM... " >&6; } | |
12981 | ||
12982 | if test -n "$QUORUM_CFLAGS"; then | |
12983 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
12984 | elif test -n "$PKG_CONFIG"; then | |
12985 | if test -n "$PKG_CONFIG" && \ | |
12986 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12987 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12988 | ac_status=$? | |
12989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12990 | (exit $ac_status); }; then | |
12991 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
12992 | else | |
12993 | pkg_failed=yes | |
12994 | fi | |
12995 | else | |
12996 | pkg_failed=untried | |
12997 | fi | |
12998 | if test -n "$QUORUM_LIBS"; then | |
12999 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
13000 | elif test -n "$PKG_CONFIG"; then | |
13001 | if test -n "$PKG_CONFIG" && \ | |
13002 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
13003 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
13004 | ac_status=$? | |
13005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13006 | (exit $ac_status); }; then | |
13007 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
13008 | else | |
13009 | pkg_failed=yes | |
13010 | fi | |
13011 | else | |
13012 | pkg_failed=untried | |
13013 | fi | |
13014 | ||
13015 | ||
13016 | ||
13017 | if test $pkg_failed = yes; then | |
13018 | ||
13019 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13020 | _pkg_short_errors_supported=yes | |
13021 | else | |
13022 | _pkg_short_errors_supported=no | |
13023 | fi | |
13024 | if test $_pkg_short_errors_supported = yes; then | |
13025 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
13026 | else | |
13027 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
13028 | fi | |
13029 | # Put the nasty error message in config.log where it belongs | |
13030 | echo "$QUORUM_PKG_ERRORS" >&5 | |
13031 | ||
8c4e8a18 | 13032 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13033 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13034 | $bailout |
13035 | elif test $pkg_failed = untried; then | |
a946372e AK |
13036 | $bailout |
13037 | else | |
13038 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
13039 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
13040 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13041 | $as_echo "yes" >&6; } | |
13042 | HAVE_QUORUM=yes | |
13043 | fi | |
13044 | CHECKCPG=yes | |
13045 | CHECKDLM=yes | |
13046 | fi | |
13047 | ||
13048 | if test x$BUILDOPENAIS = xyes; then | |
13049 | ||
13050 | pkg_failed=no | |
13051 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
13052 | $as_echo_n "checking for SALCK... " >&6; } | |
13053 | ||
13054 | if test -n "$SALCK_CFLAGS"; then | |
13055 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13056 | elif test -n "$PKG_CONFIG"; then | |
13057 | if test -n "$PKG_CONFIG" && \ | |
13058 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13059 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13060 | ac_status=$? | |
13061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13062 | (exit $ac_status); }; then | |
13063 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13064 | else | |
13065 | pkg_failed=yes | |
13066 | fi | |
13067 | else | |
13068 | pkg_failed=untried | |
13069 | fi | |
13070 | if test -n "$SALCK_LIBS"; then | |
13071 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13072 | elif test -n "$PKG_CONFIG"; then | |
13073 | if test -n "$PKG_CONFIG" && \ | |
13074 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13075 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13076 | ac_status=$? | |
13077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13078 | (exit $ac_status); }; then | |
13079 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13080 | else | |
13081 | pkg_failed=yes | |
13082 | fi | |
13083 | else | |
13084 | pkg_failed=untried | |
13085 | fi | |
13086 | ||
13087 | ||
13088 | ||
13089 | if test $pkg_failed = yes; then | |
13090 | ||
13091 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13092 | _pkg_short_errors_supported=yes | |
13093 | else | |
13094 | _pkg_short_errors_supported=no | |
13095 | fi | |
13096 | if test $_pkg_short_errors_supported = yes; then | |
13097 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13098 | else | |
13099 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13100 | fi | |
13101 | # Put the nasty error message in config.log where it belongs | |
13102 | echo "$SALCK_PKG_ERRORS" >&5 | |
13103 | ||
8c4e8a18 | 13104 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13105 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13106 | $bailout |
13107 | elif test $pkg_failed = untried; then | |
a946372e AK |
13108 | $bailout |
13109 | else | |
13110 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13111 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13112 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13113 | $as_echo "yes" >&6; } | |
13114 | HAVE_SALCK=yes | |
13115 | fi | |
13116 | CHECKCPG=yes | |
13117 | fi | |
13118 | ||
13119 | ||
13120 | ||
13121 | if test x$CHECKCONFDB = xyes; then | |
13122 | ||
13123 | pkg_failed=no | |
13124 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13125 | $as_echo_n "checking for CONFDB... " >&6; } | |
13126 | ||
13127 | if test -n "$CONFDB_CFLAGS"; then | |
13128 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13129 | elif test -n "$PKG_CONFIG"; then | |
13130 | if test -n "$PKG_CONFIG" && \ | |
13131 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13132 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13133 | ac_status=$? | |
13134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13135 | (exit $ac_status); }; then | |
13136 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13137 | else | |
13138 | pkg_failed=yes | |
13139 | fi | |
13140 | else | |
13141 | pkg_failed=untried | |
13142 | fi | |
13143 | if test -n "$CONFDB_LIBS"; then | |
13144 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13145 | elif test -n "$PKG_CONFIG"; then | |
13146 | if test -n "$PKG_CONFIG" && \ | |
13147 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13148 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13149 | ac_status=$? | |
13150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13151 | (exit $ac_status); }; then | |
13152 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13153 | else | |
13154 | pkg_failed=yes | |
13155 | fi | |
13156 | else | |
13157 | pkg_failed=untried | |
13158 | fi | |
13159 | ||
13160 | ||
13161 | ||
13162 | if test $pkg_failed = yes; then | |
13163 | ||
13164 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13165 | _pkg_short_errors_supported=yes | |
13166 | else | |
13167 | _pkg_short_errors_supported=no | |
13168 | fi | |
13169 | if test $_pkg_short_errors_supported = yes; then | |
13170 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13171 | else | |
13172 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13173 | fi | |
13174 | # Put the nasty error message in config.log where it belongs | |
13175 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13176 | ||
8c4e8a18 | 13177 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13178 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13179 | HAVE_CONFDB=no |
13180 | elif test $pkg_failed = untried; then | |
a946372e AK |
13181 | HAVE_CONFDB=no |
13182 | else | |
13183 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13184 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13185 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13186 | $as_echo "yes" >&6; } | |
13187 | HAVE_CONFDB=yes | |
13188 | fi | |
13189 | ||
13190 | ||
13191 | for ac_header in corosync/confdb.h | |
13192 | do | |
13193 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13195 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13196 | $as_echo_n "checking for $ac_header... " >&6; } | |
13197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13198 | $as_echo_n "(cached) " >&6 | |
13199 | fi | |
13200 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13201 | $as_echo "$as_val"'` | |
13202 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13203 | $as_echo "$ac_res" >&6; } | |
13204 | else | |
13205 | # Is the header compilable? | |
13206 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13207 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13208 | cat >conftest.$ac_ext <<_ACEOF | |
13209 | /* confdefs.h. */ | |
13210 | _ACEOF | |
13211 | cat confdefs.h >>conftest.$ac_ext | |
13212 | cat >>conftest.$ac_ext <<_ACEOF | |
13213 | /* end confdefs.h. */ | |
13214 | $ac_includes_default | |
13215 | #include <$ac_header> | |
13216 | _ACEOF | |
13217 | rm -f conftest.$ac_objext | |
13218 | if { (ac_try="$ac_compile" | |
13219 | case "(($ac_try" in | |
13220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13221 | *) ac_try_echo=$ac_try;; | |
13222 | esac | |
13223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13224 | $as_echo "$ac_try_echo") >&5 | |
13225 | (eval "$ac_compile") 2>conftest.er1 | |
13226 | ac_status=$? | |
13227 | grep -v '^ *+' conftest.er1 >conftest.err | |
13228 | rm -f conftest.er1 | |
13229 | cat conftest.err >&5 | |
13230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13231 | (exit $ac_status); } && { | |
13232 | test -z "$ac_c_werror_flag" || | |
13233 | test ! -s conftest.err | |
13234 | } && test -s conftest.$ac_objext; then | |
13235 | ac_header_compiler=yes | |
13236 | else | |
13237 | $as_echo "$as_me: failed program was:" >&5 | |
13238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13239 | ||
13240 | ac_header_compiler=no | |
13241 | fi | |
13242 | ||
13243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13244 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13245 | $as_echo "$ac_header_compiler" >&6; } | |
13246 | ||
13247 | # Is the header present? | |
13248 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13249 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13250 | cat >conftest.$ac_ext <<_ACEOF | |
13251 | /* confdefs.h. */ | |
13252 | _ACEOF | |
13253 | cat confdefs.h >>conftest.$ac_ext | |
13254 | cat >>conftest.$ac_ext <<_ACEOF | |
13255 | /* end confdefs.h. */ | |
13256 | #include <$ac_header> | |
13257 | _ACEOF | |
13258 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13259 | case "(($ac_try" in | |
13260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13261 | *) ac_try_echo=$ac_try;; | |
13262 | esac | |
13263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13264 | $as_echo "$ac_try_echo") >&5 | |
13265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13266 | ac_status=$? | |
13267 | grep -v '^ *+' conftest.er1 >conftest.err | |
13268 | rm -f conftest.er1 | |
13269 | cat conftest.err >&5 | |
13270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13271 | (exit $ac_status); } >/dev/null && { | |
13272 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13273 | test ! -s conftest.err | |
13274 | }; then | |
13275 | ac_header_preproc=yes | |
13276 | else | |
13277 | $as_echo "$as_me: failed program was:" >&5 | |
13278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13279 | ||
13280 | ac_header_preproc=no | |
13281 | fi | |
13282 | ||
13283 | rm -f conftest.err conftest.$ac_ext | |
13284 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13285 | $as_echo "$ac_header_preproc" >&6; } | |
13286 | ||
13287 | # So? What about this header? | |
13288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13289 | yes:no: ) | |
13290 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13291 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13292 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13293 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13294 | ac_header_preproc=yes | |
13295 | ;; | |
13296 | no:yes:* ) | |
13297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13298 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13300 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13302 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13304 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13306 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13308 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13309 | ||
13310 | ;; | |
13311 | esac | |
13312 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13313 | $as_echo_n "checking for $ac_header... " >&6; } | |
13314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13315 | $as_echo_n "(cached) " >&6 | |
13316 | else | |
13317 | eval "$as_ac_Header=\$ac_header_preproc" | |
13318 | fi | |
13319 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13320 | $as_echo "$as_val"'` | |
13321 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13322 | $as_echo "$ac_res" >&6; } | |
13323 | ||
13324 | fi | |
13325 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13326 | $as_echo "$as_val"'` | |
13327 | if test "x$as_val" = x""yes; then | |
13328 | cat >>confdefs.h <<_ACEOF | |
13329 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13330 | _ACEOF | |
13331 | HAVE_CONFDB_H=yes | |
13332 | else | |
13333 | HAVE_CONFDB_H=no | |
13334 | fi | |
13335 | ||
13336 | done | |
13337 | ||
13338 | ||
13339 | if test x$HAVE_CONFDB != xyes && \ | |
13340 | test x$HAVE_CONFDB_H = xyes; then | |
13341 | check_lib_no_libs confdb confdb_initialize | |
13342 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13343 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13344 | CONFDB_LIBS="-lconfdb" | |
13345 | HAVE_CONFDB=yes | |
13346 | fi | |
13347 | ||
13348 | if test x$BUILDCOROSYNC = xyes && \ | |
13349 | test x$HAVE_CONFDB != xyes && | |
13350 | test x$CLVMD != xall; then | |
13351 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13352 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13353 | { (exit 1); exit 1; }; } | |
13354 | fi | |
13355 | fi | |
13356 | ||
13357 | if test x$CHECKCPG = xyes; then | |
13358 | ||
13359 | pkg_failed=no | |
13360 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13361 | $as_echo_n "checking for CPG... " >&6; } | |
13362 | ||
13363 | if test -n "$CPG_CFLAGS"; then | |
13364 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13365 | elif test -n "$PKG_CONFIG"; then | |
13366 | if test -n "$PKG_CONFIG" && \ | |
13367 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13368 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13369 | ac_status=$? | |
13370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13371 | (exit $ac_status); }; then | |
13372 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13373 | else | |
13374 | pkg_failed=yes | |
13375 | fi | |
13376 | else | |
13377 | pkg_failed=untried | |
13378 | fi | |
13379 | if test -n "$CPG_LIBS"; then | |
13380 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13381 | elif test -n "$PKG_CONFIG"; then | |
13382 | if test -n "$PKG_CONFIG" && \ | |
13383 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13384 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13385 | ac_status=$? | |
13386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13387 | (exit $ac_status); }; then | |
13388 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13389 | else | |
13390 | pkg_failed=yes | |
13391 | fi | |
13392 | else | |
13393 | pkg_failed=untried | |
13394 | fi | |
13395 | ||
13396 | ||
13397 | ||
13398 | if test $pkg_failed = yes; then | |
13399 | ||
13400 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13401 | _pkg_short_errors_supported=yes | |
13402 | else | |
13403 | _pkg_short_errors_supported=no | |
13404 | fi | |
13405 | if test $_pkg_short_errors_supported = yes; then | |
13406 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13407 | else | |
13408 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13409 | fi | |
13410 | # Put the nasty error message in config.log where it belongs | |
13411 | echo "$CPG_PKG_ERRORS" >&5 | |
13412 | ||
8c4e8a18 | 13413 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13414 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13415 | $bailout |
13416 | elif test $pkg_failed = untried; then | |
a946372e AK |
13417 | $bailout |
13418 | else | |
13419 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13420 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13421 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13422 | $as_echo "yes" >&6; } | |
13423 | HAVE_CPG=yes | |
13424 | fi | |
13425 | fi | |
13426 | ||
13427 | if test x$CHECKDLM = xyes; then | |
13428 | ||
13429 | pkg_failed=no | |
13430 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13431 | $as_echo_n "checking for DLM... " >&6; } | |
13432 | ||
13433 | if test -n "$DLM_CFLAGS"; then | |
13434 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13435 | elif test -n "$PKG_CONFIG"; then | |
13436 | if test -n "$PKG_CONFIG" && \ | |
13437 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13438 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13439 | ac_status=$? | |
13440 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13441 | (exit $ac_status); }; then | |
13442 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13443 | else | |
13444 | pkg_failed=yes | |
13445 | fi | |
13446 | else | |
13447 | pkg_failed=untried | |
13448 | fi | |
13449 | if test -n "$DLM_LIBS"; then | |
13450 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13451 | elif test -n "$PKG_CONFIG"; then | |
13452 | if test -n "$PKG_CONFIG" && \ | |
13453 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13454 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13455 | ac_status=$? | |
13456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13457 | (exit $ac_status); }; then | |
13458 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13459 | else | |
13460 | pkg_failed=yes | |
13461 | fi | |
13462 | else | |
13463 | pkg_failed=untried | |
13464 | fi | |
13465 | ||
13466 | ||
13467 | ||
13468 | if test $pkg_failed = yes; then | |
13469 | ||
13470 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13471 | _pkg_short_errors_supported=yes | |
13472 | else | |
13473 | _pkg_short_errors_supported=no | |
13474 | fi | |
13475 | if test $_pkg_short_errors_supported = yes; then | |
13476 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13477 | else | |
13478 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13479 | fi | |
13480 | # Put the nasty error message in config.log where it belongs | |
13481 | echo "$DLM_PKG_ERRORS" >&5 | |
13482 | ||
8c4e8a18 FDN |
13483 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13484 | $as_echo "no" >&6; } | |
13485 | NOTFOUND=0 | |
a946372e AK |
13486 | |
13487 | for ac_header in libdlm.h | |
13488 | do | |
13489 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13491 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13492 | $as_echo_n "checking for $ac_header... " >&6; } | |
13493 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13494 | $as_echo_n "(cached) " >&6 | |
13495 | fi | |
13496 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13497 | $as_echo "$as_val"'` | |
13498 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13499 | $as_echo "$ac_res" >&6; } | |
13500 | else | |
13501 | # Is the header compilable? | |
13502 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13503 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13504 | cat >conftest.$ac_ext <<_ACEOF | |
13505 | /* confdefs.h. */ | |
13506 | _ACEOF | |
13507 | cat confdefs.h >>conftest.$ac_ext | |
13508 | cat >>conftest.$ac_ext <<_ACEOF | |
13509 | /* end confdefs.h. */ | |
13510 | $ac_includes_default | |
13511 | #include <$ac_header> | |
13512 | _ACEOF | |
13513 | rm -f conftest.$ac_objext | |
13514 | if { (ac_try="$ac_compile" | |
13515 | case "(($ac_try" in | |
13516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13517 | *) ac_try_echo=$ac_try;; | |
13518 | esac | |
13519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13520 | $as_echo "$ac_try_echo") >&5 | |
13521 | (eval "$ac_compile") 2>conftest.er1 | |
13522 | ac_status=$? | |
13523 | grep -v '^ *+' conftest.er1 >conftest.err | |
13524 | rm -f conftest.er1 | |
13525 | cat conftest.err >&5 | |
13526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13527 | (exit $ac_status); } && { | |
13528 | test -z "$ac_c_werror_flag" || | |
13529 | test ! -s conftest.err | |
13530 | } && test -s conftest.$ac_objext; then | |
13531 | ac_header_compiler=yes | |
13532 | else | |
13533 | $as_echo "$as_me: failed program was:" >&5 | |
13534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13535 | ||
13536 | ac_header_compiler=no | |
13537 | fi | |
13538 | ||
13539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13540 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13541 | $as_echo "$ac_header_compiler" >&6; } | |
13542 | ||
13543 | # Is the header present? | |
13544 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13545 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13546 | cat >conftest.$ac_ext <<_ACEOF | |
13547 | /* confdefs.h. */ | |
13548 | _ACEOF | |
13549 | cat confdefs.h >>conftest.$ac_ext | |
13550 | cat >>conftest.$ac_ext <<_ACEOF | |
13551 | /* end confdefs.h. */ | |
13552 | #include <$ac_header> | |
13553 | _ACEOF | |
13554 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13555 | case "(($ac_try" in | |
13556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13557 | *) ac_try_echo=$ac_try;; | |
13558 | esac | |
13559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13560 | $as_echo "$ac_try_echo") >&5 | |
13561 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13562 | ac_status=$? | |
13563 | grep -v '^ *+' conftest.er1 >conftest.err | |
13564 | rm -f conftest.er1 | |
13565 | cat conftest.err >&5 | |
13566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13567 | (exit $ac_status); } >/dev/null && { | |
13568 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13569 | test ! -s conftest.err | |
13570 | }; then | |
13571 | ac_header_preproc=yes | |
13572 | else | |
13573 | $as_echo "$as_me: failed program was:" >&5 | |
13574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13575 | ||
13576 | ac_header_preproc=no | |
13577 | fi | |
13578 | ||
13579 | rm -f conftest.err conftest.$ac_ext | |
13580 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13581 | $as_echo "$ac_header_preproc" >&6; } | |
13582 | ||
13583 | # So? What about this header? | |
13584 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13585 | yes:no: ) | |
13586 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13587 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13588 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13589 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13590 | ac_header_preproc=yes | |
13591 | ;; | |
13592 | no:yes:* ) | |
13593 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13594 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13595 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13596 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13597 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13598 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13599 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13600 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13601 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13602 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13603 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13604 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13605 | ||
13606 | ;; | |
13607 | esac | |
13608 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13609 | $as_echo_n "checking for $ac_header... " >&6; } | |
13610 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13611 | $as_echo_n "(cached) " >&6 | |
13612 | else | |
13613 | eval "$as_ac_Header=\$ac_header_preproc" | |
13614 | fi | |
13615 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13616 | $as_echo "$as_val"'` | |
13617 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13618 | $as_echo "$ac_res" >&6; } | |
13619 | ||
13620 | fi | |
13621 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13622 | $as_echo "$as_val"'` | |
13623 | if test "x$as_val" = x""yes; then | |
13624 | cat >>confdefs.h <<_ACEOF | |
13625 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13626 | _ACEOF | |
13627 | ||
13628 | else | |
13629 | $bailout | |
13630 | fi | |
13631 | ||
13632 | done | |
13633 | ||
13634 | check_lib_no_libs dlm dlm_lock -lpthread | |
13635 | if test $NOTFOUND = 0; then | |
13636 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13637 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13638 | DLM_LIBS="-ldlm -lpthread" | |
13639 | HAVE_DLM=yes | |
13640 | fi | |
13641 | elif test $pkg_failed = untried; then | |
13642 | NOTFOUND=0 | |
13643 | ||
13644 | for ac_header in libdlm.h | |
13645 | do | |
13646 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13647 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13648 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13649 | $as_echo_n "checking for $ac_header... " >&6; } | |
13650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13651 | $as_echo_n "(cached) " >&6 | |
13652 | fi | |
13653 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13654 | $as_echo "$as_val"'` | |
13655 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13656 | $as_echo "$ac_res" >&6; } | |
13657 | else | |
13658 | # Is the header compilable? | |
13659 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13660 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13661 | cat >conftest.$ac_ext <<_ACEOF | |
13662 | /* confdefs.h. */ | |
13663 | _ACEOF | |
13664 | cat confdefs.h >>conftest.$ac_ext | |
13665 | cat >>conftest.$ac_ext <<_ACEOF | |
13666 | /* end confdefs.h. */ | |
13667 | $ac_includes_default | |
13668 | #include <$ac_header> | |
13669 | _ACEOF | |
13670 | rm -f conftest.$ac_objext | |
13671 | if { (ac_try="$ac_compile" | |
13672 | case "(($ac_try" in | |
13673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13674 | *) ac_try_echo=$ac_try;; | |
13675 | esac | |
13676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13677 | $as_echo "$ac_try_echo") >&5 | |
13678 | (eval "$ac_compile") 2>conftest.er1 | |
13679 | ac_status=$? | |
13680 | grep -v '^ *+' conftest.er1 >conftest.err | |
13681 | rm -f conftest.er1 | |
13682 | cat conftest.err >&5 | |
13683 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13684 | (exit $ac_status); } && { | |
13685 | test -z "$ac_c_werror_flag" || | |
13686 | test ! -s conftest.err | |
13687 | } && test -s conftest.$ac_objext; then | |
13688 | ac_header_compiler=yes | |
13689 | else | |
13690 | $as_echo "$as_me: failed program was:" >&5 | |
13691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13692 | ||
13693 | ac_header_compiler=no | |
13694 | fi | |
13695 | ||
13696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13697 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13698 | $as_echo "$ac_header_compiler" >&6; } | |
13699 | ||
13700 | # Is the header present? | |
13701 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13702 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13703 | cat >conftest.$ac_ext <<_ACEOF | |
13704 | /* confdefs.h. */ | |
13705 | _ACEOF | |
13706 | cat confdefs.h >>conftest.$ac_ext | |
13707 | cat >>conftest.$ac_ext <<_ACEOF | |
13708 | /* end confdefs.h. */ | |
13709 | #include <$ac_header> | |
13710 | _ACEOF | |
13711 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13712 | case "(($ac_try" in | |
13713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13714 | *) ac_try_echo=$ac_try;; | |
13715 | esac | |
13716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13717 | $as_echo "$ac_try_echo") >&5 | |
13718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13719 | ac_status=$? | |
13720 | grep -v '^ *+' conftest.er1 >conftest.err | |
13721 | rm -f conftest.er1 | |
13722 | cat conftest.err >&5 | |
13723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13724 | (exit $ac_status); } >/dev/null && { | |
13725 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13726 | test ! -s conftest.err | |
13727 | }; then | |
13728 | ac_header_preproc=yes | |
13729 | else | |
13730 | $as_echo "$as_me: failed program was:" >&5 | |
13731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13732 | ||
13733 | ac_header_preproc=no | |
13734 | fi | |
13735 | ||
13736 | rm -f conftest.err conftest.$ac_ext | |
13737 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13738 | $as_echo "$ac_header_preproc" >&6; } | |
13739 | ||
13740 | # So? What about this header? | |
13741 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13742 | yes:no: ) | |
13743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13744 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13745 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13746 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13747 | ac_header_preproc=yes | |
13748 | ;; | |
13749 | no:yes:* ) | |
13750 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13751 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13752 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13753 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13755 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13757 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13759 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13760 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13761 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13762 | ||
13763 | ;; | |
13764 | esac | |
13765 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13766 | $as_echo_n "checking for $ac_header... " >&6; } | |
13767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13768 | $as_echo_n "(cached) " >&6 | |
13769 | else | |
13770 | eval "$as_ac_Header=\$ac_header_preproc" | |
13771 | fi | |
13772 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13773 | $as_echo "$as_val"'` | |
13774 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13775 | $as_echo "$ac_res" >&6; } | |
13776 | ||
13777 | fi | |
13778 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13779 | $as_echo "$as_val"'` | |
13780 | if test "x$as_val" = x""yes; then | |
13781 | cat >>confdefs.h <<_ACEOF | |
13782 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13783 | _ACEOF | |
13784 | ||
13785 | else | |
13786 | $bailout | |
13787 | fi | |
13788 | ||
13789 | done | |
13790 | ||
13791 | check_lib_no_libs dlm dlm_lock -lpthread | |
13792 | if test $NOTFOUND = 0; then | |
13793 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13794 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13795 | DLM_LIBS="-ldlm -lpthread" | |
13796 | HAVE_DLM=yes | |
13797 | fi | |
13798 | else | |
13799 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13800 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13801 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13802 | $as_echo "yes" >&6; } | |
13803 | HAVE_DLM=yes | |
13804 | fi | |
13805 | fi | |
13806 | ||
13807 | if test x$CLVMD = xall; then | |
8c222979 | 13808 | CLVMD=none |
a946372e AK |
13809 | if test x$HAVE_CCS = xyes && \ |
13810 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13811 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13812 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13813 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
13814 | fi |
13815 | if test x$HAVE_CMAN = xyes && \ | |
13816 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13817 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13818 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13819 | CLVMD="$CLVMD,cman" | |
a946372e AK |
13820 | fi |
13821 | if test x$HAVE_COROSYNC = xyes && \ | |
13822 | test x$HAVE_QUORUM = xyes && \ | |
13823 | test x$HAVE_CPG = xyes && \ | |
13824 | test x$HAVE_DLM = xyes && \ | |
13825 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13826 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13827 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13828 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
13829 | fi |
13830 | if test x$HAVE_COROSYNC = xyes && \ | |
13831 | test x$HAVE_CPG = xyes && \ | |
13832 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13833 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13834 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13835 | CLVMD="$CLVMD,openais" | |
13836 | fi | |
13837 | if test x$CLVMD = xnone; then | |
13838 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13839 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13840 | fi |
a946372e AK |
13841 | fi |
13842 | ||
8c4e8a18 FDN |
13843 | ################################################################################ |
13844 | if test "x$CLVMD" != xnone; then | |
13845 | ||
13846 | # Check whether --with-clvmd-pidfile was given. | |
13847 | if test "${with_clvmd_pidfile+set}" = set; then | |
13848 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
13849 | else | |
13850 | CLVMD_PIDFILE="/var/run/clvmd.pid" | |
13851 | fi | |
13852 | ||
13853 | ||
13854 | cat >>confdefs.h <<_ACEOF | |
13855 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
13856 | _ACEOF | |
13857 | ||
13858 | fi | |
13859 | ||
a946372e | 13860 | ################################################################################ |
66fd4529 AK |
13861 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13862 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13863 | # Check whether --enable-cmirrord was given. | |
13864 | if test "${enable_cmirrord+set}" = set; then | |
13865 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13866 | else | |
13867 | CMIRRORD=no | |
13868 | fi | |
13869 | ||
13870 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13871 | $as_echo "$CMIRRORD" >&6; } | |
13872 | ||
13873 | BUILD_CMIRRORD=$CMIRRORD | |
13874 | ||
13875 | ################################################################################ | |
66fd4529 AK |
13876 | if test "x$BUILD_CMIRRORD" = xyes; then |
13877 | ||
13878 | # Check whether --with-cmirrord-pidfile was given. | |
13879 | if test "${with_cmirrord_pidfile+set}" = set; then | |
71082be4 | 13880 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval |
66fd4529 | 13881 | else |
71082be4 | 13882 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
a946372e AK |
13883 | fi |
13884 | ||
71082be4 ZK |
13885 | |
13886 | cat >>confdefs.h <<_ACEOF | |
13887 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
13888 | _ACEOF | |
13889 | ||
66fd4529 | 13890 | fi |
a946372e | 13891 | |
66fd4529 AK |
13892 | ################################################################################ |
13893 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13894 | if test x$PKGCONFIG_INIT != x1; then |
13895 | pkg_config_init | |
13896 | fi | |
13897 | ||
13898 | pkg_failed=no | |
13899 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13900 | $as_echo_n "checking for SACKPT... " >&6; } | |
13901 | ||
13902 | if test -n "$SACKPT_CFLAGS"; then | |
13903 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13904 | elif test -n "$PKG_CONFIG"; then | |
13905 | if test -n "$PKG_CONFIG" && \ | |
13906 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13907 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13908 | ac_status=$? | |
13909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13910 | (exit $ac_status); }; then | |
13911 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13912 | else | |
13913 | pkg_failed=yes | |
13914 | fi | |
13915 | else | |
13916 | pkg_failed=untried | |
13917 | fi | |
13918 | if test -n "$SACKPT_LIBS"; then | |
13919 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13920 | elif test -n "$PKG_CONFIG"; then | |
13921 | if test -n "$PKG_CONFIG" && \ | |
13922 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13923 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13924 | ac_status=$? | |
13925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13926 | (exit $ac_status); }; then | |
13927 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13928 | else | |
13929 | pkg_failed=yes | |
13930 | fi | |
13931 | else | |
13932 | pkg_failed=untried | |
13933 | fi | |
13934 | ||
13935 | ||
13936 | ||
13937 | if test $pkg_failed = yes; then | |
13938 | ||
13939 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13940 | _pkg_short_errors_supported=yes | |
13941 | else | |
13942 | _pkg_short_errors_supported=no | |
13943 | fi | |
13944 | if test $_pkg_short_errors_supported = yes; then | |
13945 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13946 | else | |
13947 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13948 | fi | |
13949 | # Put the nasty error message in config.log where it belongs | |
13950 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13951 | ||
13952 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13953 | ||
13954 | $SACKPT_PKG_ERRORS | |
13955 | ||
13956 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13957 | installed software in a non-standard prefix. | |
13958 | ||
13959 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13960 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13961 | See the pkg-config man page for more details. |
13962 | " >&5 | |
90c80887 AK |
13963 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13964 | ||
13965 | $SACKPT_PKG_ERRORS | |
13966 | ||
13967 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13968 | installed software in a non-standard prefix. | |
13969 | ||
13970 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13971 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13972 | See the pkg-config man page for more details. |
13973 | " >&2;} | |
90c80887 AK |
13974 | { (exit 1); exit 1; }; } |
13975 | elif test $pkg_failed = untried; then | |
13976 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
13977 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13978 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
13979 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13980 | path to pkg-config. | |
13981 | ||
13982 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13983 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13984 | See the pkg-config man page for more details. | |
13985 | ||
13986 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13987 | See \`config.log' for more details." >&5 | |
13988 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
13989 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13990 | path to pkg-config. | |
13991 | ||
13992 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13993 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13994 | See the pkg-config man page for more details. | |
13995 | ||
13996 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13997 | See \`config.log' for more details." >&2;} | |
13998 | { (exit 1); exit 1; }; }; } | |
13999 | else | |
14000 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
14001 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
14002 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14003 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14004 | : |
90c80887 AK |
14005 | fi |
14006 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
14007 | |
14008 | pkg_failed=no | |
14009 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
14010 | $as_echo_n "checking for CPG... " >&6; } | |
14011 | ||
14012 | if test -n "$CPG_CFLAGS"; then | |
14013 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
14014 | elif test -n "$PKG_CONFIG"; then | |
14015 | if test -n "$PKG_CONFIG" && \ | |
14016 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14017 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14018 | ac_status=$? | |
14019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14020 | (exit $ac_status); }; then | |
14021 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
14022 | else | |
14023 | pkg_failed=yes | |
14024 | fi | |
14025 | else | |
14026 | pkg_failed=untried | |
14027 | fi | |
14028 | if test -n "$CPG_LIBS"; then | |
14029 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
14030 | elif test -n "$PKG_CONFIG"; then | |
14031 | if test -n "$PKG_CONFIG" && \ | |
14032 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14033 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14034 | ac_status=$? | |
14035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14036 | (exit $ac_status); }; then | |
14037 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
14038 | else | |
14039 | pkg_failed=yes | |
14040 | fi | |
14041 | else | |
14042 | pkg_failed=untried | |
14043 | fi | |
14044 | ||
14045 | ||
14046 | ||
14047 | if test $pkg_failed = yes; then | |
14048 | ||
14049 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14050 | _pkg_short_errors_supported=yes | |
14051 | else | |
14052 | _pkg_short_errors_supported=no | |
14053 | fi | |
14054 | if test $_pkg_short_errors_supported = yes; then | |
14055 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14056 | else | |
14057 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14058 | fi | |
14059 | # Put the nasty error message in config.log where it belongs | |
14060 | echo "$CPG_PKG_ERRORS" >&5 | |
14061 | ||
90c80887 AK |
14062 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14063 | ||
14064 | $CPG_PKG_ERRORS | |
14065 | ||
14066 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14067 | installed software in a non-standard prefix. | |
14068 | ||
14069 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14070 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14071 | See the pkg-config man page for more details. |
14072 | " >&5 | |
90c80887 AK |
14073 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14074 | ||
14075 | $CPG_PKG_ERRORS | |
14076 | ||
14077 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14078 | installed software in a non-standard prefix. | |
14079 | ||
14080 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14081 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14082 | See the pkg-config man page for more details. |
14083 | " >&2;} | |
90c80887 | 14084 | { (exit 1); exit 1; }; } |
a946372e | 14085 | elif test $pkg_failed = untried; then |
90c80887 AK |
14086 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14087 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14088 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14089 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14090 | path to pkg-config. | |
14091 | ||
14092 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14093 | and CPG_LIBS to avoid the need to call pkg-config. | |
14094 | See the pkg-config man page for more details. | |
14095 | ||
14096 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14097 | See \`config.log' for more details." >&5 | |
14098 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14099 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14100 | path to pkg-config. | |
14101 | ||
14102 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14103 | and CPG_LIBS to avoid the need to call pkg-config. | |
14104 | See the pkg-config man page for more details. | |
14105 | ||
14106 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14107 | See \`config.log' for more details." >&2;} | |
14108 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14109 | else |
14110 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14111 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14112 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14113 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14114 | : |
a946372e | 14115 | fi |
90c80887 | 14116 | fi |
a946372e AK |
14117 | fi |
14118 | ||
14119 | ################################################################################ | |
14120 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14121 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14122 | # Check whether --enable-debug was given. | |
14123 | if test "${enable_debug+set}" = set; then | |
14124 | enableval=$enable_debug; DEBUG=$enableval | |
14125 | else | |
14126 | DEBUG=no | |
14127 | fi | |
14128 | ||
14129 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14130 | $as_echo "$DEBUG" >&6; } | |
14131 | ||
14132 | if test x$DEBUG = xyes; then | |
14133 | COPTIMISE_FLAG= | |
14134 | else | |
14135 | CSCOPE_CMD= | |
14136 | fi | |
14137 | ||
14138 | ################################################################################ | |
14139 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14140 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14141 | ||
14142 | # Check whether --with-optimisation was given. | |
14143 | if test "${with_optimisation+set}" = set; then | |
71082be4 | 14144 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
a946372e AK |
14145 | fi |
14146 | ||
14147 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14148 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14149 | ||
14150 | ################################################################################ | |
14151 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14152 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14153 | # Check whether --enable-profiling was given. | |
14154 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14155 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14156 | else |
5556819a | 14157 | PROFILING=no |
fddafd51 ZK |
14158 | fi |
14159 | ||
ec6a6fbe AK |
14160 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14161 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14162 | |
14163 | if test "x$PROFILING" = xyes; then | |
14164 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14165 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14166 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14167 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14168 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14169 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14170 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14171 | else |
14172 | case $LCOV in | |
14173 | [\\/]* | ?:[\\/]*) | |
14174 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14175 | ;; | |
14176 | *) | |
14177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14178 | for as_dir in $PATH | |
14179 | do | |
14180 | IFS=$as_save_IFS | |
14181 | test -z "$as_dir" && as_dir=. | |
14182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14184 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14185 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14186 | break 2 |
14187 | fi | |
14188 | done | |
14189 | done | |
14190 | IFS=$as_save_IFS | |
14191 | ||
14192 | ;; | |
14193 | esac | |
14194 | fi | |
14195 | LCOV=$ac_cv_path_LCOV | |
14196 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14197 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14198 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14199 | else |
ec6a6fbe AK |
14200 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14201 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14202 | fi |
14203 | ||
14204 | ||
5556819a | 14205 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14206 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14207 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14208 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14209 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14210 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14211 | else |
14212 | case $GENHTML in | |
14213 | [\\/]* | ?:[\\/]*) | |
14214 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14215 | ;; | |
14216 | *) | |
14217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14218 | for as_dir in $PATH | |
14219 | do | |
14220 | IFS=$as_save_IFS | |
14221 | test -z "$as_dir" && as_dir=. | |
14222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14224 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14225 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14226 | break 2 |
14227 | fi | |
14228 | done | |
14229 | done | |
14230 | IFS=$as_save_IFS | |
14231 | ||
14232 | ;; | |
14233 | esac | |
14234 | fi | |
14235 | GENHTML=$ac_cv_path_GENHTML | |
14236 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14237 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14238 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14239 | else |
ec6a6fbe AK |
14240 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14241 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14242 | fi |
14243 | ||
14244 | ||
fd4728e1 | 14245 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14246 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14247 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14248 | { (exit 1); exit 1; }; } |
14249 | fi | |
fd4728e1 ZK |
14250 | # Extract the first word of "genpng", so it can be a program name with args. |
14251 | set dummy genpng; ac_word=$2 | |
14252 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14253 | $as_echo_n "checking for $ac_word... " >&6; } | |
14254 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14255 | $as_echo_n "(cached) " >&6 | |
14256 | else | |
14257 | case $GENPNG in | |
14258 | [\\/]* | ?:[\\/]*) | |
14259 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14260 | ;; | |
14261 | *) | |
14262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14263 | for as_dir in $PATH | |
14264 | do | |
14265 | IFS=$as_save_IFS | |
14266 | test -z "$as_dir" && as_dir=. | |
14267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14269 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14270 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14271 | break 2 | |
14272 | fi | |
14273 | done | |
14274 | done | |
14275 | IFS=$as_save_IFS | |
14276 | ||
14277 | ;; | |
14278 | esac | |
14279 | fi | |
14280 | GENPNG=$ac_cv_path_GENPNG | |
14281 | if test -n "$GENPNG"; then | |
14282 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14283 | $as_echo "$GENPNG" >&6; } | |
14284 | else | |
14285 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14286 | $as_echo "no" >&6; } | |
14287 | fi | |
14288 | ||
14289 | ||
14290 | if test -n "$GENPNG"; then | |
14291 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14292 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14293 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14294 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14295 | $as_echo "ok" >&6; } | |
14296 | GENHTML="$GENHTML --frames" | |
14297 | else | |
14298 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14299 | $as_echo "not supported" >&6; } | |
14300 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14301 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14302 | GENPNG= | |
14303 | fi | |
14304 | fi | |
5556819a | 14305 | fi |
d0191583 | 14306 | |
54b362f9 AK |
14307 | ################################################################################ |
14308 | { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5 | |
14309 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
14310 | # Check whether --enable-testing was given. | |
14311 | if test "${enable_testing+set}" = set; then | |
14312 | enableval=$enable_testing; TESTING=$enableval | |
14313 | else | |
14314 | TESTING=no | |
14315 | fi | |
14316 | ||
14317 | { $as_echo "$as_me:$LINENO: result: $TESTING" >&5 | |
14318 | $as_echo "$TESTING" >&6; } | |
14319 | ||
14320 | if test "$TESTING" = yes; then | |
14321 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
14322 | set dummy ruby1.9; ac_word=$2 | |
14323 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14324 | $as_echo_n "checking for $ac_word... " >&6; } | |
14325 | if test "${ac_cv_path_RUBY19+set}" = set; then | |
14326 | $as_echo_n "(cached) " >&6 | |
14327 | else | |
14328 | case $RUBY19 in | |
14329 | [\\/]* | ?:[\\/]*) | |
14330 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
14331 | ;; | |
14332 | *) | |
14333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14334 | for as_dir in $PATH | |
14335 | do | |
14336 | IFS=$as_save_IFS | |
14337 | test -z "$as_dir" && as_dir=. | |
14338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14340 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
14341 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14342 | break 2 | |
14343 | fi | |
14344 | done | |
14345 | done | |
14346 | IFS=$as_save_IFS | |
14347 | ||
14348 | ;; | |
14349 | esac | |
14350 | fi | |
14351 | RUBY19=$ac_cv_path_RUBY19 | |
14352 | if test -n "$RUBY19"; then | |
14353 | { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5 | |
14354 | $as_echo "$RUBY19" >&6; } | |
14355 | else | |
14356 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14357 | $as_echo "no" >&6; } | |
14358 | fi | |
14359 | ||
14360 | ||
14361 | # Extract the first word of "valgrind", so it can be a program name with args. | |
14362 | set dummy valgrind; ac_word=$2 | |
14363 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14364 | $as_echo_n "checking for $ac_word... " >&6; } | |
14365 | if test "${ac_cv_path_VALGRIND+set}" = set; then | |
14366 | $as_echo_n "(cached) " >&6 | |
14367 | else | |
14368 | case $VALGRIND in | |
14369 | [\\/]* | ?:[\\/]*) | |
14370 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. | |
14371 | ;; | |
14372 | *) | |
14373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14374 | for as_dir in $PATH | |
14375 | do | |
14376 | IFS=$as_save_IFS | |
14377 | test -z "$as_dir" && as_dir=. | |
14378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14380 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" | |
14381 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14382 | break 2 | |
14383 | fi | |
14384 | done | |
14385 | done | |
14386 | IFS=$as_save_IFS | |
14387 | ||
14388 | ;; | |
14389 | esac | |
14390 | fi | |
14391 | VALGRIND=$ac_cv_path_VALGRIND | |
14392 | if test -n "$VALGRIND"; then | |
14393 | { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5 | |
14394 | $as_echo "$VALGRIND" >&6; } | |
14395 | else | |
14396 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14397 | $as_echo "no" >&6; } | |
14398 | fi | |
14399 | ||
14400 | ||
14401 | if test -z "$RUBY19" -o -z "$VALGRIND"; then | |
14402 | { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5 | |
14403 | $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;} | |
14404 | { (exit 1); exit 1; }; } | |
14405 | fi | |
14406 | fi | |
14407 | ||
d0191583 | 14408 | ################################################################################ |
ec6a6fbe AK |
14409 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14410 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14411 | # Check whether --enable-devmapper was given. |
14412 | if test "${enable_devmapper+set}" = set; then | |
14413 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14414 | fi |
14415 | ||
ec6a6fbe AK |
14416 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14417 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14418 | |
14419 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14420 | |
14421 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14422 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14423 | _ACEOF |
14424 | ||
14425 | fi | |
14426 | ||
a5f46f6a AK |
14427 | ################################################################################ |
14428 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14429 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14430 | # Check whether --enable-udev_sync was given. | |
14431 | if test "${enable_udev_sync+set}" = set; then | |
14432 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14433 | else | |
14434 | UDEV_SYNC=no | |
14435 | fi | |
14436 | ||
14437 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14438 | $as_echo "$UDEV_SYNC" >&6; } | |
14439 | ||
90c80887 AK |
14440 | if test x$UDEV_SYNC = xyes; then |
14441 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14442 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14443 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14444 | $as_echo_n "(cached) " >&6 | |
14445 | else | |
14446 | ac_check_lib_save_LIBS=$LIBS | |
14447 | LIBS="-ludev $LIBS" | |
14448 | cat >conftest.$ac_ext <<_ACEOF | |
14449 | /* confdefs.h. */ | |
14450 | _ACEOF | |
14451 | cat confdefs.h >>conftest.$ac_ext | |
14452 | cat >>conftest.$ac_ext <<_ACEOF | |
14453 | /* end confdefs.h. */ | |
14454 | ||
14455 | /* Override any GCC internal prototype to avoid an error. | |
14456 | Use char because int might match the return type of a GCC | |
14457 | builtin and then its argument prototype would still apply. */ | |
14458 | #ifdef __cplusplus | |
14459 | extern "C" | |
14460 | #endif | |
14461 | char udev_queue_get_udev_is_active (); | |
14462 | int | |
14463 | main () | |
14464 | { | |
14465 | return udev_queue_get_udev_is_active (); | |
14466 | ; | |
14467 | return 0; | |
14468 | } | |
14469 | _ACEOF | |
14470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14471 | if { (ac_try="$ac_link" | |
14472 | case "(($ac_try" in | |
14473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14474 | *) ac_try_echo=$ac_try;; | |
14475 | esac | |
14476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14477 | $as_echo "$ac_try_echo") >&5 | |
14478 | (eval "$ac_link") 2>conftest.er1 | |
14479 | ac_status=$? | |
14480 | grep -v '^ *+' conftest.er1 >conftest.err | |
14481 | rm -f conftest.er1 | |
14482 | cat conftest.err >&5 | |
14483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14484 | (exit $ac_status); } && { | |
14485 | test -z "$ac_c_werror_flag" || | |
14486 | test ! -s conftest.err | |
14487 | } && test -s conftest$ac_exeext && { | |
14488 | test "$cross_compiling" = yes || | |
14489 | $as_test_x conftest$ac_exeext | |
14490 | }; then | |
14491 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14492 | else | |
14493 | $as_echo "$as_me: failed program was:" >&5 | |
14494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14495 | ||
14496 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14497 | fi | |
14498 | ||
14499 | rm -rf conftest.dSYM | |
14500 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14501 | conftest$ac_exeext conftest.$ac_ext | |
14502 | LIBS=$ac_check_lib_save_LIBS | |
14503 | fi | |
14504 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14505 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14506 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14507 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14508 | else |
5161ecb9 PR |
14509 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14510 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14511 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14512 | fi |
14513 | ||
14514 | ||
90c80887 | 14515 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14516 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14517 | _ACEOF |
14518 | ||
90c80887 AK |
14519 | fi |
14520 | ||
5161ecb9 PR |
14521 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14522 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14523 | # Check whether --enable-udev_rules was given. | |
14524 | if test "${enable_udev_rules+set}" = set; then | |
14525 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14526 | else | |
14527 | UDEV_RULES=$UDEV_SYNC | |
14528 | fi | |
14529 | ||
14530 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14531 | $as_echo "$UDEV_RULES" >&6; } | |
14532 | ||
93bd259b AK |
14533 | ################################################################################ |
14534 | # Check whether --enable-compat was given. | |
14535 | if test "${enable_compat+set}" = set; then | |
14536 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14537 | else | |
14538 | DM_COMPAT=no | |
14539 | fi | |
14540 | ||
14541 | ||
95eaa683 AK |
14542 | ################################################################################ |
14543 | # Check whether --enable-units-compat was given. | |
14544 | if test "${enable_units_compat+set}" = set; then | |
14545 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14546 | else | |
14547 | UNITS_COMPAT=no | |
14548 | fi | |
14549 | ||
14550 | ||
14551 | if test x$UNITS_COMPAT = xyes; then | |
14552 | ||
14553 | cat >>confdefs.h <<\_ACEOF | |
14554 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14555 | _ACEOF | |
14556 | ||
14557 | fi | |
14558 | ||
93bd259b AK |
14559 | ################################################################################ |
14560 | # Check whether --enable-ioctl was given. | |
14561 | if test "${enable_ioctl+set}" = set; then | |
14562 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14563 | fi | |
14564 | ||
14565 | ||
d0191583 | 14566 | ################################################################################ |
ec6a6fbe AK |
14567 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14568 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14569 | # Check whether --enable-o_direct was given. |
14570 | if test "${enable_o_direct+set}" = set; then | |
14571 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14572 | fi |
ad6254c5 | 14573 | |
ec6a6fbe AK |
14574 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14575 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14576 | |
d0191583 | 14577 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14578 | |
d0191583 JM |
14579 | cat >>confdefs.h <<\_ACEOF |
14580 | #define O_DIRECT_SUPPORT 1 | |
14581 | _ACEOF | |
ad6254c5 | 14582 | |
d0191583 | 14583 | fi |
ad6254c5 | 14584 | |
572fefeb AK |
14585 | ################################################################################ |
14586 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14587 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14588 | # Check whether --enable-applib was given. | |
14589 | if test "${enable_applib+set}" = set; then | |
14590 | enableval=$enable_applib; APPLIB=$enableval | |
14591 | else | |
14592 | APPLIB=no | |
14593 | fi | |
14594 | ||
14595 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14596 | $as_echo "$APPLIB" >&6; } | |
14597 | ||
14598 | test x$APPLIB = xyes \ | |
14599 | && LVM2APP_LIB=-llvm2app \ | |
14600 | || LVM2APP_LIB= | |
14601 | ||
d0191583 | 14602 | ################################################################################ |
ec6a6fbe AK |
14603 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14604 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14605 | # Check whether --enable-cmdlib was given. |
14606 | if test "${enable_cmdlib+set}" = set; then | |
14607 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14608 | else |
d0191583 JM |
14609 | CMDLIB=no |
14610 | fi | |
8a2fc586 | 14611 | |
ec6a6fbe AK |
14612 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14613 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14614 | |
2a9a80c9 | 14615 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14616 | && LVM2CMD_LIB=-llvm2cmd \ |
14617 | || LVM2CMD_LIB= | |
14618 | ||
93bd259b AK |
14619 | ################################################################################ |
14620 | # Check whether --enable-pkgconfig was given. | |
14621 | if test "${enable_pkgconfig+set}" = set; then | |
14622 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14623 | else | |
14624 | PKGCONFIG=no | |
14625 | fi | |
14626 | ||
2a9a80c9 | 14627 | |
23b059e7 ZK |
14628 | ################################################################################ |
14629 | # Check whether --enable-write_install was given. | |
14630 | if test "${enable_write_install+set}" = set; then | |
14631 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14632 | else | |
14633 | WRITE_INSTALL=no | |
14634 | fi | |
14635 | ||
14636 | ||
d0191583 | 14637 | ################################################################################ |
ec6a6fbe AK |
14638 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14639 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14640 | # Check whether --enable-fsadm was given. |
14641 | if test "${enable_fsadm+set}" = set; then | |
14642 | enableval=$enable_fsadm; FSADM=$enableval | |
14643 | fi | |
8a2fc586 | 14644 | |
ec6a6fbe AK |
14645 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14646 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14647 | |
d0191583 | 14648 | ################################################################################ |
ec6a6fbe AK |
14649 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14650 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14651 | # Check whether --enable-dmeventd was given. |
14652 | if test "${enable_dmeventd+set}" = set; then | |
14653 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14654 | fi | |
ad6254c5 | 14655 | |
ec6a6fbe AK |
14656 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14657 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14658 | |
93bd259b AK |
14659 | BUILD_DMEVENTD=$DMEVENTD |
14660 | ||
2a9a80c9 PR |
14661 | if test x$DMEVENTD = xyes; then |
14662 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14663 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14664 | " >&5 |
ec6a6fbe | 14665 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14666 | " >&2;} |
d0191583 | 14667 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14668 | fi |
14669 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14670 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14671 | " >&5 |
ec6a6fbe | 14672 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14673 | " >&2;} |
14674 | { (exit 1); exit 1; }; } | |
14675 | fi | |
ad6254c5 | 14676 | fi |
7a197a62 | 14677 | |
d0191583 JM |
14678 | if test x$DMEVENTD = xyes; then |
14679 | ||
14680 | cat >>confdefs.h <<\_ACEOF | |
14681 | #define DMEVENTD 1 | |
ad6254c5 AK |
14682 | _ACEOF |
14683 | ||
ad6254c5 | 14684 | fi |
93bd259b AK |
14685 | |
14686 | ################################################################################ | |
14687 | ||
ec6a6fbe AK |
14688 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14689 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14690 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14691 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14692 | else |
14693 | ac_check_lib_save_LIBS=$LIBS | |
14694 | LIBS="-lc $LIBS" | |
14695 | cat >conftest.$ac_ext <<_ACEOF | |
14696 | /* confdefs.h. */ | |
14697 | _ACEOF | |
14698 | cat confdefs.h >>conftest.$ac_ext | |
14699 | cat >>conftest.$ac_ext <<_ACEOF | |
14700 | /* end confdefs.h. */ | |
14701 | ||
14702 | /* Override any GCC internal prototype to avoid an error. | |
14703 | Use char because int might match the return type of a GCC | |
14704 | builtin and then its argument prototype would still apply. */ | |
14705 | #ifdef __cplusplus | |
14706 | extern "C" | |
14707 | #endif | |
14708 | char getline (); | |
14709 | int | |
14710 | main () | |
14711 | { | |
14712 | return getline (); | |
14713 | ; | |
14714 | return 0; | |
14715 | } | |
14716 | _ACEOF | |
14717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14718 | if { (ac_try="$ac_link" | |
14719 | case "(($ac_try" in | |
14720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14721 | *) ac_try_echo=$ac_try;; | |
14722 | esac | |
ec6a6fbe AK |
14723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14724 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14725 | (eval "$ac_link") 2>conftest.er1 |
14726 | ac_status=$? | |
14727 | grep -v '^ *+' conftest.er1 >conftest.err | |
14728 | rm -f conftest.er1 | |
14729 | cat conftest.err >&5 | |
ec6a6fbe | 14730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14731 | (exit $ac_status); } && { |
14732 | test -z "$ac_c_werror_flag" || | |
14733 | test ! -s conftest.err | |
ec6a6fbe AK |
14734 | } && test -s conftest$ac_exeext && { |
14735 | test "$cross_compiling" = yes || | |
14736 | $as_test_x conftest$ac_exeext | |
14737 | }; then | |
93bd259b AK |
14738 | ac_cv_lib_c_getline=yes |
14739 | else | |
ec6a6fbe | 14740 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14741 | sed 's/^/| /' conftest.$ac_ext >&5 |
14742 | ||
14743 | ac_cv_lib_c_getline=no | |
14744 | fi | |
14745 | ||
ec6a6fbe | 14746 | rm -rf conftest.dSYM |
93bd259b AK |
14747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14748 | conftest$ac_exeext conftest.$ac_ext | |
14749 | LIBS=$ac_check_lib_save_LIBS | |
14750 | fi | |
ec6a6fbe AK |
14751 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14752 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14753 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14754 | |
14755 | cat >>confdefs.h <<\_ACEOF | |
14756 | #define HAVE_GETLINE 1 | |
14757 | _ACEOF | |
14758 | ||
14759 | fi | |
14760 | ||
14761 | ||
14762 | ################################################################################ | |
14763 | ||
ec6a6fbe AK |
14764 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14765 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14766 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14767 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14768 | else |
14769 | ac_check_lib_save_LIBS=$LIBS | |
14770 | LIBS="-lc $LIBS" | |
14771 | cat >conftest.$ac_ext <<_ACEOF | |
14772 | /* confdefs.h. */ | |
14773 | _ACEOF | |
14774 | cat confdefs.h >>conftest.$ac_ext | |
14775 | cat >>conftest.$ac_ext <<_ACEOF | |
14776 | /* end confdefs.h. */ | |
14777 | ||
14778 | /* Override any GCC internal prototype to avoid an error. | |
14779 | Use char because int might match the return type of a GCC | |
14780 | builtin and then its argument prototype would still apply. */ | |
14781 | #ifdef __cplusplus | |
14782 | extern "C" | |
14783 | #endif | |
14784 | char canonicalize_file_name (); | |
14785 | int | |
14786 | main () | |
14787 | { | |
14788 | return canonicalize_file_name (); | |
14789 | ; | |
14790 | return 0; | |
14791 | } | |
14792 | _ACEOF | |
14793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14794 | if { (ac_try="$ac_link" | |
14795 | case "(($ac_try" in | |
14796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14797 | *) ac_try_echo=$ac_try;; | |
14798 | esac | |
ec6a6fbe AK |
14799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14800 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14801 | (eval "$ac_link") 2>conftest.er1 |
14802 | ac_status=$? | |
14803 | grep -v '^ *+' conftest.er1 >conftest.err | |
14804 | rm -f conftest.er1 | |
14805 | cat conftest.err >&5 | |
ec6a6fbe | 14806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14807 | (exit $ac_status); } && { |
14808 | test -z "$ac_c_werror_flag" || | |
14809 | test ! -s conftest.err | |
ec6a6fbe AK |
14810 | } && test -s conftest$ac_exeext && { |
14811 | test "$cross_compiling" = yes || | |
14812 | $as_test_x conftest$ac_exeext | |
14813 | }; then | |
93bd259b AK |
14814 | ac_cv_lib_c_canonicalize_file_name=yes |
14815 | else | |
ec6a6fbe | 14816 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14817 | sed 's/^/| /' conftest.$ac_ext >&5 |
14818 | ||
14819 | ac_cv_lib_c_canonicalize_file_name=no | |
14820 | fi | |
14821 | ||
ec6a6fbe | 14822 | rm -rf conftest.dSYM |
93bd259b AK |
14823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14824 | conftest$ac_exeext conftest.$ac_ext | |
14825 | LIBS=$ac_check_lib_save_LIBS | |
14826 | fi | |
ec6a6fbe AK |
14827 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
14828 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14829 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
14830 | |
14831 | cat >>confdefs.h <<\_ACEOF | |
14832 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
14833 | _ACEOF | |
14834 | ||
14835 | fi | |
14836 | ||
14837 | ||
d0191583 JM |
14838 | ################################################################################ |
14839 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
14840 | then exec_prefix=""; | |
14841 | fi; | |
ad6254c5 | 14842 | |
ad6254c5 | 14843 | ################################################################################ |
ec6a6fbe AK |
14844 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
14845 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 14846 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 14847 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14848 | else |
14849 | ac_check_lib_save_LIBS=$LIBS | |
14850 | LIBS="-ldl $LIBS" | |
14851 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14852 | /* confdefs.h. */ |
14853 | _ACEOF | |
14854 | cat confdefs.h >>conftest.$ac_ext | |
14855 | cat >>conftest.$ac_ext <<_ACEOF | |
14856 | /* end confdefs.h. */ | |
14857 | ||
7a197a62 AK |
14858 | /* Override any GCC internal prototype to avoid an error. |
14859 | Use char because int might match the return type of a GCC | |
14860 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14861 | #ifdef __cplusplus |
14862 | extern "C" | |
14863 | #endif | |
ad6254c5 AK |
14864 | char dlopen (); |
14865 | int | |
14866 | main () | |
14867 | { | |
7a197a62 | 14868 | return dlopen (); |
ad6254c5 AK |
14869 | ; |
14870 | return 0; | |
14871 | } | |
14872 | _ACEOF | |
14873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14874 | if { (ac_try="$ac_link" |
14875 | case "(($ac_try" in | |
14876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14877 | *) ac_try_echo=$ac_try;; | |
14878 | esac | |
ec6a6fbe AK |
14879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14880 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14881 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14882 | ac_status=$? |
8a2fc586 AK |
14883 | grep -v '^ *+' conftest.er1 >conftest.err |
14884 | rm -f conftest.er1 | |
14885 | cat conftest.err >&5 | |
ec6a6fbe | 14886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14887 | (exit $ac_status); } && { |
14888 | test -z "$ac_c_werror_flag" || | |
14889 | test ! -s conftest.err | |
ec6a6fbe AK |
14890 | } && test -s conftest$ac_exeext && { |
14891 | test "$cross_compiling" = yes || | |
14892 | $as_test_x conftest$ac_exeext | |
14893 | }; then | |
ad6254c5 AK |
14894 | ac_cv_lib_dl_dlopen=yes |
14895 | else | |
ec6a6fbe | 14896 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14897 | sed 's/^/| /' conftest.$ac_ext >&5 |
14898 | ||
7a197a62 | 14899 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 14900 | fi |
7a197a62 | 14901 | |
ec6a6fbe | 14902 | rm -rf conftest.dSYM |
25fbec5b | 14903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14904 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
14905 | LIBS=$ac_check_lib_save_LIBS |
14906 | fi | |
ec6a6fbe AK |
14907 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
14908 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14909 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 14910 | |
72b2cb61 AK |
14911 | |
14912 | cat >>confdefs.h <<\_ACEOF | |
14913 | #define HAVE_LIBDL 1 | |
14914 | _ACEOF | |
14915 | ||
19a2c6e0 ZK |
14916 | DL_LIBS="-ldl" |
14917 | HAVE_LIBDL=yes | |
ad6254c5 | 14918 | else |
19a2c6e0 ZK |
14919 | |
14920 | DL_LIBS= | |
ad6254c5 AK |
14921 | HAVE_LIBDL=no |
14922 | fi | |
14923 | ||
19a2c6e0 | 14924 | |
ad6254c5 AK |
14925 | ################################################################################ |
14926 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
14927 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
14928 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 14929 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 14930 | " >&5 |
ec6a6fbe | 14931 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
14932 | " >&2;} |
14933 | { (exit 1); exit 1; }; } | |
14934 | fi | |
14935 | ||
f30875db ZK |
14936 | ################################################################################ |
14937 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
14938 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
14939 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
14940 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
14941 | $as_echo_n "(cached) " >&6 | |
14942 | else | |
14943 | ac_check_lib_save_LIBS=$LIBS | |
14944 | LIBS="-lpthread $LIBS" | |
14945 | cat >conftest.$ac_ext <<_ACEOF | |
14946 | /* confdefs.h. */ | |
14947 | _ACEOF | |
14948 | cat confdefs.h >>conftest.$ac_ext | |
14949 | cat >>conftest.$ac_ext <<_ACEOF | |
14950 | /* end confdefs.h. */ | |
14951 | ||
14952 | /* Override any GCC internal prototype to avoid an error. | |
14953 | Use char because int might match the return type of a GCC | |
14954 | builtin and then its argument prototype would still apply. */ | |
14955 | #ifdef __cplusplus | |
14956 | extern "C" | |
14957 | #endif | |
14958 | char pthread_mutex_lock (); | |
14959 | int | |
14960 | main () | |
14961 | { | |
14962 | return pthread_mutex_lock (); | |
14963 | ; | |
14964 | return 0; | |
14965 | } | |
14966 | _ACEOF | |
14967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14968 | if { (ac_try="$ac_link" | |
14969 | case "(($ac_try" in | |
14970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14971 | *) ac_try_echo=$ac_try;; | |
14972 | esac | |
14973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14974 | $as_echo "$ac_try_echo") >&5 | |
14975 | (eval "$ac_link") 2>conftest.er1 | |
14976 | ac_status=$? | |
14977 | grep -v '^ *+' conftest.er1 >conftest.err | |
14978 | rm -f conftest.er1 | |
14979 | cat conftest.err >&5 | |
14980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14981 | (exit $ac_status); } && { | |
14982 | test -z "$ac_c_werror_flag" || | |
14983 | test ! -s conftest.err | |
14984 | } && test -s conftest$ac_exeext && { | |
14985 | test "$cross_compiling" = yes || | |
14986 | $as_test_x conftest$ac_exeext | |
14987 | }; then | |
14988 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
14989 | else | |
14990 | $as_echo "$as_me: failed program was:" >&5 | |
14991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14992 | ||
14993 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
14994 | fi | |
14995 | ||
14996 | rm -rf conftest.dSYM | |
14997 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14998 | conftest$ac_exeext conftest.$ac_ext | |
14999 | LIBS=$ac_check_lib_save_LIBS | |
15000 | fi | |
15001 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
15002 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
15003 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
15004 | PTHREAD_LIBS="-lpthread" | |
15005 | else | |
15006 | hard_bailout | |
15007 | fi | |
15008 | ||
15009 | fi | |
15010 | ||
d0191583 | 15011 | ################################################################################ |
ec6a6fbe AK |
15012 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
15013 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
15014 | # Check whether --enable-selinux was given. |
15015 | if test "${enable_selinux+set}" = set; then | |
15016 | enableval=$enable_selinux; SELINUX=$enableval | |
15017 | fi | |
15018 | ||
ec6a6fbe AK |
15019 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
15020 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 15021 | |
ad6254c5 AK |
15022 | ################################################################################ |
15023 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
15024 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
15025 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 15026 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 15027 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
15028 | else |
15029 | ac_check_lib_save_LIBS=$LIBS | |
15030 | LIBS="-lsepol $LIBS" | |
15031 | cat >conftest.$ac_ext <<_ACEOF | |
15032 | /* confdefs.h. */ | |
15033 | _ACEOF | |
15034 | cat confdefs.h >>conftest.$ac_ext | |
15035 | cat >>conftest.$ac_ext <<_ACEOF | |
15036 | /* end confdefs.h. */ | |
15037 | ||
7a197a62 AK |
15038 | /* Override any GCC internal prototype to avoid an error. |
15039 | Use char because int might match the return type of a GCC | |
15040 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
15041 | #ifdef __cplusplus |
15042 | extern "C" | |
15043 | #endif | |
8a2fc586 AK |
15044 | char sepol_check_context (); |
15045 | int | |
15046 | main () | |
15047 | { | |
7a197a62 | 15048 | return sepol_check_context (); |
8a2fc586 AK |
15049 | ; |
15050 | return 0; | |
15051 | } | |
15052 | _ACEOF | |
15053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15054 | if { (ac_try="$ac_link" |
15055 | case "(($ac_try" in | |
15056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15057 | *) ac_try_echo=$ac_try;; | |
15058 | esac | |
ec6a6fbe AK |
15059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15060 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15061 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
15062 | ac_status=$? |
15063 | grep -v '^ *+' conftest.er1 >conftest.err | |
15064 | rm -f conftest.er1 | |
15065 | cat conftest.err >&5 | |
ec6a6fbe | 15066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15067 | (exit $ac_status); } && { |
15068 | test -z "$ac_c_werror_flag" || | |
15069 | test ! -s conftest.err | |
ec6a6fbe AK |
15070 | } && test -s conftest$ac_exeext && { |
15071 | test "$cross_compiling" = yes || | |
15072 | $as_test_x conftest$ac_exeext | |
15073 | }; then | |
8a2fc586 AK |
15074 | ac_cv_lib_sepol_sepol_check_context=yes |
15075 | else | |
ec6a6fbe | 15076 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
15077 | sed 's/^/| /' conftest.$ac_ext >&5 |
15078 | ||
7a197a62 | 15079 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 15080 | fi |
7a197a62 | 15081 | |
ec6a6fbe | 15082 | rm -rf conftest.dSYM |
25fbec5b | 15083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
15084 | conftest$ac_exeext conftest.$ac_ext |
15085 | LIBS=$ac_check_lib_save_LIBS | |
15086 | fi | |
ec6a6fbe AK |
15087 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
15088 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
15089 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 15090 | |
d0191583 JM |
15091 | |
15092 | cat >>confdefs.h <<\_ACEOF | |
15093 | #define HAVE_SEPOL 1 | |
15094 | _ACEOF | |
15095 | ||
f8f6ec92 ZK |
15096 | SELINUX_LIBS="-lsepol" |
15097 | fi | |
15098 | ||
8a2fc586 | 15099 | |
ec6a6fbe AK |
15100 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
15101 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 15102 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 15103 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15104 | else |
15105 | ac_check_lib_save_LIBS=$LIBS | |
15106 | LIBS="-lselinux $LIBS" | |
15107 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15108 | /* confdefs.h. */ |
15109 | _ACEOF | |
15110 | cat confdefs.h >>conftest.$ac_ext | |
15111 | cat >>conftest.$ac_ext <<_ACEOF | |
15112 | /* end confdefs.h. */ | |
15113 | ||
7a197a62 AK |
15114 | /* Override any GCC internal prototype to avoid an error. |
15115 | Use char because int might match the return type of a GCC | |
15116 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15117 | #ifdef __cplusplus |
15118 | extern "C" | |
15119 | #endif | |
ad6254c5 AK |
15120 | char is_selinux_enabled (); |
15121 | int | |
15122 | main () | |
15123 | { | |
7a197a62 | 15124 | return is_selinux_enabled (); |
ad6254c5 AK |
15125 | ; |
15126 | return 0; | |
15127 | } | |
15128 | _ACEOF | |
15129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15130 | if { (ac_try="$ac_link" |
15131 | case "(($ac_try" in | |
15132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15133 | *) ac_try_echo=$ac_try;; | |
15134 | esac | |
ec6a6fbe AK |
15135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15136 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15137 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15138 | ac_status=$? |
8a2fc586 AK |
15139 | grep -v '^ *+' conftest.er1 >conftest.err |
15140 | rm -f conftest.er1 | |
15141 | cat conftest.err >&5 | |
ec6a6fbe | 15142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15143 | (exit $ac_status); } && { |
15144 | test -z "$ac_c_werror_flag" || | |
15145 | test ! -s conftest.err | |
ec6a6fbe AK |
15146 | } && test -s conftest$ac_exeext && { |
15147 | test "$cross_compiling" = yes || | |
15148 | $as_test_x conftest$ac_exeext | |
15149 | }; then | |
ad6254c5 AK |
15150 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15151 | else | |
ec6a6fbe | 15152 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15153 | sed 's/^/| /' conftest.$ac_ext >&5 |
15154 | ||
7a197a62 | 15155 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15156 | fi |
7a197a62 | 15157 | |
ec6a6fbe | 15158 | rm -rf conftest.dSYM |
25fbec5b | 15159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15160 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15161 | LIBS=$ac_check_lib_save_LIBS |
15162 | fi | |
ec6a6fbe AK |
15163 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15164 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15165 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15166 | |
72b2cb61 | 15167 | |
f8f6ec92 ZK |
15168 | for ac_header in selinux/selinux.h |
15169 | do | |
15170 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15172 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15173 | $as_echo_n "checking for $ac_header... " >&6; } | |
15174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15175 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15176 | fi |
15177 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15178 | $as_echo "$as_val"'` | |
15179 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15180 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15181 | else |
f8f6ec92 ZK |
15182 | # Is the header compilable? |
15183 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15184 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
15185 | cat >conftest.$ac_ext <<_ACEOF |
15186 | /* confdefs.h. */ | |
15187 | _ACEOF | |
15188 | cat confdefs.h >>conftest.$ac_ext | |
15189 | cat >>conftest.$ac_ext <<_ACEOF | |
15190 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
15191 | $ac_includes_default |
15192 | #include <$ac_header> | |
66e941e8 | 15193 | _ACEOF |
f8f6ec92 ZK |
15194 | rm -f conftest.$ac_objext |
15195 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15196 | case "(($ac_try" in |
15197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15198 | *) ac_try_echo=$ac_try;; | |
15199 | esac | |
ec6a6fbe AK |
15200 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15201 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15202 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15203 | ac_status=$? |
15204 | grep -v '^ *+' conftest.er1 >conftest.err | |
15205 | rm -f conftest.er1 | |
15206 | cat conftest.err >&5 | |
ec6a6fbe | 15207 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15208 | (exit $ac_status); } && { |
15209 | test -z "$ac_c_werror_flag" || | |
15210 | test ! -s conftest.err | |
f8f6ec92 ZK |
15211 | } && test -s conftest.$ac_objext; then |
15212 | ac_header_compiler=yes | |
15213 | else | |
15214 | $as_echo "$as_me: failed program was:" >&5 | |
15215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15216 | ||
15217 | ac_header_compiler=no | |
15218 | fi | |
15219 | ||
15220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15221 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15222 | $as_echo "$ac_header_compiler" >&6; } | |
15223 | ||
15224 | # Is the header present? | |
15225 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15226 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15227 | cat >conftest.$ac_ext <<_ACEOF | |
15228 | /* confdefs.h. */ | |
15229 | _ACEOF | |
15230 | cat confdefs.h >>conftest.$ac_ext | |
15231 | cat >>conftest.$ac_ext <<_ACEOF | |
15232 | /* end confdefs.h. */ | |
15233 | #include <$ac_header> | |
15234 | _ACEOF | |
15235 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15236 | case "(($ac_try" in | |
15237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15238 | *) ac_try_echo=$ac_try;; | |
15239 | esac | |
15240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15241 | $as_echo "$ac_try_echo") >&5 | |
15242 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15243 | ac_status=$? | |
15244 | grep -v '^ *+' conftest.er1 >conftest.err | |
15245 | rm -f conftest.er1 | |
15246 | cat conftest.err >&5 | |
15247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15248 | (exit $ac_status); } >/dev/null && { | |
15249 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15250 | test ! -s conftest.err | |
ec6a6fbe | 15251 | }; then |
f8f6ec92 | 15252 | ac_header_preproc=yes |
66e941e8 | 15253 | else |
ec6a6fbe | 15254 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15255 | sed 's/^/| /' conftest.$ac_ext >&5 |
15256 | ||
f8f6ec92 ZK |
15257 | ac_header_preproc=no |
15258 | fi | |
15259 | ||
15260 | rm -f conftest.err conftest.$ac_ext | |
15261 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15262 | $as_echo "$ac_header_preproc" >&6; } | |
15263 | ||
15264 | # So? What about this header? | |
15265 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15266 | yes:no: ) | |
15267 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15268 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15269 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15270 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15271 | ac_header_preproc=yes | |
15272 | ;; | |
15273 | no:yes:* ) | |
15274 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15275 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15276 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15277 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15278 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15279 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15280 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15281 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15282 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15283 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15284 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15285 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15286 | |
f8f6ec92 ZK |
15287 | ;; |
15288 | esac | |
15289 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15290 | $as_echo_n "checking for $ac_header... " >&6; } | |
15291 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15292 | $as_echo_n "(cached) " >&6 | |
15293 | else | |
15294 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15295 | fi |
f8f6ec92 ZK |
15296 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15297 | $as_echo "$as_val"'` | |
15298 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15299 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15300 | |
66e941e8 | 15301 | fi |
f8f6ec92 ZK |
15302 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15303 | $as_echo "$as_val"'` | |
15304 | if test "x$as_val" = x""yes; then | |
15305 | cat >>confdefs.h <<_ACEOF | |
15306 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15307 | _ACEOF | |
15308 | ||
66e941e8 | 15309 | else |
f8f6ec92 | 15310 | hard_bailout |
66e941e8 | 15311 | fi |
f8f6ec92 ZK |
15312 | |
15313 | done | |
15314 | ||
15315 | ||
15316 | cat >>confdefs.h <<\_ACEOF | |
15317 | #define HAVE_SELINUX 1 | |
15318 | _ACEOF | |
15319 | ||
15320 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15321 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15322 | HAVE_SELINUX=yes |
15323 | else | |
15324 | ||
15325 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15326 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15327 | SELINUX_LIBS= | |
f7f0854e | 15328 | SELINUX_PC= |
f8f6ec92 | 15329 | HAVE_SELINUX=no |
66e941e8 JM |
15330 | fi |
15331 | ||
ad6254c5 AK |
15332 | fi |
15333 | ||
8b1a3214 AK |
15334 | ################################################################################ |
15335 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15336 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15337 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15338 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15339 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15340 | else |
15341 | ac_check_lib_save_LIBS=$LIBS | |
15342 | LIBS="-lrt $LIBS" | |
15343 | cat >conftest.$ac_ext <<_ACEOF | |
15344 | /* confdefs.h. */ | |
15345 | _ACEOF | |
15346 | cat confdefs.h >>conftest.$ac_ext | |
15347 | cat >>conftest.$ac_ext <<_ACEOF | |
15348 | /* end confdefs.h. */ | |
15349 | ||
7a197a62 AK |
15350 | /* Override any GCC internal prototype to avoid an error. |
15351 | Use char because int might match the return type of a GCC | |
15352 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15353 | #ifdef __cplusplus |
15354 | extern "C" | |
15355 | #endif | |
8b1a3214 AK |
15356 | char clock_gettime (); |
15357 | int | |
15358 | main () | |
15359 | { | |
7a197a62 | 15360 | return clock_gettime (); |
8b1a3214 AK |
15361 | ; |
15362 | return 0; | |
15363 | } | |
15364 | _ACEOF | |
15365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15366 | if { (ac_try="$ac_link" |
15367 | case "(($ac_try" in | |
15368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15369 | *) ac_try_echo=$ac_try;; | |
15370 | esac | |
ec6a6fbe AK |
15371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15372 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15373 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15374 | ac_status=$? |
15375 | grep -v '^ *+' conftest.er1 >conftest.err | |
15376 | rm -f conftest.er1 | |
15377 | cat conftest.err >&5 | |
ec6a6fbe | 15378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15379 | (exit $ac_status); } && { |
15380 | test -z "$ac_c_werror_flag" || | |
15381 | test ! -s conftest.err | |
ec6a6fbe AK |
15382 | } && test -s conftest$ac_exeext && { |
15383 | test "$cross_compiling" = yes || | |
15384 | $as_test_x conftest$ac_exeext | |
15385 | }; then | |
8b1a3214 AK |
15386 | ac_cv_lib_rt_clock_gettime=yes |
15387 | else | |
ec6a6fbe | 15388 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15389 | sed 's/^/| /' conftest.$ac_ext >&5 |
15390 | ||
7a197a62 | 15391 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15392 | fi |
7a197a62 | 15393 | |
ec6a6fbe | 15394 | rm -rf conftest.dSYM |
25fbec5b | 15395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15396 | conftest$ac_exeext conftest.$ac_ext |
15397 | LIBS=$ac_check_lib_save_LIBS | |
15398 | fi | |
ec6a6fbe AK |
15399 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15400 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15401 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15402 | HAVE_REALTIME=yes |
15403 | else | |
15404 | HAVE_REALTIME=no | |
15405 | fi | |
15406 | ||
8b1a3214 AK |
15407 | |
15408 | if test x$HAVE_REALTIME = xyes; then | |
15409 | ||
15410 | cat >>confdefs.h <<\_ACEOF | |
15411 | #define HAVE_REALTIME 1 | |
15412 | _ACEOF | |
15413 | ||
15414 | LIBS="-lrt $LIBS" | |
15415 | else | |
ec6a6fbe AK |
15416 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15417 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15418 | fi |
15419 | fi | |
15420 | ||
ad6254c5 AK |
15421 | ################################################################################ |
15422 | ||
15423 | for ac_header in getopt.h | |
15424 | do | |
ec6a6fbe | 15425 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15426 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15427 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15428 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15429 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15430 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15431 | fi |
ec6a6fbe AK |
15432 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15433 | $as_echo "$as_val"'` | |
15434 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15435 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15436 | else |
15437 | # Is the header compilable? | |
ec6a6fbe AK |
15438 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15439 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15440 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15441 | /* confdefs.h. */ |
15442 | _ACEOF | |
15443 | cat confdefs.h >>conftest.$ac_ext | |
15444 | cat >>conftest.$ac_ext <<_ACEOF | |
15445 | /* end confdefs.h. */ | |
15446 | $ac_includes_default | |
15447 | #include <$ac_header> | |
15448 | _ACEOF | |
15449 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15450 | if { (ac_try="$ac_compile" |
15451 | case "(($ac_try" in | |
15452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15453 | *) ac_try_echo=$ac_try;; | |
15454 | esac | |
ec6a6fbe AK |
15455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15456 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15457 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15458 | ac_status=$? |
8a2fc586 AK |
15459 | grep -v '^ *+' conftest.er1 >conftest.err |
15460 | rm -f conftest.er1 | |
15461 | cat conftest.err >&5 | |
ec6a6fbe | 15462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15463 | (exit $ac_status); } && { |
15464 | test -z "$ac_c_werror_flag" || | |
15465 | test ! -s conftest.err | |
15466 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15467 | ac_header_compiler=yes |
15468 | else | |
ec6a6fbe | 15469 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15470 | sed 's/^/| /' conftest.$ac_ext >&5 |
15471 | ||
7a197a62 | 15472 | ac_header_compiler=no |
ad6254c5 | 15473 | fi |
7a197a62 AK |
15474 | |
15475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15476 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15477 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15478 | |
15479 | # Is the header present? | |
ec6a6fbe AK |
15480 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15481 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15482 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15483 | /* confdefs.h. */ |
15484 | _ACEOF | |
15485 | cat confdefs.h >>conftest.$ac_ext | |
15486 | cat >>conftest.$ac_ext <<_ACEOF | |
15487 | /* end confdefs.h. */ | |
15488 | #include <$ac_header> | |
15489 | _ACEOF | |
7a197a62 AK |
15490 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15491 | case "(($ac_try" in | |
15492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15493 | *) ac_try_echo=$ac_try;; | |
15494 | esac | |
ec6a6fbe AK |
15495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15496 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15497 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15498 | ac_status=$? |
15499 | grep -v '^ *+' conftest.er1 >conftest.err | |
15500 | rm -f conftest.er1 | |
15501 | cat conftest.err >&5 | |
ec6a6fbe | 15502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15503 | (exit $ac_status); } >/dev/null && { |
15504 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15505 | test ! -s conftest.err | |
15506 | }; then | |
ad6254c5 AK |
15507 | ac_header_preproc=yes |
15508 | else | |
ec6a6fbe | 15509 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15510 | sed 's/^/| /' conftest.$ac_ext >&5 |
15511 | ||
15512 | ac_header_preproc=no | |
15513 | fi | |
7a197a62 | 15514 | |
ad6254c5 | 15515 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15516 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15517 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15518 | |
15519 | # So? What about this header? | |
8a2fc586 AK |
15520 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15521 | yes:no: ) | |
ec6a6fbe AK |
15522 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15523 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15525 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15526 | ac_header_preproc=yes |
ad6254c5 | 15527 | ;; |
8a2fc586 | 15528 | no:yes:* ) |
ec6a6fbe AK |
15529 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15530 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15532 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15534 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15536 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15538 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15540 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15541 | |
ad6254c5 AK |
15542 | ;; |
15543 | esac | |
ec6a6fbe AK |
15544 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15545 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15547 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15548 | else |
8a2fc586 | 15549 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15550 | fi |
ec6a6fbe AK |
15551 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15552 | $as_echo "$as_val"'` | |
15553 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15554 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15555 | |
15556 | fi | |
ec6a6fbe AK |
15557 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15558 | $as_echo "$as_val"'` | |
15559 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15560 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15561 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15562 | _ACEOF |
72b2cb61 AK |
15563 | |
15564 | cat >>confdefs.h <<\_ACEOF | |
15565 | #define HAVE_GETOPTLONG 1 | |
15566 | _ACEOF | |
15567 | ||
ad6254c5 AK |
15568 | fi |
15569 | ||
15570 | done | |
15571 | ||
15572 | ||
15573 | ################################################################################ | |
06e459df | 15574 | if test x$READLINE != xno; then |
539f4a77 ZK |
15575 | lvm_saved_libs=$LIBS |
15576 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15577 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15578 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15579 | $as_echo_n "(cached) " >&6 | |
15580 | else | |
15581 | ac_func_search_save_LIBS=$LIBS | |
15582 | cat >conftest.$ac_ext <<_ACEOF | |
15583 | /* confdefs.h. */ | |
15584 | _ACEOF | |
15585 | cat confdefs.h >>conftest.$ac_ext | |
15586 | cat >>conftest.$ac_ext <<_ACEOF | |
15587 | /* end confdefs.h. */ | |
bc1024f8 | 15588 | |
539f4a77 ZK |
15589 | /* Override any GCC internal prototype to avoid an error. |
15590 | Use char because int might match the return type of a GCC | |
15591 | builtin and then its argument prototype would still apply. */ | |
15592 | #ifdef __cplusplus | |
15593 | extern "C" | |
15594 | #endif | |
15595 | char tgetent (); | |
15596 | int | |
15597 | main () | |
15598 | { | |
15599 | return tgetent (); | |
15600 | ; | |
15601 | return 0; | |
15602 | } | |
15603 | _ACEOF | |
15604 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15605 | if test -z "$ac_lib"; then | |
15606 | ac_res="none required" | |
15607 | else | |
15608 | ac_res=-l$ac_lib | |
15609 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15610 | fi | |
15611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15612 | if { (ac_try="$ac_link" | |
15613 | case "(($ac_try" in | |
15614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15615 | *) ac_try_echo=$ac_try;; | |
15616 | esac | |
15617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15618 | $as_echo "$ac_try_echo") >&5 | |
15619 | (eval "$ac_link") 2>conftest.er1 | |
15620 | ac_status=$? | |
15621 | grep -v '^ *+' conftest.er1 >conftest.err | |
15622 | rm -f conftest.er1 | |
15623 | cat conftest.err >&5 | |
15624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15625 | (exit $ac_status); } && { | |
15626 | test -z "$ac_c_werror_flag" || | |
15627 | test ! -s conftest.err | |
15628 | } && test -s conftest$ac_exeext && { | |
15629 | test "$cross_compiling" = yes || | |
15630 | $as_test_x conftest$ac_exeext | |
15631 | }; then | |
15632 | ac_cv_search_tgetent=$ac_res | |
15633 | else | |
15634 | $as_echo "$as_me: failed program was:" >&5 | |
15635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15636 | ||
15637 | ||
15638 | fi | |
15639 | ||
15640 | rm -rf conftest.dSYM | |
15641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15642 | conftest$ac_exeext | |
15643 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15644 | break | |
15645 | fi | |
15646 | done | |
15647 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15648 | : | |
15649 | else | |
15650 | ac_cv_search_tgetent=no | |
15651 | fi | |
15652 | rm conftest.$ac_ext | |
15653 | LIBS=$ac_func_search_save_LIBS | |
15654 | fi | |
15655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15656 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15657 | ac_res=$ac_cv_search_tgetent | |
15658 | if test "$ac_res" != no; then | |
15659 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15660 | READLINE_LIBS=$ac_cv_search_tgetent | |
15661 | else | |
15662 | ||
15663 | if test "$READLINE" = yes; then | |
15664 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15665 | --enable-readline option (which is enabled by default). Either disable readline | |
15666 | support with --disable-readline or download and install termcap from: | |
15667 | ftp.gnu.org/gnu/termcap | |
15668 | Note: if you are using precompiled packages you will also need the development | |
15669 | package as well (which may be called termcap-devel or something similar). | |
15670 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15671 | not found either - but you could try installing that as well." >&5 | |
15672 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15673 | --enable-readline option (which is enabled by default). Either disable readline | |
15674 | support with --disable-readline or download and install termcap from: | |
15675 | ftp.gnu.org/gnu/termcap | |
15676 | Note: if you are using precompiled packages you will also need the development | |
15677 | package as well (which may be called termcap-devel or something similar). | |
15678 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15679 | not found either - but you could try installing that as well." >&2;} | |
15680 | { (exit 1); exit 1; }; } | |
15681 | fi | |
15682 | fi | |
15683 | ||
15684 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15685 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15686 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15687 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15688 | else |
15689 | ac_check_lib_save_LIBS=$LIBS | |
15690 | LIBS="-lreadline $LIBS" | |
15691 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15692 | /* confdefs.h. */ |
15693 | _ACEOF | |
15694 | cat confdefs.h >>conftest.$ac_ext | |
15695 | cat >>conftest.$ac_ext <<_ACEOF | |
15696 | /* end confdefs.h. */ | |
15697 | ||
7a197a62 AK |
15698 | /* Override any GCC internal prototype to avoid an error. |
15699 | Use char because int might match the return type of a GCC | |
15700 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15701 | #ifdef __cplusplus |
15702 | extern "C" | |
15703 | #endif | |
ad6254c5 AK |
15704 | char readline (); |
15705 | int | |
15706 | main () | |
15707 | { | |
7a197a62 | 15708 | return readline (); |
ad6254c5 AK |
15709 | ; |
15710 | return 0; | |
15711 | } | |
15712 | _ACEOF | |
15713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15714 | if { (ac_try="$ac_link" |
15715 | case "(($ac_try" in | |
15716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15717 | *) ac_try_echo=$ac_try;; | |
15718 | esac | |
ec6a6fbe AK |
15719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15720 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15721 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15722 | ac_status=$? |
8a2fc586 AK |
15723 | grep -v '^ *+' conftest.er1 >conftest.err |
15724 | rm -f conftest.er1 | |
15725 | cat conftest.err >&5 | |
ec6a6fbe | 15726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15727 | (exit $ac_status); } && { |
15728 | test -z "$ac_c_werror_flag" || | |
15729 | test ! -s conftest.err | |
ec6a6fbe AK |
15730 | } && test -s conftest$ac_exeext && { |
15731 | test "$cross_compiling" = yes || | |
15732 | $as_test_x conftest$ac_exeext | |
15733 | }; then | |
ad6254c5 AK |
15734 | ac_cv_lib_readline_readline=yes |
15735 | else | |
ec6a6fbe | 15736 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15737 | sed 's/^/| /' conftest.$ac_ext >&5 |
15738 | ||
7a197a62 | 15739 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15740 | fi |
7a197a62 | 15741 | |
ec6a6fbe | 15742 | rm -rf conftest.dSYM |
25fbec5b | 15743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15744 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15745 | LIBS=$ac_check_lib_save_LIBS |
15746 | fi | |
ec6a6fbe AK |
15747 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15748 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15749 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15750 | |
15751 | ||
15752 | cat >>confdefs.h <<\_ACEOF | |
15753 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15754 | _ACEOF |
15755 | ||
539f4a77 ZK |
15756 | LIBS=$lvm_saved_libs |
15757 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15758 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15759 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15760 | $as_echo_n "(cached) " >&6 | |
15761 | else | |
15762 | ac_check_lib_save_LIBS=$LIBS | |
15763 | LIBS="-lreadline $LIBS" | |
15764 | cat >conftest.$ac_ext <<_ACEOF | |
15765 | /* confdefs.h. */ | |
15766 | _ACEOF | |
15767 | cat confdefs.h >>conftest.$ac_ext | |
15768 | cat >>conftest.$ac_ext <<_ACEOF | |
15769 | /* end confdefs.h. */ | |
bc1024f8 | 15770 | |
539f4a77 ZK |
15771 | /* Override any GCC internal prototype to avoid an error. |
15772 | Use char because int might match the return type of a GCC | |
15773 | builtin and then its argument prototype would still apply. */ | |
15774 | #ifdef __cplusplus | |
15775 | extern "C" | |
15776 | #endif | |
15777 | char rl_line_buffer (); | |
15778 | int | |
15779 | main () | |
15780 | { | |
15781 | return rl_line_buffer (); | |
15782 | ; | |
15783 | return 0; | |
15784 | } | |
15785 | _ACEOF | |
15786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15787 | if { (ac_try="$ac_link" | |
15788 | case "(($ac_try" in | |
15789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15790 | *) ac_try_echo=$ac_try;; | |
15791 | esac | |
15792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15793 | $as_echo "$ac_try_echo") >&5 | |
15794 | (eval "$ac_link") 2>conftest.er1 | |
15795 | ac_status=$? | |
15796 | grep -v '^ *+' conftest.er1 >conftest.err | |
15797 | rm -f conftest.er1 | |
15798 | cat conftest.err >&5 | |
15799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15800 | (exit $ac_status); } && { | |
15801 | test -z "$ac_c_werror_flag" || | |
15802 | test ! -s conftest.err | |
15803 | } && test -s conftest$ac_exeext && { | |
15804 | test "$cross_compiling" = yes || | |
15805 | $as_test_x conftest$ac_exeext | |
15806 | }; then | |
15807 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 15808 | else |
539f4a77 ZK |
15809 | $as_echo "$as_me: failed program was:" >&5 |
15810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15811 | ||
15812 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
15813 | fi |
15814 | ||
539f4a77 ZK |
15815 | rm -rf conftest.dSYM |
15816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15817 | conftest$ac_exeext conftest.$ac_ext | |
15818 | LIBS=$ac_check_lib_save_LIBS | |
15819 | fi | |
15820 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
15821 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15822 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
15823 | READLINE_LIBS="-lreadline" | |
15824 | else | |
15825 | ||
15826 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
15827 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
15828 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
15829 | ||
15830 | fi | |
15831 | ||
15832 | else | |
15833 | ||
15834 | READLINE_LIBS= | |
15835 | if test "$READLINE" = yes; then | |
15836 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
15837 | --enable-readline option (which is enabled by default). Either disable readline |
15838 | support with --disable-readline or download and install readline from: | |
15839 | ftp.gnu.org/gnu/readline | |
15840 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15841 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 15842 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
15843 | --enable-readline option (which is enabled by default). Either disable readline |
15844 | support with --disable-readline or download and install readline from: | |
15845 | ftp.gnu.org/gnu/readline | |
15846 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15847 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 15848 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
15849 | fi |
15850 | fi | |
15851 | ||
15852 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
15853 | |
15854 | for ac_func in rl_completion_matches | |
15855 | do | |
ec6a6fbe AK |
15856 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15857 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15858 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 15859 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15860 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15861 | else |
15862 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15863 | /* confdefs.h. */ |
15864 | _ACEOF | |
15865 | cat confdefs.h >>conftest.$ac_ext | |
15866 | cat >>conftest.$ac_ext <<_ACEOF | |
15867 | /* end confdefs.h. */ | |
bc1024f8 | 15868 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 15869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 15870 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 15871 | |
ad6254c5 | 15872 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 15873 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
15874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
15875 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 15876 | |
ad6254c5 AK |
15877 | #ifdef __STDC__ |
15878 | # include <limits.h> | |
15879 | #else | |
15880 | # include <assert.h> | |
15881 | #endif | |
8a2fc586 | 15882 | |
bc1024f8 | 15883 | #undef $ac_func |
8a2fc586 | 15884 | |
7a197a62 AK |
15885 | /* Override any GCC internal prototype to avoid an error. |
15886 | Use char because int might match the return type of a GCC | |
15887 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15888 | #ifdef __cplusplus |
15889 | extern "C" | |
ad6254c5 | 15890 | #endif |
bc1024f8 | 15891 | char $ac_func (); |
ad6254c5 AK |
15892 | /* The GNU C library defines this for functions which it implements |
15893 | to always fail with ENOSYS. Some functions are actually named | |
15894 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 15895 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 15896 | choke me |
ad6254c5 AK |
15897 | #endif |
15898 | ||
15899 | int | |
15900 | main () | |
15901 | { | |
bc1024f8 | 15902 | return $ac_func (); |
ad6254c5 AK |
15903 | ; |
15904 | return 0; | |
15905 | } | |
15906 | _ACEOF | |
15907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15908 | if { (ac_try="$ac_link" |
15909 | case "(($ac_try" in | |
15910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15911 | *) ac_try_echo=$ac_try;; | |
15912 | esac | |
ec6a6fbe AK |
15913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15914 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15915 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15916 | ac_status=$? |
8a2fc586 AK |
15917 | grep -v '^ *+' conftest.er1 >conftest.err |
15918 | rm -f conftest.er1 | |
15919 | cat conftest.err >&5 | |
ec6a6fbe | 15920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15921 | (exit $ac_status); } && { |
15922 | test -z "$ac_c_werror_flag" || | |
15923 | test ! -s conftest.err | |
ec6a6fbe AK |
15924 | } && test -s conftest$ac_exeext && { |
15925 | test "$cross_compiling" = yes || | |
15926 | $as_test_x conftest$ac_exeext | |
15927 | }; then | |
bc1024f8 | 15928 | eval "$as_ac_var=yes" |
ad6254c5 | 15929 | else |
ec6a6fbe | 15930 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15931 | sed 's/^/| /' conftest.$ac_ext >&5 |
15932 | ||
bc1024f8 | 15933 | eval "$as_ac_var=no" |
ad6254c5 | 15934 | fi |
7a197a62 | 15935 | |
ec6a6fbe | 15936 | rm -rf conftest.dSYM |
25fbec5b | 15937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15938 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 15939 | fi |
ec6a6fbe AK |
15940 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15941 | $as_echo "$as_val"'` | |
15942 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15943 | $as_echo "$ac_res" >&6; } | |
15944 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15945 | $as_echo "$as_val"'` | |
15946 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 15947 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15948 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
15949 | _ACEOF |
15950 | ||
15951 | fi | |
bc1024f8 | 15952 | done |
ad6254c5 | 15953 | |
539f4a77 | 15954 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
15955 | fi |
15956 | ||
15957 | ################################################################################ | |
ec6a6fbe AK |
15958 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
15959 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 15960 | # Check whether --enable-nls was given. |
ad6254c5 | 15961 | if test "${enable_nls+set}" = set; then |
7a197a62 | 15962 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
15963 | else |
15964 | INTL=no | |
7a197a62 AK |
15965 | fi |
15966 | ||
ec6a6fbe AK |
15967 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
15968 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
15969 | |
15970 | if test x$INTL = xyes; then | |
93bd259b | 15971 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
15972 | INTL_PACKAGE="lvm2" |
15973 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15974 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
15975 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15976 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 15977 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 15978 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15979 | else |
15980 | case $MSGFMT in | |
15981 | [\\/]* | ?:[\\/]*) | |
15982 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15983 | ;; | |
15984 | *) | |
15985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15986 | for as_dir in $PATH | |
15987 | do | |
15988 | IFS=$as_save_IFS | |
15989 | test -z "$as_dir" && as_dir=. | |
15990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 15992 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15993 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
15994 | break 2 |
15995 | fi | |
15996 | done | |
15997 | done | |
7a197a62 | 15998 | IFS=$as_save_IFS |
ad6254c5 AK |
15999 | |
16000 | ;; | |
16001 | esac | |
16002 | fi | |
16003 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 16004 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
16005 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
16006 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 16007 | else |
ec6a6fbe AK |
16008 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16009 | $as_echo "no" >&6; } | |
ad6254c5 AK |
16010 | fi |
16011 | ||
7a197a62 | 16012 | |
ad6254c5 | 16013 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 16014 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 16015 | " >&5 |
ec6a6fbe | 16016 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
16017 | " >&2;} |
16018 | { (exit 1); exit 1; }; } | |
16019 | fi; | |
16020 | ||
16021 | ||
7a197a62 | 16022 | # Check whether --with-localedir was given. |
ad6254c5 | 16023 | if test "${with_localedir+set}" = set; then |
71082be4 | 16024 | withval=$with_localedir; LOCALEDIR=$withval |
ad6254c5 | 16025 | else |
71082be4 | 16026 | LOCALEDIR='${prefix}/share/locale' |
7a197a62 AK |
16027 | fi |
16028 | ||
ad6254c5 AK |
16029 | fi |
16030 | ||
16031 | ################################################################################ | |
16032 | ||
7a197a62 | 16033 | # Check whether --with-confdir was given. |
ad6254c5 | 16034 | if test "${with_confdir+set}" = set; then |
71082be4 | 16035 | withval=$with_confdir; CONFDIR=$withval |
ad6254c5 | 16036 | else |
71082be4 | 16037 | CONFDIR="/etc" |
7a197a62 AK |
16038 | fi |
16039 | ||
ad6254c5 AK |
16040 | |
16041 | ||
7a197a62 | 16042 | # Check whether --with-staticdir was given. |
ad6254c5 | 16043 | if test "${with_staticdir+set}" = set; then |
71082be4 | 16044 | withval=$with_staticdir; STATICDIR=$withval |
ad6254c5 | 16045 | else |
71082be4 | 16046 | STATICDIR='${exec_prefix}/sbin' |
7a197a62 | 16047 | fi |
ad6254c5 | 16048 | |
33f732c5 | 16049 | |
7a197a62 | 16050 | |
68f2de6d AK |
16051 | # Check whether --with-usrlibdir was given. |
16052 | if test "${with_usrlibdir+set}" = set; then | |
71082be4 | 16053 | withval=$with_usrlibdir; usrlibdir=$withval |
68f2de6d | 16054 | else |
71082be4 | 16055 | usrlibdir='${prefix}/lib' |
68f2de6d AK |
16056 | fi |
16057 | ||
16058 | ||
16059 | ||
16060 | # Check whether --with-usrsbindir was given. | |
16061 | if test "${with_usrsbindir+set}" = set; then | |
71082be4 | 16062 | withval=$with_usrsbindir; usrsbindir=$withval |
68f2de6d | 16063 | else |
71082be4 | 16064 | usrsbindir='${prefix}/sbin' |
68f2de6d AK |
16065 | fi |
16066 | ||
16067 | ||
a5f46f6a AK |
16068 | ################################################################################ |
16069 | ||
16070 | # Check whether --with-udev_prefix was given. | |
16071 | if test "${with_udev_prefix+set}" = set; then | |
71082be4 | 16072 | withval=$with_udev_prefix; udev_prefix=$withval |
a5f46f6a | 16073 | else |
71082be4 | 16074 | udev_prefix='${exec_prefix}' |
a5f46f6a AK |
16075 | fi |
16076 | ||
16077 | ||
78ce7acc AK |
16078 | |
16079 | # Check whether --with-udevdir was given. | |
16080 | if test "${with_udevdir+set}" = set; then | |
71082be4 | 16081 | withval=$with_udevdir; udevdir=$withval |
78ce7acc | 16082 | else |
71082be4 | 16083 | udevdir='${udev_prefix}/lib/udev/rules.d' |
78ce7acc AK |
16084 | fi |
16085 | ||
a5f46f6a | 16086 | |
ad6254c5 AK |
16087 | ################################################################################ |
16088 | if test x$READLINE = xyes; then | |
16089 | ||
16090 | ||
16091 | for ac_header in readline/readline.h readline/history.h | |
16092 | do | |
ec6a6fbe | 16093 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16094 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16095 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16096 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16097 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16098 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16099 | fi |
ec6a6fbe AK |
16100 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16101 | $as_echo "$as_val"'` | |
16102 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16103 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16104 | else |
16105 | # Is the header compilable? | |
ec6a6fbe AK |
16106 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16107 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16108 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16109 | /* confdefs.h. */ |
16110 | _ACEOF | |
16111 | cat confdefs.h >>conftest.$ac_ext | |
16112 | cat >>conftest.$ac_ext <<_ACEOF | |
16113 | /* end confdefs.h. */ | |
16114 | $ac_includes_default | |
16115 | #include <$ac_header> | |
16116 | _ACEOF | |
16117 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16118 | if { (ac_try="$ac_compile" |
16119 | case "(($ac_try" in | |
16120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16121 | *) ac_try_echo=$ac_try;; | |
16122 | esac | |
ec6a6fbe AK |
16123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16124 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16125 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16126 | ac_status=$? |
8a2fc586 AK |
16127 | grep -v '^ *+' conftest.er1 >conftest.err |
16128 | rm -f conftest.er1 | |
16129 | cat conftest.err >&5 | |
ec6a6fbe | 16130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16131 | (exit $ac_status); } && { |
16132 | test -z "$ac_c_werror_flag" || | |
16133 | test ! -s conftest.err | |
16134 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16135 | ac_header_compiler=yes |
16136 | else | |
ec6a6fbe | 16137 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16138 | sed 's/^/| /' conftest.$ac_ext >&5 |
16139 | ||
7a197a62 | 16140 | ac_header_compiler=no |
ad6254c5 | 16141 | fi |
7a197a62 AK |
16142 | |
16143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16144 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16145 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16146 | |
16147 | # Is the header present? | |
ec6a6fbe AK |
16148 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16149 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16150 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16151 | /* confdefs.h. */ |
16152 | _ACEOF | |
16153 | cat confdefs.h >>conftest.$ac_ext | |
16154 | cat >>conftest.$ac_ext <<_ACEOF | |
16155 | /* end confdefs.h. */ | |
16156 | #include <$ac_header> | |
16157 | _ACEOF | |
7a197a62 AK |
16158 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16159 | case "(($ac_try" in | |
16160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16161 | *) ac_try_echo=$ac_try;; | |
16162 | esac | |
ec6a6fbe AK |
16163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16164 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16165 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16166 | ac_status=$? |
16167 | grep -v '^ *+' conftest.er1 >conftest.err | |
16168 | rm -f conftest.er1 | |
16169 | cat conftest.err >&5 | |
ec6a6fbe | 16170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16171 | (exit $ac_status); } >/dev/null && { |
16172 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16173 | test ! -s conftest.err | |
16174 | }; then | |
ad6254c5 AK |
16175 | ac_header_preproc=yes |
16176 | else | |
ec6a6fbe | 16177 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16178 | sed 's/^/| /' conftest.$ac_ext >&5 |
16179 | ||
16180 | ac_header_preproc=no | |
16181 | fi | |
7a197a62 | 16182 | |
ad6254c5 | 16183 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16184 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16185 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16186 | |
16187 | # So? What about this header? | |
8a2fc586 AK |
16188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16189 | yes:no: ) | |
ec6a6fbe AK |
16190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16191 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16193 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16194 | ac_header_preproc=yes |
ad6254c5 | 16195 | ;; |
8a2fc586 | 16196 | no:yes:* ) |
ec6a6fbe AK |
16197 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16198 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16199 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16200 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16202 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16203 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16204 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16205 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16206 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16207 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16208 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16209 | |
ad6254c5 AK |
16210 | ;; |
16211 | esac | |
ec6a6fbe AK |
16212 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16213 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16214 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16215 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16216 | else |
8a2fc586 | 16217 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16218 | fi |
ec6a6fbe AK |
16219 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16220 | $as_echo "$as_val"'` | |
16221 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16222 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16223 | |
16224 | fi | |
ec6a6fbe AK |
16225 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16226 | $as_echo "$as_val"'` | |
16227 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16228 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16229 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16230 | _ACEOF |
16231 | ||
16232 | else | |
ec6a6fbe AK |
16233 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16234 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16235 | { (exit 1); exit 1; }; } |
16236 | fi | |
16237 | ||
16238 | done | |
16239 | ||
16240 | fi | |
16241 | ||
5c7fc7c4 | 16242 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16243 | |
16244 | ||
16245 | ||
16246 | ||
16247 | ||
16248 | ||
16249 | ||
16250 | ||
16251 | ||
16252 | ||
16253 | 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 | |
16254 | do | |
ec6a6fbe | 16255 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16256 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16257 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16258 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16260 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16261 | fi |
ec6a6fbe AK |
16262 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16263 | $as_echo "$as_val"'` | |
16264 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16265 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16266 | else |
16267 | # Is the header compilable? | |
ec6a6fbe AK |
16268 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16269 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16270 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16271 | /* confdefs.h. */ |
16272 | _ACEOF | |
16273 | cat confdefs.h >>conftest.$ac_ext | |
16274 | cat >>conftest.$ac_ext <<_ACEOF | |
16275 | /* end confdefs.h. */ | |
16276 | $ac_includes_default | |
16277 | #include <$ac_header> | |
16278 | _ACEOF | |
16279 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16280 | if { (ac_try="$ac_compile" |
16281 | case "(($ac_try" in | |
16282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16283 | *) ac_try_echo=$ac_try;; | |
16284 | esac | |
ec6a6fbe AK |
16285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16286 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16287 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16288 | ac_status=$? |
8a2fc586 AK |
16289 | grep -v '^ *+' conftest.er1 >conftest.err |
16290 | rm -f conftest.er1 | |
16291 | cat conftest.err >&5 | |
ec6a6fbe | 16292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16293 | (exit $ac_status); } && { |
16294 | test -z "$ac_c_werror_flag" || | |
16295 | test ! -s conftest.err | |
16296 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16297 | ac_header_compiler=yes |
16298 | else | |
ec6a6fbe | 16299 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16300 | sed 's/^/| /' conftest.$ac_ext >&5 |
16301 | ||
7a197a62 | 16302 | ac_header_compiler=no |
ad6254c5 | 16303 | fi |
7a197a62 AK |
16304 | |
16305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16306 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16307 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16308 | |
16309 | # Is the header present? | |
ec6a6fbe AK |
16310 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16311 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16312 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16313 | /* confdefs.h. */ |
16314 | _ACEOF | |
16315 | cat confdefs.h >>conftest.$ac_ext | |
16316 | cat >>conftest.$ac_ext <<_ACEOF | |
16317 | /* end confdefs.h. */ | |
16318 | #include <$ac_header> | |
16319 | _ACEOF | |
7a197a62 AK |
16320 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16321 | case "(($ac_try" in | |
16322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16323 | *) ac_try_echo=$ac_try;; | |
16324 | esac | |
ec6a6fbe AK |
16325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16326 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16327 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16328 | ac_status=$? |
16329 | grep -v '^ *+' conftest.er1 >conftest.err | |
16330 | rm -f conftest.er1 | |
16331 | cat conftest.err >&5 | |
ec6a6fbe | 16332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16333 | (exit $ac_status); } >/dev/null && { |
16334 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16335 | test ! -s conftest.err | |
16336 | }; then | |
ad6254c5 AK |
16337 | ac_header_preproc=yes |
16338 | else | |
ec6a6fbe | 16339 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16340 | sed 's/^/| /' conftest.$ac_ext >&5 |
16341 | ||
16342 | ac_header_preproc=no | |
16343 | fi | |
7a197a62 | 16344 | |
ad6254c5 | 16345 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16346 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16347 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16348 | |
16349 | # So? What about this header? | |
8a2fc586 AK |
16350 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16351 | yes:no: ) | |
ec6a6fbe AK |
16352 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16353 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16355 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16356 | ac_header_preproc=yes |
ad6254c5 | 16357 | ;; |
8a2fc586 | 16358 | no:yes:* ) |
ec6a6fbe AK |
16359 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16360 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16361 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16362 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16363 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16364 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16365 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16366 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16367 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16368 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16369 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16370 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16371 | |
ad6254c5 AK |
16372 | ;; |
16373 | esac | |
ec6a6fbe AK |
16374 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16375 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16377 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16378 | else |
8a2fc586 | 16379 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16380 | fi |
ec6a6fbe AK |
16381 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16382 | $as_echo "$as_val"'` | |
16383 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16384 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16385 | |
16386 | fi | |
ec6a6fbe AK |
16387 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16388 | $as_echo "$as_val"'` | |
16389 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16390 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16391 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16392 | _ACEOF |
16393 | ||
16394 | else | |
ec6a6fbe AK |
16395 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16396 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16397 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16398 | fi |
16399 | ||
ad6254c5 AK |
16400 | done |
16401 | ||
16402 | ||
795ca3e5 | 16403 | |
8106cdd5 | 16404 | |
ad6254c5 AK |
16405 | |
16406 | ||
16407 | for ac_func in dup2 getmntent memmove select socket | |
16408 | do | |
ec6a6fbe AK |
16409 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16410 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16411 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16412 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16413 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16414 | else |
ad6254c5 | 16415 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16416 | /* confdefs.h. */ |
16417 | _ACEOF | |
16418 | cat confdefs.h >>conftest.$ac_ext | |
16419 | cat >>conftest.$ac_ext <<_ACEOF | |
16420 | /* end confdefs.h. */ | |
8a2fc586 AK |
16421 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16423 | #define $ac_func innocuous_$ac_func | |
16424 | ||
795ca3e5 | 16425 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16426 | which can conflict with char $ac_func (); below. |
16427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16428 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16429 | |
ad6254c5 AK |
16430 | #ifdef __STDC__ |
16431 | # include <limits.h> | |
16432 | #else | |
16433 | # include <assert.h> | |
16434 | #endif | |
8a2fc586 AK |
16435 | |
16436 | #undef $ac_func | |
16437 | ||
7a197a62 AK |
16438 | /* Override any GCC internal prototype to avoid an error. |
16439 | Use char because int might match the return type of a GCC | |
16440 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16441 | #ifdef __cplusplus |
16442 | extern "C" | |
ad6254c5 | 16443 | #endif |
ad6254c5 | 16444 | char $ac_func (); |
795ca3e5 AK |
16445 | /* The GNU C library defines this for functions which it implements |
16446 | to always fail with ENOSYS. Some functions are actually named | |
16447 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16448 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16449 | choke me |
795ca3e5 AK |
16450 | #endif |
16451 | ||
ad6254c5 AK |
16452 | int |
16453 | main () | |
16454 | { | |
7a197a62 | 16455 | return $ac_func (); |
ad6254c5 AK |
16456 | ; |
16457 | return 0; | |
16458 | } | |
16459 | _ACEOF | |
16460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16461 | if { (ac_try="$ac_link" |
16462 | case "(($ac_try" in | |
16463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16464 | *) ac_try_echo=$ac_try;; | |
16465 | esac | |
ec6a6fbe AK |
16466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16467 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16468 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16469 | ac_status=$? |
8a2fc586 AK |
16470 | grep -v '^ *+' conftest.er1 >conftest.err |
16471 | rm -f conftest.er1 | |
16472 | cat conftest.err >&5 | |
ec6a6fbe | 16473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16474 | (exit $ac_status); } && { |
16475 | test -z "$ac_c_werror_flag" || | |
16476 | test ! -s conftest.err | |
ec6a6fbe AK |
16477 | } && test -s conftest$ac_exeext && { |
16478 | test "$cross_compiling" = yes || | |
16479 | $as_test_x conftest$ac_exeext | |
16480 | }; then | |
ad6254c5 | 16481 | eval "$as_ac_var=yes" |
795ca3e5 | 16482 | else |
ec6a6fbe | 16483 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16484 | sed 's/^/| /' conftest.$ac_ext >&5 |
16485 | ||
7a197a62 | 16486 | eval "$as_ac_var=no" |
80992638 | 16487 | fi |
7a197a62 | 16488 | |
ec6a6fbe | 16489 | rm -rf conftest.dSYM |
25fbec5b | 16490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16491 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16492 | fi |
ec6a6fbe AK |
16493 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16494 | $as_echo "$as_val"'` | |
16495 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16496 | $as_echo "$ac_res" >&6; } | |
16497 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16498 | $as_echo "$as_val"'` | |
16499 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16500 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16501 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16502 | _ACEOF |
80992638 AK |
16503 | |
16504 | else | |
ec6a6fbe AK |
16505 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16506 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16507 | { (exit 1); exit 1; }; } |
8106cdd5 | 16508 | fi |
ad6254c5 | 16509 | done |
795ca3e5 | 16510 | |
25fbec5b AK |
16511 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16512 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16513 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16514 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16515 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16516 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16517 | else |
16518 | ac_func_search_save_LIBS=$LIBS | |
16519 | cat >conftest.$ac_ext <<_ACEOF | |
16520 | /* confdefs.h. */ | |
16521 | _ACEOF | |
16522 | cat confdefs.h >>conftest.$ac_ext | |
16523 | cat >>conftest.$ac_ext <<_ACEOF | |
16524 | /* end confdefs.h. */ | |
80992638 | 16525 | |
7a197a62 AK |
16526 | /* Override any GCC internal prototype to avoid an error. |
16527 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16528 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16529 | #ifdef __cplusplus |
16530 | extern "C" | |
16531 | #endif | |
25fbec5b | 16532 | char getmntent (); |
ad6254c5 AK |
16533 | int |
16534 | main () | |
16535 | { | |
25fbec5b | 16536 | return getmntent (); |
ad6254c5 AK |
16537 | ; |
16538 | return 0; | |
16539 | } | |
16540 | _ACEOF | |
25fbec5b AK |
16541 | for ac_lib in '' sun seq gen; do |
16542 | if test -z "$ac_lib"; then | |
16543 | ac_res="none required" | |
16544 | else | |
16545 | ac_res=-l$ac_lib | |
16546 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16547 | fi | |
16548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16549 | if { (ac_try="$ac_link" |
16550 | case "(($ac_try" in | |
16551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16552 | *) ac_try_echo=$ac_try;; | |
16553 | esac | |
ec6a6fbe AK |
16554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16555 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16556 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16557 | ac_status=$? |
8a2fc586 AK |
16558 | grep -v '^ *+' conftest.er1 >conftest.err |
16559 | rm -f conftest.er1 | |
16560 | cat conftest.err >&5 | |
ec6a6fbe | 16561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16562 | (exit $ac_status); } && { |
16563 | test -z "$ac_c_werror_flag" || | |
16564 | test ! -s conftest.err | |
ec6a6fbe AK |
16565 | } && test -s conftest$ac_exeext && { |
16566 | test "$cross_compiling" = yes || | |
16567 | $as_test_x conftest$ac_exeext | |
16568 | }; then | |
25fbec5b | 16569 | ac_cv_search_getmntent=$ac_res |
80992638 | 16570 | else |
ec6a6fbe | 16571 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16572 | sed 's/^/| /' conftest.$ac_ext >&5 |
16573 | ||
25fbec5b | 16574 | |
795ca3e5 AK |
16575 | fi |
16576 | ||
ec6a6fbe | 16577 | rm -rf conftest.dSYM |
25fbec5b AK |
16578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16579 | conftest$ac_exeext | |
16580 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16581 | break | |
795ca3e5 | 16582 | fi |
25fbec5b AK |
16583 | done |
16584 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16585 | : | |
16586 | else | |
16587 | ac_cv_search_getmntent=no | |
16588 | fi | |
16589 | rm conftest.$ac_ext | |
16590 | LIBS=$ac_func_search_save_LIBS | |
16591 | fi | |
ec6a6fbe AK |
16592 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16593 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16594 | ac_res=$ac_cv_search_getmntent |
16595 | if test "$ac_res" != no; then | |
16596 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16597 | ac_cv_func_getmntent=yes | |
16598 | ||
16599 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16600 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16601 | _ACEOF |
795ca3e5 | 16602 | |
25fbec5b AK |
16603 | else |
16604 | ac_cv_func_getmntent=no | |
795ca3e5 | 16605 | fi |
795ca3e5 AK |
16606 | |
16607 | ||
ad6254c5 AK |
16608 | |
16609 | ||
16610 | for ac_header in sys/select.h sys/socket.h | |
16611 | do | |
ec6a6fbe | 16612 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16613 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16614 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16615 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16617 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16618 | fi |
ec6a6fbe AK |
16619 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16620 | $as_echo "$as_val"'` | |
16621 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16622 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16623 | else |
ad6254c5 | 16624 | # Is the header compilable? |
ec6a6fbe AK |
16625 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16626 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16627 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16628 | /* confdefs.h. */ |
16629 | _ACEOF | |
16630 | cat confdefs.h >>conftest.$ac_ext | |
16631 | cat >>conftest.$ac_ext <<_ACEOF | |
16632 | /* end confdefs.h. */ | |
16633 | $ac_includes_default | |
16634 | #include <$ac_header> | |
16635 | _ACEOF | |
16636 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16637 | if { (ac_try="$ac_compile" |
16638 | case "(($ac_try" in | |
16639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16640 | *) ac_try_echo=$ac_try;; | |
16641 | esac | |
ec6a6fbe AK |
16642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16643 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16644 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16645 | ac_status=$? |
8a2fc586 AK |
16646 | grep -v '^ *+' conftest.er1 >conftest.err |
16647 | rm -f conftest.er1 | |
16648 | cat conftest.err >&5 | |
ec6a6fbe | 16649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16650 | (exit $ac_status); } && { |
16651 | test -z "$ac_c_werror_flag" || | |
16652 | test ! -s conftest.err | |
16653 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16654 | ac_header_compiler=yes |
80992638 | 16655 | else |
ec6a6fbe | 16656 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16657 | sed 's/^/| /' conftest.$ac_ext >&5 |
16658 | ||
7a197a62 | 16659 | ac_header_compiler=no |
ad6254c5 | 16660 | fi |
7a197a62 AK |
16661 | |
16662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16663 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16664 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16665 | |
16666 | # Is the header present? | |
ec6a6fbe AK |
16667 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16668 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16669 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16670 | /* confdefs.h. */ |
16671 | _ACEOF | |
16672 | cat confdefs.h >>conftest.$ac_ext | |
16673 | cat >>conftest.$ac_ext <<_ACEOF | |
16674 | /* end confdefs.h. */ | |
16675 | #include <$ac_header> | |
16676 | _ACEOF | |
7a197a62 AK |
16677 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16678 | case "(($ac_try" in | |
16679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16680 | *) ac_try_echo=$ac_try;; | |
16681 | esac | |
ec6a6fbe AK |
16682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16683 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16685 | ac_status=$? |
16686 | grep -v '^ *+' conftest.er1 >conftest.err | |
16687 | rm -f conftest.er1 | |
16688 | cat conftest.err >&5 | |
ec6a6fbe | 16689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16690 | (exit $ac_status); } >/dev/null && { |
16691 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16692 | test ! -s conftest.err | |
16693 | }; then | |
ad6254c5 AK |
16694 | ac_header_preproc=yes |
16695 | else | |
ec6a6fbe | 16696 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16697 | sed 's/^/| /' conftest.$ac_ext >&5 |
16698 | ||
16699 | ac_header_preproc=no | |
16700 | fi | |
7a197a62 | 16701 | |
ad6254c5 | 16702 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16703 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16704 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16705 | |
16706 | # So? What about this header? | |
8a2fc586 AK |
16707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16708 | yes:no: ) | |
ec6a6fbe AK |
16709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16710 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16712 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16713 | ac_header_preproc=yes |
ad6254c5 | 16714 | ;; |
8a2fc586 | 16715 | no:yes:* ) |
ec6a6fbe AK |
16716 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16717 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16718 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16719 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16720 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16721 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16722 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16723 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16724 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16725 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16726 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16727 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16728 | |
ad6254c5 AK |
16729 | ;; |
16730 | esac | |
ec6a6fbe AK |
16731 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16732 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16734 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16735 | else |
8a2fc586 | 16736 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16737 | fi |
ec6a6fbe AK |
16738 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16739 | $as_echo "$as_val"'` | |
16740 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16741 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16742 | |
795ca3e5 | 16743 | fi |
ec6a6fbe AK |
16744 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16745 | $as_echo "$as_val"'` | |
16746 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16747 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16748 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16749 | _ACEOF |
16750 | ||
795ca3e5 AK |
16751 | fi |
16752 | ||
ad6254c5 AK |
16753 | done |
16754 | ||
ec6a6fbe AK |
16755 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16756 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16757 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16758 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16759 | else |
ad6254c5 | 16760 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16761 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16762 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
16763 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16764 | /* confdefs.h. */ |
16765 | _ACEOF | |
16766 | cat confdefs.h >>conftest.$ac_ext | |
16767 | cat >>conftest.$ac_ext <<_ACEOF | |
16768 | /* end confdefs.h. */ | |
16769 | $ac_includes_default | |
25fbec5b | 16770 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16771 | # include <sys/select.h> |
16772 | #endif | |
25fbec5b | 16773 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16774 | # include <sys/socket.h> |
16775 | #endif | |
16776 | ||
16777 | int | |
16778 | main () | |
16779 | { | |
16780 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16781 | $ac_arg234, $ac_arg234, $ac_arg234, |
16782 | $ac_arg5); | |
ad6254c5 AK |
16783 | ; |
16784 | return 0; | |
16785 | } | |
16786 | _ACEOF | |
16787 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16788 | if { (ac_try="$ac_compile" |
16789 | case "(($ac_try" in | |
16790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16791 | *) ac_try_echo=$ac_try;; | |
16792 | esac | |
ec6a6fbe AK |
16793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16794 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16795 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16796 | ac_status=$? |
8a2fc586 AK |
16797 | grep -v '^ *+' conftest.er1 >conftest.err |
16798 | rm -f conftest.er1 | |
16799 | cat conftest.err >&5 | |
ec6a6fbe | 16800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16801 | (exit $ac_status); } && { |
16802 | test -z "$ac_c_werror_flag" || | |
16803 | test ! -s conftest.err | |
16804 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16805 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
16806 | else | |
ec6a6fbe | 16807 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16808 | sed 's/^/| /' conftest.$ac_ext >&5 |
16809 | ||
7a197a62 | 16810 | |
ad6254c5 | 16811 | fi |
7a197a62 AK |
16812 | |
16813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
16814 | done |
16815 | done | |
16816 | done | |
16817 | # Provide a safe default value. | |
16818 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
16819 | ||
26e7f2e0 | 16820 | fi |
ec6a6fbe AK |
16821 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
16822 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
16823 | ac_save_IFS=$IFS; IFS=',' |
16824 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
16825 | IFS=$ac_save_IFS | |
16826 | shift | |
16827 | ||
16828 | cat >>confdefs.h <<_ACEOF | |
16829 | #define SELECT_TYPE_ARG1 $1 | |
16830 | _ACEOF | |
16831 | ||
16832 | ||
16833 | cat >>confdefs.h <<_ACEOF | |
16834 | #define SELECT_TYPE_ARG234 ($2) | |
16835 | _ACEOF | |
16836 | ||
16837 | ||
16838 | cat >>confdefs.h <<_ACEOF | |
16839 | #define SELECT_TYPE_ARG5 ($3) | |
16840 | _ACEOF | |
16841 | ||
80992638 | 16842 | rm -f conftest* |
80992638 | 16843 | |
8106cdd5 | 16844 | fi |
ad6254c5 | 16845 | |
ad6254c5 AK |
16846 | if test x$CLUSTER != xnone; then |
16847 | ||
16848 | ||
16849 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 16850 | do |
ec6a6fbe | 16851 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16853 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16854 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16856 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16857 | fi |
ec6a6fbe AK |
16858 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16859 | $as_echo "$as_val"'` | |
16860 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16861 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16862 | else |
16863 | # Is the header compilable? | |
ec6a6fbe AK |
16864 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16865 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16866 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16867 | /* confdefs.h. */ |
16868 | _ACEOF | |
16869 | cat confdefs.h >>conftest.$ac_ext | |
16870 | cat >>conftest.$ac_ext <<_ACEOF | |
16871 | /* end confdefs.h. */ | |
16872 | $ac_includes_default | |
16873 | #include <$ac_header> | |
16874 | _ACEOF | |
16875 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16876 | if { (ac_try="$ac_compile" |
16877 | case "(($ac_try" in | |
16878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16879 | *) ac_try_echo=$ac_try;; | |
16880 | esac | |
ec6a6fbe AK |
16881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16882 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16883 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16884 | ac_status=$? |
8a2fc586 AK |
16885 | grep -v '^ *+' conftest.er1 >conftest.err |
16886 | rm -f conftest.er1 | |
16887 | cat conftest.err >&5 | |
ec6a6fbe | 16888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16889 | (exit $ac_status); } && { |
16890 | test -z "$ac_c_werror_flag" || | |
16891 | test ! -s conftest.err | |
16892 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16893 | ac_header_compiler=yes |
16894 | else | |
ec6a6fbe | 16895 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16896 | sed 's/^/| /' conftest.$ac_ext >&5 |
16897 | ||
7a197a62 | 16898 | ac_header_compiler=no |
ad6254c5 | 16899 | fi |
7a197a62 AK |
16900 | |
16901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16902 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16903 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16904 | |
16905 | # Is the header present? | |
ec6a6fbe AK |
16906 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16907 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16908 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16909 | /* confdefs.h. */ |
16910 | _ACEOF | |
16911 | cat confdefs.h >>conftest.$ac_ext | |
16912 | cat >>conftest.$ac_ext <<_ACEOF | |
16913 | /* end confdefs.h. */ | |
16914 | #include <$ac_header> | |
16915 | _ACEOF | |
7a197a62 AK |
16916 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16917 | case "(($ac_try" in | |
16918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16919 | *) ac_try_echo=$ac_try;; | |
16920 | esac | |
ec6a6fbe AK |
16921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16922 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16924 | ac_status=$? |
16925 | grep -v '^ *+' conftest.er1 >conftest.err | |
16926 | rm -f conftest.er1 | |
16927 | cat conftest.err >&5 | |
ec6a6fbe | 16928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16929 | (exit $ac_status); } >/dev/null && { |
16930 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16931 | test ! -s conftest.err | |
16932 | }; then | |
ad6254c5 AK |
16933 | ac_header_preproc=yes |
16934 | else | |
ec6a6fbe | 16935 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16936 | sed 's/^/| /' conftest.$ac_ext >&5 |
16937 | ||
16938 | ac_header_preproc=no | |
16939 | fi | |
7a197a62 | 16940 | |
ad6254c5 | 16941 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16942 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16943 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16944 | |
16945 | # So? What about this header? | |
8a2fc586 AK |
16946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16947 | yes:no: ) | |
ec6a6fbe AK |
16948 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16949 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16950 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16951 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16952 | ac_header_preproc=yes |
ad6254c5 | 16953 | ;; |
8a2fc586 | 16954 | no:yes:* ) |
ec6a6fbe AK |
16955 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16956 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16957 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16958 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16959 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16960 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16961 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16962 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16963 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16964 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16965 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16966 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16967 | |
ad6254c5 AK |
16968 | ;; |
16969 | esac | |
ec6a6fbe AK |
16970 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16971 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16973 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16974 | else |
8a2fc586 | 16975 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 16976 | fi |
ec6a6fbe AK |
16977 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16978 | $as_echo "$as_val"'` | |
16979 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16980 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16981 | |
16982 | fi | |
ec6a6fbe AK |
16983 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16984 | $as_echo "$as_val"'` | |
16985 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16986 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16987 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16988 | _ACEOF |
16989 | ||
80992638 | 16990 | else |
ec6a6fbe AK |
16991 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16992 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16993 | { (exit 1); exit 1; }; } |
b896caa1 | 16994 | fi |
ad6254c5 | 16995 | |
b896caa1 AK |
16996 | done |
16997 | ||
16998 | ||
ad6254c5 AK |
16999 | for ac_func in socket |
17000 | do | |
ec6a6fbe AK |
17001 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17002 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17003 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 17004 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17005 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 17006 | else |
ad6254c5 | 17007 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17008 | /* confdefs.h. */ |
17009 | _ACEOF | |
17010 | cat confdefs.h >>conftest.$ac_ext | |
17011 | cat >>conftest.$ac_ext <<_ACEOF | |
17012 | /* end confdefs.h. */ | |
8a2fc586 AK |
17013 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17015 | #define $ac_func innocuous_$ac_func | |
17016 | ||
ad6254c5 AK |
17017 | /* System header to define __stub macros and hopefully few prototypes, |
17018 | which can conflict with char $ac_func (); below. | |
17019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17020 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 17021 | |
ad6254c5 AK |
17022 | #ifdef __STDC__ |
17023 | # include <limits.h> | |
17024 | #else | |
17025 | # include <assert.h> | |
17026 | #endif | |
8a2fc586 AK |
17027 | |
17028 | #undef $ac_func | |
17029 | ||
7a197a62 AK |
17030 | /* Override any GCC internal prototype to avoid an error. |
17031 | Use char because int might match the return type of a GCC | |
17032 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
17033 | #ifdef __cplusplus |
17034 | extern "C" | |
ad6254c5 | 17035 | #endif |
ad6254c5 AK |
17036 | char $ac_func (); |
17037 | /* The GNU C library defines this for functions which it implements | |
17038 | to always fail with ENOSYS. Some functions are actually named | |
17039 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 17040 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 17041 | choke me |
ad6254c5 AK |
17042 | #endif |
17043 | ||
17044 | int | |
17045 | main () | |
17046 | { | |
7a197a62 | 17047 | return $ac_func (); |
ad6254c5 AK |
17048 | ; |
17049 | return 0; | |
17050 | } | |
17051 | _ACEOF | |
17052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
17053 | if { (ac_try="$ac_link" |
17054 | case "(($ac_try" in | |
17055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17056 | *) ac_try_echo=$ac_try;; | |
17057 | esac | |
ec6a6fbe AK |
17058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17059 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17060 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 17061 | ac_status=$? |
8a2fc586 AK |
17062 | grep -v '^ *+' conftest.er1 >conftest.err |
17063 | rm -f conftest.er1 | |
17064 | cat conftest.err >&5 | |
ec6a6fbe | 17065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17066 | (exit $ac_status); } && { |
17067 | test -z "$ac_c_werror_flag" || | |
17068 | test ! -s conftest.err | |
ec6a6fbe AK |
17069 | } && test -s conftest$ac_exeext && { |
17070 | test "$cross_compiling" = yes || | |
17071 | $as_test_x conftest$ac_exeext | |
17072 | }; then | |
ad6254c5 AK |
17073 | eval "$as_ac_var=yes" |
17074 | else | |
ec6a6fbe | 17075 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17076 | sed 's/^/| /' conftest.$ac_ext >&5 |
17077 | ||
7a197a62 | 17078 | eval "$as_ac_var=no" |
ad6254c5 | 17079 | fi |
7a197a62 | 17080 | |
ec6a6fbe | 17081 | rm -rf conftest.dSYM |
25fbec5b | 17082 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 17083 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 17084 | fi |
ec6a6fbe AK |
17085 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17086 | $as_echo "$as_val"'` | |
17087 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17088 | $as_echo "$ac_res" >&6; } | |
17089 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17090 | $as_echo "$as_val"'` | |
17091 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17092 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17093 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
17094 | _ACEOF |
17095 | ||
17096 | else | |
ec6a6fbe AK |
17097 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17098 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
17099 | { (exit 1); exit 1; }; } |
17100 | fi | |
17101 | done | |
17102 | ||
17103 | fi | |
17104 | ||
d911ec67 AK |
17105 | if test x$DMEVENTD = xyes; then |
17106 | ||
17107 | for ac_header in arpa/inet.h | |
17108 | do | |
17109 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17110 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17111 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17112 | $as_echo_n "checking for $ac_header... " >&6; } | |
17113 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17114 | $as_echo_n "(cached) " >&6 | |
17115 | fi | |
17116 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17117 | $as_echo "$as_val"'` | |
17118 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17119 | $as_echo "$ac_res" >&6; } | |
17120 | else | |
17121 | # Is the header compilable? | |
17122 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17123 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17124 | cat >conftest.$ac_ext <<_ACEOF | |
17125 | /* confdefs.h. */ | |
17126 | _ACEOF | |
17127 | cat confdefs.h >>conftest.$ac_ext | |
17128 | cat >>conftest.$ac_ext <<_ACEOF | |
17129 | /* end confdefs.h. */ | |
17130 | $ac_includes_default | |
17131 | #include <$ac_header> | |
17132 | _ACEOF | |
17133 | rm -f conftest.$ac_objext | |
17134 | if { (ac_try="$ac_compile" | |
17135 | case "(($ac_try" in | |
17136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17137 | *) ac_try_echo=$ac_try;; | |
17138 | esac | |
17139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17140 | $as_echo "$ac_try_echo") >&5 | |
17141 | (eval "$ac_compile") 2>conftest.er1 | |
17142 | ac_status=$? | |
17143 | grep -v '^ *+' conftest.er1 >conftest.err | |
17144 | rm -f conftest.er1 | |
17145 | cat conftest.err >&5 | |
17146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17147 | (exit $ac_status); } && { | |
17148 | test -z "$ac_c_werror_flag" || | |
17149 | test ! -s conftest.err | |
17150 | } && test -s conftest.$ac_objext; then | |
17151 | ac_header_compiler=yes | |
17152 | else | |
17153 | $as_echo "$as_me: failed program was:" >&5 | |
17154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17155 | ||
17156 | ac_header_compiler=no | |
17157 | fi | |
17158 | ||
17159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17160 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17161 | $as_echo "$ac_header_compiler" >&6; } | |
17162 | ||
17163 | # Is the header present? | |
17164 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17165 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17166 | cat >conftest.$ac_ext <<_ACEOF | |
17167 | /* confdefs.h. */ | |
17168 | _ACEOF | |
17169 | cat confdefs.h >>conftest.$ac_ext | |
17170 | cat >>conftest.$ac_ext <<_ACEOF | |
17171 | /* end confdefs.h. */ | |
17172 | #include <$ac_header> | |
17173 | _ACEOF | |
17174 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17175 | case "(($ac_try" in | |
17176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17177 | *) ac_try_echo=$ac_try;; | |
17178 | esac | |
17179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17180 | $as_echo "$ac_try_echo") >&5 | |
17181 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17182 | ac_status=$? | |
17183 | grep -v '^ *+' conftest.er1 >conftest.err | |
17184 | rm -f conftest.er1 | |
17185 | cat conftest.err >&5 | |
17186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17187 | (exit $ac_status); } >/dev/null && { | |
17188 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17189 | test ! -s conftest.err | |
17190 | }; then | |
17191 | ac_header_preproc=yes | |
17192 | else | |
17193 | $as_echo "$as_me: failed program was:" >&5 | |
17194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17195 | ||
17196 | ac_header_preproc=no | |
17197 | fi | |
17198 | ||
17199 | rm -f conftest.err conftest.$ac_ext | |
17200 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17201 | $as_echo "$ac_header_preproc" >&6; } | |
17202 | ||
17203 | # So? What about this header? | |
17204 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17205 | yes:no: ) | |
17206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17207 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17209 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17210 | ac_header_preproc=yes | |
17211 | ;; | |
17212 | no:yes:* ) | |
17213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17214 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17215 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17216 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17218 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17219 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17220 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17221 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17222 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17223 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17224 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17225 | ||
17226 | ;; | |
17227 | esac | |
17228 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17229 | $as_echo_n "checking for $ac_header... " >&6; } | |
17230 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17231 | $as_echo_n "(cached) " >&6 | |
17232 | else | |
17233 | eval "$as_ac_Header=\$ac_header_preproc" | |
17234 | fi | |
17235 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17236 | $as_echo "$as_val"'` | |
17237 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17238 | $as_echo "$ac_res" >&6; } | |
17239 | ||
17240 | fi | |
17241 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17242 | $as_echo "$as_val"'` | |
17243 | if test "x$as_val" = x""yes; then | |
17244 | cat >>confdefs.h <<_ACEOF | |
17245 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17246 | _ACEOF | |
17247 | ||
17248 | else | |
17249 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17250 | $as_echo "$as_me: error: bailing out" >&2;} | |
17251 | { (exit 1); exit 1; }; } | |
17252 | fi | |
17253 | ||
17254 | done | |
17255 | ||
17256 | fi | |
17257 | ||
ad6254c5 AK |
17258 | if test x$HAVE_LIBDL = xyes; then |
17259 | ||
17260 | for ac_header in dlfcn.h | |
17261 | do | |
ec6a6fbe | 17262 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17264 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17265 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17267 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17268 | fi |
ec6a6fbe AK |
17269 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17270 | $as_echo "$as_val"'` | |
17271 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17272 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17273 | else |
17274 | # Is the header compilable? | |
ec6a6fbe AK |
17275 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17276 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17277 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17278 | /* confdefs.h. */ |
17279 | _ACEOF | |
17280 | cat confdefs.h >>conftest.$ac_ext | |
17281 | cat >>conftest.$ac_ext <<_ACEOF | |
17282 | /* end confdefs.h. */ | |
17283 | $ac_includes_default | |
17284 | #include <$ac_header> | |
17285 | _ACEOF | |
17286 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17287 | if { (ac_try="$ac_compile" |
17288 | case "(($ac_try" in | |
17289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17290 | *) ac_try_echo=$ac_try;; | |
17291 | esac | |
ec6a6fbe AK |
17292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17293 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17294 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17295 | ac_status=$? |
8a2fc586 AK |
17296 | grep -v '^ *+' conftest.er1 >conftest.err |
17297 | rm -f conftest.er1 | |
17298 | cat conftest.err >&5 | |
ec6a6fbe | 17299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17300 | (exit $ac_status); } && { |
17301 | test -z "$ac_c_werror_flag" || | |
17302 | test ! -s conftest.err | |
17303 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17304 | ac_header_compiler=yes |
17305 | else | |
ec6a6fbe | 17306 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17307 | sed 's/^/| /' conftest.$ac_ext >&5 |
17308 | ||
7a197a62 | 17309 | ac_header_compiler=no |
ad6254c5 | 17310 | fi |
7a197a62 AK |
17311 | |
17312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17313 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17314 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17315 | |
17316 | # Is the header present? | |
ec6a6fbe AK |
17317 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17318 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17319 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17320 | /* confdefs.h. */ |
17321 | _ACEOF | |
17322 | cat confdefs.h >>conftest.$ac_ext | |
17323 | cat >>conftest.$ac_ext <<_ACEOF | |
17324 | /* end confdefs.h. */ | |
17325 | #include <$ac_header> | |
17326 | _ACEOF | |
7a197a62 AK |
17327 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17328 | case "(($ac_try" in | |
17329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17330 | *) ac_try_echo=$ac_try;; | |
17331 | esac | |
ec6a6fbe AK |
17332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17333 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17334 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17335 | ac_status=$? |
17336 | grep -v '^ *+' conftest.er1 >conftest.err | |
17337 | rm -f conftest.er1 | |
17338 | cat conftest.err >&5 | |
ec6a6fbe | 17339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17340 | (exit $ac_status); } >/dev/null && { |
17341 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17342 | test ! -s conftest.err | |
17343 | }; then | |
ad6254c5 AK |
17344 | ac_header_preproc=yes |
17345 | else | |
ec6a6fbe | 17346 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17347 | sed 's/^/| /' conftest.$ac_ext >&5 |
17348 | ||
17349 | ac_header_preproc=no | |
17350 | fi | |
7a197a62 | 17351 | |
ad6254c5 | 17352 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17353 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17354 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17355 | |
17356 | # So? What about this header? | |
8a2fc586 AK |
17357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17358 | yes:no: ) | |
ec6a6fbe AK |
17359 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17360 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17361 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17362 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17363 | ac_header_preproc=yes |
ad6254c5 | 17364 | ;; |
8a2fc586 | 17365 | no:yes:* ) |
ec6a6fbe AK |
17366 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17367 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17368 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17369 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17370 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17371 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17372 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17373 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17374 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17375 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17376 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17377 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17378 | |
ad6254c5 AK |
17379 | ;; |
17380 | esac | |
ec6a6fbe AK |
17381 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17382 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17384 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17385 | else |
8a2fc586 | 17386 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17387 | fi |
ec6a6fbe AK |
17388 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17389 | $as_echo "$as_val"'` | |
17390 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17391 | $as_echo "$ac_res" >&6; } | |
80992638 | 17392 | |
8106cdd5 | 17393 | fi |
ec6a6fbe AK |
17394 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17395 | $as_echo "$as_val"'` | |
17396 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17397 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17398 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17399 | _ACEOF |
795ca3e5 AK |
17400 | |
17401 | else | |
ec6a6fbe AK |
17402 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17403 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17404 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17405 | fi |
17406 | ||
ad6254c5 | 17407 | done |
80992638 | 17408 | |
ad6254c5 | 17409 | fi |
80992638 | 17410 | |
ad6254c5 | 17411 | if test x$INTL = xyes; then |
83912faa | 17412 | |
ad6254c5 AK |
17413 | for ac_header in libintl.h |
17414 | do | |
ec6a6fbe | 17415 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17416 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17417 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17418 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17419 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17420 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17421 | fi |
ec6a6fbe AK |
17422 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17423 | $as_echo "$as_val"'` | |
17424 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17425 | $as_echo "$ac_res" >&6; } | |
83912faa | 17426 | else |
ad6254c5 | 17427 | # Is the header compilable? |
ec6a6fbe AK |
17428 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17429 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17430 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17431 | /* confdefs.h. */ |
17432 | _ACEOF | |
17433 | cat confdefs.h >>conftest.$ac_ext | |
17434 | cat >>conftest.$ac_ext <<_ACEOF | |
17435 | /* end confdefs.h. */ | |
17436 | $ac_includes_default | |
17437 | #include <$ac_header> | |
17438 | _ACEOF | |
17439 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17440 | if { (ac_try="$ac_compile" |
17441 | case "(($ac_try" in | |
17442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17443 | *) ac_try_echo=$ac_try;; | |
17444 | esac | |
ec6a6fbe AK |
17445 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17446 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17447 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17448 | ac_status=$? |
8a2fc586 AK |
17449 | grep -v '^ *+' conftest.er1 >conftest.err |
17450 | rm -f conftest.er1 | |
17451 | cat conftest.err >&5 | |
ec6a6fbe | 17452 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17453 | (exit $ac_status); } && { |
17454 | test -z "$ac_c_werror_flag" || | |
17455 | test ! -s conftest.err | |
17456 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17457 | ac_header_compiler=yes |
17458 | else | |
ec6a6fbe | 17459 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17460 | sed 's/^/| /' conftest.$ac_ext >&5 |
17461 | ||
7a197a62 | 17462 | ac_header_compiler=no |
ad6254c5 | 17463 | fi |
7a197a62 AK |
17464 | |
17465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17466 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17467 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17468 | |
17469 | # Is the header present? | |
ec6a6fbe AK |
17470 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17471 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17472 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17473 | /* confdefs.h. */ |
17474 | _ACEOF | |
17475 | cat confdefs.h >>conftest.$ac_ext | |
17476 | cat >>conftest.$ac_ext <<_ACEOF | |
17477 | /* end confdefs.h. */ | |
17478 | #include <$ac_header> | |
17479 | _ACEOF | |
7a197a62 AK |
17480 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17481 | case "(($ac_try" in | |
17482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17483 | *) ac_try_echo=$ac_try;; | |
17484 | esac | |
ec6a6fbe AK |
17485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17486 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17487 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17488 | ac_status=$? |
17489 | grep -v '^ *+' conftest.er1 >conftest.err | |
17490 | rm -f conftest.er1 | |
17491 | cat conftest.err >&5 | |
ec6a6fbe | 17492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17493 | (exit $ac_status); } >/dev/null && { |
17494 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17495 | test ! -s conftest.err | |
17496 | }; then | |
ad6254c5 AK |
17497 | ac_header_preproc=yes |
17498 | else | |
ec6a6fbe | 17499 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17500 | sed 's/^/| /' conftest.$ac_ext >&5 |
17501 | ||
17502 | ac_header_preproc=no | |
17503 | fi | |
7a197a62 | 17504 | |
ad6254c5 | 17505 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17506 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17507 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17508 | |
17509 | # So? What about this header? | |
8a2fc586 AK |
17510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17511 | yes:no: ) | |
ec6a6fbe AK |
17512 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17513 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17514 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17515 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17516 | ac_header_preproc=yes |
ad6254c5 | 17517 | ;; |
8a2fc586 | 17518 | no:yes:* ) |
ec6a6fbe AK |
17519 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17520 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17521 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17522 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17523 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17524 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17525 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17526 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17527 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17528 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17529 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17530 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17531 | |
ad6254c5 AK |
17532 | ;; |
17533 | esac | |
ec6a6fbe AK |
17534 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17535 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17536 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17537 | $as_echo_n "(cached) " >&6 |
80992638 | 17538 | else |
8a2fc586 | 17539 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17540 | fi |
ec6a6fbe AK |
17541 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17542 | $as_echo "$as_val"'` | |
17543 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17544 | $as_echo "$ac_res" >&6; } | |
83912faa | 17545 | |
69792976 | 17546 | fi |
ec6a6fbe AK |
17547 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17548 | $as_echo "$as_val"'` | |
17549 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17550 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17551 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17552 | _ACEOF |
69792976 | 17553 | |
69792976 | 17554 | else |
ec6a6fbe AK |
17555 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17556 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17557 | { (exit 1); exit 1; }; } |
80992638 AK |
17558 | fi |
17559 | ||
ad6254c5 | 17560 | done |
69792976 | 17561 | |
ad6254c5 AK |
17562 | fi |
17563 | ||
a5f46f6a AK |
17564 | if test x$UDEV_SYNC = xyes; then |
17565 | ||
17566 | ||
17567 | for ac_header in sys/ipc.h sys/sem.h | |
17568 | do | |
17569 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17570 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17571 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17572 | $as_echo_n "checking for $ac_header... " >&6; } | |
17573 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17574 | $as_echo_n "(cached) " >&6 | |
17575 | fi | |
17576 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17577 | $as_echo "$as_val"'` | |
17578 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17579 | $as_echo "$ac_res" >&6; } | |
17580 | else | |
17581 | # Is the header compilable? | |
17582 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17583 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17584 | cat >conftest.$ac_ext <<_ACEOF | |
17585 | /* confdefs.h. */ | |
17586 | _ACEOF | |
17587 | cat confdefs.h >>conftest.$ac_ext | |
17588 | cat >>conftest.$ac_ext <<_ACEOF | |
17589 | /* end confdefs.h. */ | |
17590 | $ac_includes_default | |
17591 | #include <$ac_header> | |
17592 | _ACEOF | |
17593 | rm -f conftest.$ac_objext | |
17594 | if { (ac_try="$ac_compile" | |
17595 | case "(($ac_try" in | |
17596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17597 | *) ac_try_echo=$ac_try;; | |
17598 | esac | |
17599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17600 | $as_echo "$ac_try_echo") >&5 | |
17601 | (eval "$ac_compile") 2>conftest.er1 | |
17602 | ac_status=$? | |
17603 | grep -v '^ *+' conftest.er1 >conftest.err | |
17604 | rm -f conftest.er1 | |
17605 | cat conftest.err >&5 | |
17606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17607 | (exit $ac_status); } && { | |
17608 | test -z "$ac_c_werror_flag" || | |
17609 | test ! -s conftest.err | |
17610 | } && test -s conftest.$ac_objext; then | |
17611 | ac_header_compiler=yes | |
17612 | else | |
17613 | $as_echo "$as_me: failed program was:" >&5 | |
17614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17615 | ||
17616 | ac_header_compiler=no | |
17617 | fi | |
17618 | ||
17619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17620 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17621 | $as_echo "$ac_header_compiler" >&6; } | |
17622 | ||
17623 | # Is the header present? | |
17624 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17625 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17626 | cat >conftest.$ac_ext <<_ACEOF | |
17627 | /* confdefs.h. */ | |
17628 | _ACEOF | |
17629 | cat confdefs.h >>conftest.$ac_ext | |
17630 | cat >>conftest.$ac_ext <<_ACEOF | |
17631 | /* end confdefs.h. */ | |
17632 | #include <$ac_header> | |
17633 | _ACEOF | |
17634 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17635 | case "(($ac_try" in | |
17636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17637 | *) ac_try_echo=$ac_try;; | |
17638 | esac | |
17639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17640 | $as_echo "$ac_try_echo") >&5 | |
17641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17642 | ac_status=$? | |
17643 | grep -v '^ *+' conftest.er1 >conftest.err | |
17644 | rm -f conftest.er1 | |
17645 | cat conftest.err >&5 | |
17646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17647 | (exit $ac_status); } >/dev/null && { | |
17648 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17649 | test ! -s conftest.err | |
17650 | }; then | |
17651 | ac_header_preproc=yes | |
17652 | else | |
17653 | $as_echo "$as_me: failed program was:" >&5 | |
17654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17655 | ||
17656 | ac_header_preproc=no | |
17657 | fi | |
17658 | ||
17659 | rm -f conftest.err conftest.$ac_ext | |
17660 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17661 | $as_echo "$ac_header_preproc" >&6; } | |
17662 | ||
17663 | # So? What about this header? | |
17664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17665 | yes:no: ) | |
17666 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17667 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17668 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17669 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17670 | ac_header_preproc=yes | |
17671 | ;; | |
17672 | no:yes:* ) | |
17673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17674 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17675 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17676 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17678 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17680 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17682 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17684 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17685 | ||
17686 | ;; | |
17687 | esac | |
17688 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17689 | $as_echo_n "checking for $ac_header... " >&6; } | |
17690 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17691 | $as_echo_n "(cached) " >&6 | |
17692 | else | |
17693 | eval "$as_ac_Header=\$ac_header_preproc" | |
17694 | fi | |
17695 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17696 | $as_echo "$as_val"'` | |
17697 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17698 | $as_echo "$ac_res" >&6; } | |
17699 | ||
17700 | fi | |
17701 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17702 | $as_echo "$as_val"'` | |
17703 | if test "x$as_val" = x""yes; then | |
17704 | cat >>confdefs.h <<_ACEOF | |
17705 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17706 | _ACEOF | |
17707 | ||
17708 | else | |
17709 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17710 | $as_echo "$as_me: error: bailing out" >&2;} | |
17711 | { (exit 1); exit 1; }; } | |
17712 | fi | |
17713 | ||
17714 | done | |
17715 | ||
17716 | fi | |
17717 | ||
a653923f AK |
17718 | ################################################################################ |
17719 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17720 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17721 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17722 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17723 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17724 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17725 | else |
17726 | case $MODPROBE_CMD in | |
17727 | [\\/]* | ?:[\\/]*) | |
17728 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17729 | ;; | |
17730 | *) | |
17731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17732 | for as_dir in $PATH | |
17733 | do | |
17734 | IFS=$as_save_IFS | |
17735 | test -z "$as_dir" && as_dir=. | |
17736 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17738 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17739 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17740 | break 2 |
17741 | fi | |
17742 | done | |
17743 | done | |
7a197a62 | 17744 | IFS=$as_save_IFS |
72b2cb61 AK |
17745 | |
17746 | ;; | |
17747 | esac | |
17748 | fi | |
17749 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17750 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17751 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17752 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17753 | else |
ec6a6fbe AK |
17754 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17755 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17756 | fi |
17757 | ||
a653923f | 17758 | |
7a197a62 | 17759 | |
a653923f | 17760 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17761 | |
17762 | cat >>confdefs.h <<_ACEOF | |
17763 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17764 | _ACEOF | |
17765 | ||
a653923f AK |
17766 | fi |
17767 | ||
b5c2529b | 17768 | |
a9b601e2 ZK |
17769 | lvm_exec_prefix=$exec_prefix |
17770 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17771 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17772 | ||
b5c2529b | 17773 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17774 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17775 | _ACEOF |
17776 | ||
17777 | ||
17778 | if test "$CLVMD" != none; then | |
17779 | clvmd_prefix=$ac_default_prefix | |
17780 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17781 | ||
17782 | cat >>confdefs.h <<_ACEOF | |
17783 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17784 | _ACEOF | |
17785 | ||
17786 | fi | |
17787 | ||
80992638 | 17788 | ################################################################################ |
93bd259b AK |
17789 | if test "$BUILD_DMEVENTD" = yes; then |
17790 | ||
17791 | # Check whether --with-dmeventd-pidfile was given. | |
17792 | if test "${with_dmeventd_pidfile+set}" = set; then | |
71082be4 | 17793 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 17794 | else |
71082be4 | 17795 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
17796 | fi |
17797 | ||
93bd259b | 17798 | |
71082be4 ZK |
17799 | cat >>confdefs.h <<_ACEOF |
17800 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
17801 | _ACEOF | |
93bd259b | 17802 | |
71082be4 | 17803 | fi |
93bd259b AK |
17804 | |
17805 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
17806 | |
17807 | # Check whether --with-dmeventd-path was given. | |
17808 | if test "${with_dmeventd_path+set}" = set; then | |
71082be4 | 17809 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 17810 | else |
71082be4 | 17811 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
17812 | fi |
17813 | ||
93bd259b | 17814 | |
71082be4 ZK |
17815 | cat >>confdefs.h <<_ACEOF |
17816 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
17817 | _ACEOF | |
3399ae32 | 17818 | |
71082be4 | 17819 | fi |
3399ae32 | 17820 | |
8bae0a1e AK |
17821 | |
17822 | ||
17823 | ||
17824 | # Check whether --with-default-run-dir was given. | |
17825 | if test "${with_default_run_dir+set}" = set; then | |
17826 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
17827 | else | |
17828 | DEFAULT_RUN_DIR="/var/run/lvm" | |
17829 | fi | |
17830 | ||
17831 | cat >>confdefs.h <<_ACEOF | |
17832 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
17833 | _ACEOF | |
17834 | ||
17835 | ||
71082be4 | 17836 | ################################################################################ |
3399ae32 AK |
17837 | |
17838 | # Check whether --with-default-system-dir was given. | |
17839 | if test "${with_default_system_dir+set}" = set; then | |
71082be4 | 17840 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 17841 | else |
71082be4 | 17842 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
17843 | fi |
17844 | ||
71082be4 | 17845 | |
3399ae32 AK |
17846 | cat >>confdefs.h <<_ACEOF |
17847 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
17848 | _ACEOF | |
17849 | ||
17850 | ||
17851 | ||
3399ae32 AK |
17852 | # Check whether --with-default-archive-subdir was given. |
17853 | if test "${with_default_archive_subdir+set}" = set; then | |
71082be4 | 17854 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 17855 | else |
71082be4 | 17856 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
17857 | fi |
17858 | ||
71082be4 | 17859 | |
3399ae32 AK |
17860 | cat >>confdefs.h <<_ACEOF |
17861 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
17862 | _ACEOF | |
17863 | ||
17864 | ||
17865 | ||
3399ae32 AK |
17866 | # Check whether --with-default-backup-subdir was given. |
17867 | if test "${with_default_backup_subdir+set}" = set; then | |
71082be4 | 17868 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 17869 | else |
71082be4 | 17870 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
17871 | fi |
17872 | ||
71082be4 | 17873 | |
3399ae32 AK |
17874 | cat >>confdefs.h <<_ACEOF |
17875 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
17876 | _ACEOF | |
17877 | ||
17878 | ||
17879 | ||
3399ae32 AK |
17880 | # Check whether --with-default-cache-subdir was given. |
17881 | if test "${with_default_cache_subdir+set}" = set; then | |
71082be4 | 17882 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 17883 | else |
71082be4 | 17884 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
17885 | fi |
17886 | ||
71082be4 | 17887 | |
3399ae32 AK |
17888 | cat >>confdefs.h <<_ACEOF |
17889 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
17890 | _ACEOF | |
17891 | ||
17892 | ||
17893 | ||
3399ae32 AK |
17894 | # Check whether --with-default-locking-dir was given. |
17895 | if test "${with_default_locking_dir+set}" = set; then | |
71082be4 | 17896 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 17897 | else |
71082be4 | 17898 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
17899 | fi |
17900 | ||
71082be4 | 17901 | |
3399ae32 AK |
17902 | cat >>confdefs.h <<_ACEOF |
17903 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
17904 | _ACEOF | |
17905 | ||
17906 | ||
93bd259b | 17907 | ################################################################################ |
ec6a6fbe AK |
17908 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
17909 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
17910 | |
17911 | # Check whether --with-interface was given. | |
17912 | if test "${with_interface+set}" = set; then | |
71082be4 | 17913 | withval=$with_interface; interface=$withval |
93bd259b | 17914 | else |
71082be4 | 17915 | interface=ioctl |
93bd259b AK |
17916 | fi |
17917 | ||
17918 | if [ "x$interface" != xioctl ]; | |
17919 | then | |
ec6a6fbe AK |
17920 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
17921 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
17922 | { (exit 1); exit 1; }; } |
17923 | fi | |
ec6a6fbe AK |
17924 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
17925 | $as_echo "$interface" >&6; } | |
93bd259b AK |
17926 | |
17927 | ################################################################################ | |
db8b5af9 | 17928 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
17929 | |
17930 | cat >>confdefs.h <<_ACEOF | |
17931 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
17932 | _ACEOF | |
17933 | ||
17934 | ||
db8b5af9 | 17935 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 17936 | |
db8b5af9 | 17937 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 17938 | |
db8b5af9 | 17939 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 17940 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
17941 | VER=`echo "$VER" | $AWK '{print $1}'` |
17942 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
17943 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
17944 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
17945 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
17946 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
17947 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 17948 | |
80992638 | 17949 | ################################################################################ |
fae0c576 | 17950 | |
83912faa | 17951 | |
795ca3e5 AK |
17952 | |
17953 | ||
17954 | ||
17955 | ||
17956 | ||
17957 | ||
5a52dca9 | 17958 | |
8ef2b021 | 17959 | |
199e490e | 17960 | |
69792976 AK |
17961 | |
17962 | ||
17963 | ||
d0191583 | 17964 | |
69792976 | 17965 | |
8106cdd5 AK |
17966 | |
17967 | ||
17968 | ||
17969 | ||
17970 | ||
d68a82ec | 17971 | |
036f273a | 17972 | |
7d1552c9 | 17973 | |
8106cdd5 | 17974 | |
0a62c911 | 17975 | |
8106cdd5 | 17976 | |
4a7f3eb2 | 17977 | |
4922197a AK |
17978 | |
17979 | ||
d8ac0fbc | 17980 | |
1a9ea74d | 17981 | |
8a2fc586 AK |
17982 | |
17983 | ||
d0191583 | 17984 | |
93bd259b AK |
17985 | |
17986 | ||
17987 | ||
17988 | ||
17989 | ||
d0191583 JM |
17990 | |
17991 | ||
17992 | ||
17993 | ||
17994 | ||
8a2fc586 | 17995 | |
19a2c6e0 | 17996 | |
f7f0854e ZK |
17997 | |
17998 | ||
3ceb7608 | 17999 | |
8ce0cbda | 18000 | |
8b1a3214 | 18001 | |
ec6a6fbe AK |
18002 | |
18003 | ||
18004 | ||
18005 | ||
e2997b73 AK |
18006 | |
18007 | ||
18008 | ||
18009 | ||
18010 | ||
18011 | ||
a946372e AK |
18012 | |
18013 | ||
18014 | ||
18015 | ||
18016 | ||
18017 | ||
18018 | ||
18019 | ||
18020 | ||
18021 | ||
18022 | ||
ec6a6fbe | 18023 | |
33f732c5 | 18024 | |
66e941e8 | 18025 | |
d3c8211f | 18026 | |
7e3fe830 | 18027 | |
a5f46f6a AK |
18028 | |
18029 | ||
18030 | ||
572fefeb | 18031 | |
90c80887 | 18032 | |
3399ae32 AK |
18033 | |
18034 | ||
18035 | ||
18036 | ||
18037 | ||
90c80887 | 18038 | |
bf456146 | 18039 | |
e1b8a236 | 18040 | |
0878503f | 18041 | |
8fea97b7 | 18042 | |
54b362f9 | 18043 | |
68f2de6d AK |
18044 | |
18045 | ||
80992638 | 18046 | ################################################################################ |
54b362f9 | 18047 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/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/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile" |
7a197a62 | 18048 | |
ad6254c5 | 18049 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
18050 | # This file is a shell script that caches the results of configure |
18051 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
18052 | # scripts and configure runs, see configure's option --config-cache. |
18053 | # It is not useful on other systems. If it contains results you don't | |
18054 | # want to keep, you may remove or edit it. | |
795ca3e5 | 18055 | # |
ad6254c5 AK |
18056 | # config.status only pays attention to the cache file if you give it |
18057 | # the --recheck option to rerun configure. | |
795ca3e5 | 18058 | # |
ad6254c5 AK |
18059 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18060 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18061 | # following values. | |
18062 | ||
18063 | _ACEOF | |
18064 | ||
795ca3e5 AK |
18065 | # The following way of writing the cache mishandles newlines in values, |
18066 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 18067 | # So, we kill variables containing newlines. |
795ca3e5 AK |
18068 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18069 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
18070 | ( |
18071 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18072 | eval ac_val=\$$ac_var | |
18073 | case $ac_val in #( | |
18074 | *${as_nl}*) | |
18075 | case $ac_var in #( | |
ec6a6fbe AK |
18076 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
18077 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
18078 | esac |
18079 | case $ac_var in #( | |
18080 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 18081 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
18082 | *) $as_unset $ac_var ;; |
18083 | esac ;; | |
18084 | esac | |
18085 | done | |
18086 | ||
ad6254c5 | 18087 | (set) 2>&1 | |
7a197a62 AK |
18088 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18089 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
18090 | # `set' does not quote correctly, so add quotes (double-quote |
18091 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18092 | sed -n \ | |
8a2fc586 AK |
18093 | "s/'/'\\\\''/g; |
18094 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 18095 | ;; #( |
ad6254c5 AK |
18096 | *) |
18097 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 18098 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 18099 | ;; |
7a197a62 AK |
18100 | esac | |
18101 | sort | |
18102 | ) | | |
ad6254c5 | 18103 | sed ' |
7a197a62 | 18104 | /^ac_cv_env_/b end |
ad6254c5 | 18105 | t clear |
7a197a62 | 18106 | :clear |
ad6254c5 AK |
18107 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18108 | t end | |
7a197a62 AK |
18109 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18110 | :end' >>confcache | |
18111 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18112 | if test -w "$cache_file"; then | |
18113 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
18114 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
18115 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 18116 | cat confcache >$cache_file |
795ca3e5 | 18117 | else |
ec6a6fbe AK |
18118 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
18119 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
18120 | fi |
18121 | fi | |
18122 | rm -f confcache | |
18123 | ||
795ca3e5 AK |
18124 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18125 | # Let make expand exec_prefix. | |
18126 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18127 | ||
72b2cb61 | 18128 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
18129 | |
18130 | ac_libobjs= | |
18131 | ac_ltlibobjs= | |
18132 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18133 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 18134 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 18135 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
18136 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18137 | # will be set to the directory where LIBOBJS objects are built. | |
18138 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18139 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18140 | done |
18141 | LIBOBJS=$ac_libobjs | |
80992638 | 18142 | |
ad6254c5 AK |
18143 | LTLIBOBJS=$ac_ltlibobjs |
18144 | ||
18145 | ||
18146 | ||
18147 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18148 | ac_write_fail=0 |
ad6254c5 AK |
18149 | ac_clean_files_save=$ac_clean_files |
18150 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18151 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18152 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18153 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18154 | #! $SHELL |
18155 | # Generated by $as_me. | |
795ca3e5 | 18156 | # Run this file to recreate the current configuration. |
795ca3e5 | 18157 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18158 | # configure, is in config.log if it exists. |
18159 | ||
18160 | debug=false | |
18161 | ac_cs_recheck=false | |
18162 | ac_cs_silent=false | |
18163 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18164 | _ACEOF | |
18165 | ||
ec6a6fbe | 18166 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18167 | ## --------------------- ## |
18168 | ## M4sh Initialization. ## | |
18169 | ## --------------------- ## | |
18170 | ||
25fbec5b AK |
18171 | # Be more Bourne compatible |
18172 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18173 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18174 | emulate sh | |
18175 | NULLCMD=: | |
ec6a6fbe | 18176 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18177 | # is contrary to our usage. Disable this feature. |
18178 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18179 | setopt NO_GLOB_SUBST |
18180 | else | |
25fbec5b AK |
18181 | case `(set -o) 2>/dev/null` in |
18182 | *posix*) set -o posix ;; | |
18183 | esac | |
18184 | ||
7a197a62 | 18185 | fi |
25fbec5b AK |
18186 | |
18187 | ||
7a197a62 AK |
18188 | |
18189 | ||
18190 | # PATH needs CR | |
18191 | # Avoid depending upon Character Ranges. | |
18192 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18193 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18194 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18195 | as_cr_digits='0123456789' | |
18196 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18197 | ||
ec6a6fbe AK |
18198 | as_nl=' |
18199 | ' | |
18200 | export as_nl | |
18201 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18202 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18203 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18204 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18205 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18206 | as_echo='printf %s\n' | |
18207 | as_echo_n='printf %s' | |
18208 | else | |
18209 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18210 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18211 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18212 | else |
ec6a6fbe AK |
18213 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18214 | as_echo_n_body='eval | |
18215 | arg=$1; | |
18216 | case $arg in | |
18217 | *"$as_nl"*) | |
18218 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18219 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18220 | esac; | |
18221 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18222 | ' | |
18223 | export as_echo_n_body | |
18224 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18225 | fi |
ec6a6fbe AK |
18226 | export as_echo_body |
18227 | as_echo='sh -c $as_echo_body as_echo' | |
18228 | fi | |
18229 | ||
18230 | # The user is always right. | |
18231 | if test "${PATH_SEPARATOR+set}" != set; then | |
18232 | PATH_SEPARATOR=: | |
18233 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18234 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18235 | PATH_SEPARATOR=';' | |
18236 | } | |
ad6254c5 AK |
18237 | fi |
18238 | ||
18239 | # Support unset when possible. | |
8a2fc586 | 18240 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18241 | as_unset=unset |
18242 | else | |
18243 | as_unset=false | |
18244 | fi | |
8106cdd5 | 18245 | |
ad6254c5 | 18246 | |
7a197a62 AK |
18247 | # IFS |
18248 | # We need space, tab and new line, in precisely that order. Quoting is | |
18249 | # there to prevent editors from complaining about space-tab. | |
18250 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18251 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18252 | IFS=" "" $as_nl" |
18253 | ||
18254 | # Find who we are. Look in the path if we contain no directory separator. | |
18255 | case $0 in | |
18256 | *[\\/]* ) as_myself=$0 ;; | |
18257 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18258 | for as_dir in $PATH | |
18259 | do | |
18260 | IFS=$as_save_IFS | |
18261 | test -z "$as_dir" && as_dir=. | |
18262 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18263 | done | |
18264 | IFS=$as_save_IFS | |
18265 | ||
18266 | ;; | |
18267 | esac | |
18268 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18269 | # in which case we are not to be found in the path. | |
18270 | if test "x$as_myself" = x; then | |
18271 | as_myself=$0 | |
18272 | fi | |
18273 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18274 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18275 | { (exit 1); exit 1; } |
18276 | fi | |
18277 | ||
ad6254c5 | 18278 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18279 | for as_var in ENV MAIL MAILPATH |
18280 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18281 | done | |
ad6254c5 AK |
18282 | PS1='$ ' |
18283 | PS2='> ' | |
18284 | PS4='+ ' | |
18285 | ||
18286 | # NLS nuisances. | |
ec6a6fbe AK |
18287 | LC_ALL=C |
18288 | export LC_ALL | |
18289 | LANGUAGE=C | |
18290 | export LANGUAGE | |
8106cdd5 | 18291 | |
ad6254c5 | 18292 | # Required to use basename. |
7a197a62 AK |
18293 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18294 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18295 | as_expr=expr |
18296 | else | |
18297 | as_expr=false | |
18298 | fi | |
8106cdd5 | 18299 | |
7a197a62 | 18300 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18301 | as_basename=basename |
18302 | else | |
18303 | as_basename=false | |
18304 | fi | |
18305 | ||
18306 | ||
18307 | # Name of the executable. | |
7a197a62 | 18308 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18309 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18310 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18311 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18312 | $as_echo X/"$0" | |
7a197a62 AK |
18313 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18314 | s//\1/ | |
18315 | q | |
18316 | } | |
18317 | /^X\/\(\/\/\)$/{ | |
18318 | s//\1/ | |
18319 | q | |
18320 | } | |
18321 | /^X\/\(\/\).*/{ | |
18322 | s//\1/ | |
18323 | q | |
18324 | } | |
18325 | s/.*/./; q'` | |
ad6254c5 | 18326 | |
7a197a62 AK |
18327 | # CDPATH. |
18328 | $as_unset CDPATH | |
ad6254c5 AK |
18329 | |
18330 | ||
ad6254c5 | 18331 | |
ad6254c5 AK |
18332 | as_lineno_1=$LINENO |
18333 | as_lineno_2=$LINENO | |
ad6254c5 | 18334 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18335 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18336 | |
ad6254c5 AK |
18337 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18338 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18339 | # line-number line after each line using $LINENO; the second 'sed' |
18340 | # does the real work. The second script uses 'N' to pair each | |
18341 | # line-number line with the line containing $LINENO, and appends | |
18342 | # trailing '-' during substitution so that $LINENO is not a special | |
18343 | # case at line end. | |
ad6254c5 | 18344 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18345 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18346 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18347 | sed -n ' | |
18348 | p | |
18349 | /[$]LINENO/= | |
18350 | ' <$as_myself | | |
ad6254c5 | 18351 | sed ' |
7a197a62 AK |
18352 | s/[$]LINENO.*/&-/ |
18353 | t lineno | |
18354 | b | |
18355 | :lineno | |
ad6254c5 | 18356 | N |
7a197a62 AK |
18357 | :loop |
18358 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18359 | t loop |
7a197a62 | 18360 | s/-\n.*// |
ad6254c5 | 18361 | ' >$as_me.lineno && |
7a197a62 | 18362 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18363 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18364 | { (exit 1); exit 1; }; } |
18365 | ||
18366 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18367 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18368 | # original and so on. Autoconf is especially sensitive to this). |
18369 | . "./$as_me.lineno" | |
ad6254c5 AK |
18370 | # Exit status is that of the last command. |
18371 | exit | |
18372 | } | |
18373 | ||
18374 | ||
7a197a62 AK |
18375 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18376 | as_dirname=dirname | |
18377 | else | |
18378 | as_dirname=false | |
18379 | fi | |
18380 | ||
18381 | ECHO_C= ECHO_N= ECHO_T= | |
18382 | case `echo -n x` in | |
18383 | -n*) | |
18384 | case `echo 'x\c'` in | |
18385 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18386 | *) ECHO_C='\c';; | |
18387 | esac;; | |
18388 | *) | |
18389 | ECHO_N='-n';; | |
ad6254c5 | 18390 | esac |
7a197a62 AK |
18391 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18392 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18393 | as_expr=expr |
18394 | else | |
18395 | as_expr=false | |
18396 | fi | |
80992638 | 18397 | |
ad6254c5 | 18398 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18399 | if test -d conf$$.dir; then |
18400 | rm -f conf$$.dir/conf$$.file | |
18401 | else | |
18402 | rm -f conf$$.dir | |
ec6a6fbe AK |
18403 | mkdir conf$$.dir 2>/dev/null |
18404 | fi | |
18405 | if (echo >conf$$.file) 2>/dev/null; then | |
18406 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18407 | as_ln_s='ln -s' | |
18408 | # ... but there are two gotchas: | |
18409 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18410 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18411 | # In both cases, we have to default to `cp -p'. | |
18412 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18413 | as_ln_s='cp -p' | |
18414 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18415 | as_ln_s=ln | |
18416 | else | |
ad6254c5 | 18417 | as_ln_s='cp -p' |
ec6a6fbe | 18418 | fi |
ad6254c5 AK |
18419 | else |
18420 | as_ln_s='cp -p' | |
18421 | fi | |
7a197a62 AK |
18422 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18423 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18424 | |
ad6254c5 AK |
18425 | if mkdir -p . 2>/dev/null; then |
18426 | as_mkdir_p=: | |
18427 | else | |
8a2fc586 | 18428 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18429 | as_mkdir_p=false |
18430 | fi | |
18431 | ||
25fbec5b AK |
18432 | if test -x / >/dev/null 2>&1; then |
18433 | as_test_x='test -x' | |
7a197a62 | 18434 | else |
25fbec5b AK |
18435 | if ls -dL / >/dev/null 2>&1; then |
18436 | as_ls_L_option=L | |
18437 | else | |
18438 | as_ls_L_option= | |
18439 | fi | |
18440 | as_test_x=' | |
18441 | eval sh -c '\'' | |
18442 | if test -d "$1"; then | |
ec6a6fbe | 18443 | test -d "$1/."; |
25fbec5b AK |
18444 | else |
18445 | case $1 in | |
ec6a6fbe | 18446 | -*)set "./$1";; |
25fbec5b AK |
18447 | esac; |
18448 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18449 | ???[sx]*):;;*)false;;esac;fi | |
18450 | '\'' sh | |
18451 | ' | |
7a197a62 | 18452 | fi |
25fbec5b | 18453 | as_executable_p=$as_test_x |
ad6254c5 AK |
18454 | |
18455 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18456 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18457 | |
18458 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18459 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18460 | |
18461 | ||
ad6254c5 AK |
18462 | exec 6>&1 |
18463 | ||
7a197a62 | 18464 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18465 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18466 | # values after options handling. |
18467 | ac_log=" | |
ad6254c5 | 18468 | This file was extended by $as_me, which was |
ec6a6fbe | 18469 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18470 | |
18471 | CONFIG_FILES = $CONFIG_FILES | |
18472 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18473 | CONFIG_LINKS = $CONFIG_LINKS | |
18474 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18475 | $ $0 $@ | |
18476 | ||
7a197a62 AK |
18477 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18478 | " | |
18479 | ||
ad6254c5 AK |
18480 | _ACEOF |
18481 | ||
ec6a6fbe AK |
18482 | case $ac_config_files in *" |
18483 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18484 | esac | |
18485 | ||
18486 | case $ac_config_headers in *" | |
18487 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18488 | esac | |
18489 | ||
18490 | ||
18491 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18492 | # Files that config.status was made for. |
68f2de6d AK |
18493 | config_files="$ac_config_files" |
18494 | config_headers="$ac_config_headers" | |
ad6254c5 | 18495 | |
7a197a62 | 18496 | _ACEOF |
ad6254c5 | 18497 | |
ec6a6fbe | 18498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18499 | ac_cs_usage="\ |
18500 | \`$as_me' instantiates files from templates according to the | |
18501 | current configuration. | |
18502 | ||
ec6a6fbe | 18503 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18504 | |
18505 | -h, --help print this help, then exit | |
25fbec5b | 18506 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18507 | -q, --quiet, --silent |
18508 | do not print progress messages | |
ad6254c5 AK |
18509 | -d, --debug don't remove temporary files |
18510 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18511 | --file=FILE[:TEMPLATE] |
18512 | instantiate the configuration file FILE | |
18513 | --header=FILE[:TEMPLATE] | |
18514 | instantiate the configuration header FILE | |
ad6254c5 AK |
18515 | |
18516 | Configuration files: | |
18517 | $config_files | |
18518 | ||
72b2cb61 AK |
18519 | Configuration headers: |
18520 | $config_headers | |
18521 | ||
ad6254c5 | 18522 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18523 | |
7a197a62 | 18524 | _ACEOF |
ec6a6fbe | 18525 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18526 | ac_cs_version="\\ |
18527 | config.status | |
ec6a6fbe AK |
18528 | configured by $0, generated by GNU Autoconf 2.63, |
18529 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18530 | |
ec6a6fbe | 18531 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18532 | This config.status script is free software; the Free Software Foundation |
18533 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18534 | |
18535 | ac_pwd='$ac_pwd' | |
18536 | srcdir='$srcdir' | |
18537 | INSTALL='$INSTALL' | |
fddafd51 | 18538 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18539 | AWK='$AWK' |
18540 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18541 | _ACEOF |
18542 | ||
ec6a6fbe AK |
18543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18544 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18545 | ac_need_defaults=: |
18546 | while test $# != 0 | |
18547 | do | |
18548 | case $1 in | |
18549 | --*=*) | |
7a197a62 AK |
18550 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18551 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18552 | ac_shift=: |
18553 | ;; | |
7a197a62 | 18554 | *) |
ad6254c5 AK |
18555 | ac_option=$1 |
18556 | ac_optarg=$2 | |
18557 | ac_shift=shift | |
18558 | ;; | |
ad6254c5 AK |
18559 | esac |
18560 | ||
18561 | case $ac_option in | |
18562 | # Handling of the options. | |
ad6254c5 AK |
18563 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18564 | ac_cs_recheck=: ;; | |
7a197a62 | 18565 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18566 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18567 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18568 | debug=: ;; |
18569 | --file | --fil | --fi | --f ) | |
18570 | $ac_shift | |
ec6a6fbe AK |
18571 | case $ac_optarg in |
18572 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18573 | esac | |
18574 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18575 | ac_need_defaults=false;; |
18576 | --header | --heade | --head | --hea ) | |
18577 | $ac_shift | |
ec6a6fbe AK |
18578 | case $ac_optarg in |
18579 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18580 | esac | |
18581 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18582 | ac_need_defaults=false;; |
7a197a62 AK |
18583 | --he | --h) |
18584 | # Conflict between --help and --header | |
ec6a6fbe | 18585 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18586 | Try \`$0 --help' for more information." >&2 |
18587 | { (exit 1); exit 1; }; };; | |
18588 | --help | --hel | -h ) | |
ec6a6fbe | 18589 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18590 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18591 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18592 | ac_cs_silent=: ;; | |
18593 | ||
18594 | # This is an error. | |
ec6a6fbe | 18595 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18596 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18597 | { (exit 1); exit 1; }; } ;; |
18598 | ||
7a197a62 AK |
18599 | *) ac_config_targets="$ac_config_targets $1" |
18600 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18601 | |
18602 | esac | |
18603 | shift | |
18604 | done | |
18605 | ||
18606 | ac_configure_extra_args= | |
18607 | ||
18608 | if $ac_cs_silent; then | |
18609 | exec 6>/dev/null | |
18610 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18611 | fi | |
18612 | ||
18613 | _ACEOF | |
ec6a6fbe | 18614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18615 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18616 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18617 | shift | |
18618 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18619 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18620 | export CONFIG_SHELL |
ec6a6fbe | 18621 | exec "\$@" |
ad6254c5 AK |
18622 | fi |
18623 | ||
18624 | _ACEOF | |
ec6a6fbe | 18625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18626 | exec 5>>config.log |
18627 | { | |
18628 | echo | |
18629 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18630 | ## Running $as_me. ## | |
18631 | _ASBOX | |
ec6a6fbe | 18632 | $as_echo "$ac_log" |
7a197a62 | 18633 | } >&5 |
ad6254c5 | 18634 | |
7a197a62 | 18635 | _ACEOF |
ec6a6fbe | 18636 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18637 | _ACEOF |
ad6254c5 | 18638 | |
ec6a6fbe | 18639 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18640 | |
18641 | # Handling of arguments. | |
ad6254c5 AK |
18642 | for ac_config_target in $ac_config_targets |
18643 | do | |
7a197a62 AK |
18644 | case $ac_config_target in |
18645 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18646 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18647 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18648 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18649 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18650 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18651 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18652 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18653 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18654 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18655 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18656 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18657 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18658 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18659 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18660 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18661 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18662 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18663 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18664 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18665 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18666 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18667 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18668 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18669 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18670 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18671 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18672 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18673 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18674 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18675 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18676 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18677 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18678 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18679 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18680 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18681 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18682 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
18683 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
18684 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
7a197a62 | 18685 | |
ec6a6fbe AK |
18686 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18687 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18688 | { (exit 1); exit 1; }; };; |
80992638 | 18689 | esac |
ad6254c5 AK |
18690 | done |
18691 | ||
7a197a62 | 18692 | |
ad6254c5 AK |
18693 | # If the user did not use the arguments to specify the items to instantiate, |
18694 | # then the envvar interface is used. Set only those that are not. | |
18695 | # We use the long form for the default assignment because of an extremely | |
18696 | # bizarre bug on SunOS 4.1.3. | |
18697 | if $ac_need_defaults; then | |
18698 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18699 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18700 | fi |
18701 | ||
18702 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18703 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18704 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18705 | # Hook for its removal unless debugging. |
18706 | # Note that there is a small window in which the directory will not be cleaned: | |
18707 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18708 | $debug || |
18709 | { | |
7a197a62 AK |
18710 | tmp= |
18711 | trap 'exit_status=$? | |
18712 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18713 | ' 0 | |
ad6254c5 AK |
18714 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18715 | } | |
ad6254c5 AK |
18716 | # Create a (secure) tmp directory for tmp files. |
18717 | ||
18718 | { | |
7a197a62 | 18719 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18720 | test -n "$tmp" && test -d "$tmp" |
18721 | } || | |
18722 | { | |
7a197a62 AK |
18723 | tmp=./conf$$-$RANDOM |
18724 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18725 | } || |
18726 | { | |
ec6a6fbe | 18727 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18728 | { (exit 1); exit 1; } |
18729 | } | |
18730 | ||
ec6a6fbe AK |
18731 | # Set up the scripts for CONFIG_FILES section. |
18732 | # No need to generate them if there are no CONFIG_FILES. | |
18733 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18734 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18735 | |
68f2de6d | 18736 | |
ec6a6fbe AK |
18737 | ac_cr='\r' |
18738 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18739 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18740 | ac_cs_awk_cr='\\r' | |
18741 | else | |
18742 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18743 | fi |
7a197a62 | 18744 | |
ec6a6fbe | 18745 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18746 | _ACEOF |
7a197a62 | 18747 | |
8106cdd5 | 18748 | |
ec6a6fbe AK |
18749 | { |
18750 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18751 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18752 | echo "_ACEOF" | |
18753 | } >conf$$subs.sh || | |
18754 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18755 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18756 | { (exit 1); exit 1; }; } | |
18757 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18758 | ac_delim='%!_!# ' |
18759 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18760 | . ./conf$$subs.sh || |
18761 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18762 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18763 | { (exit 1); exit 1; }; } | |
18764 | ||
18765 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18766 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18767 | break |
18768 | elif $ac_last_try; then | |
ec6a6fbe AK |
18769 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18770 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18771 | { (exit 1); exit 1; }; } |
18772 | else | |
18773 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18774 | fi | |
18775 | done | |
ec6a6fbe AK |
18776 | rm -f conf$$subs.sh |
18777 | ||
18778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18779 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18780 | _ACEOF | |
18781 | sed -n ' | |
18782 | h | |
18783 | s/^/S["/; s/!.*/"]=/ | |
18784 | p | |
18785 | g | |
18786 | s/^[^!]*!// | |
18787 | :repl | |
18788 | t repl | |
18789 | s/'"$ac_delim"'$// | |
18790 | t delim | |
18791 | :nl | |
18792 | h | |
18793 | s/\(.\{148\}\).*/\1/ | |
18794 | t more1 | |
18795 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18796 | p | |
18797 | n | |
18798 | b repl | |
18799 | :more1 | |
18800 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18801 | p | |
18802 | g | |
18803 | s/.\{148\}// | |
18804 | t nl | |
18805 | :delim | |
18806 | h | |
18807 | s/\(.\{148\}\).*/\1/ | |
18808 | t more2 | |
18809 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18810 | p | |
18811 | b | |
18812 | :more2 | |
18813 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18814 | p | |
18815 | g | |
18816 | s/.\{148\}// | |
18817 | t delim | |
18818 | ' <conf$$subs.awk | sed ' | |
18819 | /^[^""]/{ | |
18820 | N | |
18821 | s/\n// | |
18822 | } | |
18823 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18824 | rm -f conf$$subs.awk | |
18825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18826 | _ACAWK | |
18827 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18828 | for (key in S) S_is_set[key] = 1 | |
18829 | FS = "\a" | |
7a197a62 | 18830 | |
ec6a6fbe AK |
18831 | } |
18832 | { | |
18833 | line = $ 0 | |
18834 | nfields = split(line, field, "@") | |
18835 | substed = 0 | |
18836 | len = length(field[1]) | |
18837 | for (i = 2; i < nfields; i++) { | |
18838 | key = field[i] | |
18839 | keylen = length(key) | |
18840 | if (S_is_set[key]) { | |
18841 | value = S[key] | |
18842 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18843 | len += length(value) + length(field[++i]) | |
18844 | substed = 1 | |
18845 | } else | |
18846 | len += 1 + keylen | |
18847 | } | |
18848 | ||
18849 | print line | |
18850 | } | |
fddafd51 | 18851 | |
ec6a6fbe | 18852 | _ACAWK |
1995c9ff | 18853 | _ACEOF |
ec6a6fbe AK |
18854 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18855 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18856 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18857 | else | |
18858 | cat | |
18859 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18860 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
18861 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
18862 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
18863 | _ACEOF |
18864 | ||
7a197a62 AK |
18865 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18866 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18867 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18868 | # (actually we leave an empty line to preserve line numbers). | |
18869 | if test "x$srcdir" = x.; then | |
18870 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18871 | s/:*\$(srcdir):*/:/ | |
18872 | s/:*\${srcdir}:*/:/ | |
18873 | s/:*@srcdir@:*/:/ | |
18874 | s/^\([^=]*=[ ]*\):*/\1/ | |
18875 | s/:*$// | |
18876 | s/^[^=]*=[ ]*$// | |
18877 | }' | |
18878 | fi | |
18879 | ||
ec6a6fbe | 18880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18881 | fi # test -n "$CONFIG_FILES" |
18882 | ||
ec6a6fbe AK |
18883 | # Set up the scripts for CONFIG_HEADERS section. |
18884 | # No need to generate them if there are no CONFIG_HEADERS. | |
18885 | # This happens for instance with `./config.status Makefile'. | |
18886 | if test -n "$CONFIG_HEADERS"; then | |
18887 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18888 | BEGIN { | |
18889 | _ACEOF | |
18890 | ||
18891 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18892 | # here-document in config.status, that substitutes the proper values into | |
18893 | # config.h.in to produce config.h. | |
18894 | ||
18895 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18896 | # handling of long lines. | |
18897 | ac_delim='%!_!# ' | |
18898 | for ac_last_try in false false :; do | |
18899 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18900 | if test -z "$ac_t"; then | |
18901 | break | |
18902 | elif $ac_last_try; then | |
18903 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
18904 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
18905 | { (exit 1); exit 1; }; } | |
18906 | else | |
18907 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18908 | fi | |
18909 | done | |
18910 | ||
18911 | # For the awk script, D is an array of macro values keyed by name, | |
18912 | # likewise P contains macro parameters if any. Preserve backslash | |
18913 | # newline sequences. | |
18914 | ||
18915 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18916 | sed -n ' | |
18917 | s/.\{148\}/&'"$ac_delim"'/g | |
18918 | t rset | |
18919 | :rset | |
18920 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18921 | t def | |
18922 | d | |
18923 | :def | |
18924 | s/\\$// | |
18925 | t bsnl | |
18926 | s/["\\]/\\&/g | |
18927 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18928 | D["\1"]=" \3"/p | |
18929 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18930 | d | |
18931 | :bsnl | |
18932 | s/["\\]/\\&/g | |
18933 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18934 | D["\1"]=" \3\\\\\\n"\\/p | |
18935 | t cont | |
18936 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18937 | t cont | |
18938 | d | |
18939 | :cont | |
18940 | n | |
18941 | s/.\{148\}/&'"$ac_delim"'/g | |
18942 | t clear | |
18943 | :clear | |
18944 | s/\\$// | |
18945 | t bsnlc | |
18946 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18947 | d | |
18948 | :bsnlc | |
18949 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18950 | b cont | |
18951 | ' <confdefs.h | sed ' | |
18952 | s/'"$ac_delim"'/"\\\ | |
18953 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18954 | ||
18955 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18956 | for (key in D) D_is_set[key] = 1 | |
18957 | FS = "\a" | |
18958 | } | |
18959 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18960 | line = \$ 0 | |
18961 | split(line, arg, " ") | |
18962 | if (arg[1] == "#") { | |
18963 | defundef = arg[2] | |
18964 | mac1 = arg[3] | |
18965 | } else { | |
18966 | defundef = substr(arg[1], 2) | |
18967 | mac1 = arg[2] | |
18968 | } | |
18969 | split(mac1, mac2, "(") #) | |
18970 | macro = mac2[1] | |
18971 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18972 | if (D_is_set[macro]) { | |
18973 | # Preserve the white space surrounding the "#". | |
18974 | print prefix "define", macro P[macro] D[macro] | |
18975 | next | |
18976 | } else { | |
18977 | # Replace #undef with comments. This is necessary, for example, | |
18978 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18979 | # on some systems where configure will not decide to define it. | |
18980 | if (defundef == "undef") { | |
18981 | print "/*", prefix defundef, macro, "*/" | |
18982 | next | |
18983 | } | |
18984 | } | |
18985 | } | |
18986 | { print } | |
18987 | _ACAWK | |
18988 | _ACEOF | |
18989 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18990 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
18991 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
18992 | { (exit 1); exit 1; }; } | |
18993 | fi # test -n "$CONFIG_HEADERS" | |
18994 | ||
7a197a62 | 18995 | |
ec6a6fbe AK |
18996 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
18997 | shift | |
18998 | for ac_tag | |
7a197a62 AK |
18999 | do |
19000 | case $ac_tag in | |
19001 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19002 | esac | |
19003 | case $ac_mode$ac_tag in | |
19004 | :[FHL]*:*);; | |
ec6a6fbe AK |
19005 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
19006 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
19007 | { (exit 1); exit 1; }; };; |
19008 | :[FH]-) ac_tag=-:-;; | |
19009 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19010 | esac | |
19011 | ac_save_IFS=$IFS | |
19012 | IFS=: | |
19013 | set x $ac_tag | |
19014 | IFS=$ac_save_IFS | |
19015 | shift | |
19016 | ac_file=$1 | |
19017 | shift | |
19018 | ||
19019 | case $ac_mode in | |
19020 | :L) ac_source=$1;; | |
19021 | :[FH]) | |
19022 | ac_file_inputs= | |
19023 | for ac_f | |
19024 | do | |
19025 | case $ac_f in | |
19026 | -) ac_f="$tmp/stdin";; | |
19027 | *) # Look for the file first in the build tree, then in the source tree | |
19028 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19029 | # because $ac_f cannot contain `:'. | |
19030 | test -f "$ac_f" || | |
19031 | case $ac_f in | |
19032 | [\\/$]*) false;; | |
19033 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19034 | esac || | |
ec6a6fbe AK |
19035 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
19036 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
19037 | { (exit 1); exit 1; }; };; |
19038 | esac | |
ec6a6fbe AK |
19039 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19040 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
19041 | done |
19042 | ||
19043 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19044 | # use $as_me), people would be surprised to read: | |
19045 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
19046 | configure_input='Generated from '` |
19047 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19048 | `' by configure.' | |
7a197a62 AK |
19049 | if test x"$ac_file" != x-; then |
19050 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
19051 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
19052 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 19053 | fi |
ec6a6fbe AK |
19054 | # Neutralize special characters interpreted by sed in replacement strings. |
19055 | case $configure_input in #( | |
19056 | *\&* | *\|* | *\\* ) | |
19057 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19058 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19059 | *) ac_sed_conf_input=$configure_input;; | |
19060 | esac | |
7a197a62 AK |
19061 | |
19062 | case $ac_tag in | |
ec6a6fbe AK |
19063 | *:-:* | *:-) cat >"$tmp/stdin" \ |
19064 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19065 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19066 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
19067 | esac |
19068 | ;; | |
80992638 | 19069 | esac |
8106cdd5 | 19070 | |
7a197a62 | 19071 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 19072 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19073 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19074 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 19075 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19076 | $as_echo X"$ac_file" | |
7a197a62 AK |
19077 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19078 | s//\1/ | |
19079 | q | |
19080 | } | |
19081 | /^X\(\/\/\)[^/].*/{ | |
19082 | s//\1/ | |
19083 | q | |
19084 | } | |
19085 | /^X\(\/\/\)$/{ | |
19086 | s//\1/ | |
19087 | q | |
19088 | } | |
19089 | /^X\(\/\).*/{ | |
19090 | s//\1/ | |
19091 | q | |
19092 | } | |
19093 | s/.*/./; q'` | |
19094 | { as_dir="$ac_dir" | |
19095 | case $as_dir in #( | |
19096 | -*) as_dir=./$as_dir;; | |
19097 | esac | |
19098 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 19099 | as_dirs= |
7a197a62 AK |
19100 | while :; do |
19101 | case $as_dir in #( | |
ec6a6fbe | 19102 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
19103 | *) as_qdir=$as_dir;; |
19104 | esac | |
19105 | as_dirs="'$as_qdir' $as_dirs" | |
19106 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 19107 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19108 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19109 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 19110 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19111 | $as_echo X"$as_dir" | |
7a197a62 AK |
19112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19113 | s//\1/ | |
19114 | q | |
19115 | } | |
19116 | /^X\(\/\/\)[^/].*/{ | |
19117 | s//\1/ | |
19118 | q | |
19119 | } | |
19120 | /^X\(\/\/\)$/{ | |
19121 | s//\1/ | |
19122 | q | |
19123 | } | |
19124 | /^X\(\/\).*/{ | |
19125 | s//\1/ | |
19126 | q | |
19127 | } | |
19128 | s/.*/./; q'` | |
19129 | test -d "$as_dir" && break | |
ad6254c5 | 19130 | done |
7a197a62 | 19131 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
19132 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
19133 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 19134 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
19135 | ac_builddir=. |
19136 | ||
7a197a62 AK |
19137 | case "$ac_dir" in |
19138 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19139 | *) | |
ec6a6fbe | 19140 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 19141 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19142 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19143 | case $ac_top_builddir_sub in |
19144 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19145 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19146 | esac ;; | |
19147 | esac | |
19148 | ac_abs_top_builddir=$ac_pwd | |
19149 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19150 | # for backward compatibility: | |
19151 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19152 | |
19153 | case $srcdir in | |
7a197a62 | 19154 | .) # We are building in place. |
ad6254c5 | 19155 | ac_srcdir=. |
7a197a62 AK |
19156 | ac_top_srcdir=$ac_top_builddir_sub |
19157 | ac_abs_top_srcdir=$ac_pwd ;; | |
19158 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19159 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19160 | ac_top_srcdir=$srcdir |
19161 | ac_abs_top_srcdir=$srcdir ;; | |
19162 | *) # Relative name. | |
19163 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19164 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19165 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19166 | esac |
7a197a62 | 19167 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19168 | |
ad6254c5 | 19169 | |
7a197a62 AK |
19170 | case $ac_mode in |
19171 | :F) | |
19172 | # | |
19173 | # CONFIG_FILE | |
19174 | # | |
ad6254c5 AK |
19175 | |
19176 | case $INSTALL in | |
19177 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19178 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19179 | esac |
fddafd51 ZK |
19180 | ac_MKDIR_P=$MKDIR_P |
19181 | case $MKDIR_P in | |
19182 | [\\/$]* | ?:[\\/]* ) ;; | |
19183 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19184 | esac | |
7a197a62 | 19185 | _ACEOF |
795ca3e5 | 19186 | |
ec6a6fbe | 19187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19188 | # If the template does not know about datarootdir, expand it. |
19189 | # FIXME: This hack should be removed a few years after 2.60. | |
19190 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19191 | ||
ec6a6fbe AK |
19192 | ac_sed_dataroot=' |
19193 | /datarootdir/ { | |
7a197a62 AK |
19194 | p |
19195 | q | |
19196 | } | |
19197 | /@datadir@/p | |
19198 | /@docdir@/p | |
19199 | /@infodir@/p | |
19200 | /@localedir@/p | |
19201 | /@mandir@/p | |
ec6a6fbe AK |
19202 | ' |
19203 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19204 | *datarootdir*) ac_datarootdir_seen=yes;; |
19205 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19207 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19208 | _ACEOF |
ec6a6fbe | 19209 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19210 | ac_datarootdir_hack=' |
19211 | s&@datadir@&$datadir&g | |
19212 | s&@docdir@&$docdir&g | |
19213 | s&@infodir@&$infodir&g | |
19214 | s&@localedir@&$localedir&g | |
19215 | s&@mandir@&$mandir&g | |
19216 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19217 | esac | |
19218 | _ACEOF | |
19219 | ||
19220 | # Neutralize VPATH when `$srcdir' = `.'. | |
19221 | # Shell code in configure.ac might set extrasub. | |
19222 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19224 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19225 | $extrasub |
19226 | _ACEOF | |
ec6a6fbe | 19227 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19228 | :t |
19229 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19230 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19231 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19232 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19233 | s&@srcdir@&$ac_srcdir&;t t |
19234 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19235 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19236 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19237 | s&@builddir@&$ac_builddir&;t t | |
19238 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19239 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19240 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19241 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19242 | $ac_datarootdir_hack |
ec6a6fbe AK |
19243 | " |
19244 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19245 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19246 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19247 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19248 | |
19249 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19250 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19251 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19253 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19254 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19255 | which seems to be undefined. Please make sure it is defined." >&2;} |
19256 | ||
19257 | rm -f "$tmp/stdin" | |
72b2cb61 | 19258 | case $ac_file in |
ec6a6fbe AK |
19259 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19260 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19261 | esac \ | |
19262 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19263 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19264 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19265 | ;; |
19266 | :H) | |
19267 | # | |
19268 | # CONFIG_HEADER | |
19269 | # | |
72b2cb61 | 19270 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19271 | { |
19272 | $as_echo "/* $configure_input */" \ | |
19273 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19274 | } >"$tmp/config.h" \ | |
19275 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19276 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19277 | { (exit 1); exit 1; }; } | |
19278 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19279 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19280 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19281 | else |
ec6a6fbe AK |
19282 | rm -f "$ac_file" |
19283 | mv "$tmp/config.h" "$ac_file" \ | |
19284 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19285 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19286 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19287 | fi |
19288 | else | |
ec6a6fbe AK |
19289 | $as_echo "/* $configure_input */" \ |
19290 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19291 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19292 | $as_echo "$as_me: error: could not create -" >&2;} | |
19293 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19294 | fi |
7a197a62 AK |
19295 | ;; |
19296 | ||
19297 | ||
19298 | esac | |
19299 | ||
19300 | done # for ac_tag | |
795ca3e5 | 19301 | |
795ca3e5 | 19302 | |
ad6254c5 AK |
19303 | { (exit 0); exit 0; } |
19304 | _ACEOF | |
795ca3e5 | 19305 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19306 | ac_clean_files=$ac_clean_files_save |
19307 | ||
ec6a6fbe AK |
19308 | test $ac_write_fail = 0 || |
19309 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19310 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19311 | { (exit 1); exit 1; }; } | |
19312 | ||
ad6254c5 AK |
19313 | |
19314 | # configure is writing to config.log, and then calls config.status. | |
19315 | # config.status does its own redirection, appending to config.log. | |
19316 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19317 | # by configure, so config.status won't be able to write to it; its | |
19318 | # output is simply discarded. So we exec the FD to /dev/null, | |
19319 | # effectively closing config.log, so it can be properly (re)opened and | |
19320 | # appended to by config.status. When coming back to configure, we | |
19321 | # need to make the FD available again. | |
19322 | if test "$no_create" != yes; then | |
19323 | ac_cs_success=: | |
19324 | ac_config_status_args= | |
19325 | test "$silent" = yes && | |
19326 | ac_config_status_args="$ac_config_status_args --quiet" | |
19327 | exec 5>/dev/null | |
19328 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19329 | exec 5>>config.log | |
19330 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19331 | # would make configure fail if this is the last instruction. | |
19332 | $ac_cs_success || { (exit 1); exit 1; } | |
19333 | fi | |
ec6a6fbe AK |
19334 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19335 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19336 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19337 | fi | |
795ca3e5 | 19338 | |
2dc95e1c AK |
19339 | |
19340 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19341 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19342 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19343 | fi |