]>
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 |
b1f08e51 | 694 | DEFAULT_RUN_DIR |
3399ae32 AK |
695 | DEFAULT_LOCK_DIR |
696 | DEFAULT_CACHE_SUBDIR | |
697 | DEFAULT_BACKUP_SUBDIR | |
698 | DEFAULT_ARCHIVE_SUBDIR | |
699 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
700 | DEBUG |
701 | COPTIMISE_FLAG | |
e2997b73 | 702 | CONFDIR |
ec6a6fbe AK |
703 | CMDLIB |
704 | CLVMD | |
705 | CLUSTER | |
706 | CLDWHOLEARCHIVE | |
707 | CLDNOWHOLEARCHIVE | |
708 | CLDFLAGS | |
709 | BUILD_DMEVENTD | |
66fd4529 | 710 | BUILD_CMIRRORD |
572fefeb | 711 | APPLIB |
ec6a6fbe AK |
712 | MODPROBE_CMD |
713 | MSGFMT | |
714 | LVM2CMD_LIB | |
572fefeb | 715 | LVM2APP_LIB |
54b362f9 AK |
716 | VALGRIND |
717 | RUBY19 | |
fd4728e1 | 718 | GENPNG |
ec6a6fbe AK |
719 | GENHTML |
720 | LCOV | |
90c80887 AK |
721 | SACKPT_LIBS |
722 | SACKPT_CFLAGS | |
a946372e AK |
723 | DLM_LIBS |
724 | DLM_CFLAGS | |
e2997b73 AK |
725 | CPG_LIBS |
726 | CPG_CFLAGS | |
727 | CONFDB_LIBS | |
728 | CONFDB_CFLAGS | |
a946372e AK |
729 | SALCK_LIBS |
730 | SALCK_CFLAGS | |
e2997b73 AK |
731 | QUORUM_LIBS |
732 | QUORUM_CFLAGS | |
a946372e AK |
733 | COROSYNC_LIBS |
734 | COROSYNC_CFLAGS | |
735 | CMAN_LIBS | |
736 | CMAN_CFLAGS | |
737 | GULM_LIBS | |
738 | GULM_CFLAGS | |
739 | CCS_LIBS | |
740 | CCS_CFLAGS | |
741 | PKGCONFIGINIT_LIBS | |
742 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 743 | PKG_CONFIG |
ec6a6fbe AK |
744 | POW_LIB |
745 | LIBOBJS | |
746 | ALLOCA | |
747 | CSCOPE_CMD | |
748 | CFLOW_CMD | |
749 | RANLIB | |
750 | MKDIR_P | |
751 | SET_MAKE | |
752 | LN_S | |
753 | INSTALL_DATA | |
754 | INSTALL_SCRIPT | |
755 | INSTALL_PROGRAM | |
756 | EGREP | |
757 | GREP | |
758 | CPP | |
759 | OBJEXT | |
760 | EXEEXT | |
761 | ac_ct_CC | |
762 | CPPFLAGS | |
763 | LDFLAGS | |
764 | CFLAGS | |
765 | CC | |
766 | AWK | |
767 | SED | |
768 | target_os | |
769 | target_vendor | |
770 | target_cpu | |
771 | target | |
772 | host_os | |
773 | host_vendor | |
774 | host_cpu | |
775 | host | |
776 | build_os | |
777 | build_vendor | |
778 | build_cpu | |
779 | build | |
780 | target_alias | |
781 | host_alias | |
782 | build_alias | |
783 | LIBS | |
784 | ECHO_T | |
785 | ECHO_N | |
786 | ECHO_C | |
787 | DEFS | |
788 | mandir | |
789 | localedir | |
790 | libdir | |
791 | psdir | |
792 | pdfdir | |
793 | dvidir | |
794 | htmldir | |
795 | infodir | |
796 | docdir | |
797 | oldincludedir | |
798 | includedir | |
799 | localstatedir | |
800 | sharedstatedir | |
801 | sysconfdir | |
802 | datadir | |
803 | datarootdir | |
804 | libexecdir | |
805 | sbindir | |
806 | bindir | |
807 | program_transform_name | |
808 | prefix | |
809 | exec_prefix | |
810 | PACKAGE_BUGREPORT | |
811 | PACKAGE_STRING | |
812 | PACKAGE_VERSION | |
813 | PACKAGE_TARNAME | |
814 | PACKAGE_NAME | |
815 | PATH_SEPARATOR | |
816 | SHELL' | |
ad6254c5 | 817 | ac_subst_files='' |
ec6a6fbe AK |
818 | ac_user_opts=' |
819 | enable_option_checking | |
820 | enable_static_link | |
821 | with_user | |
822 | with_group | |
823 | with_device_uid | |
824 | with_device_gid | |
825 | with_device_mode | |
826 | enable_lvm1_fallback | |
827 | with_lvm1 | |
828 | with_pool | |
829 | with_cluster | |
830 | with_snapshots | |
831 | with_mirrors | |
8fea97b7 | 832 | with_replicators |
ec6a6fbe AK |
833 | enable_readline |
834 | enable_realtime | |
835 | with_clvmd | |
8c4e8a18 | 836 | with_clvmd_pidfile |
66fd4529 AK |
837 | enable_cmirrord |
838 | with_cmirrord_pidfile | |
ec6a6fbe AK |
839 | enable_debug |
840 | with_optimisation | |
841 | enable_profiling | |
54b362f9 | 842 | enable_testing |
ec6a6fbe | 843 | enable_devmapper |
a5f46f6a AK |
844 | enable_udev_sync |
845 | enable_udev_rules | |
ec6a6fbe | 846 | enable_compat |
95eaa683 | 847 | enable_units_compat |
ec6a6fbe AK |
848 | enable_ioctl |
849 | enable_o_direct | |
572fefeb | 850 | enable_applib |
ec6a6fbe AK |
851 | enable_cmdlib |
852 | enable_pkgconfig | |
23b059e7 | 853 | enable_write_install |
ec6a6fbe AK |
854 | enable_fsadm |
855 | enable_dmeventd | |
856 | enable_selinux | |
857 | enable_nls | |
858 | with_localedir | |
859 | with_confdir | |
860 | with_staticdir | |
861 | with_usrlibdir | |
862 | with_usrsbindir | |
a5f46f6a | 863 | with_udev_prefix |
78ce7acc | 864 | with_udevdir |
ec6a6fbe AK |
865 | with_dmeventd_pidfile |
866 | with_dmeventd_path | |
8bae0a1e | 867 | with_default_run_dir |
3399ae32 AK |
868 | with_default_system_dir |
869 | with_default_archive_subdir | |
870 | with_default_backup_subdir | |
871 | with_default_cache_subdir | |
872 | with_default_locking_dir | |
ec6a6fbe AK |
873 | with_interface |
874 | ' | |
7a197a62 AK |
875 | ac_precious_vars='build_alias |
876 | host_alias | |
877 | target_alias | |
878 | CC | |
879 | CFLAGS | |
880 | LDFLAGS | |
25fbec5b | 881 | LIBS |
7a197a62 | 882 | CPPFLAGS |
e2997b73 AK |
883 | CPP |
884 | PKG_CONFIG | |
a946372e AK |
885 | PKGCONFIGINIT_CFLAGS |
886 | PKGCONFIGINIT_LIBS | |
887 | CCS_CFLAGS | |
888 | CCS_LIBS | |
889 | GULM_CFLAGS | |
890 | GULM_LIBS | |
891 | CMAN_CFLAGS | |
892 | CMAN_LIBS | |
893 | COROSYNC_CFLAGS | |
894 | COROSYNC_LIBS | |
e2997b73 AK |
895 | QUORUM_CFLAGS |
896 | QUORUM_LIBS | |
a946372e AK |
897 | SALCK_CFLAGS |
898 | SALCK_LIBS | |
e2997b73 AK |
899 | CONFDB_CFLAGS |
900 | CONFDB_LIBS | |
901 | CPG_CFLAGS | |
a946372e AK |
902 | CPG_LIBS |
903 | DLM_CFLAGS | |
90c80887 AK |
904 | DLM_LIBS |
905 | SACKPT_CFLAGS | |
906 | SACKPT_LIBS' | |
7a197a62 | 907 | |
795ca3e5 AK |
908 | |
909 | # Initialize some variables set by options. | |
ad6254c5 AK |
910 | ac_init_help= |
911 | ac_init_version=false | |
ec6a6fbe AK |
912 | ac_unrecognized_opts= |
913 | ac_unrecognized_sep= | |
795ca3e5 AK |
914 | # The variables have the same names as the options, with |
915 | # dashes changed to underlines. | |
ad6254c5 | 916 | cache_file=/dev/null |
795ca3e5 | 917 | exec_prefix=NONE |
795ca3e5 | 918 | no_create= |
795ca3e5 AK |
919 | no_recursion= |
920 | prefix=NONE | |
921 | program_prefix=NONE | |
922 | program_suffix=NONE | |
923 | program_transform_name=s,x,x, | |
924 | silent= | |
925 | site= | |
926 | srcdir= | |
795ca3e5 AK |
927 | verbose= |
928 | x_includes=NONE | |
929 | x_libraries=NONE | |
ad6254c5 AK |
930 | |
931 | # Installation directory options. | |
932 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
933 | # and all the variables that are supposed to be based on exec_prefix | |
934 | # by default will actually change. | |
935 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 936 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
937 | bindir='${exec_prefix}/bin' |
938 | sbindir='${exec_prefix}/sbin' | |
939 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
940 | datarootdir='${prefix}/share' |
941 | datadir='${datarootdir}' | |
795ca3e5 AK |
942 | sysconfdir='${prefix}/etc' |
943 | sharedstatedir='${prefix}/com' | |
944 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
945 | includedir='${prefix}/include' |
946 | oldincludedir='/usr/include' | |
7a197a62 AK |
947 | docdir='${datarootdir}/doc/${PACKAGE}' |
948 | infodir='${datarootdir}/info' | |
949 | htmldir='${docdir}' | |
950 | dvidir='${docdir}' | |
951 | pdfdir='${docdir}' | |
952 | psdir='${docdir}' | |
953 | libdir='${exec_prefix}/lib' | |
954 | localedir='${datarootdir}/locale' | |
955 | mandir='${datarootdir}/man' | |
795ca3e5 | 956 | |
795ca3e5 | 957 | ac_prev= |
7a197a62 | 958 | ac_dashdash= |
795ca3e5 AK |
959 | for ac_option |
960 | do | |
795ca3e5 AK |
961 | # If the previous option needs an argument, assign it. |
962 | if test -n "$ac_prev"; then | |
7a197a62 | 963 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
964 | ac_prev= |
965 | continue | |
966 | fi | |
967 | ||
7a197a62 AK |
968 | case $ac_option in |
969 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
970 | *) ac_optarg=yes ;; | |
971 | esac | |
795ca3e5 AK |
972 | |
973 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
974 | ||
7a197a62 AK |
975 | case $ac_dashdash$ac_option in |
976 | --) | |
977 | ac_dashdash=yes ;; | |
795ca3e5 AK |
978 | |
979 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
980 | ac_prev=bindir ;; | |
981 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 982 | bindir=$ac_optarg ;; |
795ca3e5 AK |
983 | |
984 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 985 | ac_prev=build_alias ;; |
795ca3e5 | 986 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 987 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
988 | |
989 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
990 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
991 | ac_prev=cache_file ;; | |
992 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
993 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
994 | cache_file=$ac_optarg ;; |
995 | ||
996 | --config-cache | -C) | |
997 | cache_file=config.cache ;; | |
795ca3e5 | 998 | |
7a197a62 | 999 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 1000 | ac_prev=datadir ;; |
7a197a62 | 1001 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1002 | datadir=$ac_optarg ;; |
795ca3e5 | 1003 | |
7a197a62 AK |
1004 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1005 | | --dataroo | --dataro | --datar) | |
1006 | ac_prev=datarootdir ;; | |
1007 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1008 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1009 | datarootdir=$ac_optarg ;; | |
1010 | ||
795ca3e5 | 1011 | -disable-* | --disable-*) |
ec6a6fbe | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1013 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1015 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1016 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1017 | ac_useropt_orig=$ac_useropt |
1018 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1019 | case $ac_user_opts in | |
1020 | *" | |
1021 | "enable_$ac_useropt" | |
1022 | "*) ;; | |
1023 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1024 | ac_unrecognized_sep=', ';; | |
1025 | esac | |
1026 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1027 | |
1028 | -docdir | --docdir | --docdi | --doc | --do) | |
1029 | ac_prev=docdir ;; | |
1030 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1031 | docdir=$ac_optarg ;; | |
1032 | ||
1033 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1034 | ac_prev=dvidir ;; | |
1035 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1036 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1037 | |
1038 | -enable-* | --enable-*) | |
ec6a6fbe | 1039 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1040 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1041 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1042 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1043 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1044 | ac_useropt_orig=$ac_useropt |
1045 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1046 | case $ac_user_opts in | |
1047 | *" | |
1048 | "enable_$ac_useropt" | |
1049 | "*) ;; | |
1050 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1051 | ac_unrecognized_sep=', ';; | |
1052 | esac | |
1053 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1054 | |
1055 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1056 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1057 | | --exec | --exe | --ex) | |
1058 | ac_prev=exec_prefix ;; | |
1059 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1060 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1061 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1062 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1063 | |
1064 | -gas | --gas | --ga | --g) | |
1065 | # Obsolete; use --with-gas. | |
1066 | with_gas=yes ;; | |
1067 | ||
ad6254c5 AK |
1068 | -help | --help | --hel | --he | -h) |
1069 | ac_init_help=long ;; | |
1070 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1071 | ac_init_help=recursive ;; | |
1072 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1073 | ac_init_help=short ;; | |
795ca3e5 AK |
1074 | |
1075 | -host | --host | --hos | --ho) | |
ad6254c5 | 1076 | ac_prev=host_alias ;; |
795ca3e5 | 1077 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1078 | host_alias=$ac_optarg ;; |
795ca3e5 | 1079 | |
7a197a62 AK |
1080 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1081 | ac_prev=htmldir ;; | |
1082 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1083 | | --ht=*) | |
1084 | htmldir=$ac_optarg ;; | |
1085 | ||
795ca3e5 AK |
1086 | -includedir | --includedir | --includedi | --included | --include \ |
1087 | | --includ | --inclu | --incl | --inc) | |
1088 | ac_prev=includedir ;; | |
1089 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1090 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1091 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1092 | |
1093 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1094 | ac_prev=infodir ;; | |
1095 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1096 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1097 | |
1098 | -libdir | --libdir | --libdi | --libd) | |
1099 | ac_prev=libdir ;; | |
1100 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1101 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1102 | |
1103 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1104 | | --libexe | --libex | --libe) | |
1105 | ac_prev=libexecdir ;; | |
1106 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1107 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1108 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1109 | |
7a197a62 AK |
1110 | -localedir | --localedir | --localedi | --localed | --locale) |
1111 | ac_prev=localedir ;; | |
1112 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1113 | localedir=$ac_optarg ;; | |
1114 | ||
795ca3e5 | 1115 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1116 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1117 | ac_prev=localstatedir ;; |
1118 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1119 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1120 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1121 | |
1122 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1123 | ac_prev=mandir ;; | |
1124 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1125 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1126 | |
1127 | -nfp | --nfp | --nf) | |
1128 | # Obsolete; use --without-fp. | |
1129 | with_fp=no ;; | |
1130 | ||
1131 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1132 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1133 | no_create=yes ;; |
1134 | ||
1135 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1136 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1137 | no_recursion=yes ;; | |
1138 | ||
1139 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1140 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1141 | | --oldin | --oldi | --old | --ol | --o) | |
1142 | ac_prev=oldincludedir ;; | |
1143 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1144 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1145 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1146 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1147 | |
1148 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1149 | ac_prev=prefix ;; | |
1150 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1151 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1152 | |
1153 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1154 | | --program-pre | --program-pr | --program-p) | |
1155 | ac_prev=program_prefix ;; | |
1156 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1157 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1158 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1159 | |
1160 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1161 | | --program-suf | --program-su | --program-s) | |
1162 | ac_prev=program_suffix ;; | |
1163 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1164 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1165 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1166 | |
1167 | -program-transform-name | --program-transform-name \ | |
1168 | | --program-transform-nam | --program-transform-na \ | |
1169 | | --program-transform-n | --program-transform- \ | |
1170 | | --program-transform | --program-transfor \ | |
1171 | | --program-transfo | --program-transf \ | |
1172 | | --program-trans | --program-tran \ | |
1173 | | --progr-tra | --program-tr | --program-t) | |
1174 | ac_prev=program_transform_name ;; | |
1175 | -program-transform-name=* | --program-transform-name=* \ | |
1176 | | --program-transform-nam=* | --program-transform-na=* \ | |
1177 | | --program-transform-n=* | --program-transform-=* \ | |
1178 | | --program-transform=* | --program-transfor=* \ | |
1179 | | --program-transfo=* | --program-transf=* \ | |
1180 | | --program-trans=* | --program-tran=* \ | |
1181 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1182 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1183 | |
7a197a62 AK |
1184 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1185 | ac_prev=pdfdir ;; | |
1186 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1187 | pdfdir=$ac_optarg ;; | |
1188 | ||
1189 | -psdir | --psdir | --psdi | --psd | --ps) | |
1190 | ac_prev=psdir ;; | |
1191 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1192 | psdir=$ac_optarg ;; | |
1193 | ||
795ca3e5 AK |
1194 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1195 | | -silent | --silent | --silen | --sile | --sil) | |
1196 | silent=yes ;; | |
1197 | ||
1198 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1199 | ac_prev=sbindir ;; | |
1200 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1201 | | --sbi=* | --sb=*) | |
ad6254c5 | 1202 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1203 | |
1204 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1205 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1206 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1207 | | --sha | --sh) | |
1208 | ac_prev=sharedstatedir ;; | |
1209 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1210 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1211 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1212 | | --sha=* | --sh=*) | |
ad6254c5 | 1213 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1214 | |
1215 | -site | --site | --sit) | |
1216 | ac_prev=site ;; | |
1217 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1218 | site=$ac_optarg ;; |
795ca3e5 AK |
1219 | |
1220 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1221 | ac_prev=srcdir ;; | |
1222 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1223 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1224 | |
1225 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1226 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1227 | ac_prev=sysconfdir ;; | |
1228 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1229 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1230 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1231 | |
1232 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1233 | ac_prev=target_alias ;; |
795ca3e5 | 1234 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1235 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1236 | |
1237 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1238 | verbose=yes ;; | |
1239 | ||
ad6254c5 AK |
1240 | -version | --version | --versio | --versi | --vers | -V) |
1241 | ac_init_version=: ;; | |
795ca3e5 AK |
1242 | |
1243 | -with-* | --with-*) | |
ec6a6fbe | 1244 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1245 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1246 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1247 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1248 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1249 | ac_useropt_orig=$ac_useropt |
1250 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1251 | case $ac_user_opts in | |
1252 | *" | |
1253 | "with_$ac_useropt" | |
1254 | "*) ;; | |
1255 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1256 | ac_unrecognized_sep=', ';; | |
1257 | esac | |
1258 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1259 | |
1260 | -without-* | --without-*) | |
ec6a6fbe | 1261 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1262 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1263 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1264 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1265 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1266 | ac_useropt_orig=$ac_useropt |
1267 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1268 | case $ac_user_opts in | |
1269 | *" | |
1270 | "with_$ac_useropt" | |
1271 | "*) ;; | |
1272 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1273 | ac_unrecognized_sep=', ';; | |
1274 | esac | |
1275 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1276 | |
1277 | --x) | |
1278 | # Obsolete; use --with-x. | |
1279 | with_x=yes ;; | |
1280 | ||
1281 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1282 | | --x-incl | --x-inc | --x-in | --x-i) | |
1283 | ac_prev=x_includes ;; | |
1284 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1285 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1286 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1287 | |
1288 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1289 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1290 | ac_prev=x_libraries ;; | |
1291 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1292 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1293 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1294 | |
ec6a6fbe | 1295 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1296 | Try \`$0 --help' for more information." >&2 |
1297 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1298 | ;; |
1299 | ||
ad6254c5 AK |
1300 | *=*) |
1301 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1302 | # Reject names that are not valid shell variable names. | |
1303 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1304 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1305 | { (exit 1); exit 1; }; } |
7a197a62 | 1306 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1307 | export $ac_envvar ;; |
1308 | ||
795ca3e5 | 1309 | *) |
ad6254c5 | 1310 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1311 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1312 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1313 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1314 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1315 | ;; |
1316 | ||
1317 | esac | |
1318 | done | |
1319 | ||
1320 | if test -n "$ac_prev"; then | |
ad6254c5 | 1321 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1322 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1323 | { (exit 1); exit 1; }; } |
795ca3e5 | 1324 | fi |
795ca3e5 | 1325 | |
ec6a6fbe AK |
1326 | if test -n "$ac_unrecognized_opts"; then |
1327 | case $enable_option_checking in | |
1328 | no) ;; | |
1329 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1330 | { (exit 1); exit 1; }; } ;; | |
1331 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1332 | esac | |
1333 | fi | |
1334 | ||
1335 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1336 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1337 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1338 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1339 | libdir localedir mandir | |
795ca3e5 | 1340 | do |
7a197a62 | 1341 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1342 | # Remove trailing slashes. |
1343 | case $ac_val in | |
1344 | */ ) | |
1345 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1346 | eval $ac_var=\$ac_val;; | |
1347 | esac | |
1348 | # Be sure to have absolute directory names. | |
ad6254c5 | 1349 | case $ac_val in |
7a197a62 AK |
1350 | [\\/$]* | ?:[\\/]* ) continue;; |
1351 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1352 | esac |
ec6a6fbe | 1353 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1354 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1355 | done |
1356 | ||
ad6254c5 AK |
1357 | # There might be people who depend on the old broken behavior: `$host' |
1358 | # used to hold the argument of --host etc. | |
1359 | # FIXME: To remove some day. | |
1360 | build=$build_alias | |
1361 | host=$host_alias | |
1362 | target=$target_alias | |
1363 | ||
1364 | # FIXME: To remove some day. | |
1365 | if test "x$host_alias" != x; then | |
1366 | if test "x$build_alias" = x; then | |
1367 | cross_compiling=maybe | |
ec6a6fbe | 1368 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1369 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1370 | elif test "x$build_alias" != "x$host_alias"; then | |
1371 | cross_compiling=yes | |
1372 | fi | |
1373 | fi | |
8106cdd5 | 1374 | |
ad6254c5 AK |
1375 | ac_tool_prefix= |
1376 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1377 | ||
1378 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1379 | |
795ca3e5 | 1380 | |
7a197a62 AK |
1381 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1382 | ac_ls_di=`ls -di .` && | |
1383 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1384 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1385 | { (exit 1); exit 1; }; } |
1386 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1387 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1388 | { (exit 1); exit 1; }; } |
1389 | ||
1390 | ||
795ca3e5 AK |
1391 | # Find the source files, if location was not specified. |
1392 | if test -z "$srcdir"; then | |
1393 | ac_srcdir_defaulted=yes | |
7a197a62 | 1394 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1395 | ac_confdir=`$as_dirname -- "$as_myself" || |
1396 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1397 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1398 | X"$as_myself" : 'X\(//\)$' \| \ | |
1399 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1400 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1401 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1402 | s//\1/ | |
1403 | q | |
1404 | } | |
1405 | /^X\(\/\/\)[^/].*/{ | |
1406 | s//\1/ | |
1407 | q | |
1408 | } | |
1409 | /^X\(\/\/\)$/{ | |
1410 | s//\1/ | |
1411 | q | |
1412 | } | |
1413 | /^X\(\/\).*/{ | |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | s/.*/./; q'` | |
795ca3e5 | 1418 | srcdir=$ac_confdir |
7a197a62 | 1419 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1420 | srcdir=.. |
1421 | fi | |
1422 | else | |
1423 | ac_srcdir_defaulted=no | |
1424 | fi | |
7a197a62 AK |
1425 | if test ! -r "$srcdir/$ac_unique_file"; then |
1426 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1427 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1428 | { (exit 1); exit 1; }; } |
795ca3e5 | 1429 | fi |
7a197a62 AK |
1430 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1431 | ac_abs_confdir=`( | |
ec6a6fbe | 1432 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1433 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1434 | pwd)` |
1435 | # When building in place, set srcdir=. | |
1436 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1437 | srcdir=. | |
1438 | fi | |
1439 | # Remove unnecessary trailing slashes from srcdir. | |
1440 | # Double slashes in file names in object file debugging info | |
1441 | # mess up M-x gdb in Emacs. | |
1442 | case $srcdir in | |
1443 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1444 | esac | |
1445 | for ac_var in $ac_precious_vars; do | |
1446 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1447 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1448 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1449 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1450 | done | |
ad6254c5 AK |
1451 | |
1452 | # | |
1453 | # Report the --help message. | |
1454 | # | |
1455 | if test "$ac_init_help" = "long"; then | |
1456 | # Omit some internal or obsolete options to make the list less imposing. | |
1457 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1458 | cat <<_ACEOF | |
1459 | \`configure' configures this package to adapt to many kinds of systems. | |
1460 | ||
1461 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1462 | ||
1463 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1464 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1465 | ||
1466 | Defaults for the options are specified in brackets. | |
1467 | ||
1468 | Configuration: | |
1469 | -h, --help display this help and exit | |
1470 | --help=short display options specific to this package | |
1471 | --help=recursive display the short help of all the included packages | |
1472 | -V, --version display version information and exit | |
1473 | -q, --quiet, --silent do not print \`checking...' messages | |
1474 | --cache-file=FILE cache test results in FILE [disabled] | |
1475 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1476 | -n, --no-create do not create output files | |
1477 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1478 | ||
ad6254c5 AK |
1479 | Installation directories: |
1480 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1481 | [$ac_default_prefix] |
ad6254c5 | 1482 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1483 | [PREFIX] |
ad6254c5 AK |
1484 | |
1485 | By default, \`make install' will install all the files in | |
1486 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1487 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1488 | for instance \`--prefix=\$HOME'. | |
1489 | ||
1490 | For better control, use the options below. | |
1491 | ||
1492 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1493 | --bindir=DIR user executables [EPREFIX/bin] |
1494 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1495 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1496 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1497 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1498 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1499 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1500 | --includedir=DIR C header files [PREFIX/include] | |
1501 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1502 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1503 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1504 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1505 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1506 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1507 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1508 | --htmldir=DIR html documentation [DOCDIR] | |
1509 | --dvidir=DIR dvi documentation [DOCDIR] | |
1510 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1511 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1512 | _ACEOF |
1513 | ||
1514 | cat <<\_ACEOF | |
1515 | ||
1516 | System types: | |
1517 | --build=BUILD configure for building on BUILD [guessed] | |
1518 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1519 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1520 | _ACEOF | |
1521 | fi | |
1522 | ||
1523 | if test -n "$ac_init_help"; then | |
1524 | ||
1525 | cat <<\_ACEOF | |
1526 | ||
1527 | Optional Features: | |
ec6a6fbe | 1528 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1529 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1530 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1531 | --enable-static_link use this to link the tools to their libraries |
1532 | statically (default is dynamic linking | |
1533 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1534 | device-mapper is missing from the kernel |
71082be4 ZK |
1535 | --disable-readline disable readline support |
1536 | --enable-realtime enable realtime clock support | |
1537 | --enable-cmirrord enable the cluster mirror log daemon | |
1538 | --enable-debug enable debugging | |
1539 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1540 | --enable-testing enable testing targets in the makefile |
71082be4 ZK |
1541 | --disable-devmapper disable LVM2 device-mapper interaction |
1542 | --enable-udev_sync enable synchronisation with udev processing | |
1543 | --enable-udev_rules install rule files needed for udev synchronisation | |
1544 | --enable-compat enable support for old device-mapper versions | |
1545 | --enable-units-compat enable output compatibility with old versions that | |
1546 | that do not use KiB-style unit suffixes | |
1547 | --disable-driver disable calls to device-mapper in the kernel | |
1548 | --disable-o_direct disable O_DIRECT | |
1549 | --enable-applib build application library | |
1550 | --enable-cmdlib build shared command library | |
1551 | --enable-pkgconfig install pkgconfig support | |
1552 | --enable-write_install install user writable files | |
1553 | --disable-fsadm disable fsadm | |
1554 | --enable-dmeventd enable the device-mapper event daemon | |
1555 | --disable-selinux disable selinux support | |
1556 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1557 | |
1558 | Optional Packages: | |
1559 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1560 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
71082be4 ZK |
1561 | --with-user=USER set the owner of installed files [USER=] |
1562 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1563 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1564 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1565 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
ad6254c5 | 1566 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
71082be4 | 1567 | [TYPE=internal] |
ad6254c5 | 1568 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
71082be4 ZK |
1569 | [TYPE=internal] |
1570 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none | |
1571 | [TYPE=internal] | |
1572 | --with-snapshots=TYPE snapshot support: internal/shared/none | |
1573 | [TYPE=internal] | |
1574 | --with-mirrors=TYPE mirror support: internal/shared/none | |
1575 | [TYPE=internal] | |
1576 | --with-replicators=TYPE replicator support: internal/shared/none | |
1577 | [TYPE=none] | |
1578 | --with-clvmd=TYPE build cluster LVM Daemon | |
8c222979 | 1579 | The following cluster manager combinations are valid: |
a946372e AK |
1580 | * cman,gulm (RHEL4 or equivalent) |
1581 | * cman (RHEL5 or equivalent) | |
1582 | * cman,corosync,openais (or selection of them) | |
1091650a | 1583 | * singlenode (localhost only) |
a946372e AK |
1584 | * all (autodetect) |
1585 | * none (disable build) | |
71082be4 | 1586 | [TYPE=none] |
8c4e8a18 FDN |
1587 | --with-clvmd-pidfile=PATH |
1588 | clvmd pidfile [/var/run/clvmd.pid] | |
71082be4 ZK |
1589 | --with-cmirrord-pidfile=PATH |
1590 | cmirrord pidfile [/var/run/cmirrord.pid] | |
d0191583 | 1591 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
71082be4 ZK |
1592 | --with-localedir=DIR translation files in DIR [PREFIX/share/locale] |
1593 | --with-confdir=DIR configuration files in DIR [/etc] | |
1594 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1595 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1596 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1597 | --with-udev-prefix=UPREFIX | |
1598 | install udev rule files in UPREFIX [EPREFIX] | |
78ce7acc | 1599 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
71082be4 ZK |
1600 | --with-dmeventd-pidfile=PATH |
1601 | dmeventd pidfile [/var/run/dmeventd.pid] | |
1602 | --with-dmeventd-path=PATH | |
1603 | dmeventd path [EPREFIX/sbin/dmeventd] | |
8bae0a1e | 1604 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 ZK |
1605 | --with-default-system-dir=DIR |
1606 | default LVM system directory [/etc/lvm] | |
1607 | --with-default-archive-subdir=SUBDIR | |
1608 | default metadata archive subdir [archive] | |
1609 | --with-default-backup-subdir=SUBDIR | |
1610 | default metadata backup subdir [backup] | |
1611 | --with-default-cache-subdir=SUBDIR | |
1612 | default metadata cache subdir [cache] | |
1613 | --with-default-locking-dir=DIR | |
1614 | default locking directory [/var/lock/lvm] | |
1615 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1616 | |
1617 | Some influential environment variables: | |
1618 | CC C compiler command | |
1619 | CFLAGS C compiler flags | |
1620 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1621 | nonstandard directory <lib dir> | |
25fbec5b | 1622 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1623 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1624 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1625 | CPP C preprocessor |
e2997b73 | 1626 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1627 | PKGCONFIGINIT_CFLAGS |
1628 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1629 | PKGCONFIGINIT_LIBS | |
1630 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1631 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1632 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1633 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1634 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1635 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1636 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1637 | COROSYNC_CFLAGS | |
1638 | C compiler flags for COROSYNC, overriding pkg-config | |
1639 | COROSYNC_LIBS | |
1640 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1641 | QUORUM_CFLAGS |
1642 | C compiler flags for QUORUM, overriding pkg-config | |
1643 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1644 | SALCK_CFLAGS |
1645 | C compiler flags for SALCK, overriding pkg-config | |
1646 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1647 | CONFDB_CFLAGS |
1648 | C compiler flags for CONFDB, overriding pkg-config | |
1649 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1650 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1651 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1652 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1653 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1654 | SACKPT_CFLAGS |
1655 | C compiler flags for SACKPT, overriding pkg-config | |
1656 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1657 | |
1658 | Use these variables to override the choices made by `configure' or to help | |
1659 | it to find libraries and programs with nonstandard names/locations. | |
1660 | ||
1661 | _ACEOF | |
7a197a62 | 1662 | ac_status=$? |
ad6254c5 AK |
1663 | fi |
1664 | ||
1665 | if test "$ac_init_help" = "recursive"; then | |
1666 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1667 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1668 | test -d "$ac_dir" || |
1669 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1670 | continue | |
ad6254c5 AK |
1671 | ac_builddir=. |
1672 | ||
7a197a62 AK |
1673 | case "$ac_dir" in |
1674 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1675 | *) | |
ec6a6fbe | 1676 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1677 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1678 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1679 | case $ac_top_builddir_sub in |
1680 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1681 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1682 | esac ;; | |
1683 | esac | |
1684 | ac_abs_top_builddir=$ac_pwd | |
1685 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1686 | # for backward compatibility: | |
1687 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1688 | |
1689 | case $srcdir in | |
7a197a62 | 1690 | .) # We are building in place. |
ad6254c5 | 1691 | ac_srcdir=. |
7a197a62 AK |
1692 | ac_top_srcdir=$ac_top_builddir_sub |
1693 | ac_abs_top_srcdir=$ac_pwd ;; | |
1694 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1695 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1696 | ac_top_srcdir=$srcdir |
1697 | ac_abs_top_srcdir=$srcdir ;; | |
1698 | *) # Relative name. | |
1699 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1700 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1701 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1702 | esac |
7a197a62 AK |
1703 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1704 | ||
1705 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1706 | # Check for guested configure. | |
1707 | if test -f "$ac_srcdir/configure.gnu"; then | |
1708 | echo && | |
1709 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1710 | elif test -f "$ac_srcdir/configure"; then | |
1711 | echo && | |
1712 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1713 | else |
ec6a6fbe | 1714 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1715 | fi || ac_status=$? |
1716 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1717 | done |
1718 | fi | |
1719 | ||
7a197a62 | 1720 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1721 | if $ac_init_version; then |
1722 | cat <<\_ACEOF | |
7a197a62 | 1723 | configure |
ec6a6fbe | 1724 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1725 | |
7a197a62 | 1726 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1727 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1728 | This configure script is free software; the Free Software Foundation |
1729 | gives unlimited permission to copy, distribute and modify it. | |
1730 | _ACEOF | |
7a197a62 | 1731 | exit |
ad6254c5 | 1732 | fi |
7a197a62 | 1733 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1734 | This file contains any messages produced by compilers while |
1735 | running configure, to aid debugging if configure makes a mistake. | |
1736 | ||
1737 | It was created by $as_me, which was | |
ec6a6fbe | 1738 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1739 | |
1740 | $ $0 $@ | |
1741 | ||
1742 | _ACEOF | |
7a197a62 | 1743 | exec 5>>config.log |
ad6254c5 AK |
1744 | { |
1745 | cat <<_ASUNAME | |
1746 | ## --------- ## | |
1747 | ## Platform. ## | |
1748 | ## --------- ## | |
1749 | ||
1750 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1751 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1752 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1753 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1754 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1755 | ||
1756 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1757 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1758 | ||
1759 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1760 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1761 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1762 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1763 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1764 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1765 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1766 | ||
1767 | _ASUNAME | |
1768 | ||
1769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1770 | for as_dir in $PATH | |
1771 | do | |
1772 | IFS=$as_save_IFS | |
1773 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1774 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1775 | done |
7a197a62 | 1776 | IFS=$as_save_IFS |
ad6254c5 AK |
1777 | |
1778 | } >&5 | |
1779 | ||
1780 | cat >&5 <<_ACEOF | |
1781 | ||
1782 | ||
1783 | ## ----------- ## | |
1784 | ## Core tests. ## | |
1785 | ## ----------- ## | |
1786 | ||
1787 | _ACEOF | |
1788 | ||
1789 | ||
1790 | # Keep a trace of the command line. | |
1791 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1792 | # Strip out --silent because we don't want to record it for future runs. | |
1793 | # Also quote any args containing shell meta-characters. | |
1794 | # Make two passes to allow for proper duplicate-argument suppression. | |
1795 | ac_configure_args= | |
1796 | ac_configure_args0= | |
1797 | ac_configure_args1= | |
ad6254c5 AK |
1798 | ac_must_keep_next=false |
1799 | for ac_pass in 1 2 | |
1800 | do | |
1801 | for ac_arg | |
1802 | do | |
1803 | case $ac_arg in | |
1804 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1805 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1806 | | -silent | --silent | --silen | --sile | --sil) | |
1807 | continue ;; | |
7a197a62 | 1808 | *\'*) |
ec6a6fbe | 1809 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1810 | esac |
1811 | case $ac_pass in | |
1812 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1813 | 2) | |
1814 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1815 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1816 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1817 | else |
8a2fc586 AK |
1818 | case $ac_arg in |
1819 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1820 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1821 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1822 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1823 | case "$ac_configure_args0 " in | |
1824 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1825 | esac | |
1826 | ;; | |
1827 | -* ) ac_must_keep_next=true ;; | |
1828 | esac | |
ad6254c5 | 1829 | fi |
7a197a62 | 1830 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1831 | ;; |
1832 | esac | |
1833 | done | |
1834 | done | |
1835 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1836 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1837 | ||
1838 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1839 | # config.log. We remove comments because anyway the quotes in there | |
1840 | # would cause problems or look ugly. | |
7a197a62 AK |
1841 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1842 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1843 | trap 'exit_status=$? |
1844 | # Save into config.log some information that might help in debugging. | |
1845 | { | |
1846 | echo | |
1847 | ||
1848 | cat <<\_ASBOX | |
1849 | ## ---------------- ## | |
1850 | ## Cache variables. ## | |
1851 | ## ---------------- ## | |
1852 | _ASBOX | |
1853 | echo | |
1854 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1855 | ( |
1856 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1857 | eval ac_val=\$$ac_var | |
1858 | case $ac_val in #( | |
1859 | *${as_nl}*) | |
1860 | case $ac_var in #( | |
ec6a6fbe AK |
1861 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1862 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1863 | esac |
1864 | case $ac_var in #( | |
1865 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1866 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1867 | *) $as_unset $ac_var ;; |
1868 | esac ;; | |
1869 | esac | |
1870 | done | |
ad6254c5 | 1871 | (set) 2>&1 | |
7a197a62 AK |
1872 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1873 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1874 | sed -n \ |
7a197a62 AK |
1875 | "s/'\''/'\''\\\\'\'''\''/g; |
1876 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1877 | ;; #( | |
ad6254c5 | 1878 | *) |
7a197a62 | 1879 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1880 | ;; |
7a197a62 AK |
1881 | esac | |
1882 | sort | |
1883 | ) | |
ad6254c5 AK |
1884 | echo |
1885 | ||
1886 | cat <<\_ASBOX | |
1887 | ## ----------------- ## | |
1888 | ## Output variables. ## | |
1889 | ## ----------------- ## | |
1890 | _ASBOX | |
1891 | echo | |
1892 | for ac_var in $ac_subst_vars | |
1893 | do | |
7a197a62 AK |
1894 | eval ac_val=\$$ac_var |
1895 | case $ac_val in | |
ec6a6fbe | 1896 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1897 | esac |
ec6a6fbe | 1898 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1899 | done | sort |
1900 | echo | |
1901 | ||
1902 | if test -n "$ac_subst_files"; then | |
1903 | cat <<\_ASBOX | |
7a197a62 AK |
1904 | ## ------------------- ## |
1905 | ## File substitutions. ## | |
1906 | ## ------------------- ## | |
ad6254c5 AK |
1907 | _ASBOX |
1908 | echo | |
1909 | for ac_var in $ac_subst_files | |
1910 | do | |
7a197a62 AK |
1911 | eval ac_val=\$$ac_var |
1912 | case $ac_val in | |
ec6a6fbe | 1913 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1914 | esac |
ec6a6fbe | 1915 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1916 | done | sort |
1917 | echo | |
1918 | fi | |
1919 | ||
1920 | if test -s confdefs.h; then | |
1921 | cat <<\_ASBOX | |
1922 | ## ----------- ## | |
1923 | ## confdefs.h. ## | |
1924 | ## ----------- ## | |
1925 | _ASBOX | |
1926 | echo | |
7a197a62 | 1927 | cat confdefs.h |
ad6254c5 AK |
1928 | echo |
1929 | fi | |
1930 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1931 | $as_echo "$as_me: caught signal $ac_signal" |
1932 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1933 | } >&5 |
7a197a62 AK |
1934 | rm -f core *.core core.conftest.* && |
1935 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1936 | exit $exit_status |
7a197a62 | 1937 | ' 0 |
ad6254c5 AK |
1938 | for ac_signal in 1 2 13 15; do |
1939 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1940 | done | |
1941 | ac_signal=0 | |
1942 | ||
1943 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1944 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1945 | |
1946 | # Predefined preprocessor variables. | |
1947 | ||
1948 | cat >>confdefs.h <<_ACEOF | |
1949 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1950 | _ACEOF | |
1951 | ||
1952 | ||
1953 | cat >>confdefs.h <<_ACEOF | |
1954 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1955 | _ACEOF | |
1956 | ||
1957 | ||
1958 | cat >>confdefs.h <<_ACEOF | |
1959 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1960 | _ACEOF | |
8106cdd5 | 1961 | |
ad6254c5 AK |
1962 | |
1963 | cat >>confdefs.h <<_ACEOF | |
1964 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1965 | _ACEOF | |
1966 | ||
1967 | ||
1968 | cat >>confdefs.h <<_ACEOF | |
1969 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1970 | _ACEOF | |
1971 | ||
1972 | ||
1973 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1974 | # Prefer an explicitly selected file to automatically selected ones. |
1975 | ac_site_file1=NONE | |
1976 | ac_site_file2=NONE | |
7a197a62 | 1977 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1978 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1979 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1980 | ac_site_file1=$prefix/share/config.site |
1981 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1982 | else |
ec6a6fbe AK |
1983 | ac_site_file1=$ac_default_prefix/share/config.site |
1984 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1985 | fi |
ec6a6fbe | 1986 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1987 | do |
ec6a6fbe | 1988 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1989 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1990 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1991 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1992 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1993 | . "$ac_site_file" |
1994 | fi | |
1995 | done | |
1996 | ||
1997 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1998 | # Some versions of bash will fail to source /dev/null (special |
1999 | # files actually), so we avoid doing that. | |
2000 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
2001 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2002 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 2003 | case $cache_file in |
7a197a62 AK |
2004 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2005 | *) . "./$cache_file";; | |
ad6254c5 AK |
2006 | esac |
2007 | fi | |
795ca3e5 | 2008 | else |
ec6a6fbe AK |
2009 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2010 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
2011 | >$cache_file |
2012 | fi | |
2013 | ||
2014 | # Check that the precious variables saved in the cache have kept the same | |
2015 | # value. | |
2016 | ac_cache_corrupted=false | |
7a197a62 | 2017 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2018 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2019 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2020 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2021 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2022 | case $ac_old_set,$ac_new_set in |
2023 | set,) | |
ec6a6fbe AK |
2024 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2025 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2026 | ac_cache_corrupted=: ;; |
2027 | ,set) | |
ec6a6fbe AK |
2028 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2029 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2030 | ac_cache_corrupted=: ;; |
2031 | ,);; | |
2032 | *) | |
2033 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2034 | # differences in whitespace do not lead to failure. |
2035 | ac_old_val_w=`echo x $ac_old_val` | |
2036 | ac_new_val_w=`echo x $ac_new_val` | |
2037 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2038 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2039 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2040 | ac_cache_corrupted=: | |
2041 | else | |
2042 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2043 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2044 | eval $ac_var=\$ac_old_val | |
2045 | fi | |
2046 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2047 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2048 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2049 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2050 | fi;; |
2051 | esac | |
2052 | # Pass precious variables to config.status. | |
2053 | if test "$ac_new_set" = set; then | |
2054 | case $ac_new_val in | |
ec6a6fbe | 2055 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2056 | *) ac_arg=$ac_var=$ac_new_val ;; |
2057 | esac | |
2058 | case " $ac_configure_args " in | |
2059 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2060 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2061 | esac | |
2062 | fi | |
2063 | done | |
2064 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2065 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2066 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2067 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2068 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2069 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2070 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2071 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2072 | fi |
2073 | ||
ad6254c5 AK |
2074 | |
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ||
2082 | ||
2083 | ||
2084 | ||
2085 | ||
2086 | ||
2087 | ||
2088 | ||
2089 | ||
7a197a62 AK |
2090 | ac_ext=c |
2091 | ac_cpp='$CPP $CPPFLAGS' | |
2092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2095 | |
795ca3e5 AK |
2096 | |
2097 | ||
7a197a62 | 2098 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2099 | |
2100 | ||
80992638 | 2101 | ################################################################################ |
795ca3e5 | 2102 | ac_aux_dir= |
7a197a62 AK |
2103 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2104 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2105 | ac_aux_dir=$ac_dir |
2106 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2107 | break | |
7a197a62 | 2108 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2109 | ac_aux_dir=$ac_dir |
2110 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2111 | break | |
7a197a62 | 2112 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2113 | ac_aux_dir=$ac_dir |
2114 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2115 | break | |
795ca3e5 AK |
2116 | fi |
2117 | done | |
2118 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2119 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2120 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2121 | { (exit 1); exit 1; }; } |
795ca3e5 | 2122 | fi |
7a197a62 AK |
2123 | |
2124 | # These three variables are undocumented and unsupported, | |
2125 | # and are intended to be withdrawn in a future Autoconf release. | |
2126 | # They can cause serious problems if a builder's source tree is in a directory | |
2127 | # whose full name contains unusual characters. | |
2128 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2129 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2130 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2131 | ||
8ce0cbda AK |
2132 | |
2133 | ||
ad6254c5 | 2134 | ################################################################################ |
8ce0cbda | 2135 | # Make sure we can run config.sub. |
7a197a62 | 2136 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2137 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2138 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2139 | { (exit 1); exit 1; }; } |
2140 | ||
ec6a6fbe AK |
2141 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2142 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2143 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2144 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2145 | else |
7a197a62 AK |
2146 | ac_build_alias=$build_alias |
2147 | test "x$ac_build_alias" = x && | |
2148 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2149 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2150 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2151 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2152 | { (exit 1); exit 1; }; } |
7a197a62 | 2153 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2154 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2155 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2156 | { (exit 1); exit 1; }; } |
2157 | ||
2158 | fi | |
ec6a6fbe AK |
2159 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2160 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2161 | case $ac_cv_build in |
2162 | *-*-*) ;; | |
ec6a6fbe AK |
2163 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2164 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2165 | { (exit 1); exit 1; }; };; |
2166 | esac | |
ad6254c5 | 2167 | build=$ac_cv_build |
7a197a62 AK |
2168 | ac_save_IFS=$IFS; IFS='-' |
2169 | set x $ac_cv_build | |
2170 | shift | |
2171 | build_cpu=$1 | |
2172 | build_vendor=$2 | |
2173 | shift; shift | |
2174 | # Remember, the first character of IFS is used to create $*, | |
2175 | # except with old shells: | |
2176 | build_os=$* | |
2177 | IFS=$ac_save_IFS | |
2178 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2179 | |
2180 | ||
ec6a6fbe AK |
2181 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2182 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2183 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2184 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2185 | else |
7a197a62 AK |
2186 | if test "x$host_alias" = x; then |
2187 | ac_cv_host=$ac_cv_build | |
2188 | else | |
2189 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2190 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2191 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2192 | { (exit 1); exit 1; }; } |
7a197a62 | 2193 | fi |
ad6254c5 AK |
2194 | |
2195 | fi | |
ec6a6fbe AK |
2196 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2197 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2198 | case $ac_cv_host in |
2199 | *-*-*) ;; | |
ec6a6fbe AK |
2200 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2201 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2202 | { (exit 1); exit 1; }; };; |
2203 | esac | |
ad6254c5 | 2204 | host=$ac_cv_host |
7a197a62 AK |
2205 | ac_save_IFS=$IFS; IFS='-' |
2206 | set x $ac_cv_host | |
2207 | shift | |
2208 | host_cpu=$1 | |
2209 | host_vendor=$2 | |
2210 | shift; shift | |
2211 | # Remember, the first character of IFS is used to create $*, | |
2212 | # except with old shells: | |
2213 | host_os=$* | |
2214 | IFS=$ac_save_IFS | |
2215 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2216 | |
2217 | ||
ec6a6fbe AK |
2218 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2219 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2220 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2221 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2222 | else |
7a197a62 AK |
2223 | if test "x$target_alias" = x; then |
2224 | ac_cv_target=$ac_cv_host | |
2225 | else | |
2226 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2227 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2228 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2229 | { (exit 1); exit 1; }; } |
7a197a62 | 2230 | fi |
8ce0cbda | 2231 | |
ad6254c5 | 2232 | fi |
ec6a6fbe AK |
2233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2234 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2235 | case $ac_cv_target in |
2236 | *-*-*) ;; | |
ec6a6fbe AK |
2237 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2238 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2239 | { (exit 1); exit 1; }; };; |
2240 | esac | |
ad6254c5 | 2241 | target=$ac_cv_target |
7a197a62 AK |
2242 | ac_save_IFS=$IFS; IFS='-' |
2243 | set x $ac_cv_target | |
2244 | shift | |
2245 | target_cpu=$1 | |
2246 | target_vendor=$2 | |
2247 | shift; shift | |
2248 | # Remember, the first character of IFS is used to create $*, | |
2249 | # except with old shells: | |
2250 | target_os=$* | |
2251 | IFS=$ac_save_IFS | |
2252 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2253 | |
8ce0cbda | 2254 | |
ad6254c5 AK |
2255 | # The aliases save the names the user supplied, while $host etc. |
2256 | # will get canonicalized. | |
2257 | test -n "$target_alias" && | |
8ce0cbda AK |
2258 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2259 | NONENONEs,x,x, && | |
2260 | program_prefix=${target_alias}- | |
2261 | ||
8ce0cbda AK |
2262 | case "$host_os" in |
2263 | linux*) | |
7f54ef36 | 2264 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2265 | COPTIMISE_FLAG="-O2" |
2266 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2267 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2268 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2269 | LDDEPS="$LDDEPS .export.sym" | |
2270 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2271 | LIB_SUFFIX=so |
8ce0cbda AK |
2272 | DEVMAPPER=yes |
2273 | ODIRECT=yes | |
d0191583 | 2274 | DM_IOCTLS=yes |
8ce0cbda AK |
2275 | SELINUX=yes |
2276 | CLUSTER=internal | |
93bd259b | 2277 | FSADM=yes |
d0191583 | 2278 | ;; |
8ce0cbda AK |
2279 | darwin*) |
2280 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2281 | COPTIMISE_FLAG="-O2" | |
2282 | CLDFLAGS="$CLDFLAGS" | |
2283 | CLDWHOLEARCHIVE="-all_load" | |
2284 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2285 | LIB_SUFFIX=dylib |
a653923f | 2286 | DEVMAPPER=yes |
8ce0cbda | 2287 | ODIRECT=no |
d0191583 | 2288 | DM_IOCTLS=no |
8ce0cbda AK |
2289 | SELINUX=no |
2290 | CLUSTER=none | |
d0191583 JM |
2291 | FSADM=no |
2292 | ;; | |
8ce0cbda AK |
2293 | esac |
2294 | ||
80992638 | 2295 | ################################################################################ |
ec6a6fbe AK |
2296 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2297 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2298 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2299 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2300 | else |
2301 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2302 | for ac_i in 1 2 3 4 5 6 7; do | |
2303 | ac_script="$ac_script$as_nl$ac_script" | |
2304 | done | |
ec6a6fbe | 2305 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2306 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2307 | if test -z "$SED"; then |
5951ef33 | 2308 | ac_path_SED_found=false |
ec6a6fbe AK |
2309 | # Loop through the user's path and test for each of PROGNAME-LIST |
2310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2311 | for as_dir in $PATH |
2312 | do | |
2313 | IFS=$as_save_IFS | |
2314 | test -z "$as_dir" && as_dir=. | |
2315 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2316 | for ac_exec_ext in '' $ac_executable_extensions; do |
2317 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2318 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2319 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2320 | # Check for GNU $ac_path_SED |
2321 | case `"$ac_path_SED" --version 2>&1` in | |
2322 | *GNU*) | |
2323 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2324 | *) | |
2325 | ac_count=0 | |
ec6a6fbe | 2326 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2327 | while : |
2328 | do | |
2329 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2330 | mv "conftest.tmp" "conftest.in" | |
2331 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2332 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2333 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2334 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2335 | ac_count=`expr $ac_count + 1` | |
2336 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2337 | # Best one so far, save it but keep looking for a better one | |
2338 | ac_cv_path_SED="$ac_path_SED" | |
2339 | ac_path_SED_max=$ac_count | |
2340 | fi | |
2341 | # 10*(2^10) chars as input seems more than enough | |
2342 | test $ac_count -gt 10 && break | |
2343 | done | |
2344 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2345 | esac | |
2346 | ||
ec6a6fbe AK |
2347 | $ac_path_SED_found && break 3 |
2348 | done | |
5951ef33 AK |
2349 | done |
2350 | done | |
5951ef33 | 2351 | IFS=$as_save_IFS |
ec6a6fbe AK |
2352 | if test -z "$ac_cv_path_SED"; then |
2353 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2354 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2355 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2356 | fi |
5951ef33 AK |
2357 | else |
2358 | ac_cv_path_SED=$SED | |
2359 | fi | |
2360 | ||
2361 | fi | |
ec6a6fbe AK |
2362 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2363 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2364 | SED="$ac_cv_path_SED" |
2365 | rm -f conftest.sed | |
2366 | ||
ad6254c5 | 2367 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2368 | do |
ad6254c5 | 2369 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2370 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2371 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2372 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2373 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2374 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2375 | else |
2376 | if test -n "$AWK"; then | |
2377 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2378 | else | |
ad6254c5 AK |
2379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2380 | for as_dir in $PATH | |
2381 | do | |
2382 | IFS=$as_save_IFS | |
2383 | test -z "$as_dir" && as_dir=. | |
2384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2386 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2387 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2388 | break 2 |
2389 | fi | |
2390 | done | |
2391 | done | |
7a197a62 | 2392 | IFS=$as_save_IFS |
ad6254c5 | 2393 | |
795ca3e5 AK |
2394 | fi |
2395 | fi | |
ad6254c5 | 2396 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2397 | if test -n "$AWK"; then |
ec6a6fbe AK |
2398 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2399 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2400 | else |
ec6a6fbe AK |
2401 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2402 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2403 | fi |
2404 | ||
7a197a62 | 2405 | |
ad6254c5 AK |
2406 | test -n "$AWK" && break |
2407 | done | |
2408 | ||
2409 | ac_ext=c | |
2410 | ac_cpp='$CPP $CPPFLAGS' | |
2411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2414 | if test -n "$ac_tool_prefix"; then | |
2415 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2416 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2417 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2418 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2419 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2420 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2421 | else |
2422 | if test -n "$CC"; then | |
2423 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2424 | else | |
2425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2426 | for as_dir in $PATH | |
2427 | do | |
2428 | IFS=$as_save_IFS | |
2429 | test -z "$as_dir" && as_dir=. | |
2430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2432 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2433 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2434 | break 2 |
2435 | fi | |
2436 | done | |
8106cdd5 | 2437 | done |
7a197a62 | 2438 | IFS=$as_save_IFS |
8106cdd5 | 2439 | |
ad6254c5 AK |
2440 | fi |
2441 | fi | |
2442 | CC=$ac_cv_prog_CC | |
2443 | if test -n "$CC"; then | |
ec6a6fbe AK |
2444 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2445 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2446 | else |
ec6a6fbe AK |
2447 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2448 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2449 | fi |
2450 | ||
7a197a62 | 2451 | |
ad6254c5 AK |
2452 | fi |
2453 | if test -z "$ac_cv_prog_CC"; then | |
2454 | ac_ct_CC=$CC | |
2455 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2456 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2457 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2458 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2459 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2460 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2461 | else |
2462 | if test -n "$ac_ct_CC"; then | |
2463 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2464 | else | |
2465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2466 | for as_dir in $PATH | |
2467 | do | |
2468 | IFS=$as_save_IFS | |
2469 | test -z "$as_dir" && as_dir=. | |
2470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2472 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2473 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2474 | break 2 |
2475 | fi | |
2476 | done | |
2477 | done | |
7a197a62 | 2478 | IFS=$as_save_IFS |
ad6254c5 AK |
2479 | |
2480 | fi | |
2481 | fi | |
2482 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2483 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2484 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2485 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2486 | else |
ec6a6fbe AK |
2487 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2488 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2489 | fi |
2490 | ||
7a197a62 AK |
2491 | if test "x$ac_ct_CC" = x; then |
2492 | CC="" | |
2493 | else | |
2494 | case $cross_compiling:$ac_tool_warned in | |
2495 | yes:) | |
ec6a6fbe AK |
2496 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2497 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2498 | ac_tool_warned=yes ;; |
2499 | esac | |
2500 | CC=$ac_ct_CC | |
2501 | fi | |
ad6254c5 AK |
2502 | else |
2503 | CC="$ac_cv_prog_CC" | |
2504 | fi | |
2505 | ||
2506 | if test -z "$CC"; then | |
7a197a62 AK |
2507 | if test -n "$ac_tool_prefix"; then |
2508 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2509 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2510 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2511 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2512 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2513 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2514 | else |
2515 | if test -n "$CC"; then | |
2516 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2517 | else | |
ad6254c5 AK |
2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2519 | for as_dir in $PATH | |
2520 | do | |
2521 | IFS=$as_save_IFS | |
2522 | test -z "$as_dir" && as_dir=. | |
2523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2525 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2526 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2527 | break 2 |
2528 | fi | |
2529 | done | |
2530 | done | |
7a197a62 | 2531 | IFS=$as_save_IFS |
ad6254c5 | 2532 | |
8106cdd5 AK |
2533 | fi |
2534 | fi | |
ad6254c5 | 2535 | CC=$ac_cv_prog_CC |
8106cdd5 | 2536 | if test -n "$CC"; then |
ec6a6fbe AK |
2537 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2538 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2539 | else |
ec6a6fbe AK |
2540 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2541 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2542 | fi |
2543 | ||
8106cdd5 | 2544 | |
7a197a62 | 2545 | fi |
ad6254c5 | 2546 | fi |
795ca3e5 AK |
2547 | if test -z "$CC"; then |
2548 | # Extract the first word of "cc", so it can be a program name with args. | |
2549 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2550 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2551 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2552 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2553 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2554 | else |
2555 | if test -n "$CC"; then | |
2556 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2557 | else | |
795ca3e5 | 2558 | ac_prog_rejected=no |
ad6254c5 AK |
2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2560 | for as_dir in $PATH | |
2561 | do | |
2562 | IFS=$as_save_IFS | |
2563 | test -z "$as_dir" && as_dir=. | |
2564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2566 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2567 | ac_prog_rejected=yes | |
2568 | continue | |
2569 | fi | |
2570 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2571 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2572 | break 2 |
2573 | fi | |
2574 | done | |
2575 | done | |
7a197a62 | 2576 | IFS=$as_save_IFS |
ad6254c5 | 2577 | |
795ca3e5 AK |
2578 | if test $ac_prog_rejected = yes; then |
2579 | # We found a bogon in the path, so make sure we never use it. | |
2580 | set dummy $ac_cv_prog_CC | |
2581 | shift | |
ad6254c5 | 2582 | if test $# != 0; then |
795ca3e5 AK |
2583 | # We chose a different compiler from the bogus one. |
2584 | # However, it has the same basename, so the bogon will be chosen | |
2585 | # first if we set CC to just the basename; use the full file name. | |
2586 | shift | |
ad6254c5 | 2587 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2588 | fi |
2589 | fi | |
2590 | fi | |
2591 | fi | |
ad6254c5 | 2592 | CC=$ac_cv_prog_CC |
795ca3e5 | 2593 | if test -n "$CC"; then |
ec6a6fbe AK |
2594 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2595 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2596 | else |
ec6a6fbe AK |
2597 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2598 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2599 | fi |
2600 | ||
7a197a62 | 2601 | |
ad6254c5 AK |
2602 | fi |
2603 | if test -z "$CC"; then | |
2604 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2605 | for ac_prog in cl.exe |
ad6254c5 AK |
2606 | do |
2607 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2608 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2609 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2610 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2611 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2612 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2613 | else |
2614 | if test -n "$CC"; then | |
2615 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2616 | else | |
ad6254c5 AK |
2617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2618 | for as_dir in $PATH | |
2619 | do | |
2620 | IFS=$as_save_IFS | |
2621 | test -z "$as_dir" && as_dir=. | |
2622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2624 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2625 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2626 | break 2 |
2627 | fi | |
2628 | done | |
2629 | done | |
7a197a62 | 2630 | IFS=$as_save_IFS |
ad6254c5 | 2631 | |
795ca3e5 AK |
2632 | fi |
2633 | fi | |
ad6254c5 | 2634 | CC=$ac_cv_prog_CC |
795ca3e5 | 2635 | if test -n "$CC"; then |
ec6a6fbe AK |
2636 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2637 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2638 | else |
ec6a6fbe AK |
2639 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2640 | $as_echo "no" >&6; } | |
795ca3e5 | 2641 | fi |
ad6254c5 | 2642 | |
7a197a62 | 2643 | |
ad6254c5 AK |
2644 | test -n "$CC" && break |
2645 | done | |
2646 | fi | |
2647 | if test -z "$CC"; then | |
2648 | ac_ct_CC=$CC | |
7a197a62 | 2649 | for ac_prog in cl.exe |
ad6254c5 AK |
2650 | do |
2651 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2652 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2653 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2654 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2655 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2656 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2657 | else |
2658 | if test -n "$ac_ct_CC"; then | |
2659 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2660 | else | |
2661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2662 | for as_dir in $PATH | |
2663 | do | |
2664 | IFS=$as_save_IFS | |
2665 | test -z "$as_dir" && as_dir=. | |
2666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2668 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2669 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2670 | break 2 |
795ca3e5 | 2671 | fi |
ad6254c5 AK |
2672 | done |
2673 | done | |
7a197a62 | 2674 | IFS=$as_save_IFS |
ad6254c5 AK |
2675 | |
2676 | fi | |
2677 | fi | |
2678 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2679 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2680 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2681 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2682 | else |
ec6a6fbe AK |
2683 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2684 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2685 | fi |
2686 | ||
7a197a62 | 2687 | |
ad6254c5 AK |
2688 | test -n "$ac_ct_CC" && break |
2689 | done | |
795ca3e5 | 2690 | |
7a197a62 AK |
2691 | if test "x$ac_ct_CC" = x; then |
2692 | CC="" | |
2693 | else | |
2694 | case $cross_compiling:$ac_tool_warned in | |
2695 | yes:) | |
ec6a6fbe AK |
2696 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2697 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2698 | ac_tool_warned=yes ;; |
2699 | esac | |
2700 | CC=$ac_ct_CC | |
2701 | fi | |
ad6254c5 AK |
2702 | fi |
2703 | ||
2704 | fi | |
2705 | ||
2706 | ||
ec6a6fbe AK |
2707 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2709 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2710 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2711 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2712 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2713 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2714 | |
2715 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2716 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2717 | set X $ac_compile | |
2718 | ac_compiler=$2 | |
7a197a62 AK |
2719 | { (ac_try="$ac_compiler --version >&5" |
2720 | case "(($ac_try" in | |
2721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2722 | *) ac_try_echo=$ac_try;; | |
2723 | esac | |
ec6a6fbe AK |
2724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2725 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2726 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2727 | ac_status=$? |
ec6a6fbe | 2728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2729 | (exit $ac_status); } |
7a197a62 AK |
2730 | { (ac_try="$ac_compiler -v >&5" |
2731 | case "(($ac_try" in | |
2732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2733 | *) ac_try_echo=$ac_try;; | |
2734 | esac | |
ec6a6fbe AK |
2735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2736 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2737 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2738 | ac_status=$? |
ec6a6fbe | 2739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2740 | (exit $ac_status); } |
7a197a62 AK |
2741 | { (ac_try="$ac_compiler -V >&5" |
2742 | case "(($ac_try" in | |
2743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2744 | *) ac_try_echo=$ac_try;; | |
2745 | esac | |
ec6a6fbe AK |
2746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2747 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2748 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2749 | ac_status=$? |
ec6a6fbe | 2750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2751 | (exit $ac_status); } |
2752 | ||
2753 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2754 | /* confdefs.h. */ |
2755 | _ACEOF | |
2756 | cat confdefs.h >>conftest.$ac_ext | |
2757 | cat >>conftest.$ac_ext <<_ACEOF | |
2758 | /* end confdefs.h. */ | |
2759 | ||
2760 | int | |
2761 | main () | |
2762 | { | |
2763 | ||
2764 | ; | |
2765 | return 0; | |
2766 | } | |
2767 | _ACEOF | |
2768 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2769 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2770 | # Try to create an executable without -o first, disregard a.out. |
2771 | # It will help us diagnose broken compilers, and finding out an intuition | |
2772 | # of exeext. | |
ec6a6fbe AK |
2773 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2774 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2775 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2776 | ||
2777 | # The possible output files: | |
2778 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2779 | ||
7a197a62 AK |
2780 | ac_rmfiles= |
2781 | for ac_file in $ac_files | |
2782 | do | |
2783 | case $ac_file in | |
ec6a6fbe | 2784 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2785 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2786 | esac | |
2787 | done | |
2788 | rm -f $ac_rmfiles | |
2789 | ||
2790 | if { (ac_try="$ac_link_default" | |
2791 | case "(($ac_try" in | |
2792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2793 | *) ac_try_echo=$ac_try;; | |
2794 | esac | |
ec6a6fbe AK |
2795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2796 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2797 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2798 | ac_status=$? |
ec6a6fbe | 2799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2800 | (exit $ac_status); }; then |
7a197a62 AK |
2801 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2802 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2803 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2804 | # so that the user can short-circuit this test for compilers unknown to | |
2805 | # Autoconf. | |
25fbec5b | 2806 | for ac_file in $ac_files '' |
ad6254c5 AK |
2807 | do |
2808 | test -f "$ac_file" || continue | |
2809 | case $ac_file in | |
ec6a6fbe | 2810 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2811 | ;; |
ad6254c5 | 2812 | [ab].out ) |
8a2fc586 AK |
2813 | # We found the default executable, but exeext='' is most |
2814 | # certainly right. | |
2815 | break;; | |
ad6254c5 | 2816 | *.* ) |
7a197a62 AK |
2817 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2818 | then :; else | |
2819 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2820 | fi | |
2821 | # We set ac_cv_exeext here because the later test for it is not | |
2822 | # safe: cross compilers may not add the suffix if given an `-o' | |
2823 | # argument, so we may need to know it at that point already. | |
2824 | # Even if this section looks crufty: it has the advantage of | |
2825 | # actually working. | |
8a2fc586 | 2826 | break;; |
ad6254c5 | 2827 | * ) |
8a2fc586 | 2828 | break;; |
ad6254c5 AK |
2829 | esac |
2830 | done | |
7a197a62 AK |
2831 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2832 | ||
ad6254c5 | 2833 | else |
25fbec5b AK |
2834 | ac_file='' |
2835 | fi | |
2836 | ||
ec6a6fbe AK |
2837 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2838 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2839 | if test -z "$ac_file"; then |
ec6a6fbe | 2840 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2841 | sed 's/^/| /' conftest.$ac_ext >&5 |
2842 | ||
ec6a6fbe AK |
2843 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2844 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2845 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2846 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2847 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2848 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2849 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2850 | fi |
2851 | ||
2852 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2853 | |
7a197a62 | 2854 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2855 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2856 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2857 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2858 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2859 | # If not cross compiling, check that we can run a simple program. | |
2860 | if test "$cross_compiling" != yes; then | |
2861 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2862 | { (case "(($ac_try" in |
2863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2864 | *) ac_try_echo=$ac_try;; | |
2865 | esac | |
ec6a6fbe AK |
2866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2867 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2868 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2869 | ac_status=$? |
ec6a6fbe | 2870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2871 | (exit $ac_status); }; }; then |
2872 | cross_compiling=no | |
795ca3e5 | 2873 | else |
ad6254c5 AK |
2874 | if test "$cross_compiling" = maybe; then |
2875 | cross_compiling=yes | |
2876 | else | |
ec6a6fbe AK |
2877 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2878 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2879 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2880 | If you meant to cross compile, use \`--host'. |
2881 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2882 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2883 | If you meant to cross compile, use \`--host'. |
2884 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2885 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2886 | fi |
795ca3e5 | 2887 | fi |
80992638 | 2888 | fi |
ec6a6fbe AK |
2889 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2890 | $as_echo "yes" >&6; } | |
ad6254c5 | 2891 | |
ec6a6fbe | 2892 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2893 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2894 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2895 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2896 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2897 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2898 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2899 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2900 | |
ec6a6fbe AK |
2901 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2902 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2903 | if { (ac_try="$ac_link" |
2904 | case "(($ac_try" in | |
2905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2906 | *) ac_try_echo=$ac_try;; | |
2907 | esac | |
ec6a6fbe AK |
2908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2909 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2910 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2911 | ac_status=$? |
ec6a6fbe | 2912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2913 | (exit $ac_status); }; then |
2914 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2915 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2916 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2917 | # `rm'. | |
2918 | for ac_file in conftest.exe conftest conftest.*; do | |
2919 | test -f "$ac_file" || continue | |
2920 | case $ac_file in | |
ec6a6fbe | 2921 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2922 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2923 | break;; |
ad6254c5 AK |
2924 | * ) break;; |
2925 | esac | |
2926 | done | |
80992638 | 2927 | else |
ec6a6fbe AK |
2928 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2929 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2930 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2931 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2932 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2933 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2934 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2935 | fi |
2936 | ||
2937 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2938 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2939 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2940 | |
2941 | rm -f conftest.$ac_ext | |
2942 | EXEEXT=$ac_cv_exeext | |
2943 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2944 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2945 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2946 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2947 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2948 | else |
ad6254c5 | 2949 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2950 | /* confdefs.h. */ |
2951 | _ACEOF | |
2952 | cat confdefs.h >>conftest.$ac_ext | |
2953 | cat >>conftest.$ac_ext <<_ACEOF | |
2954 | /* end confdefs.h. */ | |
2955 | ||
2956 | int | |
2957 | main () | |
2958 | { | |
2959 | ||
2960 | ; | |
2961 | return 0; | |
2962 | } | |
2963 | _ACEOF | |
2964 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2965 | if { (ac_try="$ac_compile" |
2966 | case "(($ac_try" in | |
2967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2968 | *) ac_try_echo=$ac_try;; | |
2969 | esac | |
ec6a6fbe AK |
2970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2971 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2972 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2973 | ac_status=$? |
ec6a6fbe | 2974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2975 | (exit $ac_status); }; then |
7a197a62 AK |
2976 | for ac_file in conftest.o conftest.obj conftest.*; do |
2977 | test -f "$ac_file" || continue; | |
ad6254c5 | 2978 | case $ac_file in |
ec6a6fbe | 2979 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2980 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2981 | break;; | |
2982 | esac | |
2983 | done | |
2984 | else | |
ec6a6fbe | 2985 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2986 | sed 's/^/| /' conftest.$ac_ext >&5 |
2987 | ||
ec6a6fbe AK |
2988 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2989 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2990 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2991 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2992 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2993 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2994 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2995 | fi |
2996 | ||
2997 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2998 | fi | |
ec6a6fbe AK |
2999 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3000 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
3001 | OBJEXT=$ac_cv_objext |
3002 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
3003 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3004 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 3005 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 3006 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3007 | else |
3008 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3009 | /* confdefs.h. */ |
3010 | _ACEOF | |
3011 | cat confdefs.h >>conftest.$ac_ext | |
3012 | cat >>conftest.$ac_ext <<_ACEOF | |
3013 | /* end confdefs.h. */ | |
3014 | ||
3015 | int | |
3016 | main () | |
3017 | { | |
3018 | #ifndef __GNUC__ | |
3019 | choke me | |
3020 | #endif | |
80992638 | 3021 | |
ad6254c5 AK |
3022 | ; |
3023 | return 0; | |
3024 | } | |
3025 | _ACEOF | |
3026 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3027 | if { (ac_try="$ac_compile" |
3028 | case "(($ac_try" in | |
3029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3030 | *) ac_try_echo=$ac_try;; | |
3031 | esac | |
ec6a6fbe AK |
3032 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3033 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3034 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3035 | ac_status=$? |
8a2fc586 AK |
3036 | grep -v '^ *+' conftest.er1 >conftest.err |
3037 | rm -f conftest.er1 | |
3038 | cat conftest.err >&5 | |
ec6a6fbe | 3039 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3040 | (exit $ac_status); } && { |
3041 | test -z "$ac_c_werror_flag" || | |
3042 | test ! -s conftest.err | |
3043 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3044 | ac_compiler_gnu=yes |
80992638 | 3045 | else |
ec6a6fbe | 3046 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
3048 | ||
7a197a62 | 3049 | ac_compiler_gnu=no |
8106cdd5 | 3050 | fi |
7a197a62 AK |
3051 | |
3052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3053 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3054 | |
ad6254c5 | 3055 | fi |
ec6a6fbe AK |
3056 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3057 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3058 | if test $ac_compiler_gnu = yes; then | |
3059 | GCC=yes | |
3060 | else | |
3061 | GCC= | |
3062 | fi | |
ad6254c5 AK |
3063 | ac_test_CFLAGS=${CFLAGS+set} |
3064 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3065 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3066 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3067 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3068 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3069 | else |
7a197a62 AK |
3070 | ac_save_c_werror_flag=$ac_c_werror_flag |
3071 | ac_c_werror_flag=yes | |
3072 | ac_cv_prog_cc_g=no | |
3073 | CFLAGS="-g" | |
3074 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3075 | /* confdefs.h. */ |
3076 | _ACEOF | |
3077 | cat confdefs.h >>conftest.$ac_ext | |
3078 | cat >>conftest.$ac_ext <<_ACEOF | |
3079 | /* end confdefs.h. */ | |
3080 | ||
3081 | int | |
3082 | main () | |
3083 | { | |
3084 | ||
3085 | ; | |
3086 | return 0; | |
3087 | } | |
3088 | _ACEOF | |
3089 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3090 | if { (ac_try="$ac_compile" |
3091 | case "(($ac_try" in | |
3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3093 | *) ac_try_echo=$ac_try;; | |
3094 | esac | |
ec6a6fbe AK |
3095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3096 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3097 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3098 | ac_status=$? |
8a2fc586 AK |
3099 | grep -v '^ *+' conftest.er1 >conftest.err |
3100 | rm -f conftest.er1 | |
3101 | cat conftest.err >&5 | |
ec6a6fbe | 3102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3103 | (exit $ac_status); } && { |
3104 | test -z "$ac_c_werror_flag" || | |
3105 | test ! -s conftest.err | |
3106 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3107 | ac_cv_prog_cc_g=yes |
3108 | else | |
ec6a6fbe | 3109 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
3111 | ||
3112 | CFLAGS="" | |
3113 | cat >conftest.$ac_ext <<_ACEOF | |
3114 | /* confdefs.h. */ | |
3115 | _ACEOF | |
3116 | cat confdefs.h >>conftest.$ac_ext | |
3117 | cat >>conftest.$ac_ext <<_ACEOF | |
3118 | /* end confdefs.h. */ | |
3119 | ||
3120 | int | |
3121 | main () | |
3122 | { | |
3123 | ||
3124 | ; | |
3125 | return 0; | |
3126 | } | |
3127 | _ACEOF | |
3128 | rm -f conftest.$ac_objext | |
3129 | if { (ac_try="$ac_compile" | |
3130 | case "(($ac_try" in | |
3131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3132 | *) ac_try_echo=$ac_try;; | |
3133 | esac | |
ec6a6fbe AK |
3134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3135 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3136 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3137 | ac_status=$? |
7a197a62 AK |
3138 | grep -v '^ *+' conftest.er1 >conftest.err |
3139 | rm -f conftest.er1 | |
3140 | cat conftest.err >&5 | |
ec6a6fbe | 3141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3142 | (exit $ac_status); } && { |
3143 | test -z "$ac_c_werror_flag" || | |
3144 | test ! -s conftest.err | |
3145 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3146 | : |
3147 | else | |
ec6a6fbe | 3148 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3149 | sed 's/^/| /' conftest.$ac_ext >&5 |
3150 | ||
3151 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3152 | CFLAGS="-g" | |
3153 | cat >conftest.$ac_ext <<_ACEOF | |
3154 | /* confdefs.h. */ | |
3155 | _ACEOF | |
3156 | cat confdefs.h >>conftest.$ac_ext | |
3157 | cat >>conftest.$ac_ext <<_ACEOF | |
3158 | /* end confdefs.h. */ | |
3159 | ||
3160 | int | |
3161 | main () | |
3162 | { | |
3163 | ||
3164 | ; | |
3165 | return 0; | |
3166 | } | |
3167 | _ACEOF | |
3168 | rm -f conftest.$ac_objext | |
3169 | if { (ac_try="$ac_compile" | |
3170 | case "(($ac_try" in | |
3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3172 | *) ac_try_echo=$ac_try;; | |
3173 | esac | |
ec6a6fbe AK |
3174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3175 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3176 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3177 | ac_status=$? |
7a197a62 AK |
3178 | grep -v '^ *+' conftest.er1 >conftest.err |
3179 | rm -f conftest.er1 | |
3180 | cat conftest.err >&5 | |
ec6a6fbe | 3181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3182 | (exit $ac_status); } && { |
3183 | test -z "$ac_c_werror_flag" || | |
3184 | test ! -s conftest.err | |
3185 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3186 | ac_cv_prog_cc_g=yes |
3187 | else | |
ec6a6fbe | 3188 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3189 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3190 | |
7a197a62 AK |
3191 | |
3192 | fi | |
3193 | ||
3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3195 | fi | |
3196 | ||
3197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3198 | fi |
7a197a62 AK |
3199 | |
3200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3201 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3202 | fi |
ec6a6fbe AK |
3203 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3204 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3205 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3206 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3207 | elif test $ac_cv_prog_cc_g = yes; then |
3208 | if test "$GCC" = yes; then | |
3209 | CFLAGS="-g -O2" | |
3210 | else | |
3211 | CFLAGS="-g" | |
3212 | fi | |
3213 | else | |
3214 | if test "$GCC" = yes; then | |
3215 | CFLAGS="-O2" | |
3216 | else | |
3217 | CFLAGS= | |
3218 | fi | |
3219 | fi | |
ec6a6fbe AK |
3220 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3221 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3222 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3223 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3224 | else |
7a197a62 | 3225 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3226 | ac_save_CC=$CC |
3227 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3228 | /* confdefs.h. */ |
3229 | _ACEOF | |
3230 | cat confdefs.h >>conftest.$ac_ext | |
3231 | cat >>conftest.$ac_ext <<_ACEOF | |
3232 | /* end confdefs.h. */ | |
3233 | #include <stdarg.h> | |
3234 | #include <stdio.h> | |
3235 | #include <sys/types.h> | |
3236 | #include <sys/stat.h> | |
3237 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3238 | struct buf { int x; }; | |
3239 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3240 | static char *e (p, i) | |
3241 | char **p; | |
3242 | int i; | |
3243 | { | |
3244 | return p[i]; | |
3245 | } | |
3246 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3247 | { | |
3248 | char *s; | |
3249 | va_list v; | |
3250 | va_start (v,p); | |
3251 | s = g (p, va_arg (v,int)); | |
3252 | va_end (v); | |
3253 | return s; | |
3254 | } | |
8a2fc586 AK |
3255 | |
3256 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3257 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3258 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3259 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3260 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3261 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3262 | that's true only with -std. */ |
8a2fc586 AK |
3263 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3264 | ||
7a197a62 AK |
3265 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3266 | inside strings and character constants. */ | |
3267 | #define FOO(x) 'x' | |
3268 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3269 | ||
ad6254c5 AK |
3270 | int test (int i, double x); |
3271 | struct s1 {int (*f) (int a);}; | |
3272 | struct s2 {int (*f) (double a);}; | |
3273 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3274 | int argc; | |
3275 | char **argv; | |
3276 | int | |
3277 | main () | |
3278 | { | |
3279 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3280 | ; | |
3281 | return 0; | |
3282 | } | |
3283 | _ACEOF | |
7a197a62 AK |
3284 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3285 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3286 | do |
3287 | CC="$ac_save_CC $ac_arg" | |
3288 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3289 | if { (ac_try="$ac_compile" |
3290 | case "(($ac_try" in | |
3291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3292 | *) ac_try_echo=$ac_try;; | |
3293 | esac | |
ec6a6fbe AK |
3294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3295 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3296 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3297 | ac_status=$? |
8a2fc586 AK |
3298 | grep -v '^ *+' conftest.er1 >conftest.err |
3299 | rm -f conftest.er1 | |
3300 | cat conftest.err >&5 | |
ec6a6fbe | 3301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3302 | (exit $ac_status); } && { |
3303 | test -z "$ac_c_werror_flag" || | |
3304 | test ! -s conftest.err | |
3305 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3306 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3307 | else |
ec6a6fbe | 3308 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3309 | sed 's/^/| /' conftest.$ac_ext >&5 |
3310 | ||
7a197a62 | 3311 | |
ad6254c5 | 3312 | fi |
7a197a62 AK |
3313 | |
3314 | rm -f core conftest.err conftest.$ac_objext | |
3315 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3316 | done |
7a197a62 | 3317 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3318 | CC=$ac_save_CC |
3319 | ||
3320 | fi | |
7a197a62 AK |
3321 | # AC_CACHE_VAL |
3322 | case "x$ac_cv_prog_cc_c89" in | |
3323 | x) | |
ec6a6fbe AK |
3324 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3325 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3326 | xno) |
ec6a6fbe AK |
3327 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3328 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3329 | *) |
7a197a62 | 3330 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3331 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3332 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3333 | esac |
3334 | ||
ad6254c5 | 3335 | |
ad6254c5 AK |
3336 | ac_ext=c |
3337 | ac_cpp='$CPP $CPPFLAGS' | |
3338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3341 | |
d0191583 JM |
3342 | |
3343 | ||
3344 | ac_ext=c | |
3345 | ac_cpp='$CPP $CPPFLAGS' | |
3346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3349 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3350 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3351 | # On Suns, sometimes $CPP names a directory. |
3352 | if test -n "$CPP" && test -d "$CPP"; then | |
3353 | CPP= | |
3354 | fi | |
3355 | if test -z "$CPP"; then | |
3356 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3357 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3358 | else |
d0191583 JM |
3359 | # Double quotes because CPP needs to be expanded |
3360 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3361 | do | |
3362 | ac_preproc_ok=false | |
3363 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3364 | do |
d0191583 JM |
3365 | # Use a header file that comes with gcc, so configuring glibc |
3366 | # with a fresh cross-compiler works. | |
3367 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3368 | # <limits.h> exists even on freestanding compilers. | |
3369 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3370 | # not just through cpp. "Syntax error" is here to catch this case. | |
3371 | cat >conftest.$ac_ext <<_ACEOF | |
3372 | /* confdefs.h. */ | |
3373 | _ACEOF | |
3374 | cat confdefs.h >>conftest.$ac_ext | |
3375 | cat >>conftest.$ac_ext <<_ACEOF | |
3376 | /* end confdefs.h. */ | |
3377 | #ifdef __STDC__ | |
3378 | # include <limits.h> | |
3379 | #else | |
3380 | # include <assert.h> | |
3381 | #endif | |
3382 | Syntax error | |
3383 | _ACEOF | |
3384 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3385 | case "(($ac_try" in | |
3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3387 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3388 | esac |
ec6a6fbe AK |
3389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3390 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3391 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3392 | ac_status=$? | |
3393 | grep -v '^ *+' conftest.er1 >conftest.err | |
3394 | rm -f conftest.er1 | |
3395 | cat conftest.err >&5 | |
ec6a6fbe | 3396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3397 | (exit $ac_status); } >/dev/null && { |
3398 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3399 | test ! -s conftest.err | |
3400 | }; then | |
3401 | : | |
3402 | else | |
ec6a6fbe | 3403 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3404 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3405 | |
d0191583 JM |
3406 | # Broken: fails on valid input. |
3407 | continue | |
795ca3e5 | 3408 | fi |
795ca3e5 | 3409 | |
d0191583 | 3410 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3411 | |
d0191583 JM |
3412 | # OK, works on sane cases. Now check whether nonexistent headers |
3413 | # can be detected and how. | |
3414 | cat >conftest.$ac_ext <<_ACEOF | |
3415 | /* confdefs.h. */ | |
3416 | _ACEOF | |
3417 | cat confdefs.h >>conftest.$ac_ext | |
3418 | cat >>conftest.$ac_ext <<_ACEOF | |
3419 | /* end confdefs.h. */ | |
3420 | #include <ac_nonexistent.h> | |
3421 | _ACEOF | |
3422 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3423 | case "(($ac_try" in | |
3424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3425 | *) ac_try_echo=$ac_try;; | |
3426 | esac | |
ec6a6fbe AK |
3427 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3428 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3429 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3430 | ac_status=$? | |
3431 | grep -v '^ *+' conftest.er1 >conftest.err | |
3432 | rm -f conftest.er1 | |
3433 | cat conftest.err >&5 | |
ec6a6fbe | 3434 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3435 | (exit $ac_status); } >/dev/null && { |
3436 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3437 | test ! -s conftest.err | |
3438 | }; then | |
3439 | # Broken: success on invalid input. | |
3440 | continue | |
3441 | else | |
ec6a6fbe | 3442 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3443 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3444 | |
d0191583 JM |
3445 | # Passes both tests. |
3446 | ac_preproc_ok=: | |
3447 | break | |
3448 | fi | |
795ca3e5 | 3449 | |
d0191583 JM |
3450 | rm -f conftest.err conftest.$ac_ext |
3451 | ||
3452 | done | |
3453 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3454 | rm -f conftest.err conftest.$ac_ext | |
3455 | if $ac_preproc_ok; then | |
3456 | break | |
795ca3e5 AK |
3457 | fi |
3458 | ||
d0191583 JM |
3459 | done |
3460 | ac_cv_prog_CPP=$CPP | |
3461 | ||
3462 | fi | |
3463 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3464 | else |
d0191583 JM |
3465 | ac_cv_prog_CPP=$CPP |
3466 | fi | |
ec6a6fbe AK |
3467 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3468 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3469 | ac_preproc_ok=false |
3470 | for ac_c_preproc_warn_flag in '' yes | |
3471 | do | |
3472 | # Use a header file that comes with gcc, so configuring glibc | |
3473 | # with a fresh cross-compiler works. | |
3474 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3475 | # <limits.h> exists even on freestanding compilers. | |
3476 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3477 | # not just through cpp. "Syntax error" is here to catch this case. | |
3478 | cat >conftest.$ac_ext <<_ACEOF | |
3479 | /* confdefs.h. */ | |
ad6254c5 | 3480 | _ACEOF |
d0191583 JM |
3481 | cat confdefs.h >>conftest.$ac_ext |
3482 | cat >>conftest.$ac_ext <<_ACEOF | |
3483 | /* end confdefs.h. */ | |
3484 | #ifdef __STDC__ | |
3485 | # include <limits.h> | |
3486 | #else | |
3487 | # include <assert.h> | |
3488 | #endif | |
3489 | Syntax error | |
3490 | _ACEOF | |
3491 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3492 | case "(($ac_try" in | |
3493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3494 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3495 | esac |
ec6a6fbe AK |
3496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3497 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3498 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3499 | ac_status=$? | |
3500 | grep -v '^ *+' conftest.er1 >conftest.err | |
3501 | rm -f conftest.er1 | |
3502 | cat conftest.err >&5 | |
ec6a6fbe | 3503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3504 | (exit $ac_status); } >/dev/null && { |
3505 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3506 | test ! -s conftest.err | |
3507 | }; then | |
3508 | : | |
795ca3e5 | 3509 | else |
ec6a6fbe | 3510 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3511 | sed 's/^/| /' conftest.$ac_ext >&5 |
3512 | ||
3513 | # Broken: fails on valid input. | |
3514 | continue | |
795ca3e5 AK |
3515 | fi |
3516 | ||
d0191583 JM |
3517 | rm -f conftest.err conftest.$ac_ext |
3518 | ||
3519 | # OK, works on sane cases. Now check whether nonexistent headers | |
3520 | # can be detected and how. | |
3521 | cat >conftest.$ac_ext <<_ACEOF | |
3522 | /* confdefs.h. */ | |
3523 | _ACEOF | |
3524 | cat confdefs.h >>conftest.$ac_ext | |
3525 | cat >>conftest.$ac_ext <<_ACEOF | |
3526 | /* end confdefs.h. */ | |
3527 | #include <ac_nonexistent.h> | |
3528 | _ACEOF | |
3529 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3530 | case "(($ac_try" in | |
3531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3532 | *) ac_try_echo=$ac_try;; | |
3533 | esac | |
ec6a6fbe AK |
3534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3535 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3536 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3537 | ac_status=$? | |
3538 | grep -v '^ *+' conftest.er1 >conftest.err | |
3539 | rm -f conftest.er1 | |
3540 | cat conftest.err >&5 | |
ec6a6fbe | 3541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3542 | (exit $ac_status); } >/dev/null && { |
3543 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3544 | test ! -s conftest.err | |
3545 | }; then | |
3546 | # Broken: success on invalid input. | |
3547 | continue | |
795ca3e5 | 3548 | else |
ec6a6fbe | 3549 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3550 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3551 | |
d0191583 JM |
3552 | # Passes both tests. |
3553 | ac_preproc_ok=: | |
3554 | break | |
795ca3e5 | 3555 | fi |
d0191583 JM |
3556 | |
3557 | rm -f conftest.err conftest.$ac_ext | |
3558 | ||
3559 | done | |
3560 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3561 | rm -f conftest.err conftest.$ac_ext | |
3562 | if $ac_preproc_ok; then | |
3563 | : | |
8106cdd5 | 3564 | else |
ec6a6fbe AK |
3565 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3567 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3568 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3569 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3570 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3571 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3572 | fi |
3573 | ||
d0191583 JM |
3574 | ac_ext=c |
3575 | ac_cpp='$CPP $CPPFLAGS' | |
3576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3579 | ||
7a197a62 | 3580 | |
ec6a6fbe AK |
3581 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3582 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3583 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3584 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3585 | else |
ec6a6fbe | 3586 | if test -z "$GREP"; then |
d0191583 | 3587 | ac_path_GREP_found=false |
ec6a6fbe AK |
3588 | # Loop through the user's path and test for each of PROGNAME-LIST |
3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3590 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3591 | do |
3592 | IFS=$as_save_IFS | |
3593 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3594 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3595 | for ac_exec_ext in '' $ac_executable_extensions; do |
3596 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3597 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3598 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3599 | # Check for GNU $ac_path_GREP |
3600 | case `"$ac_path_GREP" --version 2>&1` in | |
3601 | *GNU*) | |
3602 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3603 | *) | |
3604 | ac_count=0 | |
ec6a6fbe | 3605 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3606 | while : |
3607 | do | |
3608 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3609 | mv "conftest.tmp" "conftest.in" | |
3610 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3611 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3612 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3613 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3614 | ac_count=`expr $ac_count + 1` | |
3615 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3616 | # Best one so far, save it but keep looking for a better one | |
3617 | ac_cv_path_GREP="$ac_path_GREP" | |
3618 | ac_path_GREP_max=$ac_count | |
3619 | fi | |
3620 | # 10*(2^10) chars as input seems more than enough | |
3621 | test $ac_count -gt 10 && break | |
3622 | done | |
3623 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3624 | esac | |
3625 | ||
ec6a6fbe AK |
3626 | $ac_path_GREP_found && break 3 |
3627 | done | |
d0191583 | 3628 | done |
ad6254c5 | 3629 | done |
7a197a62 | 3630 | IFS=$as_save_IFS |
ec6a6fbe AK |
3631 | if test -z "$ac_cv_path_GREP"; then |
3632 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3633 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3634 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3635 | fi |
80992638 | 3636 | else |
d0191583 | 3637 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3638 | fi |
8106cdd5 | 3639 | |
80992638 | 3640 | fi |
ec6a6fbe AK |
3641 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3642 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3643 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3644 | |
d0191583 | 3645 | |
ec6a6fbe AK |
3646 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3647 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3648 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3649 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3650 | else |
d0191583 JM |
3651 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3652 | then ac_cv_path_EGREP="$GREP -E" | |
3653 | else | |
ec6a6fbe | 3654 | if test -z "$EGREP"; then |
d0191583 | 3655 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3656 | # Loop through the user's path and test for each of PROGNAME-LIST |
3657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3658 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3659 | do |
3660 | IFS=$as_save_IFS | |
3661 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3662 | for ac_prog in egrep; do |
ec6a6fbe AK |
3663 | for ac_exec_ext in '' $ac_executable_extensions; do |
3664 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3665 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3666 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3667 | # Check for GNU $ac_path_EGREP |
3668 | case `"$ac_path_EGREP" --version 2>&1` in | |
3669 | *GNU*) | |
3670 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3671 | *) | |
3672 | ac_count=0 | |
ec6a6fbe | 3673 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3674 | while : |
3675 | do | |
3676 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3677 | mv "conftest.tmp" "conftest.in" | |
3678 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3679 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3680 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3681 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3682 | ac_count=`expr $ac_count + 1` | |
3683 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3684 | # Best one so far, save it but keep looking for a better one | |
3685 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3686 | ac_path_EGREP_max=$ac_count | |
3687 | fi | |
3688 | # 10*(2^10) chars as input seems more than enough | |
3689 | test $ac_count -gt 10 && break | |
3690 | done | |
3691 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3692 | esac |
8a2fc586 | 3693 | |
ec6a6fbe AK |
3694 | $ac_path_EGREP_found && break 3 |
3695 | done | |
d0191583 | 3696 | done |
8a2fc586 | 3697 | done |
7a197a62 | 3698 | IFS=$as_save_IFS |
ec6a6fbe AK |
3699 | if test -z "$ac_cv_path_EGREP"; then |
3700 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3701 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3702 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3703 | fi |
d0191583 JM |
3704 | else |
3705 | ac_cv_path_EGREP=$EGREP | |
3706 | fi | |
ad6254c5 | 3707 | |
d0191583 JM |
3708 | fi |
3709 | fi | |
ec6a6fbe AK |
3710 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3711 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3712 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3713 | |
3714 | ||
d0191583 | 3715 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3716 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3717 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3718 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3719 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3720 | else |
d0191583 | 3721 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3722 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3723 | /* confdefs.h. */ |
3724 | _ACEOF | |
3725 | cat confdefs.h >>conftest.$ac_ext | |
3726 | cat >>conftest.$ac_ext <<_ACEOF | |
3727 | /* end confdefs.h. */ | |
d0191583 JM |
3728 | #include <sgtty.h> |
3729 | Autoconf TIOCGETP | |
ad6254c5 | 3730 | _ACEOF |
d0191583 JM |
3731 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3732 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3733 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3734 | else |
d0191583 | 3735 | ac_cv_prog_gcc_traditional=no |
80992638 | 3736 | fi |
d0191583 | 3737 | rm -f conftest* |
ad6254c5 | 3738 | |
8106cdd5 | 3739 | |
d0191583 JM |
3740 | if test $ac_cv_prog_gcc_traditional = no; then |
3741 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3742 | /* confdefs.h. */ |
3743 | _ACEOF | |
3744 | cat confdefs.h >>conftest.$ac_ext | |
3745 | cat >>conftest.$ac_ext <<_ACEOF | |
3746 | /* end confdefs.h. */ | |
d0191583 JM |
3747 | #include <termio.h> |
3748 | Autoconf TCGETA | |
ad6254c5 | 3749 | _ACEOF |
d0191583 JM |
3750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3751 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3752 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3753 | fi |
d0191583 | 3754 | rm -f conftest* |
795ca3e5 | 3755 | |
d0191583 | 3756 | fi |
795ca3e5 | 3757 | fi |
ec6a6fbe AK |
3758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3759 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3760 | if test $ac_cv_prog_gcc_traditional = yes; then |
3761 | CC="$CC -traditional" | |
3762 | fi | |
795ca3e5 AK |
3763 | fi |
3764 | ||
d0191583 JM |
3765 | # Find a good install program. We prefer a C program (faster), |
3766 | # so one script is as good as another. But avoid the broken or | |
3767 | # incompatible versions: | |
3768 | # SysV /etc/install, /usr/sbin/install | |
3769 | # SunOS /usr/etc/install | |
3770 | # IRIX /sbin/install | |
3771 | # AIX /bin/install | |
3772 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3773 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3774 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3775 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3776 | # OS/2's system install, which has a completely different semantic | |
3777 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3778 | # Reject install programs that cannot install multiple files. |
3779 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3780 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3781 | if test -z "$INSTALL"; then |
3782 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3783 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3784 | else |
d0191583 JM |
3785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3786 | for as_dir in $PATH | |
3787 | do | |
3788 | IFS=$as_save_IFS | |
3789 | test -z "$as_dir" && as_dir=. | |
3790 | # Account for people who put trailing slashes in PATH elements. | |
3791 | case $as_dir/ in | |
3792 | ./ | .// | /cC/* | \ | |
3793 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3794 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3795 | /usr/ucb/* ) ;; | |
3796 | *) | |
3797 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3798 | # Don't use installbsd from OSF since it installs stuff as root | |
3799 | # by default. | |
3800 | for ac_prog in ginstall scoinst install; do | |
3801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3802 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3803 | if test $ac_prog = install && | |
3804 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3805 | # AIX install. It has an incompatible calling convention. | |
3806 | : | |
3807 | elif test $ac_prog = install && | |
3808 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3809 | # program-specific install script used by HP pwplus--don't use. | |
3810 | : | |
3811 | else | |
ec6a6fbe AK |
3812 | rm -rf conftest.one conftest.two conftest.dir |
3813 | echo one > conftest.one | |
3814 | echo two > conftest.two | |
3815 | mkdir conftest.dir | |
3816 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3817 | test -s conftest.one && test -s conftest.two && | |
3818 | test -s conftest.dir/conftest.one && | |
3819 | test -s conftest.dir/conftest.two | |
3820 | then | |
3821 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3822 | break 3 | |
3823 | fi | |
d0191583 JM |
3824 | fi |
3825 | fi | |
3826 | done | |
3827 | done | |
3828 | ;; | |
3829 | esac | |
ec6a6fbe | 3830 | |
d0191583 JM |
3831 | done |
3832 | IFS=$as_save_IFS | |
80992638 | 3833 | |
ec6a6fbe | 3834 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3835 | |
3836 | fi | |
3837 | if test "${ac_cv_path_install+set}" = set; then | |
3838 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3839 | else |
d0191583 JM |
3840 | # As a last resort, use the slow shell script. Don't cache a |
3841 | # value for INSTALL within a source directory, because that will | |
3842 | # break other packages using the cache if that directory is | |
3843 | # removed, or if the value is a relative name. | |
3844 | INSTALL=$ac_install_sh | |
7a197a62 | 3845 | fi |
d0191583 | 3846 | fi |
ec6a6fbe AK |
3847 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3848 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3849 | |
d0191583 JM |
3850 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3851 | # It thinks the first close brace ends the variable substitution. | |
3852 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3853 | |
d0191583 | 3854 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3855 | |
d0191583 JM |
3856 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3857 | ||
ec6a6fbe AK |
3858 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3859 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3860 | LN_S=$as_ln_s |
3861 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3862 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3863 | $as_echo "yes" >&6; } | |
d0191583 | 3864 | else |
ec6a6fbe AK |
3865 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3866 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3867 | fi |
d0191583 | 3868 | |
ec6a6fbe AK |
3869 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3870 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3871 | set x ${MAKE-make} | |
3872 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3873 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3874 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3875 | else |
d0191583 JM |
3876 | cat >conftest.make <<\_ACEOF |
3877 | SHELL = /bin/sh | |
3878 | all: | |
3879 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3880 | _ACEOF | |
3881 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3882 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3883 | *@@@%%%=?*=@@@%%%*) | |
3884 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3885 | *) | |
3886 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3887 | esac | |
3888 | rm -f conftest.make | |
ad6254c5 | 3889 | fi |
d0191583 | 3890 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3891 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3892 | $as_echo "yes" >&6; } | |
d0191583 JM |
3893 | SET_MAKE= |
3894 | else | |
ec6a6fbe AK |
3895 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3896 | $as_echo "no" >&6; } | |
d0191583 | 3897 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3898 | fi |
8106cdd5 | 3899 | |
ec6a6fbe AK |
3900 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3901 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3902 | if test -z "$MKDIR_P"; then |
3903 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3904 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3905 | else |
3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3907 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3908 | do | |
3909 | IFS=$as_save_IFS | |
3910 | test -z "$as_dir" && as_dir=. | |
3911 | for ac_prog in mkdir gmkdir; do | |
3912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3913 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3914 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3915 | 'mkdir (GNU coreutils) '* | \ | |
3916 | 'mkdir (coreutils) '* | \ | |
3917 | 'mkdir (fileutils) '4.1*) | |
3918 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3919 | break 3;; | |
3920 | esac | |
3921 | done | |
3922 | done | |
3923 | done | |
3924 | IFS=$as_save_IFS | |
3925 | ||
3926 | fi | |
3927 | ||
3928 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3929 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3930 | else | |
3931 | # As a last resort, use the slow shell script. Don't cache a | |
3932 | # value for MKDIR_P within a source directory, because that will | |
3933 | # break other packages using the cache if that directory is | |
3934 | # removed, or if the value is a relative name. | |
3935 | test -d ./--version && rmdir ./--version | |
3936 | MKDIR_P="$ac_install_sh -d" | |
3937 | fi | |
3938 | fi | |
ec6a6fbe AK |
3939 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3940 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3941 | |
d0191583 JM |
3942 | if test -n "$ac_tool_prefix"; then |
3943 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3944 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3945 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3946 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3947 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3948 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3949 | else |
3950 | if test -n "$RANLIB"; then | |
3951 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3952 | else | |
3953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3954 | for as_dir in $PATH | |
3955 | do | |
3956 | IFS=$as_save_IFS | |
3957 | test -z "$as_dir" && as_dir=. | |
3958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3960 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3961 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3962 | break 2 |
3963 | fi | |
3964 | done | |
3965 | done | |
3966 | IFS=$as_save_IFS | |
8106cdd5 | 3967 | |
795ca3e5 | 3968 | fi |
d0191583 JM |
3969 | fi |
3970 | RANLIB=$ac_cv_prog_RANLIB | |
3971 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3972 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3973 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3974 | else |
ec6a6fbe AK |
3975 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3976 | $as_echo "no" >&6; } | |
d0191583 JM |
3977 | fi |
3978 | ||
8106cdd5 | 3979 | |
ad6254c5 | 3980 | fi |
d0191583 JM |
3981 | if test -z "$ac_cv_prog_RANLIB"; then |
3982 | ac_ct_RANLIB=$RANLIB | |
3983 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3984 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3985 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3986 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3987 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3988 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3989 | else |
d0191583 JM |
3990 | if test -n "$ac_ct_RANLIB"; then |
3991 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3992 | else | |
3993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3994 | for as_dir in $PATH | |
8106cdd5 | 3995 | do |
d0191583 JM |
3996 | IFS=$as_save_IFS |
3997 | test -z "$as_dir" && as_dir=. | |
3998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4000 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 4001 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4002 | break 2 |
4003 | fi | |
4004 | done | |
4005 | done | |
4006 | IFS=$as_save_IFS | |
4007 | ||
4008 | fi | |
4009 | fi | |
4010 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4011 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
4012 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4013 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4014 | else |
ec6a6fbe AK |
4015 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4016 | $as_echo "no" >&6; } | |
d0191583 | 4017 | fi |
ad6254c5 | 4018 | |
d0191583 JM |
4019 | if test "x$ac_ct_RANLIB" = x; then |
4020 | RANLIB=":" | |
4021 | else | |
4022 | case $cross_compiling:$ac_tool_warned in | |
4023 | yes:) | |
ec6a6fbe AK |
4024 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4026 | ac_tool_warned=yes ;; |
4027 | esac | |
4028 | RANLIB=$ac_ct_RANLIB | |
4029 | fi | |
4030 | else | |
4031 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4032 | fi |
7a197a62 | 4033 | |
d0191583 JM |
4034 | # Extract the first word of "cflow", so it can be a program name with args. |
4035 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4036 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4037 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4038 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4039 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4040 | else |
4041 | case $CFLOW_CMD in | |
4042 | [\\/]* | ?:[\\/]*) | |
4043 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4044 | ;; | |
4045 | *) | |
4046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4047 | for as_dir in $PATH | |
4048 | do | |
4049 | IFS=$as_save_IFS | |
4050 | test -z "$as_dir" && as_dir=. | |
4051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4053 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4054 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4055 | break 2 |
4056 | fi | |
4057 | done | |
4058 | done | |
4059 | IFS=$as_save_IFS | |
ad6254c5 | 4060 | |
d0191583 | 4061 | ;; |
7a197a62 | 4062 | esac |
d0191583 JM |
4063 | fi |
4064 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4065 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4066 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4067 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4068 | else |
ec6a6fbe AK |
4069 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4070 | $as_echo "no" >&6; } | |
795ca3e5 | 4071 | fi |
7a197a62 | 4072 | |
ad6254c5 | 4073 | |
d0191583 JM |
4074 | # Extract the first word of "cscope", so it can be a program name with args. |
4075 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4076 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4077 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4078 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4079 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4080 | else |
4081 | case $CSCOPE_CMD in | |
4082 | [\\/]* | ?:[\\/]*) | |
4083 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4084 | ;; | |
4085 | *) | |
4086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4087 | for as_dir in $PATH | |
4088 | do | |
4089 | IFS=$as_save_IFS | |
4090 | test -z "$as_dir" && as_dir=. | |
4091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4093 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4094 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4095 | break 2 |
4096 | fi | |
795ca3e5 | 4097 | done |
d0191583 JM |
4098 | done |
4099 | IFS=$as_save_IFS | |
795ca3e5 | 4100 | |
d0191583 JM |
4101 | ;; |
4102 | esac | |
ad6254c5 | 4103 | fi |
d0191583 JM |
4104 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4105 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4106 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4107 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4108 | else |
ec6a6fbe AK |
4109 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4110 | $as_echo "no" >&6; } | |
795ca3e5 | 4111 | fi |
ad6254c5 | 4112 | |
7a197a62 | 4113 | |
ad6254c5 | 4114 | |
d0191583 JM |
4115 | ################################################################################ |
4116 | ||
4117 | ||
4118 | ||
4119 | ||
4120 | ||
4121 | ac_header_dirent=no | |
4122 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4123 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4124 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4125 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4127 | $as_echo_n "(cached) " >&6 |
d0191583 | 4128 | else |
ad6254c5 | 4129 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4130 | /* confdefs.h. */ |
4131 | _ACEOF | |
4132 | cat confdefs.h >>conftest.$ac_ext | |
4133 | cat >>conftest.$ac_ext <<_ACEOF | |
4134 | /* end confdefs.h. */ | |
d0191583 JM |
4135 | #include <sys/types.h> |
4136 | #include <$ac_hdr> | |
4137 | ||
4138 | int | |
4139 | main () | |
4140 | { | |
4141 | if ((DIR *) 0) | |
4142 | return 0; | |
4143 | ; | |
4144 | return 0; | |
4145 | } | |
ad6254c5 | 4146 | _ACEOF |
d0191583 JM |
4147 | rm -f conftest.$ac_objext |
4148 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4149 | case "(($ac_try" in |
4150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4151 | *) ac_try_echo=$ac_try;; | |
4152 | esac | |
ec6a6fbe AK |
4153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4154 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4155 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4156 | ac_status=$? |
4157 | grep -v '^ *+' conftest.er1 >conftest.err | |
4158 | rm -f conftest.er1 | |
4159 | cat conftest.err >&5 | |
ec6a6fbe | 4160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4161 | (exit $ac_status); } && { |
4162 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4163 | test ! -s conftest.err |
d0191583 JM |
4164 | } && test -s conftest.$ac_objext; then |
4165 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4166 | else |
ec6a6fbe | 4167 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4168 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4169 | |
d0191583 | 4170 | eval "$as_ac_Header=no" |
795ca3e5 | 4171 | fi |
7a197a62 | 4172 | |
d0191583 | 4173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4174 | fi |
ec6a6fbe AK |
4175 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4176 | $as_echo "$as_val"'` | |
4177 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4178 | $as_echo "$ac_res" >&6; } | |
4179 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4180 | $as_echo "$as_val"'` | |
4181 | if test "x$as_val" = x""yes; then | |
d0191583 | 4182 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4183 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4184 | _ACEOF |
795ca3e5 | 4185 | |
d0191583 JM |
4186 | ac_header_dirent=$ac_hdr; break |
4187 | fi | |
ad6254c5 | 4188 | |
d0191583 JM |
4189 | done |
4190 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4191 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4192 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4193 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4194 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4195 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4196 | else |
d0191583 JM |
4197 | ac_func_search_save_LIBS=$LIBS |
4198 | cat >conftest.$ac_ext <<_ACEOF | |
4199 | /* confdefs.h. */ | |
4200 | _ACEOF | |
4201 | cat confdefs.h >>conftest.$ac_ext | |
4202 | cat >>conftest.$ac_ext <<_ACEOF | |
4203 | /* end confdefs.h. */ | |
ad6254c5 | 4204 | |
d0191583 JM |
4205 | /* Override any GCC internal prototype to avoid an error. |
4206 | Use char because int might match the return type of a GCC | |
4207 | builtin and then its argument prototype would still apply. */ | |
4208 | #ifdef __cplusplus | |
4209 | extern "C" | |
4210 | #endif | |
4211 | char opendir (); | |
4212 | int | |
4213 | main () | |
4214 | { | |
4215 | return opendir (); | |
4216 | ; | |
4217 | return 0; | |
4218 | } | |
4219 | _ACEOF | |
4220 | for ac_lib in '' dir; do | |
4221 | if test -z "$ac_lib"; then | |
4222 | ac_res="none required" | |
4223 | else | |
4224 | ac_res=-l$ac_lib | |
4225 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4226 | fi | |
4227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4228 | if { (ac_try="$ac_link" | |
4229 | case "(($ac_try" in | |
4230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4231 | *) ac_try_echo=$ac_try;; | |
4232 | esac | |
ec6a6fbe AK |
4233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4234 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4235 | (eval "$ac_link") 2>conftest.er1 |
4236 | ac_status=$? | |
4237 | grep -v '^ *+' conftest.er1 >conftest.err | |
4238 | rm -f conftest.er1 | |
4239 | cat conftest.err >&5 | |
ec6a6fbe | 4240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4241 | (exit $ac_status); } && { |
4242 | test -z "$ac_c_werror_flag" || | |
4243 | test ! -s conftest.err | |
ec6a6fbe AK |
4244 | } && test -s conftest$ac_exeext && { |
4245 | test "$cross_compiling" = yes || | |
4246 | $as_test_x conftest$ac_exeext | |
4247 | }; then | |
d0191583 JM |
4248 | ac_cv_search_opendir=$ac_res |
4249 | else | |
ec6a6fbe | 4250 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4251 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4252 | |
ad6254c5 | 4253 | |
795ca3e5 | 4254 | fi |
ad6254c5 | 4255 | |
ec6a6fbe | 4256 | rm -rf conftest.dSYM |
d0191583 JM |
4257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4258 | conftest$ac_exeext | |
4259 | if test "${ac_cv_search_opendir+set}" = set; then | |
4260 | break | |
7a197a62 | 4261 | fi |
d0191583 JM |
4262 | done |
4263 | if test "${ac_cv_search_opendir+set}" = set; then | |
4264 | : | |
7a197a62 | 4265 | else |
d0191583 | 4266 | ac_cv_search_opendir=no |
7a197a62 | 4267 | fi |
d0191583 JM |
4268 | rm conftest.$ac_ext |
4269 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4270 | fi |
ec6a6fbe AK |
4271 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4272 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4273 | ac_res=$ac_cv_search_opendir |
4274 | if test "$ac_res" != no; then | |
4275 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4276 | |
d0191583 | 4277 | fi |
7a197a62 | 4278 | |
7a197a62 | 4279 | else |
ec6a6fbe AK |
4280 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4281 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4282 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4283 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4284 | else |
d0191583 JM |
4285 | ac_func_search_save_LIBS=$LIBS |
4286 | cat >conftest.$ac_ext <<_ACEOF | |
4287 | /* confdefs.h. */ | |
4288 | _ACEOF | |
4289 | cat confdefs.h >>conftest.$ac_ext | |
4290 | cat >>conftest.$ac_ext <<_ACEOF | |
4291 | /* end confdefs.h. */ | |
7a197a62 | 4292 | |
d0191583 JM |
4293 | /* Override any GCC internal prototype to avoid an error. |
4294 | Use char because int might match the return type of a GCC | |
4295 | builtin and then its argument prototype would still apply. */ | |
4296 | #ifdef __cplusplus | |
4297 | extern "C" | |
4298 | #endif | |
4299 | char opendir (); | |
4300 | int | |
4301 | main () | |
4302 | { | |
4303 | return opendir (); | |
4304 | ; | |
4305 | return 0; | |
4306 | } | |
4307 | _ACEOF | |
4308 | for ac_lib in '' x; do | |
4309 | if test -z "$ac_lib"; then | |
4310 | ac_res="none required" | |
4311 | else | |
4312 | ac_res=-l$ac_lib | |
4313 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4314 | fi | |
4315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4316 | if { (ac_try="$ac_link" | |
4317 | case "(($ac_try" in | |
4318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4319 | *) ac_try_echo=$ac_try;; | |
4320 | esac | |
ec6a6fbe AK |
4321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4322 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4323 | (eval "$ac_link") 2>conftest.er1 |
4324 | ac_status=$? | |
4325 | grep -v '^ *+' conftest.er1 >conftest.err | |
4326 | rm -f conftest.er1 | |
4327 | cat conftest.err >&5 | |
ec6a6fbe | 4328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4329 | (exit $ac_status); } && { |
4330 | test -z "$ac_c_werror_flag" || | |
4331 | test ! -s conftest.err | |
ec6a6fbe AK |
4332 | } && test -s conftest$ac_exeext && { |
4333 | test "$cross_compiling" = yes || | |
4334 | $as_test_x conftest$ac_exeext | |
4335 | }; then | |
d0191583 JM |
4336 | ac_cv_search_opendir=$ac_res |
4337 | else | |
ec6a6fbe | 4338 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4339 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4340 | |
4341 | ||
4342 | fi | |
4343 | ||
ec6a6fbe | 4344 | rm -rf conftest.dSYM |
d0191583 JM |
4345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4346 | conftest$ac_exeext | |
4347 | if test "${ac_cv_search_opendir+set}" = set; then | |
4348 | break | |
7a197a62 | 4349 | fi |
d0191583 JM |
4350 | done |
4351 | if test "${ac_cv_search_opendir+set}" = set; then | |
4352 | : | |
7a197a62 | 4353 | else |
d0191583 | 4354 | ac_cv_search_opendir=no |
7a197a62 | 4355 | fi |
d0191583 JM |
4356 | rm conftest.$ac_ext |
4357 | LIBS=$ac_func_search_save_LIBS | |
4358 | fi | |
ec6a6fbe AK |
4359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4360 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4361 | ac_res=$ac_cv_search_opendir |
4362 | if test "$ac_res" != no; then | |
4363 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4364 | |
7a197a62 | 4365 | fi |
7a197a62 | 4366 | |
d0191583 | 4367 | fi |
7a197a62 | 4368 | |
ec6a6fbe AK |
4369 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4370 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4371 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4372 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4373 | else |
4374 | cat >conftest.$ac_ext <<_ACEOF | |
4375 | /* confdefs.h. */ | |
4376 | _ACEOF | |
4377 | cat confdefs.h >>conftest.$ac_ext | |
4378 | cat >>conftest.$ac_ext <<_ACEOF | |
4379 | /* end confdefs.h. */ | |
4380 | #include <stdlib.h> | |
4381 | #include <stdarg.h> | |
4382 | #include <string.h> | |
4383 | #include <float.h> | |
4384 | ||
4385 | int | |
4386 | main () | |
4387 | { | |
4388 | ||
4389 | ; | |
4390 | return 0; | |
4391 | } | |
4392 | _ACEOF | |
4393 | rm -f conftest.$ac_objext | |
4394 | if { (ac_try="$ac_compile" | |
4395 | case "(($ac_try" in | |
4396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4397 | *) ac_try_echo=$ac_try;; | |
4398 | esac | |
ec6a6fbe AK |
4399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4400 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4401 | (eval "$ac_compile") 2>conftest.er1 |
4402 | ac_status=$? | |
4403 | grep -v '^ *+' conftest.er1 >conftest.err | |
4404 | rm -f conftest.er1 | |
4405 | cat conftest.err >&5 | |
ec6a6fbe | 4406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4407 | (exit $ac_status); } && { |
4408 | test -z "$ac_c_werror_flag" || | |
4409 | test ! -s conftest.err | |
4410 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4411 | ac_cv_header_stdc=yes |
4412 | else | |
ec6a6fbe | 4413 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4414 | sed 's/^/| /' conftest.$ac_ext >&5 |
4415 | ||
4416 | ac_cv_header_stdc=no | |
4417 | fi | |
4418 | ||
4419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4420 | ||
4421 | if test $ac_cv_header_stdc = yes; then | |
4422 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4423 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4424 | /* confdefs.h. */ |
4425 | _ACEOF | |
4426 | cat confdefs.h >>conftest.$ac_ext | |
4427 | cat >>conftest.$ac_ext <<_ACEOF | |
4428 | /* end confdefs.h. */ | |
4429 | #include <string.h> | |
8106cdd5 | 4430 | |
ad6254c5 AK |
4431 | _ACEOF |
4432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4433 | $EGREP "memchr" >/dev/null 2>&1; then | |
4434 | : | |
4435 | else | |
4436 | ac_cv_header_stdc=no | |
80992638 | 4437 | fi |
ad6254c5 | 4438 | rm -f conftest* |
795ca3e5 AK |
4439 | |
4440 | fi | |
4441 | ||
ad6254c5 AK |
4442 | if test $ac_cv_header_stdc = yes; then |
4443 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4444 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4445 | /* confdefs.h. */ |
4446 | _ACEOF | |
4447 | cat confdefs.h >>conftest.$ac_ext | |
4448 | cat >>conftest.$ac_ext <<_ACEOF | |
4449 | /* end confdefs.h. */ | |
80992638 | 4450 | #include <stdlib.h> |
ad6254c5 AK |
4451 | |
4452 | _ACEOF | |
80992638 | 4453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4454 | $EGREP "free" >/dev/null 2>&1; then |
4455 | : | |
795ca3e5 | 4456 | else |
ad6254c5 | 4457 | ac_cv_header_stdc=no |
795ca3e5 | 4458 | fi |
80992638 | 4459 | rm -f conftest* |
8106cdd5 | 4460 | |
795ca3e5 AK |
4461 | fi |
4462 | ||
ad6254c5 AK |
4463 | if test $ac_cv_header_stdc = yes; then |
4464 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4465 | if test "$cross_compiling" = yes; then | |
4466 | : | |
795ca3e5 | 4467 | else |
ad6254c5 | 4468 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4469 | /* confdefs.h. */ |
4470 | _ACEOF | |
4471 | cat confdefs.h >>conftest.$ac_ext | |
4472 | cat >>conftest.$ac_ext <<_ACEOF | |
4473 | /* end confdefs.h. */ | |
4474 | #include <ctype.h> | |
7a197a62 | 4475 | #include <stdlib.h> |
ad6254c5 AK |
4476 | #if ((' ' & 0x0FF) == 0x020) |
4477 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4478 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4479 | #else | |
4480 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4481 | (('a' <= (c) && (c) <= 'i') \ |
4482 | || ('j' <= (c) && (c) <= 'r') \ | |
4483 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4484 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4485 | #endif |
ad6254c5 AK |
4486 | |
4487 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4488 | int | |
4489 | main () | |
4490 | { | |
4491 | int i; | |
4492 | for (i = 0; i < 256; i++) | |
4493 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4494 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4495 | return 2; |
4496 | return 0; | |
ad6254c5 AK |
4497 | } |
4498 | _ACEOF | |
4499 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4500 | if { (ac_try="$ac_link" |
4501 | case "(($ac_try" in | |
4502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4503 | *) ac_try_echo=$ac_try;; | |
4504 | esac | |
ec6a6fbe AK |
4505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4506 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4507 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4508 | ac_status=$? |
ec6a6fbe | 4509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4510 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4511 | { (case "(($ac_try" in |
4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4513 | *) ac_try_echo=$ac_try;; | |
4514 | esac | |
ec6a6fbe AK |
4515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4516 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4517 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4518 | ac_status=$? |
ec6a6fbe | 4519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4520 | (exit $ac_status); }; }; then |
4521 | : | |
795ca3e5 | 4522 | else |
ec6a6fbe AK |
4523 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4524 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4525 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4526 | |
ad6254c5 AK |
4527 | ( exit $ac_status ) |
4528 | ac_cv_header_stdc=no | |
80992638 | 4529 | fi |
ec6a6fbe | 4530 | rm -rf conftest.dSYM |
7a197a62 | 4531 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4532 | fi |
7a197a62 AK |
4533 | |
4534 | ||
ad6254c5 AK |
4535 | fi |
4536 | fi | |
ec6a6fbe AK |
4537 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4538 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4539 | if test $ac_cv_header_stdc = yes; then |
4540 | ||
4541 | cat >>confdefs.h <<\_ACEOF | |
4542 | #define STDC_HEADERS 1 | |
4543 | _ACEOF | |
795ca3e5 AK |
4544 | |
4545 | fi | |
4546 | ||
d911ec67 | 4547 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4548 | |
ad6254c5 | 4549 | |
7a197a62 | 4550 | |
8106cdd5 | 4551 | |
795ca3e5 | 4552 | |
795ca3e5 | 4553 | |
d911ec67 AK |
4554 | |
4555 | ||
4556 | ||
4557 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4558 | inttypes.h stdint.h unistd.h | |
4559 | do | |
4560 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4561 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4562 | $as_echo_n "checking for $ac_header... " >&6; } | |
4563 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4564 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4565 | else |
ad6254c5 | 4566 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4567 | /* confdefs.h. */ |
4568 | _ACEOF | |
4569 | cat confdefs.h >>conftest.$ac_ext | |
4570 | cat >>conftest.$ac_ext <<_ACEOF | |
4571 | /* end confdefs.h. */ | |
d911ec67 | 4572 | $ac_includes_default |
ad6254c5 | 4573 | |
d911ec67 | 4574 | #include <$ac_header> |
ad6254c5 AK |
4575 | _ACEOF |
4576 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4577 | if { (ac_try="$ac_compile" |
4578 | case "(($ac_try" in | |
4579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4580 | *) ac_try_echo=$ac_try;; | |
4581 | esac | |
ec6a6fbe AK |
4582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4583 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4584 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4585 | ac_status=$? |
8a2fc586 AK |
4586 | grep -v '^ *+' conftest.er1 >conftest.err |
4587 | rm -f conftest.er1 | |
4588 | cat conftest.err >&5 | |
ec6a6fbe | 4589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4590 | (exit $ac_status); } && { |
4591 | test -z "$ac_c_werror_flag" || | |
4592 | test ! -s conftest.err | |
4593 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4594 | eval "$as_ac_Header=yes" |
795ca3e5 | 4595 | else |
ec6a6fbe | 4596 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4597 | sed 's/^/| /' conftest.$ac_ext >&5 |
4598 | ||
d911ec67 | 4599 | eval "$as_ac_Header=no" |
795ca3e5 | 4600 | fi |
7a197a62 AK |
4601 | |
4602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4603 | fi |
d911ec67 AK |
4604 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4605 | $as_echo "$as_val"'` | |
4606 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4607 | $as_echo "$ac_res" >&6; } | |
4608 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4609 | $as_echo "$as_val"'` | |
4610 | if test "x$as_val" = x""yes; then | |
4611 | cat >>confdefs.h <<_ACEOF | |
4612 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4613 | _ACEOF |
b896caa1 | 4614 | |
8106cdd5 | 4615 | fi |
b896caa1 | 4616 | |
d911ec67 | 4617 | done |
d0191583 JM |
4618 | |
4619 | ||
d911ec67 AK |
4620 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4621 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4622 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4623 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4624 | else |
4625 | cat >conftest.$ac_ext <<_ACEOF | |
4626 | /* confdefs.h. */ | |
4627 | _ACEOF | |
4628 | cat confdefs.h >>conftest.$ac_ext | |
4629 | cat >>conftest.$ac_ext <<_ACEOF | |
4630 | /* end confdefs.h. */ | |
d911ec67 AK |
4631 | #include <sys/types.h> |
4632 | int | |
4633 | main () | |
4634 | { | |
4635 | return makedev(0, 0); | |
4636 | ; | |
4637 | return 0; | |
4638 | } | |
d0191583 | 4639 | _ACEOF |
d911ec67 AK |
4640 | rm -f conftest.$ac_objext conftest$ac_exeext |
4641 | if { (ac_try="$ac_link" | |
d0191583 JM |
4642 | case "(($ac_try" in |
4643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4644 | *) ac_try_echo=$ac_try;; | |
4645 | esac | |
ec6a6fbe AK |
4646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4647 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4648 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4649 | ac_status=$? |
4650 | grep -v '^ *+' conftest.er1 >conftest.err | |
4651 | rm -f conftest.er1 | |
4652 | cat conftest.err >&5 | |
ec6a6fbe | 4653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4654 | (exit $ac_status); } && { |
4655 | test -z "$ac_c_werror_flag" || | |
4656 | test ! -s conftest.err | |
d911ec67 AK |
4657 | } && test -s conftest$ac_exeext && { |
4658 | test "$cross_compiling" = yes || | |
4659 | $as_test_x conftest$ac_exeext | |
4660 | }; then | |
4661 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4662 | else |
ec6a6fbe | 4663 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4664 | sed 's/^/| /' conftest.$ac_ext >&5 |
4665 | ||
d911ec67 | 4666 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4667 | fi |
4668 | ||
d911ec67 AK |
4669 | rm -rf conftest.dSYM |
4670 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4671 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4672 | |
4673 | fi | |
d911ec67 AK |
4674 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4675 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4676 | |
d911ec67 AK |
4677 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4678 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4679 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4680 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4681 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4682 | $as_echo_n "(cached) " >&6 |
d0191583 | 4683 | fi |
d911ec67 AK |
4684 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4685 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4686 | else |
d0191583 | 4687 | # Is the header compilable? |
d911ec67 AK |
4688 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4689 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4690 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4691 | /* confdefs.h. */ |
4692 | _ACEOF | |
4693 | cat confdefs.h >>conftest.$ac_ext | |
4694 | cat >>conftest.$ac_ext <<_ACEOF | |
4695 | /* end confdefs.h. */ | |
4696 | $ac_includes_default | |
d911ec67 | 4697 | #include <sys/mkdev.h> |
ad6254c5 AK |
4698 | _ACEOF |
4699 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4700 | if { (ac_try="$ac_compile" |
4701 | case "(($ac_try" in | |
4702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4703 | *) ac_try_echo=$ac_try;; | |
4704 | esac | |
ec6a6fbe AK |
4705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4706 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4707 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4708 | ac_status=$? |
8a2fc586 AK |
4709 | grep -v '^ *+' conftest.er1 >conftest.err |
4710 | rm -f conftest.er1 | |
4711 | cat conftest.err >&5 | |
ec6a6fbe | 4712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4713 | (exit $ac_status); } && { |
4714 | test -z "$ac_c_werror_flag" || | |
4715 | test ! -s conftest.err | |
4716 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4717 | ac_header_compiler=yes |
ad6254c5 | 4718 | else |
ec6a6fbe | 4719 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4720 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4721 | |
d0191583 | 4722 | ac_header_compiler=no |
ad6254c5 | 4723 | fi |
7a197a62 AK |
4724 | |
4725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4726 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4727 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4728 | |
4729 | # Is the header present? | |
d911ec67 AK |
4730 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4731 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4732 | cat >conftest.$ac_ext <<_ACEOF |
4733 | /* confdefs.h. */ | |
4734 | _ACEOF | |
4735 | cat confdefs.h >>conftest.$ac_ext | |
4736 | cat >>conftest.$ac_ext <<_ACEOF | |
4737 | /* end confdefs.h. */ | |
d911ec67 | 4738 | #include <sys/mkdev.h> |
d0191583 JM |
4739 | _ACEOF |
4740 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4741 | case "(($ac_try" in | |
4742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4743 | *) ac_try_echo=$ac_try;; | |
4744 | esac | |
ec6a6fbe AK |
4745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4746 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4747 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4748 | ac_status=$? | |
4749 | grep -v '^ *+' conftest.er1 >conftest.err | |
4750 | rm -f conftest.er1 | |
4751 | cat conftest.err >&5 | |
ec6a6fbe | 4752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4753 | (exit $ac_status); } >/dev/null && { |
4754 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4755 | test ! -s conftest.err | |
4756 | }; then | |
4757 | ac_header_preproc=yes | |
4758 | else | |
ec6a6fbe | 4759 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4760 | sed 's/^/| /' conftest.$ac_ext >&5 |
4761 | ||
4762 | ac_header_preproc=no | |
4763 | fi | |
4764 | ||
4765 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4766 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4767 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4768 | |
4769 | # So? What about this header? | |
4770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4771 | yes:no: ) | |
d911ec67 AK |
4772 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4773 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4774 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4775 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4776 | ac_header_preproc=yes |
4777 | ;; | |
4778 | no:yes:* ) | |
d911ec67 AK |
4779 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4780 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4781 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4782 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4783 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4784 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4785 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4786 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4787 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4788 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4789 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4790 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4791 | |
4792 | ;; | |
4793 | esac | |
d911ec67 AK |
4794 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4795 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4796 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4797 | $as_echo_n "(cached) " >&6 |
d0191583 | 4798 | else |
d911ec67 | 4799 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4800 | fi |
d911ec67 AK |
4801 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4802 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4803 | |
4804 | fi | |
d911ec67 AK |
4805 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4806 | ||
4807 | cat >>confdefs.h <<\_ACEOF | |
4808 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4809 | _ACEOF |
a38df97f | 4810 | |
80992638 AK |
4811 | fi |
4812 | ||
80992638 | 4813 | |
5a52dca9 | 4814 | |
d911ec67 AK |
4815 | if test $ac_cv_header_sys_mkdev_h = no; then |
4816 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4817 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4818 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4819 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4820 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4821 | fi |
d911ec67 AK |
4822 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4823 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4824 | else |
4825 | # Is the header compilable? | |
d911ec67 AK |
4826 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4827 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4828 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4829 | /* confdefs.h. */ |
4830 | _ACEOF | |
4831 | cat confdefs.h >>conftest.$ac_ext | |
4832 | cat >>conftest.$ac_ext <<_ACEOF | |
4833 | /* end confdefs.h. */ | |
4834 | $ac_includes_default | |
d911ec67 | 4835 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4836 | _ACEOF |
4837 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4838 | if { (ac_try="$ac_compile" |
4839 | case "(($ac_try" in | |
4840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4841 | *) ac_try_echo=$ac_try;; | |
4842 | esac | |
ec6a6fbe AK |
4843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4844 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4845 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4846 | ac_status=$? |
8a2fc586 AK |
4847 | grep -v '^ *+' conftest.er1 >conftest.err |
4848 | rm -f conftest.er1 | |
4849 | cat conftest.err >&5 | |
ec6a6fbe | 4850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4851 | (exit $ac_status); } && { |
4852 | test -z "$ac_c_werror_flag" || | |
4853 | test ! -s conftest.err | |
4854 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4855 | ac_header_compiler=yes |
4856 | else | |
ec6a6fbe | 4857 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4858 | sed 's/^/| /' conftest.$ac_ext >&5 |
4859 | ||
4860 | ac_header_compiler=no | |
4861 | fi | |
4862 | ||
4863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4864 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4865 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4866 | |
4867 | # Is the header present? | |
d911ec67 AK |
4868 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4869 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4870 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4871 | /* confdefs.h. */ |
4872 | _ACEOF | |
4873 | cat confdefs.h >>conftest.$ac_ext | |
4874 | cat >>conftest.$ac_ext <<_ACEOF | |
4875 | /* end confdefs.h. */ | |
d911ec67 | 4876 | #include <sys/sysmacros.h> |
ad6254c5 | 4877 | _ACEOF |
7a197a62 AK |
4878 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4879 | case "(($ac_try" in | |
4880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4881 | *) ac_try_echo=$ac_try;; | |
4882 | esac | |
ec6a6fbe AK |
4883 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4884 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4885 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4886 | ac_status=$? |
4887 | grep -v '^ *+' conftest.er1 >conftest.err | |
4888 | rm -f conftest.er1 | |
4889 | cat conftest.err >&5 | |
ec6a6fbe | 4890 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4891 | (exit $ac_status); } >/dev/null && { |
4892 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4893 | test ! -s conftest.err | |
4894 | }; then | |
ad6254c5 AK |
4895 | ac_header_preproc=yes |
4896 | else | |
ec6a6fbe | 4897 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4898 | sed 's/^/| /' conftest.$ac_ext >&5 |
4899 | ||
4900 | ac_header_preproc=no | |
4901 | fi | |
7a197a62 | 4902 | |
ad6254c5 | 4903 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4904 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4905 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4906 | |
4907 | # So? What about this header? | |
8a2fc586 AK |
4908 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4909 | yes:no: ) | |
d911ec67 AK |
4910 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4911 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4912 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4913 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4914 | ac_header_preproc=yes |
ad6254c5 | 4915 | ;; |
8a2fc586 | 4916 | no:yes:* ) |
d911ec67 AK |
4917 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4918 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4919 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4920 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4921 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4922 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4923 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4924 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4925 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4926 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4927 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4928 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4929 | |
ad6254c5 AK |
4930 | ;; |
4931 | esac | |
d911ec67 AK |
4932 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4933 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4934 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4935 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4936 | else |
d911ec67 | 4937 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4938 | fi |
d911ec67 AK |
4939 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4940 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4941 | |
4942 | fi | |
d911ec67 AK |
4943 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4944 | ||
4945 | cat >>confdefs.h <<\_ACEOF | |
4946 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4947 | _ACEOF |
b896caa1 | 4948 | |
80992638 AK |
4949 | fi |
4950 | ||
d8ac0fbc | 4951 | |
d911ec67 AK |
4952 | fi |
4953 | fi | |
d8ac0fbc | 4954 | |
d911ec67 AK |
4955 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4956 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4957 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4958 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4959 | else |
d911ec67 | 4960 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4961 | /* confdefs.h. */ |
4962 | _ACEOF | |
4963 | cat confdefs.h >>conftest.$ac_ext | |
4964 | cat >>conftest.$ac_ext <<_ACEOF | |
4965 | /* end confdefs.h. */ | |
d911ec67 AK |
4966 | #include <stdlib.h> |
4967 | #include <stdarg.h> | |
4968 | #include <string.h> | |
4969 | #include <float.h> | |
4970 | ||
4971 | int | |
4972 | main () | |
4973 | { | |
4974 | ||
4975 | ; | |
4976 | return 0; | |
4977 | } | |
ad6254c5 AK |
4978 | _ACEOF |
4979 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4980 | if { (ac_try="$ac_compile" |
4981 | case "(($ac_try" in | |
4982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4983 | *) ac_try_echo=$ac_try;; | |
4984 | esac | |
ec6a6fbe AK |
4985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4986 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4987 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4988 | ac_status=$? |
8a2fc586 AK |
4989 | grep -v '^ *+' conftest.er1 >conftest.err |
4990 | rm -f conftest.er1 | |
4991 | cat conftest.err >&5 | |
ec6a6fbe | 4992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4993 | (exit $ac_status); } && { |
4994 | test -z "$ac_c_werror_flag" || | |
4995 | test ! -s conftest.err | |
4996 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4997 | ac_cv_header_stdc=yes |
ad6254c5 | 4998 | else |
ec6a6fbe | 4999 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5000 | sed 's/^/| /' conftest.$ac_ext >&5 |
5001 | ||
d911ec67 | 5002 | ac_cv_header_stdc=no |
ad6254c5 | 5003 | fi |
7a197a62 AK |
5004 | |
5005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5006 | |
d911ec67 AK |
5007 | if test $ac_cv_header_stdc = yes; then |
5008 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5009 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5010 | /* confdefs.h. */ |
5011 | _ACEOF | |
5012 | cat confdefs.h >>conftest.$ac_ext | |
5013 | cat >>conftest.$ac_ext <<_ACEOF | |
5014 | /* end confdefs.h. */ | |
d911ec67 AK |
5015 | #include <string.h> |
5016 | ||
ad6254c5 | 5017 | _ACEOF |
d911ec67 AK |
5018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5019 | $EGREP "memchr" >/dev/null 2>&1; then | |
5020 | : | |
5021 | else | |
5022 | ac_cv_header_stdc=no | |
5023 | fi | |
5024 | rm -f conftest* | |
5025 | ||
5026 | fi | |
5027 | ||
5028 | if test $ac_cv_header_stdc = yes; then | |
5029 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5030 | cat >conftest.$ac_ext <<_ACEOF | |
5031 | /* confdefs.h. */ | |
5032 | _ACEOF | |
5033 | cat confdefs.h >>conftest.$ac_ext | |
5034 | cat >>conftest.$ac_ext <<_ACEOF | |
5035 | /* end confdefs.h. */ | |
5036 | #include <stdlib.h> | |
5037 | ||
5038 | _ACEOF | |
5039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5040 | $EGREP "free" >/dev/null 2>&1; then | |
5041 | : | |
5042 | else | |
5043 | ac_cv_header_stdc=no | |
5044 | fi | |
5045 | rm -f conftest* | |
5046 | ||
5047 | fi | |
5048 | ||
5049 | if test $ac_cv_header_stdc = yes; then | |
5050 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5051 | if test "$cross_compiling" = yes; then | |
5052 | : | |
5053 | else | |
5054 | cat >conftest.$ac_ext <<_ACEOF | |
5055 | /* confdefs.h. */ | |
5056 | _ACEOF | |
5057 | cat confdefs.h >>conftest.$ac_ext | |
5058 | cat >>conftest.$ac_ext <<_ACEOF | |
5059 | /* end confdefs.h. */ | |
5060 | #include <ctype.h> | |
5061 | #include <stdlib.h> | |
5062 | #if ((' ' & 0x0FF) == 0x020) | |
5063 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5064 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5065 | #else | |
5066 | # define ISLOWER(c) \ | |
5067 | (('a' <= (c) && (c) <= 'i') \ | |
5068 | || ('j' <= (c) && (c) <= 'r') \ | |
5069 | || ('s' <= (c) && (c) <= 'z')) | |
5070 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5071 | #endif | |
5072 | ||
5073 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5074 | int | |
5075 | main () | |
5076 | { | |
5077 | int i; | |
5078 | for (i = 0; i < 256; i++) | |
5079 | if (XOR (islower (i), ISLOWER (i)) | |
5080 | || toupper (i) != TOUPPER (i)) | |
5081 | return 2; | |
5082 | return 0; | |
5083 | } | |
5084 | _ACEOF | |
5085 | rm -f conftest$ac_exeext | |
5086 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5087 | case "(($ac_try" in |
5088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5089 | *) ac_try_echo=$ac_try;; | |
5090 | esac | |
ec6a6fbe AK |
5091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5092 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5093 | (eval "$ac_link") 2>&5 |
5094 | ac_status=$? | |
5095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5097 | { (case "(($ac_try" in | |
5098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5099 | *) ac_try_echo=$ac_try;; | |
5100 | esac | |
5101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5102 | $as_echo "$ac_try_echo") >&5 | |
5103 | (eval "$ac_try") 2>&5 | |
5104 | ac_status=$? | |
5105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5106 | (exit $ac_status); }; }; then | |
5107 | : | |
5108 | else | |
5109 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5110 | $as_echo "$as_me: failed program was:" >&5 | |
5111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5112 | ||
5113 | ( exit $ac_status ) | |
5114 | ac_cv_header_stdc=no | |
5115 | fi | |
5116 | rm -rf conftest.dSYM | |
5117 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5118 | fi | |
5119 | ||
5120 | ||
5121 | fi | |
5122 | fi | |
5123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5124 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5125 | if test $ac_cv_header_stdc = yes; then | |
5126 | ||
5127 | cat >>confdefs.h <<\_ACEOF | |
5128 | #define STDC_HEADERS 1 | |
5129 | _ACEOF | |
5130 | ||
5131 | fi | |
5132 | ||
5133 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5134 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5135 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5136 | $as_echo_n "(cached) " >&6 | |
5137 | else | |
5138 | cat >conftest.$ac_ext <<_ACEOF | |
5139 | /* confdefs.h. */ | |
5140 | _ACEOF | |
5141 | cat confdefs.h >>conftest.$ac_ext | |
5142 | cat >>conftest.$ac_ext <<_ACEOF | |
5143 | /* end confdefs.h. */ | |
5144 | #include <sys/types.h> | |
5145 | #include <sys/wait.h> | |
5146 | #ifndef WEXITSTATUS | |
5147 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5148 | #endif | |
5149 | #ifndef WIFEXITED | |
5150 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5151 | #endif | |
5152 | ||
5153 | int | |
5154 | main () | |
5155 | { | |
5156 | int s; | |
5157 | wait (&s); | |
5158 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5159 | ; | |
5160 | return 0; | |
5161 | } | |
5162 | _ACEOF | |
5163 | rm -f conftest.$ac_objext | |
5164 | if { (ac_try="$ac_compile" | |
5165 | case "(($ac_try" in | |
5166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5167 | *) ac_try_echo=$ac_try;; | |
5168 | esac | |
5169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5170 | $as_echo "$ac_try_echo") >&5 | |
5171 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5172 | ac_status=$? |
5173 | grep -v '^ *+' conftest.er1 >conftest.err | |
5174 | rm -f conftest.er1 | |
5175 | cat conftest.err >&5 | |
ec6a6fbe | 5176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5177 | (exit $ac_status); } && { |
5178 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5179 | test ! -s conftest.err |
d911ec67 AK |
5180 | } && test -s conftest.$ac_objext; then |
5181 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5182 | else |
ec6a6fbe | 5183 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5184 | sed 's/^/| /' conftest.$ac_ext >&5 |
5185 | ||
d911ec67 | 5186 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5187 | fi |
7a197a62 | 5188 | |
d911ec67 AK |
5189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5190 | fi | |
5191 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5192 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5193 | if test $ac_cv_header_sys_wait_h = yes; then | |
5194 | ||
5195 | cat >>confdefs.h <<\_ACEOF | |
5196 | #define HAVE_SYS_WAIT_H 1 | |
5197 | _ACEOF | |
5198 | ||
5199 | fi | |
5200 | ||
5201 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5202 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5203 | if test "${ac_cv_header_time+set}" = set; then | |
5204 | $as_echo_n "(cached) " >&6 | |
5205 | else | |
5206 | cat >conftest.$ac_ext <<_ACEOF | |
5207 | /* confdefs.h. */ | |
5208 | _ACEOF | |
5209 | cat confdefs.h >>conftest.$ac_ext | |
5210 | cat >>conftest.$ac_ext <<_ACEOF | |
5211 | /* end confdefs.h. */ | |
5212 | #include <sys/types.h> | |
5213 | #include <sys/time.h> | |
5214 | #include <time.h> | |
5215 | ||
5216 | int | |
5217 | main () | |
5218 | { | |
5219 | if ((struct tm *) 0) | |
5220 | return 0; | |
5221 | ; | |
5222 | return 0; | |
5223 | } | |
5224 | _ACEOF | |
5225 | rm -f conftest.$ac_objext | |
5226 | if { (ac_try="$ac_compile" | |
5227 | case "(($ac_try" in | |
5228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5229 | *) ac_try_echo=$ac_try;; | |
5230 | esac | |
5231 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5232 | $as_echo "$ac_try_echo") >&5 | |
5233 | (eval "$ac_compile") 2>conftest.er1 | |
5234 | ac_status=$? | |
5235 | grep -v '^ *+' conftest.er1 >conftest.err | |
5236 | rm -f conftest.er1 | |
5237 | cat conftest.err >&5 | |
5238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5239 | (exit $ac_status); } && { | |
5240 | test -z "$ac_c_werror_flag" || | |
5241 | test ! -s conftest.err | |
5242 | } && test -s conftest.$ac_objext; then | |
5243 | ac_cv_header_time=yes | |
5244 | else | |
5245 | $as_echo "$as_me: failed program was:" >&5 | |
5246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5247 | ||
5248 | ac_cv_header_time=no | |
5249 | fi | |
5250 | ||
5251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5252 | fi | |
5253 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5254 | $as_echo "$ac_cv_header_time" >&6; } | |
5255 | if test $ac_cv_header_time = yes; then | |
5256 | ||
5257 | cat >>confdefs.h <<\_ACEOF | |
5258 | #define TIME_WITH_SYS_TIME 1 | |
5259 | _ACEOF | |
5260 | ||
5261 | fi | |
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5279 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5280 | sys/wait.h time.h | |
5281 | do | |
5282 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5283 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5284 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5285 | $as_echo_n "checking for $ac_header... " >&6; } | |
5286 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5287 | $as_echo_n "(cached) " >&6 | |
5288 | fi | |
5289 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5290 | $as_echo "$as_val"'` | |
5291 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5292 | $as_echo "$ac_res" >&6; } | |
5293 | else | |
5294 | # Is the header compilable? | |
5295 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5296 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5297 | cat >conftest.$ac_ext <<_ACEOF | |
5298 | /* confdefs.h. */ | |
5299 | _ACEOF | |
5300 | cat confdefs.h >>conftest.$ac_ext | |
5301 | cat >>conftest.$ac_ext <<_ACEOF | |
5302 | /* end confdefs.h. */ | |
5303 | $ac_includes_default | |
5304 | #include <$ac_header> | |
5305 | _ACEOF | |
5306 | rm -f conftest.$ac_objext | |
5307 | if { (ac_try="$ac_compile" | |
5308 | case "(($ac_try" in | |
5309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5310 | *) ac_try_echo=$ac_try;; | |
5311 | esac | |
5312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5313 | $as_echo "$ac_try_echo") >&5 | |
5314 | (eval "$ac_compile") 2>conftest.er1 | |
5315 | ac_status=$? | |
5316 | grep -v '^ *+' conftest.er1 >conftest.err | |
5317 | rm -f conftest.er1 | |
5318 | cat conftest.err >&5 | |
5319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5320 | (exit $ac_status); } && { | |
5321 | test -z "$ac_c_werror_flag" || | |
5322 | test ! -s conftest.err | |
5323 | } && test -s conftest.$ac_objext; then | |
5324 | ac_header_compiler=yes | |
5325 | else | |
5326 | $as_echo "$as_me: failed program was:" >&5 | |
5327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5328 | ||
5329 | ac_header_compiler=no | |
5330 | fi | |
5331 | ||
5332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5333 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5334 | $as_echo "$ac_header_compiler" >&6; } | |
5335 | ||
5336 | # Is the header present? | |
5337 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5338 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5339 | cat >conftest.$ac_ext <<_ACEOF | |
5340 | /* confdefs.h. */ | |
5341 | _ACEOF | |
5342 | cat confdefs.h >>conftest.$ac_ext | |
5343 | cat >>conftest.$ac_ext <<_ACEOF | |
5344 | /* end confdefs.h. */ | |
5345 | #include <$ac_header> | |
5346 | _ACEOF | |
5347 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5348 | case "(($ac_try" in | |
5349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5350 | *) ac_try_echo=$ac_try;; | |
5351 | esac | |
5352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5353 | $as_echo "$ac_try_echo") >&5 | |
5354 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5355 | ac_status=$? | |
5356 | grep -v '^ *+' conftest.er1 >conftest.err | |
5357 | rm -f conftest.er1 | |
5358 | cat conftest.err >&5 | |
5359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5360 | (exit $ac_status); } >/dev/null && { | |
5361 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5362 | test ! -s conftest.err | |
5363 | }; then | |
5364 | ac_header_preproc=yes | |
5365 | else | |
5366 | $as_echo "$as_me: failed program was:" >&5 | |
5367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5368 | ||
5369 | ac_header_preproc=no | |
5370 | fi | |
5371 | ||
5372 | rm -f conftest.err conftest.$ac_ext | |
5373 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5374 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5375 | |
5376 | # So? What about this header? | |
8a2fc586 AK |
5377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5378 | yes:no: ) | |
ec6a6fbe AK |
5379 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5380 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5381 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5382 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5383 | ac_header_preproc=yes |
ad6254c5 | 5384 | ;; |
8a2fc586 | 5385 | no:yes:* ) |
ec6a6fbe AK |
5386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5387 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5389 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5390 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5391 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5393 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5395 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5397 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5398 | |
ad6254c5 AK |
5399 | ;; |
5400 | esac | |
d911ec67 AK |
5401 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5402 | $as_echo_n "checking for $ac_header... " >&6; } | |
5403 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5404 | $as_echo_n "(cached) " >&6 | |
5405 | else | |
5406 | eval "$as_ac_Header=\$ac_header_preproc" | |
5407 | fi | |
5408 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5409 | $as_echo "$as_val"'` | |
5410 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5411 | $as_echo "$ac_res" >&6; } | |
5412 | ||
5413 | fi | |
5414 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5415 | $as_echo "$as_val"'` | |
5416 | if test "x$as_val" = x""yes; then | |
5417 | cat >>confdefs.h <<_ACEOF | |
5418 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5419 | _ACEOF | |
5420 | ||
5421 | else | |
5422 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5423 | $as_echo "$as_me: error: bailing out" >&2;} | |
5424 | { (exit 1); exit 1; }; } | |
5425 | fi | |
5426 | ||
5427 | done | |
5428 | ||
5429 | ||
5430 | case "$host_os" in | |
5431 | linux*) | |
5432 | ||
5433 | ||
5434 | ||
5435 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5436 | do | |
5437 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5439 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5440 | $as_echo_n "checking for $ac_header... " >&6; } | |
5441 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5442 | $as_echo_n "(cached) " >&6 | |
5443 | fi | |
5444 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5445 | $as_echo "$as_val"'` | |
5446 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5447 | $as_echo "$ac_res" >&6; } | |
5448 | else | |
5449 | # Is the header compilable? | |
5450 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5451 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5452 | cat >conftest.$ac_ext <<_ACEOF | |
5453 | /* confdefs.h. */ | |
5454 | _ACEOF | |
5455 | cat confdefs.h >>conftest.$ac_ext | |
5456 | cat >>conftest.$ac_ext <<_ACEOF | |
5457 | /* end confdefs.h. */ | |
5458 | $ac_includes_default | |
5459 | #include <$ac_header> | |
5460 | _ACEOF | |
5461 | rm -f conftest.$ac_objext | |
5462 | if { (ac_try="$ac_compile" | |
5463 | case "(($ac_try" in | |
5464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5465 | *) ac_try_echo=$ac_try;; | |
5466 | esac | |
5467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5468 | $as_echo "$ac_try_echo") >&5 | |
5469 | (eval "$ac_compile") 2>conftest.er1 | |
5470 | ac_status=$? | |
5471 | grep -v '^ *+' conftest.er1 >conftest.err | |
5472 | rm -f conftest.er1 | |
5473 | cat conftest.err >&5 | |
5474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5475 | (exit $ac_status); } && { | |
5476 | test -z "$ac_c_werror_flag" || | |
5477 | test ! -s conftest.err | |
5478 | } && test -s conftest.$ac_objext; then | |
5479 | ac_header_compiler=yes | |
5480 | else | |
5481 | $as_echo "$as_me: failed program was:" >&5 | |
5482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5483 | ||
5484 | ac_header_compiler=no | |
5485 | fi | |
5486 | ||
5487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5488 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5489 | $as_echo "$ac_header_compiler" >&6; } | |
5490 | ||
5491 | # Is the header present? | |
5492 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5493 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5494 | cat >conftest.$ac_ext <<_ACEOF | |
5495 | /* confdefs.h. */ | |
5496 | _ACEOF | |
5497 | cat confdefs.h >>conftest.$ac_ext | |
5498 | cat >>conftest.$ac_ext <<_ACEOF | |
5499 | /* end confdefs.h. */ | |
5500 | #include <$ac_header> | |
5501 | _ACEOF | |
5502 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5503 | case "(($ac_try" in | |
5504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5505 | *) ac_try_echo=$ac_try;; | |
5506 | esac | |
5507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5508 | $as_echo "$ac_try_echo") >&5 | |
5509 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5510 | ac_status=$? | |
5511 | grep -v '^ *+' conftest.er1 >conftest.err | |
5512 | rm -f conftest.er1 | |
5513 | cat conftest.err >&5 | |
5514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5515 | (exit $ac_status); } >/dev/null && { | |
5516 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5517 | test ! -s conftest.err | |
5518 | }; then | |
5519 | ac_header_preproc=yes | |
5520 | else | |
5521 | $as_echo "$as_me: failed program was:" >&5 | |
5522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5523 | ||
5524 | ac_header_preproc=no | |
5525 | fi | |
5526 | ||
5527 | rm -f conftest.err conftest.$ac_ext | |
5528 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5529 | $as_echo "$ac_header_preproc" >&6; } | |
5530 | ||
5531 | # So? What about this header? | |
5532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5533 | yes:no: ) | |
5534 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5535 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5536 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5537 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5538 | ac_header_preproc=yes | |
5539 | ;; | |
5540 | no:yes:* ) | |
5541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5542 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5543 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5544 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5545 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5546 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5547 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5548 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5550 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5552 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5553 | ||
5554 | ;; | |
5555 | esac | |
5556 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5557 | $as_echo_n "checking for $ac_header... " >&6; } | |
5558 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5559 | $as_echo_n "(cached) " >&6 | |
5560 | else | |
5561 | eval "$as_ac_Header=\$ac_header_preproc" | |
5562 | fi | |
5563 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5564 | $as_echo "$as_val"'` | |
5565 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5566 | $as_echo "$ac_res" >&6; } | |
5567 | ||
5568 | fi | |
5569 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5570 | $as_echo "$as_val"'` | |
5571 | if test "x$as_val" = x""yes; then | |
5572 | cat >>confdefs.h <<_ACEOF | |
5573 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5574 | _ACEOF | |
5575 | ||
5576 | else | |
5577 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5578 | $as_echo "$as_me: error: bailing out" >&2;} | |
5579 | { (exit 1); exit 1; }; } | |
5580 | fi | |
5581 | ||
5582 | done | |
5583 | ;; | |
5584 | darwin*) | |
5585 | ||
5586 | ||
5587 | for ac_header in machine/endian.h sys/disk.h | |
5588 | do | |
5589 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5591 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5592 | $as_echo_n "checking for $ac_header... " >&6; } | |
5593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5594 | $as_echo_n "(cached) " >&6 | |
5595 | fi | |
5596 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5597 | $as_echo "$as_val"'` | |
5598 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5599 | $as_echo "$ac_res" >&6; } | |
5600 | else | |
5601 | # Is the header compilable? | |
5602 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5603 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5604 | cat >conftest.$ac_ext <<_ACEOF | |
5605 | /* confdefs.h. */ | |
5606 | _ACEOF | |
5607 | cat confdefs.h >>conftest.$ac_ext | |
5608 | cat >>conftest.$ac_ext <<_ACEOF | |
5609 | /* end confdefs.h. */ | |
5610 | $ac_includes_default | |
5611 | #include <$ac_header> | |
5612 | _ACEOF | |
5613 | rm -f conftest.$ac_objext | |
5614 | if { (ac_try="$ac_compile" | |
5615 | case "(($ac_try" in | |
5616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5617 | *) ac_try_echo=$ac_try;; | |
5618 | esac | |
5619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5620 | $as_echo "$ac_try_echo") >&5 | |
5621 | (eval "$ac_compile") 2>conftest.er1 | |
5622 | ac_status=$? | |
5623 | grep -v '^ *+' conftest.er1 >conftest.err | |
5624 | rm -f conftest.er1 | |
5625 | cat conftest.err >&5 | |
5626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5627 | (exit $ac_status); } && { | |
5628 | test -z "$ac_c_werror_flag" || | |
5629 | test ! -s conftest.err | |
5630 | } && test -s conftest.$ac_objext; then | |
5631 | ac_header_compiler=yes | |
5632 | else | |
5633 | $as_echo "$as_me: failed program was:" >&5 | |
5634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5635 | ||
5636 | ac_header_compiler=no | |
5637 | fi | |
5638 | ||
5639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5640 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5641 | $as_echo "$ac_header_compiler" >&6; } | |
5642 | ||
5643 | # Is the header present? | |
5644 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5645 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5646 | cat >conftest.$ac_ext <<_ACEOF | |
5647 | /* confdefs.h. */ | |
5648 | _ACEOF | |
5649 | cat confdefs.h >>conftest.$ac_ext | |
5650 | cat >>conftest.$ac_ext <<_ACEOF | |
5651 | /* end confdefs.h. */ | |
5652 | #include <$ac_header> | |
5653 | _ACEOF | |
5654 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5655 | case "(($ac_try" in | |
5656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5657 | *) ac_try_echo=$ac_try;; | |
5658 | esac | |
5659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5660 | $as_echo "$ac_try_echo") >&5 | |
5661 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5662 | ac_status=$? | |
5663 | grep -v '^ *+' conftest.er1 >conftest.err | |
5664 | rm -f conftest.er1 | |
5665 | cat conftest.err >&5 | |
5666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5667 | (exit $ac_status); } >/dev/null && { | |
5668 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5669 | test ! -s conftest.err | |
5670 | }; then | |
5671 | ac_header_preproc=yes | |
5672 | else | |
5673 | $as_echo "$as_me: failed program was:" >&5 | |
5674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5675 | ||
5676 | ac_header_preproc=no | |
5677 | fi | |
5678 | ||
5679 | rm -f conftest.err conftest.$ac_ext | |
5680 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5681 | $as_echo "$ac_header_preproc" >&6; } | |
5682 | ||
5683 | # So? What about this header? | |
5684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5685 | yes:no: ) | |
5686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5687 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5689 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5690 | ac_header_preproc=yes | |
5691 | ;; | |
5692 | no:yes:* ) | |
5693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5694 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5696 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5698 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5700 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5702 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5704 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5705 | ||
5706 | ;; | |
5707 | esac | |
5708 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5709 | $as_echo_n "checking for $ac_header... " >&6; } | |
5710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5711 | $as_echo_n "(cached) " >&6 | |
5712 | else | |
5713 | eval "$as_ac_Header=\$ac_header_preproc" | |
5714 | fi | |
5715 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5716 | $as_echo "$as_val"'` | |
5717 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5718 | $as_echo "$ac_res" >&6; } | |
5719 | ||
5720 | fi | |
5721 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5722 | $as_echo "$as_val"'` | |
5723 | if test "x$as_val" = x""yes; then | |
5724 | cat >>confdefs.h <<_ACEOF | |
5725 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5726 | _ACEOF | |
5727 | ||
5728 | else | |
5729 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5730 | $as_echo "$as_me: error: bailing out" >&2;} | |
5731 | { (exit 1); exit 1; }; } | |
5732 | fi | |
5733 | ||
5734 | done | |
5735 | ;; | |
5736 | esac | |
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | ||
5752 | ||
5753 | ||
5754 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5755 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5756 | sys/types.h unistd.h | |
5757 | do | |
5758 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5759 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5760 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5761 | $as_echo_n "checking for $ac_header... " >&6; } | |
5762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5763 | $as_echo_n "(cached) " >&6 | |
5764 | fi | |
5765 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5766 | $as_echo "$as_val"'` | |
5767 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5768 | $as_echo "$ac_res" >&6; } | |
5769 | else | |
5770 | # Is the header compilable? | |
5771 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5772 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5773 | cat >conftest.$ac_ext <<_ACEOF | |
5774 | /* confdefs.h. */ | |
5775 | _ACEOF | |
5776 | cat confdefs.h >>conftest.$ac_ext | |
5777 | cat >>conftest.$ac_ext <<_ACEOF | |
5778 | /* end confdefs.h. */ | |
5779 | $ac_includes_default | |
5780 | #include <$ac_header> | |
5781 | _ACEOF | |
5782 | rm -f conftest.$ac_objext | |
5783 | if { (ac_try="$ac_compile" | |
5784 | case "(($ac_try" in | |
5785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5786 | *) ac_try_echo=$ac_try;; | |
5787 | esac | |
5788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5789 | $as_echo "$ac_try_echo") >&5 | |
5790 | (eval "$ac_compile") 2>conftest.er1 | |
5791 | ac_status=$? | |
5792 | grep -v '^ *+' conftest.er1 >conftest.err | |
5793 | rm -f conftest.er1 | |
5794 | cat conftest.err >&5 | |
5795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5796 | (exit $ac_status); } && { | |
5797 | test -z "$ac_c_werror_flag" || | |
5798 | test ! -s conftest.err | |
5799 | } && test -s conftest.$ac_objext; then | |
5800 | ac_header_compiler=yes | |
5801 | else | |
5802 | $as_echo "$as_me: failed program was:" >&5 | |
5803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5804 | ||
5805 | ac_header_compiler=no | |
5806 | fi | |
5807 | ||
5808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5809 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5810 | $as_echo "$ac_header_compiler" >&6; } | |
5811 | ||
5812 | # Is the header present? | |
5813 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5814 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5815 | cat >conftest.$ac_ext <<_ACEOF | |
5816 | /* confdefs.h. */ | |
5817 | _ACEOF | |
5818 | cat confdefs.h >>conftest.$ac_ext | |
5819 | cat >>conftest.$ac_ext <<_ACEOF | |
5820 | /* end confdefs.h. */ | |
5821 | #include <$ac_header> | |
5822 | _ACEOF | |
5823 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5824 | case "(($ac_try" in | |
5825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5826 | *) ac_try_echo=$ac_try;; | |
5827 | esac | |
5828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5829 | $as_echo "$ac_try_echo") >&5 | |
5830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5831 | ac_status=$? | |
5832 | grep -v '^ *+' conftest.er1 >conftest.err | |
5833 | rm -f conftest.er1 | |
5834 | cat conftest.err >&5 | |
5835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5836 | (exit $ac_status); } >/dev/null && { | |
5837 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5838 | test ! -s conftest.err | |
5839 | }; then | |
5840 | ac_header_preproc=yes | |
5841 | else | |
5842 | $as_echo "$as_me: failed program was:" >&5 | |
5843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5844 | ||
5845 | ac_header_preproc=no | |
5846 | fi | |
5847 | ||
5848 | rm -f conftest.err conftest.$ac_ext | |
5849 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5850 | $as_echo "$ac_header_preproc" >&6; } | |
5851 | ||
5852 | # So? What about this header? | |
5853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5854 | yes:no: ) | |
5855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5856 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5858 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5859 | ac_header_preproc=yes | |
5860 | ;; | |
5861 | no:yes:* ) | |
5862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5863 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5865 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5867 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5869 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5871 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5873 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5874 | ||
5875 | ;; | |
5876 | esac | |
5877 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5878 | $as_echo_n "checking for $ac_header... " >&6; } | |
5879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5880 | $as_echo_n "(cached) " >&6 | |
5881 | else | |
5882 | eval "$as_ac_Header=\$ac_header_preproc" | |
5883 | fi | |
5884 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5885 | $as_echo "$as_val"'` | |
5886 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5887 | $as_echo "$ac_res" >&6; } | |
5888 | ||
5889 | fi | |
5890 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5891 | $as_echo "$as_val"'` | |
5892 | if test "x$as_val" = x""yes; then | |
5893 | cat >>confdefs.h <<_ACEOF | |
5894 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5895 | _ACEOF | |
5896 | ||
5897 | else | |
5898 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5899 | $as_echo "$as_me: error: bailing out" >&2;} | |
5900 | { (exit 1); exit 1; }; } | |
5901 | fi | |
5902 | ||
5903 | done | |
5904 | ||
5905 | ||
5906 | ||
5907 | for ac_header in termios.h sys/statvfs.h | |
5908 | do | |
5909 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5910 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5911 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5912 | $as_echo_n "checking for $ac_header... " >&6; } | |
5913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5914 | $as_echo_n "(cached) " >&6 | |
5915 | fi | |
5916 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5917 | $as_echo "$as_val"'` | |
5918 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5919 | $as_echo "$ac_res" >&6; } | |
5920 | else | |
5921 | # Is the header compilable? | |
5922 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5923 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5924 | cat >conftest.$ac_ext <<_ACEOF | |
5925 | /* confdefs.h. */ | |
5926 | _ACEOF | |
5927 | cat confdefs.h >>conftest.$ac_ext | |
5928 | cat >>conftest.$ac_ext <<_ACEOF | |
5929 | /* end confdefs.h. */ | |
5930 | $ac_includes_default | |
5931 | #include <$ac_header> | |
5932 | _ACEOF | |
5933 | rm -f conftest.$ac_objext | |
5934 | if { (ac_try="$ac_compile" | |
5935 | case "(($ac_try" in | |
5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5937 | *) ac_try_echo=$ac_try;; | |
5938 | esac | |
5939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5940 | $as_echo "$ac_try_echo") >&5 | |
5941 | (eval "$ac_compile") 2>conftest.er1 | |
5942 | ac_status=$? | |
5943 | grep -v '^ *+' conftest.er1 >conftest.err | |
5944 | rm -f conftest.er1 | |
5945 | cat conftest.err >&5 | |
5946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5947 | (exit $ac_status); } && { | |
5948 | test -z "$ac_c_werror_flag" || | |
5949 | test ! -s conftest.err | |
5950 | } && test -s conftest.$ac_objext; then | |
5951 | ac_header_compiler=yes | |
5952 | else | |
5953 | $as_echo "$as_me: failed program was:" >&5 | |
5954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5955 | ||
5956 | ac_header_compiler=no | |
5957 | fi | |
5958 | ||
5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5960 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5961 | $as_echo "$ac_header_compiler" >&6; } | |
5962 | ||
5963 | # Is the header present? | |
5964 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5965 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5966 | cat >conftest.$ac_ext <<_ACEOF | |
5967 | /* confdefs.h. */ | |
5968 | _ACEOF | |
5969 | cat confdefs.h >>conftest.$ac_ext | |
5970 | cat >>conftest.$ac_ext <<_ACEOF | |
5971 | /* end confdefs.h. */ | |
5972 | #include <$ac_header> | |
5973 | _ACEOF | |
5974 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5975 | case "(($ac_try" in | |
5976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5977 | *) ac_try_echo=$ac_try;; | |
5978 | esac | |
5979 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5980 | $as_echo "$ac_try_echo") >&5 | |
5981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5982 | ac_status=$? | |
5983 | grep -v '^ *+' conftest.er1 >conftest.err | |
5984 | rm -f conftest.er1 | |
5985 | cat conftest.err >&5 | |
5986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5987 | (exit $ac_status); } >/dev/null && { | |
5988 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5989 | test ! -s conftest.err | |
5990 | }; then | |
5991 | ac_header_preproc=yes | |
5992 | else | |
5993 | $as_echo "$as_me: failed program was:" >&5 | |
5994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5995 | ||
5996 | ac_header_preproc=no | |
5997 | fi | |
5998 | ||
5999 | rm -f conftest.err conftest.$ac_ext | |
6000 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6001 | $as_echo "$ac_header_preproc" >&6; } | |
6002 | ||
6003 | # So? What about this header? | |
6004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6005 | yes:no: ) | |
6006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6007 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6009 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6010 | ac_header_preproc=yes | |
6011 | ;; | |
6012 | no:yes:* ) | |
6013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6014 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6016 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6018 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6020 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6022 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6024 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6025 | ||
6026 | ;; | |
6027 | esac | |
6028 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6029 | $as_echo_n "checking for $ac_header... " >&6; } | |
6030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6031 | $as_echo_n "(cached) " >&6 | |
6032 | else | |
6033 | eval "$as_ac_Header=\$ac_header_preproc" | |
6034 | fi | |
6035 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6036 | $as_echo "$as_val"'` | |
6037 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6038 | $as_echo "$ac_res" >&6; } | |
6039 | ||
6040 | fi | |
6041 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6042 | $as_echo "$as_val"'` | |
6043 | if test "x$as_val" = x""yes; then | |
6044 | cat >>confdefs.h <<_ACEOF | |
6045 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6046 | _ACEOF | |
6047 | ||
6048 | fi | |
6049 | ||
6050 | done | |
6051 | ||
6052 | ||
6053 | ################################################################################ | |
6054 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6055 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6056 | if test "${ac_cv_c_const+set}" = set; then | |
6057 | $as_echo_n "(cached) " >&6 | |
6058 | else | |
6059 | cat >conftest.$ac_ext <<_ACEOF | |
6060 | /* confdefs.h. */ | |
6061 | _ACEOF | |
6062 | cat confdefs.h >>conftest.$ac_ext | |
6063 | cat >>conftest.$ac_ext <<_ACEOF | |
6064 | /* end confdefs.h. */ | |
6065 | ||
6066 | int | |
6067 | main () | |
6068 | { | |
6069 | /* FIXME: Include the comments suggested by Paul. */ | |
6070 | #ifndef __cplusplus | |
6071 | /* Ultrix mips cc rejects this. */ | |
6072 | typedef int charset[2]; | |
6073 | const charset cs; | |
6074 | /* SunOS 4.1.1 cc rejects this. */ | |
6075 | char const *const *pcpcc; | |
6076 | char **ppc; | |
6077 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6078 | struct point {int x, y;}; | |
6079 | static struct point const zero = {0,0}; | |
6080 | /* AIX XL C 1.02.0.0 rejects this. | |
6081 | It does not let you subtract one const X* pointer from another in | |
6082 | an arm of an if-expression whose if-part is not a constant | |
6083 | expression */ | |
6084 | const char *g = "string"; | |
6085 | pcpcc = &g + (g ? g-g : 0); | |
6086 | /* HPUX 7.0 cc rejects these. */ | |
6087 | ++pcpcc; | |
6088 | ppc = (char**) pcpcc; | |
6089 | pcpcc = (char const *const *) ppc; | |
6090 | { /* SCO 3.2v4 cc rejects this. */ | |
6091 | char *t; | |
6092 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6093 | ||
6094 | *t++ = 0; | |
6095 | if (s) return 0; | |
6096 | } | |
6097 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6098 | int x[] = {25, 17}; | |
6099 | const int *foo = &x[0]; | |
6100 | ++foo; | |
6101 | } | |
6102 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6103 | typedef const int *iptr; | |
6104 | iptr p = 0; | |
6105 | ++p; | |
6106 | } | |
6107 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6108 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6109 | struct s { int j; const int *ap[3]; }; | |
6110 | struct s *b; b->j = 5; | |
6111 | } | |
6112 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6113 | const int foo = 10; | |
6114 | if (!foo) return 0; | |
6115 | } | |
6116 | return !cs[0] && !zero.x; | |
6117 | #endif | |
6118 | ||
6119 | ; | |
6120 | return 0; | |
6121 | } | |
6122 | _ACEOF | |
6123 | rm -f conftest.$ac_objext | |
6124 | if { (ac_try="$ac_compile" | |
6125 | case "(($ac_try" in | |
6126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6127 | *) ac_try_echo=$ac_try;; | |
6128 | esac | |
6129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6130 | $as_echo "$ac_try_echo") >&5 | |
6131 | (eval "$ac_compile") 2>conftest.er1 | |
6132 | ac_status=$? | |
6133 | grep -v '^ *+' conftest.er1 >conftest.err | |
6134 | rm -f conftest.er1 | |
6135 | cat conftest.err >&5 | |
6136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6137 | (exit $ac_status); } && { | |
6138 | test -z "$ac_c_werror_flag" || | |
6139 | test ! -s conftest.err | |
6140 | } && test -s conftest.$ac_objext; then | |
6141 | ac_cv_c_const=yes | |
6142 | else | |
6143 | $as_echo "$as_me: failed program was:" >&5 | |
6144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6145 | ||
6146 | ac_cv_c_const=no | |
6147 | fi | |
6148 | ||
6149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6150 | fi | |
6151 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6152 | $as_echo "$ac_cv_c_const" >&6; } | |
6153 | if test $ac_cv_c_const = no; then | |
6154 | ||
6155 | cat >>confdefs.h <<\_ACEOF | |
6156 | #define const /**/ | |
6157 | _ACEOF | |
6158 | ||
6159 | fi | |
6160 | ||
6161 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6162 | $as_echo_n "checking for inline... " >&6; } | |
6163 | if test "${ac_cv_c_inline+set}" = set; then | |
6164 | $as_echo_n "(cached) " >&6 | |
6165 | else | |
6166 | ac_cv_c_inline=no | |
6167 | for ac_kw in inline __inline__ __inline; do | |
6168 | cat >conftest.$ac_ext <<_ACEOF | |
6169 | /* confdefs.h. */ | |
6170 | _ACEOF | |
6171 | cat confdefs.h >>conftest.$ac_ext | |
6172 | cat >>conftest.$ac_ext <<_ACEOF | |
6173 | /* end confdefs.h. */ | |
6174 | #ifndef __cplusplus | |
6175 | typedef int foo_t; | |
6176 | static $ac_kw foo_t static_foo () {return 0; } | |
6177 | $ac_kw foo_t foo () {return 0; } | |
6178 | #endif | |
6179 | ||
6180 | _ACEOF | |
6181 | rm -f conftest.$ac_objext | |
6182 | if { (ac_try="$ac_compile" | |
6183 | case "(($ac_try" in | |
6184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6185 | *) ac_try_echo=$ac_try;; | |
6186 | esac | |
6187 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6188 | $as_echo "$ac_try_echo") >&5 | |
6189 | (eval "$ac_compile") 2>conftest.er1 | |
6190 | ac_status=$? | |
6191 | grep -v '^ *+' conftest.er1 >conftest.err | |
6192 | rm -f conftest.er1 | |
6193 | cat conftest.err >&5 | |
6194 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6195 | (exit $ac_status); } && { | |
6196 | test -z "$ac_c_werror_flag" || | |
6197 | test ! -s conftest.err | |
6198 | } && test -s conftest.$ac_objext; then | |
6199 | ac_cv_c_inline=$ac_kw | |
6200 | else | |
6201 | $as_echo "$as_me: failed program was:" >&5 | |
6202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6203 | ||
6204 | ||
6205 | fi | |
6206 | ||
6207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6208 | test "$ac_cv_c_inline" != no && break | |
6209 | done | |
6210 | ||
6211 | fi | |
6212 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6213 | $as_echo "$ac_cv_c_inline" >&6; } | |
6214 | ||
6215 | ||
6216 | case $ac_cv_c_inline in | |
6217 | inline | yes) ;; | |
6218 | *) | |
6219 | case $ac_cv_c_inline in | |
6220 | no) ac_val=;; | |
6221 | *) ac_val=$ac_cv_c_inline;; | |
6222 | esac | |
6223 | cat >>confdefs.h <<_ACEOF | |
6224 | #ifndef __cplusplus | |
6225 | #define inline $ac_val | |
6226 | #endif | |
6227 | _ACEOF | |
6228 | ;; | |
6229 | esac | |
6230 | ||
6231 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6232 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6233 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6234 | $as_echo_n "(cached) " >&6 | |
6235 | else | |
6236 | cat >conftest.$ac_ext <<_ACEOF | |
6237 | /* confdefs.h. */ | |
6238 | _ACEOF | |
6239 | cat confdefs.h >>conftest.$ac_ext | |
6240 | cat >>conftest.$ac_ext <<_ACEOF | |
6241 | /* end confdefs.h. */ | |
6242 | $ac_includes_default | |
6243 | int | |
6244 | main () | |
6245 | { | |
6246 | static struct stat ac_aggr; | |
6247 | if (ac_aggr.st_rdev) | |
6248 | return 0; | |
6249 | ; | |
6250 | return 0; | |
6251 | } | |
6252 | _ACEOF | |
6253 | rm -f conftest.$ac_objext | |
6254 | if { (ac_try="$ac_compile" | |
6255 | case "(($ac_try" in | |
6256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6257 | *) ac_try_echo=$ac_try;; | |
6258 | esac | |
6259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6260 | $as_echo "$ac_try_echo") >&5 | |
6261 | (eval "$ac_compile") 2>conftest.er1 | |
6262 | ac_status=$? | |
6263 | grep -v '^ *+' conftest.er1 >conftest.err | |
6264 | rm -f conftest.er1 | |
6265 | cat conftest.err >&5 | |
6266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6267 | (exit $ac_status); } && { | |
6268 | test -z "$ac_c_werror_flag" || | |
6269 | test ! -s conftest.err | |
6270 | } && test -s conftest.$ac_objext; then | |
6271 | ac_cv_member_struct_stat_st_rdev=yes | |
6272 | else | |
6273 | $as_echo "$as_me: failed program was:" >&5 | |
6274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6275 | ||
6276 | cat >conftest.$ac_ext <<_ACEOF | |
6277 | /* confdefs.h. */ | |
6278 | _ACEOF | |
6279 | cat confdefs.h >>conftest.$ac_ext | |
6280 | cat >>conftest.$ac_ext <<_ACEOF | |
6281 | /* end confdefs.h. */ | |
6282 | $ac_includes_default | |
6283 | int | |
6284 | main () | |
6285 | { | |
6286 | static struct stat ac_aggr; | |
6287 | if (sizeof ac_aggr.st_rdev) | |
6288 | return 0; | |
6289 | ; | |
6290 | return 0; | |
6291 | } | |
6292 | _ACEOF | |
6293 | rm -f conftest.$ac_objext | |
6294 | if { (ac_try="$ac_compile" | |
6295 | case "(($ac_try" in | |
6296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6297 | *) ac_try_echo=$ac_try;; | |
6298 | esac | |
6299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6300 | $as_echo "$ac_try_echo") >&5 | |
6301 | (eval "$ac_compile") 2>conftest.er1 | |
6302 | ac_status=$? | |
6303 | grep -v '^ *+' conftest.er1 >conftest.err | |
6304 | rm -f conftest.er1 | |
6305 | cat conftest.err >&5 | |
6306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6307 | (exit $ac_status); } && { | |
6308 | test -z "$ac_c_werror_flag" || | |
6309 | test ! -s conftest.err | |
6310 | } && test -s conftest.$ac_objext; then | |
6311 | ac_cv_member_struct_stat_st_rdev=yes | |
6312 | else | |
6313 | $as_echo "$as_me: failed program was:" >&5 | |
6314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6315 | ||
6316 | ac_cv_member_struct_stat_st_rdev=no | |
6317 | fi | |
6318 | ||
6319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6320 | fi | |
6321 | ||
6322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6323 | fi | |
6324 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6325 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6326 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6327 | ||
6328 | cat >>confdefs.h <<_ACEOF | |
6329 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6330 | _ACEOF | |
6331 | ||
6332 | ||
6333 | fi | |
6334 | ||
6335 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6336 | $as_echo_n "checking for off_t... " >&6; } | |
6337 | if test "${ac_cv_type_off_t+set}" = set; then | |
6338 | $as_echo_n "(cached) " >&6 | |
6339 | else | |
6340 | ac_cv_type_off_t=no | |
6341 | cat >conftest.$ac_ext <<_ACEOF | |
6342 | /* confdefs.h. */ | |
6343 | _ACEOF | |
6344 | cat confdefs.h >>conftest.$ac_ext | |
6345 | cat >>conftest.$ac_ext <<_ACEOF | |
6346 | /* end confdefs.h. */ | |
6347 | $ac_includes_default | |
6348 | int | |
6349 | main () | |
6350 | { | |
6351 | if (sizeof (off_t)) | |
6352 | return 0; | |
6353 | ; | |
6354 | return 0; | |
6355 | } | |
6356 | _ACEOF | |
6357 | rm -f conftest.$ac_objext | |
6358 | if { (ac_try="$ac_compile" | |
6359 | case "(($ac_try" in | |
6360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6361 | *) ac_try_echo=$ac_try;; | |
6362 | esac | |
6363 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6364 | $as_echo "$ac_try_echo") >&5 | |
6365 | (eval "$ac_compile") 2>conftest.er1 | |
6366 | ac_status=$? | |
6367 | grep -v '^ *+' conftest.er1 >conftest.err | |
6368 | rm -f conftest.er1 | |
6369 | cat conftest.err >&5 | |
6370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6371 | (exit $ac_status); } && { | |
6372 | test -z "$ac_c_werror_flag" || | |
6373 | test ! -s conftest.err | |
6374 | } && test -s conftest.$ac_objext; then | |
6375 | cat >conftest.$ac_ext <<_ACEOF | |
6376 | /* confdefs.h. */ | |
6377 | _ACEOF | |
6378 | cat confdefs.h >>conftest.$ac_ext | |
6379 | cat >>conftest.$ac_ext <<_ACEOF | |
6380 | /* end confdefs.h. */ | |
6381 | $ac_includes_default | |
6382 | int | |
6383 | main () | |
6384 | { | |
6385 | if (sizeof ((off_t))) | |
6386 | return 0; | |
6387 | ; | |
6388 | return 0; | |
6389 | } | |
6390 | _ACEOF | |
6391 | rm -f conftest.$ac_objext | |
6392 | if { (ac_try="$ac_compile" | |
6393 | case "(($ac_try" in | |
6394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6395 | *) ac_try_echo=$ac_try;; | |
6396 | esac | |
6397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6398 | $as_echo "$ac_try_echo") >&5 | |
6399 | (eval "$ac_compile") 2>conftest.er1 | |
6400 | ac_status=$? | |
6401 | grep -v '^ *+' conftest.er1 >conftest.err | |
6402 | rm -f conftest.er1 | |
6403 | cat conftest.err >&5 | |
6404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6405 | (exit $ac_status); } && { | |
6406 | test -z "$ac_c_werror_flag" || | |
6407 | test ! -s conftest.err | |
6408 | } && test -s conftest.$ac_objext; then | |
6409 | : | |
6410 | else | |
6411 | $as_echo "$as_me: failed program was:" >&5 | |
6412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6413 | ||
6414 | ac_cv_type_off_t=yes | |
6415 | fi | |
6416 | ||
6417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6418 | else | |
6419 | $as_echo "$as_me: failed program was:" >&5 | |
6420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6421 | ||
6422 | ||
6423 | fi | |
6424 | ||
6425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6426 | fi | |
6427 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6428 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6429 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6430 | : | |
6431 | else | |
6432 | ||
6433 | cat >>confdefs.h <<_ACEOF | |
6434 | #define off_t long int | |
6435 | _ACEOF | |
6436 | ||
6437 | fi | |
6438 | ||
6439 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6440 | $as_echo_n "checking for pid_t... " >&6; } | |
6441 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6442 | $as_echo_n "(cached) " >&6 | |
6443 | else | |
6444 | ac_cv_type_pid_t=no | |
6445 | cat >conftest.$ac_ext <<_ACEOF | |
6446 | /* confdefs.h. */ | |
6447 | _ACEOF | |
6448 | cat confdefs.h >>conftest.$ac_ext | |
6449 | cat >>conftest.$ac_ext <<_ACEOF | |
6450 | /* end confdefs.h. */ | |
6451 | $ac_includes_default | |
6452 | int | |
6453 | main () | |
6454 | { | |
6455 | if (sizeof (pid_t)) | |
6456 | return 0; | |
6457 | ; | |
6458 | return 0; | |
6459 | } | |
6460 | _ACEOF | |
6461 | rm -f conftest.$ac_objext | |
6462 | if { (ac_try="$ac_compile" | |
6463 | case "(($ac_try" in | |
6464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6465 | *) ac_try_echo=$ac_try;; | |
6466 | esac | |
6467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6468 | $as_echo "$ac_try_echo") >&5 | |
6469 | (eval "$ac_compile") 2>conftest.er1 | |
6470 | ac_status=$? | |
6471 | grep -v '^ *+' conftest.er1 >conftest.err | |
6472 | rm -f conftest.er1 | |
6473 | cat conftest.err >&5 | |
6474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6475 | (exit $ac_status); } && { | |
6476 | test -z "$ac_c_werror_flag" || | |
6477 | test ! -s conftest.err | |
6478 | } && test -s conftest.$ac_objext; then | |
6479 | cat >conftest.$ac_ext <<_ACEOF | |
6480 | /* confdefs.h. */ | |
6481 | _ACEOF | |
6482 | cat confdefs.h >>conftest.$ac_ext | |
6483 | cat >>conftest.$ac_ext <<_ACEOF | |
6484 | /* end confdefs.h. */ | |
6485 | $ac_includes_default | |
6486 | int | |
6487 | main () | |
6488 | { | |
6489 | if (sizeof ((pid_t))) | |
6490 | return 0; | |
6491 | ; | |
6492 | return 0; | |
6493 | } | |
6494 | _ACEOF | |
6495 | rm -f conftest.$ac_objext | |
6496 | if { (ac_try="$ac_compile" | |
6497 | case "(($ac_try" in | |
6498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6499 | *) ac_try_echo=$ac_try;; | |
6500 | esac | |
6501 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6502 | $as_echo "$ac_try_echo") >&5 | |
6503 | (eval "$ac_compile") 2>conftest.er1 | |
6504 | ac_status=$? | |
6505 | grep -v '^ *+' conftest.er1 >conftest.err | |
6506 | rm -f conftest.er1 | |
6507 | cat conftest.err >&5 | |
6508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6509 | (exit $ac_status); } && { | |
6510 | test -z "$ac_c_werror_flag" || | |
6511 | test ! -s conftest.err | |
6512 | } && test -s conftest.$ac_objext; then | |
6513 | : | |
6514 | else | |
6515 | $as_echo "$as_me: failed program was:" >&5 | |
6516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6517 | ||
6518 | ac_cv_type_pid_t=yes | |
6519 | fi | |
6520 | ||
6521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6522 | else | |
6523 | $as_echo "$as_me: failed program was:" >&5 | |
6524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6525 | ||
6526 | ||
6527 | fi | |
6528 | ||
6529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6530 | fi | |
6531 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6532 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6533 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6534 | : | |
6535 | else | |
6536 | ||
6537 | cat >>confdefs.h <<_ACEOF | |
6538 | #define pid_t int | |
6539 | _ACEOF | |
6540 | ||
6541 | fi | |
6542 | ||
6543 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6544 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6545 | if test "${ac_cv_type_signal+set}" = set; then | |
6546 | $as_echo_n "(cached) " >&6 | |
6547 | else | |
6548 | cat >conftest.$ac_ext <<_ACEOF | |
6549 | /* confdefs.h. */ | |
6550 | _ACEOF | |
6551 | cat confdefs.h >>conftest.$ac_ext | |
6552 | cat >>conftest.$ac_ext <<_ACEOF | |
6553 | /* end confdefs.h. */ | |
6554 | #include <sys/types.h> | |
6555 | #include <signal.h> | |
6556 | ||
6557 | int | |
6558 | main () | |
6559 | { | |
6560 | return *(signal (0, 0)) (0) == 1; | |
6561 | ; | |
6562 | return 0; | |
6563 | } | |
6564 | _ACEOF | |
6565 | rm -f conftest.$ac_objext | |
6566 | if { (ac_try="$ac_compile" | |
6567 | case "(($ac_try" in | |
6568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6569 | *) ac_try_echo=$ac_try;; | |
6570 | esac | |
6571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6572 | $as_echo "$ac_try_echo") >&5 | |
6573 | (eval "$ac_compile") 2>conftest.er1 | |
6574 | ac_status=$? | |
6575 | grep -v '^ *+' conftest.er1 >conftest.err | |
6576 | rm -f conftest.er1 | |
6577 | cat conftest.err >&5 | |
6578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6579 | (exit $ac_status); } && { | |
6580 | test -z "$ac_c_werror_flag" || | |
6581 | test ! -s conftest.err | |
6582 | } && test -s conftest.$ac_objext; then | |
6583 | ac_cv_type_signal=int | |
6584 | else | |
6585 | $as_echo "$as_me: failed program was:" >&5 | |
6586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6587 | ||
6588 | ac_cv_type_signal=void | |
6589 | fi | |
6590 | ||
6591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6592 | fi | |
6593 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6594 | $as_echo "$ac_cv_type_signal" >&6; } | |
6595 | ||
6596 | cat >>confdefs.h <<_ACEOF | |
6597 | #define RETSIGTYPE $ac_cv_type_signal | |
6598 | _ACEOF | |
6599 | ||
6600 | ||
6601 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6602 | $as_echo_n "checking for size_t... " >&6; } | |
6603 | if test "${ac_cv_type_size_t+set}" = set; then | |
6604 | $as_echo_n "(cached) " >&6 | |
6605 | else | |
6606 | ac_cv_type_size_t=no | |
6607 | cat >conftest.$ac_ext <<_ACEOF | |
6608 | /* confdefs.h. */ | |
6609 | _ACEOF | |
6610 | cat confdefs.h >>conftest.$ac_ext | |
6611 | cat >>conftest.$ac_ext <<_ACEOF | |
6612 | /* end confdefs.h. */ | |
6613 | $ac_includes_default | |
6614 | int | |
6615 | main () | |
6616 | { | |
6617 | if (sizeof (size_t)) | |
6618 | return 0; | |
6619 | ; | |
6620 | return 0; | |
6621 | } | |
6622 | _ACEOF | |
6623 | rm -f conftest.$ac_objext | |
6624 | if { (ac_try="$ac_compile" | |
6625 | case "(($ac_try" in | |
6626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6627 | *) ac_try_echo=$ac_try;; | |
6628 | esac | |
6629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6630 | $as_echo "$ac_try_echo") >&5 | |
6631 | (eval "$ac_compile") 2>conftest.er1 | |
6632 | ac_status=$? | |
6633 | grep -v '^ *+' conftest.er1 >conftest.err | |
6634 | rm -f conftest.er1 | |
6635 | cat conftest.err >&5 | |
6636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6637 | (exit $ac_status); } && { | |
6638 | test -z "$ac_c_werror_flag" || | |
6639 | test ! -s conftest.err | |
6640 | } && test -s conftest.$ac_objext; then | |
6641 | cat >conftest.$ac_ext <<_ACEOF | |
6642 | /* confdefs.h. */ | |
6643 | _ACEOF | |
6644 | cat confdefs.h >>conftest.$ac_ext | |
6645 | cat >>conftest.$ac_ext <<_ACEOF | |
6646 | /* end confdefs.h. */ | |
6647 | $ac_includes_default | |
6648 | int | |
6649 | main () | |
6650 | { | |
6651 | if (sizeof ((size_t))) | |
6652 | return 0; | |
6653 | ; | |
6654 | return 0; | |
6655 | } | |
6656 | _ACEOF | |
6657 | rm -f conftest.$ac_objext | |
6658 | if { (ac_try="$ac_compile" | |
6659 | case "(($ac_try" in | |
6660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6661 | *) ac_try_echo=$ac_try;; | |
6662 | esac | |
6663 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6664 | $as_echo "$ac_try_echo") >&5 | |
6665 | (eval "$ac_compile") 2>conftest.er1 | |
6666 | ac_status=$? | |
6667 | grep -v '^ *+' conftest.er1 >conftest.err | |
6668 | rm -f conftest.er1 | |
6669 | cat conftest.err >&5 | |
6670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6671 | (exit $ac_status); } && { | |
6672 | test -z "$ac_c_werror_flag" || | |
6673 | test ! -s conftest.err | |
6674 | } && test -s conftest.$ac_objext; then | |
6675 | : | |
ad6254c5 | 6676 | else |
d911ec67 AK |
6677 | $as_echo "$as_me: failed program was:" >&5 |
6678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6679 | |
d911ec67 | 6680 | ac_cv_type_size_t=yes |
ad6254c5 | 6681 | fi |
4922197a | 6682 | |
d911ec67 | 6683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6684 | else |
d911ec67 AK |
6685 | $as_echo "$as_me: failed program was:" >&5 |
6686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6687 | |
6688 | ||
d911ec67 | 6689 | fi |
d0191583 | 6690 | |
d911ec67 AK |
6691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6692 | fi | |
6693 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6694 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6695 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6696 | : | |
6697 | else | |
d0191583 | 6698 | |
d911ec67 AK |
6699 | cat >>confdefs.h <<_ACEOF |
6700 | #define size_t unsigned int | |
6701 | _ACEOF | |
d0191583 | 6702 | |
d911ec67 | 6703 | fi |
d0191583 | 6704 | |
d911ec67 AK |
6705 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6706 | $as_echo_n "checking for mode_t... " >&6; } | |
6707 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6708 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6709 | else |
d911ec67 | 6710 | ac_cv_type_mode_t=no |
ad6254c5 | 6711 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6712 | /* confdefs.h. */ |
6713 | _ACEOF | |
6714 | cat confdefs.h >>conftest.$ac_ext | |
6715 | cat >>conftest.$ac_ext <<_ACEOF | |
6716 | /* end confdefs.h. */ | |
6717 | $ac_includes_default | |
d911ec67 AK |
6718 | int |
6719 | main () | |
6720 | { | |
6721 | if (sizeof (mode_t)) | |
6722 | return 0; | |
6723 | ; | |
6724 | return 0; | |
6725 | } | |
ad6254c5 AK |
6726 | _ACEOF |
6727 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6728 | if { (ac_try="$ac_compile" |
6729 | case "(($ac_try" in | |
6730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6731 | *) ac_try_echo=$ac_try;; | |
6732 | esac | |
ec6a6fbe AK |
6733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6734 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6735 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6736 | ac_status=$? |
8a2fc586 AK |
6737 | grep -v '^ *+' conftest.er1 >conftest.err |
6738 | rm -f conftest.er1 | |
6739 | cat conftest.err >&5 | |
ec6a6fbe | 6740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6741 | (exit $ac_status); } && { |
6742 | test -z "$ac_c_werror_flag" || | |
6743 | test ! -s conftest.err | |
6744 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6745 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6746 | /* confdefs.h. */ |
6747 | _ACEOF | |
6748 | cat confdefs.h >>conftest.$ac_ext | |
6749 | cat >>conftest.$ac_ext <<_ACEOF | |
6750 | /* end confdefs.h. */ | |
d911ec67 AK |
6751 | $ac_includes_default |
6752 | int | |
6753 | main () | |
6754 | { | |
6755 | if (sizeof ((mode_t))) | |
6756 | return 0; | |
6757 | ; | |
6758 | return 0; | |
6759 | } | |
ad6254c5 | 6760 | _ACEOF |
d911ec67 AK |
6761 | rm -f conftest.$ac_objext |
6762 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6763 | case "(($ac_try" in |
6764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6765 | *) ac_try_echo=$ac_try;; | |
6766 | esac | |
ec6a6fbe AK |
6767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6768 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6769 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6770 | ac_status=$? |
6771 | grep -v '^ *+' conftest.er1 >conftest.err | |
6772 | rm -f conftest.er1 | |
6773 | cat conftest.err >&5 | |
ec6a6fbe | 6774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6775 | (exit $ac_status); } && { |
6776 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6777 | test ! -s conftest.err |
d911ec67 AK |
6778 | } && test -s conftest.$ac_objext; then |
6779 | : | |
ad6254c5 | 6780 | else |
ec6a6fbe | 6781 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6782 | sed 's/^/| /' conftest.$ac_ext >&5 |
6783 | ||
d911ec67 | 6784 | ac_cv_type_mode_t=yes |
ad6254c5 | 6785 | fi |
7a197a62 | 6786 | |
d911ec67 AK |
6787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6788 | else | |
6789 | $as_echo "$as_me: failed program was:" >&5 | |
6790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6791 | |
7a197a62 | 6792 | |
80992638 AK |
6793 | fi |
6794 | ||
d911ec67 | 6795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6796 | fi |
d911ec67 AK |
6797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6798 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6799 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6800 | : | |
795ca3e5 | 6801 | else |
80992638 | 6802 | |
d911ec67 AK |
6803 | cat >>confdefs.h <<_ACEOF |
6804 | #define mode_t int | |
6805 | _ACEOF | |
ad6254c5 | 6806 | |
d911ec67 | 6807 | fi |
795ca3e5 | 6808 | |
d0191583 | 6809 | |
d911ec67 AK |
6810 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6811 | $as_echo_n "checking for int8_t... " >&6; } | |
6812 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6813 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6814 | else |
d911ec67 AK |
6815 | ac_cv_c_int8_t=no |
6816 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6817 | 'long long int' 'short int' 'signed char'; do | |
6818 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6819 | /* confdefs.h. */ |
6820 | _ACEOF | |
6821 | cat confdefs.h >>conftest.$ac_ext | |
6822 | cat >>conftest.$ac_ext <<_ACEOF | |
6823 | /* end confdefs.h. */ | |
6824 | $ac_includes_default | |
d911ec67 AK |
6825 | int |
6826 | main () | |
6827 | { | |
6828 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6829 | test_array [0] = 0 | |
6830 | ||
6831 | ; | |
6832 | return 0; | |
6833 | } | |
ad6254c5 AK |
6834 | _ACEOF |
6835 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6836 | if { (ac_try="$ac_compile" |
6837 | case "(($ac_try" in | |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6839 | *) ac_try_echo=$ac_try;; | |
6840 | esac | |
ec6a6fbe AK |
6841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6842 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6843 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6844 | ac_status=$? |
8a2fc586 AK |
6845 | grep -v '^ *+' conftest.er1 >conftest.err |
6846 | rm -f conftest.er1 | |
6847 | cat conftest.err >&5 | |
ec6a6fbe | 6848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6849 | (exit $ac_status); } && { |
6850 | test -z "$ac_c_werror_flag" || | |
6851 | test ! -s conftest.err | |
6852 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6853 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6854 | /* confdefs.h. */ |
6855 | _ACEOF | |
6856 | cat confdefs.h >>conftest.$ac_ext | |
6857 | cat >>conftest.$ac_ext <<_ACEOF | |
6858 | /* end confdefs.h. */ | |
d911ec67 AK |
6859 | $ac_includes_default |
6860 | int | |
6861 | main () | |
6862 | { | |
6863 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6864 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6865 | test_array [0] = 0 | |
6866 | ||
6867 | ; | |
6868 | return 0; | |
6869 | } | |
ad6254c5 | 6870 | _ACEOF |
d911ec67 AK |
6871 | rm -f conftest.$ac_objext |
6872 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6873 | case "(($ac_try" in |
6874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6875 | *) ac_try_echo=$ac_try;; | |
6876 | esac | |
ec6a6fbe AK |
6877 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6878 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6879 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6880 | ac_status=$? |
6881 | grep -v '^ *+' conftest.er1 >conftest.err | |
6882 | rm -f conftest.er1 | |
6883 | cat conftest.err >&5 | |
ec6a6fbe | 6884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6885 | (exit $ac_status); } && { |
6886 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6887 | test ! -s conftest.err |
d911ec67 AK |
6888 | } && test -s conftest.$ac_objext; then |
6889 | : | |
ad6254c5 | 6890 | else |
ec6a6fbe | 6891 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6892 | sed 's/^/| /' conftest.$ac_ext >&5 |
6893 | ||
d911ec67 AK |
6894 | case $ac_type in |
6895 | int8_t) ac_cv_c_int8_t=yes ;; | |
6896 | *) ac_cv_c_int8_t=$ac_type ;; | |
6897 | esac | |
ad6254c5 | 6898 | |
d911ec67 | 6899 | fi |
7a197a62 | 6900 | |
d911ec67 | 6901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6902 | else |
d911ec67 AK |
6903 | $as_echo "$as_me: failed program was:" >&5 |
6904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6905 | ||
b896caa1 | 6906 | |
ad6254c5 | 6907 | fi |
ad6254c5 | 6908 | |
d911ec67 AK |
6909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6910 | test "$ac_cv_c_int8_t" != no && break | |
6911 | done | |
80992638 | 6912 | fi |
d911ec67 AK |
6913 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6914 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6915 | case $ac_cv_c_int8_t in #( | |
6916 | no|yes) ;; #( | |
6917 | *) | |
80992638 | 6918 | |
d911ec67 AK |
6919 | cat >>confdefs.h <<_ACEOF |
6920 | #define int8_t $ac_cv_c_int8_t | |
6921 | _ACEOF | |
6922 | ;; | |
6923 | esac | |
d0191583 | 6924 | |
d3c8211f | 6925 | |
d911ec67 AK |
6926 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6927 | $as_echo_n "checking for int16_t... " >&6; } | |
6928 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6929 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6930 | else |
d911ec67 AK |
6931 | ac_cv_c_int16_t=no |
6932 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6933 | 'long long int' 'short int' 'signed char'; do | |
6934 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6935 | /* confdefs.h. */ |
6936 | _ACEOF | |
6937 | cat confdefs.h >>conftest.$ac_ext | |
6938 | cat >>conftest.$ac_ext <<_ACEOF | |
6939 | /* end confdefs.h. */ | |
d911ec67 | 6940 | $ac_includes_default |
ad6254c5 AK |
6941 | int |
6942 | main () | |
6943 | { | |
d911ec67 AK |
6944 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6945 | test_array [0] = 0 | |
ad6254c5 AK |
6946 | |
6947 | ; | |
6948 | return 0; | |
6949 | } | |
6950 | _ACEOF | |
6951 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6952 | if { (ac_try="$ac_compile" |
6953 | case "(($ac_try" in | |
6954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6955 | *) ac_try_echo=$ac_try;; | |
6956 | esac | |
ec6a6fbe AK |
6957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6958 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6959 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6960 | ac_status=$? |
8a2fc586 AK |
6961 | grep -v '^ *+' conftest.er1 >conftest.err |
6962 | rm -f conftest.er1 | |
6963 | cat conftest.err >&5 | |
ec6a6fbe | 6964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6965 | (exit $ac_status); } && { |
6966 | test -z "$ac_c_werror_flag" || | |
6967 | test ! -s conftest.err | |
6968 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6969 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6970 | /* confdefs.h. */ |
6971 | _ACEOF | |
6972 | cat confdefs.h >>conftest.$ac_ext | |
6973 | cat >>conftest.$ac_ext <<_ACEOF | |
6974 | /* end confdefs.h. */ | |
d911ec67 AK |
6975 | $ac_includes_default |
6976 | int | |
6977 | main () | |
6978 | { | |
6979 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6980 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6981 | test_array [0] = 0 | |
80992638 | 6982 | |
d911ec67 AK |
6983 | ; |
6984 | return 0; | |
6985 | } | |
ad6254c5 AK |
6986 | _ACEOF |
6987 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6988 | if { (ac_try="$ac_compile" |
6989 | case "(($ac_try" in | |
6990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6991 | *) ac_try_echo=$ac_try;; | |
6992 | esac | |
ec6a6fbe AK |
6993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6994 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6995 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6996 | ac_status=$? |
8a2fc586 AK |
6997 | grep -v '^ *+' conftest.er1 >conftest.err |
6998 | rm -f conftest.er1 | |
6999 | cat conftest.err >&5 | |
ec6a6fbe | 7000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7001 | (exit $ac_status); } && { |
7002 | test -z "$ac_c_werror_flag" || | |
7003 | test ! -s conftest.err | |
7004 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7005 | : |
ad6254c5 | 7006 | else |
ec6a6fbe | 7007 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 7008 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 7009 | |
d911ec67 AK |
7010 | case $ac_type in |
7011 | int16_t) ac_cv_c_int16_t=yes ;; | |
7012 | *) ac_cv_c_int16_t=$ac_type ;; | |
7013 | esac | |
7a197a62 | 7014 | |
8ce0cbda | 7015 | fi |
7a197a62 AK |
7016 | |
7017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7018 | else |
7019 | $as_echo "$as_me: failed program was:" >&5 | |
7020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7021 | |
8a2fc586 | 7022 | |
d911ec67 | 7023 | fi |
8a2fc586 | 7024 | |
d911ec67 AK |
7025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7026 | test "$ac_cv_c_int16_t" != no && break | |
7027 | done | |
7028 | fi | |
7029 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7030 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7031 | case $ac_cv_c_int16_t in #( | |
7032 | no|yes) ;; #( | |
8a2fc586 | 7033 | *) |
d911ec67 AK |
7034 | |
7035 | cat >>confdefs.h <<_ACEOF | |
7036 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7037 | _ACEOF |
d911ec67 AK |
7038 | ;; |
7039 | esac | |
d0191583 | 7040 | |
d911ec67 AK |
7041 | |
7042 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7043 | $as_echo_n "checking for int32_t... " >&6; } | |
7044 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7045 | $as_echo_n "(cached) " >&6 |
d0191583 | 7046 | else |
d911ec67 AK |
7047 | ac_cv_c_int32_t=no |
7048 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7049 | 'long long int' 'short int' 'signed char'; do | |
7050 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7051 | /* confdefs.h. */ |
7052 | _ACEOF | |
7053 | cat confdefs.h >>conftest.$ac_ext | |
7054 | cat >>conftest.$ac_ext <<_ACEOF | |
7055 | /* end confdefs.h. */ | |
7056 | $ac_includes_default | |
7057 | int | |
7058 | main () | |
7059 | { | |
d911ec67 AK |
7060 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7061 | test_array [0] = 0 | |
7062 | ||
d0191583 JM |
7063 | ; |
7064 | return 0; | |
7065 | } | |
7066 | _ACEOF | |
7067 | rm -f conftest.$ac_objext | |
7068 | if { (ac_try="$ac_compile" | |
7069 | case "(($ac_try" in | |
7070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7071 | *) ac_try_echo=$ac_try;; | |
7072 | esac | |
ec6a6fbe AK |
7073 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7074 | $as_echo "$ac_try_echo") >&5 | |
7075 | (eval "$ac_compile") 2>conftest.er1 | |
7076 | ac_status=$? | |
7077 | grep -v '^ *+' conftest.er1 >conftest.err | |
7078 | rm -f conftest.er1 | |
7079 | cat conftest.err >&5 | |
7080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7081 | (exit $ac_status); } && { | |
7082 | test -z "$ac_c_werror_flag" || | |
7083 | test ! -s conftest.err | |
7084 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7085 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7086 | /* confdefs.h. */ |
7087 | _ACEOF | |
7088 | cat confdefs.h >>conftest.$ac_ext | |
7089 | cat >>conftest.$ac_ext <<_ACEOF | |
7090 | /* end confdefs.h. */ | |
7091 | $ac_includes_default | |
7092 | int | |
7093 | main () | |
7094 | { | |
d911ec67 AK |
7095 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7096 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7097 | test_array [0] = 0 | |
7098 | ||
ec6a6fbe AK |
7099 | ; |
7100 | return 0; | |
7101 | } | |
7102 | _ACEOF | |
7103 | rm -f conftest.$ac_objext | |
7104 | if { (ac_try="$ac_compile" | |
7105 | case "(($ac_try" in | |
7106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7107 | *) ac_try_echo=$ac_try;; | |
7108 | esac | |
7109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7110 | $as_echo "$ac_try_echo") >&5 | |
7111 | (eval "$ac_compile") 2>conftest.er1 | |
7112 | ac_status=$? | |
7113 | grep -v '^ *+' conftest.er1 >conftest.err | |
7114 | rm -f conftest.er1 | |
7115 | cat conftest.err >&5 | |
7116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117 | (exit $ac_status); } && { | |
7118 | test -z "$ac_c_werror_flag" || | |
7119 | test ! -s conftest.err | |
7120 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7121 | : |
ec6a6fbe AK |
7122 | else |
7123 | $as_echo "$as_me: failed program was:" >&5 | |
7124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7125 | ||
d911ec67 AK |
7126 | case $ac_type in |
7127 | int32_t) ac_cv_c_int32_t=yes ;; | |
7128 | *) ac_cv_c_int32_t=$ac_type ;; | |
7129 | esac | |
7130 | ||
ec6a6fbe AK |
7131 | fi |
7132 | ||
7133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7134 | else |
7135 | $as_echo "$as_me: failed program was:" >&5 | |
7136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7137 | ||
7138 | ||
ec6a6fbe AK |
7139 | fi |
7140 | ||
7141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7142 | test "$ac_cv_c_int32_t" != no && break |
7143 | done | |
ec6a6fbe | 7144 | fi |
d911ec67 AK |
7145 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7146 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7147 | case $ac_cv_c_int32_t in #( | |
7148 | no|yes) ;; #( | |
7149 | *) | |
ec6a6fbe AK |
7150 | |
7151 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7152 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7153 | _ACEOF |
d911ec67 AK |
7154 | ;; |
7155 | esac | |
ec6a6fbe AK |
7156 | |
7157 | ||
d911ec67 AK |
7158 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7159 | $as_echo_n "checking for int64_t... " >&6; } | |
7160 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7161 | $as_echo_n "(cached) " >&6 |
7162 | else | |
d911ec67 AK |
7163 | ac_cv_c_int64_t=no |
7164 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7165 | 'long long int' 'short int' 'signed char'; do | |
7166 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7167 | /* confdefs.h. */ |
7168 | _ACEOF | |
7169 | cat confdefs.h >>conftest.$ac_ext | |
7170 | cat >>conftest.$ac_ext <<_ACEOF | |
7171 | /* end confdefs.h. */ | |
7172 | $ac_includes_default | |
7173 | int | |
7174 | main () | |
7175 | { | |
d911ec67 AK |
7176 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7177 | test_array [0] = 0 | |
7178 | ||
ec6a6fbe AK |
7179 | ; |
7180 | return 0; | |
7181 | } | |
7182 | _ACEOF | |
7183 | rm -f conftest.$ac_objext | |
7184 | if { (ac_try="$ac_compile" | |
7185 | case "(($ac_try" in | |
7186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7187 | *) ac_try_echo=$ac_try;; | |
7188 | esac | |
7189 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7190 | $as_echo "$ac_try_echo") >&5 | |
7191 | (eval "$ac_compile") 2>conftest.er1 | |
7192 | ac_status=$? | |
7193 | grep -v '^ *+' conftest.er1 >conftest.err | |
7194 | rm -f conftest.er1 | |
7195 | cat conftest.err >&5 | |
7196 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7197 | (exit $ac_status); } && { | |
7198 | test -z "$ac_c_werror_flag" || | |
7199 | test ! -s conftest.err | |
7200 | } && test -s conftest.$ac_objext; then | |
7201 | cat >conftest.$ac_ext <<_ACEOF | |
7202 | /* confdefs.h. */ | |
7203 | _ACEOF | |
7204 | cat confdefs.h >>conftest.$ac_ext | |
7205 | cat >>conftest.$ac_ext <<_ACEOF | |
7206 | /* end confdefs.h. */ | |
7207 | $ac_includes_default | |
7208 | int | |
7209 | main () | |
7210 | { | |
d911ec67 AK |
7211 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7212 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7213 | test_array [0] = 0 | |
7214 | ||
ec6a6fbe AK |
7215 | ; |
7216 | return 0; | |
7217 | } | |
7218 | _ACEOF | |
7219 | rm -f conftest.$ac_objext | |
7220 | if { (ac_try="$ac_compile" | |
7221 | case "(($ac_try" in | |
7222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7223 | *) ac_try_echo=$ac_try;; | |
7224 | esac | |
7225 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7226 | $as_echo "$ac_try_echo") >&5 | |
7227 | (eval "$ac_compile") 2>conftest.er1 | |
7228 | ac_status=$? | |
7229 | grep -v '^ *+' conftest.er1 >conftest.err | |
7230 | rm -f conftest.er1 | |
7231 | cat conftest.err >&5 | |
7232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7233 | (exit $ac_status); } && { | |
7234 | test -z "$ac_c_werror_flag" || | |
7235 | test ! -s conftest.err | |
7236 | } && test -s conftest.$ac_objext; then | |
7237 | : | |
7238 | else | |
7239 | $as_echo "$as_me: failed program was:" >&5 | |
7240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7241 | ||
d911ec67 AK |
7242 | case $ac_type in |
7243 | int64_t) ac_cv_c_int64_t=yes ;; | |
7244 | *) ac_cv_c_int64_t=$ac_type ;; | |
7245 | esac | |
7246 | ||
ec6a6fbe AK |
7247 | fi |
7248 | ||
7249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7250 | else | |
7251 | $as_echo "$as_me: failed program was:" >&5 | |
7252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7253 | ||
7254 | ||
7255 | fi | |
7256 | ||
7257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7258 | test "$ac_cv_c_int64_t" != no && break |
7259 | done | |
ec6a6fbe | 7260 | fi |
d911ec67 AK |
7261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7262 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7263 | case $ac_cv_c_int64_t in #( | |
7264 | no|yes) ;; #( | |
7265 | *) | |
ec6a6fbe AK |
7266 | |
7267 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7268 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7269 | _ACEOF |
d911ec67 AK |
7270 | ;; |
7271 | esac | |
ec6a6fbe | 7272 | |
d911ec67 AK |
7273 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7274 | $as_echo_n "checking for ssize_t... " >&6; } | |
7275 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7276 | $as_echo_n "(cached) " >&6 |
7277 | else | |
d911ec67 | 7278 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7279 | cat >conftest.$ac_ext <<_ACEOF |
7280 | /* confdefs.h. */ | |
7281 | _ACEOF | |
7282 | cat confdefs.h >>conftest.$ac_ext | |
7283 | cat >>conftest.$ac_ext <<_ACEOF | |
7284 | /* end confdefs.h. */ | |
7285 | $ac_includes_default | |
7286 | int | |
7287 | main () | |
7288 | { | |
d911ec67 | 7289 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7290 | return 0; |
7291 | ; | |
7292 | return 0; | |
7293 | } | |
7294 | _ACEOF | |
7295 | rm -f conftest.$ac_objext | |
7296 | if { (ac_try="$ac_compile" | |
7297 | case "(($ac_try" in | |
7298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7299 | *) ac_try_echo=$ac_try;; | |
7300 | esac | |
7301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7302 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7303 | (eval "$ac_compile") 2>conftest.er1 |
7304 | ac_status=$? | |
7305 | grep -v '^ *+' conftest.er1 >conftest.err | |
7306 | rm -f conftest.er1 | |
7307 | cat conftest.err >&5 | |
ec6a6fbe | 7308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7309 | (exit $ac_status); } && { |
7310 | test -z "$ac_c_werror_flag" || | |
7311 | test ! -s conftest.err | |
7312 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7313 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7314 | /* confdefs.h. */ |
7315 | _ACEOF | |
7316 | cat confdefs.h >>conftest.$ac_ext | |
7317 | cat >>conftest.$ac_ext <<_ACEOF | |
7318 | /* end confdefs.h. */ | |
7319 | $ac_includes_default | |
7320 | int | |
7321 | main () | |
7322 | { | |
d911ec67 | 7323 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7324 | return 0; |
d0191583 JM |
7325 | ; |
7326 | return 0; | |
7327 | } | |
7328 | _ACEOF | |
7329 | rm -f conftest.$ac_objext | |
7330 | if { (ac_try="$ac_compile" | |
7331 | case "(($ac_try" in | |
7332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7333 | *) ac_try_echo=$ac_try;; | |
7334 | esac | |
ec6a6fbe AK |
7335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7336 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7337 | (eval "$ac_compile") 2>conftest.er1 |
7338 | ac_status=$? | |
7339 | grep -v '^ *+' conftest.er1 >conftest.err | |
7340 | rm -f conftest.er1 | |
7341 | cat conftest.err >&5 | |
ec6a6fbe | 7342 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7343 | (exit $ac_status); } && { |
7344 | test -z "$ac_c_werror_flag" || | |
7345 | test ! -s conftest.err | |
7346 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7347 | : |
d0191583 | 7348 | else |
ec6a6fbe | 7349 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7350 | sed 's/^/| /' conftest.$ac_ext >&5 |
7351 | ||
d911ec67 | 7352 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7353 | fi |
7354 | ||
7355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7356 | else |
7357 | $as_echo "$as_me: failed program was:" >&5 | |
7358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7359 | ||
7360 | ||
d0191583 JM |
7361 | fi |
7362 | ||
7363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7364 | fi | |
d911ec67 AK |
7365 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7366 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7367 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7368 | : |
7369 | else | |
d0191583 JM |
7370 | |
7371 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7372 | #define ssize_t int |
d0191583 JM |
7373 | _ACEOF |
7374 | ||
d0191583 | 7375 | fi |
8ce0cbda | 7376 | |
d911ec67 AK |
7377 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7378 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7379 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7380 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7381 | else |
b145d876 ZK |
7382 | cat >conftest.$ac_ext <<_ACEOF |
7383 | /* confdefs.h. */ | |
7384 | _ACEOF | |
7385 | cat confdefs.h >>conftest.$ac_ext | |
7386 | cat >>conftest.$ac_ext <<_ACEOF | |
7387 | /* end confdefs.h. */ | |
ec6a6fbe | 7388 | #include <sys/types.h> |
ec6a6fbe | 7389 | |
ad6254c5 | 7390 | _ACEOF |
d911ec67 AK |
7391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7392 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7393 | ac_cv_type_uid_t=yes | |
b145d876 | 7394 | else |
d911ec67 | 7395 | ac_cv_type_uid_t=no |
ad6254c5 | 7396 | fi |
d911ec67 | 7397 | rm -f conftest* |
b145d876 | 7398 | |
b145d876 | 7399 | fi |
d911ec67 AK |
7400 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7401 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7402 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7403 | |
d911ec67 AK |
7404 | cat >>confdefs.h <<\_ACEOF |
7405 | #define uid_t int | |
ad6254c5 | 7406 | _ACEOF |
199e490e | 7407 | |
b896caa1 | 7408 | |
d911ec67 AK |
7409 | cat >>confdefs.h <<\_ACEOF |
7410 | #define gid_t int | |
7411 | _ACEOF | |
7412 | ||
7413 | fi | |
7414 | ||
7415 | ||
7416 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7417 | $as_echo_n "checking for uint8_t... " >&6; } | |
7418 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7419 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7420 | else |
d911ec67 AK |
7421 | ac_cv_c_uint8_t=no |
7422 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7423 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7424 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7425 | /* confdefs.h. */ |
7426 | _ACEOF | |
7427 | cat confdefs.h >>conftest.$ac_ext | |
7428 | cat >>conftest.$ac_ext <<_ACEOF | |
7429 | /* end confdefs.h. */ | |
7430 | $ac_includes_default | |
7431 | int | |
7432 | main () | |
7433 | { | |
d911ec67 AK |
7434 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7435 | test_array [0] = 0 | |
7436 | ||
ad6254c5 AK |
7437 | ; |
7438 | return 0; | |
7439 | } | |
7440 | _ACEOF | |
7441 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7442 | if { (ac_try="$ac_compile" |
7443 | case "(($ac_try" in | |
7444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7445 | *) ac_try_echo=$ac_try;; | |
7446 | esac | |
ec6a6fbe AK |
7447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7448 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7449 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7450 | ac_status=$? |
8a2fc586 AK |
7451 | grep -v '^ *+' conftest.er1 >conftest.err |
7452 | rm -f conftest.er1 | |
7453 | cat conftest.err >&5 | |
ec6a6fbe | 7454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7455 | (exit $ac_status); } && { |
7456 | test -z "$ac_c_werror_flag" || | |
7457 | test ! -s conftest.err | |
7458 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7459 | case $ac_type in |
7460 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7461 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7462 | esac | |
7463 | ||
7464 | else | |
7465 | $as_echo "$as_me: failed program was:" >&5 | |
7466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7467 | ||
7468 | ||
7469 | fi | |
7470 | ||
7471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7472 | test "$ac_cv_c_uint8_t" != no && break | |
7473 | done | |
7474 | fi | |
7475 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7476 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7477 | case $ac_cv_c_uint8_t in #( | |
7478 | no|yes) ;; #( | |
7479 | *) | |
7480 | ||
7481 | cat >>confdefs.h <<\_ACEOF | |
7482 | #define _UINT8_T 1 | |
7483 | _ACEOF | |
7484 | ||
7485 | ||
7486 | cat >>confdefs.h <<_ACEOF | |
7487 | #define uint8_t $ac_cv_c_uint8_t | |
7488 | _ACEOF | |
7489 | ;; | |
7490 | esac | |
7491 | ||
7492 | ||
7493 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7494 | $as_echo_n "checking for uint16_t... " >&6; } | |
7495 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7496 | $as_echo_n "(cached) " >&6 | |
7497 | else | |
7498 | ac_cv_c_uint16_t=no | |
7499 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7500 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7501 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7502 | /* confdefs.h. */ |
7503 | _ACEOF | |
7504 | cat confdefs.h >>conftest.$ac_ext | |
7505 | cat >>conftest.$ac_ext <<_ACEOF | |
7506 | /* end confdefs.h. */ | |
ec6a6fbe | 7507 | $ac_includes_default |
d0191583 JM |
7508 | int |
7509 | main () | |
7510 | { | |
d911ec67 AK |
7511 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7512 | test_array [0] = 0 | |
7513 | ||
d0191583 JM |
7514 | ; |
7515 | return 0; | |
7516 | } | |
7517 | _ACEOF | |
7518 | rm -f conftest.$ac_objext | |
7519 | if { (ac_try="$ac_compile" | |
7520 | case "(($ac_try" in | |
7521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7522 | *) ac_try_echo=$ac_try;; | |
7523 | esac | |
ec6a6fbe AK |
7524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7525 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7526 | (eval "$ac_compile") 2>conftest.er1 |
7527 | ac_status=$? | |
7528 | grep -v '^ *+' conftest.er1 >conftest.err | |
7529 | rm -f conftest.er1 | |
7530 | cat conftest.err >&5 | |
ec6a6fbe | 7531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7532 | (exit $ac_status); } && { |
7533 | test -z "$ac_c_werror_flag" || | |
7534 | test ! -s conftest.err | |
7535 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7536 | case $ac_type in |
7537 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7538 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7539 | esac | |
ec6a6fbe | 7540 | |
ec6a6fbe AK |
7541 | else |
7542 | $as_echo "$as_me: failed program was:" >&5 | |
7543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7544 | ||
7545 | ||
d0191583 JM |
7546 | fi |
7547 | ||
7548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7549 | test "$ac_cv_c_uint16_t" != no && break |
7550 | done | |
d0191583 | 7551 | fi |
d911ec67 AK |
7552 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7553 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7554 | case $ac_cv_c_uint16_t in #( | |
7555 | no|yes) ;; #( | |
7556 | *) | |
7557 | ||
d0191583 JM |
7558 | |
7559 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7560 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7561 | _ACEOF |
d911ec67 AK |
7562 | ;; |
7563 | esac | |
d0191583 JM |
7564 | |
7565 | ||
d911ec67 AK |
7566 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7567 | $as_echo_n "checking for uint32_t... " >&6; } | |
7568 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7569 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7570 | else |
d911ec67 AK |
7571 | ac_cv_c_uint32_t=no |
7572 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7573 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7574 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7575 | /* confdefs.h. */ |
7576 | _ACEOF | |
7577 | cat confdefs.h >>conftest.$ac_ext | |
7578 | cat >>conftest.$ac_ext <<_ACEOF | |
7579 | /* end confdefs.h. */ | |
7580 | $ac_includes_default | |
7581 | int | |
7582 | main () | |
7583 | { | |
d911ec67 AK |
7584 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7585 | test_array [0] = 0 | |
7586 | ||
ad6254c5 AK |
7587 | ; |
7588 | return 0; | |
7589 | } | |
7590 | _ACEOF | |
7591 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7592 | if { (ac_try="$ac_compile" |
7593 | case "(($ac_try" in | |
7594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7595 | *) ac_try_echo=$ac_try;; | |
7596 | esac | |
ec6a6fbe AK |
7597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7598 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7599 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7600 | ac_status=$? |
8a2fc586 AK |
7601 | grep -v '^ *+' conftest.er1 >conftest.err |
7602 | rm -f conftest.er1 | |
7603 | cat conftest.err >&5 | |
ec6a6fbe | 7604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7605 | (exit $ac_status); } && { |
7606 | test -z "$ac_c_werror_flag" || | |
7607 | test ! -s conftest.err | |
7608 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7609 | case $ac_type in |
7610 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7611 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7612 | esac | |
7613 | ||
7614 | else | |
7615 | $as_echo "$as_me: failed program was:" >&5 | |
7616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7617 | ||
7618 | ||
7619 | fi | |
7620 | ||
7621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7622 | test "$ac_cv_c_uint32_t" != no && break | |
7623 | done | |
7624 | fi | |
7625 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7626 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7627 | case $ac_cv_c_uint32_t in #( | |
7628 | no|yes) ;; #( | |
7629 | *) | |
7630 | ||
7631 | cat >>confdefs.h <<\_ACEOF | |
7632 | #define _UINT32_T 1 | |
7633 | _ACEOF | |
7634 | ||
7635 | ||
7636 | cat >>confdefs.h <<_ACEOF | |
7637 | #define uint32_t $ac_cv_c_uint32_t | |
7638 | _ACEOF | |
7639 | ;; | |
7640 | esac | |
7641 | ||
7642 | ||
7643 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7644 | $as_echo_n "checking for uint64_t... " >&6; } | |
7645 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7646 | $as_echo_n "(cached) " >&6 | |
7647 | else | |
7648 | ac_cv_c_uint64_t=no | |
7649 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7650 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7651 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7652 | /* confdefs.h. */ |
7653 | _ACEOF | |
7654 | cat confdefs.h >>conftest.$ac_ext | |
7655 | cat >>conftest.$ac_ext <<_ACEOF | |
7656 | /* end confdefs.h. */ | |
7657 | $ac_includes_default | |
7658 | int | |
7659 | main () | |
7660 | { | |
d911ec67 AK |
7661 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7662 | test_array [0] = 0 | |
7663 | ||
ad6254c5 AK |
7664 | ; |
7665 | return 0; | |
7666 | } | |
7667 | _ACEOF | |
7668 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7669 | if { (ac_try="$ac_compile" |
7670 | case "(($ac_try" in | |
7671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7672 | *) ac_try_echo=$ac_try;; | |
7673 | esac | |
ec6a6fbe AK |
7674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7675 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7676 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7677 | ac_status=$? |
8a2fc586 AK |
7678 | grep -v '^ *+' conftest.er1 >conftest.err |
7679 | rm -f conftest.er1 | |
7680 | cat conftest.err >&5 | |
ec6a6fbe | 7681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7682 | (exit $ac_status); } && { |
7683 | test -z "$ac_c_werror_flag" || | |
7684 | test ! -s conftest.err | |
7685 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7686 | case $ac_type in |
7687 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7688 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7689 | esac | |
ec6a6fbe | 7690 | |
fddafd51 | 7691 | else |
ec6a6fbe | 7692 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7693 | sed 's/^/| /' conftest.$ac_ext >&5 |
7694 | ||
ec6a6fbe | 7695 | |
80992638 | 7696 | fi |
7a197a62 AK |
7697 | |
7698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7699 | test "$ac_cv_c_uint64_t" != no && break |
7700 | done | |
ad6254c5 | 7701 | fi |
d911ec67 AK |
7702 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7703 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7704 | case $ac_cv_c_uint64_t in #( | |
7705 | no|yes) ;; #( | |
7706 | *) | |
80992638 | 7707 | |
d911ec67 AK |
7708 | cat >>confdefs.h <<\_ACEOF |
7709 | #define _UINT64_T 1 | |
ad6254c5 AK |
7710 | _ACEOF |
7711 | ||
d911ec67 AK |
7712 | |
7713 | cat >>confdefs.h <<_ACEOF | |
7714 | #define uint64_t $ac_cv_c_uint64_t | |
7715 | _ACEOF | |
7716 | ;; | |
7717 | esac | |
ad6254c5 | 7718 | |
ec6a6fbe AK |
7719 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7720 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7721 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7722 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7723 | else |
7724 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7725 | /* confdefs.h. */ |
7726 | _ACEOF | |
7727 | cat confdefs.h >>conftest.$ac_ext | |
7728 | cat >>conftest.$ac_ext <<_ACEOF | |
7729 | /* end confdefs.h. */ | |
7730 | $ac_includes_default | |
7731 | int | |
7732 | main () | |
7733 | { | |
7734 | static struct stat ac_aggr; | |
7735 | if (ac_aggr.st_rdev) | |
7736 | return 0; | |
7737 | ; | |
7738 | return 0; | |
7739 | } | |
7740 | _ACEOF | |
7741 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7742 | if { (ac_try="$ac_compile" |
7743 | case "(($ac_try" in | |
7744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7745 | *) ac_try_echo=$ac_try;; | |
7746 | esac | |
ec6a6fbe AK |
7747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7748 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7749 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7750 | ac_status=$? |
8a2fc586 AK |
7751 | grep -v '^ *+' conftest.er1 >conftest.err |
7752 | rm -f conftest.er1 | |
7753 | cat conftest.err >&5 | |
ec6a6fbe | 7754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7755 | (exit $ac_status); } && { |
7756 | test -z "$ac_c_werror_flag" || | |
7757 | test ! -s conftest.err | |
7758 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7759 | ac_cv_member_struct_stat_st_rdev=yes |
7760 | else | |
ec6a6fbe | 7761 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7762 | sed 's/^/| /' conftest.$ac_ext >&5 |
7763 | ||
7a197a62 | 7764 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7765 | /* confdefs.h. */ |
7766 | _ACEOF | |
7767 | cat confdefs.h >>conftest.$ac_ext | |
7768 | cat >>conftest.$ac_ext <<_ACEOF | |
7769 | /* end confdefs.h. */ | |
7770 | $ac_includes_default | |
7771 | int | |
7772 | main () | |
7773 | { | |
7774 | static struct stat ac_aggr; | |
7775 | if (sizeof ac_aggr.st_rdev) | |
7776 | return 0; | |
7777 | ; | |
7778 | return 0; | |
7779 | } | |
7780 | _ACEOF | |
7781 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7782 | if { (ac_try="$ac_compile" |
7783 | case "(($ac_try" in | |
7784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7785 | *) ac_try_echo=$ac_try;; | |
7786 | esac | |
ec6a6fbe AK |
7787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7788 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7789 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7790 | ac_status=$? |
8a2fc586 AK |
7791 | grep -v '^ *+' conftest.er1 >conftest.err |
7792 | rm -f conftest.er1 | |
7793 | cat conftest.err >&5 | |
ec6a6fbe | 7794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7795 | (exit $ac_status); } && { |
7796 | test -z "$ac_c_werror_flag" || | |
7797 | test ! -s conftest.err | |
7798 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7799 | ac_cv_member_struct_stat_st_rdev=yes |
7800 | else | |
ec6a6fbe | 7801 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7802 | sed 's/^/| /' conftest.$ac_ext >&5 |
7803 | ||
7a197a62 | 7804 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7805 | fi |
7a197a62 AK |
7806 | |
7807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7808 | fi |
7a197a62 AK |
7809 | |
7810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7811 | fi |
ec6a6fbe AK |
7812 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7813 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7814 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7815 | |
7816 | cat >>confdefs.h <<_ACEOF | |
7817 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7818 | _ACEOF | |
7819 | ||
7820 | ||
ad6254c5 AK |
7821 | fi |
7822 | ||
ec6a6fbe AK |
7823 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7824 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7825 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7826 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7827 | else |
7828 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7829 | /* confdefs.h. */ |
7830 | _ACEOF | |
7831 | cat confdefs.h >>conftest.$ac_ext | |
7832 | cat >>conftest.$ac_ext <<_ACEOF | |
7833 | /* end confdefs.h. */ | |
7834 | #include <sys/types.h> | |
7835 | #include <time.h> | |
7836 | ||
7837 | int | |
7838 | main () | |
7839 | { | |
25fbec5b AK |
7840 | struct tm tm; |
7841 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7842 | return !p; |
ad6254c5 AK |
7843 | ; |
7844 | return 0; | |
7845 | } | |
7846 | _ACEOF | |
7847 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7848 | if { (ac_try="$ac_compile" |
7849 | case "(($ac_try" in | |
7850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7851 | *) ac_try_echo=$ac_try;; | |
7852 | esac | |
ec6a6fbe AK |
7853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7854 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7855 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7856 | ac_status=$? |
8a2fc586 AK |
7857 | grep -v '^ *+' conftest.er1 >conftest.err |
7858 | rm -f conftest.er1 | |
7859 | cat conftest.err >&5 | |
ec6a6fbe | 7860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7861 | (exit $ac_status); } && { |
7862 | test -z "$ac_c_werror_flag" || | |
7863 | test ! -s conftest.err | |
d911ec67 AK |
7864 | } && test -s conftest.$ac_objext; then |
7865 | ac_cv_struct_tm=time.h | |
7866 | else | |
7867 | $as_echo "$as_me: failed program was:" >&5 | |
7868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7869 | ||
7870 | ac_cv_struct_tm=sys/time.h | |
7871 | fi | |
7872 | ||
7873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7874 | fi | |
7875 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7876 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7877 | if test $ac_cv_struct_tm = sys/time.h; then | |
7878 | ||
7879 | cat >>confdefs.h <<\_ACEOF | |
7880 | #define TM_IN_SYS_TIME 1 | |
7881 | _ACEOF | |
7882 | ||
7883 | fi | |
7884 | ||
7885 | ||
7886 | ################################################################################ | |
7887 | { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5 | |
7888 | $as_echo_n "checking for library containing floor... " >&6; } | |
7889 | if test "${ac_cv_search_floor+set}" = set; then | |
7890 | $as_echo_n "(cached) " >&6 | |
7891 | else | |
7892 | ac_func_search_save_LIBS=$LIBS | |
7893 | cat >conftest.$ac_ext <<_ACEOF | |
7894 | /* confdefs.h. */ | |
7895 | _ACEOF | |
7896 | cat confdefs.h >>conftest.$ac_ext | |
7897 | cat >>conftest.$ac_ext <<_ACEOF | |
7898 | /* end confdefs.h. */ | |
7899 | ||
7900 | /* Override any GCC internal prototype to avoid an error. | |
7901 | Use char because int might match the return type of a GCC | |
7902 | builtin and then its argument prototype would still apply. */ | |
7903 | #ifdef __cplusplus | |
7904 | extern "C" | |
7905 | #endif | |
7906 | char floor (); | |
7907 | int | |
7908 | main () | |
7909 | { | |
7910 | return floor (); | |
7911 | ; | |
7912 | return 0; | |
7913 | } | |
7914 | _ACEOF | |
7915 | for ac_lib in '' m; do | |
7916 | if test -z "$ac_lib"; then | |
7917 | ac_res="none required" | |
7918 | else | |
7919 | ac_res=-l$ac_lib | |
7920 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7921 | fi | |
7922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7923 | if { (ac_try="$ac_link" | |
7924 | case "(($ac_try" in | |
7925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7926 | *) ac_try_echo=$ac_try;; | |
7927 | esac | |
7928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7929 | $as_echo "$ac_try_echo") >&5 | |
7930 | (eval "$ac_link") 2>conftest.er1 | |
7931 | ac_status=$? | |
7932 | grep -v '^ *+' conftest.er1 >conftest.err | |
7933 | rm -f conftest.er1 | |
7934 | cat conftest.err >&5 | |
7935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7936 | (exit $ac_status); } && { | |
7937 | test -z "$ac_c_werror_flag" || | |
7938 | test ! -s conftest.err | |
7939 | } && test -s conftest$ac_exeext && { | |
7940 | test "$cross_compiling" = yes || | |
7941 | $as_test_x conftest$ac_exeext | |
7942 | }; then | |
7943 | ac_cv_search_floor=$ac_res | |
ad6254c5 | 7944 | else |
ec6a6fbe | 7945 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7946 | sed 's/^/| /' conftest.$ac_ext >&5 |
7947 | ||
7a197a62 | 7948 | |
ad6254c5 | 7949 | fi |
ad6254c5 | 7950 | |
d911ec67 AK |
7951 | rm -rf conftest.dSYM |
7952 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7953 | conftest$ac_exeext | |
7954 | if test "${ac_cv_search_floor+set}" = set; then | |
7955 | break | |
7956 | fi | |
7957 | done | |
7958 | if test "${ac_cv_search_floor+set}" = set; then | |
7959 | : | |
7960 | else | |
7961 | ac_cv_search_floor=no | |
7962 | fi | |
7963 | rm conftest.$ac_ext | |
7964 | LIBS=$ac_func_search_save_LIBS | |
7965 | fi | |
7966 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5 | |
7967 | $as_echo "$ac_cv_search_floor" >&6; } | |
7968 | ac_res=$ac_cv_search_floor | |
7969 | if test "$ac_res" != no; then | |
7970 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 | 7971 | |
d911ec67 AK |
7972 | else |
7973 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
7974 | $as_echo "$as_me: error: bailing out" >&2;} | |
7975 | { (exit 1); exit 1; }; } | |
ad6254c5 | 7976 | fi |
809fae91 | 7977 | |
795ca3e5 | 7978 | |
ad6254c5 AK |
7979 | |
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
d0191583 JM |
7993 | |
7994 | ||
7995 | ||
d911ec67 AK |
7996 | |
7997 | ||
7998 | ||
7999 | ||
8000 | ||
8001 | ||
8002 | ||
8003 | for ac_func in floor ftruncate gethostname getpagesize \ | |
8004 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
8005 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
8006 | strstr strtol strtoul uname | |
ad6254c5 | 8007 | do |
ec6a6fbe AK |
8008 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8009 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8010 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8011 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8012 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8013 | else |
ad6254c5 | 8014 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8015 | /* confdefs.h. */ |
8016 | _ACEOF | |
8017 | cat confdefs.h >>conftest.$ac_ext | |
8018 | cat >>conftest.$ac_ext <<_ACEOF | |
8019 | /* end confdefs.h. */ | |
8a2fc586 AK |
8020 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8022 | #define $ac_func innocuous_$ac_func | |
8023 | ||
ad6254c5 AK |
8024 | /* System header to define __stub macros and hopefully few prototypes, |
8025 | which can conflict with char $ac_func (); below. | |
8026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8027 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8028 | |
ad6254c5 AK |
8029 | #ifdef __STDC__ |
8030 | # include <limits.h> | |
8031 | #else | |
8032 | # include <assert.h> | |
8033 | #endif | |
8a2fc586 AK |
8034 | |
8035 | #undef $ac_func | |
8036 | ||
7a197a62 AK |
8037 | /* Override any GCC internal prototype to avoid an error. |
8038 | Use char because int might match the return type of a GCC | |
8039 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8040 | #ifdef __cplusplus |
8041 | extern "C" | |
ad6254c5 | 8042 | #endif |
ad6254c5 AK |
8043 | char $ac_func (); |
8044 | /* The GNU C library defines this for functions which it implements | |
8045 | to always fail with ENOSYS. Some functions are actually named | |
8046 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8047 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8048 | choke me |
ad6254c5 AK |
8049 | #endif |
8050 | ||
8051 | int | |
8052 | main () | |
8053 | { | |
7a197a62 | 8054 | return $ac_func (); |
ad6254c5 AK |
8055 | ; |
8056 | return 0; | |
8057 | } | |
8058 | _ACEOF | |
8059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8060 | if { (ac_try="$ac_link" |
8061 | case "(($ac_try" in | |
8062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8063 | *) ac_try_echo=$ac_try;; | |
8064 | esac | |
ec6a6fbe AK |
8065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8066 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8067 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8068 | ac_status=$? |
8a2fc586 AK |
8069 | grep -v '^ *+' conftest.er1 >conftest.err |
8070 | rm -f conftest.er1 | |
8071 | cat conftest.err >&5 | |
ec6a6fbe | 8072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8073 | (exit $ac_status); } && { |
8074 | test -z "$ac_c_werror_flag" || | |
8075 | test ! -s conftest.err | |
ec6a6fbe AK |
8076 | } && test -s conftest$ac_exeext && { |
8077 | test "$cross_compiling" = yes || | |
8078 | $as_test_x conftest$ac_exeext | |
8079 | }; then | |
fc54be10 AK |
8080 | eval "$as_ac_var=yes" |
8081 | else | |
ec6a6fbe | 8082 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8083 | sed 's/^/| /' conftest.$ac_ext >&5 |
8084 | ||
8085 | eval "$as_ac_var=no" | |
8086 | fi | |
8087 | ||
ec6a6fbe | 8088 | rm -rf conftest.dSYM |
25fbec5b | 8089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8090 | conftest$ac_exeext conftest.$ac_ext |
8091 | fi | |
ec6a6fbe AK |
8092 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8093 | $as_echo "$as_val"'` | |
8094 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8095 | $as_echo "$ac_res" >&6; } | |
8096 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8097 | $as_echo "$as_val"'` | |
8098 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8099 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8100 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8101 | _ACEOF |
8102 | ||
8103 | else | |
ec6a6fbe AK |
8104 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8105 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8106 | { (exit 1); exit 1; }; } |
8107 | fi | |
8108 | done | |
795ca3e5 | 8109 | |
a0f9708e AK |
8110 | |
8111 | for ac_func in siginterrupt | |
8112 | do | |
8113 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8114 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8115 | $as_echo_n "checking for $ac_func... " >&6; } | |
8116 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8117 | $as_echo_n "(cached) " >&6 | |
8118 | else | |
8119 | cat >conftest.$ac_ext <<_ACEOF | |
8120 | /* confdefs.h. */ | |
8121 | _ACEOF | |
8122 | cat confdefs.h >>conftest.$ac_ext | |
8123 | cat >>conftest.$ac_ext <<_ACEOF | |
8124 | /* end confdefs.h. */ | |
8125 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8126 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8127 | #define $ac_func innocuous_$ac_func | |
8128 | ||
8129 | /* System header to define __stub macros and hopefully few prototypes, | |
8130 | which can conflict with char $ac_func (); below. | |
8131 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8132 | <limits.h> exists even on freestanding compilers. */ | |
8133 | ||
8134 | #ifdef __STDC__ | |
8135 | # include <limits.h> | |
8136 | #else | |
8137 | # include <assert.h> | |
8138 | #endif | |
8139 | ||
8140 | #undef $ac_func | |
8141 | ||
8142 | /* Override any GCC internal prototype to avoid an error. | |
8143 | Use char because int might match the return type of a GCC | |
8144 | builtin and then its argument prototype would still apply. */ | |
8145 | #ifdef __cplusplus | |
8146 | extern "C" | |
8147 | #endif | |
8148 | char $ac_func (); | |
8149 | /* The GNU C library defines this for functions which it implements | |
8150 | to always fail with ENOSYS. Some functions are actually named | |
8151 | something starting with __ and the normal name is an alias. */ | |
8152 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8153 | choke me | |
8154 | #endif | |
8155 | ||
8156 | int | |
8157 | main () | |
8158 | { | |
8159 | return $ac_func (); | |
8160 | ; | |
8161 | return 0; | |
8162 | } | |
8163 | _ACEOF | |
8164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8165 | if { (ac_try="$ac_link" | |
8166 | case "(($ac_try" in | |
8167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8168 | *) ac_try_echo=$ac_try;; | |
8169 | esac | |
8170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8171 | $as_echo "$ac_try_echo") >&5 | |
8172 | (eval "$ac_link") 2>conftest.er1 | |
8173 | ac_status=$? | |
8174 | grep -v '^ *+' conftest.er1 >conftest.err | |
8175 | rm -f conftest.er1 | |
8176 | cat conftest.err >&5 | |
8177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8178 | (exit $ac_status); } && { | |
8179 | test -z "$ac_c_werror_flag" || | |
8180 | test ! -s conftest.err | |
8181 | } && test -s conftest$ac_exeext && { | |
8182 | test "$cross_compiling" = yes || | |
8183 | $as_test_x conftest$ac_exeext | |
8184 | }; then | |
8185 | eval "$as_ac_var=yes" | |
8186 | else | |
8187 | $as_echo "$as_me: failed program was:" >&5 | |
8188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8189 | ||
8190 | eval "$as_ac_var=no" | |
8191 | fi | |
8192 | ||
8193 | rm -rf conftest.dSYM | |
8194 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8195 | conftest$ac_exeext conftest.$ac_ext | |
8196 | fi | |
8197 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8198 | $as_echo "$as_val"'` | |
8199 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8200 | $as_echo "$ac_res" >&6; } | |
8201 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8202 | $as_echo "$as_val"'` | |
8203 | if test "x$as_val" = x""yes; then | |
8204 | cat >>confdefs.h <<_ACEOF | |
8205 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8206 | _ACEOF | |
8207 | ||
8208 | fi | |
8209 | done | |
8210 | ||
ad6254c5 AK |
8211 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8212 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8213 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8214 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8215 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8216 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8217 | else |
8218 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8219 | /* confdefs.h. */ |
8220 | _ACEOF | |
8221 | cat confdefs.h >>conftest.$ac_ext | |
8222 | cat >>conftest.$ac_ext <<_ACEOF | |
8223 | /* end confdefs.h. */ | |
8224 | #include <alloca.h> | |
8225 | int | |
8226 | main () | |
8227 | { | |
8228 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8229 | if (p) return 0; |
ad6254c5 AK |
8230 | ; |
8231 | return 0; | |
8232 | } | |
8233 | _ACEOF | |
8234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8235 | if { (ac_try="$ac_link" |
8236 | case "(($ac_try" in | |
8237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8238 | *) ac_try_echo=$ac_try;; | |
8239 | esac | |
ec6a6fbe AK |
8240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8241 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8242 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8243 | ac_status=$? |
8a2fc586 AK |
8244 | grep -v '^ *+' conftest.er1 >conftest.err |
8245 | rm -f conftest.er1 | |
8246 | cat conftest.err >&5 | |
ec6a6fbe | 8247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8248 | (exit $ac_status); } && { |
8249 | test -z "$ac_c_werror_flag" || | |
8250 | test ! -s conftest.err | |
ec6a6fbe AK |
8251 | } && test -s conftest$ac_exeext && { |
8252 | test "$cross_compiling" = yes || | |
8253 | $as_test_x conftest$ac_exeext | |
8254 | }; then | |
ad6254c5 AK |
8255 | ac_cv_working_alloca_h=yes |
8256 | else | |
ec6a6fbe | 8257 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8258 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8259 | |
7a197a62 | 8260 | ac_cv_working_alloca_h=no |
ad6254c5 | 8261 | fi |
7a197a62 | 8262 | |
ec6a6fbe | 8263 | rm -rf conftest.dSYM |
25fbec5b | 8264 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8265 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8266 | fi |
ec6a6fbe AK |
8267 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8268 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8269 | if test $ac_cv_working_alloca_h = yes; then |
8270 | ||
8271 | cat >>confdefs.h <<\_ACEOF | |
8272 | #define HAVE_ALLOCA_H 1 | |
8273 | _ACEOF | |
8274 | ||
8275 | fi | |
8276 | ||
ec6a6fbe AK |
8277 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8278 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8279 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8280 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8281 | else |
8282 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8283 | /* confdefs.h. */ |
8284 | _ACEOF | |
8285 | cat confdefs.h >>conftest.$ac_ext | |
8286 | cat >>conftest.$ac_ext <<_ACEOF | |
8287 | /* end confdefs.h. */ | |
8288 | #ifdef __GNUC__ | |
8289 | # define alloca __builtin_alloca | |
8290 | #else | |
8291 | # ifdef _MSC_VER | |
8292 | # include <malloc.h> | |
8293 | # define alloca _alloca | |
8294 | # else | |
25fbec5b | 8295 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8296 | # include <alloca.h> |
8297 | # else | |
8298 | # ifdef _AIX | |
8299 | #pragma alloca | |
8300 | # else | |
8301 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8302 | char *alloca (); | |
8303 | # endif | |
8304 | # endif | |
8305 | # endif | |
8306 | # endif | |
8307 | #endif | |
8308 | ||
8309 | int | |
8310 | main () | |
8311 | { | |
8312 | char *p = (char *) alloca (1); | |
7a197a62 | 8313 | if (p) return 0; |
ad6254c5 AK |
8314 | ; |
8315 | return 0; | |
8316 | } | |
8317 | _ACEOF | |
8318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8319 | if { (ac_try="$ac_link" |
8320 | case "(($ac_try" in | |
8321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8322 | *) ac_try_echo=$ac_try;; | |
8323 | esac | |
ec6a6fbe AK |
8324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8325 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8326 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8327 | ac_status=$? |
8a2fc586 AK |
8328 | grep -v '^ *+' conftest.er1 >conftest.err |
8329 | rm -f conftest.er1 | |
8330 | cat conftest.err >&5 | |
ec6a6fbe | 8331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8332 | (exit $ac_status); } && { |
8333 | test -z "$ac_c_werror_flag" || | |
8334 | test ! -s conftest.err | |
ec6a6fbe AK |
8335 | } && test -s conftest$ac_exeext && { |
8336 | test "$cross_compiling" = yes || | |
8337 | $as_test_x conftest$ac_exeext | |
8338 | }; then | |
ad6254c5 AK |
8339 | ac_cv_func_alloca_works=yes |
8340 | else | |
ec6a6fbe | 8341 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8342 | sed 's/^/| /' conftest.$ac_ext >&5 |
8343 | ||
7a197a62 | 8344 | ac_cv_func_alloca_works=no |
ad6254c5 | 8345 | fi |
7a197a62 | 8346 | |
ec6a6fbe | 8347 | rm -rf conftest.dSYM |
25fbec5b | 8348 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8349 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8350 | fi |
ec6a6fbe AK |
8351 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8352 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8353 | |
8354 | if test $ac_cv_func_alloca_works = yes; then | |
8355 | ||
8356 | cat >>confdefs.h <<\_ACEOF | |
8357 | #define HAVE_ALLOCA 1 | |
8358 | _ACEOF | |
8359 | ||
8360 | else | |
8361 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8362 | # that cause trouble. Some versions do not even contain alloca or | |
8363 | # contain a buggy version. If you still want to use their alloca, | |
8364 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8365 | ||
7a197a62 | 8366 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8367 | |
8368 | cat >>confdefs.h <<\_ACEOF | |
8369 | #define C_ALLOCA 1 | |
8370 | _ACEOF | |
8371 | ||
8372 | ||
ec6a6fbe AK |
8373 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8374 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8375 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8376 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8377 | else |
8378 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8379 | /* confdefs.h. */ |
8380 | _ACEOF | |
8381 | cat confdefs.h >>conftest.$ac_ext | |
8382 | cat >>conftest.$ac_ext <<_ACEOF | |
8383 | /* end confdefs.h. */ | |
7a197a62 | 8384 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8385 | webecray |
8386 | #else | |
8387 | wenotbecray | |
8388 | #endif | |
8389 | ||
8390 | _ACEOF | |
795ca3e5 | 8391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8392 | $EGREP "webecray" >/dev/null 2>&1; then |
8393 | ac_cv_os_cray=yes | |
8394 | else | |
8395 | ac_cv_os_cray=no | |
795ca3e5 AK |
8396 | fi |
8397 | rm -f conftest* | |
8398 | ||
795ca3e5 | 8399 | fi |
ec6a6fbe AK |
8400 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8401 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8402 | if test $ac_cv_os_cray = yes; then |
8403 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8404 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8405 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8406 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8407 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8408 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8409 | else |
8410 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8411 | /* confdefs.h. */ |
8412 | _ACEOF | |
8413 | cat confdefs.h >>conftest.$ac_ext | |
8414 | cat >>conftest.$ac_ext <<_ACEOF | |
8415 | /* end confdefs.h. */ | |
8a2fc586 AK |
8416 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8417 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8418 | #define $ac_func innocuous_$ac_func | |
8419 | ||
ad6254c5 AK |
8420 | /* System header to define __stub macros and hopefully few prototypes, |
8421 | which can conflict with char $ac_func (); below. | |
8422 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8423 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8424 | |
ad6254c5 AK |
8425 | #ifdef __STDC__ |
8426 | # include <limits.h> | |
8427 | #else | |
8428 | # include <assert.h> | |
8429 | #endif | |
8a2fc586 AK |
8430 | |
8431 | #undef $ac_func | |
8432 | ||
7a197a62 AK |
8433 | /* Override any GCC internal prototype to avoid an error. |
8434 | Use char because int might match the return type of a GCC | |
8435 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8436 | #ifdef __cplusplus |
8437 | extern "C" | |
ad6254c5 | 8438 | #endif |
ad6254c5 AK |
8439 | char $ac_func (); |
8440 | /* The GNU C library defines this for functions which it implements | |
8441 | to always fail with ENOSYS. Some functions are actually named | |
8442 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8443 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8444 | choke me |
ad6254c5 AK |
8445 | #endif |
8446 | ||
8447 | int | |
8448 | main () | |
8449 | { | |
7a197a62 | 8450 | return $ac_func (); |
ad6254c5 AK |
8451 | ; |
8452 | return 0; | |
8453 | } | |
8454 | _ACEOF | |
8455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8456 | if { (ac_try="$ac_link" |
8457 | case "(($ac_try" in | |
8458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8459 | *) ac_try_echo=$ac_try;; | |
8460 | esac | |
ec6a6fbe AK |
8461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8462 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8463 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8464 | ac_status=$? |
8a2fc586 AK |
8465 | grep -v '^ *+' conftest.er1 >conftest.err |
8466 | rm -f conftest.er1 | |
8467 | cat conftest.err >&5 | |
ec6a6fbe | 8468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8469 | (exit $ac_status); } && { |
8470 | test -z "$ac_c_werror_flag" || | |
8471 | test ! -s conftest.err | |
ec6a6fbe AK |
8472 | } && test -s conftest$ac_exeext && { |
8473 | test "$cross_compiling" = yes || | |
8474 | $as_test_x conftest$ac_exeext | |
8475 | }; then | |
ad6254c5 AK |
8476 | eval "$as_ac_var=yes" |
8477 | else | |
ec6a6fbe | 8478 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
8480 | ||
7a197a62 | 8481 | eval "$as_ac_var=no" |
ad6254c5 | 8482 | fi |
7a197a62 | 8483 | |
ec6a6fbe | 8484 | rm -rf conftest.dSYM |
25fbec5b | 8485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8486 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8487 | fi |
ec6a6fbe AK |
8488 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8489 | $as_echo "$as_val"'` | |
8490 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8491 | $as_echo "$ac_res" >&6; } | |
8492 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8493 | $as_echo "$as_val"'` | |
8494 | if test "x$as_val" = x""yes; then | |
80992638 | 8495 | |
ad6254c5 AK |
8496 | cat >>confdefs.h <<_ACEOF |
8497 | #define CRAY_STACKSEG_END $ac_func | |
8498 | _ACEOF | |
8499 | ||
8500 | break | |
8501 | fi | |
8502 | ||
8503 | done | |
8504 | fi | |
8505 | ||
ec6a6fbe AK |
8506 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8507 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8508 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8509 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8510 | else |
8511 | if test "$cross_compiling" = yes; then | |
8512 | ac_cv_c_stack_direction=0 | |
8513 | else | |
8514 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8515 | /* confdefs.h. */ |
8516 | _ACEOF | |
8517 | cat confdefs.h >>conftest.$ac_ext | |
8518 | cat >>conftest.$ac_ext <<_ACEOF | |
8519 | /* end confdefs.h. */ | |
7a197a62 | 8520 | $ac_includes_default |
ad6254c5 AK |
8521 | int |
8522 | find_stack_direction () | |
8523 | { | |
8524 | static char *addr = 0; | |
8525 | auto char dummy; | |
8526 | if (addr == 0) | |
8527 | { | |
8528 | addr = &dummy; | |
8529 | return find_stack_direction (); | |
8530 | } | |
8531 | else | |
8532 | return (&dummy > addr) ? 1 : -1; | |
8533 | } | |
8534 | ||
8535 | int | |
8536 | main () | |
8537 | { | |
7a197a62 | 8538 | return find_stack_direction () < 0; |
ad6254c5 AK |
8539 | } |
8540 | _ACEOF | |
8541 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8542 | if { (ac_try="$ac_link" |
8543 | case "(($ac_try" in | |
8544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8545 | *) ac_try_echo=$ac_try;; | |
8546 | esac | |
ec6a6fbe AK |
8547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8548 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8549 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8550 | ac_status=$? |
ec6a6fbe | 8551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8552 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8553 | { (case "(($ac_try" in |
8554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8555 | *) ac_try_echo=$ac_try;; | |
8556 | esac | |
ec6a6fbe AK |
8557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8558 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8559 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8560 | ac_status=$? |
ec6a6fbe | 8561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8562 | (exit $ac_status); }; }; then |
8563 | ac_cv_c_stack_direction=1 | |
8564 | else | |
ec6a6fbe AK |
8565 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8566 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8567 | sed 's/^/| /' conftest.$ac_ext >&5 |
8568 | ||
8569 | ( exit $ac_status ) | |
8570 | ac_cv_c_stack_direction=-1 | |
8571 | fi | |
ec6a6fbe | 8572 | rm -rf conftest.dSYM |
7a197a62 | 8573 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8574 | fi |
7a197a62 AK |
8575 | |
8576 | ||
ad6254c5 | 8577 | fi |
ec6a6fbe AK |
8578 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8579 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8580 | |
d911ec67 AK |
8581 | cat >>confdefs.h <<_ACEOF |
8582 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8583 | _ACEOF | |
8584 | ||
8585 | ||
8586 | fi | |
8587 | ||
8588 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8589 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8590 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8591 | $as_echo_n "(cached) " >&6 | |
8592 | else | |
8593 | if test "$cross_compiling" = yes; then | |
8594 | ac_cv_func_closedir_void=yes | |
8595 | else | |
8596 | cat >conftest.$ac_ext <<_ACEOF | |
8597 | /* confdefs.h. */ | |
8598 | _ACEOF | |
8599 | cat confdefs.h >>conftest.$ac_ext | |
8600 | cat >>conftest.$ac_ext <<_ACEOF | |
8601 | /* end confdefs.h. */ | |
8602 | $ac_includes_default | |
8603 | #include <$ac_header_dirent> | |
8604 | #ifndef __cplusplus | |
8605 | int closedir (); | |
8606 | #endif | |
8607 | ||
8608 | int | |
8609 | main () | |
8610 | { | |
8611 | return closedir (opendir (".")) != 0; | |
8612 | ; | |
8613 | return 0; | |
8614 | } | |
8615 | _ACEOF | |
8616 | rm -f conftest$ac_exeext | |
8617 | if { (ac_try="$ac_link" | |
8618 | case "(($ac_try" in | |
8619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8620 | *) ac_try_echo=$ac_try;; | |
8621 | esac | |
8622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8623 | $as_echo "$ac_try_echo") >&5 | |
8624 | (eval "$ac_link") 2>&5 | |
8625 | ac_status=$? | |
8626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8628 | { (case "(($ac_try" in | |
8629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8630 | *) ac_try_echo=$ac_try;; | |
8631 | esac | |
8632 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8633 | $as_echo "$ac_try_echo") >&5 | |
8634 | (eval "$ac_try") 2>&5 | |
8635 | ac_status=$? | |
8636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8637 | (exit $ac_status); }; }; then | |
8638 | ac_cv_func_closedir_void=no | |
8639 | else | |
8640 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8641 | $as_echo "$as_me: failed program was:" >&5 | |
8642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8643 | ||
8644 | ( exit $ac_status ) | |
8645 | ac_cv_func_closedir_void=yes | |
8646 | fi | |
8647 | rm -rf conftest.dSYM | |
8648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8649 | fi | |
8650 | ||
8651 | ||
8652 | fi | |
8653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8654 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8655 | if test $ac_cv_func_closedir_void = yes; then | |
8656 | ||
8657 | cat >>confdefs.h <<\_ACEOF | |
8658 | #define CLOSEDIR_VOID 1 | |
8659 | _ACEOF | |
8660 | ||
8661 | fi | |
8662 | ||
8663 | ||
8664 | for ac_header in unistd.h | |
8665 | do | |
8666 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8668 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8669 | $as_echo_n "checking for $ac_header... " >&6; } | |
8670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8671 | $as_echo_n "(cached) " >&6 | |
8672 | fi | |
8673 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8674 | $as_echo "$as_val"'` | |
8675 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8676 | $as_echo "$ac_res" >&6; } | |
8677 | else | |
8678 | # Is the header compilable? | |
8679 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8680 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8681 | cat >conftest.$ac_ext <<_ACEOF | |
8682 | /* confdefs.h. */ | |
8683 | _ACEOF | |
8684 | cat confdefs.h >>conftest.$ac_ext | |
8685 | cat >>conftest.$ac_ext <<_ACEOF | |
8686 | /* end confdefs.h. */ | |
8687 | $ac_includes_default | |
8688 | #include <$ac_header> | |
8689 | _ACEOF | |
8690 | rm -f conftest.$ac_objext | |
8691 | if { (ac_try="$ac_compile" | |
8692 | case "(($ac_try" in | |
8693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8694 | *) ac_try_echo=$ac_try;; | |
8695 | esac | |
8696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8697 | $as_echo "$ac_try_echo") >&5 | |
8698 | (eval "$ac_compile") 2>conftest.er1 | |
8699 | ac_status=$? | |
8700 | grep -v '^ *+' conftest.er1 >conftest.err | |
8701 | rm -f conftest.er1 | |
8702 | cat conftest.err >&5 | |
8703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8704 | (exit $ac_status); } && { | |
8705 | test -z "$ac_c_werror_flag" || | |
8706 | test ! -s conftest.err | |
8707 | } && test -s conftest.$ac_objext; then | |
8708 | ac_header_compiler=yes | |
8709 | else | |
8710 | $as_echo "$as_me: failed program was:" >&5 | |
8711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8712 | ||
8713 | ac_header_compiler=no | |
8714 | fi | |
8715 | ||
8716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8717 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8718 | $as_echo "$ac_header_compiler" >&6; } | |
8719 | ||
8720 | # Is the header present? | |
8721 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8722 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8723 | cat >conftest.$ac_ext <<_ACEOF | |
8724 | /* confdefs.h. */ | |
8725 | _ACEOF | |
8726 | cat confdefs.h >>conftest.$ac_ext | |
8727 | cat >>conftest.$ac_ext <<_ACEOF | |
8728 | /* end confdefs.h. */ | |
8729 | #include <$ac_header> | |
8730 | _ACEOF | |
8731 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8732 | case "(($ac_try" in | |
8733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8734 | *) ac_try_echo=$ac_try;; | |
8735 | esac | |
8736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8737 | $as_echo "$ac_try_echo") >&5 | |
8738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8739 | ac_status=$? | |
8740 | grep -v '^ *+' conftest.er1 >conftest.err | |
8741 | rm -f conftest.er1 | |
8742 | cat conftest.err >&5 | |
8743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8744 | (exit $ac_status); } >/dev/null && { | |
8745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8746 | test ! -s conftest.err | |
8747 | }; then | |
8748 | ac_header_preproc=yes | |
8749 | else | |
8750 | $as_echo "$as_me: failed program was:" >&5 | |
8751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8752 | ||
8753 | ac_header_preproc=no | |
8754 | fi | |
8755 | ||
8756 | rm -f conftest.err conftest.$ac_ext | |
8757 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8758 | $as_echo "$ac_header_preproc" >&6; } | |
8759 | ||
8760 | # So? What about this header? | |
8761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8762 | yes:no: ) | |
8763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8764 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8766 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8767 | ac_header_preproc=yes | |
8768 | ;; | |
8769 | no:yes:* ) | |
8770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8771 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8773 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8775 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8777 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8781 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8782 | ||
8783 | ;; | |
8784 | esac | |
8785 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8786 | $as_echo_n "checking for $ac_header... " >&6; } | |
8787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8788 | $as_echo_n "(cached) " >&6 | |
8789 | else | |
8790 | eval "$as_ac_Header=\$ac_header_preproc" | |
8791 | fi | |
8792 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8793 | $as_echo "$as_val"'` | |
8794 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8795 | $as_echo "$ac_res" >&6; } | |
8796 | ||
8797 | fi | |
8798 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8799 | $as_echo "$as_val"'` | |
8800 | if test "x$as_val" = x""yes; then | |
8801 | cat >>confdefs.h <<_ACEOF | |
8802 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8803 | _ACEOF |
8804 | ||
ad6254c5 AK |
8805 | fi |
8806 | ||
d911ec67 AK |
8807 | done |
8808 | ||
8809 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8810 | $as_echo_n "checking for working chown... " >&6; } | |
8811 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8812 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8813 | else |
8814 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8815 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8816 | else |
8817 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8818 | /* confdefs.h. */ |
8819 | _ACEOF | |
8820 | cat confdefs.h >>conftest.$ac_ext | |
8821 | cat >>conftest.$ac_ext <<_ACEOF | |
8822 | /* end confdefs.h. */ | |
8823 | $ac_includes_default | |
d911ec67 | 8824 | #include <fcntl.h> |
ad6254c5 AK |
8825 | |
8826 | int | |
8827 | main () | |
8828 | { | |
d911ec67 AK |
8829 | char *f = "conftest.chown"; |
8830 | struct stat before, after; | |
8831 | ||
8832 | if (creat (f, 0600) < 0) | |
8833 | return 1; | |
8834 | if (stat (f, &before) < 0) | |
8835 | return 1; | |
8836 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8837 | return 1; | |
8838 | if (stat (f, &after) < 0) | |
8839 | return 1; | |
8840 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8841 | ||
ad6254c5 AK |
8842 | ; |
8843 | return 0; | |
8844 | } | |
8845 | _ACEOF | |
8846 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8847 | if { (ac_try="$ac_link" |
8848 | case "(($ac_try" in | |
8849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8850 | *) ac_try_echo=$ac_try;; | |
8851 | esac | |
ec6a6fbe AK |
8852 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8853 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8854 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8855 | ac_status=$? |
ec6a6fbe | 8856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8857 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8858 | { (case "(($ac_try" in |
8859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8860 | *) ac_try_echo=$ac_try;; | |
8861 | esac | |
ec6a6fbe AK |
8862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8863 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8864 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8865 | ac_status=$? |
ec6a6fbe | 8866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8867 | (exit $ac_status); }; }; then |
d911ec67 | 8868 | ac_cv_func_chown_works=yes |
ad6254c5 | 8869 | else |
ec6a6fbe AK |
8870 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8871 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8872 | sed 's/^/| /' conftest.$ac_ext >&5 |
8873 | ||
8874 | ( exit $ac_status ) | |
d911ec67 | 8875 | ac_cv_func_chown_works=no |
ad6254c5 | 8876 | fi |
ec6a6fbe | 8877 | rm -rf conftest.dSYM |
7a197a62 | 8878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8879 | fi |
7a197a62 AK |
8880 | |
8881 | ||
d911ec67 AK |
8882 | rm -f conftest.chown |
8883 | ||
ad6254c5 | 8884 | fi |
d911ec67 AK |
8885 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8886 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8887 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8888 | |
8889 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8890 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8891 | _ACEOF |
8892 | ||
8893 | fi | |
8894 | ||
8895 | ||
7a197a62 | 8896 | for ac_header in vfork.h |
ad6254c5 | 8897 | do |
ec6a6fbe | 8898 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8899 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8900 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8901 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8902 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8903 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8904 | fi |
ec6a6fbe AK |
8905 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8906 | $as_echo "$as_val"'` | |
8907 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8908 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8909 | else |
8910 | # Is the header compilable? | |
ec6a6fbe AK |
8911 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8912 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8913 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8914 | /* confdefs.h. */ |
8915 | _ACEOF | |
8916 | cat confdefs.h >>conftest.$ac_ext | |
8917 | cat >>conftest.$ac_ext <<_ACEOF | |
8918 | /* end confdefs.h. */ | |
8919 | $ac_includes_default | |
8920 | #include <$ac_header> | |
8921 | _ACEOF | |
8922 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8923 | if { (ac_try="$ac_compile" |
8924 | case "(($ac_try" in | |
8925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8926 | *) ac_try_echo=$ac_try;; | |
8927 | esac | |
ec6a6fbe AK |
8928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8929 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8930 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8931 | ac_status=$? |
8a2fc586 AK |
8932 | grep -v '^ *+' conftest.er1 >conftest.err |
8933 | rm -f conftest.er1 | |
8934 | cat conftest.err >&5 | |
ec6a6fbe | 8935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8936 | (exit $ac_status); } && { |
8937 | test -z "$ac_c_werror_flag" || | |
8938 | test ! -s conftest.err | |
8939 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8940 | ac_header_compiler=yes |
8941 | else | |
ec6a6fbe | 8942 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8943 | sed 's/^/| /' conftest.$ac_ext >&5 |
8944 | ||
7a197a62 | 8945 | ac_header_compiler=no |
ad6254c5 | 8946 | fi |
7a197a62 AK |
8947 | |
8948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8949 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8950 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8951 | |
8952 | # Is the header present? | |
ec6a6fbe AK |
8953 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8954 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8955 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8956 | /* confdefs.h. */ |
8957 | _ACEOF | |
8958 | cat confdefs.h >>conftest.$ac_ext | |
8959 | cat >>conftest.$ac_ext <<_ACEOF | |
8960 | /* end confdefs.h. */ | |
8961 | #include <$ac_header> | |
8962 | _ACEOF | |
7a197a62 AK |
8963 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8964 | case "(($ac_try" in | |
8965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8966 | *) ac_try_echo=$ac_try;; | |
8967 | esac | |
ec6a6fbe AK |
8968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8969 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8970 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8971 | ac_status=$? |
8972 | grep -v '^ *+' conftest.er1 >conftest.err | |
8973 | rm -f conftest.er1 | |
8974 | cat conftest.err >&5 | |
ec6a6fbe | 8975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8976 | (exit $ac_status); } >/dev/null && { |
8977 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8978 | test ! -s conftest.err | |
8979 | }; then | |
ad6254c5 AK |
8980 | ac_header_preproc=yes |
8981 | else | |
ec6a6fbe | 8982 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8983 | sed 's/^/| /' conftest.$ac_ext >&5 |
8984 | ||
8985 | ac_header_preproc=no | |
8986 | fi | |
7a197a62 | 8987 | |
ad6254c5 | 8988 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8989 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8990 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8991 | |
8992 | # So? What about this header? | |
8a2fc586 AK |
8993 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8994 | yes:no: ) | |
ec6a6fbe AK |
8995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8996 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8998 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8999 | ac_header_preproc=yes |
ad6254c5 | 9000 | ;; |
8a2fc586 | 9001 | no:yes:* ) |
ec6a6fbe AK |
9002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9003 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9005 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9007 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9009 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9011 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9013 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9014 | |
ad6254c5 AK |
9015 | ;; |
9016 | esac | |
ec6a6fbe AK |
9017 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9018 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9019 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9020 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9021 | else |
8a2fc586 | 9022 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9023 | fi |
ec6a6fbe AK |
9024 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9025 | $as_echo "$as_val"'` | |
9026 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9027 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 9028 | |
795ca3e5 | 9029 | fi |
ec6a6fbe AK |
9030 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9031 | $as_echo "$as_val"'` | |
9032 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9033 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9034 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9035 | _ACEOF |
9036 | ||
9037 | fi | |
9038 | ||
9039 | done | |
795ca3e5 | 9040 | |
ad6254c5 AK |
9041 | |
9042 | ||
9043 | for ac_func in fork vfork | |
9044 | do | |
ec6a6fbe AK |
9045 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9046 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9047 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9048 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9049 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9050 | else |
ad6254c5 | 9051 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9052 | /* confdefs.h. */ |
9053 | _ACEOF | |
9054 | cat confdefs.h >>conftest.$ac_ext | |
9055 | cat >>conftest.$ac_ext <<_ACEOF | |
9056 | /* end confdefs.h. */ | |
8a2fc586 AK |
9057 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9059 | #define $ac_func innocuous_$ac_func | |
9060 | ||
ad6254c5 AK |
9061 | /* System header to define __stub macros and hopefully few prototypes, |
9062 | which can conflict with char $ac_func (); below. | |
9063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9064 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9065 | |
ad6254c5 AK |
9066 | #ifdef __STDC__ |
9067 | # include <limits.h> | |
9068 | #else | |
9069 | # include <assert.h> | |
795ca3e5 | 9070 | #endif |
8a2fc586 AK |
9071 | |
9072 | #undef $ac_func | |
9073 | ||
7a197a62 AK |
9074 | /* Override any GCC internal prototype to avoid an error. |
9075 | Use char because int might match the return type of a GCC | |
9076 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 9077 | #ifdef __cplusplus |
ad6254c5 | 9078 | extern "C" |
ad6254c5 | 9079 | #endif |
ad6254c5 AK |
9080 | char $ac_func (); |
9081 | /* The GNU C library defines this for functions which it implements | |
9082 | to always fail with ENOSYS. Some functions are actually named | |
9083 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9084 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9085 | choke me |
795ca3e5 AK |
9086 | #endif |
9087 | ||
ad6254c5 AK |
9088 | int |
9089 | main () | |
9090 | { | |
7a197a62 | 9091 | return $ac_func (); |
ad6254c5 AK |
9092 | ; |
9093 | return 0; | |
9094 | } | |
9095 | _ACEOF | |
9096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9097 | if { (ac_try="$ac_link" |
9098 | case "(($ac_try" in | |
9099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9100 | *) ac_try_echo=$ac_try;; | |
9101 | esac | |
ec6a6fbe AK |
9102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9103 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9104 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9105 | ac_status=$? |
8a2fc586 AK |
9106 | grep -v '^ *+' conftest.er1 >conftest.err |
9107 | rm -f conftest.er1 | |
9108 | cat conftest.err >&5 | |
ec6a6fbe | 9109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9110 | (exit $ac_status); } && { |
9111 | test -z "$ac_c_werror_flag" || | |
9112 | test ! -s conftest.err | |
ec6a6fbe AK |
9113 | } && test -s conftest$ac_exeext && { |
9114 | test "$cross_compiling" = yes || | |
9115 | $as_test_x conftest$ac_exeext | |
9116 | }; then | |
ad6254c5 | 9117 | eval "$as_ac_var=yes" |
795ca3e5 | 9118 | else |
ec6a6fbe | 9119 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9120 | sed 's/^/| /' conftest.$ac_ext >&5 |
9121 | ||
7a197a62 | 9122 | eval "$as_ac_var=no" |
795ca3e5 | 9123 | fi |
7a197a62 | 9124 | |
ec6a6fbe | 9125 | rm -rf conftest.dSYM |
25fbec5b | 9126 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9127 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9128 | fi |
ec6a6fbe AK |
9129 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9130 | $as_echo "$as_val"'` | |
9131 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9132 | $as_echo "$ac_res" >&6; } | |
9133 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9134 | $as_echo "$as_val"'` | |
9135 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9136 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9137 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9138 | _ACEOF |
9139 | ||
9140 | fi | |
9141 | done | |
9142 | ||
9143 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9144 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9145 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9146 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9147 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9148 | else |
9149 | if test "$cross_compiling" = yes; then | |
9150 | ac_cv_func_fork_works=cross | |
9151 | else | |
9152 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9153 | /* confdefs.h. */ |
9154 | _ACEOF | |
9155 | cat confdefs.h >>conftest.$ac_ext | |
9156 | cat >>conftest.$ac_ext <<_ACEOF | |
9157 | /* end confdefs.h. */ | |
9158 | $ac_includes_default | |
9159 | int | |
9160 | main () | |
9161 | { | |
9162 | ||
9163 | /* By Ruediger Kuhlmann. */ | |
9164 | return fork () < 0; | |
9165 | ||
9166 | ; | |
9167 | return 0; | |
9168 | } | |
ad6254c5 AK |
9169 | _ACEOF |
9170 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9171 | if { (ac_try="$ac_link" |
9172 | case "(($ac_try" in | |
9173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9174 | *) ac_try_echo=$ac_try;; | |
9175 | esac | |
ec6a6fbe AK |
9176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9177 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9178 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9179 | ac_status=$? |
ec6a6fbe | 9180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9181 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9182 | { (case "(($ac_try" in |
9183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9184 | *) ac_try_echo=$ac_try;; | |
9185 | esac | |
ec6a6fbe AK |
9186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9187 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9188 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9189 | ac_status=$? |
ec6a6fbe | 9190 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9191 | (exit $ac_status); }; }; then |
9192 | ac_cv_func_fork_works=yes | |
9193 | else | |
ec6a6fbe AK |
9194 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9195 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9196 | sed 's/^/| /' conftest.$ac_ext >&5 |
9197 | ||
9198 | ( exit $ac_status ) | |
9199 | ac_cv_func_fork_works=no | |
9200 | fi | |
ec6a6fbe | 9201 | rm -rf conftest.dSYM |
7a197a62 | 9202 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9203 | fi |
7a197a62 AK |
9204 | |
9205 | ||
ad6254c5 | 9206 | fi |
ec6a6fbe AK |
9207 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9208 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9209 | |
9210 | else | |
9211 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9212 | fi | |
9213 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9214 | case $host in | |
9215 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9216 | # Override, as these systems have only a dummy fork() stub | |
9217 | ac_cv_func_fork_works=no | |
9218 | ;; | |
9219 | *) | |
9220 | ac_cv_func_fork_works=yes | |
9221 | ;; | |
9222 | esac | |
ec6a6fbe AK |
9223 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9224 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9225 | fi |
9226 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9227 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9228 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9229 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9230 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9231 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9232 | else |
9233 | if test "$cross_compiling" = yes; then | |
9234 | ac_cv_func_vfork_works=cross | |
9235 | else | |
9236 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9237 | /* confdefs.h. */ |
9238 | _ACEOF | |
9239 | cat confdefs.h >>conftest.$ac_ext | |
9240 | cat >>conftest.$ac_ext <<_ACEOF | |
9241 | /* end confdefs.h. */ | |
9242 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9243 | $ac_includes_default |
ad6254c5 | 9244 | #include <sys/wait.h> |
25fbec5b | 9245 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9246 | # include <vfork.h> |
9247 | #endif | |
9248 | /* On some sparc systems, changes by the child to local and incoming | |
9249 | argument registers are propagated back to the parent. The compiler | |
9250 | is told about this with #include <vfork.h>, but some compilers | |
9251 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9252 | static variable whose address is put into a register that is | |
9253 | clobbered by the vfork. */ | |
9254 | static void | |
9255 | #ifdef __cplusplus | |
9256 | sparc_address_test (int arg) | |
9257 | # else | |
9258 | sparc_address_test (arg) int arg; | |
9259 | #endif | |
9260 | { | |
9261 | static pid_t child; | |
9262 | if (!child) { | |
9263 | child = vfork (); | |
9264 | if (child < 0) { | |
9265 | perror ("vfork"); | |
9266 | _exit(2); | |
9267 | } | |
9268 | if (!child) { | |
9269 | arg = getpid(); | |
9270 | write(-1, "", 0); | |
9271 | _exit (arg); | |
9272 | } | |
9273 | } | |
9274 | } | |
9275 | ||
9276 | int | |
9277 | main () | |
9278 | { | |
9279 | pid_t parent = getpid (); | |
9280 | pid_t child; | |
9281 | ||
9282 | sparc_address_test (0); | |
9283 | ||
9284 | child = vfork (); | |
9285 | ||
9286 | if (child == 0) { | |
9287 | /* Here is another test for sparc vfork register problems. This | |
9288 | test uses lots of local variables, at least as many local | |
9289 | variables as main has allocated so far including compiler | |
9290 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9291 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9292 | reuse the register of parent for one of the local variables, | |
9293 | since it will think that parent can't possibly be used any more | |
9294 | in this routine. Assigning to the local variable will thus | |
9295 | munge parent in the parent process. */ | |
9296 | pid_t | |
9297 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9298 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9299 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9300 | use the same hardware register for all 8 local variables. */ | |
9301 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9302 | || p != p5 || p != p6 || p != p7) | |
9303 | _exit(1); | |
9304 | ||
9305 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9306 | from child file descriptors. If the child closes a descriptor | |
9307 | before it execs or exits, this munges the parent's descriptor | |
9308 | as well. Test for this by closing stdout in the child. */ | |
9309 | _exit(close(fileno(stdout)) != 0); | |
9310 | } else { | |
9311 | int status; | |
9312 | struct stat st; | |
9313 | ||
9314 | while (wait(&status) != child) | |
9315 | ; | |
7a197a62 | 9316 | return ( |
ad6254c5 AK |
9317 | /* Was there some problem with vforking? */ |
9318 | child < 0 | |
9319 | ||
9320 | /* Did the child fail? (This shouldn't happen.) */ | |
9321 | || status | |
9322 | ||
9323 | /* Did the vfork/compiler bug occur? */ | |
9324 | || parent != getpid() | |
9325 | ||
9326 | /* Did the file descriptor bug occur? */ | |
9327 | || fstat(fileno(stdout), &st) != 0 | |
9328 | ); | |
9329 | } | |
9330 | } | |
9331 | _ACEOF | |
9332 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9333 | if { (ac_try="$ac_link" |
9334 | case "(($ac_try" in | |
9335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9336 | *) ac_try_echo=$ac_try;; | |
9337 | esac | |
ec6a6fbe AK |
9338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9339 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9340 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9341 | ac_status=$? |
ec6a6fbe | 9342 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9343 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9344 | { (case "(($ac_try" in |
9345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9346 | *) ac_try_echo=$ac_try;; | |
9347 | esac | |
ec6a6fbe AK |
9348 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9349 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9350 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9351 | ac_status=$? |
ec6a6fbe | 9352 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9353 | (exit $ac_status); }; }; then |
9354 | ac_cv_func_vfork_works=yes | |
9355 | else | |
ec6a6fbe AK |
9356 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9357 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9358 | sed 's/^/| /' conftest.$ac_ext >&5 |
9359 | ||
9360 | ( exit $ac_status ) | |
9361 | ac_cv_func_vfork_works=no | |
9362 | fi | |
ec6a6fbe | 9363 | rm -rf conftest.dSYM |
7a197a62 | 9364 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9365 | fi |
7a197a62 AK |
9366 | |
9367 | ||
ad6254c5 | 9368 | fi |
ec6a6fbe AK |
9369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9370 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9371 | |
9372 | fi; | |
9373 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9374 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9375 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9376 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9377 | fi |
9378 | ||
9379 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9380 | ||
9381 | cat >>confdefs.h <<\_ACEOF | |
9382 | #define HAVE_WORKING_VFORK 1 | |
9383 | _ACEOF | |
9384 | ||
9385 | else | |
9386 | ||
9387 | cat >>confdefs.h <<\_ACEOF | |
9388 | #define vfork fork | |
9389 | _ACEOF | |
9390 | ||
9391 | fi | |
9392 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9393 | ||
9394 | cat >>confdefs.h <<\_ACEOF | |
9395 | #define HAVE_WORKING_FORK 1 | |
9396 | _ACEOF | |
9397 | ||
9398 | fi | |
9399 | ||
ec6a6fbe AK |
9400 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9401 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9402 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9403 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9404 | else |
9405 | rm -f conftest.sym conftest.file | |
9406 | echo >conftest.file | |
9407 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9408 | if test "$cross_compiling" = yes; then | |
9409 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9410 | else | |
9411 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9412 | /* confdefs.h. */ |
9413 | _ACEOF | |
9414 | cat confdefs.h >>conftest.$ac_ext | |
9415 | cat >>conftest.$ac_ext <<_ACEOF | |
9416 | /* end confdefs.h. */ | |
9417 | $ac_includes_default | |
9418 | int | |
9419 | main () | |
9420 | { | |
9421 | struct stat sbuf; | |
9422 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9423 | That is better in the sense that it means we will not |
9424 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9425 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9426 | ; |
9427 | return 0; | |
9428 | } | |
9429 | _ACEOF | |
9430 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9431 | if { (ac_try="$ac_link" |
9432 | case "(($ac_try" in | |
9433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9434 | *) ac_try_echo=$ac_try;; | |
9435 | esac | |
ec6a6fbe AK |
9436 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9437 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9438 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9439 | ac_status=$? |
ec6a6fbe | 9440 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9442 | { (case "(($ac_try" in |
9443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9444 | *) ac_try_echo=$ac_try;; | |
9445 | esac | |
ec6a6fbe AK |
9446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9447 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9448 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9449 | ac_status=$? |
ec6a6fbe | 9450 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9451 | (exit $ac_status); }; }; then |
9452 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9453 | else | |
ec6a6fbe AK |
9454 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9455 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9456 | sed 's/^/| /' conftest.$ac_ext >&5 |
9457 | ||
9458 | ( exit $ac_status ) | |
9459 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9460 | fi | |
ec6a6fbe | 9461 | rm -rf conftest.dSYM |
7a197a62 | 9462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9463 | fi |
7a197a62 AK |
9464 | |
9465 | ||
ad6254c5 AK |
9466 | else |
9467 | # If the `ln -s' command failed, then we probably don't even | |
9468 | # have an lstat function. | |
9469 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9470 | fi | |
9471 | rm -f conftest.sym conftest.file | |
9472 | ||
9473 | fi | |
ec6a6fbe AK |
9474 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9475 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9476 | |
9477 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9478 | ||
9479 | cat >>confdefs.h <<_ACEOF | |
9480 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9481 | _ACEOF | |
9482 | ||
9483 | ||
9484 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9485 | case " $LIBOBJS " in |
8a2fc586 | 9486 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9487 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9488 | ;; | |
8a2fc586 AK |
9489 | esac |
9490 | ||
ad6254c5 AK |
9491 | fi |
9492 | ||
ec6a6fbe AK |
9493 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9494 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9495 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9496 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9497 | else |
9498 | if test "$cross_compiling" = yes; then | |
9499 | ac_cv_func_lstat_empty_string_bug=yes | |
9500 | else | |
9501 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9502 | /* confdefs.h. */ |
9503 | _ACEOF | |
9504 | cat confdefs.h >>conftest.$ac_ext | |
9505 | cat >>conftest.$ac_ext <<_ACEOF | |
9506 | /* end confdefs.h. */ | |
9507 | $ac_includes_default | |
9508 | int | |
9509 | main () | |
9510 | { | |
9511 | struct stat sbuf; | |
7a197a62 | 9512 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9513 | ; |
9514 | return 0; | |
9515 | } | |
9516 | _ACEOF | |
9517 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9518 | if { (ac_try="$ac_link" |
9519 | case "(($ac_try" in | |
9520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9521 | *) ac_try_echo=$ac_try;; | |
9522 | esac | |
ec6a6fbe AK |
9523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9524 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9525 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9526 | ac_status=$? |
ec6a6fbe | 9527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9528 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9529 | { (case "(($ac_try" in |
9530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9531 | *) ac_try_echo=$ac_try;; | |
9532 | esac | |
ec6a6fbe AK |
9533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9534 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9535 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9536 | ac_status=$? |
ec6a6fbe | 9537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9538 | (exit $ac_status); }; }; then |
7a197a62 | 9539 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9540 | else |
ec6a6fbe AK |
9541 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9542 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9543 | sed 's/^/| /' conftest.$ac_ext >&5 |
9544 | ||
9545 | ( exit $ac_status ) | |
7a197a62 | 9546 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9547 | fi |
ec6a6fbe | 9548 | rm -rf conftest.dSYM |
7a197a62 | 9549 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9550 | fi |
7a197a62 AK |
9551 | |
9552 | ||
ad6254c5 | 9553 | fi |
ec6a6fbe AK |
9554 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9555 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9556 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 9557 | case " $LIBOBJS " in |
8a2fc586 | 9558 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9559 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9560 | ;; | |
8a2fc586 AK |
9561 | esac |
9562 | ||
ad6254c5 AK |
9563 | |
9564 | cat >>confdefs.h <<_ACEOF | |
9565 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9566 | _ACEOF | |
9567 | ||
9568 | fi | |
9569 | ||
9570 | ||
9571 | for ac_header in stdlib.h | |
9572 | do | |
ec6a6fbe | 9573 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9575 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9576 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9577 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9578 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9579 | fi |
ec6a6fbe AK |
9580 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9581 | $as_echo "$as_val"'` | |
9582 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9583 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9584 | else |
9585 | # Is the header compilable? | |
ec6a6fbe AK |
9586 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9587 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9588 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9589 | /* confdefs.h. */ |
9590 | _ACEOF | |
9591 | cat confdefs.h >>conftest.$ac_ext | |
9592 | cat >>conftest.$ac_ext <<_ACEOF | |
9593 | /* end confdefs.h. */ | |
9594 | $ac_includes_default | |
9595 | #include <$ac_header> | |
9596 | _ACEOF | |
9597 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9598 | if { (ac_try="$ac_compile" |
9599 | case "(($ac_try" in | |
9600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9601 | *) ac_try_echo=$ac_try;; | |
9602 | esac | |
ec6a6fbe AK |
9603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9604 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9605 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9606 | ac_status=$? |
8a2fc586 AK |
9607 | grep -v '^ *+' conftest.er1 >conftest.err |
9608 | rm -f conftest.er1 | |
9609 | cat conftest.err >&5 | |
ec6a6fbe | 9610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9611 | (exit $ac_status); } && { |
9612 | test -z "$ac_c_werror_flag" || | |
9613 | test ! -s conftest.err | |
9614 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9615 | ac_header_compiler=yes |
9616 | else | |
ec6a6fbe | 9617 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9618 | sed 's/^/| /' conftest.$ac_ext >&5 |
9619 | ||
7a197a62 | 9620 | ac_header_compiler=no |
ad6254c5 | 9621 | fi |
7a197a62 AK |
9622 | |
9623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9624 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9625 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9626 | |
9627 | # Is the header present? | |
ec6a6fbe AK |
9628 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9629 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9630 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9631 | /* confdefs.h. */ |
9632 | _ACEOF | |
9633 | cat confdefs.h >>conftest.$ac_ext | |
9634 | cat >>conftest.$ac_ext <<_ACEOF | |
9635 | /* end confdefs.h. */ | |
9636 | #include <$ac_header> | |
9637 | _ACEOF | |
7a197a62 AK |
9638 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9639 | case "(($ac_try" in | |
9640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9641 | *) ac_try_echo=$ac_try;; | |
9642 | esac | |
ec6a6fbe AK |
9643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9644 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9645 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9646 | ac_status=$? |
9647 | grep -v '^ *+' conftest.er1 >conftest.err | |
9648 | rm -f conftest.er1 | |
9649 | cat conftest.err >&5 | |
ec6a6fbe | 9650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9651 | (exit $ac_status); } >/dev/null && { |
9652 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9653 | test ! -s conftest.err | |
9654 | }; then | |
ad6254c5 AK |
9655 | ac_header_preproc=yes |
9656 | else | |
ec6a6fbe | 9657 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9658 | sed 's/^/| /' conftest.$ac_ext >&5 |
9659 | ||
9660 | ac_header_preproc=no | |
9661 | fi | |
7a197a62 | 9662 | |
ad6254c5 | 9663 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9664 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9665 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9666 | |
9667 | # So? What about this header? | |
8a2fc586 AK |
9668 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9669 | yes:no: ) | |
ec6a6fbe AK |
9670 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9671 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9672 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9673 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9674 | ac_header_preproc=yes |
ad6254c5 | 9675 | ;; |
8a2fc586 | 9676 | no:yes:* ) |
ec6a6fbe AK |
9677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9678 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9680 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9682 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9684 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9686 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9688 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9689 | |
ad6254c5 AK |
9690 | ;; |
9691 | esac | |
ec6a6fbe AK |
9692 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9693 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9694 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9695 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9696 | else |
8a2fc586 | 9697 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9698 | fi |
ec6a6fbe AK |
9699 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9700 | $as_echo "$as_val"'` | |
9701 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9702 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9703 | |
9704 | fi | |
ec6a6fbe AK |
9705 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9706 | $as_echo "$as_val"'` | |
9707 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9708 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9709 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9710 | _ACEOF |
9711 | ||
9712 | fi | |
9713 | ||
9714 | done | |
9715 | ||
ec6a6fbe AK |
9716 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9717 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9718 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9719 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9720 | else |
9721 | if test "$cross_compiling" = yes; then | |
9722 | ac_cv_func_malloc_0_nonnull=no | |
9723 | else | |
9724 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9725 | /* confdefs.h. */ |
9726 | _ACEOF | |
9727 | cat confdefs.h >>conftest.$ac_ext | |
9728 | cat >>conftest.$ac_ext <<_ACEOF | |
9729 | /* end confdefs.h. */ | |
25fbec5b | 9730 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9731 | # include <stdlib.h> |
9732 | #else | |
9733 | char *malloc (); | |
9734 | #endif | |
9735 | ||
9736 | int | |
9737 | main () | |
9738 | { | |
7a197a62 | 9739 | return ! malloc (0); |
ad6254c5 AK |
9740 | ; |
9741 | return 0; | |
9742 | } | |
9743 | _ACEOF | |
9744 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9745 | if { (ac_try="$ac_link" |
9746 | case "(($ac_try" in | |
9747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9748 | *) ac_try_echo=$ac_try;; | |
9749 | esac | |
ec6a6fbe AK |
9750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9751 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9752 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9753 | ac_status=$? |
ec6a6fbe | 9754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9755 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9756 | { (case "(($ac_try" in |
9757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9758 | *) ac_try_echo=$ac_try;; | |
9759 | esac | |
ec6a6fbe AK |
9760 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9761 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9762 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9763 | ac_status=$? |
ec6a6fbe | 9764 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9765 | (exit $ac_status); }; }; then |
9766 | ac_cv_func_malloc_0_nonnull=yes | |
9767 | else | |
ec6a6fbe AK |
9768 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9769 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9770 | sed 's/^/| /' conftest.$ac_ext >&5 |
9771 | ||
9772 | ( exit $ac_status ) | |
9773 | ac_cv_func_malloc_0_nonnull=no | |
9774 | fi | |
ec6a6fbe | 9775 | rm -rf conftest.dSYM |
7a197a62 | 9776 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9777 | fi |
7a197a62 AK |
9778 | |
9779 | ||
ad6254c5 | 9780 | fi |
ec6a6fbe AK |
9781 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9782 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9783 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9784 | ||
9785 | cat >>confdefs.h <<\_ACEOF | |
9786 | #define HAVE_MALLOC 1 | |
9787 | _ACEOF | |
9788 | ||
9789 | else | |
9790 | cat >>confdefs.h <<\_ACEOF | |
9791 | #define HAVE_MALLOC 0 | |
9792 | _ACEOF | |
9793 | ||
7a197a62 | 9794 | case " $LIBOBJS " in |
8a2fc586 | 9795 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9796 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9797 | ;; | |
8a2fc586 AK |
9798 | esac |
9799 | ||
ad6254c5 AK |
9800 | |
9801 | cat >>confdefs.h <<\_ACEOF | |
9802 | #define malloc rpl_malloc | |
9803 | _ACEOF | |
9804 | ||
9805 | fi | |
9806 | ||
9807 | ||
9808 | ||
ec6a6fbe AK |
9809 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9810 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9811 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9812 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9813 | else |
9814 | if test "$cross_compiling" = yes; then | |
9815 | ac_cv_func_memcmp_working=no | |
9816 | else | |
9817 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9818 | /* confdefs.h. */ |
9819 | _ACEOF | |
9820 | cat confdefs.h >>conftest.$ac_ext | |
9821 | cat >>conftest.$ac_ext <<_ACEOF | |
9822 | /* end confdefs.h. */ | |
8a2fc586 | 9823 | $ac_includes_default |
ad6254c5 AK |
9824 | int |
9825 | main () | |
9826 | { | |
9827 | ||
9828 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9829 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9830 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9831 | return 1; |
ad6254c5 AK |
9832 | |
9833 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9834 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9835 | William Lewis provided this test program. */ | |
9836 | { | |
9837 | char foo[21]; | |
9838 | char bar[21]; | |
9839 | int i; | |
9840 | for (i = 0; i < 4; i++) | |
9841 | { | |
8a2fc586 AK |
9842 | char *a = foo + i; |
9843 | char *b = bar + i; | |
9844 | strcpy (a, "--------01111111"); | |
9845 | strcpy (b, "--------10000000"); | |
9846 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9847 | return 1; |
ad6254c5 | 9848 | } |
7a197a62 | 9849 | return 0; |
ad6254c5 AK |
9850 | } |
9851 | ||
9852 | ; | |
9853 | return 0; | |
9854 | } | |
9855 | _ACEOF | |
9856 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9857 | if { (ac_try="$ac_link" |
9858 | case "(($ac_try" in | |
9859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9860 | *) ac_try_echo=$ac_try;; | |
9861 | esac | |
ec6a6fbe AK |
9862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9863 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9864 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9865 | ac_status=$? |
ec6a6fbe | 9866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9868 | { (case "(($ac_try" in |
9869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9870 | *) ac_try_echo=$ac_try;; | |
9871 | esac | |
ec6a6fbe AK |
9872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9873 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9874 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9875 | ac_status=$? |
ec6a6fbe | 9876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9877 | (exit $ac_status); }; }; then |
9878 | ac_cv_func_memcmp_working=yes | |
9879 | else | |
ec6a6fbe AK |
9880 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9881 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9882 | sed 's/^/| /' conftest.$ac_ext >&5 |
9883 | ||
9884 | ( exit $ac_status ) | |
9885 | ac_cv_func_memcmp_working=no | |
9886 | fi | |
ec6a6fbe | 9887 | rm -rf conftest.dSYM |
7a197a62 | 9888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9889 | fi |
7a197a62 AK |
9890 | |
9891 | ||
ad6254c5 | 9892 | fi |
ec6a6fbe AK |
9893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9894 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9895 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9896 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9897 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9898 | ;; | |
8a2fc586 AK |
9899 | esac |
9900 | ||
ad6254c5 AK |
9901 | |
9902 | ||
9903 | ||
9904 | for ac_header in stdlib.h unistd.h | |
9905 | do | |
ec6a6fbe | 9906 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9908 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9909 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9910 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9911 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9912 | fi |
ec6a6fbe AK |
9913 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9914 | $as_echo "$as_val"'` | |
9915 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9916 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9917 | else |
9918 | # Is the header compilable? | |
ec6a6fbe AK |
9919 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9920 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9921 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9922 | /* confdefs.h. */ |
9923 | _ACEOF | |
9924 | cat confdefs.h >>conftest.$ac_ext | |
9925 | cat >>conftest.$ac_ext <<_ACEOF | |
9926 | /* end confdefs.h. */ | |
9927 | $ac_includes_default | |
9928 | #include <$ac_header> | |
9929 | _ACEOF | |
9930 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9931 | if { (ac_try="$ac_compile" |
9932 | case "(($ac_try" in | |
9933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9934 | *) ac_try_echo=$ac_try;; | |
9935 | esac | |
ec6a6fbe AK |
9936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9937 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9938 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9939 | ac_status=$? |
8a2fc586 AK |
9940 | grep -v '^ *+' conftest.er1 >conftest.err |
9941 | rm -f conftest.er1 | |
9942 | cat conftest.err >&5 | |
ec6a6fbe | 9943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9944 | (exit $ac_status); } && { |
9945 | test -z "$ac_c_werror_flag" || | |
9946 | test ! -s conftest.err | |
9947 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9948 | ac_header_compiler=yes |
9949 | else | |
ec6a6fbe | 9950 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9951 | sed 's/^/| /' conftest.$ac_ext >&5 |
9952 | ||
7a197a62 | 9953 | ac_header_compiler=no |
ad6254c5 | 9954 | fi |
7a197a62 AK |
9955 | |
9956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9957 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9958 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9959 | |
9960 | # Is the header present? | |
ec6a6fbe AK |
9961 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9962 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9963 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9964 | /* confdefs.h. */ |
9965 | _ACEOF | |
9966 | cat confdefs.h >>conftest.$ac_ext | |
9967 | cat >>conftest.$ac_ext <<_ACEOF | |
9968 | /* end confdefs.h. */ | |
9969 | #include <$ac_header> | |
9970 | _ACEOF | |
7a197a62 AK |
9971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9972 | case "(($ac_try" in | |
9973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9974 | *) ac_try_echo=$ac_try;; | |
9975 | esac | |
ec6a6fbe AK |
9976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9977 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9979 | ac_status=$? |
9980 | grep -v '^ *+' conftest.er1 >conftest.err | |
9981 | rm -f conftest.er1 | |
9982 | cat conftest.err >&5 | |
ec6a6fbe | 9983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9984 | (exit $ac_status); } >/dev/null && { |
9985 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9986 | test ! -s conftest.err | |
9987 | }; then | |
ad6254c5 AK |
9988 | ac_header_preproc=yes |
9989 | else | |
ec6a6fbe | 9990 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9991 | sed 's/^/| /' conftest.$ac_ext >&5 |
9992 | ||
9993 | ac_header_preproc=no | |
9994 | fi | |
7a197a62 | 9995 | |
ad6254c5 | 9996 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9997 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9998 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9999 | |
10000 | # So? What about this header? | |
8a2fc586 AK |
10001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10002 | yes:no: ) | |
ec6a6fbe AK |
10003 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10004 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10006 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10007 | ac_header_preproc=yes |
ad6254c5 | 10008 | ;; |
8a2fc586 | 10009 | no:yes:* ) |
ec6a6fbe AK |
10010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10011 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10013 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10015 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10017 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10019 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10021 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10022 | |
ad6254c5 AK |
10023 | ;; |
10024 | esac | |
ec6a6fbe AK |
10025 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10026 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10027 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10028 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10029 | else |
8a2fc586 | 10030 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10031 | fi |
ec6a6fbe AK |
10032 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10033 | $as_echo "$as_val"'` | |
10034 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10035 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10036 | |
10037 | fi | |
ec6a6fbe AK |
10038 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10039 | $as_echo "$as_val"'` | |
10040 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10041 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10042 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10043 | _ACEOF |
10044 | ||
10045 | fi | |
10046 | ||
10047 | done | |
10048 | ||
10049 | ||
10050 | for ac_func in getpagesize | |
10051 | do | |
ec6a6fbe AK |
10052 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10053 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10054 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10055 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10056 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10057 | else |
10058 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10059 | /* confdefs.h. */ |
10060 | _ACEOF | |
10061 | cat confdefs.h >>conftest.$ac_ext | |
10062 | cat >>conftest.$ac_ext <<_ACEOF | |
10063 | /* end confdefs.h. */ | |
8a2fc586 AK |
10064 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10066 | #define $ac_func innocuous_$ac_func | |
10067 | ||
ad6254c5 AK |
10068 | /* System header to define __stub macros and hopefully few prototypes, |
10069 | which can conflict with char $ac_func (); below. | |
10070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10071 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10072 | |
ad6254c5 AK |
10073 | #ifdef __STDC__ |
10074 | # include <limits.h> | |
10075 | #else | |
10076 | # include <assert.h> | |
10077 | #endif | |
8a2fc586 AK |
10078 | |
10079 | #undef $ac_func | |
10080 | ||
7a197a62 AK |
10081 | /* Override any GCC internal prototype to avoid an error. |
10082 | Use char because int might match the return type of a GCC | |
10083 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10084 | #ifdef __cplusplus |
10085 | extern "C" | |
ad6254c5 | 10086 | #endif |
ad6254c5 AK |
10087 | char $ac_func (); |
10088 | /* The GNU C library defines this for functions which it implements | |
10089 | to always fail with ENOSYS. Some functions are actually named | |
10090 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10091 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10092 | choke me |
ad6254c5 AK |
10093 | #endif |
10094 | ||
10095 | int | |
10096 | main () | |
10097 | { | |
7a197a62 | 10098 | return $ac_func (); |
ad6254c5 AK |
10099 | ; |
10100 | return 0; | |
10101 | } | |
10102 | _ACEOF | |
10103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10104 | if { (ac_try="$ac_link" |
10105 | case "(($ac_try" in | |
10106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10107 | *) ac_try_echo=$ac_try;; | |
10108 | esac | |
ec6a6fbe AK |
10109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10110 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10111 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10112 | ac_status=$? |
8a2fc586 AK |
10113 | grep -v '^ *+' conftest.er1 >conftest.err |
10114 | rm -f conftest.er1 | |
10115 | cat conftest.err >&5 | |
ec6a6fbe | 10116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10117 | (exit $ac_status); } && { |
10118 | test -z "$ac_c_werror_flag" || | |
10119 | test ! -s conftest.err | |
ec6a6fbe AK |
10120 | } && test -s conftest$ac_exeext && { |
10121 | test "$cross_compiling" = yes || | |
10122 | $as_test_x conftest$ac_exeext | |
10123 | }; then | |
ad6254c5 AK |
10124 | eval "$as_ac_var=yes" |
10125 | else | |
ec6a6fbe | 10126 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10127 | sed 's/^/| /' conftest.$ac_ext >&5 |
10128 | ||
7a197a62 | 10129 | eval "$as_ac_var=no" |
ad6254c5 | 10130 | fi |
7a197a62 | 10131 | |
ec6a6fbe | 10132 | rm -rf conftest.dSYM |
25fbec5b | 10133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10134 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10135 | fi |
ec6a6fbe AK |
10136 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10137 | $as_echo "$as_val"'` | |
10138 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10139 | $as_echo "$ac_res" >&6; } | |
10140 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10141 | $as_echo "$as_val"'` | |
10142 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10143 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10144 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10145 | _ACEOF |
10146 | ||
10147 | fi | |
10148 | done | |
10149 | ||
ec6a6fbe AK |
10150 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10151 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10152 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10153 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10154 | else |
10155 | if test "$cross_compiling" = yes; then | |
10156 | ac_cv_func_mmap_fixed_mapped=no | |
10157 | else | |
10158 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10159 | /* confdefs.h. */ |
10160 | _ACEOF | |
10161 | cat confdefs.h >>conftest.$ac_ext | |
10162 | cat >>conftest.$ac_ext <<_ACEOF | |
10163 | /* end confdefs.h. */ | |
10164 | $ac_includes_default | |
10165 | /* malloc might have been renamed as rpl_malloc. */ | |
10166 | #undef malloc | |
10167 | ||
10168 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10169 | Here is a matrix of mmap possibilities: | |
10170 | mmap private not fixed | |
10171 | mmap private fixed at somewhere currently unmapped | |
10172 | mmap private fixed at somewhere already mapped | |
10173 | mmap shared not fixed | |
10174 | mmap shared fixed at somewhere currently unmapped | |
10175 | mmap shared fixed at somewhere already mapped | |
10176 | For private mappings, we should verify that changes cannot be read() | |
10177 | back from the file, nor mmap's back from the file at a different | |
10178 | address. (There have been systems where private was not correctly | |
10179 | implemented like the infamous i386 svr4.0, and systems where the | |
10180 | VM page cache was not coherent with the file system buffer cache | |
10181 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10182 | For shared mappings, we should conversely verify that changes get | |
10183 | propagated back to all the places they're supposed to be. | |
10184 | ||
10185 | Grep wants private fixed already mapped. | |
10186 | The main things grep needs to know about mmap are: | |
10187 | * does it exist and is it safe to write into the mmap'd area | |
10188 | * how to use it (BSD variants) */ | |
10189 | ||
10190 | #include <fcntl.h> | |
10191 | #include <sys/mman.h> | |
10192 | ||
25fbec5b | 10193 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10194 | char *malloc (); |
10195 | #endif | |
10196 | ||
10197 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10198 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10199 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10200 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10201 | # define HAVE_SYS_PARAM_H 1 |
10202 | # endif | |
10203 | ||
10204 | # ifdef _SC_PAGESIZE | |
10205 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10206 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10207 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10208 | # include <sys/param.h> |
10209 | # ifdef EXEC_PAGESIZE | |
10210 | # define getpagesize() EXEC_PAGESIZE | |
10211 | # else /* no EXEC_PAGESIZE */ | |
10212 | # ifdef NBPG | |
10213 | # define getpagesize() NBPG * CLSIZE | |
10214 | # ifndef CLSIZE | |
10215 | # define CLSIZE 1 | |
10216 | # endif /* no CLSIZE */ | |
10217 | # else /* no NBPG */ | |
10218 | # ifdef NBPC | |
10219 | # define getpagesize() NBPC | |
10220 | # else /* no NBPC */ | |
10221 | # ifdef PAGESIZE | |
10222 | # define getpagesize() PAGESIZE | |
10223 | # endif /* PAGESIZE */ | |
10224 | # endif /* no NBPC */ | |
10225 | # endif /* no NBPG */ | |
10226 | # endif /* no EXEC_PAGESIZE */ | |
10227 | # else /* no HAVE_SYS_PARAM_H */ | |
10228 | # define getpagesize() 8192 /* punt totally */ | |
10229 | # endif /* no HAVE_SYS_PARAM_H */ | |
10230 | # endif /* no _SC_PAGESIZE */ | |
10231 | ||
10232 | #endif /* no HAVE_GETPAGESIZE */ | |
10233 | ||
10234 | int | |
10235 | main () | |
10236 | { | |
10237 | char *data, *data2, *data3; | |
10238 | int i, pagesize; | |
10239 | int fd; | |
10240 | ||
10241 | pagesize = getpagesize (); | |
10242 | ||
10243 | /* First, make a file with some known garbage in it. */ | |
10244 | data = (char *) malloc (pagesize); | |
10245 | if (!data) | |
7a197a62 | 10246 | return 1; |
ad6254c5 AK |
10247 | for (i = 0; i < pagesize; ++i) |
10248 | *(data + i) = rand (); | |
10249 | umask (0); | |
10250 | fd = creat ("conftest.mmap", 0600); | |
10251 | if (fd < 0) | |
7a197a62 | 10252 | return 1; |
ad6254c5 | 10253 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10254 | return 1; |
ad6254c5 AK |
10255 | close (fd); |
10256 | ||
10257 | /* Next, try to mmap the file at a fixed address which already has | |
10258 | something else allocated at it. If we can, also make sure that | |
10259 | we see the same garbage. */ | |
10260 | fd = open ("conftest.mmap", O_RDWR); | |
10261 | if (fd < 0) | |
7a197a62 | 10262 | return 1; |
ad6254c5 AK |
10263 | data2 = (char *) malloc (2 * pagesize); |
10264 | if (!data2) | |
7a197a62 AK |
10265 | return 1; |
10266 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10267 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10268 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10269 | return 1; |
ad6254c5 AK |
10270 | for (i = 0; i < pagesize; ++i) |
10271 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10272 | return 1; |
ad6254c5 | 10273 | |
d911ec67 AK |
10274 | /* Finally, make sure that changes to the mapped area do not |
10275 | percolate back to the file as seen by read(). (This is a bug on | |
10276 | some variants of i386 svr4.0.) */ | |
10277 | for (i = 0; i < pagesize; ++i) | |
10278 | *(data2 + i) = *(data2 + i) + 1; | |
10279 | data3 = (char *) malloc (pagesize); | |
10280 | if (!data3) | |
10281 | return 1; | |
10282 | if (read (fd, data3, pagesize) != pagesize) | |
10283 | return 1; | |
10284 | for (i = 0; i < pagesize; ++i) | |
10285 | if (*(data + i) != *(data3 + i)) | |
10286 | return 1; | |
10287 | close (fd); | |
10288 | return 0; | |
10289 | } | |
10290 | _ACEOF | |
10291 | rm -f conftest$ac_exeext | |
10292 | if { (ac_try="$ac_link" | |
10293 | case "(($ac_try" in | |
10294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10295 | *) ac_try_echo=$ac_try;; | |
10296 | esac | |
10297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10298 | $as_echo "$ac_try_echo") >&5 | |
10299 | (eval "$ac_link") 2>&5 | |
10300 | ac_status=$? | |
10301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10303 | { (case "(($ac_try" in | |
10304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10305 | *) ac_try_echo=$ac_try;; | |
10306 | esac | |
10307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10308 | $as_echo "$ac_try_echo") >&5 | |
10309 | (eval "$ac_try") 2>&5 | |
10310 | ac_status=$? | |
10311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10312 | (exit $ac_status); }; }; then | |
10313 | ac_cv_func_mmap_fixed_mapped=yes | |
10314 | else | |
10315 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10316 | $as_echo "$as_me: failed program was:" >&5 | |
10317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10318 | ||
10319 | ( exit $ac_status ) | |
10320 | ac_cv_func_mmap_fixed_mapped=no | |
10321 | fi | |
10322 | rm -rf conftest.dSYM | |
10323 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10324 | fi | |
10325 | ||
10326 | ||
10327 | fi | |
10328 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10329 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10330 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10331 | ||
10332 | cat >>confdefs.h <<\_ACEOF | |
10333 | #define HAVE_MMAP 1 | |
10334 | _ACEOF | |
10335 | ||
10336 | fi | |
10337 | rm -f conftest.mmap | |
10338 | ||
10339 | ||
10340 | for ac_header in stdlib.h | |
10341 | do | |
10342 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10343 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10344 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10345 | $as_echo_n "checking for $ac_header... " >&6; } | |
10346 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10347 | $as_echo_n "(cached) " >&6 | |
10348 | fi | |
10349 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10350 | $as_echo "$as_val"'` | |
10351 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10352 | $as_echo "$ac_res" >&6; } | |
10353 | else | |
10354 | # Is the header compilable? | |
10355 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10356 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10357 | cat >conftest.$ac_ext <<_ACEOF | |
10358 | /* confdefs.h. */ | |
10359 | _ACEOF | |
10360 | cat confdefs.h >>conftest.$ac_ext | |
10361 | cat >>conftest.$ac_ext <<_ACEOF | |
10362 | /* end confdefs.h. */ | |
10363 | $ac_includes_default | |
10364 | #include <$ac_header> | |
10365 | _ACEOF | |
10366 | rm -f conftest.$ac_objext | |
10367 | if { (ac_try="$ac_compile" | |
10368 | case "(($ac_try" in | |
10369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10370 | *) ac_try_echo=$ac_try;; | |
10371 | esac | |
10372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10373 | $as_echo "$ac_try_echo") >&5 | |
10374 | (eval "$ac_compile") 2>conftest.er1 | |
10375 | ac_status=$? | |
10376 | grep -v '^ *+' conftest.er1 >conftest.err | |
10377 | rm -f conftest.er1 | |
10378 | cat conftest.err >&5 | |
10379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10380 | (exit $ac_status); } && { | |
10381 | test -z "$ac_c_werror_flag" || | |
10382 | test ! -s conftest.err | |
10383 | } && test -s conftest.$ac_objext; then | |
10384 | ac_header_compiler=yes | |
10385 | else | |
10386 | $as_echo "$as_me: failed program was:" >&5 | |
10387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10388 | ||
10389 | ac_header_compiler=no | |
10390 | fi | |
10391 | ||
10392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10393 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10394 | $as_echo "$ac_header_compiler" >&6; } | |
10395 | ||
10396 | # Is the header present? | |
10397 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10398 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10399 | cat >conftest.$ac_ext <<_ACEOF | |
10400 | /* confdefs.h. */ | |
10401 | _ACEOF | |
10402 | cat confdefs.h >>conftest.$ac_ext | |
10403 | cat >>conftest.$ac_ext <<_ACEOF | |
10404 | /* end confdefs.h. */ | |
10405 | #include <$ac_header> | |
10406 | _ACEOF | |
10407 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10408 | case "(($ac_try" in | |
10409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10410 | *) ac_try_echo=$ac_try;; | |
10411 | esac | |
10412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10413 | $as_echo "$ac_try_echo") >&5 | |
10414 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10415 | ac_status=$? | |
10416 | grep -v '^ *+' conftest.er1 >conftest.err | |
10417 | rm -f conftest.er1 | |
10418 | cat conftest.err >&5 | |
10419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10420 | (exit $ac_status); } >/dev/null && { | |
10421 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10422 | test ! -s conftest.err | |
10423 | }; then | |
10424 | ac_header_preproc=yes | |
10425 | else | |
10426 | $as_echo "$as_me: failed program was:" >&5 | |
10427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10428 | ||
10429 | ac_header_preproc=no | |
10430 | fi | |
10431 | ||
10432 | rm -f conftest.err conftest.$ac_ext | |
10433 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10434 | $as_echo "$ac_header_preproc" >&6; } | |
10435 | ||
10436 | # So? What about this header? | |
10437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10438 | yes:no: ) | |
10439 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10440 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10441 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10442 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10443 | ac_header_preproc=yes | |
10444 | ;; | |
10445 | no:yes:* ) | |
10446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10447 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10449 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10450 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10451 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10452 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10453 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10454 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10455 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10456 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10457 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10458 | ||
10459 | ;; | |
10460 | esac | |
10461 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10462 | $as_echo_n "checking for $ac_header... " >&6; } | |
10463 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10464 | $as_echo_n "(cached) " >&6 | |
10465 | else | |
10466 | eval "$as_ac_Header=\$ac_header_preproc" | |
10467 | fi | |
10468 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10469 | $as_echo "$as_val"'` | |
10470 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10471 | $as_echo "$ac_res" >&6; } | |
10472 | ||
10473 | fi | |
10474 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10475 | $as_echo "$as_val"'` | |
10476 | if test "x$as_val" = x""yes; then | |
10477 | cat >>confdefs.h <<_ACEOF | |
10478 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10479 | _ACEOF | |
10480 | ||
10481 | fi | |
10482 | ||
10483 | done | |
10484 | ||
10485 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10486 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10487 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10488 | $as_echo_n "(cached) " >&6 | |
10489 | else | |
10490 | if test "$cross_compiling" = yes; then | |
10491 | ac_cv_func_realloc_0_nonnull=no | |
10492 | else | |
10493 | cat >conftest.$ac_ext <<_ACEOF | |
10494 | /* confdefs.h. */ | |
10495 | _ACEOF | |
10496 | cat confdefs.h >>conftest.$ac_ext | |
10497 | cat >>conftest.$ac_ext <<_ACEOF | |
10498 | /* end confdefs.h. */ | |
10499 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10500 | # include <stdlib.h> | |
10501 | #else | |
10502 | char *realloc (); | |
10503 | #endif | |
10504 | ||
10505 | int | |
10506 | main () | |
10507 | { | |
10508 | return ! realloc (0, 0); | |
10509 | ; | |
7a197a62 | 10510 | return 0; |
ad6254c5 AK |
10511 | } |
10512 | _ACEOF | |
10513 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10514 | if { (ac_try="$ac_link" |
10515 | case "(($ac_try" in | |
10516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10517 | *) ac_try_echo=$ac_try;; | |
10518 | esac | |
ec6a6fbe AK |
10519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10520 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10521 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10522 | ac_status=$? |
ec6a6fbe | 10523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10525 | { (case "(($ac_try" in |
10526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10527 | *) ac_try_echo=$ac_try;; | |
10528 | esac | |
ec6a6fbe AK |
10529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10530 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10531 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10532 | ac_status=$? |
ec6a6fbe | 10533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10534 | (exit $ac_status); }; }; then |
d911ec67 | 10535 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10536 | else |
ec6a6fbe AK |
10537 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10538 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10539 | sed 's/^/| /' conftest.$ac_ext >&5 |
10540 | ||
10541 | ( exit $ac_status ) | |
d911ec67 | 10542 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10543 | fi |
ec6a6fbe | 10544 | rm -rf conftest.dSYM |
7a197a62 | 10545 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10546 | fi |
7a197a62 AK |
10547 | |
10548 | ||
ad6254c5 | 10549 | fi |
d911ec67 AK |
10550 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10551 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10552 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10553 | |
10554 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10555 | #define HAVE_REALLOC 1 |
10556 | _ACEOF | |
10557 | ||
10558 | else | |
10559 | cat >>confdefs.h <<\_ACEOF | |
10560 | #define HAVE_REALLOC 0 | |
10561 | _ACEOF | |
10562 | ||
10563 | case " $LIBOBJS " in | |
10564 | *" realloc.$ac_objext "* ) ;; | |
10565 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10566 | ;; | |
10567 | esac | |
10568 | ||
10569 | ||
10570 | cat >>confdefs.h <<\_ACEOF | |
10571 | #define realloc rpl_realloc | |
ad6254c5 AK |
10572 | _ACEOF |
10573 | ||
10574 | fi | |
d911ec67 AK |
10575 | |
10576 | ||
ad6254c5 | 10577 | |
ec6a6fbe AK |
10578 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10579 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10580 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10581 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10582 | else |
10583 | if test "$cross_compiling" = yes; then | |
10584 | ac_cv_func_stat_empty_string_bug=yes | |
10585 | else | |
10586 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10587 | /* confdefs.h. */ |
10588 | _ACEOF | |
10589 | cat confdefs.h >>conftest.$ac_ext | |
10590 | cat >>conftest.$ac_ext <<_ACEOF | |
10591 | /* end confdefs.h. */ | |
10592 | $ac_includes_default | |
10593 | int | |
10594 | main () | |
10595 | { | |
10596 | struct stat sbuf; | |
7a197a62 | 10597 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10598 | ; |
10599 | return 0; | |
10600 | } | |
10601 | _ACEOF | |
10602 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10603 | if { (ac_try="$ac_link" |
10604 | case "(($ac_try" in | |
10605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10606 | *) ac_try_echo=$ac_try;; | |
10607 | esac | |
ec6a6fbe AK |
10608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10609 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10610 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10611 | ac_status=$? |
ec6a6fbe | 10612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10614 | { (case "(($ac_try" in |
10615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10616 | *) ac_try_echo=$ac_try;; | |
10617 | esac | |
ec6a6fbe AK |
10618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10619 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10620 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10621 | ac_status=$? |
ec6a6fbe | 10622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10623 | (exit $ac_status); }; }; then |
7a197a62 | 10624 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10625 | else |
ec6a6fbe AK |
10626 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10627 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10628 | sed 's/^/| /' conftest.$ac_ext >&5 |
10629 | ||
10630 | ( exit $ac_status ) | |
7a197a62 | 10631 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10632 | fi |
ec6a6fbe | 10633 | rm -rf conftest.dSYM |
7a197a62 | 10634 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10635 | fi |
7a197a62 AK |
10636 | |
10637 | ||
ad6254c5 | 10638 | fi |
ec6a6fbe AK |
10639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10640 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10641 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10642 | case " $LIBOBJS " in |
8a2fc586 | 10643 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10644 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10645 | ;; | |
8a2fc586 AK |
10646 | esac |
10647 | ||
ad6254c5 AK |
10648 | |
10649 | cat >>confdefs.h <<_ACEOF | |
10650 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10651 | _ACEOF | |
10652 | ||
10653 | fi | |
10654 | ||
ec6a6fbe AK |
10655 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10656 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10657 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10658 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10659 | else |
10660 | if test "$cross_compiling" = yes; then | |
10661 | ac_cv_func_strtod=no | |
10662 | else | |
10663 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10664 | /* confdefs.h. */ |
10665 | _ACEOF | |
10666 | cat confdefs.h >>conftest.$ac_ext | |
10667 | cat >>conftest.$ac_ext <<_ACEOF | |
10668 | /* end confdefs.h. */ | |
10669 | ||
7a197a62 AK |
10670 | $ac_includes_default |
10671 | #ifndef strtod | |
ad6254c5 | 10672 | double strtod (); |
7a197a62 | 10673 | #endif |
ad6254c5 AK |
10674 | int |
10675 | main() | |
10676 | { | |
10677 | { | |
10678 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10679 | char *string = " +69"; | |
10680 | char *term; | |
10681 | double value; | |
10682 | value = strtod (string, &term); | |
10683 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10684 | return 1; |
ad6254c5 AK |
10685 | } |
10686 | ||
10687 | { | |
10688 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10689 | terminating character under some conditions. */ | |
10690 | char *string = "NaN"; | |
10691 | char *term; | |
10692 | strtod (string, &term); | |
10693 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10694 | return 1; |
ad6254c5 | 10695 | } |
7a197a62 | 10696 | return 0; |
ad6254c5 AK |
10697 | } |
10698 | ||
10699 | _ACEOF | |
10700 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10701 | if { (ac_try="$ac_link" |
10702 | case "(($ac_try" in | |
10703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10704 | *) ac_try_echo=$ac_try;; | |
10705 | esac | |
ec6a6fbe AK |
10706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10707 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10708 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10709 | ac_status=$? |
ec6a6fbe | 10710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10712 | { (case "(($ac_try" in |
10713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10714 | *) ac_try_echo=$ac_try;; | |
10715 | esac | |
ec6a6fbe AK |
10716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10717 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10718 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10719 | ac_status=$? |
ec6a6fbe | 10720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10721 | (exit $ac_status); }; }; then |
10722 | ac_cv_func_strtod=yes | |
10723 | else | |
ec6a6fbe AK |
10724 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10725 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10726 | sed 's/^/| /' conftest.$ac_ext >&5 |
10727 | ||
10728 | ( exit $ac_status ) | |
10729 | ac_cv_func_strtod=no | |
10730 | fi | |
ec6a6fbe | 10731 | rm -rf conftest.dSYM |
7a197a62 | 10732 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10733 | fi |
7a197a62 AK |
10734 | |
10735 | ||
ad6254c5 | 10736 | fi |
ec6a6fbe AK |
10737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10738 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10739 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10740 | case " $LIBOBJS " in |
8a2fc586 | 10741 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10742 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10743 | ;; | |
8a2fc586 AK |
10744 | esac |
10745 | ||
ec6a6fbe AK |
10746 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10747 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10748 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10749 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10750 | else |
10751 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10752 | /* confdefs.h. */ |
10753 | _ACEOF | |
10754 | cat confdefs.h >>conftest.$ac_ext | |
10755 | cat >>conftest.$ac_ext <<_ACEOF | |
10756 | /* end confdefs.h. */ | |
8a2fc586 AK |
10757 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10759 | #define pow innocuous_pow | |
10760 | ||
ad6254c5 AK |
10761 | /* System header to define __stub macros and hopefully few prototypes, |
10762 | which can conflict with char pow (); below. | |
10763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10764 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10765 | |
ad6254c5 AK |
10766 | #ifdef __STDC__ |
10767 | # include <limits.h> | |
10768 | #else | |
10769 | # include <assert.h> | |
10770 | #endif | |
8a2fc586 AK |
10771 | |
10772 | #undef pow | |
10773 | ||
7a197a62 AK |
10774 | /* Override any GCC internal prototype to avoid an error. |
10775 | Use char because int might match the return type of a GCC | |
10776 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10777 | #ifdef __cplusplus |
10778 | extern "C" | |
ad6254c5 | 10779 | #endif |
ad6254c5 AK |
10780 | char pow (); |
10781 | /* The GNU C library defines this for functions which it implements | |
10782 | to always fail with ENOSYS. Some functions are actually named | |
10783 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10784 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10785 | choke me |
ad6254c5 AK |
10786 | #endif |
10787 | ||
10788 | int | |
10789 | main () | |
10790 | { | |
7a197a62 | 10791 | return pow (); |
ad6254c5 AK |
10792 | ; |
10793 | return 0; | |
10794 | } | |
10795 | _ACEOF | |
10796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10797 | if { (ac_try="$ac_link" |
10798 | case "(($ac_try" in | |
10799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10800 | *) ac_try_echo=$ac_try;; | |
10801 | esac | |
ec6a6fbe AK |
10802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10803 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10804 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10805 | ac_status=$? |
8a2fc586 AK |
10806 | grep -v '^ *+' conftest.er1 >conftest.err |
10807 | rm -f conftest.er1 | |
10808 | cat conftest.err >&5 | |
ec6a6fbe | 10809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10810 | (exit $ac_status); } && { |
10811 | test -z "$ac_c_werror_flag" || | |
10812 | test ! -s conftest.err | |
ec6a6fbe AK |
10813 | } && test -s conftest$ac_exeext && { |
10814 | test "$cross_compiling" = yes || | |
10815 | $as_test_x conftest$ac_exeext | |
10816 | }; then | |
ad6254c5 AK |
10817 | ac_cv_func_pow=yes |
10818 | else | |
ec6a6fbe | 10819 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10820 | sed 's/^/| /' conftest.$ac_ext >&5 |
10821 | ||
7a197a62 | 10822 | ac_cv_func_pow=no |
ad6254c5 | 10823 | fi |
7a197a62 | 10824 | |
ec6a6fbe | 10825 | rm -rf conftest.dSYM |
25fbec5b | 10826 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10827 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10828 | fi |
ec6a6fbe AK |
10829 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10830 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10831 | |
10832 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10833 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10834 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10835 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10836 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10837 | else |
10838 | ac_check_lib_save_LIBS=$LIBS | |
10839 | LIBS="-lm $LIBS" | |
10840 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10841 | /* confdefs.h. */ |
10842 | _ACEOF | |
10843 | cat confdefs.h >>conftest.$ac_ext | |
10844 | cat >>conftest.$ac_ext <<_ACEOF | |
10845 | /* end confdefs.h. */ | |
10846 | ||
7a197a62 AK |
10847 | /* Override any GCC internal prototype to avoid an error. |
10848 | Use char because int might match the return type of a GCC | |
10849 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10850 | #ifdef __cplusplus |
10851 | extern "C" | |
10852 | #endif | |
ad6254c5 AK |
10853 | char pow (); |
10854 | int | |
10855 | main () | |
10856 | { | |
7a197a62 | 10857 | return pow (); |
ad6254c5 AK |
10858 | ; |
10859 | return 0; | |
10860 | } | |
10861 | _ACEOF | |
10862 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10863 | if { (ac_try="$ac_link" |
10864 | case "(($ac_try" in | |
10865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10866 | *) ac_try_echo=$ac_try;; | |
10867 | esac | |
ec6a6fbe AK |
10868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10869 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10870 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10871 | ac_status=$? |
8a2fc586 AK |
10872 | grep -v '^ *+' conftest.er1 >conftest.err |
10873 | rm -f conftest.er1 | |
10874 | cat conftest.err >&5 | |
ec6a6fbe | 10875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10876 | (exit $ac_status); } && { |
10877 | test -z "$ac_c_werror_flag" || | |
10878 | test ! -s conftest.err | |
ec6a6fbe AK |
10879 | } && test -s conftest$ac_exeext && { |
10880 | test "$cross_compiling" = yes || | |
10881 | $as_test_x conftest$ac_exeext | |
10882 | }; then | |
ad6254c5 AK |
10883 | ac_cv_lib_m_pow=yes |
10884 | else | |
ec6a6fbe | 10885 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10886 | sed 's/^/| /' conftest.$ac_ext >&5 |
10887 | ||
7a197a62 | 10888 | ac_cv_lib_m_pow=no |
ad6254c5 | 10889 | fi |
7a197a62 | 10890 | |
ec6a6fbe | 10891 | rm -rf conftest.dSYM |
25fbec5b | 10892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10893 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10894 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10895 | fi |
ec6a6fbe AK |
10896 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10897 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10898 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10899 | POW_LIB=-lm |
10900 | else | |
ec6a6fbe AK |
10901 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10902 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10903 | fi |
72b2cb61 | 10904 | |
d0191583 | 10905 | fi |
72b2cb61 | 10906 | |
ad6254c5 AK |
10907 | fi |
10908 | ||
ad6254c5 | 10909 | |
d0191583 JM |
10910 | for ac_func in vprintf |
10911 | do | |
ec6a6fbe AK |
10912 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10913 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10914 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10915 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10916 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10917 | else |
d0191583 JM |
10918 | cat >conftest.$ac_ext <<_ACEOF |
10919 | /* confdefs.h. */ | |
10920 | _ACEOF | |
10921 | cat confdefs.h >>conftest.$ac_ext | |
10922 | cat >>conftest.$ac_ext <<_ACEOF | |
10923 | /* end confdefs.h. */ | |
10924 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10925 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10926 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10927 | |
d0191583 JM |
10928 | /* System header to define __stub macros and hopefully few prototypes, |
10929 | which can conflict with char $ac_func (); below. | |
10930 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10931 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10932 | |
d0191583 JM |
10933 | #ifdef __STDC__ |
10934 | # include <limits.h> | |
10935 | #else | |
10936 | # include <assert.h> | |
10937 | #endif | |
ad6254c5 | 10938 | |
d0191583 | 10939 | #undef $ac_func |
72b2cb61 | 10940 | |
d0191583 JM |
10941 | /* Override any GCC internal prototype to avoid an error. |
10942 | Use char because int might match the return type of a GCC | |
10943 | builtin and then its argument prototype would still apply. */ | |
10944 | #ifdef __cplusplus | |
10945 | extern "C" | |
10946 | #endif | |
10947 | char $ac_func (); | |
10948 | /* The GNU C library defines this for functions which it implements | |
10949 | to always fail with ENOSYS. Some functions are actually named | |
10950 | something starting with __ and the normal name is an alias. */ | |
10951 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10952 | choke me | |
10953 | #endif | |
10954 | ||
10955 | int | |
10956 | main () | |
10957 | { | |
10958 | return $ac_func (); | |
10959 | ; | |
10960 | return 0; | |
10961 | } | |
72b2cb61 | 10962 | _ACEOF |
d0191583 JM |
10963 | rm -f conftest.$ac_objext conftest$ac_exeext |
10964 | if { (ac_try="$ac_link" | |
10965 | case "(($ac_try" in | |
10966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10967 | *) ac_try_echo=$ac_try;; | |
10968 | esac | |
ec6a6fbe AK |
10969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10970 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10971 | (eval "$ac_link") 2>conftest.er1 |
10972 | ac_status=$? | |
10973 | grep -v '^ *+' conftest.er1 >conftest.err | |
10974 | rm -f conftest.er1 | |
10975 | cat conftest.err >&5 | |
ec6a6fbe | 10976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10977 | (exit $ac_status); } && { |
10978 | test -z "$ac_c_werror_flag" || | |
10979 | test ! -s conftest.err | |
ec6a6fbe AK |
10980 | } && test -s conftest$ac_exeext && { |
10981 | test "$cross_compiling" = yes || | |
10982 | $as_test_x conftest$ac_exeext | |
10983 | }; then | |
d0191583 JM |
10984 | eval "$as_ac_var=yes" |
10985 | else | |
ec6a6fbe | 10986 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10987 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10988 | |
d0191583 | 10989 | eval "$as_ac_var=no" |
ad6254c5 AK |
10990 | fi |
10991 | ||
ec6a6fbe | 10992 | rm -rf conftest.dSYM |
d0191583 JM |
10993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10994 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 10995 | fi |
ec6a6fbe AK |
10996 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10997 | $as_echo "$as_val"'` | |
10998 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10999 | $as_echo "$ac_res" >&6; } | |
11000 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11001 | $as_echo "$as_val"'` | |
11002 | if test "x$as_val" = x""yes; then | |
d0191583 | 11003 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11004 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 11005 | _ACEOF |
7a197a62 | 11006 | |
ec6a6fbe AK |
11007 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
11008 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 11009 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 11010 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11011 | else |
d0191583 JM |
11012 | cat >conftest.$ac_ext <<_ACEOF |
11013 | /* confdefs.h. */ | |
11014 | _ACEOF | |
11015 | cat confdefs.h >>conftest.$ac_ext | |
11016 | cat >>conftest.$ac_ext <<_ACEOF | |
11017 | /* end confdefs.h. */ | |
11018 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
11019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11020 | #define _doprnt innocuous__doprnt | |
7a197a62 | 11021 | |
d0191583 JM |
11022 | /* System header to define __stub macros and hopefully few prototypes, |
11023 | which can conflict with char _doprnt (); below. | |
11024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11025 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 11026 | |
d0191583 JM |
11027 | #ifdef __STDC__ |
11028 | # include <limits.h> | |
11029 | #else | |
11030 | # include <assert.h> | |
11031 | #endif | |
72b2cb61 | 11032 | |
d0191583 JM |
11033 | #undef _doprnt |
11034 | ||
11035 | /* Override any GCC internal prototype to avoid an error. | |
11036 | Use char because int might match the return type of a GCC | |
11037 | builtin and then its argument prototype would still apply. */ | |
11038 | #ifdef __cplusplus | |
11039 | extern "C" | |
11040 | #endif | |
11041 | char _doprnt (); | |
11042 | /* The GNU C library defines this for functions which it implements | |
11043 | to always fail with ENOSYS. Some functions are actually named | |
11044 | something starting with __ and the normal name is an alias. */ | |
11045 | #if defined __stub__doprnt || defined __stub____doprnt | |
11046 | choke me | |
11047 | #endif | |
11048 | ||
11049 | int | |
11050 | main () | |
11051 | { | |
11052 | return _doprnt (); | |
11053 | ; | |
11054 | return 0; | |
11055 | } | |
72b2cb61 | 11056 | _ACEOF |
d0191583 JM |
11057 | rm -f conftest.$ac_objext conftest$ac_exeext |
11058 | if { (ac_try="$ac_link" | |
11059 | case "(($ac_try" in | |
11060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11061 | *) ac_try_echo=$ac_try;; | |
11062 | esac | |
ec6a6fbe AK |
11063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11064 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
11065 | (eval "$ac_link") 2>conftest.er1 |
11066 | ac_status=$? | |
11067 | grep -v '^ *+' conftest.er1 >conftest.err | |
11068 | rm -f conftest.er1 | |
11069 | cat conftest.err >&5 | |
ec6a6fbe | 11070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
11071 | (exit $ac_status); } && { |
11072 | test -z "$ac_c_werror_flag" || | |
11073 | test ! -s conftest.err | |
ec6a6fbe AK |
11074 | } && test -s conftest$ac_exeext && { |
11075 | test "$cross_compiling" = yes || | |
11076 | $as_test_x conftest$ac_exeext | |
11077 | }; then | |
d0191583 JM |
11078 | ac_cv_func__doprnt=yes |
11079 | else | |
ec6a6fbe | 11080 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11081 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11082 | |
d0191583 | 11083 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11084 | fi |
11085 | ||
ec6a6fbe | 11086 | rm -rf conftest.dSYM |
d0191583 JM |
11087 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11088 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11089 | fi |
ec6a6fbe AK |
11090 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11091 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11092 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11093 | |
d0191583 JM |
11094 | cat >>confdefs.h <<\_ACEOF |
11095 | #define HAVE_DOPRNT 1 | |
11096 | _ACEOF | |
ad6254c5 | 11097 | |
7a197a62 AK |
11098 | fi |
11099 | ||
d0191583 JM |
11100 | fi |
11101 | done | |
8b1a3214 | 11102 | |
ad6254c5 | 11103 | |
7a197a62 | 11104 | |
9c961554 | 11105 | ################################################################################ |
ec6a6fbe AK |
11106 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11107 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11108 | # Check whether --enable-static_link was given. |
11109 | if test "${enable_static_link+set}" = set; then | |
11110 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11111 | else | |
11112 | STATIC_LINK=no | |
11113 | fi | |
11114 | ||
ec6a6fbe AK |
11115 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11116 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11117 | |
d0191583 | 11118 | ################################################################################ |
ad6254c5 | 11119 | |
ad6254c5 AK |
11120 | |
11121 | ################################################################################ | |
ec6a6fbe AK |
11122 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11123 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11124 | |
11125 | # Check whether --with-user was given. | |
11126 | if test "${with_user+set}" = set; then | |
71082be4 | 11127 | withval=$with_user; OWNER=$withval |
7a197a62 AK |
11128 | fi |
11129 | ||
ec6a6fbe AK |
11130 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11131 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11132 | |
d0191583 | 11133 | if test x$OWNER != x; then |
23b059e7 | 11134 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11135 | fi |
11136 | ||
11137 | ################################################################################ | |
ec6a6fbe AK |
11138 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11139 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11140 | |
d0191583 JM |
11141 | # Check whether --with-group was given. |
11142 | if test "${with_group+set}" = set; then | |
71082be4 | 11143 | withval=$with_group; GROUP=$withval |
7a197a62 AK |
11144 | fi |
11145 | ||
ec6a6fbe AK |
11146 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11147 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11148 | |
11149 | if test x$GROUP != x; then | |
23b059e7 | 11150 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11151 | fi |
ad6254c5 | 11152 | |
24bbc4d7 | 11153 | ################################################################################ |
ec6a6fbe AK |
11154 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11155 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11156 | |
11157 | ||
11158 | # Check whether --with-device-uid was given. | |
11159 | if test "${with_device_uid+set}" = set; then | |
71082be4 | 11160 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
24bbc4d7 | 11161 | else |
71082be4 | 11162 | DM_DEVICE_UID=0 |
24bbc4d7 AK |
11163 | fi |
11164 | ||
ec6a6fbe AK |
11165 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11166 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11167 | |
11168 | ################################################################################ | |
ec6a6fbe AK |
11169 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11170 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11171 | |
11172 | ||
11173 | # Check whether --with-device-gid was given. | |
11174 | if test "${with_device_gid+set}" = set; then | |
71082be4 | 11175 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
24bbc4d7 | 11176 | else |
71082be4 | 11177 | DM_DEVICE_GID=0 |
24bbc4d7 AK |
11178 | fi |
11179 | ||
ec6a6fbe AK |
11180 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11181 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11182 | |
93bd259b | 11183 | ################################################################################ |
ec6a6fbe AK |
11184 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11185 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11186 | |
11187 | ||
11188 | # Check whether --with-device-mode was given. | |
11189 | if test "${with_device_mode+set}" = set; then | |
71082be4 | 11190 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
93bd259b | 11191 | else |
71082be4 | 11192 | DM_DEVICE_MODE=0600 |
93bd259b AK |
11193 | fi |
11194 | ||
ec6a6fbe AK |
11195 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11196 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11197 | |
ad6254c5 | 11198 | ################################################################################ |
ec6a6fbe AK |
11199 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11200 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11201 | # Check whether --enable-lvm1_fallback was given. |
11202 | if test "${enable_lvm1_fallback+set}" = set; then | |
11203 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11204 | else | |
11205 | LVM1_FALLBACK=no | |
7a197a62 AK |
11206 | fi |
11207 | ||
ec6a6fbe AK |
11208 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11209 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11210 | |
d0191583 | 11211 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11212 | |
11213 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11214 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11215 | _ACEOF |
11216 | ||
ad6254c5 AK |
11217 | fi |
11218 | ||
11219 | ################################################################################ | |
ec6a6fbe AK |
11220 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11221 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11222 | |
11223 | # Check whether --with-lvm1 was given. | |
11224 | if test "${with_lvm1+set}" = set; then | |
71082be4 | 11225 | withval=$with_lvm1; LVM1=$withval |
d0191583 | 11226 | else |
71082be4 | 11227 | LVM1=internal |
7a197a62 AK |
11228 | fi |
11229 | ||
ec6a6fbe AK |
11230 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11231 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11232 | |
d0191583 | 11233 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11234 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11235 | " >&5 |
ec6a6fbe | 11236 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11237 | " >&2;} |
11238 | { (exit 1); exit 1; }; } | |
11239 | fi; | |
11240 | ||
11241 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11242 | |
11243 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11244 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11245 | _ACEOF |
11246 | ||
ad6254c5 AK |
11247 | fi |
11248 | ||
11249 | ################################################################################ | |
ec6a6fbe AK |
11250 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11251 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11252 | |
11253 | # Check whether --with-pool was given. | |
11254 | if test "${with_pool+set}" = set; then | |
71082be4 | 11255 | withval=$with_pool; POOL=$withval |
ad6254c5 | 11256 | else |
71082be4 | 11257 | POOL=internal |
7a197a62 AK |
11258 | fi |
11259 | ||
ec6a6fbe AK |
11260 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11261 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11262 | |
d0191583 | 11263 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11264 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11265 | " >&5 |
ec6a6fbe | 11266 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11267 | " >&2;} |
11268 | { (exit 1); exit 1; }; } | |
11269 | fi; | |
7a197a62 | 11270 | |
d0191583 JM |
11271 | if test x$POOL = xinternal; then |
11272 | ||
11273 | cat >>confdefs.h <<\_ACEOF | |
11274 | #define POOL_INTERNAL 1 | |
11275 | _ACEOF | |
11276 | ||
11277 | fi | |
ad6254c5 | 11278 | |
06f62ad1 | 11279 | ################################################################################ |
ec6a6fbe AK |
11280 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11281 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11282 | |
11283 | # Check whether --with-cluster was given. | |
11284 | if test "${with_cluster+set}" = set; then | |
71082be4 | 11285 | withval=$with_cluster; CLUSTER=$withval |
7a197a62 AK |
11286 | fi |
11287 | ||
ec6a6fbe AK |
11288 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11289 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11290 | |
d0191583 | 11291 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11292 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11293 | " >&5 |
ec6a6fbe | 11294 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11295 | " >&2;} |
11296 | { (exit 1); exit 1; }; } | |
d0191583 | 11297 | fi; |
06f62ad1 | 11298 | |
d0191583 | 11299 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11300 | |
11301 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11302 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11303 | _ACEOF |
11304 | ||
15d91f5a | 11305 | fi |
ad6254c5 AK |
11306 | |
11307 | ################################################################################ | |
ec6a6fbe AK |
11308 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11309 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11310 | |
d0191583 JM |
11311 | # Check whether --with-snapshots was given. |
11312 | if test "${with_snapshots+set}" = set; then | |
71082be4 | 11313 | withval=$with_snapshots; SNAPSHOTS=$withval |
d0191583 | 11314 | else |
71082be4 | 11315 | SNAPSHOTS=internal |
ad6254c5 AK |
11316 | fi |
11317 | ||
ec6a6fbe AK |
11318 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11319 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11320 | |
d0191583 | 11321 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11322 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11323 | " >&5 |
ec6a6fbe | 11324 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11325 | " >&2;} |
11326 | { (exit 1); exit 1; }; } | |
11327 | fi; | |
11328 | ||
11329 | if test x$SNAPSHOTS = xinternal; then | |
11330 | ||
11331 | cat >>confdefs.h <<\_ACEOF | |
11332 | #define SNAPSHOT_INTERNAL 1 | |
11333 | _ACEOF | |
ad6254c5 | 11334 | |
ad6254c5 | 11335 | fi |
7a197a62 | 11336 | |
d0191583 | 11337 | ################################################################################ |
ec6a6fbe AK |
11338 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11339 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11340 | |
11341 | # Check whether --with-mirrors was given. | |
11342 | if test "${with_mirrors+set}" = set; then | |
71082be4 | 11343 | withval=$with_mirrors; MIRRORS=$withval |
d0191583 | 11344 | else |
71082be4 | 11345 | MIRRORS=internal |
ad6254c5 | 11346 | fi |
ad6254c5 | 11347 | |
ec6a6fbe AK |
11348 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11349 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11350 | |
d0191583 | 11351 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11352 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11353 | " >&5 |
ec6a6fbe | 11354 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11355 | " >&2;} |
11356 | { (exit 1); exit 1; }; } | |
11357 | fi; | |
ad6254c5 | 11358 | |
d0191583 | 11359 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11360 | |
d0191583 JM |
11361 | cat >>confdefs.h <<\_ACEOF |
11362 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11363 | _ACEOF |
8a2fc586 | 11364 | |
d0191583 | 11365 | fi |
8a2fc586 | 11366 | |
8fea97b7 ZK |
11367 | ################################################################################ |
11368 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11369 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11370 | ||
11371 | # Check whether --with-replicators was given. | |
11372 | if test "${with_replicators+set}" = set; then | |
11373 | withval=$with_replicators; REPLICATORS=$withval | |
11374 | else | |
71082be4 | 11375 | REPLICATORS=none |
8fea97b7 ZK |
11376 | fi |
11377 | ||
11378 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11379 | $as_echo "$REPLICATORS" >&6; } | |
11380 | ||
11381 | case "$REPLICATORS" in | |
11382 | none|shared) ;; | |
11383 | internal) | |
11384 | cat >>confdefs.h <<\_ACEOF | |
11385 | #define REPLICATOR_INTERNAL 1 | |
11386 | _ACEOF | |
11387 | ;; | |
11388 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11389 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11390 | { (exit 1); exit 1; }; } ;; | |
11391 | esac | |
11392 | ||
d0191583 | 11393 | ################################################################################ |
ec6a6fbe AK |
11394 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11395 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11396 | # Check whether --enable-readline was given. |
11397 | if test "${enable_readline+set}" = set; then | |
11398 | enableval=$enable_readline; READLINE=$enableval | |
11399 | else | |
06e459df | 11400 | READLINE=maybe |
d0191583 | 11401 | fi |
8a2fc586 | 11402 | |
ec6a6fbe AK |
11403 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11404 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11405 | |
d0191583 | 11406 | ################################################################################ |
ec6a6fbe AK |
11407 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11408 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11409 | # Check whether --enable-realtime was given. |
11410 | if test "${enable_realtime+set}" = set; then | |
11411 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11412 | fi |
ad6254c5 | 11413 | |
ec6a6fbe AK |
11414 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11415 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
11416 | |
11417 | ################################################################################ | |
90c80887 | 11418 | pkg_config_init() { |
e2997b73 AK |
11419 | |
11420 | ||
11421 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11422 | if test -n "$ac_tool_prefix"; then | |
11423 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11424 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11425 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11426 | $as_echo_n "checking for $ac_word... " >&6; } | |
11427 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11428 | $as_echo_n "(cached) " >&6 | |
11429 | else | |
11430 | case $PKG_CONFIG in | |
11431 | [\\/]* | ?:[\\/]*) | |
11432 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11433 | ;; | |
11434 | *) | |
11435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11436 | for as_dir in $PATH | |
11437 | do | |
11438 | IFS=$as_save_IFS | |
11439 | test -z "$as_dir" && as_dir=. | |
11440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11442 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11443 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11444 | break 2 | |
11445 | fi | |
11446 | done | |
11447 | done | |
11448 | IFS=$as_save_IFS | |
11449 | ||
11450 | ;; | |
11451 | esac | |
11452 | fi | |
11453 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11454 | if test -n "$PKG_CONFIG"; then | |
11455 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11456 | $as_echo "$PKG_CONFIG" >&6; } | |
11457 | else | |
11458 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11459 | $as_echo "no" >&6; } | |
11460 | fi | |
11461 | ||
11462 | ||
11463 | fi | |
11464 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11465 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11466 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11467 | set dummy pkg-config; ac_word=$2 | |
11468 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11469 | $as_echo_n "checking for $ac_word... " >&6; } | |
11470 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11471 | $as_echo_n "(cached) " >&6 | |
11472 | else | |
11473 | case $ac_pt_PKG_CONFIG in | |
11474 | [\\/]* | ?:[\\/]*) | |
11475 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11476 | ;; | |
11477 | *) | |
11478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11479 | for as_dir in $PATH | |
11480 | do | |
11481 | IFS=$as_save_IFS | |
11482 | test -z "$as_dir" && as_dir=. | |
11483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11485 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11486 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11487 | break 2 | |
11488 | fi | |
11489 | done | |
11490 | done | |
11491 | IFS=$as_save_IFS | |
11492 | ||
11493 | ;; | |
11494 | esac | |
11495 | fi | |
11496 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11497 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11498 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11499 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11500 | else | |
11501 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11502 | $as_echo "no" >&6; } | |
11503 | fi | |
11504 | ||
11505 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11506 | PKG_CONFIG="" | |
11507 | else | |
11508 | case $cross_compiling:$ac_tool_warned in | |
11509 | yes:) | |
11510 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11512 | ac_tool_warned=yes ;; | |
11513 | esac | |
11514 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11515 | fi | |
11516 | else | |
11517 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11518 | fi | |
11519 | ||
11520 | fi | |
11521 | if test -n "$PKG_CONFIG"; then | |
11522 | _pkg_min_version=0.9.0 | |
11523 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11524 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11525 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11526 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11527 | $as_echo "yes" >&6; } | |
11528 | else | |
11529 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11530 | $as_echo "no" >&6; } | |
11531 | PKG_CONFIG="" | |
11532 | fi | |
8c4e8a18 | 11533 | |
e2997b73 AK |
11534 | fi |
11535 | ||
11536 | pkg_failed=no | |
a946372e AK |
11537 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11538 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11539 | |
a946372e AK |
11540 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11541 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11542 | elif test -n "$PKG_CONFIG"; then |
11543 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11544 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11545 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11546 | ac_status=$? |
11547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11548 | (exit $ac_status); }; then | |
a946372e | 11549 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11550 | else |
11551 | pkg_failed=yes | |
11552 | fi | |
11553 | else | |
11554 | pkg_failed=untried | |
11555 | fi | |
a946372e AK |
11556 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11557 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11558 | elif test -n "$PKG_CONFIG"; then |
11559 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11560 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11561 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11562 | ac_status=$? |
11563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11564 | (exit $ac_status); }; then | |
a946372e | 11565 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11566 | else |
11567 | pkg_failed=yes | |
11568 | fi | |
11569 | else | |
11570 | pkg_failed=untried | |
11571 | fi | |
11572 | ||
11573 | ||
11574 | ||
11575 | if test $pkg_failed = yes; then | |
11576 | ||
11577 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11578 | _pkg_short_errors_supported=yes | |
11579 | else | |
11580 | _pkg_short_errors_supported=no | |
11581 | fi | |
11582 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11583 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11584 | else |
a946372e | 11585 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11586 | fi |
11587 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11588 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11589 | |
8c4e8a18 FDN |
11590 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11591 | $as_echo "no" >&6; } | |
11592 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 | |
a946372e | 11593 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11594 | elif test $pkg_failed = untried; then |
a946372e AK |
11595 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11596 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11597 | else |
a946372e AK |
11598 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11599 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11600 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11601 | $as_echo "yes" >&6; } | |
8c4e8a18 | 11602 | : |
e2997b73 | 11603 | fi |
90c80887 AK |
11604 | PKGCONFIG_INIT=1 |
11605 | } | |
11606 | ||
11607 | ################################################################################ | |
11608 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11609 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11610 | ||
11611 | # Check whether --with-clvmd was given. | |
11612 | if test "${with_clvmd+set}" = set; then | |
71082be4 | 11613 | withval=$with_clvmd; CLVMD=$withval |
90c80887 | 11614 | else |
71082be4 | 11615 | CLVMD=none |
90c80887 AK |
11616 | fi |
11617 | ||
11618 | if test x$CLVMD = xyes; then | |
11619 | CLVMD=all | |
11620 | fi | |
11621 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11622 | $as_echo "$CLVMD" >&6; } | |
11623 | ||
11624 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11625 | CLUSTER=internal | |
11626 | fi | |
11627 | ||
11628 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
11629 | pkg_config_init | |
11630 | fi | |
11631 | ||
11632 | ||
11633 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11634 | BUILDGULM=yes | |
11635 | fi | |
11636 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11637 | BUILDCOROSYNC=yes | |
11638 | fi | |
11639 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11640 | BUILDOPENAIS=yes | |
11641 | fi | |
11642 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11643 | BUILDCMAN=yes | |
11644 | fi | |
11645 | ||
11646 | if test x$BUILDGULM = xyes; then | |
11647 | if test x$BUILDCOROSYNC = xyes || \ | |
11648 | test x$BUILDOPENAIS = xyes; then | |
11649 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11650 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11651 | { (exit 1); exit 1; }; } | |
11652 | fi | |
a946372e | 11653 | fi |
e2997b73 | 11654 | |
a946372e AK |
11655 | soft_bailout() { |
11656 | NOTFOUND=1 | |
11657 | } | |
e2997b73 | 11658 | |
a946372e AK |
11659 | hard_bailout() { |
11660 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11661 | $as_echo "$as_me: error: bailing out" >&2;} | |
11662 | { (exit 1); exit 1; }; } | |
11663 | } | |
11664 | ||
11665 | if test x$CLVMD = xall; then | |
11666 | bailout=soft_bailout | |
11667 | BUILDGULM=yes | |
11668 | BUILDCMAN=yes | |
11669 | BUILDCOROSYNC=yes | |
11670 | BUILDOPENAIS=yes | |
e2997b73 | 11671 | else |
a946372e | 11672 | bailout=hard_bailout |
e2997b73 | 11673 | fi |
a946372e AK |
11674 | |
11675 | check_lib_no_libs() { | |
11676 | lib_no_libs_arg1=$1 | |
11677 | shift | |
11678 | lib_no_libs_arg2=$1 | |
11679 | shift | |
11680 | lib_no_libs_args=$@ | |
11681 | ||
11682 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11683 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11684 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11685 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11686 | $as_echo_n "(cached) " >&6 | |
11687 | else | |
11688 | ac_check_lib_save_LIBS=$LIBS | |
11689 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11690 | cat >conftest.$ac_ext <<_ACEOF | |
11691 | /* confdefs.h. */ | |
11692 | _ACEOF | |
11693 | cat confdefs.h >>conftest.$ac_ext | |
11694 | cat >>conftest.$ac_ext <<_ACEOF | |
11695 | /* end confdefs.h. */ | |
11696 | ||
11697 | /* Override any GCC internal prototype to avoid an error. | |
11698 | Use char because int might match the return type of a GCC | |
11699 | builtin and then its argument prototype would still apply. */ | |
11700 | #ifdef __cplusplus | |
11701 | extern "C" | |
11702 | #endif | |
11703 | char $lib_no_libs_arg2 (); | |
11704 | int | |
11705 | main () | |
11706 | { | |
11707 | return $lib_no_libs_arg2 (); | |
11708 | ; | |
11709 | return 0; | |
11710 | } | |
11711 | _ACEOF | |
11712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11713 | if { (ac_try="$ac_link" | |
11714 | case "(($ac_try" in | |
11715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11716 | *) ac_try_echo=$ac_try;; | |
11717 | esac | |
11718 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11719 | $as_echo "$ac_try_echo") >&5 | |
11720 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11721 | ac_status=$? |
a946372e AK |
11722 | grep -v '^ *+' conftest.er1 >conftest.err |
11723 | rm -f conftest.er1 | |
11724 | cat conftest.err >&5 | |
e2997b73 | 11725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11726 | (exit $ac_status); } && { |
11727 | test -z "$ac_c_werror_flag" || | |
11728 | test ! -s conftest.err | |
11729 | } && test -s conftest$ac_exeext && { | |
11730 | test "$cross_compiling" = yes || | |
11731 | $as_test_x conftest$ac_exeext | |
11732 | }; then | |
11733 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11734 | else |
a946372e AK |
11735 | $as_echo "$as_me: failed program was:" >&5 |
11736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11737 | |
a946372e AK |
11738 | eval "$as_ac_Lib=no" |
11739 | fi | |
e2997b73 | 11740 | |
a946372e AK |
11741 | rm -rf conftest.dSYM |
11742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11743 | conftest$ac_exeext conftest.$ac_ext | |
11744 | LIBS=$ac_check_lib_save_LIBS | |
11745 | fi | |
11746 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11747 | $as_echo "$as_val"'` | |
11748 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11749 | $as_echo "$ac_res" >&6; } | |
11750 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11751 | $as_echo "$as_val"'` | |
11752 | if test "x$as_val" = x""yes; then | |
11753 | cat >>confdefs.h <<_ACEOF | |
11754 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11755 | _ACEOF | |
e2997b73 | 11756 | |
a946372e | 11757 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11758 | |
e2997b73 | 11759 | else |
a946372e | 11760 | $bailout |
e2997b73 | 11761 | fi |
e2997b73 | 11762 | |
a946372e AK |
11763 | LIBS=$ac_check_lib_save_LIBS |
11764 | } | |
11765 | ||
11766 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11767 | |
11768 | pkg_failed=no | |
a946372e AK |
11769 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11770 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11771 | |
a946372e AK |
11772 | if test -n "$CCS_CFLAGS"; then |
11773 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11774 | elif test -n "$PKG_CONFIG"; then |
11775 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11776 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11777 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11778 | ac_status=$? |
11779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11780 | (exit $ac_status); }; then | |
a946372e | 11781 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11782 | else |
11783 | pkg_failed=yes | |
11784 | fi | |
11785 | else | |
11786 | pkg_failed=untried | |
11787 | fi | |
a946372e AK |
11788 | if test -n "$CCS_LIBS"; then |
11789 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11790 | elif test -n "$PKG_CONFIG"; then |
11791 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11792 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11793 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11794 | ac_status=$? |
11795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11796 | (exit $ac_status); }; then | |
a946372e | 11797 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11798 | else |
11799 | pkg_failed=yes | |
11800 | fi | |
11801 | else | |
11802 | pkg_failed=untried | |
11803 | fi | |
11804 | ||
11805 | ||
11806 | ||
11807 | if test $pkg_failed = yes; then | |
11808 | ||
11809 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11810 | _pkg_short_errors_supported=yes | |
11811 | else | |
11812 | _pkg_short_errors_supported=no | |
11813 | fi | |
11814 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11815 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11816 | else |
a946372e | 11817 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11818 | fi |
11819 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11820 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11821 | |
8c4e8a18 FDN |
11822 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11823 | $as_echo "no" >&6; } | |
11824 | NOTFOUND=0 | |
e2997b73 | 11825 | |
a946372e AK |
11826 | for ac_header in ccs.h |
11827 | do | |
11828 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11829 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11830 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11831 | $as_echo_n "checking for $ac_header... " >&6; } | |
11832 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11833 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11834 | fi |
a946372e AK |
11835 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11836 | $as_echo "$as_val"'` | |
11837 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11838 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11839 | else |
a946372e AK |
11840 | # Is the header compilable? |
11841 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11842 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11843 | cat >conftest.$ac_ext <<_ACEOF | |
11844 | /* confdefs.h. */ | |
11845 | _ACEOF | |
11846 | cat confdefs.h >>conftest.$ac_ext | |
11847 | cat >>conftest.$ac_ext <<_ACEOF | |
11848 | /* end confdefs.h. */ | |
11849 | $ac_includes_default | |
11850 | #include <$ac_header> | |
11851 | _ACEOF | |
11852 | rm -f conftest.$ac_objext | |
11853 | if { (ac_try="$ac_compile" | |
11854 | case "(($ac_try" in | |
11855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11856 | *) ac_try_echo=$ac_try;; | |
11857 | esac | |
11858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11859 | $as_echo "$ac_try_echo") >&5 | |
11860 | (eval "$ac_compile") 2>conftest.er1 | |
11861 | ac_status=$? | |
11862 | grep -v '^ *+' conftest.er1 >conftest.err | |
11863 | rm -f conftest.er1 | |
11864 | cat conftest.err >&5 | |
11865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11866 | (exit $ac_status); } && { | |
11867 | test -z "$ac_c_werror_flag" || | |
11868 | test ! -s conftest.err | |
11869 | } && test -s conftest.$ac_objext; then | |
11870 | ac_header_compiler=yes | |
11871 | else | |
11872 | $as_echo "$as_me: failed program was:" >&5 | |
11873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11874 | |
a946372e | 11875 | ac_header_compiler=no |
d0191583 JM |
11876 | fi |
11877 | ||
a946372e AK |
11878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11879 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11880 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11881 | |
a946372e AK |
11882 | # Is the header present? |
11883 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11884 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11885 | cat >conftest.$ac_ext <<_ACEOF | |
11886 | /* confdefs.h. */ | |
11887 | _ACEOF | |
11888 | cat confdefs.h >>conftest.$ac_ext | |
11889 | cat >>conftest.$ac_ext <<_ACEOF | |
11890 | /* end confdefs.h. */ | |
11891 | #include <$ac_header> | |
11892 | _ACEOF | |
11893 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11894 | case "(($ac_try" in | |
11895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11896 | *) ac_try_echo=$ac_try;; | |
11897 | esac | |
11898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11899 | $as_echo "$ac_try_echo") >&5 | |
11900 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11901 | ac_status=$? | |
11902 | grep -v '^ *+' conftest.er1 >conftest.err | |
11903 | rm -f conftest.er1 | |
11904 | cat conftest.err >&5 | |
11905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11906 | (exit $ac_status); } >/dev/null && { | |
11907 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11908 | test ! -s conftest.err | |
11909 | }; then | |
11910 | ac_header_preproc=yes | |
11911 | else | |
11912 | $as_echo "$as_me: failed program was:" >&5 | |
11913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11914 | ||
11915 | ac_header_preproc=no | |
11916 | fi | |
11917 | ||
11918 | rm -f conftest.err conftest.$ac_ext | |
11919 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11920 | $as_echo "$ac_header_preproc" >&6; } | |
11921 | ||
11922 | # So? What about this header? | |
11923 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11924 | yes:no: ) | |
11925 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11926 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11927 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11928 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11929 | ac_header_preproc=yes | |
11930 | ;; | |
11931 | no:yes:* ) | |
11932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11933 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11934 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11935 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11936 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11937 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11938 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11939 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11940 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11941 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11942 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11943 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11944 | ||
11945 | ;; | |
11946 | esac | |
11947 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11948 | $as_echo_n "checking for $ac_header... " >&6; } | |
11949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11950 | $as_echo_n "(cached) " >&6 | |
11951 | else | |
11952 | eval "$as_ac_Header=\$ac_header_preproc" | |
11953 | fi | |
11954 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11955 | $as_echo "$as_val"'` | |
11956 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11957 | $as_echo "$ac_res" >&6; } | |
11958 | ||
11959 | fi | |
11960 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11961 | $as_echo "$as_val"'` | |
11962 | if test "x$as_val" = x""yes; then | |
11963 | cat >>confdefs.h <<_ACEOF | |
11964 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11965 | _ACEOF | |
11966 | ||
11967 | else | |
11968 | $bailout | |
11969 | fi | |
11970 | ||
11971 | done | |
11972 | ||
11973 | check_lib_no_libs ccs ccs_connect | |
11974 | if test $NOTFOUND = 0; then | |
11975 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11976 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11977 | CCS_LIBS="-lccs" | |
11978 | HAVE_CCS=yes | |
11979 | fi | |
11980 | elif test $pkg_failed = untried; then | |
11981 | NOTFOUND=0 | |
11982 | ||
11983 | for ac_header in ccs.h | |
11984 | do | |
11985 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11986 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11987 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11988 | $as_echo_n "checking for $ac_header... " >&6; } | |
11989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11990 | $as_echo_n "(cached) " >&6 | |
11991 | fi | |
11992 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11993 | $as_echo "$as_val"'` | |
11994 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11995 | $as_echo "$ac_res" >&6; } | |
11996 | else | |
11997 | # Is the header compilable? | |
11998 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11999 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12000 | cat >conftest.$ac_ext <<_ACEOF | |
12001 | /* confdefs.h. */ | |
12002 | _ACEOF | |
12003 | cat confdefs.h >>conftest.$ac_ext | |
12004 | cat >>conftest.$ac_ext <<_ACEOF | |
12005 | /* end confdefs.h. */ | |
12006 | $ac_includes_default | |
12007 | #include <$ac_header> | |
12008 | _ACEOF | |
12009 | rm -f conftest.$ac_objext | |
12010 | if { (ac_try="$ac_compile" | |
12011 | case "(($ac_try" in | |
12012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12013 | *) ac_try_echo=$ac_try;; | |
12014 | esac | |
12015 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12016 | $as_echo "$ac_try_echo") >&5 | |
12017 | (eval "$ac_compile") 2>conftest.er1 | |
12018 | ac_status=$? | |
12019 | grep -v '^ *+' conftest.er1 >conftest.err | |
12020 | rm -f conftest.er1 | |
12021 | cat conftest.err >&5 | |
12022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12023 | (exit $ac_status); } && { | |
12024 | test -z "$ac_c_werror_flag" || | |
12025 | test ! -s conftest.err | |
12026 | } && test -s conftest.$ac_objext; then | |
12027 | ac_header_compiler=yes | |
12028 | else | |
12029 | $as_echo "$as_me: failed program was:" >&5 | |
12030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12031 | ||
12032 | ac_header_compiler=no | |
12033 | fi | |
12034 | ||
12035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12036 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12037 | $as_echo "$ac_header_compiler" >&6; } | |
12038 | ||
12039 | # Is the header present? | |
12040 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12041 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12042 | cat >conftest.$ac_ext <<_ACEOF | |
12043 | /* confdefs.h. */ | |
12044 | _ACEOF | |
12045 | cat confdefs.h >>conftest.$ac_ext | |
12046 | cat >>conftest.$ac_ext <<_ACEOF | |
12047 | /* end confdefs.h. */ | |
12048 | #include <$ac_header> | |
12049 | _ACEOF | |
12050 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12051 | case "(($ac_try" in | |
12052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12053 | *) ac_try_echo=$ac_try;; | |
12054 | esac | |
12055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12056 | $as_echo "$ac_try_echo") >&5 | |
12057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12058 | ac_status=$? | |
12059 | grep -v '^ *+' conftest.er1 >conftest.err | |
12060 | rm -f conftest.er1 | |
12061 | cat conftest.err >&5 | |
12062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12063 | (exit $ac_status); } >/dev/null && { | |
12064 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12065 | test ! -s conftest.err | |
12066 | }; then | |
12067 | ac_header_preproc=yes | |
12068 | else | |
12069 | $as_echo "$as_me: failed program was:" >&5 | |
12070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12071 | ||
12072 | ac_header_preproc=no | |
12073 | fi | |
12074 | ||
12075 | rm -f conftest.err conftest.$ac_ext | |
12076 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12077 | $as_echo "$ac_header_preproc" >&6; } | |
12078 | ||
12079 | # So? What about this header? | |
12080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12081 | yes:no: ) | |
12082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12083 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12085 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12086 | ac_header_preproc=yes | |
12087 | ;; | |
12088 | no:yes:* ) | |
12089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12090 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12092 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12094 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12096 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12098 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12100 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12101 | ||
12102 | ;; | |
12103 | esac | |
12104 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12105 | $as_echo_n "checking for $ac_header... " >&6; } | |
12106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12107 | $as_echo_n "(cached) " >&6 | |
12108 | else | |
12109 | eval "$as_ac_Header=\$ac_header_preproc" | |
12110 | fi | |
12111 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12112 | $as_echo "$as_val"'` | |
12113 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12114 | $as_echo "$ac_res" >&6; } | |
12115 | ||
12116 | fi | |
12117 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12118 | $as_echo "$as_val"'` | |
12119 | if test "x$as_val" = x""yes; then | |
12120 | cat >>confdefs.h <<_ACEOF | |
12121 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12122 | _ACEOF | |
12123 | ||
12124 | else | |
12125 | $bailout | |
12126 | fi | |
12127 | ||
12128 | done | |
12129 | ||
12130 | check_lib_no_libs ccs ccs_connect | |
12131 | if test $NOTFOUND = 0; then | |
12132 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12133 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12134 | CCS_LIBS="-lccs" | |
12135 | HAVE_CCS=yes | |
12136 | fi | |
12137 | else | |
12138 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12139 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12140 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12141 | $as_echo "yes" >&6; } | |
12142 | HAVE_CCS=yes | |
12143 | fi | |
12144 | ||
12145 | pkg_failed=no | |
12146 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12147 | $as_echo_n "checking for GULM... " >&6; } | |
12148 | ||
12149 | if test -n "$GULM_CFLAGS"; then | |
12150 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12151 | elif test -n "$PKG_CONFIG"; then | |
12152 | if test -n "$PKG_CONFIG" && \ | |
12153 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12154 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12155 | ac_status=$? | |
12156 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12157 | (exit $ac_status); }; then | |
12158 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12159 | else | |
12160 | pkg_failed=yes | |
12161 | fi | |
12162 | else | |
12163 | pkg_failed=untried | |
12164 | fi | |
12165 | if test -n "$GULM_LIBS"; then | |
12166 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12167 | elif test -n "$PKG_CONFIG"; then | |
12168 | if test -n "$PKG_CONFIG" && \ | |
12169 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12170 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12171 | ac_status=$? | |
12172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12173 | (exit $ac_status); }; then | |
12174 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12175 | else | |
12176 | pkg_failed=yes | |
12177 | fi | |
12178 | else | |
12179 | pkg_failed=untried | |
12180 | fi | |
12181 | ||
12182 | ||
12183 | ||
12184 | if test $pkg_failed = yes; then | |
12185 | ||
12186 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12187 | _pkg_short_errors_supported=yes | |
12188 | else | |
12189 | _pkg_short_errors_supported=no | |
12190 | fi | |
12191 | if test $_pkg_short_errors_supported = yes; then | |
12192 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12193 | else | |
12194 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12195 | fi | |
12196 | # Put the nasty error message in config.log where it belongs | |
12197 | echo "$GULM_PKG_ERRORS" >&5 | |
12198 | ||
8c4e8a18 FDN |
12199 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12200 | $as_echo "no" >&6; } | |
12201 | NOTFOUND=0 | |
a946372e AK |
12202 | |
12203 | for ac_header in libgulm.h | |
12204 | do | |
12205 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12206 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12207 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12208 | $as_echo_n "checking for $ac_header... " >&6; } | |
12209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12210 | $as_echo_n "(cached) " >&6 | |
12211 | fi | |
12212 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12213 | $as_echo "$as_val"'` | |
12214 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12215 | $as_echo "$ac_res" >&6; } | |
12216 | else | |
12217 | # Is the header compilable? | |
12218 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12219 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12220 | cat >conftest.$ac_ext <<_ACEOF | |
12221 | /* confdefs.h. */ | |
12222 | _ACEOF | |
12223 | cat confdefs.h >>conftest.$ac_ext | |
12224 | cat >>conftest.$ac_ext <<_ACEOF | |
12225 | /* end confdefs.h. */ | |
12226 | $ac_includes_default | |
12227 | #include <$ac_header> | |
12228 | _ACEOF | |
12229 | rm -f conftest.$ac_objext | |
12230 | if { (ac_try="$ac_compile" | |
12231 | case "(($ac_try" in | |
12232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12233 | *) ac_try_echo=$ac_try;; | |
12234 | esac | |
12235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12236 | $as_echo "$ac_try_echo") >&5 | |
12237 | (eval "$ac_compile") 2>conftest.er1 | |
12238 | ac_status=$? | |
12239 | grep -v '^ *+' conftest.er1 >conftest.err | |
12240 | rm -f conftest.er1 | |
12241 | cat conftest.err >&5 | |
12242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12243 | (exit $ac_status); } && { | |
12244 | test -z "$ac_c_werror_flag" || | |
12245 | test ! -s conftest.err | |
12246 | } && test -s conftest.$ac_objext; then | |
12247 | ac_header_compiler=yes | |
12248 | else | |
12249 | $as_echo "$as_me: failed program was:" >&5 | |
12250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12251 | ||
12252 | ac_header_compiler=no | |
12253 | fi | |
12254 | ||
12255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12256 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12257 | $as_echo "$ac_header_compiler" >&6; } | |
12258 | ||
12259 | # Is the header present? | |
12260 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12261 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12262 | cat >conftest.$ac_ext <<_ACEOF | |
12263 | /* confdefs.h. */ | |
12264 | _ACEOF | |
12265 | cat confdefs.h >>conftest.$ac_ext | |
12266 | cat >>conftest.$ac_ext <<_ACEOF | |
12267 | /* end confdefs.h. */ | |
12268 | #include <$ac_header> | |
12269 | _ACEOF | |
12270 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12271 | case "(($ac_try" in | |
12272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12273 | *) ac_try_echo=$ac_try;; | |
12274 | esac | |
12275 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12276 | $as_echo "$ac_try_echo") >&5 | |
12277 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12278 | ac_status=$? | |
12279 | grep -v '^ *+' conftest.er1 >conftest.err | |
12280 | rm -f conftest.er1 | |
12281 | cat conftest.err >&5 | |
12282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12283 | (exit $ac_status); } >/dev/null && { | |
12284 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12285 | test ! -s conftest.err | |
12286 | }; then | |
12287 | ac_header_preproc=yes | |
12288 | else | |
12289 | $as_echo "$as_me: failed program was:" >&5 | |
12290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12291 | ||
12292 | ac_header_preproc=no | |
12293 | fi | |
12294 | ||
12295 | rm -f conftest.err conftest.$ac_ext | |
12296 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12297 | $as_echo "$ac_header_preproc" >&6; } | |
12298 | ||
12299 | # So? What about this header? | |
12300 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12301 | yes:no: ) | |
12302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12303 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12305 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12306 | ac_header_preproc=yes | |
12307 | ;; | |
12308 | no:yes:* ) | |
12309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12310 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12312 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12314 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12315 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12316 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12317 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12318 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12319 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12320 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12321 | ||
12322 | ;; | |
12323 | esac | |
12324 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12325 | $as_echo_n "checking for $ac_header... " >&6; } | |
12326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12327 | $as_echo_n "(cached) " >&6 | |
12328 | else | |
12329 | eval "$as_ac_Header=\$ac_header_preproc" | |
12330 | fi | |
12331 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12332 | $as_echo "$as_val"'` | |
12333 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12334 | $as_echo "$ac_res" >&6; } | |
12335 | ||
12336 | fi | |
12337 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12338 | $as_echo "$as_val"'` | |
12339 | if test "x$as_val" = x""yes; then | |
12340 | cat >>confdefs.h <<_ACEOF | |
12341 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12342 | _ACEOF | |
12343 | ||
12344 | else | |
12345 | $bailout | |
12346 | fi | |
12347 | ||
12348 | done | |
12349 | ||
12350 | check_lib_no_libs gulm lg_core_login | |
12351 | if test $NOTFOUND = 0; then | |
12352 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12353 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12354 | GULM_LIBS="-lgulm" | |
12355 | HAVE_GULM=yes | |
12356 | fi | |
12357 | elif test $pkg_failed = untried; then | |
12358 | NOTFOUND=0 | |
12359 | ||
12360 | for ac_header in libgulm.h | |
12361 | do | |
12362 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12364 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12365 | $as_echo_n "checking for $ac_header... " >&6; } | |
12366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12367 | $as_echo_n "(cached) " >&6 | |
12368 | fi | |
12369 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12370 | $as_echo "$as_val"'` | |
12371 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12372 | $as_echo "$ac_res" >&6; } | |
12373 | else | |
12374 | # Is the header compilable? | |
12375 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12376 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12377 | cat >conftest.$ac_ext <<_ACEOF | |
12378 | /* confdefs.h. */ | |
12379 | _ACEOF | |
12380 | cat confdefs.h >>conftest.$ac_ext | |
12381 | cat >>conftest.$ac_ext <<_ACEOF | |
12382 | /* end confdefs.h. */ | |
12383 | $ac_includes_default | |
12384 | #include <$ac_header> | |
12385 | _ACEOF | |
12386 | rm -f conftest.$ac_objext | |
12387 | if { (ac_try="$ac_compile" | |
12388 | case "(($ac_try" in | |
12389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12390 | *) ac_try_echo=$ac_try;; | |
12391 | esac | |
12392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12393 | $as_echo "$ac_try_echo") >&5 | |
12394 | (eval "$ac_compile") 2>conftest.er1 | |
12395 | ac_status=$? | |
12396 | grep -v '^ *+' conftest.er1 >conftest.err | |
12397 | rm -f conftest.er1 | |
12398 | cat conftest.err >&5 | |
12399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12400 | (exit $ac_status); } && { | |
12401 | test -z "$ac_c_werror_flag" || | |
12402 | test ! -s conftest.err | |
12403 | } && test -s conftest.$ac_objext; then | |
12404 | ac_header_compiler=yes | |
12405 | else | |
12406 | $as_echo "$as_me: failed program was:" >&5 | |
12407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12408 | ||
12409 | ac_header_compiler=no | |
12410 | fi | |
12411 | ||
12412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12413 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12414 | $as_echo "$ac_header_compiler" >&6; } | |
12415 | ||
12416 | # Is the header present? | |
12417 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12418 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12419 | cat >conftest.$ac_ext <<_ACEOF | |
12420 | /* confdefs.h. */ | |
12421 | _ACEOF | |
12422 | cat confdefs.h >>conftest.$ac_ext | |
12423 | cat >>conftest.$ac_ext <<_ACEOF | |
12424 | /* end confdefs.h. */ | |
12425 | #include <$ac_header> | |
12426 | _ACEOF | |
12427 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12428 | case "(($ac_try" in | |
12429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12430 | *) ac_try_echo=$ac_try;; | |
12431 | esac | |
12432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12433 | $as_echo "$ac_try_echo") >&5 | |
12434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12435 | ac_status=$? | |
12436 | grep -v '^ *+' conftest.er1 >conftest.err | |
12437 | rm -f conftest.er1 | |
12438 | cat conftest.err >&5 | |
12439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12440 | (exit $ac_status); } >/dev/null && { | |
12441 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12442 | test ! -s conftest.err | |
12443 | }; then | |
12444 | ac_header_preproc=yes | |
12445 | else | |
12446 | $as_echo "$as_me: failed program was:" >&5 | |
12447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12448 | ||
12449 | ac_header_preproc=no | |
12450 | fi | |
12451 | ||
12452 | rm -f conftest.err conftest.$ac_ext | |
12453 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12454 | $as_echo "$ac_header_preproc" >&6; } | |
12455 | ||
12456 | # So? What about this header? | |
12457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12458 | yes:no: ) | |
12459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12460 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12462 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12463 | ac_header_preproc=yes | |
12464 | ;; | |
12465 | no:yes:* ) | |
12466 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12467 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12468 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12469 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12470 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12471 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12472 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12473 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12474 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12475 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12476 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12477 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12478 | ||
12479 | ;; | |
12480 | esac | |
12481 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12482 | $as_echo_n "checking for $ac_header... " >&6; } | |
12483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12484 | $as_echo_n "(cached) " >&6 | |
12485 | else | |
12486 | eval "$as_ac_Header=\$ac_header_preproc" | |
12487 | fi | |
12488 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12489 | $as_echo "$as_val"'` | |
12490 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12491 | $as_echo "$ac_res" >&6; } | |
12492 | ||
12493 | fi | |
12494 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12495 | $as_echo "$as_val"'` | |
12496 | if test "x$as_val" = x""yes; then | |
12497 | cat >>confdefs.h <<_ACEOF | |
12498 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12499 | _ACEOF | |
12500 | ||
12501 | else | |
12502 | $bailout | |
12503 | fi | |
12504 | ||
12505 | done | |
12506 | ||
12507 | check_lib_no_libs gulm lg_core_login | |
12508 | if test $NOTFOUND = 0; then | |
12509 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12510 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12511 | GULM_LIBS="-lgulm" | |
12512 | HAVE_GULM=yes | |
12513 | fi | |
12514 | else | |
12515 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12516 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12517 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12518 | $as_echo "yes" >&6; } | |
12519 | HAVE_GULM=yes | |
12520 | fi | |
12521 | fi | |
12522 | ||
12523 | if test x$BUILDCMAN = xyes; then | |
12524 | ||
12525 | pkg_failed=no | |
12526 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12527 | $as_echo_n "checking for CMAN... " >&6; } | |
12528 | ||
12529 | if test -n "$CMAN_CFLAGS"; then | |
12530 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12531 | elif test -n "$PKG_CONFIG"; then | |
12532 | if test -n "$PKG_CONFIG" && \ | |
12533 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12534 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12535 | ac_status=$? | |
12536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12537 | (exit $ac_status); }; then | |
12538 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12539 | else | |
12540 | pkg_failed=yes | |
12541 | fi | |
12542 | else | |
12543 | pkg_failed=untried | |
12544 | fi | |
12545 | if test -n "$CMAN_LIBS"; then | |
12546 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12547 | elif test -n "$PKG_CONFIG"; then | |
12548 | if test -n "$PKG_CONFIG" && \ | |
12549 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12550 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12551 | ac_status=$? | |
12552 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12553 | (exit $ac_status); }; then | |
12554 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12555 | else | |
12556 | pkg_failed=yes | |
12557 | fi | |
12558 | else | |
12559 | pkg_failed=untried | |
12560 | fi | |
12561 | ||
12562 | ||
12563 | ||
12564 | if test $pkg_failed = yes; then | |
12565 | ||
12566 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12567 | _pkg_short_errors_supported=yes | |
12568 | else | |
12569 | _pkg_short_errors_supported=no | |
12570 | fi | |
12571 | if test $_pkg_short_errors_supported = yes; then | |
12572 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12573 | else | |
12574 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12575 | fi | |
12576 | # Put the nasty error message in config.log where it belongs | |
12577 | echo "$CMAN_PKG_ERRORS" >&5 | |
12578 | ||
8c4e8a18 FDN |
12579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12580 | $as_echo "no" >&6; } | |
12581 | NOTFOUND=0 | |
a946372e AK |
12582 | |
12583 | for ac_header in libcman.h | |
12584 | do | |
12585 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12587 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12588 | $as_echo_n "checking for $ac_header... " >&6; } | |
12589 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12590 | $as_echo_n "(cached) " >&6 | |
12591 | fi | |
12592 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12593 | $as_echo "$as_val"'` | |
12594 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12595 | $as_echo "$ac_res" >&6; } | |
12596 | else | |
12597 | # Is the header compilable? | |
12598 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12599 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12600 | cat >conftest.$ac_ext <<_ACEOF | |
12601 | /* confdefs.h. */ | |
12602 | _ACEOF | |
12603 | cat confdefs.h >>conftest.$ac_ext | |
12604 | cat >>conftest.$ac_ext <<_ACEOF | |
12605 | /* end confdefs.h. */ | |
12606 | $ac_includes_default | |
12607 | #include <$ac_header> | |
12608 | _ACEOF | |
12609 | rm -f conftest.$ac_objext | |
12610 | if { (ac_try="$ac_compile" | |
12611 | case "(($ac_try" in | |
12612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12613 | *) ac_try_echo=$ac_try;; | |
12614 | esac | |
12615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12616 | $as_echo "$ac_try_echo") >&5 | |
12617 | (eval "$ac_compile") 2>conftest.er1 | |
12618 | ac_status=$? | |
12619 | grep -v '^ *+' conftest.er1 >conftest.err | |
12620 | rm -f conftest.er1 | |
12621 | cat conftest.err >&5 | |
12622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12623 | (exit $ac_status); } && { | |
12624 | test -z "$ac_c_werror_flag" || | |
12625 | test ! -s conftest.err | |
12626 | } && test -s conftest.$ac_objext; then | |
12627 | ac_header_compiler=yes | |
12628 | else | |
12629 | $as_echo "$as_me: failed program was:" >&5 | |
12630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12631 | ||
12632 | ac_header_compiler=no | |
12633 | fi | |
12634 | ||
12635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12636 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12637 | $as_echo "$ac_header_compiler" >&6; } | |
12638 | ||
12639 | # Is the header present? | |
12640 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12641 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12642 | cat >conftest.$ac_ext <<_ACEOF | |
12643 | /* confdefs.h. */ | |
12644 | _ACEOF | |
12645 | cat confdefs.h >>conftest.$ac_ext | |
12646 | cat >>conftest.$ac_ext <<_ACEOF | |
12647 | /* end confdefs.h. */ | |
12648 | #include <$ac_header> | |
12649 | _ACEOF | |
12650 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12651 | case "(($ac_try" in | |
12652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12653 | *) ac_try_echo=$ac_try;; | |
12654 | esac | |
12655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12656 | $as_echo "$ac_try_echo") >&5 | |
12657 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12658 | ac_status=$? | |
12659 | grep -v '^ *+' conftest.er1 >conftest.err | |
12660 | rm -f conftest.er1 | |
12661 | cat conftest.err >&5 | |
12662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12663 | (exit $ac_status); } >/dev/null && { | |
12664 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12665 | test ! -s conftest.err | |
12666 | }; then | |
12667 | ac_header_preproc=yes | |
12668 | else | |
12669 | $as_echo "$as_me: failed program was:" >&5 | |
12670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12671 | ||
12672 | ac_header_preproc=no | |
12673 | fi | |
12674 | ||
12675 | rm -f conftest.err conftest.$ac_ext | |
12676 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12677 | $as_echo "$ac_header_preproc" >&6; } | |
12678 | ||
12679 | # So? What about this header? | |
12680 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12681 | yes:no: ) | |
12682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12683 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12685 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12686 | ac_header_preproc=yes | |
12687 | ;; | |
12688 | no:yes:* ) | |
12689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12690 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12692 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12694 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12696 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12698 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12700 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12701 | ||
12702 | ;; | |
12703 | esac | |
12704 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12705 | $as_echo_n "checking for $ac_header... " >&6; } | |
12706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12707 | $as_echo_n "(cached) " >&6 | |
12708 | else | |
12709 | eval "$as_ac_Header=\$ac_header_preproc" | |
12710 | fi | |
12711 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12712 | $as_echo "$as_val"'` | |
12713 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12714 | $as_echo "$ac_res" >&6; } | |
12715 | ||
12716 | fi | |
12717 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12718 | $as_echo "$as_val"'` | |
12719 | if test "x$as_val" = x""yes; then | |
12720 | cat >>confdefs.h <<_ACEOF | |
12721 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12722 | _ACEOF | |
12723 | ||
12724 | else | |
12725 | $bailout | |
12726 | fi | |
12727 | ||
12728 | done | |
12729 | ||
12730 | check_lib_no_libs cman cman_init | |
12731 | if test $NOTFOUND = 0; then | |
12732 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12733 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12734 | CMAN_LIBS="-lcman" | |
12735 | HAVE_CMAN=yes | |
12736 | fi | |
12737 | elif test $pkg_failed = untried; then | |
12738 | NOTFOUND=0 | |
12739 | ||
12740 | for ac_header in libcman.h | |
12741 | do | |
12742 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12743 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12744 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12745 | $as_echo_n "checking for $ac_header... " >&6; } | |
12746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12747 | $as_echo_n "(cached) " >&6 | |
12748 | fi | |
12749 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12750 | $as_echo "$as_val"'` | |
12751 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12752 | $as_echo "$ac_res" >&6; } | |
12753 | else | |
12754 | # Is the header compilable? | |
12755 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12756 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12757 | cat >conftest.$ac_ext <<_ACEOF | |
12758 | /* confdefs.h. */ | |
12759 | _ACEOF | |
12760 | cat confdefs.h >>conftest.$ac_ext | |
12761 | cat >>conftest.$ac_ext <<_ACEOF | |
12762 | /* end confdefs.h. */ | |
12763 | $ac_includes_default | |
12764 | #include <$ac_header> | |
12765 | _ACEOF | |
12766 | rm -f conftest.$ac_objext | |
12767 | if { (ac_try="$ac_compile" | |
12768 | case "(($ac_try" in | |
12769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12770 | *) ac_try_echo=$ac_try;; | |
12771 | esac | |
12772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12773 | $as_echo "$ac_try_echo") >&5 | |
12774 | (eval "$ac_compile") 2>conftest.er1 | |
12775 | ac_status=$? | |
12776 | grep -v '^ *+' conftest.er1 >conftest.err | |
12777 | rm -f conftest.er1 | |
12778 | cat conftest.err >&5 | |
12779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12780 | (exit $ac_status); } && { | |
12781 | test -z "$ac_c_werror_flag" || | |
12782 | test ! -s conftest.err | |
12783 | } && test -s conftest.$ac_objext; then | |
12784 | ac_header_compiler=yes | |
12785 | else | |
12786 | $as_echo "$as_me: failed program was:" >&5 | |
12787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12788 | ||
12789 | ac_header_compiler=no | |
12790 | fi | |
12791 | ||
12792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12793 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12794 | $as_echo "$ac_header_compiler" >&6; } | |
12795 | ||
12796 | # Is the header present? | |
12797 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12798 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12799 | cat >conftest.$ac_ext <<_ACEOF | |
12800 | /* confdefs.h. */ | |
12801 | _ACEOF | |
12802 | cat confdefs.h >>conftest.$ac_ext | |
12803 | cat >>conftest.$ac_ext <<_ACEOF | |
12804 | /* end confdefs.h. */ | |
12805 | #include <$ac_header> | |
12806 | _ACEOF | |
12807 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12808 | case "(($ac_try" in | |
12809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12810 | *) ac_try_echo=$ac_try;; | |
12811 | esac | |
12812 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12813 | $as_echo "$ac_try_echo") >&5 | |
12814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12815 | ac_status=$? | |
12816 | grep -v '^ *+' conftest.er1 >conftest.err | |
12817 | rm -f conftest.er1 | |
12818 | cat conftest.err >&5 | |
12819 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12820 | (exit $ac_status); } >/dev/null && { | |
12821 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12822 | test ! -s conftest.err | |
12823 | }; then | |
12824 | ac_header_preproc=yes | |
12825 | else | |
12826 | $as_echo "$as_me: failed program was:" >&5 | |
12827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12828 | ||
12829 | ac_header_preproc=no | |
12830 | fi | |
12831 | ||
12832 | rm -f conftest.err conftest.$ac_ext | |
12833 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12834 | $as_echo "$ac_header_preproc" >&6; } | |
12835 | ||
12836 | # So? What about this header? | |
12837 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12838 | yes:no: ) | |
12839 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12840 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12841 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12842 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12843 | ac_header_preproc=yes | |
12844 | ;; | |
12845 | no:yes:* ) | |
12846 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12847 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12849 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12851 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12853 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12855 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12857 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12858 | ||
12859 | ;; | |
12860 | esac | |
12861 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12862 | $as_echo_n "checking for $ac_header... " >&6; } | |
12863 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12864 | $as_echo_n "(cached) " >&6 | |
12865 | else | |
12866 | eval "$as_ac_Header=\$ac_header_preproc" | |
12867 | fi | |
12868 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12869 | $as_echo "$as_val"'` | |
12870 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12871 | $as_echo "$ac_res" >&6; } | |
12872 | ||
12873 | fi | |
12874 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12875 | $as_echo "$as_val"'` | |
12876 | if test "x$as_val" = x""yes; then | |
12877 | cat >>confdefs.h <<_ACEOF | |
12878 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12879 | _ACEOF | |
12880 | ||
12881 | else | |
12882 | $bailout | |
12883 | fi | |
12884 | ||
12885 | done | |
12886 | ||
12887 | check_lib_no_libs cman cman_init | |
12888 | if test $NOTFOUND = 0; then | |
12889 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12890 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12891 | CMAN_LIBS="-lcman" | |
12892 | HAVE_CMAN=yes | |
12893 | fi | |
12894 | else | |
12895 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12896 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12897 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12898 | $as_echo "yes" >&6; } | |
12899 | HAVE_CMAN=yes | |
12900 | fi | |
12901 | CHECKCONFDB=yes | |
12902 | CHECKDLM=yes | |
12903 | fi | |
12904 | ||
12905 | if test x$BUILDCOROSYNC = xyes || \ | |
12906 | test x$BUILDOPENAIS = xyes; then | |
12907 | ||
12908 | pkg_failed=no | |
12909 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12910 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12911 | ||
12912 | if test -n "$COROSYNC_CFLAGS"; then | |
12913 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12914 | elif test -n "$PKG_CONFIG"; then | |
12915 | if test -n "$PKG_CONFIG" && \ | |
12916 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12917 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12918 | ac_status=$? | |
12919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12920 | (exit $ac_status); }; then | |
12921 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12922 | else | |
12923 | pkg_failed=yes | |
12924 | fi | |
12925 | else | |
12926 | pkg_failed=untried | |
12927 | fi | |
12928 | if test -n "$COROSYNC_LIBS"; then | |
12929 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12930 | elif test -n "$PKG_CONFIG"; then | |
12931 | if test -n "$PKG_CONFIG" && \ | |
12932 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12933 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12934 | ac_status=$? | |
12935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12936 | (exit $ac_status); }; then | |
12937 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12938 | else | |
12939 | pkg_failed=yes | |
12940 | fi | |
12941 | else | |
12942 | pkg_failed=untried | |
12943 | fi | |
12944 | ||
12945 | ||
12946 | ||
12947 | if test $pkg_failed = yes; then | |
12948 | ||
12949 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12950 | _pkg_short_errors_supported=yes | |
12951 | else | |
12952 | _pkg_short_errors_supported=no | |
12953 | fi | |
12954 | if test $_pkg_short_errors_supported = yes; then | |
12955 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12956 | else | |
12957 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12958 | fi | |
12959 | # Put the nasty error message in config.log where it belongs | |
12960 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12961 | ||
8c4e8a18 | 12962 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 12963 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
12964 | $bailout |
12965 | elif test $pkg_failed = untried; then | |
a946372e AK |
12966 | $bailout |
12967 | else | |
12968 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12969 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12970 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12971 | $as_echo "yes" >&6; } | |
12972 | HAVE_COROSYNC=yes | |
12973 | fi | |
12974 | CHECKCONFDB=yes | |
12975 | fi | |
12976 | ||
12977 | if test x$BUILDCOROSYNC = xyes; then | |
12978 | ||
12979 | pkg_failed=no | |
12980 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
12981 | $as_echo_n "checking for QUORUM... " >&6; } | |
12982 | ||
12983 | if test -n "$QUORUM_CFLAGS"; then | |
12984 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
12985 | elif test -n "$PKG_CONFIG"; then | |
12986 | if test -n "$PKG_CONFIG" && \ | |
12987 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12988 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12989 | ac_status=$? | |
12990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12991 | (exit $ac_status); }; then | |
12992 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
12993 | else | |
12994 | pkg_failed=yes | |
12995 | fi | |
12996 | else | |
12997 | pkg_failed=untried | |
12998 | fi | |
12999 | if test -n "$QUORUM_LIBS"; then | |
13000 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
13001 | elif test -n "$PKG_CONFIG"; then | |
13002 | if test -n "$PKG_CONFIG" && \ | |
13003 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
13004 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
13005 | ac_status=$? | |
13006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13007 | (exit $ac_status); }; then | |
13008 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
13009 | else | |
13010 | pkg_failed=yes | |
13011 | fi | |
13012 | else | |
13013 | pkg_failed=untried | |
13014 | fi | |
13015 | ||
13016 | ||
13017 | ||
13018 | if test $pkg_failed = yes; then | |
13019 | ||
13020 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13021 | _pkg_short_errors_supported=yes | |
13022 | else | |
13023 | _pkg_short_errors_supported=no | |
13024 | fi | |
13025 | if test $_pkg_short_errors_supported = yes; then | |
13026 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
13027 | else | |
13028 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
13029 | fi | |
13030 | # Put the nasty error message in config.log where it belongs | |
13031 | echo "$QUORUM_PKG_ERRORS" >&5 | |
13032 | ||
8c4e8a18 | 13033 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13034 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13035 | $bailout |
13036 | elif test $pkg_failed = untried; then | |
a946372e AK |
13037 | $bailout |
13038 | else | |
13039 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
13040 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
13041 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13042 | $as_echo "yes" >&6; } | |
13043 | HAVE_QUORUM=yes | |
13044 | fi | |
13045 | CHECKCPG=yes | |
13046 | CHECKDLM=yes | |
13047 | fi | |
13048 | ||
13049 | if test x$BUILDOPENAIS = xyes; then | |
13050 | ||
13051 | pkg_failed=no | |
13052 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
13053 | $as_echo_n "checking for SALCK... " >&6; } | |
13054 | ||
13055 | if test -n "$SALCK_CFLAGS"; then | |
13056 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13057 | elif test -n "$PKG_CONFIG"; then | |
13058 | if test -n "$PKG_CONFIG" && \ | |
13059 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13060 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13061 | ac_status=$? | |
13062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13063 | (exit $ac_status); }; then | |
13064 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13065 | else | |
13066 | pkg_failed=yes | |
13067 | fi | |
13068 | else | |
13069 | pkg_failed=untried | |
13070 | fi | |
13071 | if test -n "$SALCK_LIBS"; then | |
13072 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13073 | elif test -n "$PKG_CONFIG"; then | |
13074 | if test -n "$PKG_CONFIG" && \ | |
13075 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13076 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13077 | ac_status=$? | |
13078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13079 | (exit $ac_status); }; then | |
13080 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13081 | else | |
13082 | pkg_failed=yes | |
13083 | fi | |
13084 | else | |
13085 | pkg_failed=untried | |
13086 | fi | |
13087 | ||
13088 | ||
13089 | ||
13090 | if test $pkg_failed = yes; then | |
13091 | ||
13092 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13093 | _pkg_short_errors_supported=yes | |
13094 | else | |
13095 | _pkg_short_errors_supported=no | |
13096 | fi | |
13097 | if test $_pkg_short_errors_supported = yes; then | |
13098 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13099 | else | |
13100 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13101 | fi | |
13102 | # Put the nasty error message in config.log where it belongs | |
13103 | echo "$SALCK_PKG_ERRORS" >&5 | |
13104 | ||
8c4e8a18 | 13105 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13106 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13107 | $bailout |
13108 | elif test $pkg_failed = untried; then | |
a946372e AK |
13109 | $bailout |
13110 | else | |
13111 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13112 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13113 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13114 | $as_echo "yes" >&6; } | |
13115 | HAVE_SALCK=yes | |
13116 | fi | |
13117 | CHECKCPG=yes | |
13118 | fi | |
13119 | ||
13120 | ||
13121 | ||
13122 | if test x$CHECKCONFDB = xyes; then | |
13123 | ||
13124 | pkg_failed=no | |
13125 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13126 | $as_echo_n "checking for CONFDB... " >&6; } | |
13127 | ||
13128 | if test -n "$CONFDB_CFLAGS"; then | |
13129 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13130 | elif test -n "$PKG_CONFIG"; then | |
13131 | if test -n "$PKG_CONFIG" && \ | |
13132 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13133 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13134 | ac_status=$? | |
13135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13136 | (exit $ac_status); }; then | |
13137 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13138 | else | |
13139 | pkg_failed=yes | |
13140 | fi | |
13141 | else | |
13142 | pkg_failed=untried | |
13143 | fi | |
13144 | if test -n "$CONFDB_LIBS"; then | |
13145 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13146 | elif test -n "$PKG_CONFIG"; then | |
13147 | if test -n "$PKG_CONFIG" && \ | |
13148 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13149 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13150 | ac_status=$? | |
13151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13152 | (exit $ac_status); }; then | |
13153 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13154 | else | |
13155 | pkg_failed=yes | |
13156 | fi | |
13157 | else | |
13158 | pkg_failed=untried | |
13159 | fi | |
13160 | ||
13161 | ||
13162 | ||
13163 | if test $pkg_failed = yes; then | |
13164 | ||
13165 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13166 | _pkg_short_errors_supported=yes | |
13167 | else | |
13168 | _pkg_short_errors_supported=no | |
13169 | fi | |
13170 | if test $_pkg_short_errors_supported = yes; then | |
13171 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13172 | else | |
13173 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13174 | fi | |
13175 | # Put the nasty error message in config.log where it belongs | |
13176 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13177 | ||
8c4e8a18 | 13178 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13179 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13180 | HAVE_CONFDB=no |
13181 | elif test $pkg_failed = untried; then | |
a946372e AK |
13182 | HAVE_CONFDB=no |
13183 | else | |
13184 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13185 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13186 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13187 | $as_echo "yes" >&6; } | |
13188 | HAVE_CONFDB=yes | |
13189 | fi | |
13190 | ||
13191 | ||
13192 | for ac_header in corosync/confdb.h | |
13193 | do | |
13194 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13196 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13197 | $as_echo_n "checking for $ac_header... " >&6; } | |
13198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13199 | $as_echo_n "(cached) " >&6 | |
13200 | fi | |
13201 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13202 | $as_echo "$as_val"'` | |
13203 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13204 | $as_echo "$ac_res" >&6; } | |
13205 | else | |
13206 | # Is the header compilable? | |
13207 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13208 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13209 | cat >conftest.$ac_ext <<_ACEOF | |
13210 | /* confdefs.h. */ | |
13211 | _ACEOF | |
13212 | cat confdefs.h >>conftest.$ac_ext | |
13213 | cat >>conftest.$ac_ext <<_ACEOF | |
13214 | /* end confdefs.h. */ | |
13215 | $ac_includes_default | |
13216 | #include <$ac_header> | |
13217 | _ACEOF | |
13218 | rm -f conftest.$ac_objext | |
13219 | if { (ac_try="$ac_compile" | |
13220 | case "(($ac_try" in | |
13221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13222 | *) ac_try_echo=$ac_try;; | |
13223 | esac | |
13224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13225 | $as_echo "$ac_try_echo") >&5 | |
13226 | (eval "$ac_compile") 2>conftest.er1 | |
13227 | ac_status=$? | |
13228 | grep -v '^ *+' conftest.er1 >conftest.err | |
13229 | rm -f conftest.er1 | |
13230 | cat conftest.err >&5 | |
13231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13232 | (exit $ac_status); } && { | |
13233 | test -z "$ac_c_werror_flag" || | |
13234 | test ! -s conftest.err | |
13235 | } && test -s conftest.$ac_objext; then | |
13236 | ac_header_compiler=yes | |
13237 | else | |
13238 | $as_echo "$as_me: failed program was:" >&5 | |
13239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13240 | ||
13241 | ac_header_compiler=no | |
13242 | fi | |
13243 | ||
13244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13245 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13246 | $as_echo "$ac_header_compiler" >&6; } | |
13247 | ||
13248 | # Is the header present? | |
13249 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13250 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13251 | cat >conftest.$ac_ext <<_ACEOF | |
13252 | /* confdefs.h. */ | |
13253 | _ACEOF | |
13254 | cat confdefs.h >>conftest.$ac_ext | |
13255 | cat >>conftest.$ac_ext <<_ACEOF | |
13256 | /* end confdefs.h. */ | |
13257 | #include <$ac_header> | |
13258 | _ACEOF | |
13259 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13260 | case "(($ac_try" in | |
13261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13262 | *) ac_try_echo=$ac_try;; | |
13263 | esac | |
13264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13265 | $as_echo "$ac_try_echo") >&5 | |
13266 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13267 | ac_status=$? | |
13268 | grep -v '^ *+' conftest.er1 >conftest.err | |
13269 | rm -f conftest.er1 | |
13270 | cat conftest.err >&5 | |
13271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13272 | (exit $ac_status); } >/dev/null && { | |
13273 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13274 | test ! -s conftest.err | |
13275 | }; then | |
13276 | ac_header_preproc=yes | |
13277 | else | |
13278 | $as_echo "$as_me: failed program was:" >&5 | |
13279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13280 | ||
13281 | ac_header_preproc=no | |
13282 | fi | |
13283 | ||
13284 | rm -f conftest.err conftest.$ac_ext | |
13285 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13286 | $as_echo "$ac_header_preproc" >&6; } | |
13287 | ||
13288 | # So? What about this header? | |
13289 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13290 | yes:no: ) | |
13291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13292 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13294 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13295 | ac_header_preproc=yes | |
13296 | ;; | |
13297 | no:yes:* ) | |
13298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13299 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13301 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13303 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13305 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13307 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13309 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13310 | ||
13311 | ;; | |
13312 | esac | |
13313 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13314 | $as_echo_n "checking for $ac_header... " >&6; } | |
13315 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13316 | $as_echo_n "(cached) " >&6 | |
13317 | else | |
13318 | eval "$as_ac_Header=\$ac_header_preproc" | |
13319 | fi | |
13320 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13321 | $as_echo "$as_val"'` | |
13322 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13323 | $as_echo "$ac_res" >&6; } | |
13324 | ||
13325 | fi | |
13326 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13327 | $as_echo "$as_val"'` | |
13328 | if test "x$as_val" = x""yes; then | |
13329 | cat >>confdefs.h <<_ACEOF | |
13330 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13331 | _ACEOF | |
13332 | HAVE_CONFDB_H=yes | |
13333 | else | |
13334 | HAVE_CONFDB_H=no | |
13335 | fi | |
13336 | ||
13337 | done | |
13338 | ||
13339 | ||
13340 | if test x$HAVE_CONFDB != xyes && \ | |
13341 | test x$HAVE_CONFDB_H = xyes; then | |
13342 | check_lib_no_libs confdb confdb_initialize | |
13343 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13344 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13345 | CONFDB_LIBS="-lconfdb" | |
13346 | HAVE_CONFDB=yes | |
13347 | fi | |
13348 | ||
13349 | if test x$BUILDCOROSYNC = xyes && \ | |
13350 | test x$HAVE_CONFDB != xyes && | |
13351 | test x$CLVMD != xall; then | |
13352 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13353 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13354 | { (exit 1); exit 1; }; } | |
13355 | fi | |
13356 | fi | |
13357 | ||
13358 | if test x$CHECKCPG = xyes; then | |
13359 | ||
13360 | pkg_failed=no | |
13361 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13362 | $as_echo_n "checking for CPG... " >&6; } | |
13363 | ||
13364 | if test -n "$CPG_CFLAGS"; then | |
13365 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13366 | elif test -n "$PKG_CONFIG"; then | |
13367 | if test -n "$PKG_CONFIG" && \ | |
13368 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13369 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13370 | ac_status=$? | |
13371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13372 | (exit $ac_status); }; then | |
13373 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13374 | else | |
13375 | pkg_failed=yes | |
13376 | fi | |
13377 | else | |
13378 | pkg_failed=untried | |
13379 | fi | |
13380 | if test -n "$CPG_LIBS"; then | |
13381 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13382 | elif test -n "$PKG_CONFIG"; then | |
13383 | if test -n "$PKG_CONFIG" && \ | |
13384 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13385 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13386 | ac_status=$? | |
13387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13388 | (exit $ac_status); }; then | |
13389 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13390 | else | |
13391 | pkg_failed=yes | |
13392 | fi | |
13393 | else | |
13394 | pkg_failed=untried | |
13395 | fi | |
13396 | ||
13397 | ||
13398 | ||
13399 | if test $pkg_failed = yes; then | |
13400 | ||
13401 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13402 | _pkg_short_errors_supported=yes | |
13403 | else | |
13404 | _pkg_short_errors_supported=no | |
13405 | fi | |
13406 | if test $_pkg_short_errors_supported = yes; then | |
13407 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13408 | else | |
13409 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13410 | fi | |
13411 | # Put the nasty error message in config.log where it belongs | |
13412 | echo "$CPG_PKG_ERRORS" >&5 | |
13413 | ||
8c4e8a18 | 13414 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13415 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13416 | $bailout |
13417 | elif test $pkg_failed = untried; then | |
a946372e AK |
13418 | $bailout |
13419 | else | |
13420 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13421 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13422 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13423 | $as_echo "yes" >&6; } | |
13424 | HAVE_CPG=yes | |
13425 | fi | |
13426 | fi | |
13427 | ||
13428 | if test x$CHECKDLM = xyes; then | |
13429 | ||
13430 | pkg_failed=no | |
13431 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13432 | $as_echo_n "checking for DLM... " >&6; } | |
13433 | ||
13434 | if test -n "$DLM_CFLAGS"; then | |
13435 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13436 | elif test -n "$PKG_CONFIG"; then | |
13437 | if test -n "$PKG_CONFIG" && \ | |
13438 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13439 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13440 | ac_status=$? | |
13441 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13442 | (exit $ac_status); }; then | |
13443 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13444 | else | |
13445 | pkg_failed=yes | |
13446 | fi | |
13447 | else | |
13448 | pkg_failed=untried | |
13449 | fi | |
13450 | if test -n "$DLM_LIBS"; then | |
13451 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13452 | elif test -n "$PKG_CONFIG"; then | |
13453 | if test -n "$PKG_CONFIG" && \ | |
13454 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13455 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13456 | ac_status=$? | |
13457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13458 | (exit $ac_status); }; then | |
13459 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13460 | else | |
13461 | pkg_failed=yes | |
13462 | fi | |
13463 | else | |
13464 | pkg_failed=untried | |
13465 | fi | |
13466 | ||
13467 | ||
13468 | ||
13469 | if test $pkg_failed = yes; then | |
13470 | ||
13471 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13472 | _pkg_short_errors_supported=yes | |
13473 | else | |
13474 | _pkg_short_errors_supported=no | |
13475 | fi | |
13476 | if test $_pkg_short_errors_supported = yes; then | |
13477 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13478 | else | |
13479 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13480 | fi | |
13481 | # Put the nasty error message in config.log where it belongs | |
13482 | echo "$DLM_PKG_ERRORS" >&5 | |
13483 | ||
8c4e8a18 FDN |
13484 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13485 | $as_echo "no" >&6; } | |
13486 | NOTFOUND=0 | |
a946372e AK |
13487 | |
13488 | for ac_header in libdlm.h | |
13489 | do | |
13490 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13491 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13492 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13493 | $as_echo_n "checking for $ac_header... " >&6; } | |
13494 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13495 | $as_echo_n "(cached) " >&6 | |
13496 | fi | |
13497 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13498 | $as_echo "$as_val"'` | |
13499 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13500 | $as_echo "$ac_res" >&6; } | |
13501 | else | |
13502 | # Is the header compilable? | |
13503 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13504 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13505 | cat >conftest.$ac_ext <<_ACEOF | |
13506 | /* confdefs.h. */ | |
13507 | _ACEOF | |
13508 | cat confdefs.h >>conftest.$ac_ext | |
13509 | cat >>conftest.$ac_ext <<_ACEOF | |
13510 | /* end confdefs.h. */ | |
13511 | $ac_includes_default | |
13512 | #include <$ac_header> | |
13513 | _ACEOF | |
13514 | rm -f conftest.$ac_objext | |
13515 | if { (ac_try="$ac_compile" | |
13516 | case "(($ac_try" in | |
13517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13518 | *) ac_try_echo=$ac_try;; | |
13519 | esac | |
13520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13521 | $as_echo "$ac_try_echo") >&5 | |
13522 | (eval "$ac_compile") 2>conftest.er1 | |
13523 | ac_status=$? | |
13524 | grep -v '^ *+' conftest.er1 >conftest.err | |
13525 | rm -f conftest.er1 | |
13526 | cat conftest.err >&5 | |
13527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13528 | (exit $ac_status); } && { | |
13529 | test -z "$ac_c_werror_flag" || | |
13530 | test ! -s conftest.err | |
13531 | } && test -s conftest.$ac_objext; then | |
13532 | ac_header_compiler=yes | |
13533 | else | |
13534 | $as_echo "$as_me: failed program was:" >&5 | |
13535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13536 | ||
13537 | ac_header_compiler=no | |
13538 | fi | |
13539 | ||
13540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13541 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13542 | $as_echo "$ac_header_compiler" >&6; } | |
13543 | ||
13544 | # Is the header present? | |
13545 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13546 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13547 | cat >conftest.$ac_ext <<_ACEOF | |
13548 | /* confdefs.h. */ | |
13549 | _ACEOF | |
13550 | cat confdefs.h >>conftest.$ac_ext | |
13551 | cat >>conftest.$ac_ext <<_ACEOF | |
13552 | /* end confdefs.h. */ | |
13553 | #include <$ac_header> | |
13554 | _ACEOF | |
13555 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13556 | case "(($ac_try" in | |
13557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13558 | *) ac_try_echo=$ac_try;; | |
13559 | esac | |
13560 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13561 | $as_echo "$ac_try_echo") >&5 | |
13562 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13563 | ac_status=$? | |
13564 | grep -v '^ *+' conftest.er1 >conftest.err | |
13565 | rm -f conftest.er1 | |
13566 | cat conftest.err >&5 | |
13567 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13568 | (exit $ac_status); } >/dev/null && { | |
13569 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13570 | test ! -s conftest.err | |
13571 | }; then | |
13572 | ac_header_preproc=yes | |
13573 | else | |
13574 | $as_echo "$as_me: failed program was:" >&5 | |
13575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13576 | ||
13577 | ac_header_preproc=no | |
13578 | fi | |
13579 | ||
13580 | rm -f conftest.err conftest.$ac_ext | |
13581 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13582 | $as_echo "$ac_header_preproc" >&6; } | |
13583 | ||
13584 | # So? What about this header? | |
13585 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13586 | yes:no: ) | |
13587 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13588 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13589 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13590 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13591 | ac_header_preproc=yes | |
13592 | ;; | |
13593 | no:yes:* ) | |
13594 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13595 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13596 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13597 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13598 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13599 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13600 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13601 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13602 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13603 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13604 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13605 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13606 | ||
13607 | ;; | |
13608 | esac | |
13609 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13610 | $as_echo_n "checking for $ac_header... " >&6; } | |
13611 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13612 | $as_echo_n "(cached) " >&6 | |
13613 | else | |
13614 | eval "$as_ac_Header=\$ac_header_preproc" | |
13615 | fi | |
13616 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13617 | $as_echo "$as_val"'` | |
13618 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13619 | $as_echo "$ac_res" >&6; } | |
13620 | ||
13621 | fi | |
13622 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13623 | $as_echo "$as_val"'` | |
13624 | if test "x$as_val" = x""yes; then | |
13625 | cat >>confdefs.h <<_ACEOF | |
13626 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13627 | _ACEOF | |
13628 | ||
13629 | else | |
13630 | $bailout | |
13631 | fi | |
13632 | ||
13633 | done | |
13634 | ||
13635 | check_lib_no_libs dlm dlm_lock -lpthread | |
13636 | if test $NOTFOUND = 0; then | |
13637 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13638 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13639 | DLM_LIBS="-ldlm -lpthread" | |
13640 | HAVE_DLM=yes | |
13641 | fi | |
13642 | elif test $pkg_failed = untried; then | |
13643 | NOTFOUND=0 | |
13644 | ||
13645 | for ac_header in libdlm.h | |
13646 | do | |
13647 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13649 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13650 | $as_echo_n "checking for $ac_header... " >&6; } | |
13651 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13652 | $as_echo_n "(cached) " >&6 | |
13653 | fi | |
13654 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13655 | $as_echo "$as_val"'` | |
13656 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13657 | $as_echo "$ac_res" >&6; } | |
13658 | else | |
13659 | # Is the header compilable? | |
13660 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13661 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13662 | cat >conftest.$ac_ext <<_ACEOF | |
13663 | /* confdefs.h. */ | |
13664 | _ACEOF | |
13665 | cat confdefs.h >>conftest.$ac_ext | |
13666 | cat >>conftest.$ac_ext <<_ACEOF | |
13667 | /* end confdefs.h. */ | |
13668 | $ac_includes_default | |
13669 | #include <$ac_header> | |
13670 | _ACEOF | |
13671 | rm -f conftest.$ac_objext | |
13672 | if { (ac_try="$ac_compile" | |
13673 | case "(($ac_try" in | |
13674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13675 | *) ac_try_echo=$ac_try;; | |
13676 | esac | |
13677 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13678 | $as_echo "$ac_try_echo") >&5 | |
13679 | (eval "$ac_compile") 2>conftest.er1 | |
13680 | ac_status=$? | |
13681 | grep -v '^ *+' conftest.er1 >conftest.err | |
13682 | rm -f conftest.er1 | |
13683 | cat conftest.err >&5 | |
13684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13685 | (exit $ac_status); } && { | |
13686 | test -z "$ac_c_werror_flag" || | |
13687 | test ! -s conftest.err | |
13688 | } && test -s conftest.$ac_objext; then | |
13689 | ac_header_compiler=yes | |
13690 | else | |
13691 | $as_echo "$as_me: failed program was:" >&5 | |
13692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13693 | ||
13694 | ac_header_compiler=no | |
13695 | fi | |
13696 | ||
13697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13698 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13699 | $as_echo "$ac_header_compiler" >&6; } | |
13700 | ||
13701 | # Is the header present? | |
13702 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13703 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13704 | cat >conftest.$ac_ext <<_ACEOF | |
13705 | /* confdefs.h. */ | |
13706 | _ACEOF | |
13707 | cat confdefs.h >>conftest.$ac_ext | |
13708 | cat >>conftest.$ac_ext <<_ACEOF | |
13709 | /* end confdefs.h. */ | |
13710 | #include <$ac_header> | |
13711 | _ACEOF | |
13712 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13713 | case "(($ac_try" in | |
13714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13715 | *) ac_try_echo=$ac_try;; | |
13716 | esac | |
13717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13718 | $as_echo "$ac_try_echo") >&5 | |
13719 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13720 | ac_status=$? | |
13721 | grep -v '^ *+' conftest.er1 >conftest.err | |
13722 | rm -f conftest.er1 | |
13723 | cat conftest.err >&5 | |
13724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13725 | (exit $ac_status); } >/dev/null && { | |
13726 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13727 | test ! -s conftest.err | |
13728 | }; then | |
13729 | ac_header_preproc=yes | |
13730 | else | |
13731 | $as_echo "$as_me: failed program was:" >&5 | |
13732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13733 | ||
13734 | ac_header_preproc=no | |
13735 | fi | |
13736 | ||
13737 | rm -f conftest.err conftest.$ac_ext | |
13738 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13739 | $as_echo "$ac_header_preproc" >&6; } | |
13740 | ||
13741 | # So? What about this header? | |
13742 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13743 | yes:no: ) | |
13744 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13745 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13746 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13747 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13748 | ac_header_preproc=yes | |
13749 | ;; | |
13750 | no:yes:* ) | |
13751 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13752 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13753 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13754 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13755 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13756 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13758 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13759 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13760 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13761 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13762 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13763 | ||
13764 | ;; | |
13765 | esac | |
13766 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13767 | $as_echo_n "checking for $ac_header... " >&6; } | |
13768 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13769 | $as_echo_n "(cached) " >&6 | |
13770 | else | |
13771 | eval "$as_ac_Header=\$ac_header_preproc" | |
13772 | fi | |
13773 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13774 | $as_echo "$as_val"'` | |
13775 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13776 | $as_echo "$ac_res" >&6; } | |
13777 | ||
13778 | fi | |
13779 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13780 | $as_echo "$as_val"'` | |
13781 | if test "x$as_val" = x""yes; then | |
13782 | cat >>confdefs.h <<_ACEOF | |
13783 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13784 | _ACEOF | |
13785 | ||
13786 | else | |
13787 | $bailout | |
13788 | fi | |
13789 | ||
13790 | done | |
13791 | ||
13792 | check_lib_no_libs dlm dlm_lock -lpthread | |
13793 | if test $NOTFOUND = 0; then | |
13794 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13795 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13796 | DLM_LIBS="-ldlm -lpthread" | |
13797 | HAVE_DLM=yes | |
13798 | fi | |
13799 | else | |
13800 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13801 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13802 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13803 | $as_echo "yes" >&6; } | |
13804 | HAVE_DLM=yes | |
13805 | fi | |
13806 | fi | |
13807 | ||
13808 | if test x$CLVMD = xall; then | |
8c222979 | 13809 | CLVMD=none |
a946372e AK |
13810 | if test x$HAVE_CCS = xyes && \ |
13811 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13812 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13813 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13814 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
13815 | fi |
13816 | if test x$HAVE_CMAN = xyes && \ | |
13817 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13818 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13819 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13820 | CLVMD="$CLVMD,cman" | |
a946372e AK |
13821 | fi |
13822 | if test x$HAVE_COROSYNC = xyes && \ | |
13823 | test x$HAVE_QUORUM = xyes && \ | |
13824 | test x$HAVE_CPG = xyes && \ | |
13825 | test x$HAVE_DLM = xyes && \ | |
13826 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13827 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13828 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13829 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
13830 | fi |
13831 | if test x$HAVE_COROSYNC = xyes && \ | |
13832 | test x$HAVE_CPG = xyes && \ | |
13833 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13834 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13835 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13836 | CLVMD="$CLVMD,openais" | |
13837 | fi | |
13838 | if test x$CLVMD = xnone; then | |
13839 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13840 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13841 | fi |
a946372e AK |
13842 | fi |
13843 | ||
8c4e8a18 FDN |
13844 | ################################################################################ |
13845 | if test "x$CLVMD" != xnone; then | |
13846 | ||
13847 | # Check whether --with-clvmd-pidfile was given. | |
13848 | if test "${with_clvmd_pidfile+set}" = set; then | |
13849 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
13850 | else | |
13851 | CLVMD_PIDFILE="/var/run/clvmd.pid" | |
13852 | fi | |
13853 | ||
13854 | ||
13855 | cat >>confdefs.h <<_ACEOF | |
13856 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
13857 | _ACEOF | |
13858 | ||
13859 | fi | |
13860 | ||
a946372e | 13861 | ################################################################################ |
66fd4529 AK |
13862 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13863 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13864 | # Check whether --enable-cmirrord was given. | |
13865 | if test "${enable_cmirrord+set}" = set; then | |
13866 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13867 | else | |
13868 | CMIRRORD=no | |
13869 | fi | |
13870 | ||
13871 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13872 | $as_echo "$CMIRRORD" >&6; } | |
13873 | ||
13874 | BUILD_CMIRRORD=$CMIRRORD | |
13875 | ||
13876 | ################################################################################ | |
66fd4529 AK |
13877 | if test "x$BUILD_CMIRRORD" = xyes; then |
13878 | ||
13879 | # Check whether --with-cmirrord-pidfile was given. | |
13880 | if test "${with_cmirrord_pidfile+set}" = set; then | |
71082be4 | 13881 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval |
66fd4529 | 13882 | else |
71082be4 | 13883 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
a946372e AK |
13884 | fi |
13885 | ||
71082be4 ZK |
13886 | |
13887 | cat >>confdefs.h <<_ACEOF | |
13888 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
13889 | _ACEOF | |
13890 | ||
66fd4529 | 13891 | fi |
a946372e | 13892 | |
66fd4529 AK |
13893 | ################################################################################ |
13894 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13895 | if test x$PKGCONFIG_INIT != x1; then |
13896 | pkg_config_init | |
13897 | fi | |
13898 | ||
13899 | pkg_failed=no | |
13900 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13901 | $as_echo_n "checking for SACKPT... " >&6; } | |
13902 | ||
13903 | if test -n "$SACKPT_CFLAGS"; then | |
13904 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13905 | elif test -n "$PKG_CONFIG"; then | |
13906 | if test -n "$PKG_CONFIG" && \ | |
13907 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13908 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13909 | ac_status=$? | |
13910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13911 | (exit $ac_status); }; then | |
13912 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13913 | else | |
13914 | pkg_failed=yes | |
13915 | fi | |
13916 | else | |
13917 | pkg_failed=untried | |
13918 | fi | |
13919 | if test -n "$SACKPT_LIBS"; then | |
13920 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13921 | elif test -n "$PKG_CONFIG"; then | |
13922 | if test -n "$PKG_CONFIG" && \ | |
13923 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13924 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13925 | ac_status=$? | |
13926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13927 | (exit $ac_status); }; then | |
13928 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13929 | else | |
13930 | pkg_failed=yes | |
13931 | fi | |
13932 | else | |
13933 | pkg_failed=untried | |
13934 | fi | |
13935 | ||
13936 | ||
13937 | ||
13938 | if test $pkg_failed = yes; then | |
13939 | ||
13940 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13941 | _pkg_short_errors_supported=yes | |
13942 | else | |
13943 | _pkg_short_errors_supported=no | |
13944 | fi | |
13945 | if test $_pkg_short_errors_supported = yes; then | |
13946 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13947 | else | |
13948 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13949 | fi | |
13950 | # Put the nasty error message in config.log where it belongs | |
13951 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13952 | ||
13953 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13954 | ||
13955 | $SACKPT_PKG_ERRORS | |
13956 | ||
13957 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13958 | installed software in a non-standard prefix. | |
13959 | ||
13960 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13961 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13962 | See the pkg-config man page for more details. |
13963 | " >&5 | |
90c80887 AK |
13964 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13965 | ||
13966 | $SACKPT_PKG_ERRORS | |
13967 | ||
13968 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13969 | installed software in a non-standard prefix. | |
13970 | ||
13971 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13972 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13973 | See the pkg-config man page for more details. |
13974 | " >&2;} | |
90c80887 AK |
13975 | { (exit 1); exit 1; }; } |
13976 | elif test $pkg_failed = untried; then | |
13977 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
13978 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13979 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
13980 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13981 | path to pkg-config. | |
13982 | ||
13983 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13984 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13985 | See the pkg-config man page for more details. | |
13986 | ||
13987 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13988 | See \`config.log' for more details." >&5 | |
13989 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
13990 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13991 | path to pkg-config. | |
13992 | ||
13993 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13994 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13995 | See the pkg-config man page for more details. | |
13996 | ||
13997 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13998 | See \`config.log' for more details." >&2;} | |
13999 | { (exit 1); exit 1; }; }; } | |
14000 | else | |
14001 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
14002 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
14003 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14004 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14005 | : |
90c80887 AK |
14006 | fi |
14007 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
14008 | |
14009 | pkg_failed=no | |
14010 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
14011 | $as_echo_n "checking for CPG... " >&6; } | |
14012 | ||
14013 | if test -n "$CPG_CFLAGS"; then | |
14014 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
14015 | elif test -n "$PKG_CONFIG"; then | |
14016 | if test -n "$PKG_CONFIG" && \ | |
14017 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14018 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14019 | ac_status=$? | |
14020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14021 | (exit $ac_status); }; then | |
14022 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
14023 | else | |
14024 | pkg_failed=yes | |
14025 | fi | |
14026 | else | |
14027 | pkg_failed=untried | |
14028 | fi | |
14029 | if test -n "$CPG_LIBS"; then | |
14030 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
14031 | elif test -n "$PKG_CONFIG"; then | |
14032 | if test -n "$PKG_CONFIG" && \ | |
14033 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14034 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14035 | ac_status=$? | |
14036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14037 | (exit $ac_status); }; then | |
14038 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
14039 | else | |
14040 | pkg_failed=yes | |
14041 | fi | |
14042 | else | |
14043 | pkg_failed=untried | |
14044 | fi | |
14045 | ||
14046 | ||
14047 | ||
14048 | if test $pkg_failed = yes; then | |
14049 | ||
14050 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14051 | _pkg_short_errors_supported=yes | |
14052 | else | |
14053 | _pkg_short_errors_supported=no | |
14054 | fi | |
14055 | if test $_pkg_short_errors_supported = yes; then | |
14056 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14057 | else | |
14058 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14059 | fi | |
14060 | # Put the nasty error message in config.log where it belongs | |
14061 | echo "$CPG_PKG_ERRORS" >&5 | |
14062 | ||
90c80887 AK |
14063 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14064 | ||
14065 | $CPG_PKG_ERRORS | |
14066 | ||
14067 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14068 | installed software in a non-standard prefix. | |
14069 | ||
14070 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14071 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14072 | See the pkg-config man page for more details. |
14073 | " >&5 | |
90c80887 AK |
14074 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14075 | ||
14076 | $CPG_PKG_ERRORS | |
14077 | ||
14078 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14079 | installed software in a non-standard prefix. | |
14080 | ||
14081 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14082 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14083 | See the pkg-config man page for more details. |
14084 | " >&2;} | |
90c80887 | 14085 | { (exit 1); exit 1; }; } |
a946372e | 14086 | elif test $pkg_failed = untried; then |
90c80887 AK |
14087 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14089 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14090 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14091 | path to pkg-config. | |
14092 | ||
14093 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14094 | and CPG_LIBS to avoid the need to call pkg-config. | |
14095 | See the pkg-config man page for more details. | |
14096 | ||
14097 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14098 | See \`config.log' for more details." >&5 | |
14099 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14100 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14101 | path to pkg-config. | |
14102 | ||
14103 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14104 | and CPG_LIBS to avoid the need to call pkg-config. | |
14105 | See the pkg-config man page for more details. | |
14106 | ||
14107 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14108 | See \`config.log' for more details." >&2;} | |
14109 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14110 | else |
14111 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14112 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14113 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14114 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14115 | : |
a946372e | 14116 | fi |
90c80887 | 14117 | fi |
a946372e AK |
14118 | fi |
14119 | ||
14120 | ################################################################################ | |
14121 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14122 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14123 | # Check whether --enable-debug was given. | |
14124 | if test "${enable_debug+set}" = set; then | |
14125 | enableval=$enable_debug; DEBUG=$enableval | |
14126 | else | |
14127 | DEBUG=no | |
14128 | fi | |
14129 | ||
14130 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14131 | $as_echo "$DEBUG" >&6; } | |
14132 | ||
14133 | if test x$DEBUG = xyes; then | |
14134 | COPTIMISE_FLAG= | |
14135 | else | |
14136 | CSCOPE_CMD= | |
14137 | fi | |
14138 | ||
14139 | ################################################################################ | |
14140 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14141 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14142 | ||
14143 | # Check whether --with-optimisation was given. | |
14144 | if test "${with_optimisation+set}" = set; then | |
71082be4 | 14145 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
a946372e AK |
14146 | fi |
14147 | ||
14148 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14149 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14150 | ||
14151 | ################################################################################ | |
14152 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14153 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14154 | # Check whether --enable-profiling was given. | |
14155 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14156 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14157 | else |
5556819a | 14158 | PROFILING=no |
fddafd51 ZK |
14159 | fi |
14160 | ||
ec6a6fbe AK |
14161 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14162 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14163 | |
14164 | if test "x$PROFILING" = xyes; then | |
14165 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14166 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14167 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14168 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14169 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14170 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14171 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14172 | else |
14173 | case $LCOV in | |
14174 | [\\/]* | ?:[\\/]*) | |
14175 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14176 | ;; | |
14177 | *) | |
14178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14179 | for as_dir in $PATH | |
14180 | do | |
14181 | IFS=$as_save_IFS | |
14182 | test -z "$as_dir" && as_dir=. | |
14183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14185 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14186 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14187 | break 2 |
14188 | fi | |
14189 | done | |
14190 | done | |
14191 | IFS=$as_save_IFS | |
14192 | ||
14193 | ;; | |
14194 | esac | |
14195 | fi | |
14196 | LCOV=$ac_cv_path_LCOV | |
14197 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14198 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14199 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14200 | else |
ec6a6fbe AK |
14201 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14202 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14203 | fi |
14204 | ||
14205 | ||
5556819a | 14206 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14207 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14208 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14209 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14210 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14211 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14212 | else |
14213 | case $GENHTML in | |
14214 | [\\/]* | ?:[\\/]*) | |
14215 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14216 | ;; | |
14217 | *) | |
14218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14219 | for as_dir in $PATH | |
14220 | do | |
14221 | IFS=$as_save_IFS | |
14222 | test -z "$as_dir" && as_dir=. | |
14223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14225 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14226 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14227 | break 2 |
14228 | fi | |
14229 | done | |
14230 | done | |
14231 | IFS=$as_save_IFS | |
14232 | ||
14233 | ;; | |
14234 | esac | |
14235 | fi | |
14236 | GENHTML=$ac_cv_path_GENHTML | |
14237 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14238 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14239 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14240 | else |
ec6a6fbe AK |
14241 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14242 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14243 | fi |
14244 | ||
14245 | ||
fd4728e1 | 14246 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14247 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14248 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14249 | { (exit 1); exit 1; }; } |
14250 | fi | |
fd4728e1 ZK |
14251 | # Extract the first word of "genpng", so it can be a program name with args. |
14252 | set dummy genpng; ac_word=$2 | |
14253 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14254 | $as_echo_n "checking for $ac_word... " >&6; } | |
14255 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14256 | $as_echo_n "(cached) " >&6 | |
14257 | else | |
14258 | case $GENPNG in | |
14259 | [\\/]* | ?:[\\/]*) | |
14260 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14261 | ;; | |
14262 | *) | |
14263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14264 | for as_dir in $PATH | |
14265 | do | |
14266 | IFS=$as_save_IFS | |
14267 | test -z "$as_dir" && as_dir=. | |
14268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14270 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14271 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14272 | break 2 | |
14273 | fi | |
14274 | done | |
14275 | done | |
14276 | IFS=$as_save_IFS | |
14277 | ||
14278 | ;; | |
14279 | esac | |
14280 | fi | |
14281 | GENPNG=$ac_cv_path_GENPNG | |
14282 | if test -n "$GENPNG"; then | |
14283 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14284 | $as_echo "$GENPNG" >&6; } | |
14285 | else | |
14286 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14287 | $as_echo "no" >&6; } | |
14288 | fi | |
14289 | ||
14290 | ||
14291 | if test -n "$GENPNG"; then | |
14292 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14293 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14294 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14295 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14296 | $as_echo "ok" >&6; } | |
14297 | GENHTML="$GENHTML --frames" | |
14298 | else | |
14299 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14300 | $as_echo "not supported" >&6; } | |
14301 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14302 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14303 | GENPNG= | |
14304 | fi | |
14305 | fi | |
5556819a | 14306 | fi |
d0191583 | 14307 | |
54b362f9 AK |
14308 | ################################################################################ |
14309 | { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5 | |
14310 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
14311 | # Check whether --enable-testing was given. | |
14312 | if test "${enable_testing+set}" = set; then | |
14313 | enableval=$enable_testing; TESTING=$enableval | |
14314 | else | |
14315 | TESTING=no | |
14316 | fi | |
14317 | ||
14318 | { $as_echo "$as_me:$LINENO: result: $TESTING" >&5 | |
14319 | $as_echo "$TESTING" >&6; } | |
14320 | ||
14321 | if test "$TESTING" = yes; then | |
14322 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
14323 | set dummy ruby1.9; ac_word=$2 | |
14324 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14325 | $as_echo_n "checking for $ac_word... " >&6; } | |
14326 | if test "${ac_cv_path_RUBY19+set}" = set; then | |
14327 | $as_echo_n "(cached) " >&6 | |
14328 | else | |
14329 | case $RUBY19 in | |
14330 | [\\/]* | ?:[\\/]*) | |
14331 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
14332 | ;; | |
14333 | *) | |
14334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14335 | for as_dir in $PATH | |
14336 | do | |
14337 | IFS=$as_save_IFS | |
14338 | test -z "$as_dir" && as_dir=. | |
14339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14341 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
14342 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14343 | break 2 | |
14344 | fi | |
14345 | done | |
14346 | done | |
14347 | IFS=$as_save_IFS | |
14348 | ||
14349 | ;; | |
14350 | esac | |
14351 | fi | |
14352 | RUBY19=$ac_cv_path_RUBY19 | |
14353 | if test -n "$RUBY19"; then | |
14354 | { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5 | |
14355 | $as_echo "$RUBY19" >&6; } | |
14356 | else | |
14357 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14358 | $as_echo "no" >&6; } | |
14359 | fi | |
14360 | ||
14361 | ||
14362 | # Extract the first word of "valgrind", so it can be a program name with args. | |
14363 | set dummy valgrind; ac_word=$2 | |
14364 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14365 | $as_echo_n "checking for $ac_word... " >&6; } | |
14366 | if test "${ac_cv_path_VALGRIND+set}" = set; then | |
14367 | $as_echo_n "(cached) " >&6 | |
14368 | else | |
14369 | case $VALGRIND in | |
14370 | [\\/]* | ?:[\\/]*) | |
14371 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. | |
14372 | ;; | |
14373 | *) | |
14374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14375 | for as_dir in $PATH | |
14376 | do | |
14377 | IFS=$as_save_IFS | |
14378 | test -z "$as_dir" && as_dir=. | |
14379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14381 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" | |
14382 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14383 | break 2 | |
14384 | fi | |
14385 | done | |
14386 | done | |
14387 | IFS=$as_save_IFS | |
14388 | ||
14389 | ;; | |
14390 | esac | |
14391 | fi | |
14392 | VALGRIND=$ac_cv_path_VALGRIND | |
14393 | if test -n "$VALGRIND"; then | |
14394 | { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5 | |
14395 | $as_echo "$VALGRIND" >&6; } | |
14396 | else | |
14397 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14398 | $as_echo "no" >&6; } | |
14399 | fi | |
14400 | ||
14401 | ||
14402 | if test -z "$RUBY19" -o -z "$VALGRIND"; then | |
14403 | { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5 | |
14404 | $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;} | |
14405 | { (exit 1); exit 1; }; } | |
14406 | fi | |
14407 | fi | |
14408 | ||
d0191583 | 14409 | ################################################################################ |
ec6a6fbe AK |
14410 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14411 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14412 | # Check whether --enable-devmapper was given. |
14413 | if test "${enable_devmapper+set}" = set; then | |
14414 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14415 | fi |
14416 | ||
ec6a6fbe AK |
14417 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14418 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14419 | |
14420 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14421 | |
14422 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14423 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14424 | _ACEOF |
14425 | ||
14426 | fi | |
14427 | ||
a5f46f6a AK |
14428 | ################################################################################ |
14429 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14430 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14431 | # Check whether --enable-udev_sync was given. | |
14432 | if test "${enable_udev_sync+set}" = set; then | |
14433 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14434 | else | |
14435 | UDEV_SYNC=no | |
14436 | fi | |
14437 | ||
14438 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14439 | $as_echo "$UDEV_SYNC" >&6; } | |
14440 | ||
90c80887 AK |
14441 | if test x$UDEV_SYNC = xyes; then |
14442 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14443 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14444 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14445 | $as_echo_n "(cached) " >&6 | |
14446 | else | |
14447 | ac_check_lib_save_LIBS=$LIBS | |
14448 | LIBS="-ludev $LIBS" | |
14449 | cat >conftest.$ac_ext <<_ACEOF | |
14450 | /* confdefs.h. */ | |
14451 | _ACEOF | |
14452 | cat confdefs.h >>conftest.$ac_ext | |
14453 | cat >>conftest.$ac_ext <<_ACEOF | |
14454 | /* end confdefs.h. */ | |
14455 | ||
14456 | /* Override any GCC internal prototype to avoid an error. | |
14457 | Use char because int might match the return type of a GCC | |
14458 | builtin and then its argument prototype would still apply. */ | |
14459 | #ifdef __cplusplus | |
14460 | extern "C" | |
14461 | #endif | |
14462 | char udev_queue_get_udev_is_active (); | |
14463 | int | |
14464 | main () | |
14465 | { | |
14466 | return udev_queue_get_udev_is_active (); | |
14467 | ; | |
14468 | return 0; | |
14469 | } | |
14470 | _ACEOF | |
14471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14472 | if { (ac_try="$ac_link" | |
14473 | case "(($ac_try" in | |
14474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14475 | *) ac_try_echo=$ac_try;; | |
14476 | esac | |
14477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14478 | $as_echo "$ac_try_echo") >&5 | |
14479 | (eval "$ac_link") 2>conftest.er1 | |
14480 | ac_status=$? | |
14481 | grep -v '^ *+' conftest.er1 >conftest.err | |
14482 | rm -f conftest.er1 | |
14483 | cat conftest.err >&5 | |
14484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14485 | (exit $ac_status); } && { | |
14486 | test -z "$ac_c_werror_flag" || | |
14487 | test ! -s conftest.err | |
14488 | } && test -s conftest$ac_exeext && { | |
14489 | test "$cross_compiling" = yes || | |
14490 | $as_test_x conftest$ac_exeext | |
14491 | }; then | |
14492 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14493 | else | |
14494 | $as_echo "$as_me: failed program was:" >&5 | |
14495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14496 | ||
14497 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14498 | fi | |
14499 | ||
14500 | rm -rf conftest.dSYM | |
14501 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14502 | conftest$ac_exeext conftest.$ac_ext | |
14503 | LIBS=$ac_check_lib_save_LIBS | |
14504 | fi | |
14505 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14506 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14507 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14508 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14509 | else |
5161ecb9 PR |
14510 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14511 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14512 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14513 | fi |
14514 | ||
14515 | ||
90c80887 | 14516 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14517 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14518 | _ACEOF |
14519 | ||
90c80887 AK |
14520 | fi |
14521 | ||
5161ecb9 PR |
14522 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14523 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14524 | # Check whether --enable-udev_rules was given. | |
14525 | if test "${enable_udev_rules+set}" = set; then | |
14526 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14527 | else | |
14528 | UDEV_RULES=$UDEV_SYNC | |
14529 | fi | |
14530 | ||
14531 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14532 | $as_echo "$UDEV_RULES" >&6; } | |
14533 | ||
93bd259b AK |
14534 | ################################################################################ |
14535 | # Check whether --enable-compat was given. | |
14536 | if test "${enable_compat+set}" = set; then | |
14537 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14538 | else | |
14539 | DM_COMPAT=no | |
14540 | fi | |
14541 | ||
14542 | ||
95eaa683 AK |
14543 | ################################################################################ |
14544 | # Check whether --enable-units-compat was given. | |
14545 | if test "${enable_units_compat+set}" = set; then | |
14546 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14547 | else | |
14548 | UNITS_COMPAT=no | |
14549 | fi | |
14550 | ||
14551 | ||
14552 | if test x$UNITS_COMPAT = xyes; then | |
14553 | ||
14554 | cat >>confdefs.h <<\_ACEOF | |
14555 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14556 | _ACEOF | |
14557 | ||
14558 | fi | |
14559 | ||
93bd259b AK |
14560 | ################################################################################ |
14561 | # Check whether --enable-ioctl was given. | |
14562 | if test "${enable_ioctl+set}" = set; then | |
14563 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14564 | fi | |
14565 | ||
14566 | ||
d0191583 | 14567 | ################################################################################ |
ec6a6fbe AK |
14568 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14569 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14570 | # Check whether --enable-o_direct was given. |
14571 | if test "${enable_o_direct+set}" = set; then | |
14572 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14573 | fi |
ad6254c5 | 14574 | |
ec6a6fbe AK |
14575 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14576 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14577 | |
d0191583 | 14578 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14579 | |
d0191583 JM |
14580 | cat >>confdefs.h <<\_ACEOF |
14581 | #define O_DIRECT_SUPPORT 1 | |
14582 | _ACEOF | |
ad6254c5 | 14583 | |
d0191583 | 14584 | fi |
ad6254c5 | 14585 | |
572fefeb AK |
14586 | ################################################################################ |
14587 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14588 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14589 | # Check whether --enable-applib was given. | |
14590 | if test "${enable_applib+set}" = set; then | |
14591 | enableval=$enable_applib; APPLIB=$enableval | |
14592 | else | |
14593 | APPLIB=no | |
14594 | fi | |
14595 | ||
14596 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14597 | $as_echo "$APPLIB" >&6; } | |
14598 | ||
14599 | test x$APPLIB = xyes \ | |
14600 | && LVM2APP_LIB=-llvm2app \ | |
14601 | || LVM2APP_LIB= | |
14602 | ||
d0191583 | 14603 | ################################################################################ |
ec6a6fbe AK |
14604 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14605 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14606 | # Check whether --enable-cmdlib was given. |
14607 | if test "${enable_cmdlib+set}" = set; then | |
14608 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14609 | else |
d0191583 JM |
14610 | CMDLIB=no |
14611 | fi | |
8a2fc586 | 14612 | |
ec6a6fbe AK |
14613 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14614 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14615 | |
2a9a80c9 | 14616 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14617 | && LVM2CMD_LIB=-llvm2cmd \ |
14618 | || LVM2CMD_LIB= | |
14619 | ||
93bd259b AK |
14620 | ################################################################################ |
14621 | # Check whether --enable-pkgconfig was given. | |
14622 | if test "${enable_pkgconfig+set}" = set; then | |
14623 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14624 | else | |
14625 | PKGCONFIG=no | |
14626 | fi | |
14627 | ||
2a9a80c9 | 14628 | |
23b059e7 ZK |
14629 | ################################################################################ |
14630 | # Check whether --enable-write_install was given. | |
14631 | if test "${enable_write_install+set}" = set; then | |
14632 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14633 | else | |
14634 | WRITE_INSTALL=no | |
14635 | fi | |
14636 | ||
14637 | ||
d0191583 | 14638 | ################################################################################ |
ec6a6fbe AK |
14639 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14640 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14641 | # Check whether --enable-fsadm was given. |
14642 | if test "${enable_fsadm+set}" = set; then | |
14643 | enableval=$enable_fsadm; FSADM=$enableval | |
14644 | fi | |
8a2fc586 | 14645 | |
ec6a6fbe AK |
14646 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14647 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14648 | |
d0191583 | 14649 | ################################################################################ |
ec6a6fbe AK |
14650 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14651 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14652 | # Check whether --enable-dmeventd was given. |
14653 | if test "${enable_dmeventd+set}" = set; then | |
14654 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14655 | fi | |
ad6254c5 | 14656 | |
ec6a6fbe AK |
14657 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14658 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14659 | |
93bd259b AK |
14660 | BUILD_DMEVENTD=$DMEVENTD |
14661 | ||
2a9a80c9 PR |
14662 | if test x$DMEVENTD = xyes; then |
14663 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14664 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14665 | " >&5 |
ec6a6fbe | 14666 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14667 | " >&2;} |
d0191583 | 14668 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14669 | fi |
14670 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14671 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14672 | " >&5 |
ec6a6fbe | 14673 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14674 | " >&2;} |
14675 | { (exit 1); exit 1; }; } | |
14676 | fi | |
ad6254c5 | 14677 | fi |
7a197a62 | 14678 | |
d0191583 JM |
14679 | if test x$DMEVENTD = xyes; then |
14680 | ||
14681 | cat >>confdefs.h <<\_ACEOF | |
14682 | #define DMEVENTD 1 | |
ad6254c5 AK |
14683 | _ACEOF |
14684 | ||
ad6254c5 | 14685 | fi |
93bd259b AK |
14686 | |
14687 | ################################################################################ | |
14688 | ||
ec6a6fbe AK |
14689 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14690 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14691 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14692 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14693 | else |
14694 | ac_check_lib_save_LIBS=$LIBS | |
14695 | LIBS="-lc $LIBS" | |
14696 | cat >conftest.$ac_ext <<_ACEOF | |
14697 | /* confdefs.h. */ | |
14698 | _ACEOF | |
14699 | cat confdefs.h >>conftest.$ac_ext | |
14700 | cat >>conftest.$ac_ext <<_ACEOF | |
14701 | /* end confdefs.h. */ | |
14702 | ||
14703 | /* Override any GCC internal prototype to avoid an error. | |
14704 | Use char because int might match the return type of a GCC | |
14705 | builtin and then its argument prototype would still apply. */ | |
14706 | #ifdef __cplusplus | |
14707 | extern "C" | |
14708 | #endif | |
14709 | char getline (); | |
14710 | int | |
14711 | main () | |
14712 | { | |
14713 | return getline (); | |
14714 | ; | |
14715 | return 0; | |
14716 | } | |
14717 | _ACEOF | |
14718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14719 | if { (ac_try="$ac_link" | |
14720 | case "(($ac_try" in | |
14721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14722 | *) ac_try_echo=$ac_try;; | |
14723 | esac | |
ec6a6fbe AK |
14724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14725 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14726 | (eval "$ac_link") 2>conftest.er1 |
14727 | ac_status=$? | |
14728 | grep -v '^ *+' conftest.er1 >conftest.err | |
14729 | rm -f conftest.er1 | |
14730 | cat conftest.err >&5 | |
ec6a6fbe | 14731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14732 | (exit $ac_status); } && { |
14733 | test -z "$ac_c_werror_flag" || | |
14734 | test ! -s conftest.err | |
ec6a6fbe AK |
14735 | } && test -s conftest$ac_exeext && { |
14736 | test "$cross_compiling" = yes || | |
14737 | $as_test_x conftest$ac_exeext | |
14738 | }; then | |
93bd259b AK |
14739 | ac_cv_lib_c_getline=yes |
14740 | else | |
ec6a6fbe | 14741 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14742 | sed 's/^/| /' conftest.$ac_ext >&5 |
14743 | ||
14744 | ac_cv_lib_c_getline=no | |
14745 | fi | |
14746 | ||
ec6a6fbe | 14747 | rm -rf conftest.dSYM |
93bd259b AK |
14748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14749 | conftest$ac_exeext conftest.$ac_ext | |
14750 | LIBS=$ac_check_lib_save_LIBS | |
14751 | fi | |
ec6a6fbe AK |
14752 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14753 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14754 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14755 | |
14756 | cat >>confdefs.h <<\_ACEOF | |
14757 | #define HAVE_GETLINE 1 | |
14758 | _ACEOF | |
14759 | ||
14760 | fi | |
14761 | ||
14762 | ||
14763 | ################################################################################ | |
14764 | ||
ec6a6fbe AK |
14765 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14766 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14767 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14768 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14769 | else |
14770 | ac_check_lib_save_LIBS=$LIBS | |
14771 | LIBS="-lc $LIBS" | |
14772 | cat >conftest.$ac_ext <<_ACEOF | |
14773 | /* confdefs.h. */ | |
14774 | _ACEOF | |
14775 | cat confdefs.h >>conftest.$ac_ext | |
14776 | cat >>conftest.$ac_ext <<_ACEOF | |
14777 | /* end confdefs.h. */ | |
14778 | ||
14779 | /* Override any GCC internal prototype to avoid an error. | |
14780 | Use char because int might match the return type of a GCC | |
14781 | builtin and then its argument prototype would still apply. */ | |
14782 | #ifdef __cplusplus | |
14783 | extern "C" | |
14784 | #endif | |
14785 | char canonicalize_file_name (); | |
14786 | int | |
14787 | main () | |
14788 | { | |
14789 | return canonicalize_file_name (); | |
14790 | ; | |
14791 | return 0; | |
14792 | } | |
14793 | _ACEOF | |
14794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14795 | if { (ac_try="$ac_link" | |
14796 | case "(($ac_try" in | |
14797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14798 | *) ac_try_echo=$ac_try;; | |
14799 | esac | |
ec6a6fbe AK |
14800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14801 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14802 | (eval "$ac_link") 2>conftest.er1 |
14803 | ac_status=$? | |
14804 | grep -v '^ *+' conftest.er1 >conftest.err | |
14805 | rm -f conftest.er1 | |
14806 | cat conftest.err >&5 | |
ec6a6fbe | 14807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14808 | (exit $ac_status); } && { |
14809 | test -z "$ac_c_werror_flag" || | |
14810 | test ! -s conftest.err | |
ec6a6fbe AK |
14811 | } && test -s conftest$ac_exeext && { |
14812 | test "$cross_compiling" = yes || | |
14813 | $as_test_x conftest$ac_exeext | |
14814 | }; then | |
93bd259b AK |
14815 | ac_cv_lib_c_canonicalize_file_name=yes |
14816 | else | |
ec6a6fbe | 14817 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14818 | sed 's/^/| /' conftest.$ac_ext >&5 |
14819 | ||
14820 | ac_cv_lib_c_canonicalize_file_name=no | |
14821 | fi | |
14822 | ||
ec6a6fbe | 14823 | rm -rf conftest.dSYM |
93bd259b AK |
14824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14825 | conftest$ac_exeext conftest.$ac_ext | |
14826 | LIBS=$ac_check_lib_save_LIBS | |
14827 | fi | |
ec6a6fbe AK |
14828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
14829 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14830 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
14831 | |
14832 | cat >>confdefs.h <<\_ACEOF | |
14833 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
14834 | _ACEOF | |
14835 | ||
14836 | fi | |
14837 | ||
14838 | ||
d0191583 JM |
14839 | ################################################################################ |
14840 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
14841 | then exec_prefix=""; | |
14842 | fi; | |
ad6254c5 | 14843 | |
ad6254c5 | 14844 | ################################################################################ |
ec6a6fbe AK |
14845 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
14846 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 14847 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 14848 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14849 | else |
14850 | ac_check_lib_save_LIBS=$LIBS | |
14851 | LIBS="-ldl $LIBS" | |
14852 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14853 | /* confdefs.h. */ |
14854 | _ACEOF | |
14855 | cat confdefs.h >>conftest.$ac_ext | |
14856 | cat >>conftest.$ac_ext <<_ACEOF | |
14857 | /* end confdefs.h. */ | |
14858 | ||
7a197a62 AK |
14859 | /* Override any GCC internal prototype to avoid an error. |
14860 | Use char because int might match the return type of a GCC | |
14861 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14862 | #ifdef __cplusplus |
14863 | extern "C" | |
14864 | #endif | |
ad6254c5 AK |
14865 | char dlopen (); |
14866 | int | |
14867 | main () | |
14868 | { | |
7a197a62 | 14869 | return dlopen (); |
ad6254c5 AK |
14870 | ; |
14871 | return 0; | |
14872 | } | |
14873 | _ACEOF | |
14874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14875 | if { (ac_try="$ac_link" |
14876 | case "(($ac_try" in | |
14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14878 | *) ac_try_echo=$ac_try;; | |
14879 | esac | |
ec6a6fbe AK |
14880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14881 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14882 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14883 | ac_status=$? |
8a2fc586 AK |
14884 | grep -v '^ *+' conftest.er1 >conftest.err |
14885 | rm -f conftest.er1 | |
14886 | cat conftest.err >&5 | |
ec6a6fbe | 14887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14888 | (exit $ac_status); } && { |
14889 | test -z "$ac_c_werror_flag" || | |
14890 | test ! -s conftest.err | |
ec6a6fbe AK |
14891 | } && test -s conftest$ac_exeext && { |
14892 | test "$cross_compiling" = yes || | |
14893 | $as_test_x conftest$ac_exeext | |
14894 | }; then | |
ad6254c5 AK |
14895 | ac_cv_lib_dl_dlopen=yes |
14896 | else | |
ec6a6fbe | 14897 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14898 | sed 's/^/| /' conftest.$ac_ext >&5 |
14899 | ||
7a197a62 | 14900 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 14901 | fi |
7a197a62 | 14902 | |
ec6a6fbe | 14903 | rm -rf conftest.dSYM |
25fbec5b | 14904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14905 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
14906 | LIBS=$ac_check_lib_save_LIBS |
14907 | fi | |
ec6a6fbe AK |
14908 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
14909 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14910 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 14911 | |
72b2cb61 AK |
14912 | |
14913 | cat >>confdefs.h <<\_ACEOF | |
14914 | #define HAVE_LIBDL 1 | |
14915 | _ACEOF | |
14916 | ||
19a2c6e0 ZK |
14917 | DL_LIBS="-ldl" |
14918 | HAVE_LIBDL=yes | |
ad6254c5 | 14919 | else |
19a2c6e0 ZK |
14920 | |
14921 | DL_LIBS= | |
ad6254c5 AK |
14922 | HAVE_LIBDL=no |
14923 | fi | |
14924 | ||
19a2c6e0 | 14925 | |
ad6254c5 AK |
14926 | ################################################################################ |
14927 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
14928 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
14929 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 14930 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 14931 | " >&5 |
ec6a6fbe | 14932 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
14933 | " >&2;} |
14934 | { (exit 1); exit 1; }; } | |
14935 | fi | |
14936 | ||
f30875db ZK |
14937 | ################################################################################ |
14938 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
14939 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
14940 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
14941 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
14942 | $as_echo_n "(cached) " >&6 | |
14943 | else | |
14944 | ac_check_lib_save_LIBS=$LIBS | |
14945 | LIBS="-lpthread $LIBS" | |
14946 | cat >conftest.$ac_ext <<_ACEOF | |
14947 | /* confdefs.h. */ | |
14948 | _ACEOF | |
14949 | cat confdefs.h >>conftest.$ac_ext | |
14950 | cat >>conftest.$ac_ext <<_ACEOF | |
14951 | /* end confdefs.h. */ | |
14952 | ||
14953 | /* Override any GCC internal prototype to avoid an error. | |
14954 | Use char because int might match the return type of a GCC | |
14955 | builtin and then its argument prototype would still apply. */ | |
14956 | #ifdef __cplusplus | |
14957 | extern "C" | |
14958 | #endif | |
14959 | char pthread_mutex_lock (); | |
14960 | int | |
14961 | main () | |
14962 | { | |
14963 | return pthread_mutex_lock (); | |
14964 | ; | |
14965 | return 0; | |
14966 | } | |
14967 | _ACEOF | |
14968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14969 | if { (ac_try="$ac_link" | |
14970 | case "(($ac_try" in | |
14971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14972 | *) ac_try_echo=$ac_try;; | |
14973 | esac | |
14974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14975 | $as_echo "$ac_try_echo") >&5 | |
14976 | (eval "$ac_link") 2>conftest.er1 | |
14977 | ac_status=$? | |
14978 | grep -v '^ *+' conftest.er1 >conftest.err | |
14979 | rm -f conftest.er1 | |
14980 | cat conftest.err >&5 | |
14981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14982 | (exit $ac_status); } && { | |
14983 | test -z "$ac_c_werror_flag" || | |
14984 | test ! -s conftest.err | |
14985 | } && test -s conftest$ac_exeext && { | |
14986 | test "$cross_compiling" = yes || | |
14987 | $as_test_x conftest$ac_exeext | |
14988 | }; then | |
14989 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
14990 | else | |
14991 | $as_echo "$as_me: failed program was:" >&5 | |
14992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14993 | ||
14994 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
14995 | fi | |
14996 | ||
14997 | rm -rf conftest.dSYM | |
14998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14999 | conftest$ac_exeext conftest.$ac_ext | |
15000 | LIBS=$ac_check_lib_save_LIBS | |
15001 | fi | |
15002 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
15003 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
15004 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
15005 | PTHREAD_LIBS="-lpthread" | |
15006 | else | |
15007 | hard_bailout | |
15008 | fi | |
15009 | ||
15010 | fi | |
15011 | ||
d0191583 | 15012 | ################################################################################ |
ec6a6fbe AK |
15013 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
15014 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
15015 | # Check whether --enable-selinux was given. |
15016 | if test "${enable_selinux+set}" = set; then | |
15017 | enableval=$enable_selinux; SELINUX=$enableval | |
15018 | fi | |
15019 | ||
ec6a6fbe AK |
15020 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
15021 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 15022 | |
ad6254c5 AK |
15023 | ################################################################################ |
15024 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
15025 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
15026 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 15027 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 15028 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
15029 | else |
15030 | ac_check_lib_save_LIBS=$LIBS | |
15031 | LIBS="-lsepol $LIBS" | |
15032 | cat >conftest.$ac_ext <<_ACEOF | |
15033 | /* confdefs.h. */ | |
15034 | _ACEOF | |
15035 | cat confdefs.h >>conftest.$ac_ext | |
15036 | cat >>conftest.$ac_ext <<_ACEOF | |
15037 | /* end confdefs.h. */ | |
15038 | ||
7a197a62 AK |
15039 | /* Override any GCC internal prototype to avoid an error. |
15040 | Use char because int might match the return type of a GCC | |
15041 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
15042 | #ifdef __cplusplus |
15043 | extern "C" | |
15044 | #endif | |
8a2fc586 AK |
15045 | char sepol_check_context (); |
15046 | int | |
15047 | main () | |
15048 | { | |
7a197a62 | 15049 | return sepol_check_context (); |
8a2fc586 AK |
15050 | ; |
15051 | return 0; | |
15052 | } | |
15053 | _ACEOF | |
15054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15055 | if { (ac_try="$ac_link" |
15056 | case "(($ac_try" in | |
15057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15058 | *) ac_try_echo=$ac_try;; | |
15059 | esac | |
ec6a6fbe AK |
15060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15061 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15062 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
15063 | ac_status=$? |
15064 | grep -v '^ *+' conftest.er1 >conftest.err | |
15065 | rm -f conftest.er1 | |
15066 | cat conftest.err >&5 | |
ec6a6fbe | 15067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15068 | (exit $ac_status); } && { |
15069 | test -z "$ac_c_werror_flag" || | |
15070 | test ! -s conftest.err | |
ec6a6fbe AK |
15071 | } && test -s conftest$ac_exeext && { |
15072 | test "$cross_compiling" = yes || | |
15073 | $as_test_x conftest$ac_exeext | |
15074 | }; then | |
8a2fc586 AK |
15075 | ac_cv_lib_sepol_sepol_check_context=yes |
15076 | else | |
ec6a6fbe | 15077 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
15078 | sed 's/^/| /' conftest.$ac_ext >&5 |
15079 | ||
7a197a62 | 15080 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 15081 | fi |
7a197a62 | 15082 | |
ec6a6fbe | 15083 | rm -rf conftest.dSYM |
25fbec5b | 15084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
15085 | conftest$ac_exeext conftest.$ac_ext |
15086 | LIBS=$ac_check_lib_save_LIBS | |
15087 | fi | |
ec6a6fbe AK |
15088 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
15089 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
15090 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 15091 | |
d0191583 JM |
15092 | |
15093 | cat >>confdefs.h <<\_ACEOF | |
15094 | #define HAVE_SEPOL 1 | |
15095 | _ACEOF | |
15096 | ||
f8f6ec92 ZK |
15097 | SELINUX_LIBS="-lsepol" |
15098 | fi | |
15099 | ||
8a2fc586 | 15100 | |
ec6a6fbe AK |
15101 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
15102 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 15103 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 15104 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15105 | else |
15106 | ac_check_lib_save_LIBS=$LIBS | |
15107 | LIBS="-lselinux $LIBS" | |
15108 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15109 | /* confdefs.h. */ |
15110 | _ACEOF | |
15111 | cat confdefs.h >>conftest.$ac_ext | |
15112 | cat >>conftest.$ac_ext <<_ACEOF | |
15113 | /* end confdefs.h. */ | |
15114 | ||
7a197a62 AK |
15115 | /* Override any GCC internal prototype to avoid an error. |
15116 | Use char because int might match the return type of a GCC | |
15117 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15118 | #ifdef __cplusplus |
15119 | extern "C" | |
15120 | #endif | |
ad6254c5 AK |
15121 | char is_selinux_enabled (); |
15122 | int | |
15123 | main () | |
15124 | { | |
7a197a62 | 15125 | return is_selinux_enabled (); |
ad6254c5 AK |
15126 | ; |
15127 | return 0; | |
15128 | } | |
15129 | _ACEOF | |
15130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15131 | if { (ac_try="$ac_link" |
15132 | case "(($ac_try" in | |
15133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15134 | *) ac_try_echo=$ac_try;; | |
15135 | esac | |
ec6a6fbe AK |
15136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15137 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15138 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15139 | ac_status=$? |
8a2fc586 AK |
15140 | grep -v '^ *+' conftest.er1 >conftest.err |
15141 | rm -f conftest.er1 | |
15142 | cat conftest.err >&5 | |
ec6a6fbe | 15143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15144 | (exit $ac_status); } && { |
15145 | test -z "$ac_c_werror_flag" || | |
15146 | test ! -s conftest.err | |
ec6a6fbe AK |
15147 | } && test -s conftest$ac_exeext && { |
15148 | test "$cross_compiling" = yes || | |
15149 | $as_test_x conftest$ac_exeext | |
15150 | }; then | |
ad6254c5 AK |
15151 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15152 | else | |
ec6a6fbe | 15153 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15154 | sed 's/^/| /' conftest.$ac_ext >&5 |
15155 | ||
7a197a62 | 15156 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15157 | fi |
7a197a62 | 15158 | |
ec6a6fbe | 15159 | rm -rf conftest.dSYM |
25fbec5b | 15160 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15161 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15162 | LIBS=$ac_check_lib_save_LIBS |
15163 | fi | |
ec6a6fbe AK |
15164 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15165 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15166 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15167 | |
72b2cb61 | 15168 | |
f8f6ec92 ZK |
15169 | for ac_header in selinux/selinux.h |
15170 | do | |
15171 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15172 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15173 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15174 | $as_echo_n "checking for $ac_header... " >&6; } | |
15175 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15176 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15177 | fi |
15178 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15179 | $as_echo "$as_val"'` | |
15180 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15181 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15182 | else |
f8f6ec92 ZK |
15183 | # Is the header compilable? |
15184 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15185 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
15186 | cat >conftest.$ac_ext <<_ACEOF |
15187 | /* confdefs.h. */ | |
15188 | _ACEOF | |
15189 | cat confdefs.h >>conftest.$ac_ext | |
15190 | cat >>conftest.$ac_ext <<_ACEOF | |
15191 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
15192 | $ac_includes_default |
15193 | #include <$ac_header> | |
66e941e8 | 15194 | _ACEOF |
f8f6ec92 ZK |
15195 | rm -f conftest.$ac_objext |
15196 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15197 | case "(($ac_try" in |
15198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15199 | *) ac_try_echo=$ac_try;; | |
15200 | esac | |
ec6a6fbe AK |
15201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15202 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15203 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15204 | ac_status=$? |
15205 | grep -v '^ *+' conftest.er1 >conftest.err | |
15206 | rm -f conftest.er1 | |
15207 | cat conftest.err >&5 | |
ec6a6fbe | 15208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15209 | (exit $ac_status); } && { |
15210 | test -z "$ac_c_werror_flag" || | |
15211 | test ! -s conftest.err | |
f8f6ec92 ZK |
15212 | } && test -s conftest.$ac_objext; then |
15213 | ac_header_compiler=yes | |
15214 | else | |
15215 | $as_echo "$as_me: failed program was:" >&5 | |
15216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15217 | ||
15218 | ac_header_compiler=no | |
15219 | fi | |
15220 | ||
15221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15222 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15223 | $as_echo "$ac_header_compiler" >&6; } | |
15224 | ||
15225 | # Is the header present? | |
15226 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15227 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15228 | cat >conftest.$ac_ext <<_ACEOF | |
15229 | /* confdefs.h. */ | |
15230 | _ACEOF | |
15231 | cat confdefs.h >>conftest.$ac_ext | |
15232 | cat >>conftest.$ac_ext <<_ACEOF | |
15233 | /* end confdefs.h. */ | |
15234 | #include <$ac_header> | |
15235 | _ACEOF | |
15236 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15237 | case "(($ac_try" in | |
15238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15239 | *) ac_try_echo=$ac_try;; | |
15240 | esac | |
15241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15242 | $as_echo "$ac_try_echo") >&5 | |
15243 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15244 | ac_status=$? | |
15245 | grep -v '^ *+' conftest.er1 >conftest.err | |
15246 | rm -f conftest.er1 | |
15247 | cat conftest.err >&5 | |
15248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15249 | (exit $ac_status); } >/dev/null && { | |
15250 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15251 | test ! -s conftest.err | |
ec6a6fbe | 15252 | }; then |
f8f6ec92 | 15253 | ac_header_preproc=yes |
66e941e8 | 15254 | else |
ec6a6fbe | 15255 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15256 | sed 's/^/| /' conftest.$ac_ext >&5 |
15257 | ||
f8f6ec92 ZK |
15258 | ac_header_preproc=no |
15259 | fi | |
15260 | ||
15261 | rm -f conftest.err conftest.$ac_ext | |
15262 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15263 | $as_echo "$ac_header_preproc" >&6; } | |
15264 | ||
15265 | # So? What about this header? | |
15266 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15267 | yes:no: ) | |
15268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15269 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15271 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15272 | ac_header_preproc=yes | |
15273 | ;; | |
15274 | no:yes:* ) | |
15275 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15276 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15277 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15278 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15280 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15282 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15284 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15286 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15287 | |
f8f6ec92 ZK |
15288 | ;; |
15289 | esac | |
15290 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15291 | $as_echo_n "checking for $ac_header... " >&6; } | |
15292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15293 | $as_echo_n "(cached) " >&6 | |
15294 | else | |
15295 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15296 | fi |
f8f6ec92 ZK |
15297 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15298 | $as_echo "$as_val"'` | |
15299 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15300 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15301 | |
66e941e8 | 15302 | fi |
f8f6ec92 ZK |
15303 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15304 | $as_echo "$as_val"'` | |
15305 | if test "x$as_val" = x""yes; then | |
15306 | cat >>confdefs.h <<_ACEOF | |
15307 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15308 | _ACEOF | |
15309 | ||
66e941e8 | 15310 | else |
f8f6ec92 | 15311 | hard_bailout |
66e941e8 | 15312 | fi |
f8f6ec92 ZK |
15313 | |
15314 | done | |
15315 | ||
15316 | ||
15317 | cat >>confdefs.h <<\_ACEOF | |
15318 | #define HAVE_SELINUX 1 | |
15319 | _ACEOF | |
15320 | ||
15321 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15322 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15323 | HAVE_SELINUX=yes |
15324 | else | |
15325 | ||
15326 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15327 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15328 | SELINUX_LIBS= | |
f7f0854e | 15329 | SELINUX_PC= |
f8f6ec92 | 15330 | HAVE_SELINUX=no |
66e941e8 JM |
15331 | fi |
15332 | ||
ad6254c5 AK |
15333 | fi |
15334 | ||
8b1a3214 AK |
15335 | ################################################################################ |
15336 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15337 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15338 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15339 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15340 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15341 | else |
15342 | ac_check_lib_save_LIBS=$LIBS | |
15343 | LIBS="-lrt $LIBS" | |
15344 | cat >conftest.$ac_ext <<_ACEOF | |
15345 | /* confdefs.h. */ | |
15346 | _ACEOF | |
15347 | cat confdefs.h >>conftest.$ac_ext | |
15348 | cat >>conftest.$ac_ext <<_ACEOF | |
15349 | /* end confdefs.h. */ | |
15350 | ||
7a197a62 AK |
15351 | /* Override any GCC internal prototype to avoid an error. |
15352 | Use char because int might match the return type of a GCC | |
15353 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15354 | #ifdef __cplusplus |
15355 | extern "C" | |
15356 | #endif | |
8b1a3214 AK |
15357 | char clock_gettime (); |
15358 | int | |
15359 | main () | |
15360 | { | |
7a197a62 | 15361 | return clock_gettime (); |
8b1a3214 AK |
15362 | ; |
15363 | return 0; | |
15364 | } | |
15365 | _ACEOF | |
15366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15367 | if { (ac_try="$ac_link" |
15368 | case "(($ac_try" in | |
15369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15370 | *) ac_try_echo=$ac_try;; | |
15371 | esac | |
ec6a6fbe AK |
15372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15373 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15374 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15375 | ac_status=$? |
15376 | grep -v '^ *+' conftest.er1 >conftest.err | |
15377 | rm -f conftest.er1 | |
15378 | cat conftest.err >&5 | |
ec6a6fbe | 15379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15380 | (exit $ac_status); } && { |
15381 | test -z "$ac_c_werror_flag" || | |
15382 | test ! -s conftest.err | |
ec6a6fbe AK |
15383 | } && test -s conftest$ac_exeext && { |
15384 | test "$cross_compiling" = yes || | |
15385 | $as_test_x conftest$ac_exeext | |
15386 | }; then | |
8b1a3214 AK |
15387 | ac_cv_lib_rt_clock_gettime=yes |
15388 | else | |
ec6a6fbe | 15389 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15390 | sed 's/^/| /' conftest.$ac_ext >&5 |
15391 | ||
7a197a62 | 15392 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15393 | fi |
7a197a62 | 15394 | |
ec6a6fbe | 15395 | rm -rf conftest.dSYM |
25fbec5b | 15396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15397 | conftest$ac_exeext conftest.$ac_ext |
15398 | LIBS=$ac_check_lib_save_LIBS | |
15399 | fi | |
ec6a6fbe AK |
15400 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15401 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15402 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15403 | HAVE_REALTIME=yes |
15404 | else | |
15405 | HAVE_REALTIME=no | |
15406 | fi | |
15407 | ||
8b1a3214 AK |
15408 | |
15409 | if test x$HAVE_REALTIME = xyes; then | |
15410 | ||
15411 | cat >>confdefs.h <<\_ACEOF | |
15412 | #define HAVE_REALTIME 1 | |
15413 | _ACEOF | |
15414 | ||
15415 | LIBS="-lrt $LIBS" | |
15416 | else | |
ec6a6fbe AK |
15417 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15418 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15419 | fi |
15420 | fi | |
15421 | ||
ad6254c5 AK |
15422 | ################################################################################ |
15423 | ||
15424 | for ac_header in getopt.h | |
15425 | do | |
ec6a6fbe | 15426 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15427 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15428 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15429 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15431 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15432 | fi |
ec6a6fbe AK |
15433 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15434 | $as_echo "$as_val"'` | |
15435 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15436 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15437 | else |
15438 | # Is the header compilable? | |
ec6a6fbe AK |
15439 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15440 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15441 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15442 | /* confdefs.h. */ |
15443 | _ACEOF | |
15444 | cat confdefs.h >>conftest.$ac_ext | |
15445 | cat >>conftest.$ac_ext <<_ACEOF | |
15446 | /* end confdefs.h. */ | |
15447 | $ac_includes_default | |
15448 | #include <$ac_header> | |
15449 | _ACEOF | |
15450 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15451 | if { (ac_try="$ac_compile" |
15452 | case "(($ac_try" in | |
15453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15454 | *) ac_try_echo=$ac_try;; | |
15455 | esac | |
ec6a6fbe AK |
15456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15457 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15458 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15459 | ac_status=$? |
8a2fc586 AK |
15460 | grep -v '^ *+' conftest.er1 >conftest.err |
15461 | rm -f conftest.er1 | |
15462 | cat conftest.err >&5 | |
ec6a6fbe | 15463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15464 | (exit $ac_status); } && { |
15465 | test -z "$ac_c_werror_flag" || | |
15466 | test ! -s conftest.err | |
15467 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15468 | ac_header_compiler=yes |
15469 | else | |
ec6a6fbe | 15470 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15471 | sed 's/^/| /' conftest.$ac_ext >&5 |
15472 | ||
7a197a62 | 15473 | ac_header_compiler=no |
ad6254c5 | 15474 | fi |
7a197a62 AK |
15475 | |
15476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15477 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15478 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15479 | |
15480 | # Is the header present? | |
ec6a6fbe AK |
15481 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15482 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15483 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15484 | /* confdefs.h. */ |
15485 | _ACEOF | |
15486 | cat confdefs.h >>conftest.$ac_ext | |
15487 | cat >>conftest.$ac_ext <<_ACEOF | |
15488 | /* end confdefs.h. */ | |
15489 | #include <$ac_header> | |
15490 | _ACEOF | |
7a197a62 AK |
15491 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15492 | case "(($ac_try" in | |
15493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15494 | *) ac_try_echo=$ac_try;; | |
15495 | esac | |
ec6a6fbe AK |
15496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15497 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15498 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15499 | ac_status=$? |
15500 | grep -v '^ *+' conftest.er1 >conftest.err | |
15501 | rm -f conftest.er1 | |
15502 | cat conftest.err >&5 | |
ec6a6fbe | 15503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15504 | (exit $ac_status); } >/dev/null && { |
15505 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15506 | test ! -s conftest.err | |
15507 | }; then | |
ad6254c5 AK |
15508 | ac_header_preproc=yes |
15509 | else | |
ec6a6fbe | 15510 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15511 | sed 's/^/| /' conftest.$ac_ext >&5 |
15512 | ||
15513 | ac_header_preproc=no | |
15514 | fi | |
7a197a62 | 15515 | |
ad6254c5 | 15516 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15517 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15518 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15519 | |
15520 | # So? What about this header? | |
8a2fc586 AK |
15521 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15522 | yes:no: ) | |
ec6a6fbe AK |
15523 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15524 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15525 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15526 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15527 | ac_header_preproc=yes |
ad6254c5 | 15528 | ;; |
8a2fc586 | 15529 | no:yes:* ) |
ec6a6fbe AK |
15530 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15531 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15532 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15533 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15534 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15535 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15536 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15537 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15539 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15541 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15542 | |
ad6254c5 AK |
15543 | ;; |
15544 | esac | |
ec6a6fbe AK |
15545 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15546 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15547 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15548 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15549 | else |
8a2fc586 | 15550 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15551 | fi |
ec6a6fbe AK |
15552 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15553 | $as_echo "$as_val"'` | |
15554 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15555 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15556 | |
15557 | fi | |
ec6a6fbe AK |
15558 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15559 | $as_echo "$as_val"'` | |
15560 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15561 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15562 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15563 | _ACEOF |
72b2cb61 AK |
15564 | |
15565 | cat >>confdefs.h <<\_ACEOF | |
15566 | #define HAVE_GETOPTLONG 1 | |
15567 | _ACEOF | |
15568 | ||
ad6254c5 AK |
15569 | fi |
15570 | ||
15571 | done | |
15572 | ||
15573 | ||
15574 | ################################################################################ | |
06e459df | 15575 | if test x$READLINE != xno; then |
539f4a77 ZK |
15576 | lvm_saved_libs=$LIBS |
15577 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15578 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15579 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15580 | $as_echo_n "(cached) " >&6 | |
15581 | else | |
15582 | ac_func_search_save_LIBS=$LIBS | |
15583 | cat >conftest.$ac_ext <<_ACEOF | |
15584 | /* confdefs.h. */ | |
15585 | _ACEOF | |
15586 | cat confdefs.h >>conftest.$ac_ext | |
15587 | cat >>conftest.$ac_ext <<_ACEOF | |
15588 | /* end confdefs.h. */ | |
bc1024f8 | 15589 | |
539f4a77 ZK |
15590 | /* Override any GCC internal prototype to avoid an error. |
15591 | Use char because int might match the return type of a GCC | |
15592 | builtin and then its argument prototype would still apply. */ | |
15593 | #ifdef __cplusplus | |
15594 | extern "C" | |
15595 | #endif | |
15596 | char tgetent (); | |
15597 | int | |
15598 | main () | |
15599 | { | |
15600 | return tgetent (); | |
15601 | ; | |
15602 | return 0; | |
15603 | } | |
15604 | _ACEOF | |
15605 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15606 | if test -z "$ac_lib"; then | |
15607 | ac_res="none required" | |
15608 | else | |
15609 | ac_res=-l$ac_lib | |
15610 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15611 | fi | |
15612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15613 | if { (ac_try="$ac_link" | |
15614 | case "(($ac_try" in | |
15615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15616 | *) ac_try_echo=$ac_try;; | |
15617 | esac | |
15618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15619 | $as_echo "$ac_try_echo") >&5 | |
15620 | (eval "$ac_link") 2>conftest.er1 | |
15621 | ac_status=$? | |
15622 | grep -v '^ *+' conftest.er1 >conftest.err | |
15623 | rm -f conftest.er1 | |
15624 | cat conftest.err >&5 | |
15625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15626 | (exit $ac_status); } && { | |
15627 | test -z "$ac_c_werror_flag" || | |
15628 | test ! -s conftest.err | |
15629 | } && test -s conftest$ac_exeext && { | |
15630 | test "$cross_compiling" = yes || | |
15631 | $as_test_x conftest$ac_exeext | |
15632 | }; then | |
15633 | ac_cv_search_tgetent=$ac_res | |
15634 | else | |
15635 | $as_echo "$as_me: failed program was:" >&5 | |
15636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15637 | ||
15638 | ||
15639 | fi | |
15640 | ||
15641 | rm -rf conftest.dSYM | |
15642 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15643 | conftest$ac_exeext | |
15644 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15645 | break | |
15646 | fi | |
15647 | done | |
15648 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15649 | : | |
15650 | else | |
15651 | ac_cv_search_tgetent=no | |
15652 | fi | |
15653 | rm conftest.$ac_ext | |
15654 | LIBS=$ac_func_search_save_LIBS | |
15655 | fi | |
15656 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15657 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15658 | ac_res=$ac_cv_search_tgetent | |
15659 | if test "$ac_res" != no; then | |
15660 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15661 | READLINE_LIBS=$ac_cv_search_tgetent | |
15662 | else | |
15663 | ||
15664 | if test "$READLINE" = yes; then | |
15665 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15666 | --enable-readline option (which is enabled by default). Either disable readline | |
15667 | support with --disable-readline or download and install termcap from: | |
15668 | ftp.gnu.org/gnu/termcap | |
15669 | Note: if you are using precompiled packages you will also need the development | |
15670 | package as well (which may be called termcap-devel or something similar). | |
15671 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15672 | not found either - but you could try installing that as well." >&5 | |
15673 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15674 | --enable-readline option (which is enabled by default). Either disable readline | |
15675 | support with --disable-readline or download and install termcap from: | |
15676 | ftp.gnu.org/gnu/termcap | |
15677 | Note: if you are using precompiled packages you will also need the development | |
15678 | package as well (which may be called termcap-devel or something similar). | |
15679 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15680 | not found either - but you could try installing that as well." >&2;} | |
15681 | { (exit 1); exit 1; }; } | |
15682 | fi | |
15683 | fi | |
15684 | ||
15685 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15686 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15687 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15688 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15689 | else |
15690 | ac_check_lib_save_LIBS=$LIBS | |
15691 | LIBS="-lreadline $LIBS" | |
15692 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15693 | /* confdefs.h. */ |
15694 | _ACEOF | |
15695 | cat confdefs.h >>conftest.$ac_ext | |
15696 | cat >>conftest.$ac_ext <<_ACEOF | |
15697 | /* end confdefs.h. */ | |
15698 | ||
7a197a62 AK |
15699 | /* Override any GCC internal prototype to avoid an error. |
15700 | Use char because int might match the return type of a GCC | |
15701 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15702 | #ifdef __cplusplus |
15703 | extern "C" | |
15704 | #endif | |
ad6254c5 AK |
15705 | char readline (); |
15706 | int | |
15707 | main () | |
15708 | { | |
7a197a62 | 15709 | return readline (); |
ad6254c5 AK |
15710 | ; |
15711 | return 0; | |
15712 | } | |
15713 | _ACEOF | |
15714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15715 | if { (ac_try="$ac_link" |
15716 | case "(($ac_try" in | |
15717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15718 | *) ac_try_echo=$ac_try;; | |
15719 | esac | |
ec6a6fbe AK |
15720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15721 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15722 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15723 | ac_status=$? |
8a2fc586 AK |
15724 | grep -v '^ *+' conftest.er1 >conftest.err |
15725 | rm -f conftest.er1 | |
15726 | cat conftest.err >&5 | |
ec6a6fbe | 15727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15728 | (exit $ac_status); } && { |
15729 | test -z "$ac_c_werror_flag" || | |
15730 | test ! -s conftest.err | |
ec6a6fbe AK |
15731 | } && test -s conftest$ac_exeext && { |
15732 | test "$cross_compiling" = yes || | |
15733 | $as_test_x conftest$ac_exeext | |
15734 | }; then | |
ad6254c5 AK |
15735 | ac_cv_lib_readline_readline=yes |
15736 | else | |
ec6a6fbe | 15737 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15738 | sed 's/^/| /' conftest.$ac_ext >&5 |
15739 | ||
7a197a62 | 15740 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15741 | fi |
7a197a62 | 15742 | |
ec6a6fbe | 15743 | rm -rf conftest.dSYM |
25fbec5b | 15744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15745 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15746 | LIBS=$ac_check_lib_save_LIBS |
15747 | fi | |
ec6a6fbe AK |
15748 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15749 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15750 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15751 | |
15752 | ||
15753 | cat >>confdefs.h <<\_ACEOF | |
15754 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15755 | _ACEOF |
15756 | ||
539f4a77 ZK |
15757 | LIBS=$lvm_saved_libs |
15758 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15759 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15760 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15761 | $as_echo_n "(cached) " >&6 | |
15762 | else | |
15763 | ac_check_lib_save_LIBS=$LIBS | |
15764 | LIBS="-lreadline $LIBS" | |
15765 | cat >conftest.$ac_ext <<_ACEOF | |
15766 | /* confdefs.h. */ | |
15767 | _ACEOF | |
15768 | cat confdefs.h >>conftest.$ac_ext | |
15769 | cat >>conftest.$ac_ext <<_ACEOF | |
15770 | /* end confdefs.h. */ | |
bc1024f8 | 15771 | |
539f4a77 ZK |
15772 | /* Override any GCC internal prototype to avoid an error. |
15773 | Use char because int might match the return type of a GCC | |
15774 | builtin and then its argument prototype would still apply. */ | |
15775 | #ifdef __cplusplus | |
15776 | extern "C" | |
15777 | #endif | |
15778 | char rl_line_buffer (); | |
15779 | int | |
15780 | main () | |
15781 | { | |
15782 | return rl_line_buffer (); | |
15783 | ; | |
15784 | return 0; | |
15785 | } | |
15786 | _ACEOF | |
15787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15788 | if { (ac_try="$ac_link" | |
15789 | case "(($ac_try" in | |
15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15791 | *) ac_try_echo=$ac_try;; | |
15792 | esac | |
15793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15794 | $as_echo "$ac_try_echo") >&5 | |
15795 | (eval "$ac_link") 2>conftest.er1 | |
15796 | ac_status=$? | |
15797 | grep -v '^ *+' conftest.er1 >conftest.err | |
15798 | rm -f conftest.er1 | |
15799 | cat conftest.err >&5 | |
15800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15801 | (exit $ac_status); } && { | |
15802 | test -z "$ac_c_werror_flag" || | |
15803 | test ! -s conftest.err | |
15804 | } && test -s conftest$ac_exeext && { | |
15805 | test "$cross_compiling" = yes || | |
15806 | $as_test_x conftest$ac_exeext | |
15807 | }; then | |
15808 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 15809 | else |
539f4a77 ZK |
15810 | $as_echo "$as_me: failed program was:" >&5 |
15811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15812 | ||
15813 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
15814 | fi |
15815 | ||
539f4a77 ZK |
15816 | rm -rf conftest.dSYM |
15817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15818 | conftest$ac_exeext conftest.$ac_ext | |
15819 | LIBS=$ac_check_lib_save_LIBS | |
15820 | fi | |
15821 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
15822 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15823 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
15824 | READLINE_LIBS="-lreadline" | |
15825 | else | |
15826 | ||
15827 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
15828 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
15829 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
15830 | ||
15831 | fi | |
15832 | ||
15833 | else | |
15834 | ||
15835 | READLINE_LIBS= | |
15836 | if test "$READLINE" = yes; then | |
15837 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
15838 | --enable-readline option (which is enabled by default). Either disable readline |
15839 | support with --disable-readline or download and install readline from: | |
15840 | ftp.gnu.org/gnu/readline | |
15841 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15842 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 15843 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
15844 | --enable-readline option (which is enabled by default). Either disable readline |
15845 | support with --disable-readline or download and install readline from: | |
15846 | ftp.gnu.org/gnu/readline | |
15847 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15848 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 15849 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
15850 | fi |
15851 | fi | |
15852 | ||
15853 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
15854 | |
15855 | for ac_func in rl_completion_matches | |
15856 | do | |
ec6a6fbe AK |
15857 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15858 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15859 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 15860 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15861 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15862 | else |
15863 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15864 | /* confdefs.h. */ |
15865 | _ACEOF | |
15866 | cat confdefs.h >>conftest.$ac_ext | |
15867 | cat >>conftest.$ac_ext <<_ACEOF | |
15868 | /* end confdefs.h. */ | |
bc1024f8 | 15869 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 15870 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 15871 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 15872 | |
ad6254c5 | 15873 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 15874 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
15875 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
15876 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 15877 | |
ad6254c5 AK |
15878 | #ifdef __STDC__ |
15879 | # include <limits.h> | |
15880 | #else | |
15881 | # include <assert.h> | |
15882 | #endif | |
8a2fc586 | 15883 | |
bc1024f8 | 15884 | #undef $ac_func |
8a2fc586 | 15885 | |
7a197a62 AK |
15886 | /* Override any GCC internal prototype to avoid an error. |
15887 | Use char because int might match the return type of a GCC | |
15888 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15889 | #ifdef __cplusplus |
15890 | extern "C" | |
ad6254c5 | 15891 | #endif |
bc1024f8 | 15892 | char $ac_func (); |
ad6254c5 AK |
15893 | /* The GNU C library defines this for functions which it implements |
15894 | to always fail with ENOSYS. Some functions are actually named | |
15895 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 15896 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 15897 | choke me |
ad6254c5 AK |
15898 | #endif |
15899 | ||
15900 | int | |
15901 | main () | |
15902 | { | |
bc1024f8 | 15903 | return $ac_func (); |
ad6254c5 AK |
15904 | ; |
15905 | return 0; | |
15906 | } | |
15907 | _ACEOF | |
15908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15909 | if { (ac_try="$ac_link" |
15910 | case "(($ac_try" in | |
15911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15912 | *) ac_try_echo=$ac_try;; | |
15913 | esac | |
ec6a6fbe AK |
15914 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15915 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15916 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15917 | ac_status=$? |
8a2fc586 AK |
15918 | grep -v '^ *+' conftest.er1 >conftest.err |
15919 | rm -f conftest.er1 | |
15920 | cat conftest.err >&5 | |
ec6a6fbe | 15921 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15922 | (exit $ac_status); } && { |
15923 | test -z "$ac_c_werror_flag" || | |
15924 | test ! -s conftest.err | |
ec6a6fbe AK |
15925 | } && test -s conftest$ac_exeext && { |
15926 | test "$cross_compiling" = yes || | |
15927 | $as_test_x conftest$ac_exeext | |
15928 | }; then | |
bc1024f8 | 15929 | eval "$as_ac_var=yes" |
ad6254c5 | 15930 | else |
ec6a6fbe | 15931 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15932 | sed 's/^/| /' conftest.$ac_ext >&5 |
15933 | ||
bc1024f8 | 15934 | eval "$as_ac_var=no" |
ad6254c5 | 15935 | fi |
7a197a62 | 15936 | |
ec6a6fbe | 15937 | rm -rf conftest.dSYM |
25fbec5b | 15938 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15939 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 15940 | fi |
ec6a6fbe AK |
15941 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15942 | $as_echo "$as_val"'` | |
15943 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15944 | $as_echo "$ac_res" >&6; } | |
15945 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15946 | $as_echo "$as_val"'` | |
15947 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 15948 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15949 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
15950 | _ACEOF |
15951 | ||
15952 | fi | |
bc1024f8 | 15953 | done |
ad6254c5 | 15954 | |
539f4a77 | 15955 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
15956 | fi |
15957 | ||
15958 | ################################################################################ | |
ec6a6fbe AK |
15959 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
15960 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 15961 | # Check whether --enable-nls was given. |
ad6254c5 | 15962 | if test "${enable_nls+set}" = set; then |
7a197a62 | 15963 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
15964 | else |
15965 | INTL=no | |
7a197a62 AK |
15966 | fi |
15967 | ||
ec6a6fbe AK |
15968 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
15969 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
15970 | |
15971 | if test x$INTL = xyes; then | |
93bd259b | 15972 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
15973 | INTL_PACKAGE="lvm2" |
15974 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15975 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
15976 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15977 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 15978 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 15979 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15980 | else |
15981 | case $MSGFMT in | |
15982 | [\\/]* | ?:[\\/]*) | |
15983 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15984 | ;; | |
15985 | *) | |
15986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15987 | for as_dir in $PATH | |
15988 | do | |
15989 | IFS=$as_save_IFS | |
15990 | test -z "$as_dir" && as_dir=. | |
15991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 15993 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15994 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
15995 | break 2 |
15996 | fi | |
15997 | done | |
15998 | done | |
7a197a62 | 15999 | IFS=$as_save_IFS |
ad6254c5 AK |
16000 | |
16001 | ;; | |
16002 | esac | |
16003 | fi | |
16004 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 16005 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
16006 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
16007 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 16008 | else |
ec6a6fbe AK |
16009 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16010 | $as_echo "no" >&6; } | |
ad6254c5 AK |
16011 | fi |
16012 | ||
7a197a62 | 16013 | |
ad6254c5 | 16014 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 16015 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 16016 | " >&5 |
ec6a6fbe | 16017 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
16018 | " >&2;} |
16019 | { (exit 1); exit 1; }; } | |
16020 | fi; | |
16021 | ||
16022 | ||
7a197a62 | 16023 | # Check whether --with-localedir was given. |
ad6254c5 | 16024 | if test "${with_localedir+set}" = set; then |
71082be4 | 16025 | withval=$with_localedir; LOCALEDIR=$withval |
ad6254c5 | 16026 | else |
71082be4 | 16027 | LOCALEDIR='${prefix}/share/locale' |
7a197a62 AK |
16028 | fi |
16029 | ||
ad6254c5 AK |
16030 | fi |
16031 | ||
16032 | ################################################################################ | |
16033 | ||
7a197a62 | 16034 | # Check whether --with-confdir was given. |
ad6254c5 | 16035 | if test "${with_confdir+set}" = set; then |
71082be4 | 16036 | withval=$with_confdir; CONFDIR=$withval |
ad6254c5 | 16037 | else |
71082be4 | 16038 | CONFDIR="/etc" |
7a197a62 AK |
16039 | fi |
16040 | ||
ad6254c5 AK |
16041 | |
16042 | ||
7a197a62 | 16043 | # Check whether --with-staticdir was given. |
ad6254c5 | 16044 | if test "${with_staticdir+set}" = set; then |
71082be4 | 16045 | withval=$with_staticdir; STATICDIR=$withval |
ad6254c5 | 16046 | else |
71082be4 | 16047 | STATICDIR='${exec_prefix}/sbin' |
7a197a62 | 16048 | fi |
ad6254c5 | 16049 | |
33f732c5 | 16050 | |
7a197a62 | 16051 | |
68f2de6d AK |
16052 | # Check whether --with-usrlibdir was given. |
16053 | if test "${with_usrlibdir+set}" = set; then | |
71082be4 | 16054 | withval=$with_usrlibdir; usrlibdir=$withval |
68f2de6d | 16055 | else |
71082be4 | 16056 | usrlibdir='${prefix}/lib' |
68f2de6d AK |
16057 | fi |
16058 | ||
16059 | ||
16060 | ||
16061 | # Check whether --with-usrsbindir was given. | |
16062 | if test "${with_usrsbindir+set}" = set; then | |
71082be4 | 16063 | withval=$with_usrsbindir; usrsbindir=$withval |
68f2de6d | 16064 | else |
71082be4 | 16065 | usrsbindir='${prefix}/sbin' |
68f2de6d AK |
16066 | fi |
16067 | ||
16068 | ||
a5f46f6a AK |
16069 | ################################################################################ |
16070 | ||
16071 | # Check whether --with-udev_prefix was given. | |
16072 | if test "${with_udev_prefix+set}" = set; then | |
71082be4 | 16073 | withval=$with_udev_prefix; udev_prefix=$withval |
a5f46f6a | 16074 | else |
71082be4 | 16075 | udev_prefix='${exec_prefix}' |
a5f46f6a AK |
16076 | fi |
16077 | ||
16078 | ||
78ce7acc AK |
16079 | |
16080 | # Check whether --with-udevdir was given. | |
16081 | if test "${with_udevdir+set}" = set; then | |
71082be4 | 16082 | withval=$with_udevdir; udevdir=$withval |
78ce7acc | 16083 | else |
71082be4 | 16084 | udevdir='${udev_prefix}/lib/udev/rules.d' |
78ce7acc AK |
16085 | fi |
16086 | ||
a5f46f6a | 16087 | |
ad6254c5 AK |
16088 | ################################################################################ |
16089 | if test x$READLINE = xyes; then | |
16090 | ||
16091 | ||
16092 | for ac_header in readline/readline.h readline/history.h | |
16093 | do | |
ec6a6fbe | 16094 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16096 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16097 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16099 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16100 | fi |
ec6a6fbe AK |
16101 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16102 | $as_echo "$as_val"'` | |
16103 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16104 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16105 | else |
16106 | # Is the header compilable? | |
ec6a6fbe AK |
16107 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16108 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16109 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16110 | /* confdefs.h. */ |
16111 | _ACEOF | |
16112 | cat confdefs.h >>conftest.$ac_ext | |
16113 | cat >>conftest.$ac_ext <<_ACEOF | |
16114 | /* end confdefs.h. */ | |
16115 | $ac_includes_default | |
16116 | #include <$ac_header> | |
16117 | _ACEOF | |
16118 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16119 | if { (ac_try="$ac_compile" |
16120 | case "(($ac_try" in | |
16121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16122 | *) ac_try_echo=$ac_try;; | |
16123 | esac | |
ec6a6fbe AK |
16124 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16125 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16126 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16127 | ac_status=$? |
8a2fc586 AK |
16128 | grep -v '^ *+' conftest.er1 >conftest.err |
16129 | rm -f conftest.er1 | |
16130 | cat conftest.err >&5 | |
ec6a6fbe | 16131 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16132 | (exit $ac_status); } && { |
16133 | test -z "$ac_c_werror_flag" || | |
16134 | test ! -s conftest.err | |
16135 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16136 | ac_header_compiler=yes |
16137 | else | |
ec6a6fbe | 16138 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16139 | sed 's/^/| /' conftest.$ac_ext >&5 |
16140 | ||
7a197a62 | 16141 | ac_header_compiler=no |
ad6254c5 | 16142 | fi |
7a197a62 AK |
16143 | |
16144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16145 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16146 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16147 | |
16148 | # Is the header present? | |
ec6a6fbe AK |
16149 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16150 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16151 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16152 | /* confdefs.h. */ |
16153 | _ACEOF | |
16154 | cat confdefs.h >>conftest.$ac_ext | |
16155 | cat >>conftest.$ac_ext <<_ACEOF | |
16156 | /* end confdefs.h. */ | |
16157 | #include <$ac_header> | |
16158 | _ACEOF | |
7a197a62 AK |
16159 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16160 | case "(($ac_try" in | |
16161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16162 | *) ac_try_echo=$ac_try;; | |
16163 | esac | |
ec6a6fbe AK |
16164 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16165 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16166 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16167 | ac_status=$? |
16168 | grep -v '^ *+' conftest.er1 >conftest.err | |
16169 | rm -f conftest.er1 | |
16170 | cat conftest.err >&5 | |
ec6a6fbe | 16171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16172 | (exit $ac_status); } >/dev/null && { |
16173 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16174 | test ! -s conftest.err | |
16175 | }; then | |
ad6254c5 AK |
16176 | ac_header_preproc=yes |
16177 | else | |
ec6a6fbe | 16178 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16179 | sed 's/^/| /' conftest.$ac_ext >&5 |
16180 | ||
16181 | ac_header_preproc=no | |
16182 | fi | |
7a197a62 | 16183 | |
ad6254c5 | 16184 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16185 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16186 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16187 | |
16188 | # So? What about this header? | |
8a2fc586 AK |
16189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16190 | yes:no: ) | |
ec6a6fbe AK |
16191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16192 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16194 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16195 | ac_header_preproc=yes |
ad6254c5 | 16196 | ;; |
8a2fc586 | 16197 | no:yes:* ) |
ec6a6fbe AK |
16198 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16199 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16200 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16201 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16203 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16205 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16207 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16209 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16210 | |
ad6254c5 AK |
16211 | ;; |
16212 | esac | |
ec6a6fbe AK |
16213 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16214 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16215 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16216 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16217 | else |
8a2fc586 | 16218 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16219 | fi |
ec6a6fbe AK |
16220 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16221 | $as_echo "$as_val"'` | |
16222 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16223 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16224 | |
16225 | fi | |
ec6a6fbe AK |
16226 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16227 | $as_echo "$as_val"'` | |
16228 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16229 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16230 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16231 | _ACEOF |
16232 | ||
16233 | else | |
ec6a6fbe AK |
16234 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16235 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16236 | { (exit 1); exit 1; }; } |
16237 | fi | |
16238 | ||
16239 | done | |
16240 | ||
16241 | fi | |
16242 | ||
5c7fc7c4 | 16243 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16244 | |
16245 | ||
16246 | ||
16247 | ||
16248 | ||
16249 | ||
16250 | ||
16251 | ||
16252 | ||
16253 | ||
16254 | 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 | |
16255 | do | |
ec6a6fbe | 16256 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16258 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16259 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16260 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16261 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16262 | fi |
ec6a6fbe AK |
16263 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16264 | $as_echo "$as_val"'` | |
16265 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16266 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16267 | else |
16268 | # Is the header compilable? | |
ec6a6fbe AK |
16269 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16270 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16271 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16272 | /* confdefs.h. */ |
16273 | _ACEOF | |
16274 | cat confdefs.h >>conftest.$ac_ext | |
16275 | cat >>conftest.$ac_ext <<_ACEOF | |
16276 | /* end confdefs.h. */ | |
16277 | $ac_includes_default | |
16278 | #include <$ac_header> | |
16279 | _ACEOF | |
16280 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16281 | if { (ac_try="$ac_compile" |
16282 | case "(($ac_try" in | |
16283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16284 | *) ac_try_echo=$ac_try;; | |
16285 | esac | |
ec6a6fbe AK |
16286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16287 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16288 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16289 | ac_status=$? |
8a2fc586 AK |
16290 | grep -v '^ *+' conftest.er1 >conftest.err |
16291 | rm -f conftest.er1 | |
16292 | cat conftest.err >&5 | |
ec6a6fbe | 16293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16294 | (exit $ac_status); } && { |
16295 | test -z "$ac_c_werror_flag" || | |
16296 | test ! -s conftest.err | |
16297 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16298 | ac_header_compiler=yes |
16299 | else | |
ec6a6fbe | 16300 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16301 | sed 's/^/| /' conftest.$ac_ext >&5 |
16302 | ||
7a197a62 | 16303 | ac_header_compiler=no |
ad6254c5 | 16304 | fi |
7a197a62 AK |
16305 | |
16306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16307 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16308 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16309 | |
16310 | # Is the header present? | |
ec6a6fbe AK |
16311 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16312 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16313 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16314 | /* confdefs.h. */ |
16315 | _ACEOF | |
16316 | cat confdefs.h >>conftest.$ac_ext | |
16317 | cat >>conftest.$ac_ext <<_ACEOF | |
16318 | /* end confdefs.h. */ | |
16319 | #include <$ac_header> | |
16320 | _ACEOF | |
7a197a62 AK |
16321 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16322 | case "(($ac_try" in | |
16323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16324 | *) ac_try_echo=$ac_try;; | |
16325 | esac | |
ec6a6fbe AK |
16326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16327 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16328 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16329 | ac_status=$? |
16330 | grep -v '^ *+' conftest.er1 >conftest.err | |
16331 | rm -f conftest.er1 | |
16332 | cat conftest.err >&5 | |
ec6a6fbe | 16333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16334 | (exit $ac_status); } >/dev/null && { |
16335 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16336 | test ! -s conftest.err | |
16337 | }; then | |
ad6254c5 AK |
16338 | ac_header_preproc=yes |
16339 | else | |
ec6a6fbe | 16340 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16341 | sed 's/^/| /' conftest.$ac_ext >&5 |
16342 | ||
16343 | ac_header_preproc=no | |
16344 | fi | |
7a197a62 | 16345 | |
ad6254c5 | 16346 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16347 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16348 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16349 | |
16350 | # So? What about this header? | |
8a2fc586 AK |
16351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16352 | yes:no: ) | |
ec6a6fbe AK |
16353 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16354 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16355 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16356 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16357 | ac_header_preproc=yes |
ad6254c5 | 16358 | ;; |
8a2fc586 | 16359 | no:yes:* ) |
ec6a6fbe AK |
16360 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16361 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16362 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16363 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16364 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16365 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16366 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16367 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16368 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16369 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16370 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16371 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16372 | |
ad6254c5 AK |
16373 | ;; |
16374 | esac | |
ec6a6fbe AK |
16375 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16376 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16377 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16378 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16379 | else |
8a2fc586 | 16380 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16381 | fi |
ec6a6fbe AK |
16382 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16383 | $as_echo "$as_val"'` | |
16384 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16385 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16386 | |
16387 | fi | |
ec6a6fbe AK |
16388 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16389 | $as_echo "$as_val"'` | |
16390 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16391 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16392 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16393 | _ACEOF |
16394 | ||
16395 | else | |
ec6a6fbe AK |
16396 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16397 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16398 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16399 | fi |
16400 | ||
ad6254c5 AK |
16401 | done |
16402 | ||
16403 | ||
795ca3e5 | 16404 | |
8106cdd5 | 16405 | |
ad6254c5 AK |
16406 | |
16407 | ||
16408 | for ac_func in dup2 getmntent memmove select socket | |
16409 | do | |
ec6a6fbe AK |
16410 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16411 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16412 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16413 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16414 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16415 | else |
ad6254c5 | 16416 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16417 | /* confdefs.h. */ |
16418 | _ACEOF | |
16419 | cat confdefs.h >>conftest.$ac_ext | |
16420 | cat >>conftest.$ac_ext <<_ACEOF | |
16421 | /* end confdefs.h. */ | |
8a2fc586 AK |
16422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16424 | #define $ac_func innocuous_$ac_func | |
16425 | ||
795ca3e5 | 16426 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16427 | which can conflict with char $ac_func (); below. |
16428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16429 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16430 | |
ad6254c5 AK |
16431 | #ifdef __STDC__ |
16432 | # include <limits.h> | |
16433 | #else | |
16434 | # include <assert.h> | |
16435 | #endif | |
8a2fc586 AK |
16436 | |
16437 | #undef $ac_func | |
16438 | ||
7a197a62 AK |
16439 | /* Override any GCC internal prototype to avoid an error. |
16440 | Use char because int might match the return type of a GCC | |
16441 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16442 | #ifdef __cplusplus |
16443 | extern "C" | |
ad6254c5 | 16444 | #endif |
ad6254c5 | 16445 | char $ac_func (); |
795ca3e5 AK |
16446 | /* The GNU C library defines this for functions which it implements |
16447 | to always fail with ENOSYS. Some functions are actually named | |
16448 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16449 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16450 | choke me |
795ca3e5 AK |
16451 | #endif |
16452 | ||
ad6254c5 AK |
16453 | int |
16454 | main () | |
16455 | { | |
7a197a62 | 16456 | return $ac_func (); |
ad6254c5 AK |
16457 | ; |
16458 | return 0; | |
16459 | } | |
16460 | _ACEOF | |
16461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16462 | if { (ac_try="$ac_link" |
16463 | case "(($ac_try" in | |
16464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16465 | *) ac_try_echo=$ac_try;; | |
16466 | esac | |
ec6a6fbe AK |
16467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16468 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16469 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16470 | ac_status=$? |
8a2fc586 AK |
16471 | grep -v '^ *+' conftest.er1 >conftest.err |
16472 | rm -f conftest.er1 | |
16473 | cat conftest.err >&5 | |
ec6a6fbe | 16474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16475 | (exit $ac_status); } && { |
16476 | test -z "$ac_c_werror_flag" || | |
16477 | test ! -s conftest.err | |
ec6a6fbe AK |
16478 | } && test -s conftest$ac_exeext && { |
16479 | test "$cross_compiling" = yes || | |
16480 | $as_test_x conftest$ac_exeext | |
16481 | }; then | |
ad6254c5 | 16482 | eval "$as_ac_var=yes" |
795ca3e5 | 16483 | else |
ec6a6fbe | 16484 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16485 | sed 's/^/| /' conftest.$ac_ext >&5 |
16486 | ||
7a197a62 | 16487 | eval "$as_ac_var=no" |
80992638 | 16488 | fi |
7a197a62 | 16489 | |
ec6a6fbe | 16490 | rm -rf conftest.dSYM |
25fbec5b | 16491 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16492 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16493 | fi |
ec6a6fbe AK |
16494 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16495 | $as_echo "$as_val"'` | |
16496 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16497 | $as_echo "$ac_res" >&6; } | |
16498 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16499 | $as_echo "$as_val"'` | |
16500 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16501 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16502 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16503 | _ACEOF |
80992638 AK |
16504 | |
16505 | else | |
ec6a6fbe AK |
16506 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16507 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16508 | { (exit 1); exit 1; }; } |
8106cdd5 | 16509 | fi |
ad6254c5 | 16510 | done |
795ca3e5 | 16511 | |
25fbec5b AK |
16512 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16513 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16514 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16515 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16516 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16517 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16518 | else |
16519 | ac_func_search_save_LIBS=$LIBS | |
16520 | cat >conftest.$ac_ext <<_ACEOF | |
16521 | /* confdefs.h. */ | |
16522 | _ACEOF | |
16523 | cat confdefs.h >>conftest.$ac_ext | |
16524 | cat >>conftest.$ac_ext <<_ACEOF | |
16525 | /* end confdefs.h. */ | |
80992638 | 16526 | |
7a197a62 AK |
16527 | /* Override any GCC internal prototype to avoid an error. |
16528 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16529 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16530 | #ifdef __cplusplus |
16531 | extern "C" | |
16532 | #endif | |
25fbec5b | 16533 | char getmntent (); |
ad6254c5 AK |
16534 | int |
16535 | main () | |
16536 | { | |
25fbec5b | 16537 | return getmntent (); |
ad6254c5 AK |
16538 | ; |
16539 | return 0; | |
16540 | } | |
16541 | _ACEOF | |
25fbec5b AK |
16542 | for ac_lib in '' sun seq gen; do |
16543 | if test -z "$ac_lib"; then | |
16544 | ac_res="none required" | |
16545 | else | |
16546 | ac_res=-l$ac_lib | |
16547 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16548 | fi | |
16549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16550 | if { (ac_try="$ac_link" |
16551 | case "(($ac_try" in | |
16552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16553 | *) ac_try_echo=$ac_try;; | |
16554 | esac | |
ec6a6fbe AK |
16555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16556 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16557 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16558 | ac_status=$? |
8a2fc586 AK |
16559 | grep -v '^ *+' conftest.er1 >conftest.err |
16560 | rm -f conftest.er1 | |
16561 | cat conftest.err >&5 | |
ec6a6fbe | 16562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16563 | (exit $ac_status); } && { |
16564 | test -z "$ac_c_werror_flag" || | |
16565 | test ! -s conftest.err | |
ec6a6fbe AK |
16566 | } && test -s conftest$ac_exeext && { |
16567 | test "$cross_compiling" = yes || | |
16568 | $as_test_x conftest$ac_exeext | |
16569 | }; then | |
25fbec5b | 16570 | ac_cv_search_getmntent=$ac_res |
80992638 | 16571 | else |
ec6a6fbe | 16572 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16573 | sed 's/^/| /' conftest.$ac_ext >&5 |
16574 | ||
25fbec5b | 16575 | |
795ca3e5 AK |
16576 | fi |
16577 | ||
ec6a6fbe | 16578 | rm -rf conftest.dSYM |
25fbec5b AK |
16579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16580 | conftest$ac_exeext | |
16581 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16582 | break | |
795ca3e5 | 16583 | fi |
25fbec5b AK |
16584 | done |
16585 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16586 | : | |
16587 | else | |
16588 | ac_cv_search_getmntent=no | |
16589 | fi | |
16590 | rm conftest.$ac_ext | |
16591 | LIBS=$ac_func_search_save_LIBS | |
16592 | fi | |
ec6a6fbe AK |
16593 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16594 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16595 | ac_res=$ac_cv_search_getmntent |
16596 | if test "$ac_res" != no; then | |
16597 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16598 | ac_cv_func_getmntent=yes | |
16599 | ||
16600 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16601 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16602 | _ACEOF |
795ca3e5 | 16603 | |
25fbec5b AK |
16604 | else |
16605 | ac_cv_func_getmntent=no | |
795ca3e5 | 16606 | fi |
795ca3e5 AK |
16607 | |
16608 | ||
ad6254c5 AK |
16609 | |
16610 | ||
16611 | for ac_header in sys/select.h sys/socket.h | |
16612 | do | |
ec6a6fbe | 16613 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16615 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16616 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16617 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16618 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16619 | fi |
ec6a6fbe AK |
16620 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16621 | $as_echo "$as_val"'` | |
16622 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16623 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16624 | else |
ad6254c5 | 16625 | # Is the header compilable? |
ec6a6fbe AK |
16626 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16627 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16628 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16629 | /* confdefs.h. */ |
16630 | _ACEOF | |
16631 | cat confdefs.h >>conftest.$ac_ext | |
16632 | cat >>conftest.$ac_ext <<_ACEOF | |
16633 | /* end confdefs.h. */ | |
16634 | $ac_includes_default | |
16635 | #include <$ac_header> | |
16636 | _ACEOF | |
16637 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16638 | if { (ac_try="$ac_compile" |
16639 | case "(($ac_try" in | |
16640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16641 | *) ac_try_echo=$ac_try;; | |
16642 | esac | |
ec6a6fbe AK |
16643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16644 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16645 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16646 | ac_status=$? |
8a2fc586 AK |
16647 | grep -v '^ *+' conftest.er1 >conftest.err |
16648 | rm -f conftest.er1 | |
16649 | cat conftest.err >&5 | |
ec6a6fbe | 16650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16651 | (exit $ac_status); } && { |
16652 | test -z "$ac_c_werror_flag" || | |
16653 | test ! -s conftest.err | |
16654 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16655 | ac_header_compiler=yes |
80992638 | 16656 | else |
ec6a6fbe | 16657 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16658 | sed 's/^/| /' conftest.$ac_ext >&5 |
16659 | ||
7a197a62 | 16660 | ac_header_compiler=no |
ad6254c5 | 16661 | fi |
7a197a62 AK |
16662 | |
16663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16664 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16665 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16666 | |
16667 | # Is the header present? | |
ec6a6fbe AK |
16668 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16669 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16670 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16671 | /* confdefs.h. */ |
16672 | _ACEOF | |
16673 | cat confdefs.h >>conftest.$ac_ext | |
16674 | cat >>conftest.$ac_ext <<_ACEOF | |
16675 | /* end confdefs.h. */ | |
16676 | #include <$ac_header> | |
16677 | _ACEOF | |
7a197a62 AK |
16678 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16679 | case "(($ac_try" in | |
16680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16681 | *) ac_try_echo=$ac_try;; | |
16682 | esac | |
ec6a6fbe AK |
16683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16684 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16685 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16686 | ac_status=$? |
16687 | grep -v '^ *+' conftest.er1 >conftest.err | |
16688 | rm -f conftest.er1 | |
16689 | cat conftest.err >&5 | |
ec6a6fbe | 16690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16691 | (exit $ac_status); } >/dev/null && { |
16692 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16693 | test ! -s conftest.err | |
16694 | }; then | |
ad6254c5 AK |
16695 | ac_header_preproc=yes |
16696 | else | |
ec6a6fbe | 16697 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16698 | sed 's/^/| /' conftest.$ac_ext >&5 |
16699 | ||
16700 | ac_header_preproc=no | |
16701 | fi | |
7a197a62 | 16702 | |
ad6254c5 | 16703 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16704 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16705 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16706 | |
16707 | # So? What about this header? | |
8a2fc586 AK |
16708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16709 | yes:no: ) | |
ec6a6fbe AK |
16710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16711 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16712 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16713 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16714 | ac_header_preproc=yes |
ad6254c5 | 16715 | ;; |
8a2fc586 | 16716 | no:yes:* ) |
ec6a6fbe AK |
16717 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16718 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16719 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16720 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16721 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16722 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16723 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16724 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16725 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16726 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16727 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16728 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16729 | |
ad6254c5 AK |
16730 | ;; |
16731 | esac | |
ec6a6fbe AK |
16732 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16733 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16735 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16736 | else |
8a2fc586 | 16737 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16738 | fi |
ec6a6fbe AK |
16739 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16740 | $as_echo "$as_val"'` | |
16741 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16742 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16743 | |
795ca3e5 | 16744 | fi |
ec6a6fbe AK |
16745 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16746 | $as_echo "$as_val"'` | |
16747 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16748 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16749 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16750 | _ACEOF |
16751 | ||
795ca3e5 AK |
16752 | fi |
16753 | ||
ad6254c5 AK |
16754 | done |
16755 | ||
ec6a6fbe AK |
16756 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16757 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16758 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16759 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16760 | else |
ad6254c5 | 16761 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16762 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16763 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
16764 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16765 | /* confdefs.h. */ |
16766 | _ACEOF | |
16767 | cat confdefs.h >>conftest.$ac_ext | |
16768 | cat >>conftest.$ac_ext <<_ACEOF | |
16769 | /* end confdefs.h. */ | |
16770 | $ac_includes_default | |
25fbec5b | 16771 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16772 | # include <sys/select.h> |
16773 | #endif | |
25fbec5b | 16774 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16775 | # include <sys/socket.h> |
16776 | #endif | |
16777 | ||
16778 | int | |
16779 | main () | |
16780 | { | |
16781 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16782 | $ac_arg234, $ac_arg234, $ac_arg234, |
16783 | $ac_arg5); | |
ad6254c5 AK |
16784 | ; |
16785 | return 0; | |
16786 | } | |
16787 | _ACEOF | |
16788 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16789 | if { (ac_try="$ac_compile" |
16790 | case "(($ac_try" in | |
16791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16792 | *) ac_try_echo=$ac_try;; | |
16793 | esac | |
ec6a6fbe AK |
16794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16795 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16796 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16797 | ac_status=$? |
8a2fc586 AK |
16798 | grep -v '^ *+' conftest.er1 >conftest.err |
16799 | rm -f conftest.er1 | |
16800 | cat conftest.err >&5 | |
ec6a6fbe | 16801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16802 | (exit $ac_status); } && { |
16803 | test -z "$ac_c_werror_flag" || | |
16804 | test ! -s conftest.err | |
16805 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16806 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
16807 | else | |
ec6a6fbe | 16808 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16809 | sed 's/^/| /' conftest.$ac_ext >&5 |
16810 | ||
7a197a62 | 16811 | |
ad6254c5 | 16812 | fi |
7a197a62 AK |
16813 | |
16814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
16815 | done |
16816 | done | |
16817 | done | |
16818 | # Provide a safe default value. | |
16819 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
16820 | ||
26e7f2e0 | 16821 | fi |
ec6a6fbe AK |
16822 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
16823 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
16824 | ac_save_IFS=$IFS; IFS=',' |
16825 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
16826 | IFS=$ac_save_IFS | |
16827 | shift | |
16828 | ||
16829 | cat >>confdefs.h <<_ACEOF | |
16830 | #define SELECT_TYPE_ARG1 $1 | |
16831 | _ACEOF | |
16832 | ||
16833 | ||
16834 | cat >>confdefs.h <<_ACEOF | |
16835 | #define SELECT_TYPE_ARG234 ($2) | |
16836 | _ACEOF | |
16837 | ||
16838 | ||
16839 | cat >>confdefs.h <<_ACEOF | |
16840 | #define SELECT_TYPE_ARG5 ($3) | |
16841 | _ACEOF | |
16842 | ||
80992638 | 16843 | rm -f conftest* |
80992638 | 16844 | |
8106cdd5 | 16845 | fi |
ad6254c5 | 16846 | |
ad6254c5 AK |
16847 | if test x$CLUSTER != xnone; then |
16848 | ||
16849 | ||
16850 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 16851 | do |
ec6a6fbe | 16852 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16854 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16855 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16856 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16857 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16858 | fi |
ec6a6fbe AK |
16859 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16860 | $as_echo "$as_val"'` | |
16861 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16862 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16863 | else |
16864 | # Is the header compilable? | |
ec6a6fbe AK |
16865 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16866 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16867 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16868 | /* confdefs.h. */ |
16869 | _ACEOF | |
16870 | cat confdefs.h >>conftest.$ac_ext | |
16871 | cat >>conftest.$ac_ext <<_ACEOF | |
16872 | /* end confdefs.h. */ | |
16873 | $ac_includes_default | |
16874 | #include <$ac_header> | |
16875 | _ACEOF | |
16876 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16877 | if { (ac_try="$ac_compile" |
16878 | case "(($ac_try" in | |
16879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16880 | *) ac_try_echo=$ac_try;; | |
16881 | esac | |
ec6a6fbe AK |
16882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16883 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16884 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16885 | ac_status=$? |
8a2fc586 AK |
16886 | grep -v '^ *+' conftest.er1 >conftest.err |
16887 | rm -f conftest.er1 | |
16888 | cat conftest.err >&5 | |
ec6a6fbe | 16889 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16890 | (exit $ac_status); } && { |
16891 | test -z "$ac_c_werror_flag" || | |
16892 | test ! -s conftest.err | |
16893 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16894 | ac_header_compiler=yes |
16895 | else | |
ec6a6fbe | 16896 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16897 | sed 's/^/| /' conftest.$ac_ext >&5 |
16898 | ||
7a197a62 | 16899 | ac_header_compiler=no |
ad6254c5 | 16900 | fi |
7a197a62 AK |
16901 | |
16902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16903 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16904 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16905 | |
16906 | # Is the header present? | |
ec6a6fbe AK |
16907 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16908 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16909 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16910 | /* confdefs.h. */ |
16911 | _ACEOF | |
16912 | cat confdefs.h >>conftest.$ac_ext | |
16913 | cat >>conftest.$ac_ext <<_ACEOF | |
16914 | /* end confdefs.h. */ | |
16915 | #include <$ac_header> | |
16916 | _ACEOF | |
7a197a62 AK |
16917 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16918 | case "(($ac_try" in | |
16919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16920 | *) ac_try_echo=$ac_try;; | |
16921 | esac | |
ec6a6fbe AK |
16922 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16923 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16924 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16925 | ac_status=$? |
16926 | grep -v '^ *+' conftest.er1 >conftest.err | |
16927 | rm -f conftest.er1 | |
16928 | cat conftest.err >&5 | |
ec6a6fbe | 16929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16930 | (exit $ac_status); } >/dev/null && { |
16931 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16932 | test ! -s conftest.err | |
16933 | }; then | |
ad6254c5 AK |
16934 | ac_header_preproc=yes |
16935 | else | |
ec6a6fbe | 16936 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16937 | sed 's/^/| /' conftest.$ac_ext >&5 |
16938 | ||
16939 | ac_header_preproc=no | |
16940 | fi | |
7a197a62 | 16941 | |
ad6254c5 | 16942 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16943 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16944 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16945 | |
16946 | # So? What about this header? | |
8a2fc586 AK |
16947 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16948 | yes:no: ) | |
ec6a6fbe AK |
16949 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16950 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16951 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16952 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16953 | ac_header_preproc=yes |
ad6254c5 | 16954 | ;; |
8a2fc586 | 16955 | no:yes:* ) |
ec6a6fbe AK |
16956 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16957 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16958 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16959 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16960 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16961 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16962 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16963 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16964 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16965 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16966 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16967 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16968 | |
ad6254c5 AK |
16969 | ;; |
16970 | esac | |
ec6a6fbe AK |
16971 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16972 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16973 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16974 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16975 | else |
8a2fc586 | 16976 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 16977 | fi |
ec6a6fbe AK |
16978 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16979 | $as_echo "$as_val"'` | |
16980 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16981 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16982 | |
16983 | fi | |
ec6a6fbe AK |
16984 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16985 | $as_echo "$as_val"'` | |
16986 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16987 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16988 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16989 | _ACEOF |
16990 | ||
80992638 | 16991 | else |
ec6a6fbe AK |
16992 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16993 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16994 | { (exit 1); exit 1; }; } |
b896caa1 | 16995 | fi |
ad6254c5 | 16996 | |
b896caa1 AK |
16997 | done |
16998 | ||
16999 | ||
ad6254c5 AK |
17000 | for ac_func in socket |
17001 | do | |
ec6a6fbe AK |
17002 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17003 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17004 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 17005 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17006 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 17007 | else |
ad6254c5 | 17008 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17009 | /* confdefs.h. */ |
17010 | _ACEOF | |
17011 | cat confdefs.h >>conftest.$ac_ext | |
17012 | cat >>conftest.$ac_ext <<_ACEOF | |
17013 | /* end confdefs.h. */ | |
8a2fc586 AK |
17014 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17016 | #define $ac_func innocuous_$ac_func | |
17017 | ||
ad6254c5 AK |
17018 | /* System header to define __stub macros and hopefully few prototypes, |
17019 | which can conflict with char $ac_func (); below. | |
17020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17021 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 17022 | |
ad6254c5 AK |
17023 | #ifdef __STDC__ |
17024 | # include <limits.h> | |
17025 | #else | |
17026 | # include <assert.h> | |
17027 | #endif | |
8a2fc586 AK |
17028 | |
17029 | #undef $ac_func | |
17030 | ||
7a197a62 AK |
17031 | /* Override any GCC internal prototype to avoid an error. |
17032 | Use char because int might match the return type of a GCC | |
17033 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
17034 | #ifdef __cplusplus |
17035 | extern "C" | |
ad6254c5 | 17036 | #endif |
ad6254c5 AK |
17037 | char $ac_func (); |
17038 | /* The GNU C library defines this for functions which it implements | |
17039 | to always fail with ENOSYS. Some functions are actually named | |
17040 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 17041 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 17042 | choke me |
ad6254c5 AK |
17043 | #endif |
17044 | ||
17045 | int | |
17046 | main () | |
17047 | { | |
7a197a62 | 17048 | return $ac_func (); |
ad6254c5 AK |
17049 | ; |
17050 | return 0; | |
17051 | } | |
17052 | _ACEOF | |
17053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
17054 | if { (ac_try="$ac_link" |
17055 | case "(($ac_try" in | |
17056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17057 | *) ac_try_echo=$ac_try;; | |
17058 | esac | |
ec6a6fbe AK |
17059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17060 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17061 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 17062 | ac_status=$? |
8a2fc586 AK |
17063 | grep -v '^ *+' conftest.er1 >conftest.err |
17064 | rm -f conftest.er1 | |
17065 | cat conftest.err >&5 | |
ec6a6fbe | 17066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17067 | (exit $ac_status); } && { |
17068 | test -z "$ac_c_werror_flag" || | |
17069 | test ! -s conftest.err | |
ec6a6fbe AK |
17070 | } && test -s conftest$ac_exeext && { |
17071 | test "$cross_compiling" = yes || | |
17072 | $as_test_x conftest$ac_exeext | |
17073 | }; then | |
ad6254c5 AK |
17074 | eval "$as_ac_var=yes" |
17075 | else | |
ec6a6fbe | 17076 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17077 | sed 's/^/| /' conftest.$ac_ext >&5 |
17078 | ||
7a197a62 | 17079 | eval "$as_ac_var=no" |
ad6254c5 | 17080 | fi |
7a197a62 | 17081 | |
ec6a6fbe | 17082 | rm -rf conftest.dSYM |
25fbec5b | 17083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 17084 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 17085 | fi |
ec6a6fbe AK |
17086 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17087 | $as_echo "$as_val"'` | |
17088 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17089 | $as_echo "$ac_res" >&6; } | |
17090 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17091 | $as_echo "$as_val"'` | |
17092 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17093 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17094 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
17095 | _ACEOF |
17096 | ||
17097 | else | |
ec6a6fbe AK |
17098 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17099 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
17100 | { (exit 1); exit 1; }; } |
17101 | fi | |
17102 | done | |
17103 | ||
17104 | fi | |
17105 | ||
d911ec67 AK |
17106 | if test x$DMEVENTD = xyes; then |
17107 | ||
17108 | for ac_header in arpa/inet.h | |
17109 | do | |
17110 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17112 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17113 | $as_echo_n "checking for $ac_header... " >&6; } | |
17114 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17115 | $as_echo_n "(cached) " >&6 | |
17116 | fi | |
17117 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17118 | $as_echo "$as_val"'` | |
17119 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17120 | $as_echo "$ac_res" >&6; } | |
17121 | else | |
17122 | # Is the header compilable? | |
17123 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17124 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17125 | cat >conftest.$ac_ext <<_ACEOF | |
17126 | /* confdefs.h. */ | |
17127 | _ACEOF | |
17128 | cat confdefs.h >>conftest.$ac_ext | |
17129 | cat >>conftest.$ac_ext <<_ACEOF | |
17130 | /* end confdefs.h. */ | |
17131 | $ac_includes_default | |
17132 | #include <$ac_header> | |
17133 | _ACEOF | |
17134 | rm -f conftest.$ac_objext | |
17135 | if { (ac_try="$ac_compile" | |
17136 | case "(($ac_try" in | |
17137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17138 | *) ac_try_echo=$ac_try;; | |
17139 | esac | |
17140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17141 | $as_echo "$ac_try_echo") >&5 | |
17142 | (eval "$ac_compile") 2>conftest.er1 | |
17143 | ac_status=$? | |
17144 | grep -v '^ *+' conftest.er1 >conftest.err | |
17145 | rm -f conftest.er1 | |
17146 | cat conftest.err >&5 | |
17147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17148 | (exit $ac_status); } && { | |
17149 | test -z "$ac_c_werror_flag" || | |
17150 | test ! -s conftest.err | |
17151 | } && test -s conftest.$ac_objext; then | |
17152 | ac_header_compiler=yes | |
17153 | else | |
17154 | $as_echo "$as_me: failed program was:" >&5 | |
17155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17156 | ||
17157 | ac_header_compiler=no | |
17158 | fi | |
17159 | ||
17160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17161 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17162 | $as_echo "$ac_header_compiler" >&6; } | |
17163 | ||
17164 | # Is the header present? | |
17165 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17166 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17167 | cat >conftest.$ac_ext <<_ACEOF | |
17168 | /* confdefs.h. */ | |
17169 | _ACEOF | |
17170 | cat confdefs.h >>conftest.$ac_ext | |
17171 | cat >>conftest.$ac_ext <<_ACEOF | |
17172 | /* end confdefs.h. */ | |
17173 | #include <$ac_header> | |
17174 | _ACEOF | |
17175 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17176 | case "(($ac_try" in | |
17177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17178 | *) ac_try_echo=$ac_try;; | |
17179 | esac | |
17180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17181 | $as_echo "$ac_try_echo") >&5 | |
17182 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17183 | ac_status=$? | |
17184 | grep -v '^ *+' conftest.er1 >conftest.err | |
17185 | rm -f conftest.er1 | |
17186 | cat conftest.err >&5 | |
17187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17188 | (exit $ac_status); } >/dev/null && { | |
17189 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17190 | test ! -s conftest.err | |
17191 | }; then | |
17192 | ac_header_preproc=yes | |
17193 | else | |
17194 | $as_echo "$as_me: failed program was:" >&5 | |
17195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17196 | ||
17197 | ac_header_preproc=no | |
17198 | fi | |
17199 | ||
17200 | rm -f conftest.err conftest.$ac_ext | |
17201 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17202 | $as_echo "$ac_header_preproc" >&6; } | |
17203 | ||
17204 | # So? What about this header? | |
17205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17206 | yes:no: ) | |
17207 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17208 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17209 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17210 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17211 | ac_header_preproc=yes | |
17212 | ;; | |
17213 | no:yes:* ) | |
17214 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17215 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17216 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17217 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17218 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17219 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17220 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17221 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17222 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17223 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17225 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17226 | ||
17227 | ;; | |
17228 | esac | |
17229 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17230 | $as_echo_n "checking for $ac_header... " >&6; } | |
17231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17232 | $as_echo_n "(cached) " >&6 | |
17233 | else | |
17234 | eval "$as_ac_Header=\$ac_header_preproc" | |
17235 | fi | |
17236 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17237 | $as_echo "$as_val"'` | |
17238 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17239 | $as_echo "$ac_res" >&6; } | |
17240 | ||
17241 | fi | |
17242 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17243 | $as_echo "$as_val"'` | |
17244 | if test "x$as_val" = x""yes; then | |
17245 | cat >>confdefs.h <<_ACEOF | |
17246 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17247 | _ACEOF | |
17248 | ||
17249 | else | |
17250 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17251 | $as_echo "$as_me: error: bailing out" >&2;} | |
17252 | { (exit 1); exit 1; }; } | |
17253 | fi | |
17254 | ||
17255 | done | |
17256 | ||
17257 | fi | |
17258 | ||
ad6254c5 AK |
17259 | if test x$HAVE_LIBDL = xyes; then |
17260 | ||
17261 | for ac_header in dlfcn.h | |
17262 | do | |
ec6a6fbe | 17263 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17264 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17265 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17266 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17267 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17268 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17269 | fi |
ec6a6fbe AK |
17270 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17271 | $as_echo "$as_val"'` | |
17272 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17273 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17274 | else |
17275 | # Is the header compilable? | |
ec6a6fbe AK |
17276 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17277 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17278 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17279 | /* confdefs.h. */ |
17280 | _ACEOF | |
17281 | cat confdefs.h >>conftest.$ac_ext | |
17282 | cat >>conftest.$ac_ext <<_ACEOF | |
17283 | /* end confdefs.h. */ | |
17284 | $ac_includes_default | |
17285 | #include <$ac_header> | |
17286 | _ACEOF | |
17287 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17288 | if { (ac_try="$ac_compile" |
17289 | case "(($ac_try" in | |
17290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17291 | *) ac_try_echo=$ac_try;; | |
17292 | esac | |
ec6a6fbe AK |
17293 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17294 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17295 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17296 | ac_status=$? |
8a2fc586 AK |
17297 | grep -v '^ *+' conftest.er1 >conftest.err |
17298 | rm -f conftest.er1 | |
17299 | cat conftest.err >&5 | |
ec6a6fbe | 17300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17301 | (exit $ac_status); } && { |
17302 | test -z "$ac_c_werror_flag" || | |
17303 | test ! -s conftest.err | |
17304 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17305 | ac_header_compiler=yes |
17306 | else | |
ec6a6fbe | 17307 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17308 | sed 's/^/| /' conftest.$ac_ext >&5 |
17309 | ||
7a197a62 | 17310 | ac_header_compiler=no |
ad6254c5 | 17311 | fi |
7a197a62 AK |
17312 | |
17313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17314 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17315 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17316 | |
17317 | # Is the header present? | |
ec6a6fbe AK |
17318 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17319 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17320 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17321 | /* confdefs.h. */ |
17322 | _ACEOF | |
17323 | cat confdefs.h >>conftest.$ac_ext | |
17324 | cat >>conftest.$ac_ext <<_ACEOF | |
17325 | /* end confdefs.h. */ | |
17326 | #include <$ac_header> | |
17327 | _ACEOF | |
7a197a62 AK |
17328 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17329 | case "(($ac_try" in | |
17330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17331 | *) ac_try_echo=$ac_try;; | |
17332 | esac | |
ec6a6fbe AK |
17333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17334 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17335 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17336 | ac_status=$? |
17337 | grep -v '^ *+' conftest.er1 >conftest.err | |
17338 | rm -f conftest.er1 | |
17339 | cat conftest.err >&5 | |
ec6a6fbe | 17340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17341 | (exit $ac_status); } >/dev/null && { |
17342 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17343 | test ! -s conftest.err | |
17344 | }; then | |
ad6254c5 AK |
17345 | ac_header_preproc=yes |
17346 | else | |
ec6a6fbe | 17347 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17348 | sed 's/^/| /' conftest.$ac_ext >&5 |
17349 | ||
17350 | ac_header_preproc=no | |
17351 | fi | |
7a197a62 | 17352 | |
ad6254c5 | 17353 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17354 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17355 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17356 | |
17357 | # So? What about this header? | |
8a2fc586 AK |
17358 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17359 | yes:no: ) | |
ec6a6fbe AK |
17360 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17361 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17362 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17363 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17364 | ac_header_preproc=yes |
ad6254c5 | 17365 | ;; |
8a2fc586 | 17366 | no:yes:* ) |
ec6a6fbe AK |
17367 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17368 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17369 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17370 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17371 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17372 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17373 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17374 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17375 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17376 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17377 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17378 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17379 | |
ad6254c5 AK |
17380 | ;; |
17381 | esac | |
ec6a6fbe AK |
17382 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17383 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17384 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17385 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17386 | else |
8a2fc586 | 17387 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17388 | fi |
ec6a6fbe AK |
17389 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17390 | $as_echo "$as_val"'` | |
17391 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17392 | $as_echo "$ac_res" >&6; } | |
80992638 | 17393 | |
8106cdd5 | 17394 | fi |
ec6a6fbe AK |
17395 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17396 | $as_echo "$as_val"'` | |
17397 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17398 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17399 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17400 | _ACEOF |
795ca3e5 AK |
17401 | |
17402 | else | |
ec6a6fbe AK |
17403 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17404 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17405 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17406 | fi |
17407 | ||
ad6254c5 | 17408 | done |
80992638 | 17409 | |
ad6254c5 | 17410 | fi |
80992638 | 17411 | |
ad6254c5 | 17412 | if test x$INTL = xyes; then |
83912faa | 17413 | |
ad6254c5 AK |
17414 | for ac_header in libintl.h |
17415 | do | |
ec6a6fbe | 17416 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17417 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17418 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17419 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17421 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17422 | fi |
ec6a6fbe AK |
17423 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17424 | $as_echo "$as_val"'` | |
17425 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17426 | $as_echo "$ac_res" >&6; } | |
83912faa | 17427 | else |
ad6254c5 | 17428 | # Is the header compilable? |
ec6a6fbe AK |
17429 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17430 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17431 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17432 | /* confdefs.h. */ |
17433 | _ACEOF | |
17434 | cat confdefs.h >>conftest.$ac_ext | |
17435 | cat >>conftest.$ac_ext <<_ACEOF | |
17436 | /* end confdefs.h. */ | |
17437 | $ac_includes_default | |
17438 | #include <$ac_header> | |
17439 | _ACEOF | |
17440 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17441 | if { (ac_try="$ac_compile" |
17442 | case "(($ac_try" in | |
17443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17444 | *) ac_try_echo=$ac_try;; | |
17445 | esac | |
ec6a6fbe AK |
17446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17447 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17448 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17449 | ac_status=$? |
8a2fc586 AK |
17450 | grep -v '^ *+' conftest.er1 >conftest.err |
17451 | rm -f conftest.er1 | |
17452 | cat conftest.err >&5 | |
ec6a6fbe | 17453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17454 | (exit $ac_status); } && { |
17455 | test -z "$ac_c_werror_flag" || | |
17456 | test ! -s conftest.err | |
17457 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17458 | ac_header_compiler=yes |
17459 | else | |
ec6a6fbe | 17460 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17461 | sed 's/^/| /' conftest.$ac_ext >&5 |
17462 | ||
7a197a62 | 17463 | ac_header_compiler=no |
ad6254c5 | 17464 | fi |
7a197a62 AK |
17465 | |
17466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17467 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17468 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17469 | |
17470 | # Is the header present? | |
ec6a6fbe AK |
17471 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17472 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17473 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17474 | /* confdefs.h. */ |
17475 | _ACEOF | |
17476 | cat confdefs.h >>conftest.$ac_ext | |
17477 | cat >>conftest.$ac_ext <<_ACEOF | |
17478 | /* end confdefs.h. */ | |
17479 | #include <$ac_header> | |
17480 | _ACEOF | |
7a197a62 AK |
17481 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17482 | case "(($ac_try" in | |
17483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17484 | *) ac_try_echo=$ac_try;; | |
17485 | esac | |
ec6a6fbe AK |
17486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17487 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17488 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17489 | ac_status=$? |
17490 | grep -v '^ *+' conftest.er1 >conftest.err | |
17491 | rm -f conftest.er1 | |
17492 | cat conftest.err >&5 | |
ec6a6fbe | 17493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17494 | (exit $ac_status); } >/dev/null && { |
17495 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17496 | test ! -s conftest.err | |
17497 | }; then | |
ad6254c5 AK |
17498 | ac_header_preproc=yes |
17499 | else | |
ec6a6fbe | 17500 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17501 | sed 's/^/| /' conftest.$ac_ext >&5 |
17502 | ||
17503 | ac_header_preproc=no | |
17504 | fi | |
7a197a62 | 17505 | |
ad6254c5 | 17506 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17507 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17508 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17509 | |
17510 | # So? What about this header? | |
8a2fc586 AK |
17511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17512 | yes:no: ) | |
ec6a6fbe AK |
17513 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17514 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17515 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17516 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17517 | ac_header_preproc=yes |
ad6254c5 | 17518 | ;; |
8a2fc586 | 17519 | no:yes:* ) |
ec6a6fbe AK |
17520 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17521 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17522 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17523 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17525 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17527 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17528 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17529 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17530 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17531 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17532 | |
ad6254c5 AK |
17533 | ;; |
17534 | esac | |
ec6a6fbe AK |
17535 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17536 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17538 | $as_echo_n "(cached) " >&6 |
80992638 | 17539 | else |
8a2fc586 | 17540 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17541 | fi |
ec6a6fbe AK |
17542 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17543 | $as_echo "$as_val"'` | |
17544 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17545 | $as_echo "$ac_res" >&6; } | |
83912faa | 17546 | |
69792976 | 17547 | fi |
ec6a6fbe AK |
17548 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17549 | $as_echo "$as_val"'` | |
17550 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17551 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17552 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17553 | _ACEOF |
69792976 | 17554 | |
69792976 | 17555 | else |
ec6a6fbe AK |
17556 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17557 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17558 | { (exit 1); exit 1; }; } |
80992638 AK |
17559 | fi |
17560 | ||
ad6254c5 | 17561 | done |
69792976 | 17562 | |
ad6254c5 AK |
17563 | fi |
17564 | ||
a5f46f6a AK |
17565 | if test x$UDEV_SYNC = xyes; then |
17566 | ||
17567 | ||
17568 | for ac_header in sys/ipc.h sys/sem.h | |
17569 | do | |
17570 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17572 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17573 | $as_echo_n "checking for $ac_header... " >&6; } | |
17574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17575 | $as_echo_n "(cached) " >&6 | |
17576 | fi | |
17577 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17578 | $as_echo "$as_val"'` | |
17579 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17580 | $as_echo "$ac_res" >&6; } | |
17581 | else | |
17582 | # Is the header compilable? | |
17583 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17584 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17585 | cat >conftest.$ac_ext <<_ACEOF | |
17586 | /* confdefs.h. */ | |
17587 | _ACEOF | |
17588 | cat confdefs.h >>conftest.$ac_ext | |
17589 | cat >>conftest.$ac_ext <<_ACEOF | |
17590 | /* end confdefs.h. */ | |
17591 | $ac_includes_default | |
17592 | #include <$ac_header> | |
17593 | _ACEOF | |
17594 | rm -f conftest.$ac_objext | |
17595 | if { (ac_try="$ac_compile" | |
17596 | case "(($ac_try" in | |
17597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17598 | *) ac_try_echo=$ac_try;; | |
17599 | esac | |
17600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17601 | $as_echo "$ac_try_echo") >&5 | |
17602 | (eval "$ac_compile") 2>conftest.er1 | |
17603 | ac_status=$? | |
17604 | grep -v '^ *+' conftest.er1 >conftest.err | |
17605 | rm -f conftest.er1 | |
17606 | cat conftest.err >&5 | |
17607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17608 | (exit $ac_status); } && { | |
17609 | test -z "$ac_c_werror_flag" || | |
17610 | test ! -s conftest.err | |
17611 | } && test -s conftest.$ac_objext; then | |
17612 | ac_header_compiler=yes | |
17613 | else | |
17614 | $as_echo "$as_me: failed program was:" >&5 | |
17615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17616 | ||
17617 | ac_header_compiler=no | |
17618 | fi | |
17619 | ||
17620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17621 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17622 | $as_echo "$ac_header_compiler" >&6; } | |
17623 | ||
17624 | # Is the header present? | |
17625 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17626 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17627 | cat >conftest.$ac_ext <<_ACEOF | |
17628 | /* confdefs.h. */ | |
17629 | _ACEOF | |
17630 | cat confdefs.h >>conftest.$ac_ext | |
17631 | cat >>conftest.$ac_ext <<_ACEOF | |
17632 | /* end confdefs.h. */ | |
17633 | #include <$ac_header> | |
17634 | _ACEOF | |
17635 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17636 | case "(($ac_try" in | |
17637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17638 | *) ac_try_echo=$ac_try;; | |
17639 | esac | |
17640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17641 | $as_echo "$ac_try_echo") >&5 | |
17642 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17643 | ac_status=$? | |
17644 | grep -v '^ *+' conftest.er1 >conftest.err | |
17645 | rm -f conftest.er1 | |
17646 | cat conftest.err >&5 | |
17647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17648 | (exit $ac_status); } >/dev/null && { | |
17649 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17650 | test ! -s conftest.err | |
17651 | }; then | |
17652 | ac_header_preproc=yes | |
17653 | else | |
17654 | $as_echo "$as_me: failed program was:" >&5 | |
17655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17656 | ||
17657 | ac_header_preproc=no | |
17658 | fi | |
17659 | ||
17660 | rm -f conftest.err conftest.$ac_ext | |
17661 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17662 | $as_echo "$ac_header_preproc" >&6; } | |
17663 | ||
17664 | # So? What about this header? | |
17665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17666 | yes:no: ) | |
17667 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17668 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17669 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17670 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17671 | ac_header_preproc=yes | |
17672 | ;; | |
17673 | no:yes:* ) | |
17674 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17675 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17676 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17677 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17679 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17681 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17683 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17685 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17686 | ||
17687 | ;; | |
17688 | esac | |
17689 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17690 | $as_echo_n "checking for $ac_header... " >&6; } | |
17691 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17692 | $as_echo_n "(cached) " >&6 | |
17693 | else | |
17694 | eval "$as_ac_Header=\$ac_header_preproc" | |
17695 | fi | |
17696 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17697 | $as_echo "$as_val"'` | |
17698 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17699 | $as_echo "$ac_res" >&6; } | |
17700 | ||
17701 | fi | |
17702 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17703 | $as_echo "$as_val"'` | |
17704 | if test "x$as_val" = x""yes; then | |
17705 | cat >>confdefs.h <<_ACEOF | |
17706 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17707 | _ACEOF | |
17708 | ||
17709 | else | |
17710 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17711 | $as_echo "$as_me: error: bailing out" >&2;} | |
17712 | { (exit 1); exit 1; }; } | |
17713 | fi | |
17714 | ||
17715 | done | |
17716 | ||
17717 | fi | |
17718 | ||
a653923f AK |
17719 | ################################################################################ |
17720 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17721 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17722 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17723 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17724 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17725 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17726 | else |
17727 | case $MODPROBE_CMD in | |
17728 | [\\/]* | ?:[\\/]*) | |
17729 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17730 | ;; | |
17731 | *) | |
17732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17733 | for as_dir in $PATH | |
17734 | do | |
17735 | IFS=$as_save_IFS | |
17736 | test -z "$as_dir" && as_dir=. | |
17737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17739 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17740 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17741 | break 2 |
17742 | fi | |
17743 | done | |
17744 | done | |
7a197a62 | 17745 | IFS=$as_save_IFS |
72b2cb61 AK |
17746 | |
17747 | ;; | |
17748 | esac | |
17749 | fi | |
17750 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17751 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17752 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17753 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17754 | else |
ec6a6fbe AK |
17755 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17756 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17757 | fi |
17758 | ||
a653923f | 17759 | |
7a197a62 | 17760 | |
a653923f | 17761 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17762 | |
17763 | cat >>confdefs.h <<_ACEOF | |
17764 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17765 | _ACEOF | |
17766 | ||
a653923f AK |
17767 | fi |
17768 | ||
b5c2529b | 17769 | |
a9b601e2 ZK |
17770 | lvm_exec_prefix=$exec_prefix |
17771 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17772 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17773 | ||
b5c2529b | 17774 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17775 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17776 | _ACEOF |
17777 | ||
17778 | ||
17779 | if test "$CLVMD" != none; then | |
17780 | clvmd_prefix=$ac_default_prefix | |
17781 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17782 | ||
17783 | cat >>confdefs.h <<_ACEOF | |
17784 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17785 | _ACEOF | |
17786 | ||
17787 | fi | |
17788 | ||
80992638 | 17789 | ################################################################################ |
93bd259b AK |
17790 | if test "$BUILD_DMEVENTD" = yes; then |
17791 | ||
17792 | # Check whether --with-dmeventd-pidfile was given. | |
17793 | if test "${with_dmeventd_pidfile+set}" = set; then | |
71082be4 | 17794 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 17795 | else |
71082be4 | 17796 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
17797 | fi |
17798 | ||
93bd259b | 17799 | |
71082be4 ZK |
17800 | cat >>confdefs.h <<_ACEOF |
17801 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
17802 | _ACEOF | |
93bd259b | 17803 | |
71082be4 | 17804 | fi |
93bd259b AK |
17805 | |
17806 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
17807 | |
17808 | # Check whether --with-dmeventd-path was given. | |
17809 | if test "${with_dmeventd_path+set}" = set; then | |
71082be4 | 17810 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 17811 | else |
71082be4 | 17812 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
17813 | fi |
17814 | ||
93bd259b | 17815 | |
71082be4 ZK |
17816 | cat >>confdefs.h <<_ACEOF |
17817 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
17818 | _ACEOF | |
3399ae32 | 17819 | |
71082be4 | 17820 | fi |
3399ae32 | 17821 | |
8bae0a1e AK |
17822 | |
17823 | ||
17824 | ||
17825 | # Check whether --with-default-run-dir was given. | |
17826 | if test "${with_default_run_dir+set}" = set; then | |
17827 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
17828 | else | |
17829 | DEFAULT_RUN_DIR="/var/run/lvm" | |
17830 | fi | |
17831 | ||
17832 | cat >>confdefs.h <<_ACEOF | |
17833 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
17834 | _ACEOF | |
17835 | ||
17836 | ||
71082be4 | 17837 | ################################################################################ |
3399ae32 AK |
17838 | |
17839 | # Check whether --with-default-system-dir was given. | |
17840 | if test "${with_default_system_dir+set}" = set; then | |
71082be4 | 17841 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 17842 | else |
71082be4 | 17843 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
17844 | fi |
17845 | ||
71082be4 | 17846 | |
3399ae32 AK |
17847 | cat >>confdefs.h <<_ACEOF |
17848 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
17849 | _ACEOF | |
17850 | ||
17851 | ||
17852 | ||
3399ae32 AK |
17853 | # Check whether --with-default-archive-subdir was given. |
17854 | if test "${with_default_archive_subdir+set}" = set; then | |
71082be4 | 17855 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 17856 | else |
71082be4 | 17857 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
17858 | fi |
17859 | ||
71082be4 | 17860 | |
3399ae32 AK |
17861 | cat >>confdefs.h <<_ACEOF |
17862 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
17863 | _ACEOF | |
17864 | ||
17865 | ||
17866 | ||
3399ae32 AK |
17867 | # Check whether --with-default-backup-subdir was given. |
17868 | if test "${with_default_backup_subdir+set}" = set; then | |
71082be4 | 17869 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 17870 | else |
71082be4 | 17871 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
17872 | fi |
17873 | ||
71082be4 | 17874 | |
3399ae32 AK |
17875 | cat >>confdefs.h <<_ACEOF |
17876 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
17877 | _ACEOF | |
17878 | ||
17879 | ||
17880 | ||
3399ae32 AK |
17881 | # Check whether --with-default-cache-subdir was given. |
17882 | if test "${with_default_cache_subdir+set}" = set; then | |
71082be4 | 17883 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 17884 | else |
71082be4 | 17885 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
17886 | fi |
17887 | ||
71082be4 | 17888 | |
3399ae32 AK |
17889 | cat >>confdefs.h <<_ACEOF |
17890 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
17891 | _ACEOF | |
17892 | ||
17893 | ||
17894 | ||
3399ae32 AK |
17895 | # Check whether --with-default-locking-dir was given. |
17896 | if test "${with_default_locking_dir+set}" = set; then | |
71082be4 | 17897 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 17898 | else |
71082be4 | 17899 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
17900 | fi |
17901 | ||
71082be4 | 17902 | |
3399ae32 AK |
17903 | cat >>confdefs.h <<_ACEOF |
17904 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
17905 | _ACEOF | |
17906 | ||
17907 | ||
93bd259b | 17908 | ################################################################################ |
ec6a6fbe AK |
17909 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
17910 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
17911 | |
17912 | # Check whether --with-interface was given. | |
17913 | if test "${with_interface+set}" = set; then | |
71082be4 | 17914 | withval=$with_interface; interface=$withval |
93bd259b | 17915 | else |
71082be4 | 17916 | interface=ioctl |
93bd259b AK |
17917 | fi |
17918 | ||
17919 | if [ "x$interface" != xioctl ]; | |
17920 | then | |
ec6a6fbe AK |
17921 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
17922 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
17923 | { (exit 1); exit 1; }; } |
17924 | fi | |
ec6a6fbe AK |
17925 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
17926 | $as_echo "$interface" >&6; } | |
93bd259b AK |
17927 | |
17928 | ################################################################################ | |
db8b5af9 | 17929 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
17930 | |
17931 | cat >>confdefs.h <<_ACEOF | |
17932 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
17933 | _ACEOF | |
17934 | ||
17935 | ||
db8b5af9 | 17936 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 17937 | |
db8b5af9 | 17938 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 17939 | |
db8b5af9 | 17940 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 17941 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
17942 | VER=`echo "$VER" | $AWK '{print $1}'` |
17943 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
17944 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
17945 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
17946 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
17947 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
17948 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 17949 | |
80992638 | 17950 | ################################################################################ |
fae0c576 | 17951 | |
83912faa | 17952 | |
795ca3e5 AK |
17953 | |
17954 | ||
17955 | ||
17956 | ||
17957 | ||
17958 | ||
5a52dca9 | 17959 | |
8ef2b021 | 17960 | |
199e490e | 17961 | |
69792976 AK |
17962 | |
17963 | ||
17964 | ||
d0191583 | 17965 | |
69792976 | 17966 | |
8106cdd5 AK |
17967 | |
17968 | ||
17969 | ||
17970 | ||
17971 | ||
d68a82ec | 17972 | |
036f273a | 17973 | |
7d1552c9 | 17974 | |
8106cdd5 | 17975 | |
0a62c911 | 17976 | |
8106cdd5 | 17977 | |
4a7f3eb2 | 17978 | |
4922197a AK |
17979 | |
17980 | ||
d8ac0fbc | 17981 | |
1a9ea74d | 17982 | |
8a2fc586 AK |
17983 | |
17984 | ||
d0191583 | 17985 | |
93bd259b AK |
17986 | |
17987 | ||
17988 | ||
17989 | ||
17990 | ||
d0191583 JM |
17991 | |
17992 | ||
17993 | ||
17994 | ||
17995 | ||
8a2fc586 | 17996 | |
19a2c6e0 | 17997 | |
f7f0854e ZK |
17998 | |
17999 | ||
3ceb7608 | 18000 | |
8ce0cbda | 18001 | |
8b1a3214 | 18002 | |
ec6a6fbe AK |
18003 | |
18004 | ||
18005 | ||
18006 | ||
e2997b73 AK |
18007 | |
18008 | ||
18009 | ||
18010 | ||
18011 | ||
18012 | ||
a946372e AK |
18013 | |
18014 | ||
18015 | ||
18016 | ||
18017 | ||
18018 | ||
18019 | ||
18020 | ||
18021 | ||
18022 | ||
18023 | ||
ec6a6fbe | 18024 | |
33f732c5 | 18025 | |
66e941e8 | 18026 | |
d3c8211f | 18027 | |
7e3fe830 | 18028 | |
a5f46f6a AK |
18029 | |
18030 | ||
18031 | ||
572fefeb | 18032 | |
90c80887 | 18033 | |
3399ae32 AK |
18034 | |
18035 | ||
18036 | ||
18037 | ||
18038 | ||
90c80887 | 18039 | |
bf456146 | 18040 | |
e1b8a236 | 18041 | |
0878503f | 18042 | |
8fea97b7 | 18043 | |
54b362f9 | 18044 | |
b1f08e51 | 18045 | |
68f2de6d AK |
18046 | |
18047 | ||
80992638 | 18048 | ################################################################################ |
54b362f9 | 18049 | 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 | 18050 | |
ad6254c5 | 18051 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
18052 | # This file is a shell script that caches the results of configure |
18053 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
18054 | # scripts and configure runs, see configure's option --config-cache. |
18055 | # It is not useful on other systems. If it contains results you don't | |
18056 | # want to keep, you may remove or edit it. | |
795ca3e5 | 18057 | # |
ad6254c5 AK |
18058 | # config.status only pays attention to the cache file if you give it |
18059 | # the --recheck option to rerun configure. | |
795ca3e5 | 18060 | # |
ad6254c5 AK |
18061 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18062 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18063 | # following values. | |
18064 | ||
18065 | _ACEOF | |
18066 | ||
795ca3e5 AK |
18067 | # The following way of writing the cache mishandles newlines in values, |
18068 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 18069 | # So, we kill variables containing newlines. |
795ca3e5 AK |
18070 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18071 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
18072 | ( |
18073 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18074 | eval ac_val=\$$ac_var | |
18075 | case $ac_val in #( | |
18076 | *${as_nl}*) | |
18077 | case $ac_var in #( | |
ec6a6fbe AK |
18078 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
18079 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
18080 | esac |
18081 | case $ac_var in #( | |
18082 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 18083 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
18084 | *) $as_unset $ac_var ;; |
18085 | esac ;; | |
18086 | esac | |
18087 | done | |
18088 | ||
ad6254c5 | 18089 | (set) 2>&1 | |
7a197a62 AK |
18090 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18091 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
18092 | # `set' does not quote correctly, so add quotes (double-quote |
18093 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18094 | sed -n \ | |
8a2fc586 AK |
18095 | "s/'/'\\\\''/g; |
18096 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 18097 | ;; #( |
ad6254c5 AK |
18098 | *) |
18099 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 18100 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 18101 | ;; |
7a197a62 AK |
18102 | esac | |
18103 | sort | |
18104 | ) | | |
ad6254c5 | 18105 | sed ' |
7a197a62 | 18106 | /^ac_cv_env_/b end |
ad6254c5 | 18107 | t clear |
7a197a62 | 18108 | :clear |
ad6254c5 AK |
18109 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18110 | t end | |
7a197a62 AK |
18111 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18112 | :end' >>confcache | |
18113 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18114 | if test -w "$cache_file"; then | |
18115 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
18116 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
18117 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 18118 | cat confcache >$cache_file |
795ca3e5 | 18119 | else |
ec6a6fbe AK |
18120 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
18121 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
18122 | fi |
18123 | fi | |
18124 | rm -f confcache | |
18125 | ||
795ca3e5 AK |
18126 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18127 | # Let make expand exec_prefix. | |
18128 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18129 | ||
72b2cb61 | 18130 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
18131 | |
18132 | ac_libobjs= | |
18133 | ac_ltlibobjs= | |
18134 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18135 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 18136 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 18137 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
18138 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18139 | # will be set to the directory where LIBOBJS objects are built. | |
18140 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18141 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18142 | done |
18143 | LIBOBJS=$ac_libobjs | |
80992638 | 18144 | |
ad6254c5 AK |
18145 | LTLIBOBJS=$ac_ltlibobjs |
18146 | ||
18147 | ||
18148 | ||
18149 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18150 | ac_write_fail=0 |
ad6254c5 AK |
18151 | ac_clean_files_save=$ac_clean_files |
18152 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18153 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18154 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18155 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18156 | #! $SHELL |
18157 | # Generated by $as_me. | |
795ca3e5 | 18158 | # Run this file to recreate the current configuration. |
795ca3e5 | 18159 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18160 | # configure, is in config.log if it exists. |
18161 | ||
18162 | debug=false | |
18163 | ac_cs_recheck=false | |
18164 | ac_cs_silent=false | |
18165 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18166 | _ACEOF | |
18167 | ||
ec6a6fbe | 18168 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18169 | ## --------------------- ## |
18170 | ## M4sh Initialization. ## | |
18171 | ## --------------------- ## | |
18172 | ||
25fbec5b AK |
18173 | # Be more Bourne compatible |
18174 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18175 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18176 | emulate sh | |
18177 | NULLCMD=: | |
ec6a6fbe | 18178 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18179 | # is contrary to our usage. Disable this feature. |
18180 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18181 | setopt NO_GLOB_SUBST |
18182 | else | |
25fbec5b AK |
18183 | case `(set -o) 2>/dev/null` in |
18184 | *posix*) set -o posix ;; | |
18185 | esac | |
18186 | ||
7a197a62 | 18187 | fi |
25fbec5b AK |
18188 | |
18189 | ||
7a197a62 AK |
18190 | |
18191 | ||
18192 | # PATH needs CR | |
18193 | # Avoid depending upon Character Ranges. | |
18194 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18195 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18196 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18197 | as_cr_digits='0123456789' | |
18198 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18199 | ||
ec6a6fbe AK |
18200 | as_nl=' |
18201 | ' | |
18202 | export as_nl | |
18203 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18204 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18205 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18206 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18207 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18208 | as_echo='printf %s\n' | |
18209 | as_echo_n='printf %s' | |
18210 | else | |
18211 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18212 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18213 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18214 | else |
ec6a6fbe AK |
18215 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18216 | as_echo_n_body='eval | |
18217 | arg=$1; | |
18218 | case $arg in | |
18219 | *"$as_nl"*) | |
18220 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18221 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18222 | esac; | |
18223 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18224 | ' | |
18225 | export as_echo_n_body | |
18226 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18227 | fi |
ec6a6fbe AK |
18228 | export as_echo_body |
18229 | as_echo='sh -c $as_echo_body as_echo' | |
18230 | fi | |
18231 | ||
18232 | # The user is always right. | |
18233 | if test "${PATH_SEPARATOR+set}" != set; then | |
18234 | PATH_SEPARATOR=: | |
18235 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18236 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18237 | PATH_SEPARATOR=';' | |
18238 | } | |
ad6254c5 AK |
18239 | fi |
18240 | ||
18241 | # Support unset when possible. | |
8a2fc586 | 18242 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18243 | as_unset=unset |
18244 | else | |
18245 | as_unset=false | |
18246 | fi | |
8106cdd5 | 18247 | |
ad6254c5 | 18248 | |
7a197a62 AK |
18249 | # IFS |
18250 | # We need space, tab and new line, in precisely that order. Quoting is | |
18251 | # there to prevent editors from complaining about space-tab. | |
18252 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18253 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18254 | IFS=" "" $as_nl" |
18255 | ||
18256 | # Find who we are. Look in the path if we contain no directory separator. | |
18257 | case $0 in | |
18258 | *[\\/]* ) as_myself=$0 ;; | |
18259 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18260 | for as_dir in $PATH | |
18261 | do | |
18262 | IFS=$as_save_IFS | |
18263 | test -z "$as_dir" && as_dir=. | |
18264 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18265 | done | |
18266 | IFS=$as_save_IFS | |
18267 | ||
18268 | ;; | |
18269 | esac | |
18270 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18271 | # in which case we are not to be found in the path. | |
18272 | if test "x$as_myself" = x; then | |
18273 | as_myself=$0 | |
18274 | fi | |
18275 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18276 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18277 | { (exit 1); exit 1; } |
18278 | fi | |
18279 | ||
ad6254c5 | 18280 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18281 | for as_var in ENV MAIL MAILPATH |
18282 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18283 | done | |
ad6254c5 AK |
18284 | PS1='$ ' |
18285 | PS2='> ' | |
18286 | PS4='+ ' | |
18287 | ||
18288 | # NLS nuisances. | |
ec6a6fbe AK |
18289 | LC_ALL=C |
18290 | export LC_ALL | |
18291 | LANGUAGE=C | |
18292 | export LANGUAGE | |
8106cdd5 | 18293 | |
ad6254c5 | 18294 | # Required to use basename. |
7a197a62 AK |
18295 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18296 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18297 | as_expr=expr |
18298 | else | |
18299 | as_expr=false | |
18300 | fi | |
8106cdd5 | 18301 | |
7a197a62 | 18302 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18303 | as_basename=basename |
18304 | else | |
18305 | as_basename=false | |
18306 | fi | |
18307 | ||
18308 | ||
18309 | # Name of the executable. | |
7a197a62 | 18310 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18311 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18312 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18313 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18314 | $as_echo X/"$0" | |
7a197a62 AK |
18315 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18316 | s//\1/ | |
18317 | q | |
18318 | } | |
18319 | /^X\/\(\/\/\)$/{ | |
18320 | s//\1/ | |
18321 | q | |
18322 | } | |
18323 | /^X\/\(\/\).*/{ | |
18324 | s//\1/ | |
18325 | q | |
18326 | } | |
18327 | s/.*/./; q'` | |
ad6254c5 | 18328 | |
7a197a62 AK |
18329 | # CDPATH. |
18330 | $as_unset CDPATH | |
ad6254c5 AK |
18331 | |
18332 | ||
ad6254c5 | 18333 | |
ad6254c5 AK |
18334 | as_lineno_1=$LINENO |
18335 | as_lineno_2=$LINENO | |
ad6254c5 | 18336 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18337 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18338 | |
ad6254c5 AK |
18339 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18340 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18341 | # line-number line after each line using $LINENO; the second 'sed' |
18342 | # does the real work. The second script uses 'N' to pair each | |
18343 | # line-number line with the line containing $LINENO, and appends | |
18344 | # trailing '-' during substitution so that $LINENO is not a special | |
18345 | # case at line end. | |
ad6254c5 | 18346 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18347 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18348 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18349 | sed -n ' | |
18350 | p | |
18351 | /[$]LINENO/= | |
18352 | ' <$as_myself | | |
ad6254c5 | 18353 | sed ' |
7a197a62 AK |
18354 | s/[$]LINENO.*/&-/ |
18355 | t lineno | |
18356 | b | |
18357 | :lineno | |
ad6254c5 | 18358 | N |
7a197a62 AK |
18359 | :loop |
18360 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18361 | t loop |
7a197a62 | 18362 | s/-\n.*// |
ad6254c5 | 18363 | ' >$as_me.lineno && |
7a197a62 | 18364 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18365 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18366 | { (exit 1); exit 1; }; } |
18367 | ||
18368 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18369 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18370 | # original and so on. Autoconf is especially sensitive to this). |
18371 | . "./$as_me.lineno" | |
ad6254c5 AK |
18372 | # Exit status is that of the last command. |
18373 | exit | |
18374 | } | |
18375 | ||
18376 | ||
7a197a62 AK |
18377 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18378 | as_dirname=dirname | |
18379 | else | |
18380 | as_dirname=false | |
18381 | fi | |
18382 | ||
18383 | ECHO_C= ECHO_N= ECHO_T= | |
18384 | case `echo -n x` in | |
18385 | -n*) | |
18386 | case `echo 'x\c'` in | |
18387 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18388 | *) ECHO_C='\c';; | |
18389 | esac;; | |
18390 | *) | |
18391 | ECHO_N='-n';; | |
ad6254c5 | 18392 | esac |
7a197a62 AK |
18393 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18394 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18395 | as_expr=expr |
18396 | else | |
18397 | as_expr=false | |
18398 | fi | |
80992638 | 18399 | |
ad6254c5 | 18400 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18401 | if test -d conf$$.dir; then |
18402 | rm -f conf$$.dir/conf$$.file | |
18403 | else | |
18404 | rm -f conf$$.dir | |
ec6a6fbe AK |
18405 | mkdir conf$$.dir 2>/dev/null |
18406 | fi | |
18407 | if (echo >conf$$.file) 2>/dev/null; then | |
18408 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18409 | as_ln_s='ln -s' | |
18410 | # ... but there are two gotchas: | |
18411 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18412 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18413 | # In both cases, we have to default to `cp -p'. | |
18414 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18415 | as_ln_s='cp -p' | |
18416 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18417 | as_ln_s=ln | |
18418 | else | |
ad6254c5 | 18419 | as_ln_s='cp -p' |
ec6a6fbe | 18420 | fi |
ad6254c5 AK |
18421 | else |
18422 | as_ln_s='cp -p' | |
18423 | fi | |
7a197a62 AK |
18424 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18425 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18426 | |
ad6254c5 AK |
18427 | if mkdir -p . 2>/dev/null; then |
18428 | as_mkdir_p=: | |
18429 | else | |
8a2fc586 | 18430 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18431 | as_mkdir_p=false |
18432 | fi | |
18433 | ||
25fbec5b AK |
18434 | if test -x / >/dev/null 2>&1; then |
18435 | as_test_x='test -x' | |
7a197a62 | 18436 | else |
25fbec5b AK |
18437 | if ls -dL / >/dev/null 2>&1; then |
18438 | as_ls_L_option=L | |
18439 | else | |
18440 | as_ls_L_option= | |
18441 | fi | |
18442 | as_test_x=' | |
18443 | eval sh -c '\'' | |
18444 | if test -d "$1"; then | |
ec6a6fbe | 18445 | test -d "$1/."; |
25fbec5b AK |
18446 | else |
18447 | case $1 in | |
ec6a6fbe | 18448 | -*)set "./$1";; |
25fbec5b AK |
18449 | esac; |
18450 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18451 | ???[sx]*):;;*)false;;esac;fi | |
18452 | '\'' sh | |
18453 | ' | |
7a197a62 | 18454 | fi |
25fbec5b | 18455 | as_executable_p=$as_test_x |
ad6254c5 AK |
18456 | |
18457 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18458 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18459 | |
18460 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18461 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18462 | |
18463 | ||
ad6254c5 AK |
18464 | exec 6>&1 |
18465 | ||
7a197a62 | 18466 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18467 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18468 | # values after options handling. |
18469 | ac_log=" | |
ad6254c5 | 18470 | This file was extended by $as_me, which was |
ec6a6fbe | 18471 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18472 | |
18473 | CONFIG_FILES = $CONFIG_FILES | |
18474 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18475 | CONFIG_LINKS = $CONFIG_LINKS | |
18476 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18477 | $ $0 $@ | |
18478 | ||
7a197a62 AK |
18479 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18480 | " | |
18481 | ||
ad6254c5 AK |
18482 | _ACEOF |
18483 | ||
ec6a6fbe AK |
18484 | case $ac_config_files in *" |
18485 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18486 | esac | |
18487 | ||
18488 | case $ac_config_headers in *" | |
18489 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18490 | esac | |
18491 | ||
18492 | ||
18493 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18494 | # Files that config.status was made for. |
68f2de6d AK |
18495 | config_files="$ac_config_files" |
18496 | config_headers="$ac_config_headers" | |
ad6254c5 | 18497 | |
7a197a62 | 18498 | _ACEOF |
ad6254c5 | 18499 | |
ec6a6fbe | 18500 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18501 | ac_cs_usage="\ |
18502 | \`$as_me' instantiates files from templates according to the | |
18503 | current configuration. | |
18504 | ||
ec6a6fbe | 18505 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18506 | |
18507 | -h, --help print this help, then exit | |
25fbec5b | 18508 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18509 | -q, --quiet, --silent |
18510 | do not print progress messages | |
ad6254c5 AK |
18511 | -d, --debug don't remove temporary files |
18512 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18513 | --file=FILE[:TEMPLATE] |
18514 | instantiate the configuration file FILE | |
18515 | --header=FILE[:TEMPLATE] | |
18516 | instantiate the configuration header FILE | |
ad6254c5 AK |
18517 | |
18518 | Configuration files: | |
18519 | $config_files | |
18520 | ||
72b2cb61 AK |
18521 | Configuration headers: |
18522 | $config_headers | |
18523 | ||
ad6254c5 | 18524 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18525 | |
7a197a62 | 18526 | _ACEOF |
ec6a6fbe | 18527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18528 | ac_cs_version="\\ |
18529 | config.status | |
ec6a6fbe AK |
18530 | configured by $0, generated by GNU Autoconf 2.63, |
18531 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18532 | |
ec6a6fbe | 18533 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18534 | This config.status script is free software; the Free Software Foundation |
18535 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18536 | |
18537 | ac_pwd='$ac_pwd' | |
18538 | srcdir='$srcdir' | |
18539 | INSTALL='$INSTALL' | |
fddafd51 | 18540 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18541 | AWK='$AWK' |
18542 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18543 | _ACEOF |
18544 | ||
ec6a6fbe AK |
18545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18546 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18547 | ac_need_defaults=: |
18548 | while test $# != 0 | |
18549 | do | |
18550 | case $1 in | |
18551 | --*=*) | |
7a197a62 AK |
18552 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18553 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18554 | ac_shift=: |
18555 | ;; | |
7a197a62 | 18556 | *) |
ad6254c5 AK |
18557 | ac_option=$1 |
18558 | ac_optarg=$2 | |
18559 | ac_shift=shift | |
18560 | ;; | |
ad6254c5 AK |
18561 | esac |
18562 | ||
18563 | case $ac_option in | |
18564 | # Handling of the options. | |
ad6254c5 AK |
18565 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18566 | ac_cs_recheck=: ;; | |
7a197a62 | 18567 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18568 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18569 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18570 | debug=: ;; |
18571 | --file | --fil | --fi | --f ) | |
18572 | $ac_shift | |
ec6a6fbe AK |
18573 | case $ac_optarg in |
18574 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18575 | esac | |
18576 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18577 | ac_need_defaults=false;; |
18578 | --header | --heade | --head | --hea ) | |
18579 | $ac_shift | |
ec6a6fbe AK |
18580 | case $ac_optarg in |
18581 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18582 | esac | |
18583 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18584 | ac_need_defaults=false;; |
7a197a62 AK |
18585 | --he | --h) |
18586 | # Conflict between --help and --header | |
ec6a6fbe | 18587 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18588 | Try \`$0 --help' for more information." >&2 |
18589 | { (exit 1); exit 1; }; };; | |
18590 | --help | --hel | -h ) | |
ec6a6fbe | 18591 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18592 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18593 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18594 | ac_cs_silent=: ;; | |
18595 | ||
18596 | # This is an error. | |
ec6a6fbe | 18597 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18598 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18599 | { (exit 1); exit 1; }; } ;; |
18600 | ||
7a197a62 AK |
18601 | *) ac_config_targets="$ac_config_targets $1" |
18602 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18603 | |
18604 | esac | |
18605 | shift | |
18606 | done | |
18607 | ||
18608 | ac_configure_extra_args= | |
18609 | ||
18610 | if $ac_cs_silent; then | |
18611 | exec 6>/dev/null | |
18612 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18613 | fi | |
18614 | ||
18615 | _ACEOF | |
ec6a6fbe | 18616 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18617 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18618 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18619 | shift | |
18620 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18621 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18622 | export CONFIG_SHELL |
ec6a6fbe | 18623 | exec "\$@" |
ad6254c5 AK |
18624 | fi |
18625 | ||
18626 | _ACEOF | |
ec6a6fbe | 18627 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18628 | exec 5>>config.log |
18629 | { | |
18630 | echo | |
18631 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18632 | ## Running $as_me. ## | |
18633 | _ASBOX | |
ec6a6fbe | 18634 | $as_echo "$ac_log" |
7a197a62 | 18635 | } >&5 |
ad6254c5 | 18636 | |
7a197a62 | 18637 | _ACEOF |
ec6a6fbe | 18638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18639 | _ACEOF |
ad6254c5 | 18640 | |
ec6a6fbe | 18641 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18642 | |
18643 | # Handling of arguments. | |
ad6254c5 AK |
18644 | for ac_config_target in $ac_config_targets |
18645 | do | |
7a197a62 AK |
18646 | case $ac_config_target in |
18647 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18648 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18649 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18650 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18651 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18652 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18653 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18654 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18655 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18656 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18657 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18658 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18659 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18660 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18661 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18662 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18663 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18664 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18665 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18666 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18667 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18668 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18669 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18670 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18671 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18672 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18673 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18674 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18675 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18676 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18677 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18678 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18679 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18680 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18681 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18682 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18683 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18684 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
18685 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
18686 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
7a197a62 | 18687 | |
ec6a6fbe AK |
18688 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18689 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18690 | { (exit 1); exit 1; }; };; |
80992638 | 18691 | esac |
ad6254c5 AK |
18692 | done |
18693 | ||
7a197a62 | 18694 | |
ad6254c5 AK |
18695 | # If the user did not use the arguments to specify the items to instantiate, |
18696 | # then the envvar interface is used. Set only those that are not. | |
18697 | # We use the long form for the default assignment because of an extremely | |
18698 | # bizarre bug on SunOS 4.1.3. | |
18699 | if $ac_need_defaults; then | |
18700 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18701 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18702 | fi |
18703 | ||
18704 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18705 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18706 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18707 | # Hook for its removal unless debugging. |
18708 | # Note that there is a small window in which the directory will not be cleaned: | |
18709 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18710 | $debug || |
18711 | { | |
7a197a62 AK |
18712 | tmp= |
18713 | trap 'exit_status=$? | |
18714 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18715 | ' 0 | |
ad6254c5 AK |
18716 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18717 | } | |
ad6254c5 AK |
18718 | # Create a (secure) tmp directory for tmp files. |
18719 | ||
18720 | { | |
7a197a62 | 18721 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18722 | test -n "$tmp" && test -d "$tmp" |
18723 | } || | |
18724 | { | |
7a197a62 AK |
18725 | tmp=./conf$$-$RANDOM |
18726 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18727 | } || |
18728 | { | |
ec6a6fbe | 18729 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18730 | { (exit 1); exit 1; } |
18731 | } | |
18732 | ||
ec6a6fbe AK |
18733 | # Set up the scripts for CONFIG_FILES section. |
18734 | # No need to generate them if there are no CONFIG_FILES. | |
18735 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18736 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18737 | |
68f2de6d | 18738 | |
ec6a6fbe AK |
18739 | ac_cr='\r' |
18740 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18741 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18742 | ac_cs_awk_cr='\\r' | |
18743 | else | |
18744 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18745 | fi |
7a197a62 | 18746 | |
ec6a6fbe | 18747 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18748 | _ACEOF |
7a197a62 | 18749 | |
8106cdd5 | 18750 | |
ec6a6fbe AK |
18751 | { |
18752 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18753 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18754 | echo "_ACEOF" | |
18755 | } >conf$$subs.sh || | |
18756 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18757 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18758 | { (exit 1); exit 1; }; } | |
18759 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18760 | ac_delim='%!_!# ' |
18761 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18762 | . ./conf$$subs.sh || |
18763 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18764 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18765 | { (exit 1); exit 1; }; } | |
18766 | ||
18767 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18768 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18769 | break |
18770 | elif $ac_last_try; then | |
ec6a6fbe AK |
18771 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18772 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18773 | { (exit 1); exit 1; }; } |
18774 | else | |
18775 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18776 | fi | |
18777 | done | |
ec6a6fbe AK |
18778 | rm -f conf$$subs.sh |
18779 | ||
18780 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18781 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18782 | _ACEOF | |
18783 | sed -n ' | |
18784 | h | |
18785 | s/^/S["/; s/!.*/"]=/ | |
18786 | p | |
18787 | g | |
18788 | s/^[^!]*!// | |
18789 | :repl | |
18790 | t repl | |
18791 | s/'"$ac_delim"'$// | |
18792 | t delim | |
18793 | :nl | |
18794 | h | |
18795 | s/\(.\{148\}\).*/\1/ | |
18796 | t more1 | |
18797 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18798 | p | |
18799 | n | |
18800 | b repl | |
18801 | :more1 | |
18802 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18803 | p | |
18804 | g | |
18805 | s/.\{148\}// | |
18806 | t nl | |
18807 | :delim | |
18808 | h | |
18809 | s/\(.\{148\}\).*/\1/ | |
18810 | t more2 | |
18811 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18812 | p | |
18813 | b | |
18814 | :more2 | |
18815 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18816 | p | |
18817 | g | |
18818 | s/.\{148\}// | |
18819 | t delim | |
18820 | ' <conf$$subs.awk | sed ' | |
18821 | /^[^""]/{ | |
18822 | N | |
18823 | s/\n// | |
18824 | } | |
18825 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18826 | rm -f conf$$subs.awk | |
18827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18828 | _ACAWK | |
18829 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18830 | for (key in S) S_is_set[key] = 1 | |
18831 | FS = "\a" | |
7a197a62 | 18832 | |
ec6a6fbe AK |
18833 | } |
18834 | { | |
18835 | line = $ 0 | |
18836 | nfields = split(line, field, "@") | |
18837 | substed = 0 | |
18838 | len = length(field[1]) | |
18839 | for (i = 2; i < nfields; i++) { | |
18840 | key = field[i] | |
18841 | keylen = length(key) | |
18842 | if (S_is_set[key]) { | |
18843 | value = S[key] | |
18844 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18845 | len += length(value) + length(field[++i]) | |
18846 | substed = 1 | |
18847 | } else | |
18848 | len += 1 + keylen | |
18849 | } | |
18850 | ||
18851 | print line | |
18852 | } | |
fddafd51 | 18853 | |
ec6a6fbe | 18854 | _ACAWK |
1995c9ff | 18855 | _ACEOF |
ec6a6fbe AK |
18856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18857 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18858 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18859 | else | |
18860 | cat | |
18861 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18862 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
18863 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
18864 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
18865 | _ACEOF |
18866 | ||
7a197a62 AK |
18867 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18868 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18869 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18870 | # (actually we leave an empty line to preserve line numbers). | |
18871 | if test "x$srcdir" = x.; then | |
18872 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18873 | s/:*\$(srcdir):*/:/ | |
18874 | s/:*\${srcdir}:*/:/ | |
18875 | s/:*@srcdir@:*/:/ | |
18876 | s/^\([^=]*=[ ]*\):*/\1/ | |
18877 | s/:*$// | |
18878 | s/^[^=]*=[ ]*$// | |
18879 | }' | |
18880 | fi | |
18881 | ||
ec6a6fbe | 18882 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18883 | fi # test -n "$CONFIG_FILES" |
18884 | ||
ec6a6fbe AK |
18885 | # Set up the scripts for CONFIG_HEADERS section. |
18886 | # No need to generate them if there are no CONFIG_HEADERS. | |
18887 | # This happens for instance with `./config.status Makefile'. | |
18888 | if test -n "$CONFIG_HEADERS"; then | |
18889 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18890 | BEGIN { | |
18891 | _ACEOF | |
18892 | ||
18893 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18894 | # here-document in config.status, that substitutes the proper values into | |
18895 | # config.h.in to produce config.h. | |
18896 | ||
18897 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18898 | # handling of long lines. | |
18899 | ac_delim='%!_!# ' | |
18900 | for ac_last_try in false false :; do | |
18901 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18902 | if test -z "$ac_t"; then | |
18903 | break | |
18904 | elif $ac_last_try; then | |
18905 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
18906 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
18907 | { (exit 1); exit 1; }; } | |
18908 | else | |
18909 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18910 | fi | |
18911 | done | |
18912 | ||
18913 | # For the awk script, D is an array of macro values keyed by name, | |
18914 | # likewise P contains macro parameters if any. Preserve backslash | |
18915 | # newline sequences. | |
18916 | ||
18917 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18918 | sed -n ' | |
18919 | s/.\{148\}/&'"$ac_delim"'/g | |
18920 | t rset | |
18921 | :rset | |
18922 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18923 | t def | |
18924 | d | |
18925 | :def | |
18926 | s/\\$// | |
18927 | t bsnl | |
18928 | s/["\\]/\\&/g | |
18929 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18930 | D["\1"]=" \3"/p | |
18931 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18932 | d | |
18933 | :bsnl | |
18934 | s/["\\]/\\&/g | |
18935 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18936 | D["\1"]=" \3\\\\\\n"\\/p | |
18937 | t cont | |
18938 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18939 | t cont | |
18940 | d | |
18941 | :cont | |
18942 | n | |
18943 | s/.\{148\}/&'"$ac_delim"'/g | |
18944 | t clear | |
18945 | :clear | |
18946 | s/\\$// | |
18947 | t bsnlc | |
18948 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18949 | d | |
18950 | :bsnlc | |
18951 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18952 | b cont | |
18953 | ' <confdefs.h | sed ' | |
18954 | s/'"$ac_delim"'/"\\\ | |
18955 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18956 | ||
18957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18958 | for (key in D) D_is_set[key] = 1 | |
18959 | FS = "\a" | |
18960 | } | |
18961 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18962 | line = \$ 0 | |
18963 | split(line, arg, " ") | |
18964 | if (arg[1] == "#") { | |
18965 | defundef = arg[2] | |
18966 | mac1 = arg[3] | |
18967 | } else { | |
18968 | defundef = substr(arg[1], 2) | |
18969 | mac1 = arg[2] | |
18970 | } | |
18971 | split(mac1, mac2, "(") #) | |
18972 | macro = mac2[1] | |
18973 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18974 | if (D_is_set[macro]) { | |
18975 | # Preserve the white space surrounding the "#". | |
18976 | print prefix "define", macro P[macro] D[macro] | |
18977 | next | |
18978 | } else { | |
18979 | # Replace #undef with comments. This is necessary, for example, | |
18980 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18981 | # on some systems where configure will not decide to define it. | |
18982 | if (defundef == "undef") { | |
18983 | print "/*", prefix defundef, macro, "*/" | |
18984 | next | |
18985 | } | |
18986 | } | |
18987 | } | |
18988 | { print } | |
18989 | _ACAWK | |
18990 | _ACEOF | |
18991 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18992 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
18993 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
18994 | { (exit 1); exit 1; }; } | |
18995 | fi # test -n "$CONFIG_HEADERS" | |
18996 | ||
7a197a62 | 18997 | |
ec6a6fbe AK |
18998 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
18999 | shift | |
19000 | for ac_tag | |
7a197a62 AK |
19001 | do |
19002 | case $ac_tag in | |
19003 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19004 | esac | |
19005 | case $ac_mode$ac_tag in | |
19006 | :[FHL]*:*);; | |
ec6a6fbe AK |
19007 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
19008 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
19009 | { (exit 1); exit 1; }; };; |
19010 | :[FH]-) ac_tag=-:-;; | |
19011 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19012 | esac | |
19013 | ac_save_IFS=$IFS | |
19014 | IFS=: | |
19015 | set x $ac_tag | |
19016 | IFS=$ac_save_IFS | |
19017 | shift | |
19018 | ac_file=$1 | |
19019 | shift | |
19020 | ||
19021 | case $ac_mode in | |
19022 | :L) ac_source=$1;; | |
19023 | :[FH]) | |
19024 | ac_file_inputs= | |
19025 | for ac_f | |
19026 | do | |
19027 | case $ac_f in | |
19028 | -) ac_f="$tmp/stdin";; | |
19029 | *) # Look for the file first in the build tree, then in the source tree | |
19030 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19031 | # because $ac_f cannot contain `:'. | |
19032 | test -f "$ac_f" || | |
19033 | case $ac_f in | |
19034 | [\\/$]*) false;; | |
19035 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19036 | esac || | |
ec6a6fbe AK |
19037 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
19038 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
19039 | { (exit 1); exit 1; }; };; |
19040 | esac | |
ec6a6fbe AK |
19041 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19042 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
19043 | done |
19044 | ||
19045 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19046 | # use $as_me), people would be surprised to read: | |
19047 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
19048 | configure_input='Generated from '` |
19049 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19050 | `' by configure.' | |
7a197a62 AK |
19051 | if test x"$ac_file" != x-; then |
19052 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
19053 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
19054 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 19055 | fi |
ec6a6fbe AK |
19056 | # Neutralize special characters interpreted by sed in replacement strings. |
19057 | case $configure_input in #( | |
19058 | *\&* | *\|* | *\\* ) | |
19059 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19060 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19061 | *) ac_sed_conf_input=$configure_input;; | |
19062 | esac | |
7a197a62 AK |
19063 | |
19064 | case $ac_tag in | |
ec6a6fbe AK |
19065 | *:-:* | *:-) cat >"$tmp/stdin" \ |
19066 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19067 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19068 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
19069 | esac |
19070 | ;; | |
80992638 | 19071 | esac |
8106cdd5 | 19072 | |
7a197a62 | 19073 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 19074 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19075 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19076 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 19077 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19078 | $as_echo X"$ac_file" | |
7a197a62 AK |
19079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19080 | s//\1/ | |
19081 | q | |
19082 | } | |
19083 | /^X\(\/\/\)[^/].*/{ | |
19084 | s//\1/ | |
19085 | q | |
19086 | } | |
19087 | /^X\(\/\/\)$/{ | |
19088 | s//\1/ | |
19089 | q | |
19090 | } | |
19091 | /^X\(\/\).*/{ | |
19092 | s//\1/ | |
19093 | q | |
19094 | } | |
19095 | s/.*/./; q'` | |
19096 | { as_dir="$ac_dir" | |
19097 | case $as_dir in #( | |
19098 | -*) as_dir=./$as_dir;; | |
19099 | esac | |
19100 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 19101 | as_dirs= |
7a197a62 AK |
19102 | while :; do |
19103 | case $as_dir in #( | |
ec6a6fbe | 19104 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
19105 | *) as_qdir=$as_dir;; |
19106 | esac | |
19107 | as_dirs="'$as_qdir' $as_dirs" | |
19108 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 19109 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19110 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19111 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 19112 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19113 | $as_echo X"$as_dir" | |
7a197a62 AK |
19114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19115 | s//\1/ | |
19116 | q | |
19117 | } | |
19118 | /^X\(\/\/\)[^/].*/{ | |
19119 | s//\1/ | |
19120 | q | |
19121 | } | |
19122 | /^X\(\/\/\)$/{ | |
19123 | s//\1/ | |
19124 | q | |
19125 | } | |
19126 | /^X\(\/\).*/{ | |
19127 | s//\1/ | |
19128 | q | |
19129 | } | |
19130 | s/.*/./; q'` | |
19131 | test -d "$as_dir" && break | |
ad6254c5 | 19132 | done |
7a197a62 | 19133 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
19134 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
19135 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 19136 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
19137 | ac_builddir=. |
19138 | ||
7a197a62 AK |
19139 | case "$ac_dir" in |
19140 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19141 | *) | |
ec6a6fbe | 19142 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 19143 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19144 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19145 | case $ac_top_builddir_sub in |
19146 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19147 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19148 | esac ;; | |
19149 | esac | |
19150 | ac_abs_top_builddir=$ac_pwd | |
19151 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19152 | # for backward compatibility: | |
19153 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19154 | |
19155 | case $srcdir in | |
7a197a62 | 19156 | .) # We are building in place. |
ad6254c5 | 19157 | ac_srcdir=. |
7a197a62 AK |
19158 | ac_top_srcdir=$ac_top_builddir_sub |
19159 | ac_abs_top_srcdir=$ac_pwd ;; | |
19160 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19161 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19162 | ac_top_srcdir=$srcdir |
19163 | ac_abs_top_srcdir=$srcdir ;; | |
19164 | *) # Relative name. | |
19165 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19166 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19167 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19168 | esac |
7a197a62 | 19169 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19170 | |
ad6254c5 | 19171 | |
7a197a62 AK |
19172 | case $ac_mode in |
19173 | :F) | |
19174 | # | |
19175 | # CONFIG_FILE | |
19176 | # | |
ad6254c5 AK |
19177 | |
19178 | case $INSTALL in | |
19179 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19180 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19181 | esac |
fddafd51 ZK |
19182 | ac_MKDIR_P=$MKDIR_P |
19183 | case $MKDIR_P in | |
19184 | [\\/$]* | ?:[\\/]* ) ;; | |
19185 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19186 | esac | |
7a197a62 | 19187 | _ACEOF |
795ca3e5 | 19188 | |
ec6a6fbe | 19189 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19190 | # If the template does not know about datarootdir, expand it. |
19191 | # FIXME: This hack should be removed a few years after 2.60. | |
19192 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19193 | ||
ec6a6fbe AK |
19194 | ac_sed_dataroot=' |
19195 | /datarootdir/ { | |
7a197a62 AK |
19196 | p |
19197 | q | |
19198 | } | |
19199 | /@datadir@/p | |
19200 | /@docdir@/p | |
19201 | /@infodir@/p | |
19202 | /@localedir@/p | |
19203 | /@mandir@/p | |
ec6a6fbe AK |
19204 | ' |
19205 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19206 | *datarootdir*) ac_datarootdir_seen=yes;; |
19207 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19209 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19210 | _ACEOF |
ec6a6fbe | 19211 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19212 | ac_datarootdir_hack=' |
19213 | s&@datadir@&$datadir&g | |
19214 | s&@docdir@&$docdir&g | |
19215 | s&@infodir@&$infodir&g | |
19216 | s&@localedir@&$localedir&g | |
19217 | s&@mandir@&$mandir&g | |
19218 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19219 | esac | |
19220 | _ACEOF | |
19221 | ||
19222 | # Neutralize VPATH when `$srcdir' = `.'. | |
19223 | # Shell code in configure.ac might set extrasub. | |
19224 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19225 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19226 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19227 | $extrasub |
19228 | _ACEOF | |
ec6a6fbe | 19229 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19230 | :t |
19231 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19232 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19233 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19234 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19235 | s&@srcdir@&$ac_srcdir&;t t |
19236 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19237 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19238 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19239 | s&@builddir@&$ac_builddir&;t t | |
19240 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19241 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19242 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19243 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19244 | $ac_datarootdir_hack |
ec6a6fbe AK |
19245 | " |
19246 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19247 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19248 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19249 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19250 | |
19251 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19252 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19253 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19254 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19255 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19256 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19257 | which seems to be undefined. Please make sure it is defined." >&2;} |
19258 | ||
19259 | rm -f "$tmp/stdin" | |
72b2cb61 | 19260 | case $ac_file in |
ec6a6fbe AK |
19261 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19262 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19263 | esac \ | |
19264 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19265 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19266 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19267 | ;; |
19268 | :H) | |
19269 | # | |
19270 | # CONFIG_HEADER | |
19271 | # | |
72b2cb61 | 19272 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19273 | { |
19274 | $as_echo "/* $configure_input */" \ | |
19275 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19276 | } >"$tmp/config.h" \ | |
19277 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19278 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19279 | { (exit 1); exit 1; }; } | |
19280 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19281 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19282 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19283 | else |
ec6a6fbe AK |
19284 | rm -f "$ac_file" |
19285 | mv "$tmp/config.h" "$ac_file" \ | |
19286 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19287 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19288 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19289 | fi |
19290 | else | |
ec6a6fbe AK |
19291 | $as_echo "/* $configure_input */" \ |
19292 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19293 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19294 | $as_echo "$as_me: error: could not create -" >&2;} | |
19295 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19296 | fi |
7a197a62 AK |
19297 | ;; |
19298 | ||
19299 | ||
19300 | esac | |
19301 | ||
19302 | done # for ac_tag | |
795ca3e5 | 19303 | |
795ca3e5 | 19304 | |
ad6254c5 AK |
19305 | { (exit 0); exit 0; } |
19306 | _ACEOF | |
795ca3e5 | 19307 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19308 | ac_clean_files=$ac_clean_files_save |
19309 | ||
ec6a6fbe AK |
19310 | test $ac_write_fail = 0 || |
19311 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19312 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19313 | { (exit 1); exit 1; }; } | |
19314 | ||
ad6254c5 AK |
19315 | |
19316 | # configure is writing to config.log, and then calls config.status. | |
19317 | # config.status does its own redirection, appending to config.log. | |
19318 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19319 | # by configure, so config.status won't be able to write to it; its | |
19320 | # output is simply discarded. So we exec the FD to /dev/null, | |
19321 | # effectively closing config.log, so it can be properly (re)opened and | |
19322 | # appended to by config.status. When coming back to configure, we | |
19323 | # need to make the FD available again. | |
19324 | if test "$no_create" != yes; then | |
19325 | ac_cs_success=: | |
19326 | ac_config_status_args= | |
19327 | test "$silent" = yes && | |
19328 | ac_config_status_args="$ac_config_status_args --quiet" | |
19329 | exec 5>/dev/null | |
19330 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19331 | exec 5>>config.log | |
19332 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19333 | # would make configure fail if this is the last instruction. | |
19334 | $ac_cs_success || { (exit 1); exit 1; } | |
19335 | fi | |
ec6a6fbe AK |
19336 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19337 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19338 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19339 | fi | |
795ca3e5 | 19340 | |
2dc95e1c AK |
19341 | |
19342 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19343 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19344 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19345 | fi |