]>
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 |
ec6a6fbe AK |
654 | STATIC_LINK |
655 | STATICDIR | |
656 | SNAPSHOTS | |
f7f0854e | 657 | SELINUX_PC |
e1b8a236 | 658 | SELINUX_LIBS |
539f4a77 | 659 | READLINE_LIBS |
f30875db | 660 | PTHREAD_LIBS |
ec6a6fbe AK |
661 | POOL |
662 | PKGCONFIG | |
8fea97b7 | 663 | REPLICATORS |
ec6a6fbe AK |
664 | MIRRORS |
665 | LVM_RELEASE_DATE | |
666 | LVM_RELEASE | |
667 | LVM_PATCHLEVEL | |
668 | LVM_MINOR | |
669 | LVM_MAJOR | |
bf456146 | 670 | LVM_LIBAPI |
ec6a6fbe | 671 | LVM_VERSION |
ec6a6fbe AK |
672 | LVM1_FALLBACK |
673 | LVM1 | |
674 | LOCALEDIR | |
675 | LIB_SUFFIX | |
676 | LDDEPS | |
677 | JOBS | |
678 | INTL_PACKAGE | |
679 | INTL | |
ec6a6fbe AK |
680 | HAVE_REALTIME |
681 | HAVE_LIBDL | |
ec6a6fbe AK |
682 | FSADM |
683 | DM_LIB_PATCHLEVEL | |
684 | DM_LIB_VERSION | |
685 | DM_IOCTLS | |
686 | DM_DEVICE_UID | |
687 | DM_DEVICE_MODE | |
688 | DM_DEVICE_GID | |
689 | DM_COMPAT | |
690 | DMEVENTD | |
19a2c6e0 | 691 | DL_LIBS |
ec6a6fbe | 692 | DEVMAPPER |
3399ae32 AK |
693 | DEFAULT_LOCK_DIR |
694 | DEFAULT_CACHE_SUBDIR | |
695 | DEFAULT_BACKUP_SUBDIR | |
696 | DEFAULT_ARCHIVE_SUBDIR | |
697 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
698 | DEBUG |
699 | COPTIMISE_FLAG | |
e2997b73 | 700 | CONFDIR |
ec6a6fbe AK |
701 | CMDLIB |
702 | CLVMD | |
703 | CLUSTER | |
704 | CLDWHOLEARCHIVE | |
705 | CLDNOWHOLEARCHIVE | |
706 | CLDFLAGS | |
707 | BUILD_DMEVENTD | |
66fd4529 | 708 | BUILD_CMIRRORD |
572fefeb | 709 | APPLIB |
ec6a6fbe AK |
710 | MODPROBE_CMD |
711 | MSGFMT | |
712 | LVM2CMD_LIB | |
572fefeb | 713 | LVM2APP_LIB |
fd4728e1 | 714 | GENPNG |
ec6a6fbe AK |
715 | GENHTML |
716 | LCOV | |
90c80887 AK |
717 | SACKPT_LIBS |
718 | SACKPT_CFLAGS | |
a946372e AK |
719 | DLM_LIBS |
720 | DLM_CFLAGS | |
e2997b73 AK |
721 | CPG_LIBS |
722 | CPG_CFLAGS | |
723 | CONFDB_LIBS | |
724 | CONFDB_CFLAGS | |
a946372e AK |
725 | SALCK_LIBS |
726 | SALCK_CFLAGS | |
e2997b73 AK |
727 | QUORUM_LIBS |
728 | QUORUM_CFLAGS | |
a946372e AK |
729 | COROSYNC_LIBS |
730 | COROSYNC_CFLAGS | |
731 | CMAN_LIBS | |
732 | CMAN_CFLAGS | |
733 | GULM_LIBS | |
734 | GULM_CFLAGS | |
735 | CCS_LIBS | |
736 | CCS_CFLAGS | |
737 | PKGCONFIGINIT_LIBS | |
738 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 739 | PKG_CONFIG |
ec6a6fbe AK |
740 | POW_LIB |
741 | LIBOBJS | |
742 | ALLOCA | |
743 | CSCOPE_CMD | |
744 | CFLOW_CMD | |
745 | RANLIB | |
746 | MKDIR_P | |
747 | SET_MAKE | |
748 | LN_S | |
749 | INSTALL_DATA | |
750 | INSTALL_SCRIPT | |
751 | INSTALL_PROGRAM | |
752 | EGREP | |
753 | GREP | |
754 | CPP | |
755 | OBJEXT | |
756 | EXEEXT | |
757 | ac_ct_CC | |
758 | CPPFLAGS | |
759 | LDFLAGS | |
760 | CFLAGS | |
761 | CC | |
762 | AWK | |
763 | SED | |
764 | target_os | |
765 | target_vendor | |
766 | target_cpu | |
767 | target | |
768 | host_os | |
769 | host_vendor | |
770 | host_cpu | |
771 | host | |
772 | build_os | |
773 | build_vendor | |
774 | build_cpu | |
775 | build | |
776 | target_alias | |
777 | host_alias | |
778 | build_alias | |
779 | LIBS | |
780 | ECHO_T | |
781 | ECHO_N | |
782 | ECHO_C | |
783 | DEFS | |
784 | mandir | |
785 | localedir | |
786 | libdir | |
787 | psdir | |
788 | pdfdir | |
789 | dvidir | |
790 | htmldir | |
791 | infodir | |
792 | docdir | |
793 | oldincludedir | |
794 | includedir | |
795 | localstatedir | |
796 | sharedstatedir | |
797 | sysconfdir | |
798 | datadir | |
799 | datarootdir | |
800 | libexecdir | |
801 | sbindir | |
802 | bindir | |
803 | program_transform_name | |
804 | prefix | |
805 | exec_prefix | |
806 | PACKAGE_BUGREPORT | |
807 | PACKAGE_STRING | |
808 | PACKAGE_VERSION | |
809 | PACKAGE_TARNAME | |
810 | PACKAGE_NAME | |
811 | PATH_SEPARATOR | |
812 | SHELL' | |
ad6254c5 | 813 | ac_subst_files='' |
ec6a6fbe AK |
814 | ac_user_opts=' |
815 | enable_option_checking | |
816 | enable_static_link | |
817 | with_user | |
818 | with_group | |
819 | with_device_uid | |
820 | with_device_gid | |
821 | with_device_mode | |
822 | enable_lvm1_fallback | |
823 | with_lvm1 | |
824 | with_pool | |
825 | with_cluster | |
826 | with_snapshots | |
827 | with_mirrors | |
8fea97b7 | 828 | with_replicators |
ec6a6fbe AK |
829 | enable_readline |
830 | enable_realtime | |
831 | with_clvmd | |
66fd4529 AK |
832 | enable_cmirrord |
833 | with_cmirrord_pidfile | |
ec6a6fbe AK |
834 | enable_debug |
835 | with_optimisation | |
836 | enable_profiling | |
837 | enable_devmapper | |
a5f46f6a AK |
838 | enable_udev_sync |
839 | enable_udev_rules | |
ec6a6fbe | 840 | enable_compat |
95eaa683 | 841 | enable_units_compat |
ec6a6fbe AK |
842 | enable_ioctl |
843 | enable_o_direct | |
572fefeb | 844 | enable_applib |
ec6a6fbe AK |
845 | enable_cmdlib |
846 | enable_pkgconfig | |
23b059e7 | 847 | enable_write_install |
ec6a6fbe AK |
848 | enable_fsadm |
849 | enable_dmeventd | |
850 | enable_selinux | |
851 | enable_nls | |
852 | with_localedir | |
853 | with_confdir | |
854 | with_staticdir | |
855 | with_usrlibdir | |
856 | with_usrsbindir | |
a5f46f6a | 857 | with_udev_prefix |
78ce7acc | 858 | with_udevdir |
ec6a6fbe AK |
859 | with_dmeventd_pidfile |
860 | with_dmeventd_path | |
3399ae32 AK |
861 | with_default_system_dir |
862 | with_default_archive_subdir | |
863 | with_default_backup_subdir | |
864 | with_default_cache_subdir | |
865 | with_default_locking_dir | |
ec6a6fbe AK |
866 | with_interface |
867 | ' | |
7a197a62 AK |
868 | ac_precious_vars='build_alias |
869 | host_alias | |
870 | target_alias | |
871 | CC | |
872 | CFLAGS | |
873 | LDFLAGS | |
25fbec5b | 874 | LIBS |
7a197a62 | 875 | CPPFLAGS |
e2997b73 AK |
876 | CPP |
877 | PKG_CONFIG | |
a946372e AK |
878 | PKGCONFIGINIT_CFLAGS |
879 | PKGCONFIGINIT_LIBS | |
880 | CCS_CFLAGS | |
881 | CCS_LIBS | |
882 | GULM_CFLAGS | |
883 | GULM_LIBS | |
884 | CMAN_CFLAGS | |
885 | CMAN_LIBS | |
886 | COROSYNC_CFLAGS | |
887 | COROSYNC_LIBS | |
e2997b73 AK |
888 | QUORUM_CFLAGS |
889 | QUORUM_LIBS | |
a946372e AK |
890 | SALCK_CFLAGS |
891 | SALCK_LIBS | |
e2997b73 AK |
892 | CONFDB_CFLAGS |
893 | CONFDB_LIBS | |
894 | CPG_CFLAGS | |
a946372e AK |
895 | CPG_LIBS |
896 | DLM_CFLAGS | |
90c80887 AK |
897 | DLM_LIBS |
898 | SACKPT_CFLAGS | |
899 | SACKPT_LIBS' | |
7a197a62 | 900 | |
795ca3e5 AK |
901 | |
902 | # Initialize some variables set by options. | |
ad6254c5 AK |
903 | ac_init_help= |
904 | ac_init_version=false | |
ec6a6fbe AK |
905 | ac_unrecognized_opts= |
906 | ac_unrecognized_sep= | |
795ca3e5 AK |
907 | # The variables have the same names as the options, with |
908 | # dashes changed to underlines. | |
ad6254c5 | 909 | cache_file=/dev/null |
795ca3e5 | 910 | exec_prefix=NONE |
795ca3e5 | 911 | no_create= |
795ca3e5 AK |
912 | no_recursion= |
913 | prefix=NONE | |
914 | program_prefix=NONE | |
915 | program_suffix=NONE | |
916 | program_transform_name=s,x,x, | |
917 | silent= | |
918 | site= | |
919 | srcdir= | |
795ca3e5 AK |
920 | verbose= |
921 | x_includes=NONE | |
922 | x_libraries=NONE | |
ad6254c5 AK |
923 | |
924 | # Installation directory options. | |
925 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
926 | # and all the variables that are supposed to be based on exec_prefix | |
927 | # by default will actually change. | |
928 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 929 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
930 | bindir='${exec_prefix}/bin' |
931 | sbindir='${exec_prefix}/sbin' | |
932 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
933 | datarootdir='${prefix}/share' |
934 | datadir='${datarootdir}' | |
795ca3e5 AK |
935 | sysconfdir='${prefix}/etc' |
936 | sharedstatedir='${prefix}/com' | |
937 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
938 | includedir='${prefix}/include' |
939 | oldincludedir='/usr/include' | |
7a197a62 AK |
940 | docdir='${datarootdir}/doc/${PACKAGE}' |
941 | infodir='${datarootdir}/info' | |
942 | htmldir='${docdir}' | |
943 | dvidir='${docdir}' | |
944 | pdfdir='${docdir}' | |
945 | psdir='${docdir}' | |
946 | libdir='${exec_prefix}/lib' | |
947 | localedir='${datarootdir}/locale' | |
948 | mandir='${datarootdir}/man' | |
795ca3e5 | 949 | |
795ca3e5 | 950 | ac_prev= |
7a197a62 | 951 | ac_dashdash= |
795ca3e5 AK |
952 | for ac_option |
953 | do | |
795ca3e5 AK |
954 | # If the previous option needs an argument, assign it. |
955 | if test -n "$ac_prev"; then | |
7a197a62 | 956 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
957 | ac_prev= |
958 | continue | |
959 | fi | |
960 | ||
7a197a62 AK |
961 | case $ac_option in |
962 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
963 | *) ac_optarg=yes ;; | |
964 | esac | |
795ca3e5 AK |
965 | |
966 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
967 | ||
7a197a62 AK |
968 | case $ac_dashdash$ac_option in |
969 | --) | |
970 | ac_dashdash=yes ;; | |
795ca3e5 AK |
971 | |
972 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
973 | ac_prev=bindir ;; | |
974 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 975 | bindir=$ac_optarg ;; |
795ca3e5 AK |
976 | |
977 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 978 | ac_prev=build_alias ;; |
795ca3e5 | 979 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 980 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
981 | |
982 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
983 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
984 | ac_prev=cache_file ;; | |
985 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
986 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
987 | cache_file=$ac_optarg ;; |
988 | ||
989 | --config-cache | -C) | |
990 | cache_file=config.cache ;; | |
795ca3e5 | 991 | |
7a197a62 | 992 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 993 | ac_prev=datadir ;; |
7a197a62 | 994 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 995 | datadir=$ac_optarg ;; |
795ca3e5 | 996 | |
7a197a62 AK |
997 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
998 | | --dataroo | --dataro | --datar) | |
999 | ac_prev=datarootdir ;; | |
1000 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1001 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1002 | datarootdir=$ac_optarg ;; | |
1003 | ||
795ca3e5 | 1004 | -disable-* | --disable-*) |
ec6a6fbe | 1005 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1006 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1007 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1008 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1009 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1010 | ac_useropt_orig=$ac_useropt |
1011 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1012 | case $ac_user_opts in | |
1013 | *" | |
1014 | "enable_$ac_useropt" | |
1015 | "*) ;; | |
1016 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1017 | ac_unrecognized_sep=', ';; | |
1018 | esac | |
1019 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1020 | |
1021 | -docdir | --docdir | --docdi | --doc | --do) | |
1022 | ac_prev=docdir ;; | |
1023 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1024 | docdir=$ac_optarg ;; | |
1025 | ||
1026 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1027 | ac_prev=dvidir ;; | |
1028 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1029 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1030 | |
1031 | -enable-* | --enable-*) | |
ec6a6fbe | 1032 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1033 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1034 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1035 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1036 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1037 | ac_useropt_orig=$ac_useropt |
1038 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1039 | case $ac_user_opts in | |
1040 | *" | |
1041 | "enable_$ac_useropt" | |
1042 | "*) ;; | |
1043 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1044 | ac_unrecognized_sep=', ';; | |
1045 | esac | |
1046 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1047 | |
1048 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1049 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1050 | | --exec | --exe | --ex) | |
1051 | ac_prev=exec_prefix ;; | |
1052 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1053 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1054 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1055 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1056 | |
1057 | -gas | --gas | --ga | --g) | |
1058 | # Obsolete; use --with-gas. | |
1059 | with_gas=yes ;; | |
1060 | ||
ad6254c5 AK |
1061 | -help | --help | --hel | --he | -h) |
1062 | ac_init_help=long ;; | |
1063 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1064 | ac_init_help=recursive ;; | |
1065 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1066 | ac_init_help=short ;; | |
795ca3e5 AK |
1067 | |
1068 | -host | --host | --hos | --ho) | |
ad6254c5 | 1069 | ac_prev=host_alias ;; |
795ca3e5 | 1070 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1071 | host_alias=$ac_optarg ;; |
795ca3e5 | 1072 | |
7a197a62 AK |
1073 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1074 | ac_prev=htmldir ;; | |
1075 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1076 | | --ht=*) | |
1077 | htmldir=$ac_optarg ;; | |
1078 | ||
795ca3e5 AK |
1079 | -includedir | --includedir | --includedi | --included | --include \ |
1080 | | --includ | --inclu | --incl | --inc) | |
1081 | ac_prev=includedir ;; | |
1082 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1083 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1084 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1085 | |
1086 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1087 | ac_prev=infodir ;; | |
1088 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1089 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1090 | |
1091 | -libdir | --libdir | --libdi | --libd) | |
1092 | ac_prev=libdir ;; | |
1093 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1094 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1095 | |
1096 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1097 | | --libexe | --libex | --libe) | |
1098 | ac_prev=libexecdir ;; | |
1099 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1100 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1101 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1102 | |
7a197a62 AK |
1103 | -localedir | --localedir | --localedi | --localed | --locale) |
1104 | ac_prev=localedir ;; | |
1105 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1106 | localedir=$ac_optarg ;; | |
1107 | ||
795ca3e5 | 1108 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1109 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1110 | ac_prev=localstatedir ;; |
1111 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1112 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1113 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1114 | |
1115 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1116 | ac_prev=mandir ;; | |
1117 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1118 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1119 | |
1120 | -nfp | --nfp | --nf) | |
1121 | # Obsolete; use --without-fp. | |
1122 | with_fp=no ;; | |
1123 | ||
1124 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1125 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1126 | no_create=yes ;; |
1127 | ||
1128 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1129 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1130 | no_recursion=yes ;; | |
1131 | ||
1132 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1133 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1134 | | --oldin | --oldi | --old | --ol | --o) | |
1135 | ac_prev=oldincludedir ;; | |
1136 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1137 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1138 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1139 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1140 | |
1141 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1142 | ac_prev=prefix ;; | |
1143 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1144 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1145 | |
1146 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1147 | | --program-pre | --program-pr | --program-p) | |
1148 | ac_prev=program_prefix ;; | |
1149 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1150 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1151 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1152 | |
1153 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1154 | | --program-suf | --program-su | --program-s) | |
1155 | ac_prev=program_suffix ;; | |
1156 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1157 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1158 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1159 | |
1160 | -program-transform-name | --program-transform-name \ | |
1161 | | --program-transform-nam | --program-transform-na \ | |
1162 | | --program-transform-n | --program-transform- \ | |
1163 | | --program-transform | --program-transfor \ | |
1164 | | --program-transfo | --program-transf \ | |
1165 | | --program-trans | --program-tran \ | |
1166 | | --progr-tra | --program-tr | --program-t) | |
1167 | ac_prev=program_transform_name ;; | |
1168 | -program-transform-name=* | --program-transform-name=* \ | |
1169 | | --program-transform-nam=* | --program-transform-na=* \ | |
1170 | | --program-transform-n=* | --program-transform-=* \ | |
1171 | | --program-transform=* | --program-transfor=* \ | |
1172 | | --program-transfo=* | --program-transf=* \ | |
1173 | | --program-trans=* | --program-tran=* \ | |
1174 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1175 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1176 | |
7a197a62 AK |
1177 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1178 | ac_prev=pdfdir ;; | |
1179 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1180 | pdfdir=$ac_optarg ;; | |
1181 | ||
1182 | -psdir | --psdir | --psdi | --psd | --ps) | |
1183 | ac_prev=psdir ;; | |
1184 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1185 | psdir=$ac_optarg ;; | |
1186 | ||
795ca3e5 AK |
1187 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1188 | | -silent | --silent | --silen | --sile | --sil) | |
1189 | silent=yes ;; | |
1190 | ||
1191 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1192 | ac_prev=sbindir ;; | |
1193 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1194 | | --sbi=* | --sb=*) | |
ad6254c5 | 1195 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1196 | |
1197 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1198 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1199 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1200 | | --sha | --sh) | |
1201 | ac_prev=sharedstatedir ;; | |
1202 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1203 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1204 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1205 | | --sha=* | --sh=*) | |
ad6254c5 | 1206 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1207 | |
1208 | -site | --site | --sit) | |
1209 | ac_prev=site ;; | |
1210 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1211 | site=$ac_optarg ;; |
795ca3e5 AK |
1212 | |
1213 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1214 | ac_prev=srcdir ;; | |
1215 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1216 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1217 | |
1218 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1219 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1220 | ac_prev=sysconfdir ;; | |
1221 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1222 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1223 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1224 | |
1225 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1226 | ac_prev=target_alias ;; |
795ca3e5 | 1227 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1228 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1229 | |
1230 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1231 | verbose=yes ;; | |
1232 | ||
ad6254c5 AK |
1233 | -version | --version | --versio | --versi | --vers | -V) |
1234 | ac_init_version=: ;; | |
795ca3e5 AK |
1235 | |
1236 | -with-* | --with-*) | |
ec6a6fbe | 1237 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1238 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1239 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1240 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1241 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1242 | ac_useropt_orig=$ac_useropt |
1243 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1244 | case $ac_user_opts in | |
1245 | *" | |
1246 | "with_$ac_useropt" | |
1247 | "*) ;; | |
1248 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1249 | ac_unrecognized_sep=', ';; | |
1250 | esac | |
1251 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1252 | |
1253 | -without-* | --without-*) | |
ec6a6fbe | 1254 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1255 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1256 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1257 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1258 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1259 | ac_useropt_orig=$ac_useropt |
1260 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1261 | case $ac_user_opts in | |
1262 | *" | |
1263 | "with_$ac_useropt" | |
1264 | "*) ;; | |
1265 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1266 | ac_unrecognized_sep=', ';; | |
1267 | esac | |
1268 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1269 | |
1270 | --x) | |
1271 | # Obsolete; use --with-x. | |
1272 | with_x=yes ;; | |
1273 | ||
1274 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1275 | | --x-incl | --x-inc | --x-in | --x-i) | |
1276 | ac_prev=x_includes ;; | |
1277 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1278 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1279 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1280 | |
1281 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1282 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1283 | ac_prev=x_libraries ;; | |
1284 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1285 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1286 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1287 | |
ec6a6fbe | 1288 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1289 | Try \`$0 --help' for more information." >&2 |
1290 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1291 | ;; |
1292 | ||
ad6254c5 AK |
1293 | *=*) |
1294 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1295 | # Reject names that are not valid shell variable names. | |
1296 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1297 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1298 | { (exit 1); exit 1; }; } |
7a197a62 | 1299 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1300 | export $ac_envvar ;; |
1301 | ||
795ca3e5 | 1302 | *) |
ad6254c5 | 1303 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1304 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1305 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1306 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1307 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1308 | ;; |
1309 | ||
1310 | esac | |
1311 | done | |
1312 | ||
1313 | if test -n "$ac_prev"; then | |
ad6254c5 | 1314 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1315 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1316 | { (exit 1); exit 1; }; } |
795ca3e5 | 1317 | fi |
795ca3e5 | 1318 | |
ec6a6fbe AK |
1319 | if test -n "$ac_unrecognized_opts"; then |
1320 | case $enable_option_checking in | |
1321 | no) ;; | |
1322 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1323 | { (exit 1); exit 1; }; } ;; | |
1324 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1325 | esac | |
1326 | fi | |
1327 | ||
1328 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1329 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1330 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1331 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1332 | libdir localedir mandir | |
795ca3e5 | 1333 | do |
7a197a62 | 1334 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1335 | # Remove trailing slashes. |
1336 | case $ac_val in | |
1337 | */ ) | |
1338 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1339 | eval $ac_var=\$ac_val;; | |
1340 | esac | |
1341 | # Be sure to have absolute directory names. | |
ad6254c5 | 1342 | case $ac_val in |
7a197a62 AK |
1343 | [\\/$]* | ?:[\\/]* ) continue;; |
1344 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1345 | esac |
ec6a6fbe | 1346 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1347 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1348 | done |
1349 | ||
ad6254c5 AK |
1350 | # There might be people who depend on the old broken behavior: `$host' |
1351 | # used to hold the argument of --host etc. | |
1352 | # FIXME: To remove some day. | |
1353 | build=$build_alias | |
1354 | host=$host_alias | |
1355 | target=$target_alias | |
1356 | ||
1357 | # FIXME: To remove some day. | |
1358 | if test "x$host_alias" != x; then | |
1359 | if test "x$build_alias" = x; then | |
1360 | cross_compiling=maybe | |
ec6a6fbe | 1361 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1362 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1363 | elif test "x$build_alias" != "x$host_alias"; then | |
1364 | cross_compiling=yes | |
1365 | fi | |
1366 | fi | |
8106cdd5 | 1367 | |
ad6254c5 AK |
1368 | ac_tool_prefix= |
1369 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1370 | ||
1371 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1372 | |
795ca3e5 | 1373 | |
7a197a62 AK |
1374 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1375 | ac_ls_di=`ls -di .` && | |
1376 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1377 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1378 | { (exit 1); exit 1; }; } |
1379 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1380 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1381 | { (exit 1); exit 1; }; } |
1382 | ||
1383 | ||
795ca3e5 AK |
1384 | # Find the source files, if location was not specified. |
1385 | if test -z "$srcdir"; then | |
1386 | ac_srcdir_defaulted=yes | |
7a197a62 | 1387 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1388 | ac_confdir=`$as_dirname -- "$as_myself" || |
1389 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1390 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1391 | X"$as_myself" : 'X\(//\)$' \| \ | |
1392 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1393 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | /^X\(\/\/\)[^/].*/{ | |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\/\)$/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | /^X\(\/\).*/{ | |
1407 | s//\1/ | |
1408 | q | |
1409 | } | |
1410 | s/.*/./; q'` | |
795ca3e5 | 1411 | srcdir=$ac_confdir |
7a197a62 | 1412 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1413 | srcdir=.. |
1414 | fi | |
1415 | else | |
1416 | ac_srcdir_defaulted=no | |
1417 | fi | |
7a197a62 AK |
1418 | if test ! -r "$srcdir/$ac_unique_file"; then |
1419 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1420 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1421 | { (exit 1); exit 1; }; } |
795ca3e5 | 1422 | fi |
7a197a62 AK |
1423 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1424 | ac_abs_confdir=`( | |
ec6a6fbe | 1425 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1426 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1427 | pwd)` |
1428 | # When building in place, set srcdir=. | |
1429 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1430 | srcdir=. | |
1431 | fi | |
1432 | # Remove unnecessary trailing slashes from srcdir. | |
1433 | # Double slashes in file names in object file debugging info | |
1434 | # mess up M-x gdb in Emacs. | |
1435 | case $srcdir in | |
1436 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1437 | esac | |
1438 | for ac_var in $ac_precious_vars; do | |
1439 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1440 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1441 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1442 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1443 | done | |
ad6254c5 AK |
1444 | |
1445 | # | |
1446 | # Report the --help message. | |
1447 | # | |
1448 | if test "$ac_init_help" = "long"; then | |
1449 | # Omit some internal or obsolete options to make the list less imposing. | |
1450 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1451 | cat <<_ACEOF | |
1452 | \`configure' configures this package to adapt to many kinds of systems. | |
1453 | ||
1454 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1455 | ||
1456 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1457 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1458 | ||
1459 | Defaults for the options are specified in brackets. | |
1460 | ||
1461 | Configuration: | |
1462 | -h, --help display this help and exit | |
1463 | --help=short display options specific to this package | |
1464 | --help=recursive display the short help of all the included packages | |
1465 | -V, --version display version information and exit | |
1466 | -q, --quiet, --silent do not print \`checking...' messages | |
1467 | --cache-file=FILE cache test results in FILE [disabled] | |
1468 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1469 | -n, --no-create do not create output files | |
1470 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1471 | ||
ad6254c5 AK |
1472 | Installation directories: |
1473 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1474 | [$ac_default_prefix] |
ad6254c5 | 1475 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1476 | [PREFIX] |
ad6254c5 AK |
1477 | |
1478 | By default, \`make install' will install all the files in | |
1479 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1480 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1481 | for instance \`--prefix=\$HOME'. | |
1482 | ||
1483 | For better control, use the options below. | |
1484 | ||
1485 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1486 | --bindir=DIR user executables [EPREFIX/bin] |
1487 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1488 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1489 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1490 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1491 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1492 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1493 | --includedir=DIR C header files [PREFIX/include] | |
1494 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1495 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1496 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1497 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1498 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1499 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1500 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1501 | --htmldir=DIR html documentation [DOCDIR] | |
1502 | --dvidir=DIR dvi documentation [DOCDIR] | |
1503 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1504 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1505 | _ACEOF |
1506 | ||
1507 | cat <<\_ACEOF | |
1508 | ||
1509 | System types: | |
1510 | --build=BUILD configure for building on BUILD [guessed] | |
1511 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1512 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1513 | _ACEOF | |
1514 | fi | |
1515 | ||
1516 | if test -n "$ac_init_help"; then | |
1517 | ||
1518 | cat <<\_ACEOF | |
1519 | ||
1520 | Optional Features: | |
ec6a6fbe | 1521 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1522 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1523 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1524 | --enable-static_link Use this to link the tools to their libraries |
1525 | statically. Default is dynamic linking | |
ad6254c5 AK |
1526 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1527 | device-mapper is missing from the kernel | |
1b523347 | 1528 | --disable-readline Disable readline support |
89044bc0 | 1529 | --enable-realtime Enable realtime clock support |
66fd4529 | 1530 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1531 | --enable-debug Enable debugging |
5556819a | 1532 | --enable-profiling Gather gcov profiling data |
93bd259b | 1533 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1534 | --enable-udev_sync Enable synchronisation with udev processing |
1535 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1536 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1537 | --enable-units-compat Enable output compatibility with old versions that |
1538 | that don't use KiB-style unit suffixes | |
93bd259b | 1539 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1540 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1541 | --enable-applib Build application library |
ad6254c5 | 1542 | --enable-cmdlib Build shared command library |
93bd259b | 1543 | --enable-pkgconfig Install pkgconfig support |
23b059e7 | 1544 | --enable-write_install Install user writable files |
c9274524 | 1545 | --disable-fsadm Disable fsadm |
15d91f5a | 1546 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1547 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1548 | --enable-nls Enable Native Language Support |
1549 | ||
1550 | Optional Packages: | |
1551 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1552 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1553 | --with-user=USER Set the owner of installed files [USER=] |
1554 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1555 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1556 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1557 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1558 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1559 | TYPE=internal | |
1560 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1561 | TYPE=internal | |
1562 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1563 | TYPE=internal | |
1564 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1565 | TYPE=internal | |
1566 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1567 | TYPE=internal | |
8fea97b7 | 1568 | --with-replicators=TYPE Replicator support: internal/shared/none TYPE=none |
a946372e | 1569 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1570 | The following cluster manager combinations are valid: |
a946372e AK |
1571 | * cman,gulm (RHEL4 or equivalent) |
1572 | * cman (RHEL5 or equivalent) | |
1573 | * cman,corosync,openais (or selection of them) | |
1091650a | 1574 | * singlenode (localhost only) |
a946372e AK |
1575 | * all (autodetect) |
1576 | * none (disable build) | |
a266258f | 1577 | TYPE=none |
66fd4529 | 1578 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1579 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1580 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1581 | --with-confdir=DIR Configuration files in DIR [/etc] |
1582 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1583 | --with-usrlibdir=DIR |
1584 | --with-usrsbindir=DIR | |
a5f46f6a | 1585 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1586 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1587 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1588 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
3399ae32 AK |
1589 | --with-default-system-dir=DIR Default LVM system directory [/etc/lvm] |
1590 | --with-default-archive-subdir=SUBDIR Default metadata archive subdir [archive] | |
1591 | --with-default-backup-subdir=SUBDIR Default metadata backup subdir [backup] | |
1592 | --with-default-cache-subdir=SUBDIR Default metadata cache subdir [cache] | |
1593 | --with-default-locking-dir=DIR Default locking directory [/var/lock/lvm] | |
93bd259b | 1594 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1595 | |
1596 | Some influential environment variables: | |
1597 | CC C compiler command | |
1598 | CFLAGS C compiler flags | |
1599 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1600 | nonstandard directory <lib dir> | |
25fbec5b | 1601 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1602 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1603 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1604 | CPP C preprocessor |
e2997b73 | 1605 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1606 | PKGCONFIGINIT_CFLAGS |
1607 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1608 | PKGCONFIGINIT_LIBS | |
1609 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1610 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1611 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1612 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1613 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1614 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1615 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1616 | COROSYNC_CFLAGS | |
1617 | C compiler flags for COROSYNC, overriding pkg-config | |
1618 | COROSYNC_LIBS | |
1619 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1620 | QUORUM_CFLAGS |
1621 | C compiler flags for QUORUM, overriding pkg-config | |
1622 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1623 | SALCK_CFLAGS |
1624 | C compiler flags for SALCK, overriding pkg-config | |
1625 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1626 | CONFDB_CFLAGS |
1627 | C compiler flags for CONFDB, overriding pkg-config | |
1628 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1629 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1630 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1631 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1632 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1633 | SACKPT_CFLAGS |
1634 | C compiler flags for SACKPT, overriding pkg-config | |
1635 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1636 | |
1637 | Use these variables to override the choices made by `configure' or to help | |
1638 | it to find libraries and programs with nonstandard names/locations. | |
1639 | ||
1640 | _ACEOF | |
7a197a62 | 1641 | ac_status=$? |
ad6254c5 AK |
1642 | fi |
1643 | ||
1644 | if test "$ac_init_help" = "recursive"; then | |
1645 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1646 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1647 | test -d "$ac_dir" || |
1648 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1649 | continue | |
ad6254c5 AK |
1650 | ac_builddir=. |
1651 | ||
7a197a62 AK |
1652 | case "$ac_dir" in |
1653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1654 | *) | |
ec6a6fbe | 1655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1656 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1658 | case $ac_top_builddir_sub in |
1659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1661 | esac ;; | |
1662 | esac | |
1663 | ac_abs_top_builddir=$ac_pwd | |
1664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1665 | # for backward compatibility: | |
1666 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1667 | |
1668 | case $srcdir in | |
7a197a62 | 1669 | .) # We are building in place. |
ad6254c5 | 1670 | ac_srcdir=. |
7a197a62 AK |
1671 | ac_top_srcdir=$ac_top_builddir_sub |
1672 | ac_abs_top_srcdir=$ac_pwd ;; | |
1673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1674 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1675 | ac_top_srcdir=$srcdir |
1676 | ac_abs_top_srcdir=$srcdir ;; | |
1677 | *) # Relative name. | |
1678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1681 | esac |
7a197a62 AK |
1682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1683 | ||
1684 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1685 | # Check for guested configure. | |
1686 | if test -f "$ac_srcdir/configure.gnu"; then | |
1687 | echo && | |
1688 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1689 | elif test -f "$ac_srcdir/configure"; then | |
1690 | echo && | |
1691 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1692 | else |
ec6a6fbe | 1693 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1694 | fi || ac_status=$? |
1695 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1696 | done |
1697 | fi | |
1698 | ||
7a197a62 | 1699 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1700 | if $ac_init_version; then |
1701 | cat <<\_ACEOF | |
7a197a62 | 1702 | configure |
ec6a6fbe | 1703 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1704 | |
7a197a62 | 1705 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1706 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1707 | This configure script is free software; the Free Software Foundation |
1708 | gives unlimited permission to copy, distribute and modify it. | |
1709 | _ACEOF | |
7a197a62 | 1710 | exit |
ad6254c5 | 1711 | fi |
7a197a62 | 1712 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1713 | This file contains any messages produced by compilers while |
1714 | running configure, to aid debugging if configure makes a mistake. | |
1715 | ||
1716 | It was created by $as_me, which was | |
ec6a6fbe | 1717 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1718 | |
1719 | $ $0 $@ | |
1720 | ||
1721 | _ACEOF | |
7a197a62 | 1722 | exec 5>>config.log |
ad6254c5 AK |
1723 | { |
1724 | cat <<_ASUNAME | |
1725 | ## --------- ## | |
1726 | ## Platform. ## | |
1727 | ## --------- ## | |
1728 | ||
1729 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1730 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1731 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1732 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1733 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1734 | ||
1735 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1736 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1737 | ||
1738 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1739 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1740 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1741 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1742 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1743 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1744 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1745 | ||
1746 | _ASUNAME | |
1747 | ||
1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1749 | for as_dir in $PATH | |
1750 | do | |
1751 | IFS=$as_save_IFS | |
1752 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1753 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1754 | done |
7a197a62 | 1755 | IFS=$as_save_IFS |
ad6254c5 AK |
1756 | |
1757 | } >&5 | |
1758 | ||
1759 | cat >&5 <<_ACEOF | |
1760 | ||
1761 | ||
1762 | ## ----------- ## | |
1763 | ## Core tests. ## | |
1764 | ## ----------- ## | |
1765 | ||
1766 | _ACEOF | |
1767 | ||
1768 | ||
1769 | # Keep a trace of the command line. | |
1770 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1771 | # Strip out --silent because we don't want to record it for future runs. | |
1772 | # Also quote any args containing shell meta-characters. | |
1773 | # Make two passes to allow for proper duplicate-argument suppression. | |
1774 | ac_configure_args= | |
1775 | ac_configure_args0= | |
1776 | ac_configure_args1= | |
ad6254c5 AK |
1777 | ac_must_keep_next=false |
1778 | for ac_pass in 1 2 | |
1779 | do | |
1780 | for ac_arg | |
1781 | do | |
1782 | case $ac_arg in | |
1783 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1784 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1785 | | -silent | --silent | --silen | --sile | --sil) | |
1786 | continue ;; | |
7a197a62 | 1787 | *\'*) |
ec6a6fbe | 1788 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1789 | esac |
1790 | case $ac_pass in | |
1791 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1792 | 2) | |
1793 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1794 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1795 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1796 | else |
8a2fc586 AK |
1797 | case $ac_arg in |
1798 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1799 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1800 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1801 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1802 | case "$ac_configure_args0 " in | |
1803 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1804 | esac | |
1805 | ;; | |
1806 | -* ) ac_must_keep_next=true ;; | |
1807 | esac | |
ad6254c5 | 1808 | fi |
7a197a62 | 1809 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1810 | ;; |
1811 | esac | |
1812 | done | |
1813 | done | |
1814 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1815 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1816 | ||
1817 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1818 | # config.log. We remove comments because anyway the quotes in there | |
1819 | # would cause problems or look ugly. | |
7a197a62 AK |
1820 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1821 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1822 | trap 'exit_status=$? |
1823 | # Save into config.log some information that might help in debugging. | |
1824 | { | |
1825 | echo | |
1826 | ||
1827 | cat <<\_ASBOX | |
1828 | ## ---------------- ## | |
1829 | ## Cache variables. ## | |
1830 | ## ---------------- ## | |
1831 | _ASBOX | |
1832 | echo | |
1833 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1834 | ( |
1835 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1836 | eval ac_val=\$$ac_var | |
1837 | case $ac_val in #( | |
1838 | *${as_nl}*) | |
1839 | case $ac_var in #( | |
ec6a6fbe AK |
1840 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1841 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1842 | esac |
1843 | case $ac_var in #( | |
1844 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1845 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1846 | *) $as_unset $ac_var ;; |
1847 | esac ;; | |
1848 | esac | |
1849 | done | |
ad6254c5 | 1850 | (set) 2>&1 | |
7a197a62 AK |
1851 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1852 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1853 | sed -n \ |
7a197a62 AK |
1854 | "s/'\''/'\''\\\\'\'''\''/g; |
1855 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1856 | ;; #( | |
ad6254c5 | 1857 | *) |
7a197a62 | 1858 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1859 | ;; |
7a197a62 AK |
1860 | esac | |
1861 | sort | |
1862 | ) | |
ad6254c5 AK |
1863 | echo |
1864 | ||
1865 | cat <<\_ASBOX | |
1866 | ## ----------------- ## | |
1867 | ## Output variables. ## | |
1868 | ## ----------------- ## | |
1869 | _ASBOX | |
1870 | echo | |
1871 | for ac_var in $ac_subst_vars | |
1872 | do | |
7a197a62 AK |
1873 | eval ac_val=\$$ac_var |
1874 | case $ac_val in | |
ec6a6fbe | 1875 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1876 | esac |
ec6a6fbe | 1877 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1878 | done | sort |
1879 | echo | |
1880 | ||
1881 | if test -n "$ac_subst_files"; then | |
1882 | cat <<\_ASBOX | |
7a197a62 AK |
1883 | ## ------------------- ## |
1884 | ## File substitutions. ## | |
1885 | ## ------------------- ## | |
ad6254c5 AK |
1886 | _ASBOX |
1887 | echo | |
1888 | for ac_var in $ac_subst_files | |
1889 | do | |
7a197a62 AK |
1890 | eval ac_val=\$$ac_var |
1891 | case $ac_val in | |
ec6a6fbe | 1892 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1893 | esac |
ec6a6fbe | 1894 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1895 | done | sort |
1896 | echo | |
1897 | fi | |
1898 | ||
1899 | if test -s confdefs.h; then | |
1900 | cat <<\_ASBOX | |
1901 | ## ----------- ## | |
1902 | ## confdefs.h. ## | |
1903 | ## ----------- ## | |
1904 | _ASBOX | |
1905 | echo | |
7a197a62 | 1906 | cat confdefs.h |
ad6254c5 AK |
1907 | echo |
1908 | fi | |
1909 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1910 | $as_echo "$as_me: caught signal $ac_signal" |
1911 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1912 | } >&5 |
7a197a62 AK |
1913 | rm -f core *.core core.conftest.* && |
1914 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1915 | exit $exit_status |
7a197a62 | 1916 | ' 0 |
ad6254c5 AK |
1917 | for ac_signal in 1 2 13 15; do |
1918 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1919 | done | |
1920 | ac_signal=0 | |
1921 | ||
1922 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1923 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1924 | |
1925 | # Predefined preprocessor variables. | |
1926 | ||
1927 | cat >>confdefs.h <<_ACEOF | |
1928 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1929 | _ACEOF | |
1930 | ||
1931 | ||
1932 | cat >>confdefs.h <<_ACEOF | |
1933 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1934 | _ACEOF | |
1935 | ||
1936 | ||
1937 | cat >>confdefs.h <<_ACEOF | |
1938 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1939 | _ACEOF | |
8106cdd5 | 1940 | |
ad6254c5 AK |
1941 | |
1942 | cat >>confdefs.h <<_ACEOF | |
1943 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1944 | _ACEOF | |
1945 | ||
1946 | ||
1947 | cat >>confdefs.h <<_ACEOF | |
1948 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1949 | _ACEOF | |
1950 | ||
1951 | ||
1952 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1953 | # Prefer an explicitly selected file to automatically selected ones. |
1954 | ac_site_file1=NONE | |
1955 | ac_site_file2=NONE | |
7a197a62 | 1956 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1957 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1958 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1959 | ac_site_file1=$prefix/share/config.site |
1960 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1961 | else |
ec6a6fbe AK |
1962 | ac_site_file1=$ac_default_prefix/share/config.site |
1963 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1964 | fi |
ec6a6fbe | 1965 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1966 | do |
ec6a6fbe | 1967 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1968 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1969 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1970 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1971 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1972 | . "$ac_site_file" |
1973 | fi | |
1974 | done | |
1975 | ||
1976 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1977 | # Some versions of bash will fail to source /dev/null (special |
1978 | # files actually), so we avoid doing that. | |
1979 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1980 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1981 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1982 | case $cache_file in |
7a197a62 AK |
1983 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1984 | *) . "./$cache_file";; | |
ad6254c5 AK |
1985 | esac |
1986 | fi | |
795ca3e5 | 1987 | else |
ec6a6fbe AK |
1988 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1989 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1990 | >$cache_file |
1991 | fi | |
1992 | ||
1993 | # Check that the precious variables saved in the cache have kept the same | |
1994 | # value. | |
1995 | ac_cache_corrupted=false | |
7a197a62 | 1996 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1997 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1998 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1999 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2000 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2001 | case $ac_old_set,$ac_new_set in |
2002 | set,) | |
ec6a6fbe AK |
2003 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2004 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2005 | ac_cache_corrupted=: ;; |
2006 | ,set) | |
ec6a6fbe AK |
2007 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2008 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2009 | ac_cache_corrupted=: ;; |
2010 | ,);; | |
2011 | *) | |
2012 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2013 | # differences in whitespace do not lead to failure. |
2014 | ac_old_val_w=`echo x $ac_old_val` | |
2015 | ac_new_val_w=`echo x $ac_new_val` | |
2016 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2017 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2018 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2019 | ac_cache_corrupted=: | |
2020 | else | |
2021 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2022 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2023 | eval $ac_var=\$ac_old_val | |
2024 | fi | |
2025 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2026 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2027 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2028 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2029 | fi;; |
2030 | esac | |
2031 | # Pass precious variables to config.status. | |
2032 | if test "$ac_new_set" = set; then | |
2033 | case $ac_new_val in | |
ec6a6fbe | 2034 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2035 | *) ac_arg=$ac_var=$ac_new_val ;; |
2036 | esac | |
2037 | case " $ac_configure_args " in | |
2038 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2039 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2040 | esac | |
2041 | fi | |
2042 | done | |
2043 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2044 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2045 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2046 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2047 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2048 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2049 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2050 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2051 | fi |
2052 | ||
ad6254c5 AK |
2053 | |
2054 | ||
2055 | ||
2056 | ||
2057 | ||
2058 | ||
2059 | ||
2060 | ||
2061 | ||
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
7a197a62 AK |
2069 | ac_ext=c |
2070 | ac_cpp='$CPP $CPPFLAGS' | |
2071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2074 | |
795ca3e5 AK |
2075 | |
2076 | ||
7a197a62 | 2077 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2078 | |
2079 | ||
80992638 | 2080 | ################################################################################ |
795ca3e5 | 2081 | ac_aux_dir= |
7a197a62 AK |
2082 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2083 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2084 | ac_aux_dir=$ac_dir |
2085 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2086 | break | |
7a197a62 | 2087 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2088 | ac_aux_dir=$ac_dir |
2089 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2090 | break | |
7a197a62 | 2091 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2092 | ac_aux_dir=$ac_dir |
2093 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2094 | break | |
795ca3e5 AK |
2095 | fi |
2096 | done | |
2097 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2098 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2099 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2100 | { (exit 1); exit 1; }; } |
795ca3e5 | 2101 | fi |
7a197a62 AK |
2102 | |
2103 | # These three variables are undocumented and unsupported, | |
2104 | # and are intended to be withdrawn in a future Autoconf release. | |
2105 | # They can cause serious problems if a builder's source tree is in a directory | |
2106 | # whose full name contains unusual characters. | |
2107 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2108 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2109 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2110 | ||
8ce0cbda AK |
2111 | |
2112 | ||
ad6254c5 | 2113 | ################################################################################ |
8ce0cbda | 2114 | # Make sure we can run config.sub. |
7a197a62 | 2115 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2116 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2117 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2118 | { (exit 1); exit 1; }; } |
2119 | ||
ec6a6fbe AK |
2120 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2121 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2122 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2123 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2124 | else |
7a197a62 AK |
2125 | ac_build_alias=$build_alias |
2126 | test "x$ac_build_alias" = x && | |
2127 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2128 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2129 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2130 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2131 | { (exit 1); exit 1; }; } |
7a197a62 | 2132 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2133 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2134 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2135 | { (exit 1); exit 1; }; } |
2136 | ||
2137 | fi | |
ec6a6fbe AK |
2138 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2139 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2140 | case $ac_cv_build in |
2141 | *-*-*) ;; | |
ec6a6fbe AK |
2142 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2143 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2144 | { (exit 1); exit 1; }; };; |
2145 | esac | |
ad6254c5 | 2146 | build=$ac_cv_build |
7a197a62 AK |
2147 | ac_save_IFS=$IFS; IFS='-' |
2148 | set x $ac_cv_build | |
2149 | shift | |
2150 | build_cpu=$1 | |
2151 | build_vendor=$2 | |
2152 | shift; shift | |
2153 | # Remember, the first character of IFS is used to create $*, | |
2154 | # except with old shells: | |
2155 | build_os=$* | |
2156 | IFS=$ac_save_IFS | |
2157 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2158 | |
2159 | ||
ec6a6fbe AK |
2160 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2161 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2162 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2163 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2164 | else |
7a197a62 AK |
2165 | if test "x$host_alias" = x; then |
2166 | ac_cv_host=$ac_cv_build | |
2167 | else | |
2168 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2169 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2170 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2171 | { (exit 1); exit 1; }; } |
7a197a62 | 2172 | fi |
ad6254c5 AK |
2173 | |
2174 | fi | |
ec6a6fbe AK |
2175 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2176 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2177 | case $ac_cv_host in |
2178 | *-*-*) ;; | |
ec6a6fbe AK |
2179 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2180 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2181 | { (exit 1); exit 1; }; };; |
2182 | esac | |
ad6254c5 | 2183 | host=$ac_cv_host |
7a197a62 AK |
2184 | ac_save_IFS=$IFS; IFS='-' |
2185 | set x $ac_cv_host | |
2186 | shift | |
2187 | host_cpu=$1 | |
2188 | host_vendor=$2 | |
2189 | shift; shift | |
2190 | # Remember, the first character of IFS is used to create $*, | |
2191 | # except with old shells: | |
2192 | host_os=$* | |
2193 | IFS=$ac_save_IFS | |
2194 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2195 | |
2196 | ||
ec6a6fbe AK |
2197 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2198 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2199 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2200 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2201 | else |
7a197a62 AK |
2202 | if test "x$target_alias" = x; then |
2203 | ac_cv_target=$ac_cv_host | |
2204 | else | |
2205 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2206 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2207 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2208 | { (exit 1); exit 1; }; } |
7a197a62 | 2209 | fi |
8ce0cbda | 2210 | |
ad6254c5 | 2211 | fi |
ec6a6fbe AK |
2212 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2213 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2214 | case $ac_cv_target in |
2215 | *-*-*) ;; | |
ec6a6fbe AK |
2216 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2217 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2218 | { (exit 1); exit 1; }; };; |
2219 | esac | |
ad6254c5 | 2220 | target=$ac_cv_target |
7a197a62 AK |
2221 | ac_save_IFS=$IFS; IFS='-' |
2222 | set x $ac_cv_target | |
2223 | shift | |
2224 | target_cpu=$1 | |
2225 | target_vendor=$2 | |
2226 | shift; shift | |
2227 | # Remember, the first character of IFS is used to create $*, | |
2228 | # except with old shells: | |
2229 | target_os=$* | |
2230 | IFS=$ac_save_IFS | |
2231 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2232 | |
8ce0cbda | 2233 | |
ad6254c5 AK |
2234 | # The aliases save the names the user supplied, while $host etc. |
2235 | # will get canonicalized. | |
2236 | test -n "$target_alias" && | |
8ce0cbda AK |
2237 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2238 | NONENONEs,x,x, && | |
2239 | program_prefix=${target_alias}- | |
2240 | ||
8ce0cbda AK |
2241 | case "$host_os" in |
2242 | linux*) | |
7f54ef36 | 2243 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2244 | COPTIMISE_FLAG="-O2" |
2245 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2246 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2247 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2248 | LDDEPS="$LDDEPS .export.sym" | |
2249 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2250 | LIB_SUFFIX=so |
8ce0cbda AK |
2251 | DEVMAPPER=yes |
2252 | ODIRECT=yes | |
d0191583 | 2253 | DM_IOCTLS=yes |
8ce0cbda AK |
2254 | SELINUX=yes |
2255 | CLUSTER=internal | |
93bd259b | 2256 | FSADM=yes |
d0191583 | 2257 | ;; |
8ce0cbda AK |
2258 | darwin*) |
2259 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2260 | COPTIMISE_FLAG="-O2" | |
2261 | CLDFLAGS="$CLDFLAGS" | |
2262 | CLDWHOLEARCHIVE="-all_load" | |
2263 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2264 | LIB_SUFFIX=dylib |
a653923f | 2265 | DEVMAPPER=yes |
8ce0cbda | 2266 | ODIRECT=no |
d0191583 | 2267 | DM_IOCTLS=no |
8ce0cbda AK |
2268 | SELINUX=no |
2269 | CLUSTER=none | |
d0191583 JM |
2270 | FSADM=no |
2271 | ;; | |
8ce0cbda AK |
2272 | esac |
2273 | ||
80992638 | 2274 | ################################################################################ |
ec6a6fbe AK |
2275 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2276 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2277 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2278 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2279 | else |
2280 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2281 | for ac_i in 1 2 3 4 5 6 7; do | |
2282 | ac_script="$ac_script$as_nl$ac_script" | |
2283 | done | |
ec6a6fbe | 2284 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2285 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2286 | if test -z "$SED"; then |
5951ef33 | 2287 | ac_path_SED_found=false |
ec6a6fbe AK |
2288 | # Loop through the user's path and test for each of PROGNAME-LIST |
2289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2290 | for as_dir in $PATH |
2291 | do | |
2292 | IFS=$as_save_IFS | |
2293 | test -z "$as_dir" && as_dir=. | |
2294 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2295 | for ac_exec_ext in '' $ac_executable_extensions; do |
2296 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2297 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2298 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2299 | # Check for GNU $ac_path_SED |
2300 | case `"$ac_path_SED" --version 2>&1` in | |
2301 | *GNU*) | |
2302 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2303 | *) | |
2304 | ac_count=0 | |
ec6a6fbe | 2305 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2306 | while : |
2307 | do | |
2308 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2309 | mv "conftest.tmp" "conftest.in" | |
2310 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2311 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2312 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2313 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2314 | ac_count=`expr $ac_count + 1` | |
2315 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2316 | # Best one so far, save it but keep looking for a better one | |
2317 | ac_cv_path_SED="$ac_path_SED" | |
2318 | ac_path_SED_max=$ac_count | |
2319 | fi | |
2320 | # 10*(2^10) chars as input seems more than enough | |
2321 | test $ac_count -gt 10 && break | |
2322 | done | |
2323 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2324 | esac | |
2325 | ||
ec6a6fbe AK |
2326 | $ac_path_SED_found && break 3 |
2327 | done | |
5951ef33 AK |
2328 | done |
2329 | done | |
5951ef33 | 2330 | IFS=$as_save_IFS |
ec6a6fbe AK |
2331 | if test -z "$ac_cv_path_SED"; then |
2332 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2333 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2334 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2335 | fi |
5951ef33 AK |
2336 | else |
2337 | ac_cv_path_SED=$SED | |
2338 | fi | |
2339 | ||
2340 | fi | |
ec6a6fbe AK |
2341 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2342 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2343 | SED="$ac_cv_path_SED" |
2344 | rm -f conftest.sed | |
2345 | ||
ad6254c5 | 2346 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2347 | do |
ad6254c5 | 2348 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2349 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2350 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2351 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2352 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2353 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2354 | else |
2355 | if test -n "$AWK"; then | |
2356 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2357 | else | |
ad6254c5 AK |
2358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2359 | for as_dir in $PATH | |
2360 | do | |
2361 | IFS=$as_save_IFS | |
2362 | test -z "$as_dir" && as_dir=. | |
2363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2365 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2366 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2367 | break 2 |
2368 | fi | |
2369 | done | |
2370 | done | |
7a197a62 | 2371 | IFS=$as_save_IFS |
ad6254c5 | 2372 | |
795ca3e5 AK |
2373 | fi |
2374 | fi | |
ad6254c5 | 2375 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2376 | if test -n "$AWK"; then |
ec6a6fbe AK |
2377 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2378 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2379 | else |
ec6a6fbe AK |
2380 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2381 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2382 | fi |
2383 | ||
7a197a62 | 2384 | |
ad6254c5 AK |
2385 | test -n "$AWK" && break |
2386 | done | |
2387 | ||
2388 | ac_ext=c | |
2389 | ac_cpp='$CPP $CPPFLAGS' | |
2390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2393 | if test -n "$ac_tool_prefix"; then | |
2394 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2395 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2396 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2397 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2398 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2399 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2400 | else |
2401 | if test -n "$CC"; then | |
2402 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2403 | else | |
2404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2405 | for as_dir in $PATH | |
2406 | do | |
2407 | IFS=$as_save_IFS | |
2408 | test -z "$as_dir" && as_dir=. | |
2409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2411 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2412 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2413 | break 2 |
2414 | fi | |
2415 | done | |
8106cdd5 | 2416 | done |
7a197a62 | 2417 | IFS=$as_save_IFS |
8106cdd5 | 2418 | |
ad6254c5 AK |
2419 | fi |
2420 | fi | |
2421 | CC=$ac_cv_prog_CC | |
2422 | if test -n "$CC"; then | |
ec6a6fbe AK |
2423 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2424 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2425 | else |
ec6a6fbe AK |
2426 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2427 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2428 | fi |
2429 | ||
7a197a62 | 2430 | |
ad6254c5 AK |
2431 | fi |
2432 | if test -z "$ac_cv_prog_CC"; then | |
2433 | ac_ct_CC=$CC | |
2434 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2435 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2436 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2437 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2438 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2439 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2440 | else |
2441 | if test -n "$ac_ct_CC"; then | |
2442 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2443 | else | |
2444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2445 | for as_dir in $PATH | |
2446 | do | |
2447 | IFS=$as_save_IFS | |
2448 | test -z "$as_dir" && as_dir=. | |
2449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2451 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2452 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2453 | break 2 |
2454 | fi | |
2455 | done | |
2456 | done | |
7a197a62 | 2457 | IFS=$as_save_IFS |
ad6254c5 AK |
2458 | |
2459 | fi | |
2460 | fi | |
2461 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2462 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2463 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2464 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2465 | else |
ec6a6fbe AK |
2466 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2467 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2468 | fi |
2469 | ||
7a197a62 AK |
2470 | if test "x$ac_ct_CC" = x; then |
2471 | CC="" | |
2472 | else | |
2473 | case $cross_compiling:$ac_tool_warned in | |
2474 | yes:) | |
ec6a6fbe AK |
2475 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2476 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2477 | ac_tool_warned=yes ;; |
2478 | esac | |
2479 | CC=$ac_ct_CC | |
2480 | fi | |
ad6254c5 AK |
2481 | else |
2482 | CC="$ac_cv_prog_CC" | |
2483 | fi | |
2484 | ||
2485 | if test -z "$CC"; then | |
7a197a62 AK |
2486 | if test -n "$ac_tool_prefix"; then |
2487 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2488 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2489 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2490 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2491 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2492 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2493 | else |
2494 | if test -n "$CC"; then | |
2495 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2496 | else | |
ad6254c5 AK |
2497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2498 | for as_dir in $PATH | |
2499 | do | |
2500 | IFS=$as_save_IFS | |
2501 | test -z "$as_dir" && as_dir=. | |
2502 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2504 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2505 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2506 | break 2 |
2507 | fi | |
2508 | done | |
2509 | done | |
7a197a62 | 2510 | IFS=$as_save_IFS |
ad6254c5 | 2511 | |
8106cdd5 AK |
2512 | fi |
2513 | fi | |
ad6254c5 | 2514 | CC=$ac_cv_prog_CC |
8106cdd5 | 2515 | if test -n "$CC"; then |
ec6a6fbe AK |
2516 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2517 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2518 | else |
ec6a6fbe AK |
2519 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2520 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2521 | fi |
2522 | ||
8106cdd5 | 2523 | |
7a197a62 | 2524 | fi |
ad6254c5 | 2525 | fi |
795ca3e5 AK |
2526 | if test -z "$CC"; then |
2527 | # Extract the first word of "cc", so it can be a program name with args. | |
2528 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2529 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2530 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2531 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2532 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2533 | else |
2534 | if test -n "$CC"; then | |
2535 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2536 | else | |
795ca3e5 | 2537 | ac_prog_rejected=no |
ad6254c5 AK |
2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2539 | for as_dir in $PATH | |
2540 | do | |
2541 | IFS=$as_save_IFS | |
2542 | test -z "$as_dir" && as_dir=. | |
2543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2544 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2545 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2546 | ac_prog_rejected=yes | |
2547 | continue | |
2548 | fi | |
2549 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2550 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2551 | break 2 |
2552 | fi | |
2553 | done | |
2554 | done | |
7a197a62 | 2555 | IFS=$as_save_IFS |
ad6254c5 | 2556 | |
795ca3e5 AK |
2557 | if test $ac_prog_rejected = yes; then |
2558 | # We found a bogon in the path, so make sure we never use it. | |
2559 | set dummy $ac_cv_prog_CC | |
2560 | shift | |
ad6254c5 | 2561 | if test $# != 0; then |
795ca3e5 AK |
2562 | # We chose a different compiler from the bogus one. |
2563 | # However, it has the same basename, so the bogon will be chosen | |
2564 | # first if we set CC to just the basename; use the full file name. | |
2565 | shift | |
ad6254c5 | 2566 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2567 | fi |
2568 | fi | |
2569 | fi | |
2570 | fi | |
ad6254c5 | 2571 | CC=$ac_cv_prog_CC |
795ca3e5 | 2572 | if test -n "$CC"; then |
ec6a6fbe AK |
2573 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2574 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2575 | else |
ec6a6fbe AK |
2576 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2577 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2578 | fi |
2579 | ||
7a197a62 | 2580 | |
ad6254c5 AK |
2581 | fi |
2582 | if test -z "$CC"; then | |
2583 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2584 | for ac_prog in cl.exe |
ad6254c5 AK |
2585 | do |
2586 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2587 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2588 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2589 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2590 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2591 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2592 | else |
2593 | if test -n "$CC"; then | |
2594 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2595 | else | |
ad6254c5 AK |
2596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2597 | for as_dir in $PATH | |
2598 | do | |
2599 | IFS=$as_save_IFS | |
2600 | test -z "$as_dir" && as_dir=. | |
2601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2603 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2604 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2605 | break 2 |
2606 | fi | |
2607 | done | |
2608 | done | |
7a197a62 | 2609 | IFS=$as_save_IFS |
ad6254c5 | 2610 | |
795ca3e5 AK |
2611 | fi |
2612 | fi | |
ad6254c5 | 2613 | CC=$ac_cv_prog_CC |
795ca3e5 | 2614 | if test -n "$CC"; then |
ec6a6fbe AK |
2615 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2616 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2617 | else |
ec6a6fbe AK |
2618 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2619 | $as_echo "no" >&6; } | |
795ca3e5 | 2620 | fi |
ad6254c5 | 2621 | |
7a197a62 | 2622 | |
ad6254c5 AK |
2623 | test -n "$CC" && break |
2624 | done | |
2625 | fi | |
2626 | if test -z "$CC"; then | |
2627 | ac_ct_CC=$CC | |
7a197a62 | 2628 | for ac_prog in cl.exe |
ad6254c5 AK |
2629 | do |
2630 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2631 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2632 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2633 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2634 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2635 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2636 | else |
2637 | if test -n "$ac_ct_CC"; then | |
2638 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2639 | else | |
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2641 | for as_dir in $PATH | |
2642 | do | |
2643 | IFS=$as_save_IFS | |
2644 | test -z "$as_dir" && as_dir=. | |
2645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2647 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2648 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2649 | break 2 |
795ca3e5 | 2650 | fi |
ad6254c5 AK |
2651 | done |
2652 | done | |
7a197a62 | 2653 | IFS=$as_save_IFS |
ad6254c5 AK |
2654 | |
2655 | fi | |
2656 | fi | |
2657 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2658 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2659 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2660 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2661 | else |
ec6a6fbe AK |
2662 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2663 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2664 | fi |
2665 | ||
7a197a62 | 2666 | |
ad6254c5 AK |
2667 | test -n "$ac_ct_CC" && break |
2668 | done | |
795ca3e5 | 2669 | |
7a197a62 AK |
2670 | if test "x$ac_ct_CC" = x; then |
2671 | CC="" | |
2672 | else | |
2673 | case $cross_compiling:$ac_tool_warned in | |
2674 | yes:) | |
ec6a6fbe AK |
2675 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2676 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2677 | ac_tool_warned=yes ;; |
2678 | esac | |
2679 | CC=$ac_ct_CC | |
2680 | fi | |
ad6254c5 AK |
2681 | fi |
2682 | ||
2683 | fi | |
2684 | ||
2685 | ||
ec6a6fbe AK |
2686 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2687 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2688 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2689 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2690 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2691 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2692 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2693 | |
2694 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2695 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2696 | set X $ac_compile | |
2697 | ac_compiler=$2 | |
7a197a62 AK |
2698 | { (ac_try="$ac_compiler --version >&5" |
2699 | case "(($ac_try" in | |
2700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2701 | *) ac_try_echo=$ac_try;; | |
2702 | esac | |
ec6a6fbe AK |
2703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2704 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2705 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2706 | ac_status=$? |
ec6a6fbe | 2707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2708 | (exit $ac_status); } |
7a197a62 AK |
2709 | { (ac_try="$ac_compiler -v >&5" |
2710 | case "(($ac_try" in | |
2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2712 | *) ac_try_echo=$ac_try;; | |
2713 | esac | |
ec6a6fbe AK |
2714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2715 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2716 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2717 | ac_status=$? |
ec6a6fbe | 2718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2719 | (exit $ac_status); } |
7a197a62 AK |
2720 | { (ac_try="$ac_compiler -V >&5" |
2721 | case "(($ac_try" in | |
2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2723 | *) ac_try_echo=$ac_try;; | |
2724 | esac | |
ec6a6fbe AK |
2725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2726 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2727 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2728 | ac_status=$? |
ec6a6fbe | 2729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2730 | (exit $ac_status); } |
2731 | ||
2732 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2733 | /* confdefs.h. */ |
2734 | _ACEOF | |
2735 | cat confdefs.h >>conftest.$ac_ext | |
2736 | cat >>conftest.$ac_ext <<_ACEOF | |
2737 | /* end confdefs.h. */ | |
2738 | ||
2739 | int | |
2740 | main () | |
2741 | { | |
2742 | ||
2743 | ; | |
2744 | return 0; | |
2745 | } | |
2746 | _ACEOF | |
2747 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2748 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2749 | # Try to create an executable without -o first, disregard a.out. |
2750 | # It will help us diagnose broken compilers, and finding out an intuition | |
2751 | # of exeext. | |
ec6a6fbe AK |
2752 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2753 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2754 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2755 | ||
2756 | # The possible output files: | |
2757 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2758 | ||
7a197a62 AK |
2759 | ac_rmfiles= |
2760 | for ac_file in $ac_files | |
2761 | do | |
2762 | case $ac_file in | |
ec6a6fbe | 2763 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2764 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2765 | esac | |
2766 | done | |
2767 | rm -f $ac_rmfiles | |
2768 | ||
2769 | if { (ac_try="$ac_link_default" | |
2770 | case "(($ac_try" in | |
2771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2772 | *) ac_try_echo=$ac_try;; | |
2773 | esac | |
ec6a6fbe AK |
2774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2775 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2776 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2777 | ac_status=$? |
ec6a6fbe | 2778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2779 | (exit $ac_status); }; then |
7a197a62 AK |
2780 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2781 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2782 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2783 | # so that the user can short-circuit this test for compilers unknown to | |
2784 | # Autoconf. | |
25fbec5b | 2785 | for ac_file in $ac_files '' |
ad6254c5 AK |
2786 | do |
2787 | test -f "$ac_file" || continue | |
2788 | case $ac_file in | |
ec6a6fbe | 2789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2790 | ;; |
ad6254c5 | 2791 | [ab].out ) |
8a2fc586 AK |
2792 | # We found the default executable, but exeext='' is most |
2793 | # certainly right. | |
2794 | break;; | |
ad6254c5 | 2795 | *.* ) |
7a197a62 AK |
2796 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2797 | then :; else | |
2798 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2799 | fi | |
2800 | # We set ac_cv_exeext here because the later test for it is not | |
2801 | # safe: cross compilers may not add the suffix if given an `-o' | |
2802 | # argument, so we may need to know it at that point already. | |
2803 | # Even if this section looks crufty: it has the advantage of | |
2804 | # actually working. | |
8a2fc586 | 2805 | break;; |
ad6254c5 | 2806 | * ) |
8a2fc586 | 2807 | break;; |
ad6254c5 AK |
2808 | esac |
2809 | done | |
7a197a62 AK |
2810 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2811 | ||
ad6254c5 | 2812 | else |
25fbec5b AK |
2813 | ac_file='' |
2814 | fi | |
2815 | ||
ec6a6fbe AK |
2816 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2817 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2818 | if test -z "$ac_file"; then |
ec6a6fbe | 2819 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2820 | sed 's/^/| /' conftest.$ac_ext >&5 |
2821 | ||
ec6a6fbe AK |
2822 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2823 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2824 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2825 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2826 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2827 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2828 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2829 | fi |
2830 | ||
2831 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2832 | |
7a197a62 | 2833 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2834 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2835 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2836 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2837 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2838 | # If not cross compiling, check that we can run a simple program. | |
2839 | if test "$cross_compiling" != yes; then | |
2840 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2841 | { (case "(($ac_try" in |
2842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2843 | *) ac_try_echo=$ac_try;; | |
2844 | esac | |
ec6a6fbe AK |
2845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2846 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2847 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2848 | ac_status=$? |
ec6a6fbe | 2849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2850 | (exit $ac_status); }; }; then |
2851 | cross_compiling=no | |
795ca3e5 | 2852 | else |
ad6254c5 AK |
2853 | if test "$cross_compiling" = maybe; then |
2854 | cross_compiling=yes | |
2855 | else | |
ec6a6fbe AK |
2856 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2857 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2858 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2859 | If you meant to cross compile, use \`--host'. |
2860 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2861 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2862 | If you meant to cross compile, use \`--host'. |
2863 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2864 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2865 | fi |
795ca3e5 | 2866 | fi |
80992638 | 2867 | fi |
ec6a6fbe AK |
2868 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2869 | $as_echo "yes" >&6; } | |
ad6254c5 | 2870 | |
ec6a6fbe | 2871 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2872 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2873 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2874 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2875 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2876 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2877 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2878 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2879 | |
ec6a6fbe AK |
2880 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2881 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2882 | if { (ac_try="$ac_link" |
2883 | case "(($ac_try" in | |
2884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2885 | *) ac_try_echo=$ac_try;; | |
2886 | esac | |
ec6a6fbe AK |
2887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2888 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2889 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2890 | ac_status=$? |
ec6a6fbe | 2891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2892 | (exit $ac_status); }; then |
2893 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2894 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2895 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2896 | # `rm'. | |
2897 | for ac_file in conftest.exe conftest conftest.*; do | |
2898 | test -f "$ac_file" || continue | |
2899 | case $ac_file in | |
ec6a6fbe | 2900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2901 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2902 | break;; |
ad6254c5 AK |
2903 | * ) break;; |
2904 | esac | |
2905 | done | |
80992638 | 2906 | else |
ec6a6fbe AK |
2907 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2908 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2909 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2910 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2911 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2912 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2913 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2914 | fi |
2915 | ||
2916 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2917 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2918 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2919 | |
2920 | rm -f conftest.$ac_ext | |
2921 | EXEEXT=$ac_cv_exeext | |
2922 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2923 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2924 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2925 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2926 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2927 | else |
ad6254c5 | 2928 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2929 | /* confdefs.h. */ |
2930 | _ACEOF | |
2931 | cat confdefs.h >>conftest.$ac_ext | |
2932 | cat >>conftest.$ac_ext <<_ACEOF | |
2933 | /* end confdefs.h. */ | |
2934 | ||
2935 | int | |
2936 | main () | |
2937 | { | |
2938 | ||
2939 | ; | |
2940 | return 0; | |
2941 | } | |
2942 | _ACEOF | |
2943 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2944 | if { (ac_try="$ac_compile" |
2945 | case "(($ac_try" in | |
2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2947 | *) ac_try_echo=$ac_try;; | |
2948 | esac | |
ec6a6fbe AK |
2949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2950 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2951 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2952 | ac_status=$? |
ec6a6fbe | 2953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2954 | (exit $ac_status); }; then |
7a197a62 AK |
2955 | for ac_file in conftest.o conftest.obj conftest.*; do |
2956 | test -f "$ac_file" || continue; | |
ad6254c5 | 2957 | case $ac_file in |
ec6a6fbe | 2958 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2959 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2960 | break;; | |
2961 | esac | |
2962 | done | |
2963 | else | |
ec6a6fbe | 2964 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2965 | sed 's/^/| /' conftest.$ac_ext >&5 |
2966 | ||
ec6a6fbe AK |
2967 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2968 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2969 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2970 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2971 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2972 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2973 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2974 | fi |
2975 | ||
2976 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2977 | fi | |
ec6a6fbe AK |
2978 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2979 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2980 | OBJEXT=$ac_cv_objext |
2981 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2982 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2983 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2984 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2985 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2986 | else |
2987 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2988 | /* confdefs.h. */ |
2989 | _ACEOF | |
2990 | cat confdefs.h >>conftest.$ac_ext | |
2991 | cat >>conftest.$ac_ext <<_ACEOF | |
2992 | /* end confdefs.h. */ | |
2993 | ||
2994 | int | |
2995 | main () | |
2996 | { | |
2997 | #ifndef __GNUC__ | |
2998 | choke me | |
2999 | #endif | |
80992638 | 3000 | |
ad6254c5 AK |
3001 | ; |
3002 | return 0; | |
3003 | } | |
3004 | _ACEOF | |
3005 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3006 | if { (ac_try="$ac_compile" |
3007 | case "(($ac_try" in | |
3008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3009 | *) ac_try_echo=$ac_try;; | |
3010 | esac | |
ec6a6fbe AK |
3011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3012 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3013 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3014 | ac_status=$? |
8a2fc586 AK |
3015 | grep -v '^ *+' conftest.er1 >conftest.err |
3016 | rm -f conftest.er1 | |
3017 | cat conftest.err >&5 | |
ec6a6fbe | 3018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3019 | (exit $ac_status); } && { |
3020 | test -z "$ac_c_werror_flag" || | |
3021 | test ! -s conftest.err | |
3022 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3023 | ac_compiler_gnu=yes |
80992638 | 3024 | else |
ec6a6fbe | 3025 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3026 | sed 's/^/| /' conftest.$ac_ext >&5 |
3027 | ||
7a197a62 | 3028 | ac_compiler_gnu=no |
8106cdd5 | 3029 | fi |
7a197a62 AK |
3030 | |
3031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3032 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3033 | |
ad6254c5 | 3034 | fi |
ec6a6fbe AK |
3035 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3036 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3037 | if test $ac_compiler_gnu = yes; then | |
3038 | GCC=yes | |
3039 | else | |
3040 | GCC= | |
3041 | fi | |
ad6254c5 AK |
3042 | ac_test_CFLAGS=${CFLAGS+set} |
3043 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3044 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3045 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3046 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3047 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3048 | else |
7a197a62 AK |
3049 | ac_save_c_werror_flag=$ac_c_werror_flag |
3050 | ac_c_werror_flag=yes | |
3051 | ac_cv_prog_cc_g=no | |
3052 | CFLAGS="-g" | |
3053 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3054 | /* confdefs.h. */ |
3055 | _ACEOF | |
3056 | cat confdefs.h >>conftest.$ac_ext | |
3057 | cat >>conftest.$ac_ext <<_ACEOF | |
3058 | /* end confdefs.h. */ | |
3059 | ||
3060 | int | |
3061 | main () | |
3062 | { | |
3063 | ||
3064 | ; | |
3065 | return 0; | |
3066 | } | |
3067 | _ACEOF | |
3068 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3069 | if { (ac_try="$ac_compile" |
3070 | case "(($ac_try" in | |
3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3072 | *) ac_try_echo=$ac_try;; | |
3073 | esac | |
ec6a6fbe AK |
3074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3075 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3076 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3077 | ac_status=$? |
8a2fc586 AK |
3078 | grep -v '^ *+' conftest.er1 >conftest.err |
3079 | rm -f conftest.er1 | |
3080 | cat conftest.err >&5 | |
ec6a6fbe | 3081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3082 | (exit $ac_status); } && { |
3083 | test -z "$ac_c_werror_flag" || | |
3084 | test ! -s conftest.err | |
3085 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3086 | ac_cv_prog_cc_g=yes |
3087 | else | |
ec6a6fbe | 3088 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
3090 | ||
3091 | CFLAGS="" | |
3092 | cat >conftest.$ac_ext <<_ACEOF | |
3093 | /* confdefs.h. */ | |
3094 | _ACEOF | |
3095 | cat confdefs.h >>conftest.$ac_ext | |
3096 | cat >>conftest.$ac_ext <<_ACEOF | |
3097 | /* end confdefs.h. */ | |
3098 | ||
3099 | int | |
3100 | main () | |
3101 | { | |
3102 | ||
3103 | ; | |
3104 | return 0; | |
3105 | } | |
3106 | _ACEOF | |
3107 | rm -f conftest.$ac_objext | |
3108 | if { (ac_try="$ac_compile" | |
3109 | case "(($ac_try" in | |
3110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3111 | *) ac_try_echo=$ac_try;; | |
3112 | esac | |
ec6a6fbe AK |
3113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3114 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3115 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3116 | ac_status=$? |
7a197a62 AK |
3117 | grep -v '^ *+' conftest.er1 >conftest.err |
3118 | rm -f conftest.er1 | |
3119 | cat conftest.err >&5 | |
ec6a6fbe | 3120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3121 | (exit $ac_status); } && { |
3122 | test -z "$ac_c_werror_flag" || | |
3123 | test ! -s conftest.err | |
3124 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3125 | : |
3126 | else | |
ec6a6fbe | 3127 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3128 | sed 's/^/| /' conftest.$ac_ext >&5 |
3129 | ||
3130 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3131 | CFLAGS="-g" | |
3132 | cat >conftest.$ac_ext <<_ACEOF | |
3133 | /* confdefs.h. */ | |
3134 | _ACEOF | |
3135 | cat confdefs.h >>conftest.$ac_ext | |
3136 | cat >>conftest.$ac_ext <<_ACEOF | |
3137 | /* end confdefs.h. */ | |
3138 | ||
3139 | int | |
3140 | main () | |
3141 | { | |
3142 | ||
3143 | ; | |
3144 | return 0; | |
3145 | } | |
3146 | _ACEOF | |
3147 | rm -f conftest.$ac_objext | |
3148 | if { (ac_try="$ac_compile" | |
3149 | case "(($ac_try" in | |
3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3151 | *) ac_try_echo=$ac_try;; | |
3152 | esac | |
ec6a6fbe AK |
3153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3154 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3155 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3156 | ac_status=$? |
7a197a62 AK |
3157 | grep -v '^ *+' conftest.er1 >conftest.err |
3158 | rm -f conftest.er1 | |
3159 | cat conftest.err >&5 | |
ec6a6fbe | 3160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3161 | (exit $ac_status); } && { |
3162 | test -z "$ac_c_werror_flag" || | |
3163 | test ! -s conftest.err | |
3164 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3165 | ac_cv_prog_cc_g=yes |
3166 | else | |
ec6a6fbe | 3167 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3168 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3169 | |
7a197a62 AK |
3170 | |
3171 | fi | |
3172 | ||
3173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3174 | fi | |
3175 | ||
3176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3177 | fi |
7a197a62 AK |
3178 | |
3179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3180 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3181 | fi |
ec6a6fbe AK |
3182 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3183 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3184 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3185 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3186 | elif test $ac_cv_prog_cc_g = yes; then |
3187 | if test "$GCC" = yes; then | |
3188 | CFLAGS="-g -O2" | |
3189 | else | |
3190 | CFLAGS="-g" | |
3191 | fi | |
3192 | else | |
3193 | if test "$GCC" = yes; then | |
3194 | CFLAGS="-O2" | |
3195 | else | |
3196 | CFLAGS= | |
3197 | fi | |
3198 | fi | |
ec6a6fbe AK |
3199 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3200 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3201 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3202 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3203 | else |
7a197a62 | 3204 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3205 | ac_save_CC=$CC |
3206 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3207 | /* confdefs.h. */ |
3208 | _ACEOF | |
3209 | cat confdefs.h >>conftest.$ac_ext | |
3210 | cat >>conftest.$ac_ext <<_ACEOF | |
3211 | /* end confdefs.h. */ | |
3212 | #include <stdarg.h> | |
3213 | #include <stdio.h> | |
3214 | #include <sys/types.h> | |
3215 | #include <sys/stat.h> | |
3216 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3217 | struct buf { int x; }; | |
3218 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3219 | static char *e (p, i) | |
3220 | char **p; | |
3221 | int i; | |
3222 | { | |
3223 | return p[i]; | |
3224 | } | |
3225 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3226 | { | |
3227 | char *s; | |
3228 | va_list v; | |
3229 | va_start (v,p); | |
3230 | s = g (p, va_arg (v,int)); | |
3231 | va_end (v); | |
3232 | return s; | |
3233 | } | |
8a2fc586 AK |
3234 | |
3235 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3236 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3237 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3238 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3239 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3240 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3241 | that's true only with -std. */ |
8a2fc586 AK |
3242 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3243 | ||
7a197a62 AK |
3244 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3245 | inside strings and character constants. */ | |
3246 | #define FOO(x) 'x' | |
3247 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3248 | ||
ad6254c5 AK |
3249 | int test (int i, double x); |
3250 | struct s1 {int (*f) (int a);}; | |
3251 | struct s2 {int (*f) (double a);}; | |
3252 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3253 | int argc; | |
3254 | char **argv; | |
3255 | int | |
3256 | main () | |
3257 | { | |
3258 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3259 | ; | |
3260 | return 0; | |
3261 | } | |
3262 | _ACEOF | |
7a197a62 AK |
3263 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3264 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3265 | do |
3266 | CC="$ac_save_CC $ac_arg" | |
3267 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3268 | if { (ac_try="$ac_compile" |
3269 | case "(($ac_try" in | |
3270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3271 | *) ac_try_echo=$ac_try;; | |
3272 | esac | |
ec6a6fbe AK |
3273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3274 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3275 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3276 | ac_status=$? |
8a2fc586 AK |
3277 | grep -v '^ *+' conftest.er1 >conftest.err |
3278 | rm -f conftest.er1 | |
3279 | cat conftest.err >&5 | |
ec6a6fbe | 3280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3281 | (exit $ac_status); } && { |
3282 | test -z "$ac_c_werror_flag" || | |
3283 | test ! -s conftest.err | |
3284 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3285 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3286 | else |
ec6a6fbe | 3287 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3288 | sed 's/^/| /' conftest.$ac_ext >&5 |
3289 | ||
7a197a62 | 3290 | |
ad6254c5 | 3291 | fi |
7a197a62 AK |
3292 | |
3293 | rm -f core conftest.err conftest.$ac_objext | |
3294 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3295 | done |
7a197a62 | 3296 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3297 | CC=$ac_save_CC |
3298 | ||
3299 | fi | |
7a197a62 AK |
3300 | # AC_CACHE_VAL |
3301 | case "x$ac_cv_prog_cc_c89" in | |
3302 | x) | |
ec6a6fbe AK |
3303 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3304 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3305 | xno) |
ec6a6fbe AK |
3306 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3307 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3308 | *) |
7a197a62 | 3309 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3310 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3311 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3312 | esac |
3313 | ||
ad6254c5 | 3314 | |
ad6254c5 AK |
3315 | ac_ext=c |
3316 | ac_cpp='$CPP $CPPFLAGS' | |
3317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3320 | |
d0191583 JM |
3321 | |
3322 | ||
3323 | ac_ext=c | |
3324 | ac_cpp='$CPP $CPPFLAGS' | |
3325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3328 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3329 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3330 | # On Suns, sometimes $CPP names a directory. |
3331 | if test -n "$CPP" && test -d "$CPP"; then | |
3332 | CPP= | |
3333 | fi | |
3334 | if test -z "$CPP"; then | |
3335 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3336 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3337 | else |
d0191583 JM |
3338 | # Double quotes because CPP needs to be expanded |
3339 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3340 | do | |
3341 | ac_preproc_ok=false | |
3342 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3343 | do |
d0191583 JM |
3344 | # Use a header file that comes with gcc, so configuring glibc |
3345 | # with a fresh cross-compiler works. | |
3346 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3347 | # <limits.h> exists even on freestanding compilers. | |
3348 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3349 | # not just through cpp. "Syntax error" is here to catch this case. | |
3350 | cat >conftest.$ac_ext <<_ACEOF | |
3351 | /* confdefs.h. */ | |
3352 | _ACEOF | |
3353 | cat confdefs.h >>conftest.$ac_ext | |
3354 | cat >>conftest.$ac_ext <<_ACEOF | |
3355 | /* end confdefs.h. */ | |
3356 | #ifdef __STDC__ | |
3357 | # include <limits.h> | |
3358 | #else | |
3359 | # include <assert.h> | |
3360 | #endif | |
3361 | Syntax error | |
3362 | _ACEOF | |
3363 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3364 | case "(($ac_try" in | |
3365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3366 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3367 | esac |
ec6a6fbe AK |
3368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3369 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3370 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3371 | ac_status=$? | |
3372 | grep -v '^ *+' conftest.er1 >conftest.err | |
3373 | rm -f conftest.er1 | |
3374 | cat conftest.err >&5 | |
ec6a6fbe | 3375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3376 | (exit $ac_status); } >/dev/null && { |
3377 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3378 | test ! -s conftest.err | |
3379 | }; then | |
3380 | : | |
3381 | else | |
ec6a6fbe | 3382 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3383 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3384 | |
d0191583 JM |
3385 | # Broken: fails on valid input. |
3386 | continue | |
795ca3e5 | 3387 | fi |
795ca3e5 | 3388 | |
d0191583 | 3389 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3390 | |
d0191583 JM |
3391 | # OK, works on sane cases. Now check whether nonexistent headers |
3392 | # can be detected and how. | |
3393 | cat >conftest.$ac_ext <<_ACEOF | |
3394 | /* confdefs.h. */ | |
3395 | _ACEOF | |
3396 | cat confdefs.h >>conftest.$ac_ext | |
3397 | cat >>conftest.$ac_ext <<_ACEOF | |
3398 | /* end confdefs.h. */ | |
3399 | #include <ac_nonexistent.h> | |
3400 | _ACEOF | |
3401 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3402 | case "(($ac_try" in | |
3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3404 | *) ac_try_echo=$ac_try;; | |
3405 | esac | |
ec6a6fbe AK |
3406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3407 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3408 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3409 | ac_status=$? | |
3410 | grep -v '^ *+' conftest.er1 >conftest.err | |
3411 | rm -f conftest.er1 | |
3412 | cat conftest.err >&5 | |
ec6a6fbe | 3413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3414 | (exit $ac_status); } >/dev/null && { |
3415 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3416 | test ! -s conftest.err | |
3417 | }; then | |
3418 | # Broken: success on invalid input. | |
3419 | continue | |
3420 | else | |
ec6a6fbe | 3421 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3422 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3423 | |
d0191583 JM |
3424 | # Passes both tests. |
3425 | ac_preproc_ok=: | |
3426 | break | |
3427 | fi | |
795ca3e5 | 3428 | |
d0191583 JM |
3429 | rm -f conftest.err conftest.$ac_ext |
3430 | ||
3431 | done | |
3432 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3433 | rm -f conftest.err conftest.$ac_ext | |
3434 | if $ac_preproc_ok; then | |
3435 | break | |
795ca3e5 AK |
3436 | fi |
3437 | ||
d0191583 JM |
3438 | done |
3439 | ac_cv_prog_CPP=$CPP | |
3440 | ||
3441 | fi | |
3442 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3443 | else |
d0191583 JM |
3444 | ac_cv_prog_CPP=$CPP |
3445 | fi | |
ec6a6fbe AK |
3446 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3447 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3448 | ac_preproc_ok=false |
3449 | for ac_c_preproc_warn_flag in '' yes | |
3450 | do | |
3451 | # Use a header file that comes with gcc, so configuring glibc | |
3452 | # with a fresh cross-compiler works. | |
3453 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3454 | # <limits.h> exists even on freestanding compilers. | |
3455 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3456 | # not just through cpp. "Syntax error" is here to catch this case. | |
3457 | cat >conftest.$ac_ext <<_ACEOF | |
3458 | /* confdefs.h. */ | |
ad6254c5 | 3459 | _ACEOF |
d0191583 JM |
3460 | cat confdefs.h >>conftest.$ac_ext |
3461 | cat >>conftest.$ac_ext <<_ACEOF | |
3462 | /* end confdefs.h. */ | |
3463 | #ifdef __STDC__ | |
3464 | # include <limits.h> | |
3465 | #else | |
3466 | # include <assert.h> | |
3467 | #endif | |
3468 | Syntax error | |
3469 | _ACEOF | |
3470 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3471 | case "(($ac_try" in | |
3472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3473 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3474 | esac |
ec6a6fbe AK |
3475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3476 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3478 | ac_status=$? | |
3479 | grep -v '^ *+' conftest.er1 >conftest.err | |
3480 | rm -f conftest.er1 | |
3481 | cat conftest.err >&5 | |
ec6a6fbe | 3482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3483 | (exit $ac_status); } >/dev/null && { |
3484 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3485 | test ! -s conftest.err | |
3486 | }; then | |
3487 | : | |
795ca3e5 | 3488 | else |
ec6a6fbe | 3489 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3490 | sed 's/^/| /' conftest.$ac_ext >&5 |
3491 | ||
3492 | # Broken: fails on valid input. | |
3493 | continue | |
795ca3e5 AK |
3494 | fi |
3495 | ||
d0191583 JM |
3496 | rm -f conftest.err conftest.$ac_ext |
3497 | ||
3498 | # OK, works on sane cases. Now check whether nonexistent headers | |
3499 | # can be detected and how. | |
3500 | cat >conftest.$ac_ext <<_ACEOF | |
3501 | /* confdefs.h. */ | |
3502 | _ACEOF | |
3503 | cat confdefs.h >>conftest.$ac_ext | |
3504 | cat >>conftest.$ac_ext <<_ACEOF | |
3505 | /* end confdefs.h. */ | |
3506 | #include <ac_nonexistent.h> | |
3507 | _ACEOF | |
3508 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3509 | case "(($ac_try" in | |
3510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3511 | *) ac_try_echo=$ac_try;; | |
3512 | esac | |
ec6a6fbe AK |
3513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3514 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3515 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3516 | ac_status=$? | |
3517 | grep -v '^ *+' conftest.er1 >conftest.err | |
3518 | rm -f conftest.er1 | |
3519 | cat conftest.err >&5 | |
ec6a6fbe | 3520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3521 | (exit $ac_status); } >/dev/null && { |
3522 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3523 | test ! -s conftest.err | |
3524 | }; then | |
3525 | # Broken: success on invalid input. | |
3526 | continue | |
795ca3e5 | 3527 | else |
ec6a6fbe | 3528 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3529 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3530 | |
d0191583 JM |
3531 | # Passes both tests. |
3532 | ac_preproc_ok=: | |
3533 | break | |
795ca3e5 | 3534 | fi |
d0191583 JM |
3535 | |
3536 | rm -f conftest.err conftest.$ac_ext | |
3537 | ||
3538 | done | |
3539 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3540 | rm -f conftest.err conftest.$ac_ext | |
3541 | if $ac_preproc_ok; then | |
3542 | : | |
8106cdd5 | 3543 | else |
ec6a6fbe AK |
3544 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3545 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3546 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3547 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3548 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3549 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3550 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3551 | fi |
3552 | ||
d0191583 JM |
3553 | ac_ext=c |
3554 | ac_cpp='$CPP $CPPFLAGS' | |
3555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3558 | ||
7a197a62 | 3559 | |
ec6a6fbe AK |
3560 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3561 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3562 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3563 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3564 | else |
ec6a6fbe | 3565 | if test -z "$GREP"; then |
d0191583 | 3566 | ac_path_GREP_found=false |
ec6a6fbe AK |
3567 | # Loop through the user's path and test for each of PROGNAME-LIST |
3568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3569 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3570 | do |
3571 | IFS=$as_save_IFS | |
3572 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3573 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3574 | for ac_exec_ext in '' $ac_executable_extensions; do |
3575 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3576 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3577 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3578 | # Check for GNU $ac_path_GREP |
3579 | case `"$ac_path_GREP" --version 2>&1` in | |
3580 | *GNU*) | |
3581 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3582 | *) | |
3583 | ac_count=0 | |
ec6a6fbe | 3584 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3585 | while : |
3586 | do | |
3587 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3588 | mv "conftest.tmp" "conftest.in" | |
3589 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3590 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3591 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3592 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3593 | ac_count=`expr $ac_count + 1` | |
3594 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3595 | # Best one so far, save it but keep looking for a better one | |
3596 | ac_cv_path_GREP="$ac_path_GREP" | |
3597 | ac_path_GREP_max=$ac_count | |
3598 | fi | |
3599 | # 10*(2^10) chars as input seems more than enough | |
3600 | test $ac_count -gt 10 && break | |
3601 | done | |
3602 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3603 | esac | |
3604 | ||
ec6a6fbe AK |
3605 | $ac_path_GREP_found && break 3 |
3606 | done | |
d0191583 | 3607 | done |
ad6254c5 | 3608 | done |
7a197a62 | 3609 | IFS=$as_save_IFS |
ec6a6fbe AK |
3610 | if test -z "$ac_cv_path_GREP"; then |
3611 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3612 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3613 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3614 | fi |
80992638 | 3615 | else |
d0191583 | 3616 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3617 | fi |
8106cdd5 | 3618 | |
80992638 | 3619 | fi |
ec6a6fbe AK |
3620 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3621 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3622 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3623 | |
d0191583 | 3624 | |
ec6a6fbe AK |
3625 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3626 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3627 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3628 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3629 | else |
d0191583 JM |
3630 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3631 | then ac_cv_path_EGREP="$GREP -E" | |
3632 | else | |
ec6a6fbe | 3633 | if test -z "$EGREP"; then |
d0191583 | 3634 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3635 | # Loop through the user's path and test for each of PROGNAME-LIST |
3636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3637 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3638 | do |
3639 | IFS=$as_save_IFS | |
3640 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3641 | for ac_prog in egrep; do |
ec6a6fbe AK |
3642 | for ac_exec_ext in '' $ac_executable_extensions; do |
3643 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3644 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3645 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3646 | # Check for GNU $ac_path_EGREP |
3647 | case `"$ac_path_EGREP" --version 2>&1` in | |
3648 | *GNU*) | |
3649 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3650 | *) | |
3651 | ac_count=0 | |
ec6a6fbe | 3652 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3653 | while : |
3654 | do | |
3655 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3656 | mv "conftest.tmp" "conftest.in" | |
3657 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3658 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3659 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3660 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3661 | ac_count=`expr $ac_count + 1` | |
3662 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3663 | # Best one so far, save it but keep looking for a better one | |
3664 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3665 | ac_path_EGREP_max=$ac_count | |
3666 | fi | |
3667 | # 10*(2^10) chars as input seems more than enough | |
3668 | test $ac_count -gt 10 && break | |
3669 | done | |
3670 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3671 | esac |
8a2fc586 | 3672 | |
ec6a6fbe AK |
3673 | $ac_path_EGREP_found && break 3 |
3674 | done | |
d0191583 | 3675 | done |
8a2fc586 | 3676 | done |
7a197a62 | 3677 | IFS=$as_save_IFS |
ec6a6fbe AK |
3678 | if test -z "$ac_cv_path_EGREP"; then |
3679 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3680 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3681 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3682 | fi |
d0191583 JM |
3683 | else |
3684 | ac_cv_path_EGREP=$EGREP | |
3685 | fi | |
ad6254c5 | 3686 | |
d0191583 JM |
3687 | fi |
3688 | fi | |
ec6a6fbe AK |
3689 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3690 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3691 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3692 | |
3693 | ||
d0191583 | 3694 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3695 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3696 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3697 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3698 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3699 | else |
d0191583 | 3700 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3701 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3702 | /* confdefs.h. */ |
3703 | _ACEOF | |
3704 | cat confdefs.h >>conftest.$ac_ext | |
3705 | cat >>conftest.$ac_ext <<_ACEOF | |
3706 | /* end confdefs.h. */ | |
d0191583 JM |
3707 | #include <sgtty.h> |
3708 | Autoconf TIOCGETP | |
ad6254c5 | 3709 | _ACEOF |
d0191583 JM |
3710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3711 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3712 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3713 | else |
d0191583 | 3714 | ac_cv_prog_gcc_traditional=no |
80992638 | 3715 | fi |
d0191583 | 3716 | rm -f conftest* |
ad6254c5 | 3717 | |
8106cdd5 | 3718 | |
d0191583 JM |
3719 | if test $ac_cv_prog_gcc_traditional = no; then |
3720 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3721 | /* confdefs.h. */ |
3722 | _ACEOF | |
3723 | cat confdefs.h >>conftest.$ac_ext | |
3724 | cat >>conftest.$ac_ext <<_ACEOF | |
3725 | /* end confdefs.h. */ | |
d0191583 JM |
3726 | #include <termio.h> |
3727 | Autoconf TCGETA | |
ad6254c5 | 3728 | _ACEOF |
d0191583 JM |
3729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3730 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3731 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3732 | fi |
d0191583 | 3733 | rm -f conftest* |
795ca3e5 | 3734 | |
d0191583 | 3735 | fi |
795ca3e5 | 3736 | fi |
ec6a6fbe AK |
3737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3738 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3739 | if test $ac_cv_prog_gcc_traditional = yes; then |
3740 | CC="$CC -traditional" | |
3741 | fi | |
795ca3e5 AK |
3742 | fi |
3743 | ||
d0191583 JM |
3744 | # Find a good install program. We prefer a C program (faster), |
3745 | # so one script is as good as another. But avoid the broken or | |
3746 | # incompatible versions: | |
3747 | # SysV /etc/install, /usr/sbin/install | |
3748 | # SunOS /usr/etc/install | |
3749 | # IRIX /sbin/install | |
3750 | # AIX /bin/install | |
3751 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3752 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3753 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3754 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3755 | # OS/2's system install, which has a completely different semantic | |
3756 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3757 | # Reject install programs that cannot install multiple files. |
3758 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3759 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3760 | if test -z "$INSTALL"; then |
3761 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3762 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3763 | else |
d0191583 JM |
3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3765 | for as_dir in $PATH | |
3766 | do | |
3767 | IFS=$as_save_IFS | |
3768 | test -z "$as_dir" && as_dir=. | |
3769 | # Account for people who put trailing slashes in PATH elements. | |
3770 | case $as_dir/ in | |
3771 | ./ | .// | /cC/* | \ | |
3772 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3773 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3774 | /usr/ucb/* ) ;; | |
3775 | *) | |
3776 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3777 | # Don't use installbsd from OSF since it installs stuff as root | |
3778 | # by default. | |
3779 | for ac_prog in ginstall scoinst install; do | |
3780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3781 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3782 | if test $ac_prog = install && | |
3783 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3784 | # AIX install. It has an incompatible calling convention. | |
3785 | : | |
3786 | elif test $ac_prog = install && | |
3787 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3788 | # program-specific install script used by HP pwplus--don't use. | |
3789 | : | |
3790 | else | |
ec6a6fbe AK |
3791 | rm -rf conftest.one conftest.two conftest.dir |
3792 | echo one > conftest.one | |
3793 | echo two > conftest.two | |
3794 | mkdir conftest.dir | |
3795 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3796 | test -s conftest.one && test -s conftest.two && | |
3797 | test -s conftest.dir/conftest.one && | |
3798 | test -s conftest.dir/conftest.two | |
3799 | then | |
3800 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3801 | break 3 | |
3802 | fi | |
d0191583 JM |
3803 | fi |
3804 | fi | |
3805 | done | |
3806 | done | |
3807 | ;; | |
3808 | esac | |
ec6a6fbe | 3809 | |
d0191583 JM |
3810 | done |
3811 | IFS=$as_save_IFS | |
80992638 | 3812 | |
ec6a6fbe | 3813 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3814 | |
3815 | fi | |
3816 | if test "${ac_cv_path_install+set}" = set; then | |
3817 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3818 | else |
d0191583 JM |
3819 | # As a last resort, use the slow shell script. Don't cache a |
3820 | # value for INSTALL within a source directory, because that will | |
3821 | # break other packages using the cache if that directory is | |
3822 | # removed, or if the value is a relative name. | |
3823 | INSTALL=$ac_install_sh | |
7a197a62 | 3824 | fi |
d0191583 | 3825 | fi |
ec6a6fbe AK |
3826 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3827 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3828 | |
d0191583 JM |
3829 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3830 | # It thinks the first close brace ends the variable substitution. | |
3831 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3832 | |
d0191583 | 3833 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3834 | |
d0191583 JM |
3835 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3836 | ||
ec6a6fbe AK |
3837 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3838 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3839 | LN_S=$as_ln_s |
3840 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3841 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3842 | $as_echo "yes" >&6; } | |
d0191583 | 3843 | else |
ec6a6fbe AK |
3844 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3845 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3846 | fi |
d0191583 | 3847 | |
ec6a6fbe AK |
3848 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3849 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3850 | set x ${MAKE-make} | |
3851 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3852 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3853 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3854 | else |
d0191583 JM |
3855 | cat >conftest.make <<\_ACEOF |
3856 | SHELL = /bin/sh | |
3857 | all: | |
3858 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3859 | _ACEOF | |
3860 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3861 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3862 | *@@@%%%=?*=@@@%%%*) | |
3863 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3864 | *) | |
3865 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3866 | esac | |
3867 | rm -f conftest.make | |
ad6254c5 | 3868 | fi |
d0191583 | 3869 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3870 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3871 | $as_echo "yes" >&6; } | |
d0191583 JM |
3872 | SET_MAKE= |
3873 | else | |
ec6a6fbe AK |
3874 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3875 | $as_echo "no" >&6; } | |
d0191583 | 3876 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3877 | fi |
8106cdd5 | 3878 | |
ec6a6fbe AK |
3879 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3880 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3881 | if test -z "$MKDIR_P"; then |
3882 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3883 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3884 | else |
3885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3886 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3887 | do | |
3888 | IFS=$as_save_IFS | |
3889 | test -z "$as_dir" && as_dir=. | |
3890 | for ac_prog in mkdir gmkdir; do | |
3891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3892 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3893 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3894 | 'mkdir (GNU coreutils) '* | \ | |
3895 | 'mkdir (coreutils) '* | \ | |
3896 | 'mkdir (fileutils) '4.1*) | |
3897 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3898 | break 3;; | |
3899 | esac | |
3900 | done | |
3901 | done | |
3902 | done | |
3903 | IFS=$as_save_IFS | |
3904 | ||
3905 | fi | |
3906 | ||
3907 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3908 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3909 | else | |
3910 | # As a last resort, use the slow shell script. Don't cache a | |
3911 | # value for MKDIR_P within a source directory, because that will | |
3912 | # break other packages using the cache if that directory is | |
3913 | # removed, or if the value is a relative name. | |
3914 | test -d ./--version && rmdir ./--version | |
3915 | MKDIR_P="$ac_install_sh -d" | |
3916 | fi | |
3917 | fi | |
ec6a6fbe AK |
3918 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3919 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3920 | |
d0191583 JM |
3921 | if test -n "$ac_tool_prefix"; then |
3922 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3923 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3924 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3925 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3926 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3927 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3928 | else |
3929 | if test -n "$RANLIB"; then | |
3930 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3931 | else | |
3932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3933 | for as_dir in $PATH | |
3934 | do | |
3935 | IFS=$as_save_IFS | |
3936 | test -z "$as_dir" && as_dir=. | |
3937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3939 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3940 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3941 | break 2 |
3942 | fi | |
3943 | done | |
3944 | done | |
3945 | IFS=$as_save_IFS | |
8106cdd5 | 3946 | |
795ca3e5 | 3947 | fi |
d0191583 JM |
3948 | fi |
3949 | RANLIB=$ac_cv_prog_RANLIB | |
3950 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3951 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3952 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3953 | else |
ec6a6fbe AK |
3954 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3955 | $as_echo "no" >&6; } | |
d0191583 JM |
3956 | fi |
3957 | ||
8106cdd5 | 3958 | |
ad6254c5 | 3959 | fi |
d0191583 JM |
3960 | if test -z "$ac_cv_prog_RANLIB"; then |
3961 | ac_ct_RANLIB=$RANLIB | |
3962 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3963 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3964 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3965 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3966 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3967 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3968 | else |
d0191583 JM |
3969 | if test -n "$ac_ct_RANLIB"; then |
3970 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3971 | else | |
3972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3973 | for as_dir in $PATH | |
8106cdd5 | 3974 | do |
d0191583 JM |
3975 | IFS=$as_save_IFS |
3976 | test -z "$as_dir" && as_dir=. | |
3977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3979 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3980 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3981 | break 2 |
3982 | fi | |
3983 | done | |
3984 | done | |
3985 | IFS=$as_save_IFS | |
3986 | ||
3987 | fi | |
3988 | fi | |
3989 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3990 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3991 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3992 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3993 | else |
ec6a6fbe AK |
3994 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3995 | $as_echo "no" >&6; } | |
d0191583 | 3996 | fi |
ad6254c5 | 3997 | |
d0191583 JM |
3998 | if test "x$ac_ct_RANLIB" = x; then |
3999 | RANLIB=":" | |
4000 | else | |
4001 | case $cross_compiling:$ac_tool_warned in | |
4002 | yes:) | |
ec6a6fbe AK |
4003 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4005 | ac_tool_warned=yes ;; |
4006 | esac | |
4007 | RANLIB=$ac_ct_RANLIB | |
4008 | fi | |
4009 | else | |
4010 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4011 | fi |
7a197a62 | 4012 | |
d0191583 JM |
4013 | # Extract the first word of "cflow", so it can be a program name with args. |
4014 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4015 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4016 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4017 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4018 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4019 | else |
4020 | case $CFLOW_CMD in | |
4021 | [\\/]* | ?:[\\/]*) | |
4022 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4023 | ;; | |
4024 | *) | |
4025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4026 | for as_dir in $PATH | |
4027 | do | |
4028 | IFS=$as_save_IFS | |
4029 | test -z "$as_dir" && as_dir=. | |
4030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4032 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4033 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4034 | break 2 |
4035 | fi | |
4036 | done | |
4037 | done | |
4038 | IFS=$as_save_IFS | |
ad6254c5 | 4039 | |
d0191583 | 4040 | ;; |
7a197a62 | 4041 | esac |
d0191583 JM |
4042 | fi |
4043 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4044 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4045 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4046 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4047 | else |
ec6a6fbe AK |
4048 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4049 | $as_echo "no" >&6; } | |
795ca3e5 | 4050 | fi |
7a197a62 | 4051 | |
ad6254c5 | 4052 | |
d0191583 JM |
4053 | # Extract the first word of "cscope", so it can be a program name with args. |
4054 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4055 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4056 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4057 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4058 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4059 | else |
4060 | case $CSCOPE_CMD in | |
4061 | [\\/]* | ?:[\\/]*) | |
4062 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4063 | ;; | |
4064 | *) | |
4065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4066 | for as_dir in $PATH | |
4067 | do | |
4068 | IFS=$as_save_IFS | |
4069 | test -z "$as_dir" && as_dir=. | |
4070 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4072 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4073 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4074 | break 2 |
4075 | fi | |
795ca3e5 | 4076 | done |
d0191583 JM |
4077 | done |
4078 | IFS=$as_save_IFS | |
795ca3e5 | 4079 | |
d0191583 JM |
4080 | ;; |
4081 | esac | |
ad6254c5 | 4082 | fi |
d0191583 JM |
4083 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4084 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4085 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4086 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4087 | else |
ec6a6fbe AK |
4088 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4089 | $as_echo "no" >&6; } | |
795ca3e5 | 4090 | fi |
ad6254c5 | 4091 | |
7a197a62 | 4092 | |
ad6254c5 | 4093 | |
d0191583 JM |
4094 | ################################################################################ |
4095 | ||
4096 | ||
4097 | ||
4098 | ||
4099 | ||
4100 | ac_header_dirent=no | |
4101 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4102 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4103 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4104 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4106 | $as_echo_n "(cached) " >&6 |
d0191583 | 4107 | else |
ad6254c5 | 4108 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4109 | /* confdefs.h. */ |
4110 | _ACEOF | |
4111 | cat confdefs.h >>conftest.$ac_ext | |
4112 | cat >>conftest.$ac_ext <<_ACEOF | |
4113 | /* end confdefs.h. */ | |
d0191583 JM |
4114 | #include <sys/types.h> |
4115 | #include <$ac_hdr> | |
4116 | ||
4117 | int | |
4118 | main () | |
4119 | { | |
4120 | if ((DIR *) 0) | |
4121 | return 0; | |
4122 | ; | |
4123 | return 0; | |
4124 | } | |
ad6254c5 | 4125 | _ACEOF |
d0191583 JM |
4126 | rm -f conftest.$ac_objext |
4127 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4128 | case "(($ac_try" in |
4129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4130 | *) ac_try_echo=$ac_try;; | |
4131 | esac | |
ec6a6fbe AK |
4132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4133 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4134 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4135 | ac_status=$? |
4136 | grep -v '^ *+' conftest.er1 >conftest.err | |
4137 | rm -f conftest.er1 | |
4138 | cat conftest.err >&5 | |
ec6a6fbe | 4139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4140 | (exit $ac_status); } && { |
4141 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4142 | test ! -s conftest.err |
d0191583 JM |
4143 | } && test -s conftest.$ac_objext; then |
4144 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4145 | else |
ec6a6fbe | 4146 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4147 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4148 | |
d0191583 | 4149 | eval "$as_ac_Header=no" |
795ca3e5 | 4150 | fi |
7a197a62 | 4151 | |
d0191583 | 4152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4153 | fi |
ec6a6fbe AK |
4154 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4155 | $as_echo "$as_val"'` | |
4156 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4157 | $as_echo "$ac_res" >&6; } | |
4158 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4159 | $as_echo "$as_val"'` | |
4160 | if test "x$as_val" = x""yes; then | |
d0191583 | 4161 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4162 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4163 | _ACEOF |
795ca3e5 | 4164 | |
d0191583 JM |
4165 | ac_header_dirent=$ac_hdr; break |
4166 | fi | |
ad6254c5 | 4167 | |
d0191583 JM |
4168 | done |
4169 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4170 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4171 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4172 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4173 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4174 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4175 | else |
d0191583 JM |
4176 | ac_func_search_save_LIBS=$LIBS |
4177 | cat >conftest.$ac_ext <<_ACEOF | |
4178 | /* confdefs.h. */ | |
4179 | _ACEOF | |
4180 | cat confdefs.h >>conftest.$ac_ext | |
4181 | cat >>conftest.$ac_ext <<_ACEOF | |
4182 | /* end confdefs.h. */ | |
ad6254c5 | 4183 | |
d0191583 JM |
4184 | /* Override any GCC internal prototype to avoid an error. |
4185 | Use char because int might match the return type of a GCC | |
4186 | builtin and then its argument prototype would still apply. */ | |
4187 | #ifdef __cplusplus | |
4188 | extern "C" | |
4189 | #endif | |
4190 | char opendir (); | |
4191 | int | |
4192 | main () | |
4193 | { | |
4194 | return opendir (); | |
4195 | ; | |
4196 | return 0; | |
4197 | } | |
4198 | _ACEOF | |
4199 | for ac_lib in '' dir; do | |
4200 | if test -z "$ac_lib"; then | |
4201 | ac_res="none required" | |
4202 | else | |
4203 | ac_res=-l$ac_lib | |
4204 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4205 | fi | |
4206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4207 | if { (ac_try="$ac_link" | |
4208 | case "(($ac_try" in | |
4209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4210 | *) ac_try_echo=$ac_try;; | |
4211 | esac | |
ec6a6fbe AK |
4212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4213 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4214 | (eval "$ac_link") 2>conftest.er1 |
4215 | ac_status=$? | |
4216 | grep -v '^ *+' conftest.er1 >conftest.err | |
4217 | rm -f conftest.er1 | |
4218 | cat conftest.err >&5 | |
ec6a6fbe | 4219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4220 | (exit $ac_status); } && { |
4221 | test -z "$ac_c_werror_flag" || | |
4222 | test ! -s conftest.err | |
ec6a6fbe AK |
4223 | } && test -s conftest$ac_exeext && { |
4224 | test "$cross_compiling" = yes || | |
4225 | $as_test_x conftest$ac_exeext | |
4226 | }; then | |
d0191583 JM |
4227 | ac_cv_search_opendir=$ac_res |
4228 | else | |
ec6a6fbe | 4229 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4230 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4231 | |
ad6254c5 | 4232 | |
795ca3e5 | 4233 | fi |
ad6254c5 | 4234 | |
ec6a6fbe | 4235 | rm -rf conftest.dSYM |
d0191583 JM |
4236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4237 | conftest$ac_exeext | |
4238 | if test "${ac_cv_search_opendir+set}" = set; then | |
4239 | break | |
7a197a62 | 4240 | fi |
d0191583 JM |
4241 | done |
4242 | if test "${ac_cv_search_opendir+set}" = set; then | |
4243 | : | |
7a197a62 | 4244 | else |
d0191583 | 4245 | ac_cv_search_opendir=no |
7a197a62 | 4246 | fi |
d0191583 JM |
4247 | rm conftest.$ac_ext |
4248 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4249 | fi |
ec6a6fbe AK |
4250 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4251 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4252 | ac_res=$ac_cv_search_opendir |
4253 | if test "$ac_res" != no; then | |
4254 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4255 | |
d0191583 | 4256 | fi |
7a197a62 | 4257 | |
7a197a62 | 4258 | else |
ec6a6fbe AK |
4259 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4260 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4261 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4262 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4263 | else |
d0191583 JM |
4264 | ac_func_search_save_LIBS=$LIBS |
4265 | cat >conftest.$ac_ext <<_ACEOF | |
4266 | /* confdefs.h. */ | |
4267 | _ACEOF | |
4268 | cat confdefs.h >>conftest.$ac_ext | |
4269 | cat >>conftest.$ac_ext <<_ACEOF | |
4270 | /* end confdefs.h. */ | |
7a197a62 | 4271 | |
d0191583 JM |
4272 | /* Override any GCC internal prototype to avoid an error. |
4273 | Use char because int might match the return type of a GCC | |
4274 | builtin and then its argument prototype would still apply. */ | |
4275 | #ifdef __cplusplus | |
4276 | extern "C" | |
4277 | #endif | |
4278 | char opendir (); | |
4279 | int | |
4280 | main () | |
4281 | { | |
4282 | return opendir (); | |
4283 | ; | |
4284 | return 0; | |
4285 | } | |
4286 | _ACEOF | |
4287 | for ac_lib in '' x; do | |
4288 | if test -z "$ac_lib"; then | |
4289 | ac_res="none required" | |
4290 | else | |
4291 | ac_res=-l$ac_lib | |
4292 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4293 | fi | |
4294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4295 | if { (ac_try="$ac_link" | |
4296 | case "(($ac_try" in | |
4297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4298 | *) ac_try_echo=$ac_try;; | |
4299 | esac | |
ec6a6fbe AK |
4300 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4301 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4302 | (eval "$ac_link") 2>conftest.er1 |
4303 | ac_status=$? | |
4304 | grep -v '^ *+' conftest.er1 >conftest.err | |
4305 | rm -f conftest.er1 | |
4306 | cat conftest.err >&5 | |
ec6a6fbe | 4307 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4308 | (exit $ac_status); } && { |
4309 | test -z "$ac_c_werror_flag" || | |
4310 | test ! -s conftest.err | |
ec6a6fbe AK |
4311 | } && test -s conftest$ac_exeext && { |
4312 | test "$cross_compiling" = yes || | |
4313 | $as_test_x conftest$ac_exeext | |
4314 | }; then | |
d0191583 JM |
4315 | ac_cv_search_opendir=$ac_res |
4316 | else | |
ec6a6fbe | 4317 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4318 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4319 | |
4320 | ||
4321 | fi | |
4322 | ||
ec6a6fbe | 4323 | rm -rf conftest.dSYM |
d0191583 JM |
4324 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4325 | conftest$ac_exeext | |
4326 | if test "${ac_cv_search_opendir+set}" = set; then | |
4327 | break | |
7a197a62 | 4328 | fi |
d0191583 JM |
4329 | done |
4330 | if test "${ac_cv_search_opendir+set}" = set; then | |
4331 | : | |
7a197a62 | 4332 | else |
d0191583 | 4333 | ac_cv_search_opendir=no |
7a197a62 | 4334 | fi |
d0191583 JM |
4335 | rm conftest.$ac_ext |
4336 | LIBS=$ac_func_search_save_LIBS | |
4337 | fi | |
ec6a6fbe AK |
4338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4339 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4340 | ac_res=$ac_cv_search_opendir |
4341 | if test "$ac_res" != no; then | |
4342 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4343 | |
7a197a62 | 4344 | fi |
7a197a62 | 4345 | |
d0191583 | 4346 | fi |
7a197a62 | 4347 | |
ec6a6fbe AK |
4348 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4349 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4350 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4351 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4352 | else |
4353 | cat >conftest.$ac_ext <<_ACEOF | |
4354 | /* confdefs.h. */ | |
4355 | _ACEOF | |
4356 | cat confdefs.h >>conftest.$ac_ext | |
4357 | cat >>conftest.$ac_ext <<_ACEOF | |
4358 | /* end confdefs.h. */ | |
4359 | #include <stdlib.h> | |
4360 | #include <stdarg.h> | |
4361 | #include <string.h> | |
4362 | #include <float.h> | |
4363 | ||
4364 | int | |
4365 | main () | |
4366 | { | |
4367 | ||
4368 | ; | |
4369 | return 0; | |
4370 | } | |
4371 | _ACEOF | |
4372 | rm -f conftest.$ac_objext | |
4373 | if { (ac_try="$ac_compile" | |
4374 | case "(($ac_try" in | |
4375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4376 | *) ac_try_echo=$ac_try;; | |
4377 | esac | |
ec6a6fbe AK |
4378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4379 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4380 | (eval "$ac_compile") 2>conftest.er1 |
4381 | ac_status=$? | |
4382 | grep -v '^ *+' conftest.er1 >conftest.err | |
4383 | rm -f conftest.er1 | |
4384 | cat conftest.err >&5 | |
ec6a6fbe | 4385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4386 | (exit $ac_status); } && { |
4387 | test -z "$ac_c_werror_flag" || | |
4388 | test ! -s conftest.err | |
4389 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4390 | ac_cv_header_stdc=yes |
4391 | else | |
ec6a6fbe | 4392 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4393 | sed 's/^/| /' conftest.$ac_ext >&5 |
4394 | ||
4395 | ac_cv_header_stdc=no | |
4396 | fi | |
4397 | ||
4398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4399 | ||
4400 | if test $ac_cv_header_stdc = yes; then | |
4401 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4402 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4403 | /* confdefs.h. */ |
4404 | _ACEOF | |
4405 | cat confdefs.h >>conftest.$ac_ext | |
4406 | cat >>conftest.$ac_ext <<_ACEOF | |
4407 | /* end confdefs.h. */ | |
4408 | #include <string.h> | |
8106cdd5 | 4409 | |
ad6254c5 AK |
4410 | _ACEOF |
4411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4412 | $EGREP "memchr" >/dev/null 2>&1; then | |
4413 | : | |
4414 | else | |
4415 | ac_cv_header_stdc=no | |
80992638 | 4416 | fi |
ad6254c5 | 4417 | rm -f conftest* |
795ca3e5 AK |
4418 | |
4419 | fi | |
4420 | ||
ad6254c5 AK |
4421 | if test $ac_cv_header_stdc = yes; then |
4422 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
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. */ | |
80992638 | 4429 | #include <stdlib.h> |
ad6254c5 AK |
4430 | |
4431 | _ACEOF | |
80992638 | 4432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4433 | $EGREP "free" >/dev/null 2>&1; then |
4434 | : | |
795ca3e5 | 4435 | else |
ad6254c5 | 4436 | ac_cv_header_stdc=no |
795ca3e5 | 4437 | fi |
80992638 | 4438 | rm -f conftest* |
8106cdd5 | 4439 | |
795ca3e5 AK |
4440 | fi |
4441 | ||
ad6254c5 AK |
4442 | if test $ac_cv_header_stdc = yes; then |
4443 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4444 | if test "$cross_compiling" = yes; then | |
4445 | : | |
795ca3e5 | 4446 | else |
ad6254c5 | 4447 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4448 | /* confdefs.h. */ |
4449 | _ACEOF | |
4450 | cat confdefs.h >>conftest.$ac_ext | |
4451 | cat >>conftest.$ac_ext <<_ACEOF | |
4452 | /* end confdefs.h. */ | |
4453 | #include <ctype.h> | |
7a197a62 | 4454 | #include <stdlib.h> |
ad6254c5 AK |
4455 | #if ((' ' & 0x0FF) == 0x020) |
4456 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4457 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4458 | #else | |
4459 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4460 | (('a' <= (c) && (c) <= 'i') \ |
4461 | || ('j' <= (c) && (c) <= 'r') \ | |
4462 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4463 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4464 | #endif |
ad6254c5 AK |
4465 | |
4466 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4467 | int | |
4468 | main () | |
4469 | { | |
4470 | int i; | |
4471 | for (i = 0; i < 256; i++) | |
4472 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4473 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4474 | return 2; |
4475 | return 0; | |
ad6254c5 AK |
4476 | } |
4477 | _ACEOF | |
4478 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4479 | if { (ac_try="$ac_link" |
4480 | case "(($ac_try" in | |
4481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4482 | *) ac_try_echo=$ac_try;; | |
4483 | esac | |
ec6a6fbe AK |
4484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4485 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4486 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4487 | ac_status=$? |
ec6a6fbe | 4488 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4489 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4490 | { (case "(($ac_try" in |
4491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4492 | *) ac_try_echo=$ac_try;; | |
4493 | esac | |
ec6a6fbe AK |
4494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4495 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4496 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4497 | ac_status=$? |
ec6a6fbe | 4498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4499 | (exit $ac_status); }; }; then |
4500 | : | |
795ca3e5 | 4501 | else |
ec6a6fbe AK |
4502 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4503 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4504 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4505 | |
ad6254c5 AK |
4506 | ( exit $ac_status ) |
4507 | ac_cv_header_stdc=no | |
80992638 | 4508 | fi |
ec6a6fbe | 4509 | rm -rf conftest.dSYM |
7a197a62 | 4510 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4511 | fi |
7a197a62 AK |
4512 | |
4513 | ||
ad6254c5 AK |
4514 | fi |
4515 | fi | |
ec6a6fbe AK |
4516 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4517 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4518 | if test $ac_cv_header_stdc = yes; then |
4519 | ||
4520 | cat >>confdefs.h <<\_ACEOF | |
4521 | #define STDC_HEADERS 1 | |
4522 | _ACEOF | |
795ca3e5 AK |
4523 | |
4524 | fi | |
4525 | ||
d911ec67 | 4526 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4527 | |
ad6254c5 | 4528 | |
7a197a62 | 4529 | |
8106cdd5 | 4530 | |
795ca3e5 | 4531 | |
795ca3e5 | 4532 | |
d911ec67 AK |
4533 | |
4534 | ||
4535 | ||
4536 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4537 | inttypes.h stdint.h unistd.h | |
4538 | do | |
4539 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4540 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4541 | $as_echo_n "checking for $ac_header... " >&6; } | |
4542 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4543 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4544 | else |
ad6254c5 | 4545 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4546 | /* confdefs.h. */ |
4547 | _ACEOF | |
4548 | cat confdefs.h >>conftest.$ac_ext | |
4549 | cat >>conftest.$ac_ext <<_ACEOF | |
4550 | /* end confdefs.h. */ | |
d911ec67 | 4551 | $ac_includes_default |
ad6254c5 | 4552 | |
d911ec67 | 4553 | #include <$ac_header> |
ad6254c5 AK |
4554 | _ACEOF |
4555 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4556 | if { (ac_try="$ac_compile" |
4557 | case "(($ac_try" in | |
4558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4559 | *) ac_try_echo=$ac_try;; | |
4560 | esac | |
ec6a6fbe AK |
4561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4562 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4563 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4564 | ac_status=$? |
8a2fc586 AK |
4565 | grep -v '^ *+' conftest.er1 >conftest.err |
4566 | rm -f conftest.er1 | |
4567 | cat conftest.err >&5 | |
ec6a6fbe | 4568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4569 | (exit $ac_status); } && { |
4570 | test -z "$ac_c_werror_flag" || | |
4571 | test ! -s conftest.err | |
4572 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4573 | eval "$as_ac_Header=yes" |
795ca3e5 | 4574 | else |
ec6a6fbe | 4575 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4576 | sed 's/^/| /' conftest.$ac_ext >&5 |
4577 | ||
d911ec67 | 4578 | eval "$as_ac_Header=no" |
795ca3e5 | 4579 | fi |
7a197a62 AK |
4580 | |
4581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4582 | fi |
d911ec67 AK |
4583 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4584 | $as_echo "$as_val"'` | |
4585 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4586 | $as_echo "$ac_res" >&6; } | |
4587 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4588 | $as_echo "$as_val"'` | |
4589 | if test "x$as_val" = x""yes; then | |
4590 | cat >>confdefs.h <<_ACEOF | |
4591 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4592 | _ACEOF |
b896caa1 | 4593 | |
8106cdd5 | 4594 | fi |
b896caa1 | 4595 | |
d911ec67 | 4596 | done |
d0191583 JM |
4597 | |
4598 | ||
d911ec67 AK |
4599 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4600 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4601 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4602 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4603 | else |
4604 | cat >conftest.$ac_ext <<_ACEOF | |
4605 | /* confdefs.h. */ | |
4606 | _ACEOF | |
4607 | cat confdefs.h >>conftest.$ac_ext | |
4608 | cat >>conftest.$ac_ext <<_ACEOF | |
4609 | /* end confdefs.h. */ | |
d911ec67 AK |
4610 | #include <sys/types.h> |
4611 | int | |
4612 | main () | |
4613 | { | |
4614 | return makedev(0, 0); | |
4615 | ; | |
4616 | return 0; | |
4617 | } | |
d0191583 | 4618 | _ACEOF |
d911ec67 AK |
4619 | rm -f conftest.$ac_objext conftest$ac_exeext |
4620 | if { (ac_try="$ac_link" | |
d0191583 JM |
4621 | case "(($ac_try" in |
4622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4623 | *) ac_try_echo=$ac_try;; | |
4624 | esac | |
ec6a6fbe AK |
4625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4626 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4627 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4628 | ac_status=$? |
4629 | grep -v '^ *+' conftest.er1 >conftest.err | |
4630 | rm -f conftest.er1 | |
4631 | cat conftest.err >&5 | |
ec6a6fbe | 4632 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4633 | (exit $ac_status); } && { |
4634 | test -z "$ac_c_werror_flag" || | |
4635 | test ! -s conftest.err | |
d911ec67 AK |
4636 | } && test -s conftest$ac_exeext && { |
4637 | test "$cross_compiling" = yes || | |
4638 | $as_test_x conftest$ac_exeext | |
4639 | }; then | |
4640 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4641 | else |
ec6a6fbe | 4642 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4643 | sed 's/^/| /' conftest.$ac_ext >&5 |
4644 | ||
d911ec67 | 4645 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4646 | fi |
4647 | ||
d911ec67 AK |
4648 | rm -rf conftest.dSYM |
4649 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4650 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4651 | |
4652 | fi | |
d911ec67 AK |
4653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4654 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4655 | |
d911ec67 AK |
4656 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4657 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4658 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4659 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4660 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4661 | $as_echo_n "(cached) " >&6 |
d0191583 | 4662 | fi |
d911ec67 AK |
4663 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4664 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4665 | else |
d0191583 | 4666 | # Is the header compilable? |
d911ec67 AK |
4667 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4668 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4669 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4670 | /* confdefs.h. */ |
4671 | _ACEOF | |
4672 | cat confdefs.h >>conftest.$ac_ext | |
4673 | cat >>conftest.$ac_ext <<_ACEOF | |
4674 | /* end confdefs.h. */ | |
4675 | $ac_includes_default | |
d911ec67 | 4676 | #include <sys/mkdev.h> |
ad6254c5 AK |
4677 | _ACEOF |
4678 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4679 | if { (ac_try="$ac_compile" |
4680 | case "(($ac_try" in | |
4681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4682 | *) ac_try_echo=$ac_try;; | |
4683 | esac | |
ec6a6fbe AK |
4684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4685 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4686 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4687 | ac_status=$? |
8a2fc586 AK |
4688 | grep -v '^ *+' conftest.er1 >conftest.err |
4689 | rm -f conftest.er1 | |
4690 | cat conftest.err >&5 | |
ec6a6fbe | 4691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4692 | (exit $ac_status); } && { |
4693 | test -z "$ac_c_werror_flag" || | |
4694 | test ! -s conftest.err | |
4695 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4696 | ac_header_compiler=yes |
ad6254c5 | 4697 | else |
ec6a6fbe | 4698 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4699 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4700 | |
d0191583 | 4701 | ac_header_compiler=no |
ad6254c5 | 4702 | fi |
7a197a62 AK |
4703 | |
4704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4705 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4706 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4707 | |
4708 | # Is the header present? | |
d911ec67 AK |
4709 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4710 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4711 | cat >conftest.$ac_ext <<_ACEOF |
4712 | /* confdefs.h. */ | |
4713 | _ACEOF | |
4714 | cat confdefs.h >>conftest.$ac_ext | |
4715 | cat >>conftest.$ac_ext <<_ACEOF | |
4716 | /* end confdefs.h. */ | |
d911ec67 | 4717 | #include <sys/mkdev.h> |
d0191583 JM |
4718 | _ACEOF |
4719 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4720 | case "(($ac_try" in | |
4721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4722 | *) ac_try_echo=$ac_try;; | |
4723 | esac | |
ec6a6fbe AK |
4724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4725 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4727 | ac_status=$? | |
4728 | grep -v '^ *+' conftest.er1 >conftest.err | |
4729 | rm -f conftest.er1 | |
4730 | cat conftest.err >&5 | |
ec6a6fbe | 4731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4732 | (exit $ac_status); } >/dev/null && { |
4733 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4734 | test ! -s conftest.err | |
4735 | }; then | |
4736 | ac_header_preproc=yes | |
4737 | else | |
ec6a6fbe | 4738 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4739 | sed 's/^/| /' conftest.$ac_ext >&5 |
4740 | ||
4741 | ac_header_preproc=no | |
4742 | fi | |
4743 | ||
4744 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4745 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4746 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4747 | |
4748 | # So? What about this header? | |
4749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4750 | yes:no: ) | |
d911ec67 AK |
4751 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4752 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4753 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4754 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4755 | ac_header_preproc=yes |
4756 | ;; | |
4757 | no:yes:* ) | |
d911ec67 AK |
4758 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4759 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4760 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4761 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4762 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4763 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4764 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4765 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4766 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4767 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4768 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4769 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4770 | |
4771 | ;; | |
4772 | esac | |
d911ec67 AK |
4773 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4774 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4775 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4776 | $as_echo_n "(cached) " >&6 |
d0191583 | 4777 | else |
d911ec67 | 4778 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4779 | fi |
d911ec67 AK |
4780 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4781 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4782 | |
4783 | fi | |
d911ec67 AK |
4784 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4785 | ||
4786 | cat >>confdefs.h <<\_ACEOF | |
4787 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4788 | _ACEOF |
a38df97f | 4789 | |
80992638 AK |
4790 | fi |
4791 | ||
80992638 | 4792 | |
5a52dca9 | 4793 | |
d911ec67 AK |
4794 | if test $ac_cv_header_sys_mkdev_h = no; then |
4795 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4796 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4797 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4798 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4799 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4800 | fi |
d911ec67 AK |
4801 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4802 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4803 | else |
4804 | # Is the header compilable? | |
d911ec67 AK |
4805 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4806 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4807 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4808 | /* confdefs.h. */ |
4809 | _ACEOF | |
4810 | cat confdefs.h >>conftest.$ac_ext | |
4811 | cat >>conftest.$ac_ext <<_ACEOF | |
4812 | /* end confdefs.h. */ | |
4813 | $ac_includes_default | |
d911ec67 | 4814 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4815 | _ACEOF |
4816 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4817 | if { (ac_try="$ac_compile" |
4818 | case "(($ac_try" in | |
4819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4820 | *) ac_try_echo=$ac_try;; | |
4821 | esac | |
ec6a6fbe AK |
4822 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4823 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4824 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4825 | ac_status=$? |
8a2fc586 AK |
4826 | grep -v '^ *+' conftest.er1 >conftest.err |
4827 | rm -f conftest.er1 | |
4828 | cat conftest.err >&5 | |
ec6a6fbe | 4829 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4830 | (exit $ac_status); } && { |
4831 | test -z "$ac_c_werror_flag" || | |
4832 | test ! -s conftest.err | |
4833 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4834 | ac_header_compiler=yes |
4835 | else | |
ec6a6fbe | 4836 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4837 | sed 's/^/| /' conftest.$ac_ext >&5 |
4838 | ||
4839 | ac_header_compiler=no | |
4840 | fi | |
4841 | ||
4842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4843 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4844 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4845 | |
4846 | # Is the header present? | |
d911ec67 AK |
4847 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4848 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4849 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4850 | /* confdefs.h. */ |
4851 | _ACEOF | |
4852 | cat confdefs.h >>conftest.$ac_ext | |
4853 | cat >>conftest.$ac_ext <<_ACEOF | |
4854 | /* end confdefs.h. */ | |
d911ec67 | 4855 | #include <sys/sysmacros.h> |
ad6254c5 | 4856 | _ACEOF |
7a197a62 AK |
4857 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4858 | case "(($ac_try" in | |
4859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4860 | *) ac_try_echo=$ac_try;; | |
4861 | esac | |
ec6a6fbe AK |
4862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4863 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4864 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4865 | ac_status=$? |
4866 | grep -v '^ *+' conftest.er1 >conftest.err | |
4867 | rm -f conftest.er1 | |
4868 | cat conftest.err >&5 | |
ec6a6fbe | 4869 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4870 | (exit $ac_status); } >/dev/null && { |
4871 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4872 | test ! -s conftest.err | |
4873 | }; then | |
ad6254c5 AK |
4874 | ac_header_preproc=yes |
4875 | else | |
ec6a6fbe | 4876 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4877 | sed 's/^/| /' conftest.$ac_ext >&5 |
4878 | ||
4879 | ac_header_preproc=no | |
4880 | fi | |
7a197a62 | 4881 | |
ad6254c5 | 4882 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4883 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4884 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4885 | |
4886 | # So? What about this header? | |
8a2fc586 AK |
4887 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4888 | yes:no: ) | |
d911ec67 AK |
4889 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4890 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4891 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4892 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4893 | ac_header_preproc=yes |
ad6254c5 | 4894 | ;; |
8a2fc586 | 4895 | no:yes:* ) |
d911ec67 AK |
4896 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4897 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4898 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4899 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4900 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4901 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4902 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4903 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4904 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4905 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4906 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4907 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4908 | |
ad6254c5 AK |
4909 | ;; |
4910 | esac | |
d911ec67 AK |
4911 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4912 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4913 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4914 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4915 | else |
d911ec67 | 4916 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4917 | fi |
d911ec67 AK |
4918 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4919 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4920 | |
4921 | fi | |
d911ec67 AK |
4922 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4923 | ||
4924 | cat >>confdefs.h <<\_ACEOF | |
4925 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4926 | _ACEOF |
b896caa1 | 4927 | |
80992638 AK |
4928 | fi |
4929 | ||
d8ac0fbc | 4930 | |
d911ec67 AK |
4931 | fi |
4932 | fi | |
d8ac0fbc | 4933 | |
d911ec67 AK |
4934 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4935 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4936 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4937 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4938 | else |
d911ec67 | 4939 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4940 | /* confdefs.h. */ |
4941 | _ACEOF | |
4942 | cat confdefs.h >>conftest.$ac_ext | |
4943 | cat >>conftest.$ac_ext <<_ACEOF | |
4944 | /* end confdefs.h. */ | |
d911ec67 AK |
4945 | #include <stdlib.h> |
4946 | #include <stdarg.h> | |
4947 | #include <string.h> | |
4948 | #include <float.h> | |
4949 | ||
4950 | int | |
4951 | main () | |
4952 | { | |
4953 | ||
4954 | ; | |
4955 | return 0; | |
4956 | } | |
ad6254c5 AK |
4957 | _ACEOF |
4958 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4959 | if { (ac_try="$ac_compile" |
4960 | case "(($ac_try" in | |
4961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4962 | *) ac_try_echo=$ac_try;; | |
4963 | esac | |
ec6a6fbe AK |
4964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4965 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4966 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4967 | ac_status=$? |
8a2fc586 AK |
4968 | grep -v '^ *+' conftest.er1 >conftest.err |
4969 | rm -f conftest.er1 | |
4970 | cat conftest.err >&5 | |
ec6a6fbe | 4971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4972 | (exit $ac_status); } && { |
4973 | test -z "$ac_c_werror_flag" || | |
4974 | test ! -s conftest.err | |
4975 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4976 | ac_cv_header_stdc=yes |
ad6254c5 | 4977 | else |
ec6a6fbe | 4978 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4979 | sed 's/^/| /' conftest.$ac_ext >&5 |
4980 | ||
d911ec67 | 4981 | ac_cv_header_stdc=no |
ad6254c5 | 4982 | fi |
7a197a62 AK |
4983 | |
4984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 4985 | |
d911ec67 AK |
4986 | if test $ac_cv_header_stdc = yes; then |
4987 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4988 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4989 | /* confdefs.h. */ |
4990 | _ACEOF | |
4991 | cat confdefs.h >>conftest.$ac_ext | |
4992 | cat >>conftest.$ac_ext <<_ACEOF | |
4993 | /* end confdefs.h. */ | |
d911ec67 AK |
4994 | #include <string.h> |
4995 | ||
ad6254c5 | 4996 | _ACEOF |
d911ec67 AK |
4997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4998 | $EGREP "memchr" >/dev/null 2>&1; then | |
4999 | : | |
5000 | else | |
5001 | ac_cv_header_stdc=no | |
5002 | fi | |
5003 | rm -f conftest* | |
5004 | ||
5005 | fi | |
5006 | ||
5007 | if test $ac_cv_header_stdc = yes; then | |
5008 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5009 | cat >conftest.$ac_ext <<_ACEOF | |
5010 | /* confdefs.h. */ | |
5011 | _ACEOF | |
5012 | cat confdefs.h >>conftest.$ac_ext | |
5013 | cat >>conftest.$ac_ext <<_ACEOF | |
5014 | /* end confdefs.h. */ | |
5015 | #include <stdlib.h> | |
5016 | ||
5017 | _ACEOF | |
5018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5019 | $EGREP "free" >/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 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5030 | if test "$cross_compiling" = yes; then | |
5031 | : | |
5032 | else | |
5033 | cat >conftest.$ac_ext <<_ACEOF | |
5034 | /* confdefs.h. */ | |
5035 | _ACEOF | |
5036 | cat confdefs.h >>conftest.$ac_ext | |
5037 | cat >>conftest.$ac_ext <<_ACEOF | |
5038 | /* end confdefs.h. */ | |
5039 | #include <ctype.h> | |
5040 | #include <stdlib.h> | |
5041 | #if ((' ' & 0x0FF) == 0x020) | |
5042 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5043 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5044 | #else | |
5045 | # define ISLOWER(c) \ | |
5046 | (('a' <= (c) && (c) <= 'i') \ | |
5047 | || ('j' <= (c) && (c) <= 'r') \ | |
5048 | || ('s' <= (c) && (c) <= 'z')) | |
5049 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5050 | #endif | |
5051 | ||
5052 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5053 | int | |
5054 | main () | |
5055 | { | |
5056 | int i; | |
5057 | for (i = 0; i < 256; i++) | |
5058 | if (XOR (islower (i), ISLOWER (i)) | |
5059 | || toupper (i) != TOUPPER (i)) | |
5060 | return 2; | |
5061 | return 0; | |
5062 | } | |
5063 | _ACEOF | |
5064 | rm -f conftest$ac_exeext | |
5065 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5066 | case "(($ac_try" in |
5067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5068 | *) ac_try_echo=$ac_try;; | |
5069 | esac | |
ec6a6fbe AK |
5070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5071 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5072 | (eval "$ac_link") 2>&5 |
5073 | ac_status=$? | |
5074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5075 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5076 | { (case "(($ac_try" in | |
5077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5078 | *) ac_try_echo=$ac_try;; | |
5079 | esac | |
5080 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5081 | $as_echo "$ac_try_echo") >&5 | |
5082 | (eval "$ac_try") 2>&5 | |
5083 | ac_status=$? | |
5084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5085 | (exit $ac_status); }; }; then | |
5086 | : | |
5087 | else | |
5088 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5089 | $as_echo "$as_me: failed program was:" >&5 | |
5090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5091 | ||
5092 | ( exit $ac_status ) | |
5093 | ac_cv_header_stdc=no | |
5094 | fi | |
5095 | rm -rf conftest.dSYM | |
5096 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5097 | fi | |
5098 | ||
5099 | ||
5100 | fi | |
5101 | fi | |
5102 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5103 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5104 | if test $ac_cv_header_stdc = yes; then | |
5105 | ||
5106 | cat >>confdefs.h <<\_ACEOF | |
5107 | #define STDC_HEADERS 1 | |
5108 | _ACEOF | |
5109 | ||
5110 | fi | |
5111 | ||
5112 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5113 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5114 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5115 | $as_echo_n "(cached) " >&6 | |
5116 | else | |
5117 | cat >conftest.$ac_ext <<_ACEOF | |
5118 | /* confdefs.h. */ | |
5119 | _ACEOF | |
5120 | cat confdefs.h >>conftest.$ac_ext | |
5121 | cat >>conftest.$ac_ext <<_ACEOF | |
5122 | /* end confdefs.h. */ | |
5123 | #include <sys/types.h> | |
5124 | #include <sys/wait.h> | |
5125 | #ifndef WEXITSTATUS | |
5126 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5127 | #endif | |
5128 | #ifndef WIFEXITED | |
5129 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5130 | #endif | |
5131 | ||
5132 | int | |
5133 | main () | |
5134 | { | |
5135 | int s; | |
5136 | wait (&s); | |
5137 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5138 | ; | |
5139 | return 0; | |
5140 | } | |
5141 | _ACEOF | |
5142 | rm -f conftest.$ac_objext | |
5143 | if { (ac_try="$ac_compile" | |
5144 | case "(($ac_try" in | |
5145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5146 | *) ac_try_echo=$ac_try;; | |
5147 | esac | |
5148 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5149 | $as_echo "$ac_try_echo") >&5 | |
5150 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5151 | ac_status=$? |
5152 | grep -v '^ *+' conftest.er1 >conftest.err | |
5153 | rm -f conftest.er1 | |
5154 | cat conftest.err >&5 | |
ec6a6fbe | 5155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5156 | (exit $ac_status); } && { |
5157 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5158 | test ! -s conftest.err |
d911ec67 AK |
5159 | } && test -s conftest.$ac_objext; then |
5160 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5161 | else |
ec6a6fbe | 5162 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5163 | sed 's/^/| /' conftest.$ac_ext >&5 |
5164 | ||
d911ec67 | 5165 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5166 | fi |
7a197a62 | 5167 | |
d911ec67 AK |
5168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5169 | fi | |
5170 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5171 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5172 | if test $ac_cv_header_sys_wait_h = yes; then | |
5173 | ||
5174 | cat >>confdefs.h <<\_ACEOF | |
5175 | #define HAVE_SYS_WAIT_H 1 | |
5176 | _ACEOF | |
5177 | ||
5178 | fi | |
5179 | ||
5180 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5181 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5182 | if test "${ac_cv_header_time+set}" = set; then | |
5183 | $as_echo_n "(cached) " >&6 | |
5184 | else | |
5185 | cat >conftest.$ac_ext <<_ACEOF | |
5186 | /* confdefs.h. */ | |
5187 | _ACEOF | |
5188 | cat confdefs.h >>conftest.$ac_ext | |
5189 | cat >>conftest.$ac_ext <<_ACEOF | |
5190 | /* end confdefs.h. */ | |
5191 | #include <sys/types.h> | |
5192 | #include <sys/time.h> | |
5193 | #include <time.h> | |
5194 | ||
5195 | int | |
5196 | main () | |
5197 | { | |
5198 | if ((struct tm *) 0) | |
5199 | return 0; | |
5200 | ; | |
5201 | return 0; | |
5202 | } | |
5203 | _ACEOF | |
5204 | rm -f conftest.$ac_objext | |
5205 | if { (ac_try="$ac_compile" | |
5206 | case "(($ac_try" in | |
5207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5208 | *) ac_try_echo=$ac_try;; | |
5209 | esac | |
5210 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5211 | $as_echo "$ac_try_echo") >&5 | |
5212 | (eval "$ac_compile") 2>conftest.er1 | |
5213 | ac_status=$? | |
5214 | grep -v '^ *+' conftest.er1 >conftest.err | |
5215 | rm -f conftest.er1 | |
5216 | cat conftest.err >&5 | |
5217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5218 | (exit $ac_status); } && { | |
5219 | test -z "$ac_c_werror_flag" || | |
5220 | test ! -s conftest.err | |
5221 | } && test -s conftest.$ac_objext; then | |
5222 | ac_cv_header_time=yes | |
5223 | else | |
5224 | $as_echo "$as_me: failed program was:" >&5 | |
5225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5226 | ||
5227 | ac_cv_header_time=no | |
5228 | fi | |
5229 | ||
5230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5231 | fi | |
5232 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5233 | $as_echo "$ac_cv_header_time" >&6; } | |
5234 | if test $ac_cv_header_time = yes; then | |
5235 | ||
5236 | cat >>confdefs.h <<\_ACEOF | |
5237 | #define TIME_WITH_SYS_TIME 1 | |
5238 | _ACEOF | |
5239 | ||
5240 | fi | |
5241 | ||
5242 | ||
5243 | ||
5244 | ||
5245 | ||
5246 | ||
5247 | ||
5248 | ||
5249 | ||
5250 | ||
5251 | ||
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | ||
5257 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5258 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5259 | sys/wait.h time.h | |
5260 | do | |
5261 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5262 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5263 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5264 | $as_echo_n "checking for $ac_header... " >&6; } | |
5265 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5266 | $as_echo_n "(cached) " >&6 | |
5267 | fi | |
5268 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5269 | $as_echo "$as_val"'` | |
5270 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5271 | $as_echo "$ac_res" >&6; } | |
5272 | else | |
5273 | # Is the header compilable? | |
5274 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5275 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5276 | cat >conftest.$ac_ext <<_ACEOF | |
5277 | /* confdefs.h. */ | |
5278 | _ACEOF | |
5279 | cat confdefs.h >>conftest.$ac_ext | |
5280 | cat >>conftest.$ac_ext <<_ACEOF | |
5281 | /* end confdefs.h. */ | |
5282 | $ac_includes_default | |
5283 | #include <$ac_header> | |
5284 | _ACEOF | |
5285 | rm -f conftest.$ac_objext | |
5286 | if { (ac_try="$ac_compile" | |
5287 | case "(($ac_try" in | |
5288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5289 | *) ac_try_echo=$ac_try;; | |
5290 | esac | |
5291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5292 | $as_echo "$ac_try_echo") >&5 | |
5293 | (eval "$ac_compile") 2>conftest.er1 | |
5294 | ac_status=$? | |
5295 | grep -v '^ *+' conftest.er1 >conftest.err | |
5296 | rm -f conftest.er1 | |
5297 | cat conftest.err >&5 | |
5298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5299 | (exit $ac_status); } && { | |
5300 | test -z "$ac_c_werror_flag" || | |
5301 | test ! -s conftest.err | |
5302 | } && test -s conftest.$ac_objext; then | |
5303 | ac_header_compiler=yes | |
5304 | else | |
5305 | $as_echo "$as_me: failed program was:" >&5 | |
5306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5307 | ||
5308 | ac_header_compiler=no | |
5309 | fi | |
5310 | ||
5311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5312 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5313 | $as_echo "$ac_header_compiler" >&6; } | |
5314 | ||
5315 | # Is the header present? | |
5316 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5317 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5318 | cat >conftest.$ac_ext <<_ACEOF | |
5319 | /* confdefs.h. */ | |
5320 | _ACEOF | |
5321 | cat confdefs.h >>conftest.$ac_ext | |
5322 | cat >>conftest.$ac_ext <<_ACEOF | |
5323 | /* end confdefs.h. */ | |
5324 | #include <$ac_header> | |
5325 | _ACEOF | |
5326 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5327 | case "(($ac_try" in | |
5328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5329 | *) ac_try_echo=$ac_try;; | |
5330 | esac | |
5331 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5332 | $as_echo "$ac_try_echo") >&5 | |
5333 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5334 | ac_status=$? | |
5335 | grep -v '^ *+' conftest.er1 >conftest.err | |
5336 | rm -f conftest.er1 | |
5337 | cat conftest.err >&5 | |
5338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5339 | (exit $ac_status); } >/dev/null && { | |
5340 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5341 | test ! -s conftest.err | |
5342 | }; then | |
5343 | ac_header_preproc=yes | |
5344 | else | |
5345 | $as_echo "$as_me: failed program was:" >&5 | |
5346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5347 | ||
5348 | ac_header_preproc=no | |
5349 | fi | |
5350 | ||
5351 | rm -f conftest.err conftest.$ac_ext | |
5352 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5353 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5354 | |
5355 | # So? What about this header? | |
8a2fc586 AK |
5356 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5357 | yes:no: ) | |
ec6a6fbe AK |
5358 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5359 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5360 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5361 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5362 | ac_header_preproc=yes |
ad6254c5 | 5363 | ;; |
8a2fc586 | 5364 | no:yes:* ) |
ec6a6fbe AK |
5365 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5366 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5367 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5368 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5369 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5370 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5371 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5372 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5373 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5374 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5375 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5376 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5377 | |
ad6254c5 AK |
5378 | ;; |
5379 | esac | |
d911ec67 AK |
5380 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5381 | $as_echo_n "checking for $ac_header... " >&6; } | |
5382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5383 | $as_echo_n "(cached) " >&6 | |
5384 | else | |
5385 | eval "$as_ac_Header=\$ac_header_preproc" | |
5386 | fi | |
5387 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5388 | $as_echo "$as_val"'` | |
5389 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5390 | $as_echo "$ac_res" >&6; } | |
5391 | ||
5392 | fi | |
5393 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5394 | $as_echo "$as_val"'` | |
5395 | if test "x$as_val" = x""yes; then | |
5396 | cat >>confdefs.h <<_ACEOF | |
5397 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5398 | _ACEOF | |
5399 | ||
5400 | else | |
5401 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5402 | $as_echo "$as_me: error: bailing out" >&2;} | |
5403 | { (exit 1); exit 1; }; } | |
5404 | fi | |
5405 | ||
5406 | done | |
5407 | ||
5408 | ||
5409 | case "$host_os" in | |
5410 | linux*) | |
5411 | ||
5412 | ||
5413 | ||
5414 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5415 | do | |
5416 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5417 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5418 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5419 | $as_echo_n "checking for $ac_header... " >&6; } | |
5420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5421 | $as_echo_n "(cached) " >&6 | |
5422 | fi | |
5423 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5424 | $as_echo "$as_val"'` | |
5425 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5426 | $as_echo "$ac_res" >&6; } | |
5427 | else | |
5428 | # Is the header compilable? | |
5429 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5430 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5431 | cat >conftest.$ac_ext <<_ACEOF | |
5432 | /* confdefs.h. */ | |
5433 | _ACEOF | |
5434 | cat confdefs.h >>conftest.$ac_ext | |
5435 | cat >>conftest.$ac_ext <<_ACEOF | |
5436 | /* end confdefs.h. */ | |
5437 | $ac_includes_default | |
5438 | #include <$ac_header> | |
5439 | _ACEOF | |
5440 | rm -f conftest.$ac_objext | |
5441 | if { (ac_try="$ac_compile" | |
5442 | case "(($ac_try" in | |
5443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5444 | *) ac_try_echo=$ac_try;; | |
5445 | esac | |
5446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5447 | $as_echo "$ac_try_echo") >&5 | |
5448 | (eval "$ac_compile") 2>conftest.er1 | |
5449 | ac_status=$? | |
5450 | grep -v '^ *+' conftest.er1 >conftest.err | |
5451 | rm -f conftest.er1 | |
5452 | cat conftest.err >&5 | |
5453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5454 | (exit $ac_status); } && { | |
5455 | test -z "$ac_c_werror_flag" || | |
5456 | test ! -s conftest.err | |
5457 | } && test -s conftest.$ac_objext; then | |
5458 | ac_header_compiler=yes | |
5459 | else | |
5460 | $as_echo "$as_me: failed program was:" >&5 | |
5461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5462 | ||
5463 | ac_header_compiler=no | |
5464 | fi | |
5465 | ||
5466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5467 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5468 | $as_echo "$ac_header_compiler" >&6; } | |
5469 | ||
5470 | # Is the header present? | |
5471 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5472 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5473 | cat >conftest.$ac_ext <<_ACEOF | |
5474 | /* confdefs.h. */ | |
5475 | _ACEOF | |
5476 | cat confdefs.h >>conftest.$ac_ext | |
5477 | cat >>conftest.$ac_ext <<_ACEOF | |
5478 | /* end confdefs.h. */ | |
5479 | #include <$ac_header> | |
5480 | _ACEOF | |
5481 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5482 | case "(($ac_try" in | |
5483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5484 | *) ac_try_echo=$ac_try;; | |
5485 | esac | |
5486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5487 | $as_echo "$ac_try_echo") >&5 | |
5488 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5489 | ac_status=$? | |
5490 | grep -v '^ *+' conftest.er1 >conftest.err | |
5491 | rm -f conftest.er1 | |
5492 | cat conftest.err >&5 | |
5493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5494 | (exit $ac_status); } >/dev/null && { | |
5495 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5496 | test ! -s conftest.err | |
5497 | }; then | |
5498 | ac_header_preproc=yes | |
5499 | else | |
5500 | $as_echo "$as_me: failed program was:" >&5 | |
5501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5502 | ||
5503 | ac_header_preproc=no | |
5504 | fi | |
5505 | ||
5506 | rm -f conftest.err conftest.$ac_ext | |
5507 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5508 | $as_echo "$ac_header_preproc" >&6; } | |
5509 | ||
5510 | # So? What about this header? | |
5511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5512 | yes:no: ) | |
5513 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5514 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5515 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5516 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5517 | ac_header_preproc=yes | |
5518 | ;; | |
5519 | no:yes:* ) | |
5520 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5521 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5522 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5523 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5525 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5527 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5528 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5529 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5530 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5531 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5532 | ||
5533 | ;; | |
5534 | esac | |
5535 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5536 | $as_echo_n "checking for $ac_header... " >&6; } | |
5537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5538 | $as_echo_n "(cached) " >&6 | |
5539 | else | |
5540 | eval "$as_ac_Header=\$ac_header_preproc" | |
5541 | fi | |
5542 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5543 | $as_echo "$as_val"'` | |
5544 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5545 | $as_echo "$ac_res" >&6; } | |
5546 | ||
5547 | fi | |
5548 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5549 | $as_echo "$as_val"'` | |
5550 | if test "x$as_val" = x""yes; then | |
5551 | cat >>confdefs.h <<_ACEOF | |
5552 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5553 | _ACEOF | |
5554 | ||
5555 | else | |
5556 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5557 | $as_echo "$as_me: error: bailing out" >&2;} | |
5558 | { (exit 1); exit 1; }; } | |
5559 | fi | |
5560 | ||
5561 | done | |
5562 | ;; | |
5563 | darwin*) | |
5564 | ||
5565 | ||
5566 | for ac_header in machine/endian.h sys/disk.h | |
5567 | do | |
5568 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5570 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5571 | $as_echo_n "checking for $ac_header... " >&6; } | |
5572 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5573 | $as_echo_n "(cached) " >&6 | |
5574 | fi | |
5575 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5576 | $as_echo "$as_val"'` | |
5577 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5578 | $as_echo "$ac_res" >&6; } | |
5579 | else | |
5580 | # Is the header compilable? | |
5581 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5582 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5583 | cat >conftest.$ac_ext <<_ACEOF | |
5584 | /* confdefs.h. */ | |
5585 | _ACEOF | |
5586 | cat confdefs.h >>conftest.$ac_ext | |
5587 | cat >>conftest.$ac_ext <<_ACEOF | |
5588 | /* end confdefs.h. */ | |
5589 | $ac_includes_default | |
5590 | #include <$ac_header> | |
5591 | _ACEOF | |
5592 | rm -f conftest.$ac_objext | |
5593 | if { (ac_try="$ac_compile" | |
5594 | case "(($ac_try" in | |
5595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5596 | *) ac_try_echo=$ac_try;; | |
5597 | esac | |
5598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5599 | $as_echo "$ac_try_echo") >&5 | |
5600 | (eval "$ac_compile") 2>conftest.er1 | |
5601 | ac_status=$? | |
5602 | grep -v '^ *+' conftest.er1 >conftest.err | |
5603 | rm -f conftest.er1 | |
5604 | cat conftest.err >&5 | |
5605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5606 | (exit $ac_status); } && { | |
5607 | test -z "$ac_c_werror_flag" || | |
5608 | test ! -s conftest.err | |
5609 | } && test -s conftest.$ac_objext; then | |
5610 | ac_header_compiler=yes | |
5611 | else | |
5612 | $as_echo "$as_me: failed program was:" >&5 | |
5613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5614 | ||
5615 | ac_header_compiler=no | |
5616 | fi | |
5617 | ||
5618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5619 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5620 | $as_echo "$ac_header_compiler" >&6; } | |
5621 | ||
5622 | # Is the header present? | |
5623 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5624 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5625 | cat >conftest.$ac_ext <<_ACEOF | |
5626 | /* confdefs.h. */ | |
5627 | _ACEOF | |
5628 | cat confdefs.h >>conftest.$ac_ext | |
5629 | cat >>conftest.$ac_ext <<_ACEOF | |
5630 | /* end confdefs.h. */ | |
5631 | #include <$ac_header> | |
5632 | _ACEOF | |
5633 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5634 | case "(($ac_try" in | |
5635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5636 | *) ac_try_echo=$ac_try;; | |
5637 | esac | |
5638 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5639 | $as_echo "$ac_try_echo") >&5 | |
5640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5641 | ac_status=$? | |
5642 | grep -v '^ *+' conftest.er1 >conftest.err | |
5643 | rm -f conftest.er1 | |
5644 | cat conftest.err >&5 | |
5645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5646 | (exit $ac_status); } >/dev/null && { | |
5647 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5648 | test ! -s conftest.err | |
5649 | }; then | |
5650 | ac_header_preproc=yes | |
5651 | else | |
5652 | $as_echo "$as_me: failed program was:" >&5 | |
5653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5654 | ||
5655 | ac_header_preproc=no | |
5656 | fi | |
5657 | ||
5658 | rm -f conftest.err conftest.$ac_ext | |
5659 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5660 | $as_echo "$ac_header_preproc" >&6; } | |
5661 | ||
5662 | # So? What about this header? | |
5663 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5664 | yes:no: ) | |
5665 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5666 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5667 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5668 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5669 | ac_header_preproc=yes | |
5670 | ;; | |
5671 | no:yes:* ) | |
5672 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5673 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5674 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5675 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5676 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5677 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5679 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5681 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5683 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5684 | ||
5685 | ;; | |
5686 | esac | |
5687 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5688 | $as_echo_n "checking for $ac_header... " >&6; } | |
5689 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5690 | $as_echo_n "(cached) " >&6 | |
5691 | else | |
5692 | eval "$as_ac_Header=\$ac_header_preproc" | |
5693 | fi | |
5694 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5695 | $as_echo "$as_val"'` | |
5696 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5697 | $as_echo "$ac_res" >&6; } | |
5698 | ||
5699 | fi | |
5700 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5701 | $as_echo "$as_val"'` | |
5702 | if test "x$as_val" = x""yes; then | |
5703 | cat >>confdefs.h <<_ACEOF | |
5704 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5705 | _ACEOF | |
5706 | ||
5707 | else | |
5708 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5709 | $as_echo "$as_me: error: bailing out" >&2;} | |
5710 | { (exit 1); exit 1; }; } | |
5711 | fi | |
5712 | ||
5713 | done | |
5714 | ;; | |
5715 | esac | |
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | ||
5729 | ||
5730 | ||
5731 | ||
5732 | ||
5733 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5734 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5735 | sys/types.h unistd.h | |
5736 | do | |
5737 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5738 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5739 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5740 | $as_echo_n "checking for $ac_header... " >&6; } | |
5741 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5742 | $as_echo_n "(cached) " >&6 | |
5743 | fi | |
5744 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5745 | $as_echo "$as_val"'` | |
5746 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5747 | $as_echo "$ac_res" >&6; } | |
5748 | else | |
5749 | # Is the header compilable? | |
5750 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5751 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5752 | cat >conftest.$ac_ext <<_ACEOF | |
5753 | /* confdefs.h. */ | |
5754 | _ACEOF | |
5755 | cat confdefs.h >>conftest.$ac_ext | |
5756 | cat >>conftest.$ac_ext <<_ACEOF | |
5757 | /* end confdefs.h. */ | |
5758 | $ac_includes_default | |
5759 | #include <$ac_header> | |
5760 | _ACEOF | |
5761 | rm -f conftest.$ac_objext | |
5762 | if { (ac_try="$ac_compile" | |
5763 | case "(($ac_try" in | |
5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5765 | *) ac_try_echo=$ac_try;; | |
5766 | esac | |
5767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5768 | $as_echo "$ac_try_echo") >&5 | |
5769 | (eval "$ac_compile") 2>conftest.er1 | |
5770 | ac_status=$? | |
5771 | grep -v '^ *+' conftest.er1 >conftest.err | |
5772 | rm -f conftest.er1 | |
5773 | cat conftest.err >&5 | |
5774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5775 | (exit $ac_status); } && { | |
5776 | test -z "$ac_c_werror_flag" || | |
5777 | test ! -s conftest.err | |
5778 | } && test -s conftest.$ac_objext; then | |
5779 | ac_header_compiler=yes | |
5780 | else | |
5781 | $as_echo "$as_me: failed program was:" >&5 | |
5782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5783 | ||
5784 | ac_header_compiler=no | |
5785 | fi | |
5786 | ||
5787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5788 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5789 | $as_echo "$ac_header_compiler" >&6; } | |
5790 | ||
5791 | # Is the header present? | |
5792 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5793 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5794 | cat >conftest.$ac_ext <<_ACEOF | |
5795 | /* confdefs.h. */ | |
5796 | _ACEOF | |
5797 | cat confdefs.h >>conftest.$ac_ext | |
5798 | cat >>conftest.$ac_ext <<_ACEOF | |
5799 | /* end confdefs.h. */ | |
5800 | #include <$ac_header> | |
5801 | _ACEOF | |
5802 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5803 | case "(($ac_try" in | |
5804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5805 | *) ac_try_echo=$ac_try;; | |
5806 | esac | |
5807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5808 | $as_echo "$ac_try_echo") >&5 | |
5809 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5810 | ac_status=$? | |
5811 | grep -v '^ *+' conftest.er1 >conftest.err | |
5812 | rm -f conftest.er1 | |
5813 | cat conftest.err >&5 | |
5814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5815 | (exit $ac_status); } >/dev/null && { | |
5816 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5817 | test ! -s conftest.err | |
5818 | }; then | |
5819 | ac_header_preproc=yes | |
5820 | else | |
5821 | $as_echo "$as_me: failed program was:" >&5 | |
5822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5823 | ||
5824 | ac_header_preproc=no | |
5825 | fi | |
5826 | ||
5827 | rm -f conftest.err conftest.$ac_ext | |
5828 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5829 | $as_echo "$ac_header_preproc" >&6; } | |
5830 | ||
5831 | # So? What about this header? | |
5832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5833 | yes:no: ) | |
5834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5835 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5837 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5838 | ac_header_preproc=yes | |
5839 | ;; | |
5840 | no:yes:* ) | |
5841 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5842 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5843 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5844 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5846 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5848 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5850 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5851 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5852 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5853 | ||
5854 | ;; | |
5855 | esac | |
5856 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5857 | $as_echo_n "checking for $ac_header... " >&6; } | |
5858 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5859 | $as_echo_n "(cached) " >&6 | |
5860 | else | |
5861 | eval "$as_ac_Header=\$ac_header_preproc" | |
5862 | fi | |
5863 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5864 | $as_echo "$as_val"'` | |
5865 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5866 | $as_echo "$ac_res" >&6; } | |
5867 | ||
5868 | fi | |
5869 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5870 | $as_echo "$as_val"'` | |
5871 | if test "x$as_val" = x""yes; then | |
5872 | cat >>confdefs.h <<_ACEOF | |
5873 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5874 | _ACEOF | |
5875 | ||
5876 | else | |
5877 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5878 | $as_echo "$as_me: error: bailing out" >&2;} | |
5879 | { (exit 1); exit 1; }; } | |
5880 | fi | |
5881 | ||
5882 | done | |
5883 | ||
5884 | ||
5885 | ||
5886 | for ac_header in termios.h sys/statvfs.h | |
5887 | do | |
5888 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5890 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5891 | $as_echo_n "checking for $ac_header... " >&6; } | |
5892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5893 | $as_echo_n "(cached) " >&6 | |
5894 | fi | |
5895 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5896 | $as_echo "$as_val"'` | |
5897 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5898 | $as_echo "$ac_res" >&6; } | |
5899 | else | |
5900 | # Is the header compilable? | |
5901 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5902 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5903 | cat >conftest.$ac_ext <<_ACEOF | |
5904 | /* confdefs.h. */ | |
5905 | _ACEOF | |
5906 | cat confdefs.h >>conftest.$ac_ext | |
5907 | cat >>conftest.$ac_ext <<_ACEOF | |
5908 | /* end confdefs.h. */ | |
5909 | $ac_includes_default | |
5910 | #include <$ac_header> | |
5911 | _ACEOF | |
5912 | rm -f conftest.$ac_objext | |
5913 | if { (ac_try="$ac_compile" | |
5914 | case "(($ac_try" in | |
5915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5916 | *) ac_try_echo=$ac_try;; | |
5917 | esac | |
5918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5919 | $as_echo "$ac_try_echo") >&5 | |
5920 | (eval "$ac_compile") 2>conftest.er1 | |
5921 | ac_status=$? | |
5922 | grep -v '^ *+' conftest.er1 >conftest.err | |
5923 | rm -f conftest.er1 | |
5924 | cat conftest.err >&5 | |
5925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5926 | (exit $ac_status); } && { | |
5927 | test -z "$ac_c_werror_flag" || | |
5928 | test ! -s conftest.err | |
5929 | } && test -s conftest.$ac_objext; then | |
5930 | ac_header_compiler=yes | |
5931 | else | |
5932 | $as_echo "$as_me: failed program was:" >&5 | |
5933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5934 | ||
5935 | ac_header_compiler=no | |
5936 | fi | |
5937 | ||
5938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5939 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5940 | $as_echo "$ac_header_compiler" >&6; } | |
5941 | ||
5942 | # Is the header present? | |
5943 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5944 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5945 | cat >conftest.$ac_ext <<_ACEOF | |
5946 | /* confdefs.h. */ | |
5947 | _ACEOF | |
5948 | cat confdefs.h >>conftest.$ac_ext | |
5949 | cat >>conftest.$ac_ext <<_ACEOF | |
5950 | /* end confdefs.h. */ | |
5951 | #include <$ac_header> | |
5952 | _ACEOF | |
5953 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5954 | case "(($ac_try" in | |
5955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5956 | *) ac_try_echo=$ac_try;; | |
5957 | esac | |
5958 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5959 | $as_echo "$ac_try_echo") >&5 | |
5960 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5961 | ac_status=$? | |
5962 | grep -v '^ *+' conftest.er1 >conftest.err | |
5963 | rm -f conftest.er1 | |
5964 | cat conftest.err >&5 | |
5965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5966 | (exit $ac_status); } >/dev/null && { | |
5967 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5968 | test ! -s conftest.err | |
5969 | }; then | |
5970 | ac_header_preproc=yes | |
5971 | else | |
5972 | $as_echo "$as_me: failed program was:" >&5 | |
5973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5974 | ||
5975 | ac_header_preproc=no | |
5976 | fi | |
5977 | ||
5978 | rm -f conftest.err conftest.$ac_ext | |
5979 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5980 | $as_echo "$ac_header_preproc" >&6; } | |
5981 | ||
5982 | # So? What about this header? | |
5983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5984 | yes:no: ) | |
5985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5986 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5988 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5989 | ac_header_preproc=yes | |
5990 | ;; | |
5991 | no:yes:* ) | |
5992 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5993 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5994 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5995 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5996 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5997 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5998 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5999 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6001 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6003 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6004 | ||
6005 | ;; | |
6006 | esac | |
6007 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6008 | $as_echo_n "checking for $ac_header... " >&6; } | |
6009 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6010 | $as_echo_n "(cached) " >&6 | |
6011 | else | |
6012 | eval "$as_ac_Header=\$ac_header_preproc" | |
6013 | fi | |
6014 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6015 | $as_echo "$as_val"'` | |
6016 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6017 | $as_echo "$ac_res" >&6; } | |
6018 | ||
6019 | fi | |
6020 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6021 | $as_echo "$as_val"'` | |
6022 | if test "x$as_val" = x""yes; then | |
6023 | cat >>confdefs.h <<_ACEOF | |
6024 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6025 | _ACEOF | |
6026 | ||
6027 | fi | |
6028 | ||
6029 | done | |
6030 | ||
6031 | ||
6032 | ################################################################################ | |
6033 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6034 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6035 | if test "${ac_cv_c_const+set}" = set; then | |
6036 | $as_echo_n "(cached) " >&6 | |
6037 | else | |
6038 | cat >conftest.$ac_ext <<_ACEOF | |
6039 | /* confdefs.h. */ | |
6040 | _ACEOF | |
6041 | cat confdefs.h >>conftest.$ac_ext | |
6042 | cat >>conftest.$ac_ext <<_ACEOF | |
6043 | /* end confdefs.h. */ | |
6044 | ||
6045 | int | |
6046 | main () | |
6047 | { | |
6048 | /* FIXME: Include the comments suggested by Paul. */ | |
6049 | #ifndef __cplusplus | |
6050 | /* Ultrix mips cc rejects this. */ | |
6051 | typedef int charset[2]; | |
6052 | const charset cs; | |
6053 | /* SunOS 4.1.1 cc rejects this. */ | |
6054 | char const *const *pcpcc; | |
6055 | char **ppc; | |
6056 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6057 | struct point {int x, y;}; | |
6058 | static struct point const zero = {0,0}; | |
6059 | /* AIX XL C 1.02.0.0 rejects this. | |
6060 | It does not let you subtract one const X* pointer from another in | |
6061 | an arm of an if-expression whose if-part is not a constant | |
6062 | expression */ | |
6063 | const char *g = "string"; | |
6064 | pcpcc = &g + (g ? g-g : 0); | |
6065 | /* HPUX 7.0 cc rejects these. */ | |
6066 | ++pcpcc; | |
6067 | ppc = (char**) pcpcc; | |
6068 | pcpcc = (char const *const *) ppc; | |
6069 | { /* SCO 3.2v4 cc rejects this. */ | |
6070 | char *t; | |
6071 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6072 | ||
6073 | *t++ = 0; | |
6074 | if (s) return 0; | |
6075 | } | |
6076 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6077 | int x[] = {25, 17}; | |
6078 | const int *foo = &x[0]; | |
6079 | ++foo; | |
6080 | } | |
6081 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6082 | typedef const int *iptr; | |
6083 | iptr p = 0; | |
6084 | ++p; | |
6085 | } | |
6086 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6087 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6088 | struct s { int j; const int *ap[3]; }; | |
6089 | struct s *b; b->j = 5; | |
6090 | } | |
6091 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6092 | const int foo = 10; | |
6093 | if (!foo) return 0; | |
6094 | } | |
6095 | return !cs[0] && !zero.x; | |
6096 | #endif | |
6097 | ||
6098 | ; | |
6099 | return 0; | |
6100 | } | |
6101 | _ACEOF | |
6102 | rm -f conftest.$ac_objext | |
6103 | if { (ac_try="$ac_compile" | |
6104 | case "(($ac_try" in | |
6105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6106 | *) ac_try_echo=$ac_try;; | |
6107 | esac | |
6108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6109 | $as_echo "$ac_try_echo") >&5 | |
6110 | (eval "$ac_compile") 2>conftest.er1 | |
6111 | ac_status=$? | |
6112 | grep -v '^ *+' conftest.er1 >conftest.err | |
6113 | rm -f conftest.er1 | |
6114 | cat conftest.err >&5 | |
6115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6116 | (exit $ac_status); } && { | |
6117 | test -z "$ac_c_werror_flag" || | |
6118 | test ! -s conftest.err | |
6119 | } && test -s conftest.$ac_objext; then | |
6120 | ac_cv_c_const=yes | |
6121 | else | |
6122 | $as_echo "$as_me: failed program was:" >&5 | |
6123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6124 | ||
6125 | ac_cv_c_const=no | |
6126 | fi | |
6127 | ||
6128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6129 | fi | |
6130 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6131 | $as_echo "$ac_cv_c_const" >&6; } | |
6132 | if test $ac_cv_c_const = no; then | |
6133 | ||
6134 | cat >>confdefs.h <<\_ACEOF | |
6135 | #define const /**/ | |
6136 | _ACEOF | |
6137 | ||
6138 | fi | |
6139 | ||
6140 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6141 | $as_echo_n "checking for inline... " >&6; } | |
6142 | if test "${ac_cv_c_inline+set}" = set; then | |
6143 | $as_echo_n "(cached) " >&6 | |
6144 | else | |
6145 | ac_cv_c_inline=no | |
6146 | for ac_kw in inline __inline__ __inline; do | |
6147 | cat >conftest.$ac_ext <<_ACEOF | |
6148 | /* confdefs.h. */ | |
6149 | _ACEOF | |
6150 | cat confdefs.h >>conftest.$ac_ext | |
6151 | cat >>conftest.$ac_ext <<_ACEOF | |
6152 | /* end confdefs.h. */ | |
6153 | #ifndef __cplusplus | |
6154 | typedef int foo_t; | |
6155 | static $ac_kw foo_t static_foo () {return 0; } | |
6156 | $ac_kw foo_t foo () {return 0; } | |
6157 | #endif | |
6158 | ||
6159 | _ACEOF | |
6160 | rm -f conftest.$ac_objext | |
6161 | if { (ac_try="$ac_compile" | |
6162 | case "(($ac_try" in | |
6163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6164 | *) ac_try_echo=$ac_try;; | |
6165 | esac | |
6166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6167 | $as_echo "$ac_try_echo") >&5 | |
6168 | (eval "$ac_compile") 2>conftest.er1 | |
6169 | ac_status=$? | |
6170 | grep -v '^ *+' conftest.er1 >conftest.err | |
6171 | rm -f conftest.er1 | |
6172 | cat conftest.err >&5 | |
6173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6174 | (exit $ac_status); } && { | |
6175 | test -z "$ac_c_werror_flag" || | |
6176 | test ! -s conftest.err | |
6177 | } && test -s conftest.$ac_objext; then | |
6178 | ac_cv_c_inline=$ac_kw | |
6179 | else | |
6180 | $as_echo "$as_me: failed program was:" >&5 | |
6181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6182 | ||
6183 | ||
6184 | fi | |
6185 | ||
6186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6187 | test "$ac_cv_c_inline" != no && break | |
6188 | done | |
6189 | ||
6190 | fi | |
6191 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6192 | $as_echo "$ac_cv_c_inline" >&6; } | |
6193 | ||
6194 | ||
6195 | case $ac_cv_c_inline in | |
6196 | inline | yes) ;; | |
6197 | *) | |
6198 | case $ac_cv_c_inline in | |
6199 | no) ac_val=;; | |
6200 | *) ac_val=$ac_cv_c_inline;; | |
6201 | esac | |
6202 | cat >>confdefs.h <<_ACEOF | |
6203 | #ifndef __cplusplus | |
6204 | #define inline $ac_val | |
6205 | #endif | |
6206 | _ACEOF | |
6207 | ;; | |
6208 | esac | |
6209 | ||
6210 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6211 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6212 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6213 | $as_echo_n "(cached) " >&6 | |
6214 | else | |
6215 | cat >conftest.$ac_ext <<_ACEOF | |
6216 | /* confdefs.h. */ | |
6217 | _ACEOF | |
6218 | cat confdefs.h >>conftest.$ac_ext | |
6219 | cat >>conftest.$ac_ext <<_ACEOF | |
6220 | /* end confdefs.h. */ | |
6221 | $ac_includes_default | |
6222 | int | |
6223 | main () | |
6224 | { | |
6225 | static struct stat ac_aggr; | |
6226 | if (ac_aggr.st_rdev) | |
6227 | return 0; | |
6228 | ; | |
6229 | return 0; | |
6230 | } | |
6231 | _ACEOF | |
6232 | rm -f conftest.$ac_objext | |
6233 | if { (ac_try="$ac_compile" | |
6234 | case "(($ac_try" in | |
6235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6236 | *) ac_try_echo=$ac_try;; | |
6237 | esac | |
6238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6239 | $as_echo "$ac_try_echo") >&5 | |
6240 | (eval "$ac_compile") 2>conftest.er1 | |
6241 | ac_status=$? | |
6242 | grep -v '^ *+' conftest.er1 >conftest.err | |
6243 | rm -f conftest.er1 | |
6244 | cat conftest.err >&5 | |
6245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6246 | (exit $ac_status); } && { | |
6247 | test -z "$ac_c_werror_flag" || | |
6248 | test ! -s conftest.err | |
6249 | } && test -s conftest.$ac_objext; then | |
6250 | ac_cv_member_struct_stat_st_rdev=yes | |
6251 | else | |
6252 | $as_echo "$as_me: failed program was:" >&5 | |
6253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6254 | ||
6255 | cat >conftest.$ac_ext <<_ACEOF | |
6256 | /* confdefs.h. */ | |
6257 | _ACEOF | |
6258 | cat confdefs.h >>conftest.$ac_ext | |
6259 | cat >>conftest.$ac_ext <<_ACEOF | |
6260 | /* end confdefs.h. */ | |
6261 | $ac_includes_default | |
6262 | int | |
6263 | main () | |
6264 | { | |
6265 | static struct stat ac_aggr; | |
6266 | if (sizeof ac_aggr.st_rdev) | |
6267 | return 0; | |
6268 | ; | |
6269 | return 0; | |
6270 | } | |
6271 | _ACEOF | |
6272 | rm -f conftest.$ac_objext | |
6273 | if { (ac_try="$ac_compile" | |
6274 | case "(($ac_try" in | |
6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6276 | *) ac_try_echo=$ac_try;; | |
6277 | esac | |
6278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6279 | $as_echo "$ac_try_echo") >&5 | |
6280 | (eval "$ac_compile") 2>conftest.er1 | |
6281 | ac_status=$? | |
6282 | grep -v '^ *+' conftest.er1 >conftest.err | |
6283 | rm -f conftest.er1 | |
6284 | cat conftest.err >&5 | |
6285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6286 | (exit $ac_status); } && { | |
6287 | test -z "$ac_c_werror_flag" || | |
6288 | test ! -s conftest.err | |
6289 | } && test -s conftest.$ac_objext; then | |
6290 | ac_cv_member_struct_stat_st_rdev=yes | |
6291 | else | |
6292 | $as_echo "$as_me: failed program was:" >&5 | |
6293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6294 | ||
6295 | ac_cv_member_struct_stat_st_rdev=no | |
6296 | fi | |
6297 | ||
6298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6299 | fi | |
6300 | ||
6301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6302 | fi | |
6303 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6304 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6305 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6306 | ||
6307 | cat >>confdefs.h <<_ACEOF | |
6308 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6309 | _ACEOF | |
6310 | ||
6311 | ||
6312 | fi | |
6313 | ||
6314 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6315 | $as_echo_n "checking for off_t... " >&6; } | |
6316 | if test "${ac_cv_type_off_t+set}" = set; then | |
6317 | $as_echo_n "(cached) " >&6 | |
6318 | else | |
6319 | ac_cv_type_off_t=no | |
6320 | cat >conftest.$ac_ext <<_ACEOF | |
6321 | /* confdefs.h. */ | |
6322 | _ACEOF | |
6323 | cat confdefs.h >>conftest.$ac_ext | |
6324 | cat >>conftest.$ac_ext <<_ACEOF | |
6325 | /* end confdefs.h. */ | |
6326 | $ac_includes_default | |
6327 | int | |
6328 | main () | |
6329 | { | |
6330 | if (sizeof (off_t)) | |
6331 | return 0; | |
6332 | ; | |
6333 | return 0; | |
6334 | } | |
6335 | _ACEOF | |
6336 | rm -f conftest.$ac_objext | |
6337 | if { (ac_try="$ac_compile" | |
6338 | case "(($ac_try" in | |
6339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6340 | *) ac_try_echo=$ac_try;; | |
6341 | esac | |
6342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6343 | $as_echo "$ac_try_echo") >&5 | |
6344 | (eval "$ac_compile") 2>conftest.er1 | |
6345 | ac_status=$? | |
6346 | grep -v '^ *+' conftest.er1 >conftest.err | |
6347 | rm -f conftest.er1 | |
6348 | cat conftest.err >&5 | |
6349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6350 | (exit $ac_status); } && { | |
6351 | test -z "$ac_c_werror_flag" || | |
6352 | test ! -s conftest.err | |
6353 | } && test -s conftest.$ac_objext; then | |
6354 | cat >conftest.$ac_ext <<_ACEOF | |
6355 | /* confdefs.h. */ | |
6356 | _ACEOF | |
6357 | cat confdefs.h >>conftest.$ac_ext | |
6358 | cat >>conftest.$ac_ext <<_ACEOF | |
6359 | /* end confdefs.h. */ | |
6360 | $ac_includes_default | |
6361 | int | |
6362 | main () | |
6363 | { | |
6364 | if (sizeof ((off_t))) | |
6365 | return 0; | |
6366 | ; | |
6367 | return 0; | |
6368 | } | |
6369 | _ACEOF | |
6370 | rm -f conftest.$ac_objext | |
6371 | if { (ac_try="$ac_compile" | |
6372 | case "(($ac_try" in | |
6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6374 | *) ac_try_echo=$ac_try;; | |
6375 | esac | |
6376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6377 | $as_echo "$ac_try_echo") >&5 | |
6378 | (eval "$ac_compile") 2>conftest.er1 | |
6379 | ac_status=$? | |
6380 | grep -v '^ *+' conftest.er1 >conftest.err | |
6381 | rm -f conftest.er1 | |
6382 | cat conftest.err >&5 | |
6383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6384 | (exit $ac_status); } && { | |
6385 | test -z "$ac_c_werror_flag" || | |
6386 | test ! -s conftest.err | |
6387 | } && test -s conftest.$ac_objext; then | |
6388 | : | |
6389 | else | |
6390 | $as_echo "$as_me: failed program was:" >&5 | |
6391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6392 | ||
6393 | ac_cv_type_off_t=yes | |
6394 | fi | |
6395 | ||
6396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6397 | else | |
6398 | $as_echo "$as_me: failed program was:" >&5 | |
6399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6400 | ||
6401 | ||
6402 | fi | |
6403 | ||
6404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6405 | fi | |
6406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6407 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6408 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6409 | : | |
6410 | else | |
6411 | ||
6412 | cat >>confdefs.h <<_ACEOF | |
6413 | #define off_t long int | |
6414 | _ACEOF | |
6415 | ||
6416 | fi | |
6417 | ||
6418 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6419 | $as_echo_n "checking for pid_t... " >&6; } | |
6420 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6421 | $as_echo_n "(cached) " >&6 | |
6422 | else | |
6423 | ac_cv_type_pid_t=no | |
6424 | cat >conftest.$ac_ext <<_ACEOF | |
6425 | /* confdefs.h. */ | |
6426 | _ACEOF | |
6427 | cat confdefs.h >>conftest.$ac_ext | |
6428 | cat >>conftest.$ac_ext <<_ACEOF | |
6429 | /* end confdefs.h. */ | |
6430 | $ac_includes_default | |
6431 | int | |
6432 | main () | |
6433 | { | |
6434 | if (sizeof (pid_t)) | |
6435 | return 0; | |
6436 | ; | |
6437 | return 0; | |
6438 | } | |
6439 | _ACEOF | |
6440 | rm -f conftest.$ac_objext | |
6441 | if { (ac_try="$ac_compile" | |
6442 | case "(($ac_try" in | |
6443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6444 | *) ac_try_echo=$ac_try;; | |
6445 | esac | |
6446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6447 | $as_echo "$ac_try_echo") >&5 | |
6448 | (eval "$ac_compile") 2>conftest.er1 | |
6449 | ac_status=$? | |
6450 | grep -v '^ *+' conftest.er1 >conftest.err | |
6451 | rm -f conftest.er1 | |
6452 | cat conftest.err >&5 | |
6453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6454 | (exit $ac_status); } && { | |
6455 | test -z "$ac_c_werror_flag" || | |
6456 | test ! -s conftest.err | |
6457 | } && test -s conftest.$ac_objext; then | |
6458 | cat >conftest.$ac_ext <<_ACEOF | |
6459 | /* confdefs.h. */ | |
6460 | _ACEOF | |
6461 | cat confdefs.h >>conftest.$ac_ext | |
6462 | cat >>conftest.$ac_ext <<_ACEOF | |
6463 | /* end confdefs.h. */ | |
6464 | $ac_includes_default | |
6465 | int | |
6466 | main () | |
6467 | { | |
6468 | if (sizeof ((pid_t))) | |
6469 | return 0; | |
6470 | ; | |
6471 | return 0; | |
6472 | } | |
6473 | _ACEOF | |
6474 | rm -f conftest.$ac_objext | |
6475 | if { (ac_try="$ac_compile" | |
6476 | case "(($ac_try" in | |
6477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6478 | *) ac_try_echo=$ac_try;; | |
6479 | esac | |
6480 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6481 | $as_echo "$ac_try_echo") >&5 | |
6482 | (eval "$ac_compile") 2>conftest.er1 | |
6483 | ac_status=$? | |
6484 | grep -v '^ *+' conftest.er1 >conftest.err | |
6485 | rm -f conftest.er1 | |
6486 | cat conftest.err >&5 | |
6487 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6488 | (exit $ac_status); } && { | |
6489 | test -z "$ac_c_werror_flag" || | |
6490 | test ! -s conftest.err | |
6491 | } && test -s conftest.$ac_objext; then | |
6492 | : | |
6493 | else | |
6494 | $as_echo "$as_me: failed program was:" >&5 | |
6495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6496 | ||
6497 | ac_cv_type_pid_t=yes | |
6498 | fi | |
6499 | ||
6500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6501 | else | |
6502 | $as_echo "$as_me: failed program was:" >&5 | |
6503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6504 | ||
6505 | ||
6506 | fi | |
6507 | ||
6508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6509 | fi | |
6510 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6511 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6512 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6513 | : | |
6514 | else | |
6515 | ||
6516 | cat >>confdefs.h <<_ACEOF | |
6517 | #define pid_t int | |
6518 | _ACEOF | |
6519 | ||
6520 | fi | |
6521 | ||
6522 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6523 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6524 | if test "${ac_cv_type_signal+set}" = set; then | |
6525 | $as_echo_n "(cached) " >&6 | |
6526 | else | |
6527 | cat >conftest.$ac_ext <<_ACEOF | |
6528 | /* confdefs.h. */ | |
6529 | _ACEOF | |
6530 | cat confdefs.h >>conftest.$ac_ext | |
6531 | cat >>conftest.$ac_ext <<_ACEOF | |
6532 | /* end confdefs.h. */ | |
6533 | #include <sys/types.h> | |
6534 | #include <signal.h> | |
6535 | ||
6536 | int | |
6537 | main () | |
6538 | { | |
6539 | return *(signal (0, 0)) (0) == 1; | |
6540 | ; | |
6541 | return 0; | |
6542 | } | |
6543 | _ACEOF | |
6544 | rm -f conftest.$ac_objext | |
6545 | if { (ac_try="$ac_compile" | |
6546 | case "(($ac_try" in | |
6547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6548 | *) ac_try_echo=$ac_try;; | |
6549 | esac | |
6550 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6551 | $as_echo "$ac_try_echo") >&5 | |
6552 | (eval "$ac_compile") 2>conftest.er1 | |
6553 | ac_status=$? | |
6554 | grep -v '^ *+' conftest.er1 >conftest.err | |
6555 | rm -f conftest.er1 | |
6556 | cat conftest.err >&5 | |
6557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6558 | (exit $ac_status); } && { | |
6559 | test -z "$ac_c_werror_flag" || | |
6560 | test ! -s conftest.err | |
6561 | } && test -s conftest.$ac_objext; then | |
6562 | ac_cv_type_signal=int | |
6563 | else | |
6564 | $as_echo "$as_me: failed program was:" >&5 | |
6565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6566 | ||
6567 | ac_cv_type_signal=void | |
6568 | fi | |
6569 | ||
6570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6571 | fi | |
6572 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6573 | $as_echo "$ac_cv_type_signal" >&6; } | |
6574 | ||
6575 | cat >>confdefs.h <<_ACEOF | |
6576 | #define RETSIGTYPE $ac_cv_type_signal | |
6577 | _ACEOF | |
6578 | ||
6579 | ||
6580 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6581 | $as_echo_n "checking for size_t... " >&6; } | |
6582 | if test "${ac_cv_type_size_t+set}" = set; then | |
6583 | $as_echo_n "(cached) " >&6 | |
6584 | else | |
6585 | ac_cv_type_size_t=no | |
6586 | cat >conftest.$ac_ext <<_ACEOF | |
6587 | /* confdefs.h. */ | |
6588 | _ACEOF | |
6589 | cat confdefs.h >>conftest.$ac_ext | |
6590 | cat >>conftest.$ac_ext <<_ACEOF | |
6591 | /* end confdefs.h. */ | |
6592 | $ac_includes_default | |
6593 | int | |
6594 | main () | |
6595 | { | |
6596 | if (sizeof (size_t)) | |
6597 | return 0; | |
6598 | ; | |
6599 | return 0; | |
6600 | } | |
6601 | _ACEOF | |
6602 | rm -f conftest.$ac_objext | |
6603 | if { (ac_try="$ac_compile" | |
6604 | case "(($ac_try" in | |
6605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6606 | *) ac_try_echo=$ac_try;; | |
6607 | esac | |
6608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6609 | $as_echo "$ac_try_echo") >&5 | |
6610 | (eval "$ac_compile") 2>conftest.er1 | |
6611 | ac_status=$? | |
6612 | grep -v '^ *+' conftest.er1 >conftest.err | |
6613 | rm -f conftest.er1 | |
6614 | cat conftest.err >&5 | |
6615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6616 | (exit $ac_status); } && { | |
6617 | test -z "$ac_c_werror_flag" || | |
6618 | test ! -s conftest.err | |
6619 | } && test -s conftest.$ac_objext; then | |
6620 | cat >conftest.$ac_ext <<_ACEOF | |
6621 | /* confdefs.h. */ | |
6622 | _ACEOF | |
6623 | cat confdefs.h >>conftest.$ac_ext | |
6624 | cat >>conftest.$ac_ext <<_ACEOF | |
6625 | /* end confdefs.h. */ | |
6626 | $ac_includes_default | |
6627 | int | |
6628 | main () | |
6629 | { | |
6630 | if (sizeof ((size_t))) | |
6631 | return 0; | |
6632 | ; | |
6633 | return 0; | |
6634 | } | |
6635 | _ACEOF | |
6636 | rm -f conftest.$ac_objext | |
6637 | if { (ac_try="$ac_compile" | |
6638 | case "(($ac_try" in | |
6639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6640 | *) ac_try_echo=$ac_try;; | |
6641 | esac | |
6642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6643 | $as_echo "$ac_try_echo") >&5 | |
6644 | (eval "$ac_compile") 2>conftest.er1 | |
6645 | ac_status=$? | |
6646 | grep -v '^ *+' conftest.er1 >conftest.err | |
6647 | rm -f conftest.er1 | |
6648 | cat conftest.err >&5 | |
6649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6650 | (exit $ac_status); } && { | |
6651 | test -z "$ac_c_werror_flag" || | |
6652 | test ! -s conftest.err | |
6653 | } && test -s conftest.$ac_objext; then | |
6654 | : | |
ad6254c5 | 6655 | else |
d911ec67 AK |
6656 | $as_echo "$as_me: failed program was:" >&5 |
6657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6658 | |
d911ec67 | 6659 | ac_cv_type_size_t=yes |
ad6254c5 | 6660 | fi |
4922197a | 6661 | |
d911ec67 | 6662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6663 | else |
d911ec67 AK |
6664 | $as_echo "$as_me: failed program was:" >&5 |
6665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6666 | |
6667 | ||
d911ec67 | 6668 | fi |
d0191583 | 6669 | |
d911ec67 AK |
6670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6671 | fi | |
6672 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6673 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6674 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6675 | : | |
6676 | else | |
d0191583 | 6677 | |
d911ec67 AK |
6678 | cat >>confdefs.h <<_ACEOF |
6679 | #define size_t unsigned int | |
6680 | _ACEOF | |
d0191583 | 6681 | |
d911ec67 | 6682 | fi |
d0191583 | 6683 | |
d911ec67 AK |
6684 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6685 | $as_echo_n "checking for mode_t... " >&6; } | |
6686 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6687 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6688 | else |
d911ec67 | 6689 | ac_cv_type_mode_t=no |
ad6254c5 | 6690 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6691 | /* confdefs.h. */ |
6692 | _ACEOF | |
6693 | cat confdefs.h >>conftest.$ac_ext | |
6694 | cat >>conftest.$ac_ext <<_ACEOF | |
6695 | /* end confdefs.h. */ | |
6696 | $ac_includes_default | |
d911ec67 AK |
6697 | int |
6698 | main () | |
6699 | { | |
6700 | if (sizeof (mode_t)) | |
6701 | return 0; | |
6702 | ; | |
6703 | return 0; | |
6704 | } | |
ad6254c5 AK |
6705 | _ACEOF |
6706 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6707 | if { (ac_try="$ac_compile" |
6708 | case "(($ac_try" in | |
6709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6710 | *) ac_try_echo=$ac_try;; | |
6711 | esac | |
ec6a6fbe AK |
6712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6713 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6714 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6715 | ac_status=$? |
8a2fc586 AK |
6716 | grep -v '^ *+' conftest.er1 >conftest.err |
6717 | rm -f conftest.er1 | |
6718 | cat conftest.err >&5 | |
ec6a6fbe | 6719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6720 | (exit $ac_status); } && { |
6721 | test -z "$ac_c_werror_flag" || | |
6722 | test ! -s conftest.err | |
6723 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6724 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6725 | /* confdefs.h. */ |
6726 | _ACEOF | |
6727 | cat confdefs.h >>conftest.$ac_ext | |
6728 | cat >>conftest.$ac_ext <<_ACEOF | |
6729 | /* end confdefs.h. */ | |
d911ec67 AK |
6730 | $ac_includes_default |
6731 | int | |
6732 | main () | |
6733 | { | |
6734 | if (sizeof ((mode_t))) | |
6735 | return 0; | |
6736 | ; | |
6737 | return 0; | |
6738 | } | |
ad6254c5 | 6739 | _ACEOF |
d911ec67 AK |
6740 | rm -f conftest.$ac_objext |
6741 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6742 | case "(($ac_try" in |
6743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6744 | *) ac_try_echo=$ac_try;; | |
6745 | esac | |
ec6a6fbe AK |
6746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6747 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6748 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6749 | ac_status=$? |
6750 | grep -v '^ *+' conftest.er1 >conftest.err | |
6751 | rm -f conftest.er1 | |
6752 | cat conftest.err >&5 | |
ec6a6fbe | 6753 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6754 | (exit $ac_status); } && { |
6755 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6756 | test ! -s conftest.err |
d911ec67 AK |
6757 | } && test -s conftest.$ac_objext; then |
6758 | : | |
ad6254c5 | 6759 | else |
ec6a6fbe | 6760 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6761 | sed 's/^/| /' conftest.$ac_ext >&5 |
6762 | ||
d911ec67 | 6763 | ac_cv_type_mode_t=yes |
ad6254c5 | 6764 | fi |
7a197a62 | 6765 | |
d911ec67 AK |
6766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6767 | else | |
6768 | $as_echo "$as_me: failed program was:" >&5 | |
6769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6770 | |
7a197a62 | 6771 | |
80992638 AK |
6772 | fi |
6773 | ||
d911ec67 | 6774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6775 | fi |
d911ec67 AK |
6776 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6777 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6778 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6779 | : | |
795ca3e5 | 6780 | else |
80992638 | 6781 | |
d911ec67 AK |
6782 | cat >>confdefs.h <<_ACEOF |
6783 | #define mode_t int | |
6784 | _ACEOF | |
ad6254c5 | 6785 | |
d911ec67 | 6786 | fi |
795ca3e5 | 6787 | |
d0191583 | 6788 | |
d911ec67 AK |
6789 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6790 | $as_echo_n "checking for int8_t... " >&6; } | |
6791 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6792 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6793 | else |
d911ec67 AK |
6794 | ac_cv_c_int8_t=no |
6795 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6796 | 'long long int' 'short int' 'signed char'; do | |
6797 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6798 | /* confdefs.h. */ |
6799 | _ACEOF | |
6800 | cat confdefs.h >>conftest.$ac_ext | |
6801 | cat >>conftest.$ac_ext <<_ACEOF | |
6802 | /* end confdefs.h. */ | |
6803 | $ac_includes_default | |
d911ec67 AK |
6804 | int |
6805 | main () | |
6806 | { | |
6807 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6808 | test_array [0] = 0 | |
6809 | ||
6810 | ; | |
6811 | return 0; | |
6812 | } | |
ad6254c5 AK |
6813 | _ACEOF |
6814 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6815 | if { (ac_try="$ac_compile" |
6816 | case "(($ac_try" in | |
6817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6818 | *) ac_try_echo=$ac_try;; | |
6819 | esac | |
ec6a6fbe AK |
6820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6821 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6822 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6823 | ac_status=$? |
8a2fc586 AK |
6824 | grep -v '^ *+' conftest.er1 >conftest.err |
6825 | rm -f conftest.er1 | |
6826 | cat conftest.err >&5 | |
ec6a6fbe | 6827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6828 | (exit $ac_status); } && { |
6829 | test -z "$ac_c_werror_flag" || | |
6830 | test ! -s conftest.err | |
6831 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6832 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6833 | /* confdefs.h. */ |
6834 | _ACEOF | |
6835 | cat confdefs.h >>conftest.$ac_ext | |
6836 | cat >>conftest.$ac_ext <<_ACEOF | |
6837 | /* end confdefs.h. */ | |
d911ec67 AK |
6838 | $ac_includes_default |
6839 | int | |
6840 | main () | |
6841 | { | |
6842 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6843 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6844 | test_array [0] = 0 | |
6845 | ||
6846 | ; | |
6847 | return 0; | |
6848 | } | |
ad6254c5 | 6849 | _ACEOF |
d911ec67 AK |
6850 | rm -f conftest.$ac_objext |
6851 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6852 | case "(($ac_try" in |
6853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6854 | *) ac_try_echo=$ac_try;; | |
6855 | esac | |
ec6a6fbe AK |
6856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6857 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6858 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6859 | ac_status=$? |
6860 | grep -v '^ *+' conftest.er1 >conftest.err | |
6861 | rm -f conftest.er1 | |
6862 | cat conftest.err >&5 | |
ec6a6fbe | 6863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6864 | (exit $ac_status); } && { |
6865 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6866 | test ! -s conftest.err |
d911ec67 AK |
6867 | } && test -s conftest.$ac_objext; then |
6868 | : | |
ad6254c5 | 6869 | else |
ec6a6fbe | 6870 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6871 | sed 's/^/| /' conftest.$ac_ext >&5 |
6872 | ||
d911ec67 AK |
6873 | case $ac_type in |
6874 | int8_t) ac_cv_c_int8_t=yes ;; | |
6875 | *) ac_cv_c_int8_t=$ac_type ;; | |
6876 | esac | |
ad6254c5 | 6877 | |
d911ec67 | 6878 | fi |
7a197a62 | 6879 | |
d911ec67 | 6880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6881 | else |
d911ec67 AK |
6882 | $as_echo "$as_me: failed program was:" >&5 |
6883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6884 | ||
b896caa1 | 6885 | |
ad6254c5 | 6886 | fi |
ad6254c5 | 6887 | |
d911ec67 AK |
6888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6889 | test "$ac_cv_c_int8_t" != no && break | |
6890 | done | |
80992638 | 6891 | fi |
d911ec67 AK |
6892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6893 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6894 | case $ac_cv_c_int8_t in #( | |
6895 | no|yes) ;; #( | |
6896 | *) | |
80992638 | 6897 | |
d911ec67 AK |
6898 | cat >>confdefs.h <<_ACEOF |
6899 | #define int8_t $ac_cv_c_int8_t | |
6900 | _ACEOF | |
6901 | ;; | |
6902 | esac | |
d0191583 | 6903 | |
d3c8211f | 6904 | |
d911ec67 AK |
6905 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6906 | $as_echo_n "checking for int16_t... " >&6; } | |
6907 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6908 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6909 | else |
d911ec67 AK |
6910 | ac_cv_c_int16_t=no |
6911 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6912 | 'long long int' 'short int' 'signed char'; do | |
6913 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6914 | /* confdefs.h. */ |
6915 | _ACEOF | |
6916 | cat confdefs.h >>conftest.$ac_ext | |
6917 | cat >>conftest.$ac_ext <<_ACEOF | |
6918 | /* end confdefs.h. */ | |
d911ec67 | 6919 | $ac_includes_default |
ad6254c5 AK |
6920 | int |
6921 | main () | |
6922 | { | |
d911ec67 AK |
6923 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6924 | test_array [0] = 0 | |
ad6254c5 AK |
6925 | |
6926 | ; | |
6927 | return 0; | |
6928 | } | |
6929 | _ACEOF | |
6930 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6931 | if { (ac_try="$ac_compile" |
6932 | case "(($ac_try" in | |
6933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6934 | *) ac_try_echo=$ac_try;; | |
6935 | esac | |
ec6a6fbe AK |
6936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6937 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6938 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6939 | ac_status=$? |
8a2fc586 AK |
6940 | grep -v '^ *+' conftest.er1 >conftest.err |
6941 | rm -f conftest.er1 | |
6942 | cat conftest.err >&5 | |
ec6a6fbe | 6943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6944 | (exit $ac_status); } && { |
6945 | test -z "$ac_c_werror_flag" || | |
6946 | test ! -s conftest.err | |
6947 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6948 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6949 | /* confdefs.h. */ |
6950 | _ACEOF | |
6951 | cat confdefs.h >>conftest.$ac_ext | |
6952 | cat >>conftest.$ac_ext <<_ACEOF | |
6953 | /* end confdefs.h. */ | |
d911ec67 AK |
6954 | $ac_includes_default |
6955 | int | |
6956 | main () | |
6957 | { | |
6958 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6959 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6960 | test_array [0] = 0 | |
80992638 | 6961 | |
d911ec67 AK |
6962 | ; |
6963 | return 0; | |
6964 | } | |
ad6254c5 AK |
6965 | _ACEOF |
6966 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6967 | if { (ac_try="$ac_compile" |
6968 | case "(($ac_try" in | |
6969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6970 | *) ac_try_echo=$ac_try;; | |
6971 | esac | |
ec6a6fbe AK |
6972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6973 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6974 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6975 | ac_status=$? |
8a2fc586 AK |
6976 | grep -v '^ *+' conftest.er1 >conftest.err |
6977 | rm -f conftest.er1 | |
6978 | cat conftest.err >&5 | |
ec6a6fbe | 6979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6980 | (exit $ac_status); } && { |
6981 | test -z "$ac_c_werror_flag" || | |
6982 | test ! -s conftest.err | |
6983 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6984 | : |
ad6254c5 | 6985 | else |
ec6a6fbe | 6986 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6987 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 6988 | |
d911ec67 AK |
6989 | case $ac_type in |
6990 | int16_t) ac_cv_c_int16_t=yes ;; | |
6991 | *) ac_cv_c_int16_t=$ac_type ;; | |
6992 | esac | |
7a197a62 | 6993 | |
8ce0cbda | 6994 | fi |
7a197a62 AK |
6995 | |
6996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
6997 | else |
6998 | $as_echo "$as_me: failed program was:" >&5 | |
6999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7000 | |
8a2fc586 | 7001 | |
d911ec67 | 7002 | fi |
8a2fc586 | 7003 | |
d911ec67 AK |
7004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7005 | test "$ac_cv_c_int16_t" != no && break | |
7006 | done | |
7007 | fi | |
7008 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7009 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7010 | case $ac_cv_c_int16_t in #( | |
7011 | no|yes) ;; #( | |
8a2fc586 | 7012 | *) |
d911ec67 AK |
7013 | |
7014 | cat >>confdefs.h <<_ACEOF | |
7015 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7016 | _ACEOF |
d911ec67 AK |
7017 | ;; |
7018 | esac | |
d0191583 | 7019 | |
d911ec67 AK |
7020 | |
7021 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7022 | $as_echo_n "checking for int32_t... " >&6; } | |
7023 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7024 | $as_echo_n "(cached) " >&6 |
d0191583 | 7025 | else |
d911ec67 AK |
7026 | ac_cv_c_int32_t=no |
7027 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7028 | 'long long int' 'short int' 'signed char'; do | |
7029 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7030 | /* confdefs.h. */ |
7031 | _ACEOF | |
7032 | cat confdefs.h >>conftest.$ac_ext | |
7033 | cat >>conftest.$ac_ext <<_ACEOF | |
7034 | /* end confdefs.h. */ | |
7035 | $ac_includes_default | |
7036 | int | |
7037 | main () | |
7038 | { | |
d911ec67 AK |
7039 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7040 | test_array [0] = 0 | |
7041 | ||
d0191583 JM |
7042 | ; |
7043 | return 0; | |
7044 | } | |
7045 | _ACEOF | |
7046 | rm -f conftest.$ac_objext | |
7047 | if { (ac_try="$ac_compile" | |
7048 | case "(($ac_try" in | |
7049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7050 | *) ac_try_echo=$ac_try;; | |
7051 | esac | |
ec6a6fbe AK |
7052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7053 | $as_echo "$ac_try_echo") >&5 | |
7054 | (eval "$ac_compile") 2>conftest.er1 | |
7055 | ac_status=$? | |
7056 | grep -v '^ *+' conftest.er1 >conftest.err | |
7057 | rm -f conftest.er1 | |
7058 | cat conftest.err >&5 | |
7059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7060 | (exit $ac_status); } && { | |
7061 | test -z "$ac_c_werror_flag" || | |
7062 | test ! -s conftest.err | |
7063 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7064 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7065 | /* confdefs.h. */ |
7066 | _ACEOF | |
7067 | cat confdefs.h >>conftest.$ac_ext | |
7068 | cat >>conftest.$ac_ext <<_ACEOF | |
7069 | /* end confdefs.h. */ | |
7070 | $ac_includes_default | |
7071 | int | |
7072 | main () | |
7073 | { | |
d911ec67 AK |
7074 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7075 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7076 | test_array [0] = 0 | |
7077 | ||
ec6a6fbe AK |
7078 | ; |
7079 | return 0; | |
7080 | } | |
7081 | _ACEOF | |
7082 | rm -f conftest.$ac_objext | |
7083 | if { (ac_try="$ac_compile" | |
7084 | case "(($ac_try" in | |
7085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7086 | *) ac_try_echo=$ac_try;; | |
7087 | esac | |
7088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7089 | $as_echo "$ac_try_echo") >&5 | |
7090 | (eval "$ac_compile") 2>conftest.er1 | |
7091 | ac_status=$? | |
7092 | grep -v '^ *+' conftest.er1 >conftest.err | |
7093 | rm -f conftest.er1 | |
7094 | cat conftest.err >&5 | |
7095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7096 | (exit $ac_status); } && { | |
7097 | test -z "$ac_c_werror_flag" || | |
7098 | test ! -s conftest.err | |
7099 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7100 | : |
ec6a6fbe AK |
7101 | else |
7102 | $as_echo "$as_me: failed program was:" >&5 | |
7103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7104 | ||
d911ec67 AK |
7105 | case $ac_type in |
7106 | int32_t) ac_cv_c_int32_t=yes ;; | |
7107 | *) ac_cv_c_int32_t=$ac_type ;; | |
7108 | esac | |
7109 | ||
ec6a6fbe AK |
7110 | fi |
7111 | ||
7112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7113 | else |
7114 | $as_echo "$as_me: failed program was:" >&5 | |
7115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7116 | ||
7117 | ||
ec6a6fbe AK |
7118 | fi |
7119 | ||
7120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7121 | test "$ac_cv_c_int32_t" != no && break |
7122 | done | |
ec6a6fbe | 7123 | fi |
d911ec67 AK |
7124 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7125 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7126 | case $ac_cv_c_int32_t in #( | |
7127 | no|yes) ;; #( | |
7128 | *) | |
ec6a6fbe AK |
7129 | |
7130 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7131 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7132 | _ACEOF |
d911ec67 AK |
7133 | ;; |
7134 | esac | |
ec6a6fbe AK |
7135 | |
7136 | ||
d911ec67 AK |
7137 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7138 | $as_echo_n "checking for int64_t... " >&6; } | |
7139 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7140 | $as_echo_n "(cached) " >&6 |
7141 | else | |
d911ec67 AK |
7142 | ac_cv_c_int64_t=no |
7143 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7144 | 'long long int' 'short int' 'signed char'; do | |
7145 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7146 | /* confdefs.h. */ |
7147 | _ACEOF | |
7148 | cat confdefs.h >>conftest.$ac_ext | |
7149 | cat >>conftest.$ac_ext <<_ACEOF | |
7150 | /* end confdefs.h. */ | |
7151 | $ac_includes_default | |
7152 | int | |
7153 | main () | |
7154 | { | |
d911ec67 AK |
7155 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7156 | test_array [0] = 0 | |
7157 | ||
ec6a6fbe AK |
7158 | ; |
7159 | return 0; | |
7160 | } | |
7161 | _ACEOF | |
7162 | rm -f conftest.$ac_objext | |
7163 | if { (ac_try="$ac_compile" | |
7164 | case "(($ac_try" in | |
7165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7166 | *) ac_try_echo=$ac_try;; | |
7167 | esac | |
7168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7169 | $as_echo "$ac_try_echo") >&5 | |
7170 | (eval "$ac_compile") 2>conftest.er1 | |
7171 | ac_status=$? | |
7172 | grep -v '^ *+' conftest.er1 >conftest.err | |
7173 | rm -f conftest.er1 | |
7174 | cat conftest.err >&5 | |
7175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7176 | (exit $ac_status); } && { | |
7177 | test -z "$ac_c_werror_flag" || | |
7178 | test ! -s conftest.err | |
7179 | } && test -s conftest.$ac_objext; then | |
7180 | cat >conftest.$ac_ext <<_ACEOF | |
7181 | /* confdefs.h. */ | |
7182 | _ACEOF | |
7183 | cat confdefs.h >>conftest.$ac_ext | |
7184 | cat >>conftest.$ac_ext <<_ACEOF | |
7185 | /* end confdefs.h. */ | |
7186 | $ac_includes_default | |
7187 | int | |
7188 | main () | |
7189 | { | |
d911ec67 AK |
7190 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7191 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7192 | test_array [0] = 0 | |
7193 | ||
ec6a6fbe AK |
7194 | ; |
7195 | return 0; | |
7196 | } | |
7197 | _ACEOF | |
7198 | rm -f conftest.$ac_objext | |
7199 | if { (ac_try="$ac_compile" | |
7200 | case "(($ac_try" in | |
7201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7202 | *) ac_try_echo=$ac_try;; | |
7203 | esac | |
7204 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7205 | $as_echo "$ac_try_echo") >&5 | |
7206 | (eval "$ac_compile") 2>conftest.er1 | |
7207 | ac_status=$? | |
7208 | grep -v '^ *+' conftest.er1 >conftest.err | |
7209 | rm -f conftest.er1 | |
7210 | cat conftest.err >&5 | |
7211 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7212 | (exit $ac_status); } && { | |
7213 | test -z "$ac_c_werror_flag" || | |
7214 | test ! -s conftest.err | |
7215 | } && test -s conftest.$ac_objext; then | |
7216 | : | |
7217 | else | |
7218 | $as_echo "$as_me: failed program was:" >&5 | |
7219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7220 | ||
d911ec67 AK |
7221 | case $ac_type in |
7222 | int64_t) ac_cv_c_int64_t=yes ;; | |
7223 | *) ac_cv_c_int64_t=$ac_type ;; | |
7224 | esac | |
7225 | ||
ec6a6fbe AK |
7226 | fi |
7227 | ||
7228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7229 | else | |
7230 | $as_echo "$as_me: failed program was:" >&5 | |
7231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7232 | ||
7233 | ||
7234 | fi | |
7235 | ||
7236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7237 | test "$ac_cv_c_int64_t" != no && break |
7238 | done | |
ec6a6fbe | 7239 | fi |
d911ec67 AK |
7240 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7241 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7242 | case $ac_cv_c_int64_t in #( | |
7243 | no|yes) ;; #( | |
7244 | *) | |
ec6a6fbe AK |
7245 | |
7246 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7247 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7248 | _ACEOF |
d911ec67 AK |
7249 | ;; |
7250 | esac | |
ec6a6fbe | 7251 | |
d911ec67 AK |
7252 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7253 | $as_echo_n "checking for ssize_t... " >&6; } | |
7254 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7255 | $as_echo_n "(cached) " >&6 |
7256 | else | |
d911ec67 | 7257 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7258 | cat >conftest.$ac_ext <<_ACEOF |
7259 | /* confdefs.h. */ | |
7260 | _ACEOF | |
7261 | cat confdefs.h >>conftest.$ac_ext | |
7262 | cat >>conftest.$ac_ext <<_ACEOF | |
7263 | /* end confdefs.h. */ | |
7264 | $ac_includes_default | |
7265 | int | |
7266 | main () | |
7267 | { | |
d911ec67 | 7268 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7269 | return 0; |
7270 | ; | |
7271 | return 0; | |
7272 | } | |
7273 | _ACEOF | |
7274 | rm -f conftest.$ac_objext | |
7275 | if { (ac_try="$ac_compile" | |
7276 | case "(($ac_try" in | |
7277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7278 | *) ac_try_echo=$ac_try;; | |
7279 | esac | |
7280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7281 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7282 | (eval "$ac_compile") 2>conftest.er1 |
7283 | ac_status=$? | |
7284 | grep -v '^ *+' conftest.er1 >conftest.err | |
7285 | rm -f conftest.er1 | |
7286 | cat conftest.err >&5 | |
ec6a6fbe | 7287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7288 | (exit $ac_status); } && { |
7289 | test -z "$ac_c_werror_flag" || | |
7290 | test ! -s conftest.err | |
7291 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7292 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7293 | /* confdefs.h. */ |
7294 | _ACEOF | |
7295 | cat confdefs.h >>conftest.$ac_ext | |
7296 | cat >>conftest.$ac_ext <<_ACEOF | |
7297 | /* end confdefs.h. */ | |
7298 | $ac_includes_default | |
7299 | int | |
7300 | main () | |
7301 | { | |
d911ec67 | 7302 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7303 | return 0; |
d0191583 JM |
7304 | ; |
7305 | return 0; | |
7306 | } | |
7307 | _ACEOF | |
7308 | rm -f conftest.$ac_objext | |
7309 | if { (ac_try="$ac_compile" | |
7310 | case "(($ac_try" in | |
7311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7312 | *) ac_try_echo=$ac_try;; | |
7313 | esac | |
ec6a6fbe AK |
7314 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7315 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7316 | (eval "$ac_compile") 2>conftest.er1 |
7317 | ac_status=$? | |
7318 | grep -v '^ *+' conftest.er1 >conftest.err | |
7319 | rm -f conftest.er1 | |
7320 | cat conftest.err >&5 | |
ec6a6fbe | 7321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7322 | (exit $ac_status); } && { |
7323 | test -z "$ac_c_werror_flag" || | |
7324 | test ! -s conftest.err | |
7325 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7326 | : |
d0191583 | 7327 | else |
ec6a6fbe | 7328 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7329 | sed 's/^/| /' conftest.$ac_ext >&5 |
7330 | ||
d911ec67 | 7331 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7332 | fi |
7333 | ||
7334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7335 | else |
7336 | $as_echo "$as_me: failed program was:" >&5 | |
7337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7338 | ||
7339 | ||
d0191583 JM |
7340 | fi |
7341 | ||
7342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7343 | fi | |
d911ec67 AK |
7344 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7345 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7346 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7347 | : |
7348 | else | |
d0191583 JM |
7349 | |
7350 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7351 | #define ssize_t int |
d0191583 JM |
7352 | _ACEOF |
7353 | ||
d0191583 | 7354 | fi |
8ce0cbda | 7355 | |
d911ec67 AK |
7356 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7357 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7358 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7359 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7360 | else |
b145d876 ZK |
7361 | cat >conftest.$ac_ext <<_ACEOF |
7362 | /* confdefs.h. */ | |
7363 | _ACEOF | |
7364 | cat confdefs.h >>conftest.$ac_ext | |
7365 | cat >>conftest.$ac_ext <<_ACEOF | |
7366 | /* end confdefs.h. */ | |
ec6a6fbe | 7367 | #include <sys/types.h> |
ec6a6fbe | 7368 | |
ad6254c5 | 7369 | _ACEOF |
d911ec67 AK |
7370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7371 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7372 | ac_cv_type_uid_t=yes | |
b145d876 | 7373 | else |
d911ec67 | 7374 | ac_cv_type_uid_t=no |
ad6254c5 | 7375 | fi |
d911ec67 | 7376 | rm -f conftest* |
b145d876 | 7377 | |
b145d876 | 7378 | fi |
d911ec67 AK |
7379 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7380 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7381 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7382 | |
d911ec67 AK |
7383 | cat >>confdefs.h <<\_ACEOF |
7384 | #define uid_t int | |
ad6254c5 | 7385 | _ACEOF |
199e490e | 7386 | |
b896caa1 | 7387 | |
d911ec67 AK |
7388 | cat >>confdefs.h <<\_ACEOF |
7389 | #define gid_t int | |
7390 | _ACEOF | |
7391 | ||
7392 | fi | |
7393 | ||
7394 | ||
7395 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7396 | $as_echo_n "checking for uint8_t... " >&6; } | |
7397 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7398 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7399 | else |
d911ec67 AK |
7400 | ac_cv_c_uint8_t=no |
7401 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7402 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7403 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7404 | /* confdefs.h. */ |
7405 | _ACEOF | |
7406 | cat confdefs.h >>conftest.$ac_ext | |
7407 | cat >>conftest.$ac_ext <<_ACEOF | |
7408 | /* end confdefs.h. */ | |
7409 | $ac_includes_default | |
7410 | int | |
7411 | main () | |
7412 | { | |
d911ec67 AK |
7413 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7414 | test_array [0] = 0 | |
7415 | ||
ad6254c5 AK |
7416 | ; |
7417 | return 0; | |
7418 | } | |
7419 | _ACEOF | |
7420 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7421 | if { (ac_try="$ac_compile" |
7422 | case "(($ac_try" in | |
7423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7424 | *) ac_try_echo=$ac_try;; | |
7425 | esac | |
ec6a6fbe AK |
7426 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7427 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7428 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7429 | ac_status=$? |
8a2fc586 AK |
7430 | grep -v '^ *+' conftest.er1 >conftest.err |
7431 | rm -f conftest.er1 | |
7432 | cat conftest.err >&5 | |
ec6a6fbe | 7433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7434 | (exit $ac_status); } && { |
7435 | test -z "$ac_c_werror_flag" || | |
7436 | test ! -s conftest.err | |
7437 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7438 | case $ac_type in |
7439 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7440 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7441 | esac | |
7442 | ||
7443 | else | |
7444 | $as_echo "$as_me: failed program was:" >&5 | |
7445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7446 | ||
7447 | ||
7448 | fi | |
7449 | ||
7450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7451 | test "$ac_cv_c_uint8_t" != no && break | |
7452 | done | |
7453 | fi | |
7454 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7455 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7456 | case $ac_cv_c_uint8_t in #( | |
7457 | no|yes) ;; #( | |
7458 | *) | |
7459 | ||
7460 | cat >>confdefs.h <<\_ACEOF | |
7461 | #define _UINT8_T 1 | |
7462 | _ACEOF | |
7463 | ||
7464 | ||
7465 | cat >>confdefs.h <<_ACEOF | |
7466 | #define uint8_t $ac_cv_c_uint8_t | |
7467 | _ACEOF | |
7468 | ;; | |
7469 | esac | |
7470 | ||
7471 | ||
7472 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7473 | $as_echo_n "checking for uint16_t... " >&6; } | |
7474 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7475 | $as_echo_n "(cached) " >&6 | |
7476 | else | |
7477 | ac_cv_c_uint16_t=no | |
7478 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7479 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7480 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7481 | /* confdefs.h. */ |
7482 | _ACEOF | |
7483 | cat confdefs.h >>conftest.$ac_ext | |
7484 | cat >>conftest.$ac_ext <<_ACEOF | |
7485 | /* end confdefs.h. */ | |
ec6a6fbe | 7486 | $ac_includes_default |
d0191583 JM |
7487 | int |
7488 | main () | |
7489 | { | |
d911ec67 AK |
7490 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7491 | test_array [0] = 0 | |
7492 | ||
d0191583 JM |
7493 | ; |
7494 | return 0; | |
7495 | } | |
7496 | _ACEOF | |
7497 | rm -f conftest.$ac_objext | |
7498 | if { (ac_try="$ac_compile" | |
7499 | case "(($ac_try" in | |
7500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7501 | *) ac_try_echo=$ac_try;; | |
7502 | esac | |
ec6a6fbe AK |
7503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7504 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7505 | (eval "$ac_compile") 2>conftest.er1 |
7506 | ac_status=$? | |
7507 | grep -v '^ *+' conftest.er1 >conftest.err | |
7508 | rm -f conftest.er1 | |
7509 | cat conftest.err >&5 | |
ec6a6fbe | 7510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7511 | (exit $ac_status); } && { |
7512 | test -z "$ac_c_werror_flag" || | |
7513 | test ! -s conftest.err | |
7514 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7515 | case $ac_type in |
7516 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7517 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7518 | esac | |
ec6a6fbe | 7519 | |
ec6a6fbe AK |
7520 | else |
7521 | $as_echo "$as_me: failed program was:" >&5 | |
7522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7523 | ||
7524 | ||
d0191583 JM |
7525 | fi |
7526 | ||
7527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7528 | test "$ac_cv_c_uint16_t" != no && break |
7529 | done | |
d0191583 | 7530 | fi |
d911ec67 AK |
7531 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7532 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7533 | case $ac_cv_c_uint16_t in #( | |
7534 | no|yes) ;; #( | |
7535 | *) | |
7536 | ||
d0191583 JM |
7537 | |
7538 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7539 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7540 | _ACEOF |
d911ec67 AK |
7541 | ;; |
7542 | esac | |
d0191583 JM |
7543 | |
7544 | ||
d911ec67 AK |
7545 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7546 | $as_echo_n "checking for uint32_t... " >&6; } | |
7547 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7548 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7549 | else |
d911ec67 AK |
7550 | ac_cv_c_uint32_t=no |
7551 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7552 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7553 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7554 | /* confdefs.h. */ |
7555 | _ACEOF | |
7556 | cat confdefs.h >>conftest.$ac_ext | |
7557 | cat >>conftest.$ac_ext <<_ACEOF | |
7558 | /* end confdefs.h. */ | |
7559 | $ac_includes_default | |
7560 | int | |
7561 | main () | |
7562 | { | |
d911ec67 AK |
7563 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7564 | test_array [0] = 0 | |
7565 | ||
ad6254c5 AK |
7566 | ; |
7567 | return 0; | |
7568 | } | |
7569 | _ACEOF | |
7570 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7571 | if { (ac_try="$ac_compile" |
7572 | case "(($ac_try" in | |
7573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7574 | *) ac_try_echo=$ac_try;; | |
7575 | esac | |
ec6a6fbe AK |
7576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7577 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7578 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7579 | ac_status=$? |
8a2fc586 AK |
7580 | grep -v '^ *+' conftest.er1 >conftest.err |
7581 | rm -f conftest.er1 | |
7582 | cat conftest.err >&5 | |
ec6a6fbe | 7583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7584 | (exit $ac_status); } && { |
7585 | test -z "$ac_c_werror_flag" || | |
7586 | test ! -s conftest.err | |
7587 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7588 | case $ac_type in |
7589 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7590 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7591 | esac | |
7592 | ||
7593 | else | |
7594 | $as_echo "$as_me: failed program was:" >&5 | |
7595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7596 | ||
7597 | ||
7598 | fi | |
7599 | ||
7600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7601 | test "$ac_cv_c_uint32_t" != no && break | |
7602 | done | |
7603 | fi | |
7604 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7605 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7606 | case $ac_cv_c_uint32_t in #( | |
7607 | no|yes) ;; #( | |
7608 | *) | |
7609 | ||
7610 | cat >>confdefs.h <<\_ACEOF | |
7611 | #define _UINT32_T 1 | |
7612 | _ACEOF | |
7613 | ||
7614 | ||
7615 | cat >>confdefs.h <<_ACEOF | |
7616 | #define uint32_t $ac_cv_c_uint32_t | |
7617 | _ACEOF | |
7618 | ;; | |
7619 | esac | |
7620 | ||
7621 | ||
7622 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7623 | $as_echo_n "checking for uint64_t... " >&6; } | |
7624 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7625 | $as_echo_n "(cached) " >&6 | |
7626 | else | |
7627 | ac_cv_c_uint64_t=no | |
7628 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7629 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7630 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7631 | /* confdefs.h. */ |
7632 | _ACEOF | |
7633 | cat confdefs.h >>conftest.$ac_ext | |
7634 | cat >>conftest.$ac_ext <<_ACEOF | |
7635 | /* end confdefs.h. */ | |
7636 | $ac_includes_default | |
7637 | int | |
7638 | main () | |
7639 | { | |
d911ec67 AK |
7640 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7641 | test_array [0] = 0 | |
7642 | ||
ad6254c5 AK |
7643 | ; |
7644 | return 0; | |
7645 | } | |
7646 | _ACEOF | |
7647 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7648 | if { (ac_try="$ac_compile" |
7649 | case "(($ac_try" in | |
7650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7651 | *) ac_try_echo=$ac_try;; | |
7652 | esac | |
ec6a6fbe AK |
7653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7654 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7655 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7656 | ac_status=$? |
8a2fc586 AK |
7657 | grep -v '^ *+' conftest.er1 >conftest.err |
7658 | rm -f conftest.er1 | |
7659 | cat conftest.err >&5 | |
ec6a6fbe | 7660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7661 | (exit $ac_status); } && { |
7662 | test -z "$ac_c_werror_flag" || | |
7663 | test ! -s conftest.err | |
7664 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7665 | case $ac_type in |
7666 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7667 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7668 | esac | |
ec6a6fbe | 7669 | |
fddafd51 | 7670 | else |
ec6a6fbe | 7671 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7672 | sed 's/^/| /' conftest.$ac_ext >&5 |
7673 | ||
ec6a6fbe | 7674 | |
80992638 | 7675 | fi |
7a197a62 AK |
7676 | |
7677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7678 | test "$ac_cv_c_uint64_t" != no && break |
7679 | done | |
ad6254c5 | 7680 | fi |
d911ec67 AK |
7681 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7682 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7683 | case $ac_cv_c_uint64_t in #( | |
7684 | no|yes) ;; #( | |
7685 | *) | |
80992638 | 7686 | |
d911ec67 AK |
7687 | cat >>confdefs.h <<\_ACEOF |
7688 | #define _UINT64_T 1 | |
ad6254c5 AK |
7689 | _ACEOF |
7690 | ||
d911ec67 AK |
7691 | |
7692 | cat >>confdefs.h <<_ACEOF | |
7693 | #define uint64_t $ac_cv_c_uint64_t | |
7694 | _ACEOF | |
7695 | ;; | |
7696 | esac | |
ad6254c5 | 7697 | |
ec6a6fbe AK |
7698 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7699 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7700 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7701 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7702 | else |
7703 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7704 | /* confdefs.h. */ |
7705 | _ACEOF | |
7706 | cat confdefs.h >>conftest.$ac_ext | |
7707 | cat >>conftest.$ac_ext <<_ACEOF | |
7708 | /* end confdefs.h. */ | |
7709 | $ac_includes_default | |
7710 | int | |
7711 | main () | |
7712 | { | |
7713 | static struct stat ac_aggr; | |
7714 | if (ac_aggr.st_rdev) | |
7715 | return 0; | |
7716 | ; | |
7717 | return 0; | |
7718 | } | |
7719 | _ACEOF | |
7720 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7721 | if { (ac_try="$ac_compile" |
7722 | case "(($ac_try" in | |
7723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7724 | *) ac_try_echo=$ac_try;; | |
7725 | esac | |
ec6a6fbe AK |
7726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7727 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7728 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7729 | ac_status=$? |
8a2fc586 AK |
7730 | grep -v '^ *+' conftest.er1 >conftest.err |
7731 | rm -f conftest.er1 | |
7732 | cat conftest.err >&5 | |
ec6a6fbe | 7733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7734 | (exit $ac_status); } && { |
7735 | test -z "$ac_c_werror_flag" || | |
7736 | test ! -s conftest.err | |
7737 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7738 | ac_cv_member_struct_stat_st_rdev=yes |
7739 | else | |
ec6a6fbe | 7740 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7741 | sed 's/^/| /' conftest.$ac_ext >&5 |
7742 | ||
7a197a62 | 7743 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7744 | /* confdefs.h. */ |
7745 | _ACEOF | |
7746 | cat confdefs.h >>conftest.$ac_ext | |
7747 | cat >>conftest.$ac_ext <<_ACEOF | |
7748 | /* end confdefs.h. */ | |
7749 | $ac_includes_default | |
7750 | int | |
7751 | main () | |
7752 | { | |
7753 | static struct stat ac_aggr; | |
7754 | if (sizeof ac_aggr.st_rdev) | |
7755 | return 0; | |
7756 | ; | |
7757 | return 0; | |
7758 | } | |
7759 | _ACEOF | |
7760 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7761 | if { (ac_try="$ac_compile" |
7762 | case "(($ac_try" in | |
7763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7764 | *) ac_try_echo=$ac_try;; | |
7765 | esac | |
ec6a6fbe AK |
7766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7767 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7768 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7769 | ac_status=$? |
8a2fc586 AK |
7770 | grep -v '^ *+' conftest.er1 >conftest.err |
7771 | rm -f conftest.er1 | |
7772 | cat conftest.err >&5 | |
ec6a6fbe | 7773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7774 | (exit $ac_status); } && { |
7775 | test -z "$ac_c_werror_flag" || | |
7776 | test ! -s conftest.err | |
7777 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7778 | ac_cv_member_struct_stat_st_rdev=yes |
7779 | else | |
ec6a6fbe | 7780 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7781 | sed 's/^/| /' conftest.$ac_ext >&5 |
7782 | ||
7a197a62 | 7783 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7784 | fi |
7a197a62 AK |
7785 | |
7786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7787 | fi |
7a197a62 AK |
7788 | |
7789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7790 | fi |
ec6a6fbe AK |
7791 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7792 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7793 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7794 | |
7795 | cat >>confdefs.h <<_ACEOF | |
7796 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7797 | _ACEOF | |
7798 | ||
7799 | ||
ad6254c5 AK |
7800 | fi |
7801 | ||
ec6a6fbe AK |
7802 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7803 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7804 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7805 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7806 | else |
7807 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7808 | /* confdefs.h. */ |
7809 | _ACEOF | |
7810 | cat confdefs.h >>conftest.$ac_ext | |
7811 | cat >>conftest.$ac_ext <<_ACEOF | |
7812 | /* end confdefs.h. */ | |
7813 | #include <sys/types.h> | |
7814 | #include <time.h> | |
7815 | ||
7816 | int | |
7817 | main () | |
7818 | { | |
25fbec5b AK |
7819 | struct tm tm; |
7820 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7821 | return !p; |
ad6254c5 AK |
7822 | ; |
7823 | return 0; | |
7824 | } | |
7825 | _ACEOF | |
7826 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7827 | if { (ac_try="$ac_compile" |
7828 | case "(($ac_try" in | |
7829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7830 | *) ac_try_echo=$ac_try;; | |
7831 | esac | |
ec6a6fbe AK |
7832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7833 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7834 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7835 | ac_status=$? |
8a2fc586 AK |
7836 | grep -v '^ *+' conftest.er1 >conftest.err |
7837 | rm -f conftest.er1 | |
7838 | cat conftest.err >&5 | |
ec6a6fbe | 7839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7840 | (exit $ac_status); } && { |
7841 | test -z "$ac_c_werror_flag" || | |
7842 | test ! -s conftest.err | |
d911ec67 AK |
7843 | } && test -s conftest.$ac_objext; then |
7844 | ac_cv_struct_tm=time.h | |
7845 | else | |
7846 | $as_echo "$as_me: failed program was:" >&5 | |
7847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7848 | ||
7849 | ac_cv_struct_tm=sys/time.h | |
7850 | fi | |
7851 | ||
7852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7853 | fi | |
7854 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7855 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7856 | if test $ac_cv_struct_tm = sys/time.h; then | |
7857 | ||
7858 | cat >>confdefs.h <<\_ACEOF | |
7859 | #define TM_IN_SYS_TIME 1 | |
7860 | _ACEOF | |
7861 | ||
7862 | fi | |
7863 | ||
7864 | ||
7865 | ################################################################################ | |
7866 | { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5 | |
7867 | $as_echo_n "checking for library containing floor... " >&6; } | |
7868 | if test "${ac_cv_search_floor+set}" = set; then | |
7869 | $as_echo_n "(cached) " >&6 | |
7870 | else | |
7871 | ac_func_search_save_LIBS=$LIBS | |
7872 | cat >conftest.$ac_ext <<_ACEOF | |
7873 | /* confdefs.h. */ | |
7874 | _ACEOF | |
7875 | cat confdefs.h >>conftest.$ac_ext | |
7876 | cat >>conftest.$ac_ext <<_ACEOF | |
7877 | /* end confdefs.h. */ | |
7878 | ||
7879 | /* Override any GCC internal prototype to avoid an error. | |
7880 | Use char because int might match the return type of a GCC | |
7881 | builtin and then its argument prototype would still apply. */ | |
7882 | #ifdef __cplusplus | |
7883 | extern "C" | |
7884 | #endif | |
7885 | char floor (); | |
7886 | int | |
7887 | main () | |
7888 | { | |
7889 | return floor (); | |
7890 | ; | |
7891 | return 0; | |
7892 | } | |
7893 | _ACEOF | |
7894 | for ac_lib in '' m; do | |
7895 | if test -z "$ac_lib"; then | |
7896 | ac_res="none required" | |
7897 | else | |
7898 | ac_res=-l$ac_lib | |
7899 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7900 | fi | |
7901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7902 | if { (ac_try="$ac_link" | |
7903 | case "(($ac_try" in | |
7904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7905 | *) ac_try_echo=$ac_try;; | |
7906 | esac | |
7907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7908 | $as_echo "$ac_try_echo") >&5 | |
7909 | (eval "$ac_link") 2>conftest.er1 | |
7910 | ac_status=$? | |
7911 | grep -v '^ *+' conftest.er1 >conftest.err | |
7912 | rm -f conftest.er1 | |
7913 | cat conftest.err >&5 | |
7914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7915 | (exit $ac_status); } && { | |
7916 | test -z "$ac_c_werror_flag" || | |
7917 | test ! -s conftest.err | |
7918 | } && test -s conftest$ac_exeext && { | |
7919 | test "$cross_compiling" = yes || | |
7920 | $as_test_x conftest$ac_exeext | |
7921 | }; then | |
7922 | ac_cv_search_floor=$ac_res | |
ad6254c5 | 7923 | else |
ec6a6fbe | 7924 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7925 | sed 's/^/| /' conftest.$ac_ext >&5 |
7926 | ||
7a197a62 | 7927 | |
ad6254c5 | 7928 | fi |
ad6254c5 | 7929 | |
d911ec67 AK |
7930 | rm -rf conftest.dSYM |
7931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7932 | conftest$ac_exeext | |
7933 | if test "${ac_cv_search_floor+set}" = set; then | |
7934 | break | |
7935 | fi | |
7936 | done | |
7937 | if test "${ac_cv_search_floor+set}" = set; then | |
7938 | : | |
7939 | else | |
7940 | ac_cv_search_floor=no | |
7941 | fi | |
7942 | rm conftest.$ac_ext | |
7943 | LIBS=$ac_func_search_save_LIBS | |
7944 | fi | |
7945 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5 | |
7946 | $as_echo "$ac_cv_search_floor" >&6; } | |
7947 | ac_res=$ac_cv_search_floor | |
7948 | if test "$ac_res" != no; then | |
7949 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 | 7950 | |
d911ec67 AK |
7951 | else |
7952 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
7953 | $as_echo "$as_me: error: bailing out" >&2;} | |
7954 | { (exit 1); exit 1; }; } | |
ad6254c5 | 7955 | fi |
809fae91 | 7956 | |
795ca3e5 | 7957 | |
ad6254c5 AK |
7958 | |
7959 | ||
7960 | ||
7961 | ||
7962 | ||
7963 | ||
7964 | ||
7965 | ||
7966 | ||
7967 | ||
7968 | ||
7969 | ||
7970 | ||
7971 | ||
d0191583 JM |
7972 | |
7973 | ||
7974 | ||
d911ec67 AK |
7975 | |
7976 | ||
7977 | ||
7978 | ||
7979 | ||
7980 | ||
7981 | ||
7982 | for ac_func in floor ftruncate gethostname getpagesize \ | |
7983 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
7984 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
7985 | strstr strtol strtoul uname | |
ad6254c5 | 7986 | do |
ec6a6fbe AK |
7987 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7988 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7989 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7990 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7991 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7992 | else |
ad6254c5 | 7993 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7994 | /* confdefs.h. */ |
7995 | _ACEOF | |
7996 | cat confdefs.h >>conftest.$ac_ext | |
7997 | cat >>conftest.$ac_ext <<_ACEOF | |
7998 | /* end confdefs.h. */ | |
8a2fc586 AK |
7999 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8001 | #define $ac_func innocuous_$ac_func | |
8002 | ||
ad6254c5 AK |
8003 | /* System header to define __stub macros and hopefully few prototypes, |
8004 | which can conflict with char $ac_func (); below. | |
8005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8006 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8007 | |
ad6254c5 AK |
8008 | #ifdef __STDC__ |
8009 | # include <limits.h> | |
8010 | #else | |
8011 | # include <assert.h> | |
8012 | #endif | |
8a2fc586 AK |
8013 | |
8014 | #undef $ac_func | |
8015 | ||
7a197a62 AK |
8016 | /* Override any GCC internal prototype to avoid an error. |
8017 | Use char because int might match the return type of a GCC | |
8018 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8019 | #ifdef __cplusplus |
8020 | extern "C" | |
ad6254c5 | 8021 | #endif |
ad6254c5 AK |
8022 | char $ac_func (); |
8023 | /* The GNU C library defines this for functions which it implements | |
8024 | to always fail with ENOSYS. Some functions are actually named | |
8025 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8026 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8027 | choke me |
ad6254c5 AK |
8028 | #endif |
8029 | ||
8030 | int | |
8031 | main () | |
8032 | { | |
7a197a62 | 8033 | return $ac_func (); |
ad6254c5 AK |
8034 | ; |
8035 | return 0; | |
8036 | } | |
8037 | _ACEOF | |
8038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8039 | if { (ac_try="$ac_link" |
8040 | case "(($ac_try" in | |
8041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8042 | *) ac_try_echo=$ac_try;; | |
8043 | esac | |
ec6a6fbe AK |
8044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8045 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8046 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8047 | ac_status=$? |
8a2fc586 AK |
8048 | grep -v '^ *+' conftest.er1 >conftest.err |
8049 | rm -f conftest.er1 | |
8050 | cat conftest.err >&5 | |
ec6a6fbe | 8051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8052 | (exit $ac_status); } && { |
8053 | test -z "$ac_c_werror_flag" || | |
8054 | test ! -s conftest.err | |
ec6a6fbe AK |
8055 | } && test -s conftest$ac_exeext && { |
8056 | test "$cross_compiling" = yes || | |
8057 | $as_test_x conftest$ac_exeext | |
8058 | }; then | |
fc54be10 AK |
8059 | eval "$as_ac_var=yes" |
8060 | else | |
ec6a6fbe | 8061 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8062 | sed 's/^/| /' conftest.$ac_ext >&5 |
8063 | ||
8064 | eval "$as_ac_var=no" | |
8065 | fi | |
8066 | ||
ec6a6fbe | 8067 | rm -rf conftest.dSYM |
25fbec5b | 8068 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8069 | conftest$ac_exeext conftest.$ac_ext |
8070 | fi | |
ec6a6fbe AK |
8071 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8072 | $as_echo "$as_val"'` | |
8073 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8074 | $as_echo "$ac_res" >&6; } | |
8075 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8076 | $as_echo "$as_val"'` | |
8077 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8078 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8079 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8080 | _ACEOF |
8081 | ||
8082 | else | |
ec6a6fbe AK |
8083 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8084 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8085 | { (exit 1); exit 1; }; } |
8086 | fi | |
8087 | done | |
795ca3e5 | 8088 | |
a0f9708e AK |
8089 | |
8090 | for ac_func in siginterrupt | |
8091 | do | |
8092 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8093 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8094 | $as_echo_n "checking for $ac_func... " >&6; } | |
8095 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8096 | $as_echo_n "(cached) " >&6 | |
8097 | else | |
8098 | cat >conftest.$ac_ext <<_ACEOF | |
8099 | /* confdefs.h. */ | |
8100 | _ACEOF | |
8101 | cat confdefs.h >>conftest.$ac_ext | |
8102 | cat >>conftest.$ac_ext <<_ACEOF | |
8103 | /* end confdefs.h. */ | |
8104 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8105 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8106 | #define $ac_func innocuous_$ac_func | |
8107 | ||
8108 | /* System header to define __stub macros and hopefully few prototypes, | |
8109 | which can conflict with char $ac_func (); below. | |
8110 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8111 | <limits.h> exists even on freestanding compilers. */ | |
8112 | ||
8113 | #ifdef __STDC__ | |
8114 | # include <limits.h> | |
8115 | #else | |
8116 | # include <assert.h> | |
8117 | #endif | |
8118 | ||
8119 | #undef $ac_func | |
8120 | ||
8121 | /* Override any GCC internal prototype to avoid an error. | |
8122 | Use char because int might match the return type of a GCC | |
8123 | builtin and then its argument prototype would still apply. */ | |
8124 | #ifdef __cplusplus | |
8125 | extern "C" | |
8126 | #endif | |
8127 | char $ac_func (); | |
8128 | /* The GNU C library defines this for functions which it implements | |
8129 | to always fail with ENOSYS. Some functions are actually named | |
8130 | something starting with __ and the normal name is an alias. */ | |
8131 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8132 | choke me | |
8133 | #endif | |
8134 | ||
8135 | int | |
8136 | main () | |
8137 | { | |
8138 | return $ac_func (); | |
8139 | ; | |
8140 | return 0; | |
8141 | } | |
8142 | _ACEOF | |
8143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8144 | if { (ac_try="$ac_link" | |
8145 | case "(($ac_try" in | |
8146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8147 | *) ac_try_echo=$ac_try;; | |
8148 | esac | |
8149 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8150 | $as_echo "$ac_try_echo") >&5 | |
8151 | (eval "$ac_link") 2>conftest.er1 | |
8152 | ac_status=$? | |
8153 | grep -v '^ *+' conftest.er1 >conftest.err | |
8154 | rm -f conftest.er1 | |
8155 | cat conftest.err >&5 | |
8156 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8157 | (exit $ac_status); } && { | |
8158 | test -z "$ac_c_werror_flag" || | |
8159 | test ! -s conftest.err | |
8160 | } && test -s conftest$ac_exeext && { | |
8161 | test "$cross_compiling" = yes || | |
8162 | $as_test_x conftest$ac_exeext | |
8163 | }; then | |
8164 | eval "$as_ac_var=yes" | |
8165 | else | |
8166 | $as_echo "$as_me: failed program was:" >&5 | |
8167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8168 | ||
8169 | eval "$as_ac_var=no" | |
8170 | fi | |
8171 | ||
8172 | rm -rf conftest.dSYM | |
8173 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8174 | conftest$ac_exeext conftest.$ac_ext | |
8175 | fi | |
8176 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8177 | $as_echo "$as_val"'` | |
8178 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8179 | $as_echo "$ac_res" >&6; } | |
8180 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8181 | $as_echo "$as_val"'` | |
8182 | if test "x$as_val" = x""yes; then | |
8183 | cat >>confdefs.h <<_ACEOF | |
8184 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8185 | _ACEOF | |
8186 | ||
8187 | fi | |
8188 | done | |
8189 | ||
ad6254c5 AK |
8190 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8191 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8192 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8193 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8194 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8195 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8196 | else |
8197 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8198 | /* confdefs.h. */ |
8199 | _ACEOF | |
8200 | cat confdefs.h >>conftest.$ac_ext | |
8201 | cat >>conftest.$ac_ext <<_ACEOF | |
8202 | /* end confdefs.h. */ | |
8203 | #include <alloca.h> | |
8204 | int | |
8205 | main () | |
8206 | { | |
8207 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8208 | if (p) return 0; |
ad6254c5 AK |
8209 | ; |
8210 | return 0; | |
8211 | } | |
8212 | _ACEOF | |
8213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8214 | if { (ac_try="$ac_link" |
8215 | case "(($ac_try" in | |
8216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8217 | *) ac_try_echo=$ac_try;; | |
8218 | esac | |
ec6a6fbe AK |
8219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8220 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8221 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8222 | ac_status=$? |
8a2fc586 AK |
8223 | grep -v '^ *+' conftest.er1 >conftest.err |
8224 | rm -f conftest.er1 | |
8225 | cat conftest.err >&5 | |
ec6a6fbe | 8226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8227 | (exit $ac_status); } && { |
8228 | test -z "$ac_c_werror_flag" || | |
8229 | test ! -s conftest.err | |
ec6a6fbe AK |
8230 | } && test -s conftest$ac_exeext && { |
8231 | test "$cross_compiling" = yes || | |
8232 | $as_test_x conftest$ac_exeext | |
8233 | }; then | |
ad6254c5 AK |
8234 | ac_cv_working_alloca_h=yes |
8235 | else | |
ec6a6fbe | 8236 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8237 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8238 | |
7a197a62 | 8239 | ac_cv_working_alloca_h=no |
ad6254c5 | 8240 | fi |
7a197a62 | 8241 | |
ec6a6fbe | 8242 | rm -rf conftest.dSYM |
25fbec5b | 8243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8244 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8245 | fi |
ec6a6fbe AK |
8246 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8247 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8248 | if test $ac_cv_working_alloca_h = yes; then |
8249 | ||
8250 | cat >>confdefs.h <<\_ACEOF | |
8251 | #define HAVE_ALLOCA_H 1 | |
8252 | _ACEOF | |
8253 | ||
8254 | fi | |
8255 | ||
ec6a6fbe AK |
8256 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8257 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8258 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8259 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8260 | else |
8261 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8262 | /* confdefs.h. */ |
8263 | _ACEOF | |
8264 | cat confdefs.h >>conftest.$ac_ext | |
8265 | cat >>conftest.$ac_ext <<_ACEOF | |
8266 | /* end confdefs.h. */ | |
8267 | #ifdef __GNUC__ | |
8268 | # define alloca __builtin_alloca | |
8269 | #else | |
8270 | # ifdef _MSC_VER | |
8271 | # include <malloc.h> | |
8272 | # define alloca _alloca | |
8273 | # else | |
25fbec5b | 8274 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8275 | # include <alloca.h> |
8276 | # else | |
8277 | # ifdef _AIX | |
8278 | #pragma alloca | |
8279 | # else | |
8280 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8281 | char *alloca (); | |
8282 | # endif | |
8283 | # endif | |
8284 | # endif | |
8285 | # endif | |
8286 | #endif | |
8287 | ||
8288 | int | |
8289 | main () | |
8290 | { | |
8291 | char *p = (char *) alloca (1); | |
7a197a62 | 8292 | if (p) return 0; |
ad6254c5 AK |
8293 | ; |
8294 | return 0; | |
8295 | } | |
8296 | _ACEOF | |
8297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8298 | if { (ac_try="$ac_link" |
8299 | case "(($ac_try" in | |
8300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8301 | *) ac_try_echo=$ac_try;; | |
8302 | esac | |
ec6a6fbe AK |
8303 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8304 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8305 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8306 | ac_status=$? |
8a2fc586 AK |
8307 | grep -v '^ *+' conftest.er1 >conftest.err |
8308 | rm -f conftest.er1 | |
8309 | cat conftest.err >&5 | |
ec6a6fbe | 8310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8311 | (exit $ac_status); } && { |
8312 | test -z "$ac_c_werror_flag" || | |
8313 | test ! -s conftest.err | |
ec6a6fbe AK |
8314 | } && test -s conftest$ac_exeext && { |
8315 | test "$cross_compiling" = yes || | |
8316 | $as_test_x conftest$ac_exeext | |
8317 | }; then | |
ad6254c5 AK |
8318 | ac_cv_func_alloca_works=yes |
8319 | else | |
ec6a6fbe | 8320 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8321 | sed 's/^/| /' conftest.$ac_ext >&5 |
8322 | ||
7a197a62 | 8323 | ac_cv_func_alloca_works=no |
ad6254c5 | 8324 | fi |
7a197a62 | 8325 | |
ec6a6fbe | 8326 | rm -rf conftest.dSYM |
25fbec5b | 8327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8328 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8329 | fi |
ec6a6fbe AK |
8330 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8331 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8332 | |
8333 | if test $ac_cv_func_alloca_works = yes; then | |
8334 | ||
8335 | cat >>confdefs.h <<\_ACEOF | |
8336 | #define HAVE_ALLOCA 1 | |
8337 | _ACEOF | |
8338 | ||
8339 | else | |
8340 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8341 | # that cause trouble. Some versions do not even contain alloca or | |
8342 | # contain a buggy version. If you still want to use their alloca, | |
8343 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8344 | ||
7a197a62 | 8345 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8346 | |
8347 | cat >>confdefs.h <<\_ACEOF | |
8348 | #define C_ALLOCA 1 | |
8349 | _ACEOF | |
8350 | ||
8351 | ||
ec6a6fbe AK |
8352 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8353 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8354 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8355 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8356 | else |
8357 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8358 | /* confdefs.h. */ |
8359 | _ACEOF | |
8360 | cat confdefs.h >>conftest.$ac_ext | |
8361 | cat >>conftest.$ac_ext <<_ACEOF | |
8362 | /* end confdefs.h. */ | |
7a197a62 | 8363 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8364 | webecray |
8365 | #else | |
8366 | wenotbecray | |
8367 | #endif | |
8368 | ||
8369 | _ACEOF | |
795ca3e5 | 8370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8371 | $EGREP "webecray" >/dev/null 2>&1; then |
8372 | ac_cv_os_cray=yes | |
8373 | else | |
8374 | ac_cv_os_cray=no | |
795ca3e5 AK |
8375 | fi |
8376 | rm -f conftest* | |
8377 | ||
795ca3e5 | 8378 | fi |
ec6a6fbe AK |
8379 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8380 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8381 | if test $ac_cv_os_cray = yes; then |
8382 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8383 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8384 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8385 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8386 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8387 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8388 | else |
8389 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8390 | /* confdefs.h. */ |
8391 | _ACEOF | |
8392 | cat confdefs.h >>conftest.$ac_ext | |
8393 | cat >>conftest.$ac_ext <<_ACEOF | |
8394 | /* end confdefs.h. */ | |
8a2fc586 AK |
8395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8397 | #define $ac_func innocuous_$ac_func | |
8398 | ||
ad6254c5 AK |
8399 | /* System header to define __stub macros and hopefully few prototypes, |
8400 | which can conflict with char $ac_func (); below. | |
8401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8402 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8403 | |
ad6254c5 AK |
8404 | #ifdef __STDC__ |
8405 | # include <limits.h> | |
8406 | #else | |
8407 | # include <assert.h> | |
8408 | #endif | |
8a2fc586 AK |
8409 | |
8410 | #undef $ac_func | |
8411 | ||
7a197a62 AK |
8412 | /* Override any GCC internal prototype to avoid an error. |
8413 | Use char because int might match the return type of a GCC | |
8414 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8415 | #ifdef __cplusplus |
8416 | extern "C" | |
ad6254c5 | 8417 | #endif |
ad6254c5 AK |
8418 | char $ac_func (); |
8419 | /* The GNU C library defines this for functions which it implements | |
8420 | to always fail with ENOSYS. Some functions are actually named | |
8421 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8422 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8423 | choke me |
ad6254c5 AK |
8424 | #endif |
8425 | ||
8426 | int | |
8427 | main () | |
8428 | { | |
7a197a62 | 8429 | return $ac_func (); |
ad6254c5 AK |
8430 | ; |
8431 | return 0; | |
8432 | } | |
8433 | _ACEOF | |
8434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8435 | if { (ac_try="$ac_link" |
8436 | case "(($ac_try" in | |
8437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8438 | *) ac_try_echo=$ac_try;; | |
8439 | esac | |
ec6a6fbe AK |
8440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8441 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8442 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8443 | ac_status=$? |
8a2fc586 AK |
8444 | grep -v '^ *+' conftest.er1 >conftest.err |
8445 | rm -f conftest.er1 | |
8446 | cat conftest.err >&5 | |
ec6a6fbe | 8447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8448 | (exit $ac_status); } && { |
8449 | test -z "$ac_c_werror_flag" || | |
8450 | test ! -s conftest.err | |
ec6a6fbe AK |
8451 | } && test -s conftest$ac_exeext && { |
8452 | test "$cross_compiling" = yes || | |
8453 | $as_test_x conftest$ac_exeext | |
8454 | }; then | |
ad6254c5 AK |
8455 | eval "$as_ac_var=yes" |
8456 | else | |
ec6a6fbe | 8457 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8458 | sed 's/^/| /' conftest.$ac_ext >&5 |
8459 | ||
7a197a62 | 8460 | eval "$as_ac_var=no" |
ad6254c5 | 8461 | fi |
7a197a62 | 8462 | |
ec6a6fbe | 8463 | rm -rf conftest.dSYM |
25fbec5b | 8464 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8465 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8466 | fi |
ec6a6fbe AK |
8467 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8468 | $as_echo "$as_val"'` | |
8469 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8470 | $as_echo "$ac_res" >&6; } | |
8471 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8472 | $as_echo "$as_val"'` | |
8473 | if test "x$as_val" = x""yes; then | |
80992638 | 8474 | |
ad6254c5 AK |
8475 | cat >>confdefs.h <<_ACEOF |
8476 | #define CRAY_STACKSEG_END $ac_func | |
8477 | _ACEOF | |
8478 | ||
8479 | break | |
8480 | fi | |
8481 | ||
8482 | done | |
8483 | fi | |
8484 | ||
ec6a6fbe AK |
8485 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8486 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8487 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8488 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8489 | else |
8490 | if test "$cross_compiling" = yes; then | |
8491 | ac_cv_c_stack_direction=0 | |
8492 | else | |
8493 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8494 | /* confdefs.h. */ |
8495 | _ACEOF | |
8496 | cat confdefs.h >>conftest.$ac_ext | |
8497 | cat >>conftest.$ac_ext <<_ACEOF | |
8498 | /* end confdefs.h. */ | |
7a197a62 | 8499 | $ac_includes_default |
ad6254c5 AK |
8500 | int |
8501 | find_stack_direction () | |
8502 | { | |
8503 | static char *addr = 0; | |
8504 | auto char dummy; | |
8505 | if (addr == 0) | |
8506 | { | |
8507 | addr = &dummy; | |
8508 | return find_stack_direction (); | |
8509 | } | |
8510 | else | |
8511 | return (&dummy > addr) ? 1 : -1; | |
8512 | } | |
8513 | ||
8514 | int | |
8515 | main () | |
8516 | { | |
7a197a62 | 8517 | return find_stack_direction () < 0; |
ad6254c5 AK |
8518 | } |
8519 | _ACEOF | |
8520 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8521 | if { (ac_try="$ac_link" |
8522 | case "(($ac_try" in | |
8523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8524 | *) ac_try_echo=$ac_try;; | |
8525 | esac | |
ec6a6fbe AK |
8526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8527 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8528 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8529 | ac_status=$? |
ec6a6fbe | 8530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8532 | { (case "(($ac_try" in |
8533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8534 | *) ac_try_echo=$ac_try;; | |
8535 | esac | |
ec6a6fbe AK |
8536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8537 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8538 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8539 | ac_status=$? |
ec6a6fbe | 8540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8541 | (exit $ac_status); }; }; then |
8542 | ac_cv_c_stack_direction=1 | |
8543 | else | |
ec6a6fbe AK |
8544 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8545 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8546 | sed 's/^/| /' conftest.$ac_ext >&5 |
8547 | ||
8548 | ( exit $ac_status ) | |
8549 | ac_cv_c_stack_direction=-1 | |
8550 | fi | |
ec6a6fbe | 8551 | rm -rf conftest.dSYM |
7a197a62 | 8552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8553 | fi |
7a197a62 AK |
8554 | |
8555 | ||
ad6254c5 | 8556 | fi |
ec6a6fbe AK |
8557 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8558 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8559 | |
d911ec67 AK |
8560 | cat >>confdefs.h <<_ACEOF |
8561 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8562 | _ACEOF | |
8563 | ||
8564 | ||
8565 | fi | |
8566 | ||
8567 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8568 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8569 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8570 | $as_echo_n "(cached) " >&6 | |
8571 | else | |
8572 | if test "$cross_compiling" = yes; then | |
8573 | ac_cv_func_closedir_void=yes | |
8574 | else | |
8575 | cat >conftest.$ac_ext <<_ACEOF | |
8576 | /* confdefs.h. */ | |
8577 | _ACEOF | |
8578 | cat confdefs.h >>conftest.$ac_ext | |
8579 | cat >>conftest.$ac_ext <<_ACEOF | |
8580 | /* end confdefs.h. */ | |
8581 | $ac_includes_default | |
8582 | #include <$ac_header_dirent> | |
8583 | #ifndef __cplusplus | |
8584 | int closedir (); | |
8585 | #endif | |
8586 | ||
8587 | int | |
8588 | main () | |
8589 | { | |
8590 | return closedir (opendir (".")) != 0; | |
8591 | ; | |
8592 | return 0; | |
8593 | } | |
8594 | _ACEOF | |
8595 | rm -f conftest$ac_exeext | |
8596 | if { (ac_try="$ac_link" | |
8597 | case "(($ac_try" in | |
8598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8599 | *) ac_try_echo=$ac_try;; | |
8600 | esac | |
8601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8602 | $as_echo "$ac_try_echo") >&5 | |
8603 | (eval "$ac_link") 2>&5 | |
8604 | ac_status=$? | |
8605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8607 | { (case "(($ac_try" in | |
8608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8609 | *) ac_try_echo=$ac_try;; | |
8610 | esac | |
8611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8612 | $as_echo "$ac_try_echo") >&5 | |
8613 | (eval "$ac_try") 2>&5 | |
8614 | ac_status=$? | |
8615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8616 | (exit $ac_status); }; }; then | |
8617 | ac_cv_func_closedir_void=no | |
8618 | else | |
8619 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8620 | $as_echo "$as_me: failed program was:" >&5 | |
8621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8622 | ||
8623 | ( exit $ac_status ) | |
8624 | ac_cv_func_closedir_void=yes | |
8625 | fi | |
8626 | rm -rf conftest.dSYM | |
8627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8628 | fi | |
8629 | ||
8630 | ||
8631 | fi | |
8632 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8633 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8634 | if test $ac_cv_func_closedir_void = yes; then | |
8635 | ||
8636 | cat >>confdefs.h <<\_ACEOF | |
8637 | #define CLOSEDIR_VOID 1 | |
8638 | _ACEOF | |
8639 | ||
8640 | fi | |
8641 | ||
8642 | ||
8643 | for ac_header in unistd.h | |
8644 | do | |
8645 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8647 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8648 | $as_echo_n "checking for $ac_header... " >&6; } | |
8649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8650 | $as_echo_n "(cached) " >&6 | |
8651 | fi | |
8652 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8653 | $as_echo "$as_val"'` | |
8654 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8655 | $as_echo "$ac_res" >&6; } | |
8656 | else | |
8657 | # Is the header compilable? | |
8658 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8659 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8660 | cat >conftest.$ac_ext <<_ACEOF | |
8661 | /* confdefs.h. */ | |
8662 | _ACEOF | |
8663 | cat confdefs.h >>conftest.$ac_ext | |
8664 | cat >>conftest.$ac_ext <<_ACEOF | |
8665 | /* end confdefs.h. */ | |
8666 | $ac_includes_default | |
8667 | #include <$ac_header> | |
8668 | _ACEOF | |
8669 | rm -f conftest.$ac_objext | |
8670 | if { (ac_try="$ac_compile" | |
8671 | case "(($ac_try" in | |
8672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8673 | *) ac_try_echo=$ac_try;; | |
8674 | esac | |
8675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8676 | $as_echo "$ac_try_echo") >&5 | |
8677 | (eval "$ac_compile") 2>conftest.er1 | |
8678 | ac_status=$? | |
8679 | grep -v '^ *+' conftest.er1 >conftest.err | |
8680 | rm -f conftest.er1 | |
8681 | cat conftest.err >&5 | |
8682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8683 | (exit $ac_status); } && { | |
8684 | test -z "$ac_c_werror_flag" || | |
8685 | test ! -s conftest.err | |
8686 | } && test -s conftest.$ac_objext; then | |
8687 | ac_header_compiler=yes | |
8688 | else | |
8689 | $as_echo "$as_me: failed program was:" >&5 | |
8690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8691 | ||
8692 | ac_header_compiler=no | |
8693 | fi | |
8694 | ||
8695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8696 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8697 | $as_echo "$ac_header_compiler" >&6; } | |
8698 | ||
8699 | # Is the header present? | |
8700 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8701 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8702 | cat >conftest.$ac_ext <<_ACEOF | |
8703 | /* confdefs.h. */ | |
8704 | _ACEOF | |
8705 | cat confdefs.h >>conftest.$ac_ext | |
8706 | cat >>conftest.$ac_ext <<_ACEOF | |
8707 | /* end confdefs.h. */ | |
8708 | #include <$ac_header> | |
8709 | _ACEOF | |
8710 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8711 | case "(($ac_try" in | |
8712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8713 | *) ac_try_echo=$ac_try;; | |
8714 | esac | |
8715 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8716 | $as_echo "$ac_try_echo") >&5 | |
8717 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8718 | ac_status=$? | |
8719 | grep -v '^ *+' conftest.er1 >conftest.err | |
8720 | rm -f conftest.er1 | |
8721 | cat conftest.err >&5 | |
8722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8723 | (exit $ac_status); } >/dev/null && { | |
8724 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8725 | test ! -s conftest.err | |
8726 | }; then | |
8727 | ac_header_preproc=yes | |
8728 | else | |
8729 | $as_echo "$as_me: failed program was:" >&5 | |
8730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8731 | ||
8732 | ac_header_preproc=no | |
8733 | fi | |
8734 | ||
8735 | rm -f conftest.err conftest.$ac_ext | |
8736 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8737 | $as_echo "$ac_header_preproc" >&6; } | |
8738 | ||
8739 | # So? What about this header? | |
8740 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8741 | yes:no: ) | |
8742 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8743 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8744 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8745 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8746 | ac_header_preproc=yes | |
8747 | ;; | |
8748 | no:yes:* ) | |
8749 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8750 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8751 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8752 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8753 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8754 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8755 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8756 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8758 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8759 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8760 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8761 | ||
8762 | ;; | |
8763 | esac | |
8764 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8765 | $as_echo_n "checking for $ac_header... " >&6; } | |
8766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8767 | $as_echo_n "(cached) " >&6 | |
8768 | else | |
8769 | eval "$as_ac_Header=\$ac_header_preproc" | |
8770 | fi | |
8771 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8772 | $as_echo "$as_val"'` | |
8773 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8774 | $as_echo "$ac_res" >&6; } | |
8775 | ||
8776 | fi | |
8777 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8778 | $as_echo "$as_val"'` | |
8779 | if test "x$as_val" = x""yes; then | |
8780 | cat >>confdefs.h <<_ACEOF | |
8781 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8782 | _ACEOF |
8783 | ||
ad6254c5 AK |
8784 | fi |
8785 | ||
d911ec67 AK |
8786 | done |
8787 | ||
8788 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8789 | $as_echo_n "checking for working chown... " >&6; } | |
8790 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8791 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8792 | else |
8793 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8794 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8795 | else |
8796 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8797 | /* confdefs.h. */ |
8798 | _ACEOF | |
8799 | cat confdefs.h >>conftest.$ac_ext | |
8800 | cat >>conftest.$ac_ext <<_ACEOF | |
8801 | /* end confdefs.h. */ | |
8802 | $ac_includes_default | |
d911ec67 | 8803 | #include <fcntl.h> |
ad6254c5 AK |
8804 | |
8805 | int | |
8806 | main () | |
8807 | { | |
d911ec67 AK |
8808 | char *f = "conftest.chown"; |
8809 | struct stat before, after; | |
8810 | ||
8811 | if (creat (f, 0600) < 0) | |
8812 | return 1; | |
8813 | if (stat (f, &before) < 0) | |
8814 | return 1; | |
8815 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8816 | return 1; | |
8817 | if (stat (f, &after) < 0) | |
8818 | return 1; | |
8819 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8820 | ||
ad6254c5 AK |
8821 | ; |
8822 | return 0; | |
8823 | } | |
8824 | _ACEOF | |
8825 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8826 | if { (ac_try="$ac_link" |
8827 | case "(($ac_try" in | |
8828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8829 | *) ac_try_echo=$ac_try;; | |
8830 | esac | |
ec6a6fbe AK |
8831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8832 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8833 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8834 | ac_status=$? |
ec6a6fbe | 8835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8837 | { (case "(($ac_try" in |
8838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8839 | *) ac_try_echo=$ac_try;; | |
8840 | esac | |
ec6a6fbe AK |
8841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8842 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8843 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8844 | ac_status=$? |
ec6a6fbe | 8845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8846 | (exit $ac_status); }; }; then |
d911ec67 | 8847 | ac_cv_func_chown_works=yes |
ad6254c5 | 8848 | else |
ec6a6fbe AK |
8849 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8850 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8851 | sed 's/^/| /' conftest.$ac_ext >&5 |
8852 | ||
8853 | ( exit $ac_status ) | |
d911ec67 | 8854 | ac_cv_func_chown_works=no |
ad6254c5 | 8855 | fi |
ec6a6fbe | 8856 | rm -rf conftest.dSYM |
7a197a62 | 8857 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8858 | fi |
7a197a62 AK |
8859 | |
8860 | ||
d911ec67 AK |
8861 | rm -f conftest.chown |
8862 | ||
ad6254c5 | 8863 | fi |
d911ec67 AK |
8864 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8865 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8866 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8867 | |
8868 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8869 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8870 | _ACEOF |
8871 | ||
8872 | fi | |
8873 | ||
8874 | ||
7a197a62 | 8875 | for ac_header in vfork.h |
ad6254c5 | 8876 | do |
ec6a6fbe | 8877 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8878 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8879 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8880 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8882 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8883 | fi |
ec6a6fbe AK |
8884 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8885 | $as_echo "$as_val"'` | |
8886 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8887 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8888 | else |
8889 | # Is the header compilable? | |
ec6a6fbe AK |
8890 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8891 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8892 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8893 | /* confdefs.h. */ |
8894 | _ACEOF | |
8895 | cat confdefs.h >>conftest.$ac_ext | |
8896 | cat >>conftest.$ac_ext <<_ACEOF | |
8897 | /* end confdefs.h. */ | |
8898 | $ac_includes_default | |
8899 | #include <$ac_header> | |
8900 | _ACEOF | |
8901 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8902 | if { (ac_try="$ac_compile" |
8903 | case "(($ac_try" in | |
8904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8905 | *) ac_try_echo=$ac_try;; | |
8906 | esac | |
ec6a6fbe AK |
8907 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8908 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8909 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8910 | ac_status=$? |
8a2fc586 AK |
8911 | grep -v '^ *+' conftest.er1 >conftest.err |
8912 | rm -f conftest.er1 | |
8913 | cat conftest.err >&5 | |
ec6a6fbe | 8914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8915 | (exit $ac_status); } && { |
8916 | test -z "$ac_c_werror_flag" || | |
8917 | test ! -s conftest.err | |
8918 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8919 | ac_header_compiler=yes |
8920 | else | |
ec6a6fbe | 8921 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8922 | sed 's/^/| /' conftest.$ac_ext >&5 |
8923 | ||
7a197a62 | 8924 | ac_header_compiler=no |
ad6254c5 | 8925 | fi |
7a197a62 AK |
8926 | |
8927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8928 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8929 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8930 | |
8931 | # Is the header present? | |
ec6a6fbe AK |
8932 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8933 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8934 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8935 | /* confdefs.h. */ |
8936 | _ACEOF | |
8937 | cat confdefs.h >>conftest.$ac_ext | |
8938 | cat >>conftest.$ac_ext <<_ACEOF | |
8939 | /* end confdefs.h. */ | |
8940 | #include <$ac_header> | |
8941 | _ACEOF | |
7a197a62 AK |
8942 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8943 | case "(($ac_try" in | |
8944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8945 | *) ac_try_echo=$ac_try;; | |
8946 | esac | |
ec6a6fbe AK |
8947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8948 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8949 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8950 | ac_status=$? |
8951 | grep -v '^ *+' conftest.er1 >conftest.err | |
8952 | rm -f conftest.er1 | |
8953 | cat conftest.err >&5 | |
ec6a6fbe | 8954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8955 | (exit $ac_status); } >/dev/null && { |
8956 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8957 | test ! -s conftest.err | |
8958 | }; then | |
ad6254c5 AK |
8959 | ac_header_preproc=yes |
8960 | else | |
ec6a6fbe | 8961 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8962 | sed 's/^/| /' conftest.$ac_ext >&5 |
8963 | ||
8964 | ac_header_preproc=no | |
8965 | fi | |
7a197a62 | 8966 | |
ad6254c5 | 8967 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8968 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8969 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8970 | |
8971 | # So? What about this header? | |
8a2fc586 AK |
8972 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8973 | yes:no: ) | |
ec6a6fbe AK |
8974 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8975 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8976 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8977 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8978 | ac_header_preproc=yes |
ad6254c5 | 8979 | ;; |
8a2fc586 | 8980 | no:yes:* ) |
ec6a6fbe AK |
8981 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8982 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8983 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8984 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8986 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8988 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8990 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8992 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8993 | |
ad6254c5 AK |
8994 | ;; |
8995 | esac | |
ec6a6fbe AK |
8996 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8997 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8998 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8999 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9000 | else |
8a2fc586 | 9001 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9002 | fi |
ec6a6fbe AK |
9003 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9004 | $as_echo "$as_val"'` | |
9005 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9006 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 9007 | |
795ca3e5 | 9008 | fi |
ec6a6fbe AK |
9009 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9010 | $as_echo "$as_val"'` | |
9011 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9012 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9013 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9014 | _ACEOF |
9015 | ||
9016 | fi | |
9017 | ||
9018 | done | |
795ca3e5 | 9019 | |
ad6254c5 AK |
9020 | |
9021 | ||
9022 | for ac_func in fork vfork | |
9023 | do | |
ec6a6fbe AK |
9024 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9025 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9026 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9027 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9028 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9029 | else |
ad6254c5 | 9030 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9031 | /* confdefs.h. */ |
9032 | _ACEOF | |
9033 | cat confdefs.h >>conftest.$ac_ext | |
9034 | cat >>conftest.$ac_ext <<_ACEOF | |
9035 | /* end confdefs.h. */ | |
8a2fc586 AK |
9036 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9037 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9038 | #define $ac_func innocuous_$ac_func | |
9039 | ||
ad6254c5 AK |
9040 | /* System header to define __stub macros and hopefully few prototypes, |
9041 | which can conflict with char $ac_func (); below. | |
9042 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9043 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9044 | |
ad6254c5 AK |
9045 | #ifdef __STDC__ |
9046 | # include <limits.h> | |
9047 | #else | |
9048 | # include <assert.h> | |
795ca3e5 | 9049 | #endif |
8a2fc586 AK |
9050 | |
9051 | #undef $ac_func | |
9052 | ||
7a197a62 AK |
9053 | /* Override any GCC internal prototype to avoid an error. |
9054 | Use char because int might match the return type of a GCC | |
9055 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 9056 | #ifdef __cplusplus |
ad6254c5 | 9057 | extern "C" |
ad6254c5 | 9058 | #endif |
ad6254c5 AK |
9059 | char $ac_func (); |
9060 | /* The GNU C library defines this for functions which it implements | |
9061 | to always fail with ENOSYS. Some functions are actually named | |
9062 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9063 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9064 | choke me |
795ca3e5 AK |
9065 | #endif |
9066 | ||
ad6254c5 AK |
9067 | int |
9068 | main () | |
9069 | { | |
7a197a62 | 9070 | return $ac_func (); |
ad6254c5 AK |
9071 | ; |
9072 | return 0; | |
9073 | } | |
9074 | _ACEOF | |
9075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9076 | if { (ac_try="$ac_link" |
9077 | case "(($ac_try" in | |
9078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9079 | *) ac_try_echo=$ac_try;; | |
9080 | esac | |
ec6a6fbe AK |
9081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9082 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9083 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9084 | ac_status=$? |
8a2fc586 AK |
9085 | grep -v '^ *+' conftest.er1 >conftest.err |
9086 | rm -f conftest.er1 | |
9087 | cat conftest.err >&5 | |
ec6a6fbe | 9088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9089 | (exit $ac_status); } && { |
9090 | test -z "$ac_c_werror_flag" || | |
9091 | test ! -s conftest.err | |
ec6a6fbe AK |
9092 | } && test -s conftest$ac_exeext && { |
9093 | test "$cross_compiling" = yes || | |
9094 | $as_test_x conftest$ac_exeext | |
9095 | }; then | |
ad6254c5 | 9096 | eval "$as_ac_var=yes" |
795ca3e5 | 9097 | else |
ec6a6fbe | 9098 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9099 | sed 's/^/| /' conftest.$ac_ext >&5 |
9100 | ||
7a197a62 | 9101 | eval "$as_ac_var=no" |
795ca3e5 | 9102 | fi |
7a197a62 | 9103 | |
ec6a6fbe | 9104 | rm -rf conftest.dSYM |
25fbec5b | 9105 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9106 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9107 | fi |
ec6a6fbe AK |
9108 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9109 | $as_echo "$as_val"'` | |
9110 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9111 | $as_echo "$ac_res" >&6; } | |
9112 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9113 | $as_echo "$as_val"'` | |
9114 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9115 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9116 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9117 | _ACEOF |
9118 | ||
9119 | fi | |
9120 | done | |
9121 | ||
9122 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9123 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9124 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9125 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9126 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9127 | else |
9128 | if test "$cross_compiling" = yes; then | |
9129 | ac_cv_func_fork_works=cross | |
9130 | else | |
9131 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9132 | /* confdefs.h. */ |
9133 | _ACEOF | |
9134 | cat confdefs.h >>conftest.$ac_ext | |
9135 | cat >>conftest.$ac_ext <<_ACEOF | |
9136 | /* end confdefs.h. */ | |
9137 | $ac_includes_default | |
9138 | int | |
9139 | main () | |
9140 | { | |
9141 | ||
9142 | /* By Ruediger Kuhlmann. */ | |
9143 | return fork () < 0; | |
9144 | ||
9145 | ; | |
9146 | return 0; | |
9147 | } | |
ad6254c5 AK |
9148 | _ACEOF |
9149 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9150 | if { (ac_try="$ac_link" |
9151 | case "(($ac_try" in | |
9152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9153 | *) ac_try_echo=$ac_try;; | |
9154 | esac | |
ec6a6fbe AK |
9155 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9156 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9157 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9158 | ac_status=$? |
ec6a6fbe | 9159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9160 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9161 | { (case "(($ac_try" in |
9162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9163 | *) ac_try_echo=$ac_try;; | |
9164 | esac | |
ec6a6fbe AK |
9165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9166 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9167 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9168 | ac_status=$? |
ec6a6fbe | 9169 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9170 | (exit $ac_status); }; }; then |
9171 | ac_cv_func_fork_works=yes | |
9172 | else | |
ec6a6fbe AK |
9173 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9174 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9175 | sed 's/^/| /' conftest.$ac_ext >&5 |
9176 | ||
9177 | ( exit $ac_status ) | |
9178 | ac_cv_func_fork_works=no | |
9179 | fi | |
ec6a6fbe | 9180 | rm -rf conftest.dSYM |
7a197a62 | 9181 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9182 | fi |
7a197a62 AK |
9183 | |
9184 | ||
ad6254c5 | 9185 | fi |
ec6a6fbe AK |
9186 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9187 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9188 | |
9189 | else | |
9190 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9191 | fi | |
9192 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9193 | case $host in | |
9194 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9195 | # Override, as these systems have only a dummy fork() stub | |
9196 | ac_cv_func_fork_works=no | |
9197 | ;; | |
9198 | *) | |
9199 | ac_cv_func_fork_works=yes | |
9200 | ;; | |
9201 | esac | |
ec6a6fbe AK |
9202 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9203 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9204 | fi |
9205 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9206 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9207 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9208 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9209 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9210 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9211 | else |
9212 | if test "$cross_compiling" = yes; then | |
9213 | ac_cv_func_vfork_works=cross | |
9214 | else | |
9215 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9216 | /* confdefs.h. */ |
9217 | _ACEOF | |
9218 | cat confdefs.h >>conftest.$ac_ext | |
9219 | cat >>conftest.$ac_ext <<_ACEOF | |
9220 | /* end confdefs.h. */ | |
9221 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9222 | $ac_includes_default |
ad6254c5 | 9223 | #include <sys/wait.h> |
25fbec5b | 9224 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9225 | # include <vfork.h> |
9226 | #endif | |
9227 | /* On some sparc systems, changes by the child to local and incoming | |
9228 | argument registers are propagated back to the parent. The compiler | |
9229 | is told about this with #include <vfork.h>, but some compilers | |
9230 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9231 | static variable whose address is put into a register that is | |
9232 | clobbered by the vfork. */ | |
9233 | static void | |
9234 | #ifdef __cplusplus | |
9235 | sparc_address_test (int arg) | |
9236 | # else | |
9237 | sparc_address_test (arg) int arg; | |
9238 | #endif | |
9239 | { | |
9240 | static pid_t child; | |
9241 | if (!child) { | |
9242 | child = vfork (); | |
9243 | if (child < 0) { | |
9244 | perror ("vfork"); | |
9245 | _exit(2); | |
9246 | } | |
9247 | if (!child) { | |
9248 | arg = getpid(); | |
9249 | write(-1, "", 0); | |
9250 | _exit (arg); | |
9251 | } | |
9252 | } | |
9253 | } | |
9254 | ||
9255 | int | |
9256 | main () | |
9257 | { | |
9258 | pid_t parent = getpid (); | |
9259 | pid_t child; | |
9260 | ||
9261 | sparc_address_test (0); | |
9262 | ||
9263 | child = vfork (); | |
9264 | ||
9265 | if (child == 0) { | |
9266 | /* Here is another test for sparc vfork register problems. This | |
9267 | test uses lots of local variables, at least as many local | |
9268 | variables as main has allocated so far including compiler | |
9269 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9270 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9271 | reuse the register of parent for one of the local variables, | |
9272 | since it will think that parent can't possibly be used any more | |
9273 | in this routine. Assigning to the local variable will thus | |
9274 | munge parent in the parent process. */ | |
9275 | pid_t | |
9276 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9277 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9278 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9279 | use the same hardware register for all 8 local variables. */ | |
9280 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9281 | || p != p5 || p != p6 || p != p7) | |
9282 | _exit(1); | |
9283 | ||
9284 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9285 | from child file descriptors. If the child closes a descriptor | |
9286 | before it execs or exits, this munges the parent's descriptor | |
9287 | as well. Test for this by closing stdout in the child. */ | |
9288 | _exit(close(fileno(stdout)) != 0); | |
9289 | } else { | |
9290 | int status; | |
9291 | struct stat st; | |
9292 | ||
9293 | while (wait(&status) != child) | |
9294 | ; | |
7a197a62 | 9295 | return ( |
ad6254c5 AK |
9296 | /* Was there some problem with vforking? */ |
9297 | child < 0 | |
9298 | ||
9299 | /* Did the child fail? (This shouldn't happen.) */ | |
9300 | || status | |
9301 | ||
9302 | /* Did the vfork/compiler bug occur? */ | |
9303 | || parent != getpid() | |
9304 | ||
9305 | /* Did the file descriptor bug occur? */ | |
9306 | || fstat(fileno(stdout), &st) != 0 | |
9307 | ); | |
9308 | } | |
9309 | } | |
9310 | _ACEOF | |
9311 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9312 | if { (ac_try="$ac_link" |
9313 | case "(($ac_try" in | |
9314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9315 | *) ac_try_echo=$ac_try;; | |
9316 | esac | |
ec6a6fbe AK |
9317 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9318 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9319 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9320 | ac_status=$? |
ec6a6fbe | 9321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9323 | { (case "(($ac_try" in |
9324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9325 | *) ac_try_echo=$ac_try;; | |
9326 | esac | |
ec6a6fbe AK |
9327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9328 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9329 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9330 | ac_status=$? |
ec6a6fbe | 9331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9332 | (exit $ac_status); }; }; then |
9333 | ac_cv_func_vfork_works=yes | |
9334 | else | |
ec6a6fbe AK |
9335 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9336 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9337 | sed 's/^/| /' conftest.$ac_ext >&5 |
9338 | ||
9339 | ( exit $ac_status ) | |
9340 | ac_cv_func_vfork_works=no | |
9341 | fi | |
ec6a6fbe | 9342 | rm -rf conftest.dSYM |
7a197a62 | 9343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9344 | fi |
7a197a62 AK |
9345 | |
9346 | ||
ad6254c5 | 9347 | fi |
ec6a6fbe AK |
9348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9349 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9350 | |
9351 | fi; | |
9352 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9353 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9354 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9355 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9356 | fi |
9357 | ||
9358 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9359 | ||
9360 | cat >>confdefs.h <<\_ACEOF | |
9361 | #define HAVE_WORKING_VFORK 1 | |
9362 | _ACEOF | |
9363 | ||
9364 | else | |
9365 | ||
9366 | cat >>confdefs.h <<\_ACEOF | |
9367 | #define vfork fork | |
9368 | _ACEOF | |
9369 | ||
9370 | fi | |
9371 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9372 | ||
9373 | cat >>confdefs.h <<\_ACEOF | |
9374 | #define HAVE_WORKING_FORK 1 | |
9375 | _ACEOF | |
9376 | ||
9377 | fi | |
9378 | ||
ec6a6fbe AK |
9379 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9380 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9381 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9382 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9383 | else |
9384 | rm -f conftest.sym conftest.file | |
9385 | echo >conftest.file | |
9386 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9387 | if test "$cross_compiling" = yes; then | |
9388 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9389 | else | |
9390 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9391 | /* confdefs.h. */ |
9392 | _ACEOF | |
9393 | cat confdefs.h >>conftest.$ac_ext | |
9394 | cat >>conftest.$ac_ext <<_ACEOF | |
9395 | /* end confdefs.h. */ | |
9396 | $ac_includes_default | |
9397 | int | |
9398 | main () | |
9399 | { | |
9400 | struct stat sbuf; | |
9401 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9402 | That is better in the sense that it means we will not |
9403 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9404 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9405 | ; |
9406 | return 0; | |
9407 | } | |
9408 | _ACEOF | |
9409 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9410 | if { (ac_try="$ac_link" |
9411 | case "(($ac_try" in | |
9412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9413 | *) ac_try_echo=$ac_try;; | |
9414 | esac | |
ec6a6fbe AK |
9415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9416 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9417 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9418 | ac_status=$? |
ec6a6fbe | 9419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9421 | { (case "(($ac_try" in |
9422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9423 | *) ac_try_echo=$ac_try;; | |
9424 | esac | |
ec6a6fbe AK |
9425 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9426 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9427 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9428 | ac_status=$? |
ec6a6fbe | 9429 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9430 | (exit $ac_status); }; }; then |
9431 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9432 | else | |
ec6a6fbe AK |
9433 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9434 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9435 | sed 's/^/| /' conftest.$ac_ext >&5 |
9436 | ||
9437 | ( exit $ac_status ) | |
9438 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9439 | fi | |
ec6a6fbe | 9440 | rm -rf conftest.dSYM |
7a197a62 | 9441 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9442 | fi |
7a197a62 AK |
9443 | |
9444 | ||
ad6254c5 AK |
9445 | else |
9446 | # If the `ln -s' command failed, then we probably don't even | |
9447 | # have an lstat function. | |
9448 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9449 | fi | |
9450 | rm -f conftest.sym conftest.file | |
9451 | ||
9452 | fi | |
ec6a6fbe AK |
9453 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9454 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9455 | |
9456 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9457 | ||
9458 | cat >>confdefs.h <<_ACEOF | |
9459 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9460 | _ACEOF | |
9461 | ||
9462 | ||
9463 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9464 | case " $LIBOBJS " in |
8a2fc586 | 9465 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9466 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9467 | ;; | |
8a2fc586 AK |
9468 | esac |
9469 | ||
ad6254c5 AK |
9470 | fi |
9471 | ||
ec6a6fbe AK |
9472 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9473 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9474 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9475 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9476 | else |
9477 | if test "$cross_compiling" = yes; then | |
9478 | ac_cv_func_lstat_empty_string_bug=yes | |
9479 | else | |
9480 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9481 | /* confdefs.h. */ |
9482 | _ACEOF | |
9483 | cat confdefs.h >>conftest.$ac_ext | |
9484 | cat >>conftest.$ac_ext <<_ACEOF | |
9485 | /* end confdefs.h. */ | |
9486 | $ac_includes_default | |
9487 | int | |
9488 | main () | |
9489 | { | |
9490 | struct stat sbuf; | |
7a197a62 | 9491 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9492 | ; |
9493 | return 0; | |
9494 | } | |
9495 | _ACEOF | |
9496 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9497 | if { (ac_try="$ac_link" |
9498 | case "(($ac_try" in | |
9499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9500 | *) ac_try_echo=$ac_try;; | |
9501 | esac | |
ec6a6fbe AK |
9502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9503 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9504 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9505 | ac_status=$? |
ec6a6fbe | 9506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9507 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9508 | { (case "(($ac_try" in |
9509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9510 | *) ac_try_echo=$ac_try;; | |
9511 | esac | |
ec6a6fbe AK |
9512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9513 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9514 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9515 | ac_status=$? |
ec6a6fbe | 9516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9517 | (exit $ac_status); }; }; then |
7a197a62 | 9518 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9519 | else |
ec6a6fbe AK |
9520 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9521 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9522 | sed 's/^/| /' conftest.$ac_ext >&5 |
9523 | ||
9524 | ( exit $ac_status ) | |
7a197a62 | 9525 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9526 | fi |
ec6a6fbe | 9527 | rm -rf conftest.dSYM |
7a197a62 | 9528 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9529 | fi |
7a197a62 AK |
9530 | |
9531 | ||
ad6254c5 | 9532 | fi |
ec6a6fbe AK |
9533 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9534 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9535 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 9536 | case " $LIBOBJS " in |
8a2fc586 | 9537 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9538 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9539 | ;; | |
8a2fc586 AK |
9540 | esac |
9541 | ||
ad6254c5 AK |
9542 | |
9543 | cat >>confdefs.h <<_ACEOF | |
9544 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9545 | _ACEOF | |
9546 | ||
9547 | fi | |
9548 | ||
9549 | ||
9550 | for ac_header in stdlib.h | |
9551 | do | |
ec6a6fbe | 9552 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9553 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9554 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9555 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9556 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9557 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9558 | fi |
ec6a6fbe AK |
9559 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9560 | $as_echo "$as_val"'` | |
9561 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9562 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9563 | else |
9564 | # Is the header compilable? | |
ec6a6fbe AK |
9565 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9566 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9567 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9568 | /* confdefs.h. */ |
9569 | _ACEOF | |
9570 | cat confdefs.h >>conftest.$ac_ext | |
9571 | cat >>conftest.$ac_ext <<_ACEOF | |
9572 | /* end confdefs.h. */ | |
9573 | $ac_includes_default | |
9574 | #include <$ac_header> | |
9575 | _ACEOF | |
9576 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9577 | if { (ac_try="$ac_compile" |
9578 | case "(($ac_try" in | |
9579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9580 | *) ac_try_echo=$ac_try;; | |
9581 | esac | |
ec6a6fbe AK |
9582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9583 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9584 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9585 | ac_status=$? |
8a2fc586 AK |
9586 | grep -v '^ *+' conftest.er1 >conftest.err |
9587 | rm -f conftest.er1 | |
9588 | cat conftest.err >&5 | |
ec6a6fbe | 9589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9590 | (exit $ac_status); } && { |
9591 | test -z "$ac_c_werror_flag" || | |
9592 | test ! -s conftest.err | |
9593 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9594 | ac_header_compiler=yes |
9595 | else | |
ec6a6fbe | 9596 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9597 | sed 's/^/| /' conftest.$ac_ext >&5 |
9598 | ||
7a197a62 | 9599 | ac_header_compiler=no |
ad6254c5 | 9600 | fi |
7a197a62 AK |
9601 | |
9602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9603 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9604 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9605 | |
9606 | # Is the header present? | |
ec6a6fbe AK |
9607 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9608 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9609 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9610 | /* confdefs.h. */ |
9611 | _ACEOF | |
9612 | cat confdefs.h >>conftest.$ac_ext | |
9613 | cat >>conftest.$ac_ext <<_ACEOF | |
9614 | /* end confdefs.h. */ | |
9615 | #include <$ac_header> | |
9616 | _ACEOF | |
7a197a62 AK |
9617 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9618 | case "(($ac_try" in | |
9619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9620 | *) ac_try_echo=$ac_try;; | |
9621 | esac | |
ec6a6fbe AK |
9622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9623 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9624 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9625 | ac_status=$? |
9626 | grep -v '^ *+' conftest.er1 >conftest.err | |
9627 | rm -f conftest.er1 | |
9628 | cat conftest.err >&5 | |
ec6a6fbe | 9629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9630 | (exit $ac_status); } >/dev/null && { |
9631 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9632 | test ! -s conftest.err | |
9633 | }; then | |
ad6254c5 AK |
9634 | ac_header_preproc=yes |
9635 | else | |
ec6a6fbe | 9636 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9637 | sed 's/^/| /' conftest.$ac_ext >&5 |
9638 | ||
9639 | ac_header_preproc=no | |
9640 | fi | |
7a197a62 | 9641 | |
ad6254c5 | 9642 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9643 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9644 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9645 | |
9646 | # So? What about this header? | |
8a2fc586 AK |
9647 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9648 | yes:no: ) | |
ec6a6fbe AK |
9649 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9650 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9651 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9652 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9653 | ac_header_preproc=yes |
ad6254c5 | 9654 | ;; |
8a2fc586 | 9655 | no:yes:* ) |
ec6a6fbe AK |
9656 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9657 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9658 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9659 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9660 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9661 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9662 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9663 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9664 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9665 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9666 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9667 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9668 | |
ad6254c5 AK |
9669 | ;; |
9670 | esac | |
ec6a6fbe AK |
9671 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9672 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9674 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9675 | else |
8a2fc586 | 9676 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9677 | fi |
ec6a6fbe AK |
9678 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9679 | $as_echo "$as_val"'` | |
9680 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9681 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9682 | |
9683 | fi | |
ec6a6fbe AK |
9684 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9685 | $as_echo "$as_val"'` | |
9686 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9687 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9688 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9689 | _ACEOF |
9690 | ||
9691 | fi | |
9692 | ||
9693 | done | |
9694 | ||
ec6a6fbe AK |
9695 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9696 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9697 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9698 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9699 | else |
9700 | if test "$cross_compiling" = yes; then | |
9701 | ac_cv_func_malloc_0_nonnull=no | |
9702 | else | |
9703 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9704 | /* confdefs.h. */ |
9705 | _ACEOF | |
9706 | cat confdefs.h >>conftest.$ac_ext | |
9707 | cat >>conftest.$ac_ext <<_ACEOF | |
9708 | /* end confdefs.h. */ | |
25fbec5b | 9709 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9710 | # include <stdlib.h> |
9711 | #else | |
9712 | char *malloc (); | |
9713 | #endif | |
9714 | ||
9715 | int | |
9716 | main () | |
9717 | { | |
7a197a62 | 9718 | return ! malloc (0); |
ad6254c5 AK |
9719 | ; |
9720 | return 0; | |
9721 | } | |
9722 | _ACEOF | |
9723 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9724 | if { (ac_try="$ac_link" |
9725 | case "(($ac_try" in | |
9726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9727 | *) ac_try_echo=$ac_try;; | |
9728 | esac | |
ec6a6fbe AK |
9729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9730 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9731 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9732 | ac_status=$? |
ec6a6fbe | 9733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9735 | { (case "(($ac_try" in |
9736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9737 | *) ac_try_echo=$ac_try;; | |
9738 | esac | |
ec6a6fbe AK |
9739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9740 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9741 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9742 | ac_status=$? |
ec6a6fbe | 9743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9744 | (exit $ac_status); }; }; then |
9745 | ac_cv_func_malloc_0_nonnull=yes | |
9746 | else | |
ec6a6fbe AK |
9747 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9748 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9749 | sed 's/^/| /' conftest.$ac_ext >&5 |
9750 | ||
9751 | ( exit $ac_status ) | |
9752 | ac_cv_func_malloc_0_nonnull=no | |
9753 | fi | |
ec6a6fbe | 9754 | rm -rf conftest.dSYM |
7a197a62 | 9755 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9756 | fi |
7a197a62 AK |
9757 | |
9758 | ||
ad6254c5 | 9759 | fi |
ec6a6fbe AK |
9760 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9761 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9762 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9763 | ||
9764 | cat >>confdefs.h <<\_ACEOF | |
9765 | #define HAVE_MALLOC 1 | |
9766 | _ACEOF | |
9767 | ||
9768 | else | |
9769 | cat >>confdefs.h <<\_ACEOF | |
9770 | #define HAVE_MALLOC 0 | |
9771 | _ACEOF | |
9772 | ||
7a197a62 | 9773 | case " $LIBOBJS " in |
8a2fc586 | 9774 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9775 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9776 | ;; | |
8a2fc586 AK |
9777 | esac |
9778 | ||
ad6254c5 AK |
9779 | |
9780 | cat >>confdefs.h <<\_ACEOF | |
9781 | #define malloc rpl_malloc | |
9782 | _ACEOF | |
9783 | ||
9784 | fi | |
9785 | ||
9786 | ||
9787 | ||
ec6a6fbe AK |
9788 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9789 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9790 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9791 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9792 | else |
9793 | if test "$cross_compiling" = yes; then | |
9794 | ac_cv_func_memcmp_working=no | |
9795 | else | |
9796 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9797 | /* confdefs.h. */ |
9798 | _ACEOF | |
9799 | cat confdefs.h >>conftest.$ac_ext | |
9800 | cat >>conftest.$ac_ext <<_ACEOF | |
9801 | /* end confdefs.h. */ | |
8a2fc586 | 9802 | $ac_includes_default |
ad6254c5 AK |
9803 | int |
9804 | main () | |
9805 | { | |
9806 | ||
9807 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9808 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9809 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9810 | return 1; |
ad6254c5 AK |
9811 | |
9812 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9813 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9814 | William Lewis provided this test program. */ | |
9815 | { | |
9816 | char foo[21]; | |
9817 | char bar[21]; | |
9818 | int i; | |
9819 | for (i = 0; i < 4; i++) | |
9820 | { | |
8a2fc586 AK |
9821 | char *a = foo + i; |
9822 | char *b = bar + i; | |
9823 | strcpy (a, "--------01111111"); | |
9824 | strcpy (b, "--------10000000"); | |
9825 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9826 | return 1; |
ad6254c5 | 9827 | } |
7a197a62 | 9828 | return 0; |
ad6254c5 AK |
9829 | } |
9830 | ||
9831 | ; | |
9832 | return 0; | |
9833 | } | |
9834 | _ACEOF | |
9835 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9836 | if { (ac_try="$ac_link" |
9837 | case "(($ac_try" in | |
9838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9839 | *) ac_try_echo=$ac_try;; | |
9840 | esac | |
ec6a6fbe AK |
9841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9842 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9843 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9844 | ac_status=$? |
ec6a6fbe | 9845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9846 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9847 | { (case "(($ac_try" in |
9848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9849 | *) ac_try_echo=$ac_try;; | |
9850 | esac | |
ec6a6fbe AK |
9851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9852 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9853 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9854 | ac_status=$? |
ec6a6fbe | 9855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9856 | (exit $ac_status); }; }; then |
9857 | ac_cv_func_memcmp_working=yes | |
9858 | else | |
ec6a6fbe AK |
9859 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9860 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9861 | sed 's/^/| /' conftest.$ac_ext >&5 |
9862 | ||
9863 | ( exit $ac_status ) | |
9864 | ac_cv_func_memcmp_working=no | |
9865 | fi | |
ec6a6fbe | 9866 | rm -rf conftest.dSYM |
7a197a62 | 9867 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9868 | fi |
7a197a62 AK |
9869 | |
9870 | ||
ad6254c5 | 9871 | fi |
ec6a6fbe AK |
9872 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9873 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9874 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9875 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9876 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9877 | ;; | |
8a2fc586 AK |
9878 | esac |
9879 | ||
ad6254c5 AK |
9880 | |
9881 | ||
9882 | ||
9883 | for ac_header in stdlib.h unistd.h | |
9884 | do | |
ec6a6fbe | 9885 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9887 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9888 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9890 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9891 | fi |
ec6a6fbe AK |
9892 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9893 | $as_echo "$as_val"'` | |
9894 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9895 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9896 | else |
9897 | # Is the header compilable? | |
ec6a6fbe AK |
9898 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9899 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9900 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9901 | /* confdefs.h. */ |
9902 | _ACEOF | |
9903 | cat confdefs.h >>conftest.$ac_ext | |
9904 | cat >>conftest.$ac_ext <<_ACEOF | |
9905 | /* end confdefs.h. */ | |
9906 | $ac_includes_default | |
9907 | #include <$ac_header> | |
9908 | _ACEOF | |
9909 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9910 | if { (ac_try="$ac_compile" |
9911 | case "(($ac_try" in | |
9912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9913 | *) ac_try_echo=$ac_try;; | |
9914 | esac | |
ec6a6fbe AK |
9915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9916 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9917 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9918 | ac_status=$? |
8a2fc586 AK |
9919 | grep -v '^ *+' conftest.er1 >conftest.err |
9920 | rm -f conftest.er1 | |
9921 | cat conftest.err >&5 | |
ec6a6fbe | 9922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9923 | (exit $ac_status); } && { |
9924 | test -z "$ac_c_werror_flag" || | |
9925 | test ! -s conftest.err | |
9926 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9927 | ac_header_compiler=yes |
9928 | else | |
ec6a6fbe | 9929 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9930 | sed 's/^/| /' conftest.$ac_ext >&5 |
9931 | ||
7a197a62 | 9932 | ac_header_compiler=no |
ad6254c5 | 9933 | fi |
7a197a62 AK |
9934 | |
9935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9936 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9937 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9938 | |
9939 | # Is the header present? | |
ec6a6fbe AK |
9940 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9941 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9942 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9943 | /* confdefs.h. */ |
9944 | _ACEOF | |
9945 | cat confdefs.h >>conftest.$ac_ext | |
9946 | cat >>conftest.$ac_ext <<_ACEOF | |
9947 | /* end confdefs.h. */ | |
9948 | #include <$ac_header> | |
9949 | _ACEOF | |
7a197a62 AK |
9950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9951 | case "(($ac_try" in | |
9952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9953 | *) ac_try_echo=$ac_try;; | |
9954 | esac | |
ec6a6fbe AK |
9955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9956 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9957 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9958 | ac_status=$? |
9959 | grep -v '^ *+' conftest.er1 >conftest.err | |
9960 | rm -f conftest.er1 | |
9961 | cat conftest.err >&5 | |
ec6a6fbe | 9962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9963 | (exit $ac_status); } >/dev/null && { |
9964 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9965 | test ! -s conftest.err | |
9966 | }; then | |
ad6254c5 AK |
9967 | ac_header_preproc=yes |
9968 | else | |
ec6a6fbe | 9969 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9970 | sed 's/^/| /' conftest.$ac_ext >&5 |
9971 | ||
9972 | ac_header_preproc=no | |
9973 | fi | |
7a197a62 | 9974 | |
ad6254c5 | 9975 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9976 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9977 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9978 | |
9979 | # So? What about this header? | |
8a2fc586 AK |
9980 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9981 | yes:no: ) | |
ec6a6fbe AK |
9982 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9983 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9984 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9985 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9986 | ac_header_preproc=yes |
ad6254c5 | 9987 | ;; |
8a2fc586 | 9988 | no:yes:* ) |
ec6a6fbe AK |
9989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9990 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9992 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9994 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9996 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9998 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9999 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10000 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10001 | |
ad6254c5 AK |
10002 | ;; |
10003 | esac | |
ec6a6fbe AK |
10004 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10005 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10006 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10007 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10008 | else |
8a2fc586 | 10009 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10010 | fi |
ec6a6fbe AK |
10011 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10012 | $as_echo "$as_val"'` | |
10013 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10014 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10015 | |
10016 | fi | |
ec6a6fbe AK |
10017 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10018 | $as_echo "$as_val"'` | |
10019 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10020 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10021 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10022 | _ACEOF |
10023 | ||
10024 | fi | |
10025 | ||
10026 | done | |
10027 | ||
10028 | ||
10029 | for ac_func in getpagesize | |
10030 | do | |
ec6a6fbe AK |
10031 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10032 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10033 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10034 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10035 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10036 | else |
10037 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10038 | /* confdefs.h. */ |
10039 | _ACEOF | |
10040 | cat confdefs.h >>conftest.$ac_ext | |
10041 | cat >>conftest.$ac_ext <<_ACEOF | |
10042 | /* end confdefs.h. */ | |
8a2fc586 AK |
10043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10045 | #define $ac_func innocuous_$ac_func | |
10046 | ||
ad6254c5 AK |
10047 | /* System header to define __stub macros and hopefully few prototypes, |
10048 | which can conflict with char $ac_func (); below. | |
10049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10050 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10051 | |
ad6254c5 AK |
10052 | #ifdef __STDC__ |
10053 | # include <limits.h> | |
10054 | #else | |
10055 | # include <assert.h> | |
10056 | #endif | |
8a2fc586 AK |
10057 | |
10058 | #undef $ac_func | |
10059 | ||
7a197a62 AK |
10060 | /* Override any GCC internal prototype to avoid an error. |
10061 | Use char because int might match the return type of a GCC | |
10062 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10063 | #ifdef __cplusplus |
10064 | extern "C" | |
ad6254c5 | 10065 | #endif |
ad6254c5 AK |
10066 | char $ac_func (); |
10067 | /* The GNU C library defines this for functions which it implements | |
10068 | to always fail with ENOSYS. Some functions are actually named | |
10069 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10070 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10071 | choke me |
ad6254c5 AK |
10072 | #endif |
10073 | ||
10074 | int | |
10075 | main () | |
10076 | { | |
7a197a62 | 10077 | return $ac_func (); |
ad6254c5 AK |
10078 | ; |
10079 | return 0; | |
10080 | } | |
10081 | _ACEOF | |
10082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10083 | if { (ac_try="$ac_link" |
10084 | case "(($ac_try" in | |
10085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10086 | *) ac_try_echo=$ac_try;; | |
10087 | esac | |
ec6a6fbe AK |
10088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10089 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10090 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10091 | ac_status=$? |
8a2fc586 AK |
10092 | grep -v '^ *+' conftest.er1 >conftest.err |
10093 | rm -f conftest.er1 | |
10094 | cat conftest.err >&5 | |
ec6a6fbe | 10095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10096 | (exit $ac_status); } && { |
10097 | test -z "$ac_c_werror_flag" || | |
10098 | test ! -s conftest.err | |
ec6a6fbe AK |
10099 | } && test -s conftest$ac_exeext && { |
10100 | test "$cross_compiling" = yes || | |
10101 | $as_test_x conftest$ac_exeext | |
10102 | }; then | |
ad6254c5 AK |
10103 | eval "$as_ac_var=yes" |
10104 | else | |
ec6a6fbe | 10105 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10106 | sed 's/^/| /' conftest.$ac_ext >&5 |
10107 | ||
7a197a62 | 10108 | eval "$as_ac_var=no" |
ad6254c5 | 10109 | fi |
7a197a62 | 10110 | |
ec6a6fbe | 10111 | rm -rf conftest.dSYM |
25fbec5b | 10112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10113 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10114 | fi |
ec6a6fbe AK |
10115 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10116 | $as_echo "$as_val"'` | |
10117 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10118 | $as_echo "$ac_res" >&6; } | |
10119 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10120 | $as_echo "$as_val"'` | |
10121 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10122 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10123 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10124 | _ACEOF |
10125 | ||
10126 | fi | |
10127 | done | |
10128 | ||
ec6a6fbe AK |
10129 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10130 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10131 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10132 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10133 | else |
10134 | if test "$cross_compiling" = yes; then | |
10135 | ac_cv_func_mmap_fixed_mapped=no | |
10136 | else | |
10137 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10138 | /* confdefs.h. */ |
10139 | _ACEOF | |
10140 | cat confdefs.h >>conftest.$ac_ext | |
10141 | cat >>conftest.$ac_ext <<_ACEOF | |
10142 | /* end confdefs.h. */ | |
10143 | $ac_includes_default | |
10144 | /* malloc might have been renamed as rpl_malloc. */ | |
10145 | #undef malloc | |
10146 | ||
10147 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10148 | Here is a matrix of mmap possibilities: | |
10149 | mmap private not fixed | |
10150 | mmap private fixed at somewhere currently unmapped | |
10151 | mmap private fixed at somewhere already mapped | |
10152 | mmap shared not fixed | |
10153 | mmap shared fixed at somewhere currently unmapped | |
10154 | mmap shared fixed at somewhere already mapped | |
10155 | For private mappings, we should verify that changes cannot be read() | |
10156 | back from the file, nor mmap's back from the file at a different | |
10157 | address. (There have been systems where private was not correctly | |
10158 | implemented like the infamous i386 svr4.0, and systems where the | |
10159 | VM page cache was not coherent with the file system buffer cache | |
10160 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10161 | For shared mappings, we should conversely verify that changes get | |
10162 | propagated back to all the places they're supposed to be. | |
10163 | ||
10164 | Grep wants private fixed already mapped. | |
10165 | The main things grep needs to know about mmap are: | |
10166 | * does it exist and is it safe to write into the mmap'd area | |
10167 | * how to use it (BSD variants) */ | |
10168 | ||
10169 | #include <fcntl.h> | |
10170 | #include <sys/mman.h> | |
10171 | ||
25fbec5b | 10172 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10173 | char *malloc (); |
10174 | #endif | |
10175 | ||
10176 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10177 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10178 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10179 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10180 | # define HAVE_SYS_PARAM_H 1 |
10181 | # endif | |
10182 | ||
10183 | # ifdef _SC_PAGESIZE | |
10184 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10185 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10186 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10187 | # include <sys/param.h> |
10188 | # ifdef EXEC_PAGESIZE | |
10189 | # define getpagesize() EXEC_PAGESIZE | |
10190 | # else /* no EXEC_PAGESIZE */ | |
10191 | # ifdef NBPG | |
10192 | # define getpagesize() NBPG * CLSIZE | |
10193 | # ifndef CLSIZE | |
10194 | # define CLSIZE 1 | |
10195 | # endif /* no CLSIZE */ | |
10196 | # else /* no NBPG */ | |
10197 | # ifdef NBPC | |
10198 | # define getpagesize() NBPC | |
10199 | # else /* no NBPC */ | |
10200 | # ifdef PAGESIZE | |
10201 | # define getpagesize() PAGESIZE | |
10202 | # endif /* PAGESIZE */ | |
10203 | # endif /* no NBPC */ | |
10204 | # endif /* no NBPG */ | |
10205 | # endif /* no EXEC_PAGESIZE */ | |
10206 | # else /* no HAVE_SYS_PARAM_H */ | |
10207 | # define getpagesize() 8192 /* punt totally */ | |
10208 | # endif /* no HAVE_SYS_PARAM_H */ | |
10209 | # endif /* no _SC_PAGESIZE */ | |
10210 | ||
10211 | #endif /* no HAVE_GETPAGESIZE */ | |
10212 | ||
10213 | int | |
10214 | main () | |
10215 | { | |
10216 | char *data, *data2, *data3; | |
10217 | int i, pagesize; | |
10218 | int fd; | |
10219 | ||
10220 | pagesize = getpagesize (); | |
10221 | ||
10222 | /* First, make a file with some known garbage in it. */ | |
10223 | data = (char *) malloc (pagesize); | |
10224 | if (!data) | |
7a197a62 | 10225 | return 1; |
ad6254c5 AK |
10226 | for (i = 0; i < pagesize; ++i) |
10227 | *(data + i) = rand (); | |
10228 | umask (0); | |
10229 | fd = creat ("conftest.mmap", 0600); | |
10230 | if (fd < 0) | |
7a197a62 | 10231 | return 1; |
ad6254c5 | 10232 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10233 | return 1; |
ad6254c5 AK |
10234 | close (fd); |
10235 | ||
10236 | /* Next, try to mmap the file at a fixed address which already has | |
10237 | something else allocated at it. If we can, also make sure that | |
10238 | we see the same garbage. */ | |
10239 | fd = open ("conftest.mmap", O_RDWR); | |
10240 | if (fd < 0) | |
7a197a62 | 10241 | return 1; |
ad6254c5 AK |
10242 | data2 = (char *) malloc (2 * pagesize); |
10243 | if (!data2) | |
7a197a62 AK |
10244 | return 1; |
10245 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10246 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10247 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10248 | return 1; |
ad6254c5 AK |
10249 | for (i = 0; i < pagesize; ++i) |
10250 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10251 | return 1; |
ad6254c5 | 10252 | |
d911ec67 AK |
10253 | /* Finally, make sure that changes to the mapped area do not |
10254 | percolate back to the file as seen by read(). (This is a bug on | |
10255 | some variants of i386 svr4.0.) */ | |
10256 | for (i = 0; i < pagesize; ++i) | |
10257 | *(data2 + i) = *(data2 + i) + 1; | |
10258 | data3 = (char *) malloc (pagesize); | |
10259 | if (!data3) | |
10260 | return 1; | |
10261 | if (read (fd, data3, pagesize) != pagesize) | |
10262 | return 1; | |
10263 | for (i = 0; i < pagesize; ++i) | |
10264 | if (*(data + i) != *(data3 + i)) | |
10265 | return 1; | |
10266 | close (fd); | |
10267 | return 0; | |
10268 | } | |
10269 | _ACEOF | |
10270 | rm -f conftest$ac_exeext | |
10271 | if { (ac_try="$ac_link" | |
10272 | case "(($ac_try" in | |
10273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10274 | *) ac_try_echo=$ac_try;; | |
10275 | esac | |
10276 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10277 | $as_echo "$ac_try_echo") >&5 | |
10278 | (eval "$ac_link") 2>&5 | |
10279 | ac_status=$? | |
10280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10281 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10282 | { (case "(($ac_try" in | |
10283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10284 | *) ac_try_echo=$ac_try;; | |
10285 | esac | |
10286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10287 | $as_echo "$ac_try_echo") >&5 | |
10288 | (eval "$ac_try") 2>&5 | |
10289 | ac_status=$? | |
10290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10291 | (exit $ac_status); }; }; then | |
10292 | ac_cv_func_mmap_fixed_mapped=yes | |
10293 | else | |
10294 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10295 | $as_echo "$as_me: failed program was:" >&5 | |
10296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10297 | ||
10298 | ( exit $ac_status ) | |
10299 | ac_cv_func_mmap_fixed_mapped=no | |
10300 | fi | |
10301 | rm -rf conftest.dSYM | |
10302 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10303 | fi | |
10304 | ||
10305 | ||
10306 | fi | |
10307 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10308 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10309 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10310 | ||
10311 | cat >>confdefs.h <<\_ACEOF | |
10312 | #define HAVE_MMAP 1 | |
10313 | _ACEOF | |
10314 | ||
10315 | fi | |
10316 | rm -f conftest.mmap | |
10317 | ||
10318 | ||
10319 | for ac_header in stdlib.h | |
10320 | do | |
10321 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10323 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10324 | $as_echo_n "checking for $ac_header... " >&6; } | |
10325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10326 | $as_echo_n "(cached) " >&6 | |
10327 | fi | |
10328 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10329 | $as_echo "$as_val"'` | |
10330 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10331 | $as_echo "$ac_res" >&6; } | |
10332 | else | |
10333 | # Is the header compilable? | |
10334 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10335 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10336 | cat >conftest.$ac_ext <<_ACEOF | |
10337 | /* confdefs.h. */ | |
10338 | _ACEOF | |
10339 | cat confdefs.h >>conftest.$ac_ext | |
10340 | cat >>conftest.$ac_ext <<_ACEOF | |
10341 | /* end confdefs.h. */ | |
10342 | $ac_includes_default | |
10343 | #include <$ac_header> | |
10344 | _ACEOF | |
10345 | rm -f conftest.$ac_objext | |
10346 | if { (ac_try="$ac_compile" | |
10347 | case "(($ac_try" in | |
10348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10349 | *) ac_try_echo=$ac_try;; | |
10350 | esac | |
10351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10352 | $as_echo "$ac_try_echo") >&5 | |
10353 | (eval "$ac_compile") 2>conftest.er1 | |
10354 | ac_status=$? | |
10355 | grep -v '^ *+' conftest.er1 >conftest.err | |
10356 | rm -f conftest.er1 | |
10357 | cat conftest.err >&5 | |
10358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10359 | (exit $ac_status); } && { | |
10360 | test -z "$ac_c_werror_flag" || | |
10361 | test ! -s conftest.err | |
10362 | } && test -s conftest.$ac_objext; then | |
10363 | ac_header_compiler=yes | |
10364 | else | |
10365 | $as_echo "$as_me: failed program was:" >&5 | |
10366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10367 | ||
10368 | ac_header_compiler=no | |
10369 | fi | |
10370 | ||
10371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10372 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10373 | $as_echo "$ac_header_compiler" >&6; } | |
10374 | ||
10375 | # Is the header present? | |
10376 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10377 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10378 | cat >conftest.$ac_ext <<_ACEOF | |
10379 | /* confdefs.h. */ | |
10380 | _ACEOF | |
10381 | cat confdefs.h >>conftest.$ac_ext | |
10382 | cat >>conftest.$ac_ext <<_ACEOF | |
10383 | /* end confdefs.h. */ | |
10384 | #include <$ac_header> | |
10385 | _ACEOF | |
10386 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10387 | case "(($ac_try" in | |
10388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10389 | *) ac_try_echo=$ac_try;; | |
10390 | esac | |
10391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10392 | $as_echo "$ac_try_echo") >&5 | |
10393 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10394 | ac_status=$? | |
10395 | grep -v '^ *+' conftest.er1 >conftest.err | |
10396 | rm -f conftest.er1 | |
10397 | cat conftest.err >&5 | |
10398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10399 | (exit $ac_status); } >/dev/null && { | |
10400 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10401 | test ! -s conftest.err | |
10402 | }; then | |
10403 | ac_header_preproc=yes | |
10404 | else | |
10405 | $as_echo "$as_me: failed program was:" >&5 | |
10406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10407 | ||
10408 | ac_header_preproc=no | |
10409 | fi | |
10410 | ||
10411 | rm -f conftest.err conftest.$ac_ext | |
10412 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10413 | $as_echo "$ac_header_preproc" >&6; } | |
10414 | ||
10415 | # So? What about this header? | |
10416 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10417 | yes:no: ) | |
10418 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10419 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10420 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10421 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10422 | ac_header_preproc=yes | |
10423 | ;; | |
10424 | no:yes:* ) | |
10425 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10426 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10427 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10428 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10430 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10432 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10433 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10434 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10436 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10437 | ||
10438 | ;; | |
10439 | esac | |
10440 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10441 | $as_echo_n "checking for $ac_header... " >&6; } | |
10442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10443 | $as_echo_n "(cached) " >&6 | |
10444 | else | |
10445 | eval "$as_ac_Header=\$ac_header_preproc" | |
10446 | fi | |
10447 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10448 | $as_echo "$as_val"'` | |
10449 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10450 | $as_echo "$ac_res" >&6; } | |
10451 | ||
10452 | fi | |
10453 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10454 | $as_echo "$as_val"'` | |
10455 | if test "x$as_val" = x""yes; then | |
10456 | cat >>confdefs.h <<_ACEOF | |
10457 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10458 | _ACEOF | |
10459 | ||
10460 | fi | |
10461 | ||
10462 | done | |
10463 | ||
10464 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10465 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10466 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10467 | $as_echo_n "(cached) " >&6 | |
10468 | else | |
10469 | if test "$cross_compiling" = yes; then | |
10470 | ac_cv_func_realloc_0_nonnull=no | |
10471 | else | |
10472 | cat >conftest.$ac_ext <<_ACEOF | |
10473 | /* confdefs.h. */ | |
10474 | _ACEOF | |
10475 | cat confdefs.h >>conftest.$ac_ext | |
10476 | cat >>conftest.$ac_ext <<_ACEOF | |
10477 | /* end confdefs.h. */ | |
10478 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10479 | # include <stdlib.h> | |
10480 | #else | |
10481 | char *realloc (); | |
10482 | #endif | |
10483 | ||
10484 | int | |
10485 | main () | |
10486 | { | |
10487 | return ! realloc (0, 0); | |
10488 | ; | |
7a197a62 | 10489 | return 0; |
ad6254c5 AK |
10490 | } |
10491 | _ACEOF | |
10492 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10493 | if { (ac_try="$ac_link" |
10494 | case "(($ac_try" in | |
10495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10496 | *) ac_try_echo=$ac_try;; | |
10497 | esac | |
ec6a6fbe AK |
10498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10499 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10500 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10501 | ac_status=$? |
ec6a6fbe | 10502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10504 | { (case "(($ac_try" in |
10505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10506 | *) ac_try_echo=$ac_try;; | |
10507 | esac | |
ec6a6fbe AK |
10508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10509 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10510 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10511 | ac_status=$? |
ec6a6fbe | 10512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10513 | (exit $ac_status); }; }; then |
d911ec67 | 10514 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10515 | else |
ec6a6fbe AK |
10516 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10517 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10518 | sed 's/^/| /' conftest.$ac_ext >&5 |
10519 | ||
10520 | ( exit $ac_status ) | |
d911ec67 | 10521 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10522 | fi |
ec6a6fbe | 10523 | rm -rf conftest.dSYM |
7a197a62 | 10524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10525 | fi |
7a197a62 AK |
10526 | |
10527 | ||
ad6254c5 | 10528 | fi |
d911ec67 AK |
10529 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10530 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10531 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10532 | |
10533 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10534 | #define HAVE_REALLOC 1 |
10535 | _ACEOF | |
10536 | ||
10537 | else | |
10538 | cat >>confdefs.h <<\_ACEOF | |
10539 | #define HAVE_REALLOC 0 | |
10540 | _ACEOF | |
10541 | ||
10542 | case " $LIBOBJS " in | |
10543 | *" realloc.$ac_objext "* ) ;; | |
10544 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10545 | ;; | |
10546 | esac | |
10547 | ||
10548 | ||
10549 | cat >>confdefs.h <<\_ACEOF | |
10550 | #define realloc rpl_realloc | |
ad6254c5 AK |
10551 | _ACEOF |
10552 | ||
10553 | fi | |
d911ec67 AK |
10554 | |
10555 | ||
ad6254c5 | 10556 | |
ec6a6fbe AK |
10557 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10558 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10559 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10560 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10561 | else |
10562 | if test "$cross_compiling" = yes; then | |
10563 | ac_cv_func_stat_empty_string_bug=yes | |
10564 | else | |
10565 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10566 | /* confdefs.h. */ |
10567 | _ACEOF | |
10568 | cat confdefs.h >>conftest.$ac_ext | |
10569 | cat >>conftest.$ac_ext <<_ACEOF | |
10570 | /* end confdefs.h. */ | |
10571 | $ac_includes_default | |
10572 | int | |
10573 | main () | |
10574 | { | |
10575 | struct stat sbuf; | |
7a197a62 | 10576 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10577 | ; |
10578 | return 0; | |
10579 | } | |
10580 | _ACEOF | |
10581 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10582 | if { (ac_try="$ac_link" |
10583 | case "(($ac_try" in | |
10584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10585 | *) ac_try_echo=$ac_try;; | |
10586 | esac | |
ec6a6fbe AK |
10587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10588 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10589 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10590 | ac_status=$? |
ec6a6fbe | 10591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10592 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10593 | { (case "(($ac_try" in |
10594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10595 | *) ac_try_echo=$ac_try;; | |
10596 | esac | |
ec6a6fbe AK |
10597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10598 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10599 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10600 | ac_status=$? |
ec6a6fbe | 10601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10602 | (exit $ac_status); }; }; then |
7a197a62 | 10603 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10604 | else |
ec6a6fbe AK |
10605 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10606 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10607 | sed 's/^/| /' conftest.$ac_ext >&5 |
10608 | ||
10609 | ( exit $ac_status ) | |
7a197a62 | 10610 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10611 | fi |
ec6a6fbe | 10612 | rm -rf conftest.dSYM |
7a197a62 | 10613 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10614 | fi |
7a197a62 AK |
10615 | |
10616 | ||
ad6254c5 | 10617 | fi |
ec6a6fbe AK |
10618 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10619 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10620 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10621 | case " $LIBOBJS " in |
8a2fc586 | 10622 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10623 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10624 | ;; | |
8a2fc586 AK |
10625 | esac |
10626 | ||
ad6254c5 AK |
10627 | |
10628 | cat >>confdefs.h <<_ACEOF | |
10629 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10630 | _ACEOF | |
10631 | ||
10632 | fi | |
10633 | ||
ec6a6fbe AK |
10634 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10635 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10636 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10637 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10638 | else |
10639 | if test "$cross_compiling" = yes; then | |
10640 | ac_cv_func_strtod=no | |
10641 | else | |
10642 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10643 | /* confdefs.h. */ |
10644 | _ACEOF | |
10645 | cat confdefs.h >>conftest.$ac_ext | |
10646 | cat >>conftest.$ac_ext <<_ACEOF | |
10647 | /* end confdefs.h. */ | |
10648 | ||
7a197a62 AK |
10649 | $ac_includes_default |
10650 | #ifndef strtod | |
ad6254c5 | 10651 | double strtod (); |
7a197a62 | 10652 | #endif |
ad6254c5 AK |
10653 | int |
10654 | main() | |
10655 | { | |
10656 | { | |
10657 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10658 | char *string = " +69"; | |
10659 | char *term; | |
10660 | double value; | |
10661 | value = strtod (string, &term); | |
10662 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10663 | return 1; |
ad6254c5 AK |
10664 | } |
10665 | ||
10666 | { | |
10667 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10668 | terminating character under some conditions. */ | |
10669 | char *string = "NaN"; | |
10670 | char *term; | |
10671 | strtod (string, &term); | |
10672 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10673 | return 1; |
ad6254c5 | 10674 | } |
7a197a62 | 10675 | return 0; |
ad6254c5 AK |
10676 | } |
10677 | ||
10678 | _ACEOF | |
10679 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10680 | if { (ac_try="$ac_link" |
10681 | case "(($ac_try" in | |
10682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10683 | *) ac_try_echo=$ac_try;; | |
10684 | esac | |
ec6a6fbe AK |
10685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10686 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10687 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10688 | ac_status=$? |
ec6a6fbe | 10689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10690 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10691 | { (case "(($ac_try" in |
10692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10693 | *) ac_try_echo=$ac_try;; | |
10694 | esac | |
ec6a6fbe AK |
10695 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10696 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10697 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10698 | ac_status=$? |
ec6a6fbe | 10699 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10700 | (exit $ac_status); }; }; then |
10701 | ac_cv_func_strtod=yes | |
10702 | else | |
ec6a6fbe AK |
10703 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10704 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10705 | sed 's/^/| /' conftest.$ac_ext >&5 |
10706 | ||
10707 | ( exit $ac_status ) | |
10708 | ac_cv_func_strtod=no | |
10709 | fi | |
ec6a6fbe | 10710 | rm -rf conftest.dSYM |
7a197a62 | 10711 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10712 | fi |
7a197a62 AK |
10713 | |
10714 | ||
ad6254c5 | 10715 | fi |
ec6a6fbe AK |
10716 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10717 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10718 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10719 | case " $LIBOBJS " in |
8a2fc586 | 10720 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10721 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10722 | ;; | |
8a2fc586 AK |
10723 | esac |
10724 | ||
ec6a6fbe AK |
10725 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10726 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10727 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10728 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10729 | else |
10730 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10731 | /* confdefs.h. */ |
10732 | _ACEOF | |
10733 | cat confdefs.h >>conftest.$ac_ext | |
10734 | cat >>conftest.$ac_ext <<_ACEOF | |
10735 | /* end confdefs.h. */ | |
8a2fc586 AK |
10736 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10738 | #define pow innocuous_pow | |
10739 | ||
ad6254c5 AK |
10740 | /* System header to define __stub macros and hopefully few prototypes, |
10741 | which can conflict with char pow (); below. | |
10742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10743 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10744 | |
ad6254c5 AK |
10745 | #ifdef __STDC__ |
10746 | # include <limits.h> | |
10747 | #else | |
10748 | # include <assert.h> | |
10749 | #endif | |
8a2fc586 AK |
10750 | |
10751 | #undef pow | |
10752 | ||
7a197a62 AK |
10753 | /* Override any GCC internal prototype to avoid an error. |
10754 | Use char because int might match the return type of a GCC | |
10755 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10756 | #ifdef __cplusplus |
10757 | extern "C" | |
ad6254c5 | 10758 | #endif |
ad6254c5 AK |
10759 | char pow (); |
10760 | /* The GNU C library defines this for functions which it implements | |
10761 | to always fail with ENOSYS. Some functions are actually named | |
10762 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10763 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10764 | choke me |
ad6254c5 AK |
10765 | #endif |
10766 | ||
10767 | int | |
10768 | main () | |
10769 | { | |
7a197a62 | 10770 | return pow (); |
ad6254c5 AK |
10771 | ; |
10772 | return 0; | |
10773 | } | |
10774 | _ACEOF | |
10775 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10776 | if { (ac_try="$ac_link" |
10777 | case "(($ac_try" in | |
10778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10779 | *) ac_try_echo=$ac_try;; | |
10780 | esac | |
ec6a6fbe AK |
10781 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10782 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10783 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10784 | ac_status=$? |
8a2fc586 AK |
10785 | grep -v '^ *+' conftest.er1 >conftest.err |
10786 | rm -f conftest.er1 | |
10787 | cat conftest.err >&5 | |
ec6a6fbe | 10788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10789 | (exit $ac_status); } && { |
10790 | test -z "$ac_c_werror_flag" || | |
10791 | test ! -s conftest.err | |
ec6a6fbe AK |
10792 | } && test -s conftest$ac_exeext && { |
10793 | test "$cross_compiling" = yes || | |
10794 | $as_test_x conftest$ac_exeext | |
10795 | }; then | |
ad6254c5 AK |
10796 | ac_cv_func_pow=yes |
10797 | else | |
ec6a6fbe | 10798 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10799 | sed 's/^/| /' conftest.$ac_ext >&5 |
10800 | ||
7a197a62 | 10801 | ac_cv_func_pow=no |
ad6254c5 | 10802 | fi |
7a197a62 | 10803 | |
ec6a6fbe | 10804 | rm -rf conftest.dSYM |
25fbec5b | 10805 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10806 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10807 | fi |
ec6a6fbe AK |
10808 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10809 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10810 | |
10811 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10812 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10813 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10814 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10815 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10816 | else |
10817 | ac_check_lib_save_LIBS=$LIBS | |
10818 | LIBS="-lm $LIBS" | |
10819 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10820 | /* confdefs.h. */ |
10821 | _ACEOF | |
10822 | cat confdefs.h >>conftest.$ac_ext | |
10823 | cat >>conftest.$ac_ext <<_ACEOF | |
10824 | /* end confdefs.h. */ | |
10825 | ||
7a197a62 AK |
10826 | /* Override any GCC internal prototype to avoid an error. |
10827 | Use char because int might match the return type of a GCC | |
10828 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10829 | #ifdef __cplusplus |
10830 | extern "C" | |
10831 | #endif | |
ad6254c5 AK |
10832 | char pow (); |
10833 | int | |
10834 | main () | |
10835 | { | |
7a197a62 | 10836 | return pow (); |
ad6254c5 AK |
10837 | ; |
10838 | return 0; | |
10839 | } | |
10840 | _ACEOF | |
10841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10842 | if { (ac_try="$ac_link" |
10843 | case "(($ac_try" in | |
10844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10845 | *) ac_try_echo=$ac_try;; | |
10846 | esac | |
ec6a6fbe AK |
10847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10848 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10849 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10850 | ac_status=$? |
8a2fc586 AK |
10851 | grep -v '^ *+' conftest.er1 >conftest.err |
10852 | rm -f conftest.er1 | |
10853 | cat conftest.err >&5 | |
ec6a6fbe | 10854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10855 | (exit $ac_status); } && { |
10856 | test -z "$ac_c_werror_flag" || | |
10857 | test ! -s conftest.err | |
ec6a6fbe AK |
10858 | } && test -s conftest$ac_exeext && { |
10859 | test "$cross_compiling" = yes || | |
10860 | $as_test_x conftest$ac_exeext | |
10861 | }; then | |
ad6254c5 AK |
10862 | ac_cv_lib_m_pow=yes |
10863 | else | |
ec6a6fbe | 10864 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10865 | sed 's/^/| /' conftest.$ac_ext >&5 |
10866 | ||
7a197a62 | 10867 | ac_cv_lib_m_pow=no |
ad6254c5 | 10868 | fi |
7a197a62 | 10869 | |
ec6a6fbe | 10870 | rm -rf conftest.dSYM |
25fbec5b | 10871 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10872 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10873 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10874 | fi |
ec6a6fbe AK |
10875 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10876 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10877 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10878 | POW_LIB=-lm |
10879 | else | |
ec6a6fbe AK |
10880 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10881 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10882 | fi |
72b2cb61 | 10883 | |
d0191583 | 10884 | fi |
72b2cb61 | 10885 | |
ad6254c5 AK |
10886 | fi |
10887 | ||
ad6254c5 | 10888 | |
d0191583 JM |
10889 | for ac_func in vprintf |
10890 | do | |
ec6a6fbe AK |
10891 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10892 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10893 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10894 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10895 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10896 | else |
d0191583 JM |
10897 | cat >conftest.$ac_ext <<_ACEOF |
10898 | /* confdefs.h. */ | |
10899 | _ACEOF | |
10900 | cat confdefs.h >>conftest.$ac_ext | |
10901 | cat >>conftest.$ac_ext <<_ACEOF | |
10902 | /* end confdefs.h. */ | |
10903 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10905 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10906 | |
d0191583 JM |
10907 | /* System header to define __stub macros and hopefully few prototypes, |
10908 | which can conflict with char $ac_func (); below. | |
10909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10910 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10911 | |
d0191583 JM |
10912 | #ifdef __STDC__ |
10913 | # include <limits.h> | |
10914 | #else | |
10915 | # include <assert.h> | |
10916 | #endif | |
ad6254c5 | 10917 | |
d0191583 | 10918 | #undef $ac_func |
72b2cb61 | 10919 | |
d0191583 JM |
10920 | /* Override any GCC internal prototype to avoid an error. |
10921 | Use char because int might match the return type of a GCC | |
10922 | builtin and then its argument prototype would still apply. */ | |
10923 | #ifdef __cplusplus | |
10924 | extern "C" | |
10925 | #endif | |
10926 | char $ac_func (); | |
10927 | /* The GNU C library defines this for functions which it implements | |
10928 | to always fail with ENOSYS. Some functions are actually named | |
10929 | something starting with __ and the normal name is an alias. */ | |
10930 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10931 | choke me | |
10932 | #endif | |
10933 | ||
10934 | int | |
10935 | main () | |
10936 | { | |
10937 | return $ac_func (); | |
10938 | ; | |
10939 | return 0; | |
10940 | } | |
72b2cb61 | 10941 | _ACEOF |
d0191583 JM |
10942 | rm -f conftest.$ac_objext conftest$ac_exeext |
10943 | if { (ac_try="$ac_link" | |
10944 | case "(($ac_try" in | |
10945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10946 | *) ac_try_echo=$ac_try;; | |
10947 | esac | |
ec6a6fbe AK |
10948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10949 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10950 | (eval "$ac_link") 2>conftest.er1 |
10951 | ac_status=$? | |
10952 | grep -v '^ *+' conftest.er1 >conftest.err | |
10953 | rm -f conftest.er1 | |
10954 | cat conftest.err >&5 | |
ec6a6fbe | 10955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10956 | (exit $ac_status); } && { |
10957 | test -z "$ac_c_werror_flag" || | |
10958 | test ! -s conftest.err | |
ec6a6fbe AK |
10959 | } && test -s conftest$ac_exeext && { |
10960 | test "$cross_compiling" = yes || | |
10961 | $as_test_x conftest$ac_exeext | |
10962 | }; then | |
d0191583 JM |
10963 | eval "$as_ac_var=yes" |
10964 | else | |
ec6a6fbe | 10965 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10966 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10967 | |
d0191583 | 10968 | eval "$as_ac_var=no" |
ad6254c5 AK |
10969 | fi |
10970 | ||
ec6a6fbe | 10971 | rm -rf conftest.dSYM |
d0191583 JM |
10972 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10973 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 10974 | fi |
ec6a6fbe AK |
10975 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10976 | $as_echo "$as_val"'` | |
10977 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10978 | $as_echo "$ac_res" >&6; } | |
10979 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10980 | $as_echo "$as_val"'` | |
10981 | if test "x$as_val" = x""yes; then | |
d0191583 | 10982 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10983 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 10984 | _ACEOF |
7a197a62 | 10985 | |
ec6a6fbe AK |
10986 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
10987 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 10988 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 10989 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10990 | else |
d0191583 JM |
10991 | cat >conftest.$ac_ext <<_ACEOF |
10992 | /* confdefs.h. */ | |
10993 | _ACEOF | |
10994 | cat confdefs.h >>conftest.$ac_ext | |
10995 | cat >>conftest.$ac_ext <<_ACEOF | |
10996 | /* end confdefs.h. */ | |
10997 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
10998 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10999 | #define _doprnt innocuous__doprnt | |
7a197a62 | 11000 | |
d0191583 JM |
11001 | /* System header to define __stub macros and hopefully few prototypes, |
11002 | which can conflict with char _doprnt (); below. | |
11003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11004 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 11005 | |
d0191583 JM |
11006 | #ifdef __STDC__ |
11007 | # include <limits.h> | |
11008 | #else | |
11009 | # include <assert.h> | |
11010 | #endif | |
72b2cb61 | 11011 | |
d0191583 JM |
11012 | #undef _doprnt |
11013 | ||
11014 | /* Override any GCC internal prototype to avoid an error. | |
11015 | Use char because int might match the return type of a GCC | |
11016 | builtin and then its argument prototype would still apply. */ | |
11017 | #ifdef __cplusplus | |
11018 | extern "C" | |
11019 | #endif | |
11020 | char _doprnt (); | |
11021 | /* The GNU C library defines this for functions which it implements | |
11022 | to always fail with ENOSYS. Some functions are actually named | |
11023 | something starting with __ and the normal name is an alias. */ | |
11024 | #if defined __stub__doprnt || defined __stub____doprnt | |
11025 | choke me | |
11026 | #endif | |
11027 | ||
11028 | int | |
11029 | main () | |
11030 | { | |
11031 | return _doprnt (); | |
11032 | ; | |
11033 | return 0; | |
11034 | } | |
72b2cb61 | 11035 | _ACEOF |
d0191583 JM |
11036 | rm -f conftest.$ac_objext conftest$ac_exeext |
11037 | if { (ac_try="$ac_link" | |
11038 | case "(($ac_try" in | |
11039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11040 | *) ac_try_echo=$ac_try;; | |
11041 | esac | |
ec6a6fbe AK |
11042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11043 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
11044 | (eval "$ac_link") 2>conftest.er1 |
11045 | ac_status=$? | |
11046 | grep -v '^ *+' conftest.er1 >conftest.err | |
11047 | rm -f conftest.er1 | |
11048 | cat conftest.err >&5 | |
ec6a6fbe | 11049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
11050 | (exit $ac_status); } && { |
11051 | test -z "$ac_c_werror_flag" || | |
11052 | test ! -s conftest.err | |
ec6a6fbe AK |
11053 | } && test -s conftest$ac_exeext && { |
11054 | test "$cross_compiling" = yes || | |
11055 | $as_test_x conftest$ac_exeext | |
11056 | }; then | |
d0191583 JM |
11057 | ac_cv_func__doprnt=yes |
11058 | else | |
ec6a6fbe | 11059 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11060 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11061 | |
d0191583 | 11062 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11063 | fi |
11064 | ||
ec6a6fbe | 11065 | rm -rf conftest.dSYM |
d0191583 JM |
11066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11067 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11068 | fi |
ec6a6fbe AK |
11069 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11070 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11071 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11072 | |
d0191583 JM |
11073 | cat >>confdefs.h <<\_ACEOF |
11074 | #define HAVE_DOPRNT 1 | |
11075 | _ACEOF | |
ad6254c5 | 11076 | |
7a197a62 AK |
11077 | fi |
11078 | ||
d0191583 JM |
11079 | fi |
11080 | done | |
8b1a3214 | 11081 | |
ad6254c5 | 11082 | |
7a197a62 | 11083 | |
9c961554 | 11084 | ################################################################################ |
ec6a6fbe AK |
11085 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11086 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11087 | # Check whether --enable-static_link was given. |
11088 | if test "${enable_static_link+set}" = set; then | |
11089 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11090 | else | |
11091 | STATIC_LINK=no | |
11092 | fi | |
11093 | ||
ec6a6fbe AK |
11094 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11095 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11096 | |
d0191583 | 11097 | ################################################################################ |
ad6254c5 | 11098 | |
ad6254c5 AK |
11099 | |
11100 | ################################################################################ | |
ec6a6fbe AK |
11101 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11102 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11103 | |
11104 | # Check whether --with-user was given. | |
11105 | if test "${with_user+set}" = set; then | |
11106 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
11107 | fi |
11108 | ||
ec6a6fbe AK |
11109 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11110 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11111 | |
d0191583 | 11112 | if test x$OWNER != x; then |
23b059e7 | 11113 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11114 | fi |
11115 | ||
11116 | ################################################################################ | |
ec6a6fbe AK |
11117 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11118 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11119 | |
d0191583 JM |
11120 | # Check whether --with-group was given. |
11121 | if test "${with_group+set}" = set; then | |
11122 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
11123 | fi |
11124 | ||
ec6a6fbe AK |
11125 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11126 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11127 | |
11128 | if test x$GROUP != x; then | |
23b059e7 | 11129 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11130 | fi |
ad6254c5 | 11131 | |
24bbc4d7 | 11132 | ################################################################################ |
ec6a6fbe AK |
11133 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11134 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11135 | |
11136 | ||
11137 | # Check whether --with-device-uid was given. | |
11138 | if test "${with_device_uid+set}" = set; then | |
11139 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
11140 | else | |
11141 | DM_DEVICE_UID="0" | |
11142 | fi | |
11143 | ||
ec6a6fbe AK |
11144 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11145 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11146 | |
11147 | ################################################################################ | |
ec6a6fbe AK |
11148 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11149 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11150 | |
11151 | ||
11152 | # Check whether --with-device-gid was given. | |
11153 | if test "${with_device_gid+set}" = set; then | |
11154 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
11155 | else | |
11156 | DM_DEVICE_GID="0" | |
11157 | fi | |
11158 | ||
ec6a6fbe AK |
11159 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11160 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11161 | |
93bd259b | 11162 | ################################################################################ |
ec6a6fbe AK |
11163 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11164 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11165 | |
11166 | ||
11167 | # Check whether --with-device-mode was given. | |
11168 | if test "${with_device_mode+set}" = set; then | |
11169 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
11170 | else | |
11171 | DM_DEVICE_MODE="0600" | |
11172 | fi | |
11173 | ||
ec6a6fbe AK |
11174 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11175 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11176 | |
ad6254c5 | 11177 | ################################################################################ |
ec6a6fbe AK |
11178 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11179 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11180 | # Check whether --enable-lvm1_fallback was given. |
11181 | if test "${enable_lvm1_fallback+set}" = set; then | |
11182 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11183 | else | |
11184 | LVM1_FALLBACK=no | |
7a197a62 AK |
11185 | fi |
11186 | ||
ec6a6fbe AK |
11187 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11188 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11189 | |
d0191583 | 11190 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11191 | |
11192 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11193 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11194 | _ACEOF |
11195 | ||
ad6254c5 AK |
11196 | fi |
11197 | ||
11198 | ################################################################################ | |
ec6a6fbe AK |
11199 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11200 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11201 | |
11202 | # Check whether --with-lvm1 was given. | |
11203 | if test "${with_lvm1+set}" = set; then | |
11204 | withval=$with_lvm1; LVM1="$withval" | |
11205 | else | |
11206 | LVM1="internal" | |
7a197a62 AK |
11207 | fi |
11208 | ||
ec6a6fbe AK |
11209 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11210 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11211 | |
d0191583 | 11212 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11213 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11214 | " >&5 |
ec6a6fbe | 11215 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11216 | " >&2;} |
11217 | { (exit 1); exit 1; }; } | |
11218 | fi; | |
11219 | ||
11220 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11221 | |
11222 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11223 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11224 | _ACEOF |
11225 | ||
ad6254c5 AK |
11226 | fi |
11227 | ||
11228 | ################################################################################ | |
ec6a6fbe AK |
11229 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11230 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11231 | |
11232 | # Check whether --with-pool was given. | |
11233 | if test "${with_pool+set}" = set; then | |
11234 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 11235 | else |
d0191583 | 11236 | POOL="internal" |
7a197a62 AK |
11237 | fi |
11238 | ||
ec6a6fbe AK |
11239 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11240 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11241 | |
d0191583 | 11242 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11243 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11244 | " >&5 |
ec6a6fbe | 11245 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11246 | " >&2;} |
11247 | { (exit 1); exit 1; }; } | |
11248 | fi; | |
7a197a62 | 11249 | |
d0191583 JM |
11250 | if test x$POOL = xinternal; then |
11251 | ||
11252 | cat >>confdefs.h <<\_ACEOF | |
11253 | #define POOL_INTERNAL 1 | |
11254 | _ACEOF | |
11255 | ||
11256 | fi | |
ad6254c5 | 11257 | |
06f62ad1 | 11258 | ################################################################################ |
ec6a6fbe AK |
11259 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11260 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11261 | |
11262 | # Check whether --with-cluster was given. | |
11263 | if test "${with_cluster+set}" = set; then | |
11264 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
11265 | fi |
11266 | ||
ec6a6fbe AK |
11267 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11268 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11269 | |
d0191583 | 11270 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11271 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11272 | " >&5 |
ec6a6fbe | 11273 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11274 | " >&2;} |
11275 | { (exit 1); exit 1; }; } | |
d0191583 | 11276 | fi; |
06f62ad1 | 11277 | |
d0191583 | 11278 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11279 | |
11280 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11281 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11282 | _ACEOF |
11283 | ||
15d91f5a | 11284 | fi |
ad6254c5 AK |
11285 | |
11286 | ################################################################################ | |
ec6a6fbe AK |
11287 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11288 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11289 | |
d0191583 JM |
11290 | # Check whether --with-snapshots was given. |
11291 | if test "${with_snapshots+set}" = set; then | |
11292 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
11293 | else | |
11294 | SNAPSHOTS="internal" | |
ad6254c5 AK |
11295 | fi |
11296 | ||
ec6a6fbe AK |
11297 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11298 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11299 | |
d0191583 | 11300 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11301 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11302 | " >&5 |
ec6a6fbe | 11303 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11304 | " >&2;} |
11305 | { (exit 1); exit 1; }; } | |
11306 | fi; | |
11307 | ||
11308 | if test x$SNAPSHOTS = xinternal; then | |
11309 | ||
11310 | cat >>confdefs.h <<\_ACEOF | |
11311 | #define SNAPSHOT_INTERNAL 1 | |
11312 | _ACEOF | |
ad6254c5 | 11313 | |
ad6254c5 | 11314 | fi |
7a197a62 | 11315 | |
d0191583 | 11316 | ################################################################################ |
ec6a6fbe AK |
11317 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11318 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11319 | |
11320 | # Check whether --with-mirrors was given. | |
11321 | if test "${with_mirrors+set}" = set; then | |
11322 | withval=$with_mirrors; MIRRORS="$withval" | |
11323 | else | |
11324 | MIRRORS="internal" | |
ad6254c5 | 11325 | fi |
ad6254c5 | 11326 | |
ec6a6fbe AK |
11327 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11328 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11329 | |
d0191583 | 11330 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11331 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11332 | " >&5 |
ec6a6fbe | 11333 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11334 | " >&2;} |
11335 | { (exit 1); exit 1; }; } | |
11336 | fi; | |
ad6254c5 | 11337 | |
d0191583 | 11338 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11339 | |
d0191583 JM |
11340 | cat >>confdefs.h <<\_ACEOF |
11341 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11342 | _ACEOF |
8a2fc586 | 11343 | |
d0191583 | 11344 | fi |
8a2fc586 | 11345 | |
8fea97b7 ZK |
11346 | ################################################################################ |
11347 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11348 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11349 | ||
11350 | # Check whether --with-replicators was given. | |
11351 | if test "${with_replicators+set}" = set; then | |
11352 | withval=$with_replicators; REPLICATORS=$withval | |
11353 | else | |
11354 | REPLICATORS="none" | |
11355 | fi | |
11356 | ||
11357 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11358 | $as_echo "$REPLICATORS" >&6; } | |
11359 | ||
11360 | case "$REPLICATORS" in | |
11361 | none|shared) ;; | |
11362 | internal) | |
11363 | cat >>confdefs.h <<\_ACEOF | |
11364 | #define REPLICATOR_INTERNAL 1 | |
11365 | _ACEOF | |
11366 | ;; | |
11367 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11368 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11369 | { (exit 1); exit 1; }; } ;; | |
11370 | esac | |
11371 | ||
d0191583 | 11372 | ################################################################################ |
ec6a6fbe AK |
11373 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11374 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11375 | # Check whether --enable-readline was given. |
11376 | if test "${enable_readline+set}" = set; then | |
11377 | enableval=$enable_readline; READLINE=$enableval | |
11378 | else | |
06e459df | 11379 | READLINE=maybe |
d0191583 | 11380 | fi |
8a2fc586 | 11381 | |
ec6a6fbe AK |
11382 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11383 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11384 | |
d0191583 | 11385 | ################################################################################ |
ec6a6fbe AK |
11386 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11387 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11388 | # Check whether --enable-realtime was given. |
11389 | if test "${enable_realtime+set}" = set; then | |
11390 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11391 | fi |
ad6254c5 | 11392 | |
ec6a6fbe AK |
11393 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11394 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
11395 | |
11396 | ################################################################################ | |
90c80887 | 11397 | pkg_config_init() { |
e2997b73 AK |
11398 | |
11399 | ||
11400 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11401 | if test -n "$ac_tool_prefix"; then | |
11402 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11403 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11404 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11405 | $as_echo_n "checking for $ac_word... " >&6; } | |
11406 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11407 | $as_echo_n "(cached) " >&6 | |
11408 | else | |
11409 | case $PKG_CONFIG in | |
11410 | [\\/]* | ?:[\\/]*) | |
11411 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11412 | ;; | |
11413 | *) | |
11414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11415 | for as_dir in $PATH | |
11416 | do | |
11417 | IFS=$as_save_IFS | |
11418 | test -z "$as_dir" && as_dir=. | |
11419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11421 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11422 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11423 | break 2 | |
11424 | fi | |
11425 | done | |
11426 | done | |
11427 | IFS=$as_save_IFS | |
11428 | ||
11429 | ;; | |
11430 | esac | |
11431 | fi | |
11432 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11433 | if test -n "$PKG_CONFIG"; then | |
11434 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11435 | $as_echo "$PKG_CONFIG" >&6; } | |
11436 | else | |
11437 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11438 | $as_echo "no" >&6; } | |
11439 | fi | |
11440 | ||
11441 | ||
11442 | fi | |
11443 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11444 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11445 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11446 | set dummy pkg-config; ac_word=$2 | |
11447 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11448 | $as_echo_n "checking for $ac_word... " >&6; } | |
11449 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11450 | $as_echo_n "(cached) " >&6 | |
11451 | else | |
11452 | case $ac_pt_PKG_CONFIG in | |
11453 | [\\/]* | ?:[\\/]*) | |
11454 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11455 | ;; | |
11456 | *) | |
11457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11458 | for as_dir in $PATH | |
11459 | do | |
11460 | IFS=$as_save_IFS | |
11461 | test -z "$as_dir" && as_dir=. | |
11462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11464 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11465 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11466 | break 2 | |
11467 | fi | |
11468 | done | |
11469 | done | |
11470 | IFS=$as_save_IFS | |
11471 | ||
11472 | ;; | |
11473 | esac | |
11474 | fi | |
11475 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11476 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11477 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11478 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11479 | else | |
11480 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11481 | $as_echo "no" >&6; } | |
11482 | fi | |
11483 | ||
11484 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11485 | PKG_CONFIG="" | |
11486 | else | |
11487 | case $cross_compiling:$ac_tool_warned in | |
11488 | yes:) | |
11489 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11491 | ac_tool_warned=yes ;; | |
11492 | esac | |
11493 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11494 | fi | |
11495 | else | |
11496 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11497 | fi | |
11498 | ||
11499 | fi | |
11500 | if test -n "$PKG_CONFIG"; then | |
11501 | _pkg_min_version=0.9.0 | |
11502 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11503 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11504 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11505 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11506 | $as_echo "yes" >&6; } | |
11507 | else | |
11508 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11509 | $as_echo "no" >&6; } | |
11510 | PKG_CONFIG="" | |
11511 | fi | |
d911ec67 | 11512 | |
e2997b73 AK |
11513 | fi |
11514 | ||
11515 | pkg_failed=no | |
a946372e AK |
11516 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11517 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11518 | |
a946372e AK |
11519 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11520 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11521 | elif test -n "$PKG_CONFIG"; then |
11522 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11523 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11524 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11525 | ac_status=$? |
11526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11527 | (exit $ac_status); }; then | |
a946372e | 11528 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11529 | else |
11530 | pkg_failed=yes | |
11531 | fi | |
11532 | else | |
11533 | pkg_failed=untried | |
11534 | fi | |
a946372e AK |
11535 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11536 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11537 | elif test -n "$PKG_CONFIG"; then |
11538 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11539 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11540 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11541 | ac_status=$? |
11542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11543 | (exit $ac_status); }; then | |
a946372e | 11544 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11545 | else |
11546 | pkg_failed=yes | |
11547 | fi | |
11548 | else | |
11549 | pkg_failed=untried | |
11550 | fi | |
11551 | ||
11552 | ||
11553 | ||
11554 | if test $pkg_failed = yes; then | |
11555 | ||
11556 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11557 | _pkg_short_errors_supported=yes | |
11558 | else | |
11559 | _pkg_short_errors_supported=no | |
11560 | fi | |
11561 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11562 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11563 | else |
a946372e | 11564 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11565 | fi |
11566 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11567 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11568 | |
d911ec67 AK |
11569 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11570 | $as_echo "no" >&6; } | |
11571 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 | |
a946372e | 11572 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11573 | elif test $pkg_failed = untried; then |
a946372e AK |
11574 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11575 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11576 | else |
a946372e AK |
11577 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11578 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11579 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11580 | $as_echo "yes" >&6; } | |
d911ec67 | 11581 | : |
e2997b73 | 11582 | fi |
90c80887 AK |
11583 | PKGCONFIG_INIT=1 |
11584 | } | |
11585 | ||
11586 | ################################################################################ | |
11587 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11588 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11589 | ||
11590 | # Check whether --with-clvmd was given. | |
11591 | if test "${with_clvmd+set}" = set; then | |
11592 | withval=$with_clvmd; CLVMD="$withval" | |
11593 | else | |
11594 | CLVMD="none" | |
11595 | fi | |
11596 | ||
11597 | if test x$CLVMD = xyes; then | |
11598 | CLVMD=all | |
11599 | fi | |
11600 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11601 | $as_echo "$CLVMD" >&6; } | |
11602 | ||
11603 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11604 | CLUSTER=internal | |
11605 | fi | |
11606 | ||
11607 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
11608 | pkg_config_init | |
11609 | fi | |
11610 | ||
11611 | ||
11612 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11613 | BUILDGULM=yes | |
11614 | fi | |
11615 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11616 | BUILDCOROSYNC=yes | |
11617 | fi | |
11618 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11619 | BUILDOPENAIS=yes | |
11620 | fi | |
11621 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11622 | BUILDCMAN=yes | |
11623 | fi | |
11624 | ||
11625 | if test x$BUILDGULM = xyes; then | |
11626 | if test x$BUILDCOROSYNC = xyes || \ | |
11627 | test x$BUILDOPENAIS = xyes; then | |
11628 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11629 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11630 | { (exit 1); exit 1; }; } | |
11631 | fi | |
a946372e | 11632 | fi |
e2997b73 | 11633 | |
a946372e AK |
11634 | soft_bailout() { |
11635 | NOTFOUND=1 | |
11636 | } | |
e2997b73 | 11637 | |
a946372e AK |
11638 | hard_bailout() { |
11639 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11640 | $as_echo "$as_me: error: bailing out" >&2;} | |
11641 | { (exit 1); exit 1; }; } | |
11642 | } | |
11643 | ||
11644 | if test x$CLVMD = xall; then | |
11645 | bailout=soft_bailout | |
11646 | BUILDGULM=yes | |
11647 | BUILDCMAN=yes | |
11648 | BUILDCOROSYNC=yes | |
11649 | BUILDOPENAIS=yes | |
e2997b73 | 11650 | else |
a946372e | 11651 | bailout=hard_bailout |
e2997b73 | 11652 | fi |
a946372e AK |
11653 | |
11654 | check_lib_no_libs() { | |
11655 | lib_no_libs_arg1=$1 | |
11656 | shift | |
11657 | lib_no_libs_arg2=$1 | |
11658 | shift | |
11659 | lib_no_libs_args=$@ | |
11660 | ||
11661 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11662 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11663 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11664 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11665 | $as_echo_n "(cached) " >&6 | |
11666 | else | |
11667 | ac_check_lib_save_LIBS=$LIBS | |
11668 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11669 | cat >conftest.$ac_ext <<_ACEOF | |
11670 | /* confdefs.h. */ | |
11671 | _ACEOF | |
11672 | cat confdefs.h >>conftest.$ac_ext | |
11673 | cat >>conftest.$ac_ext <<_ACEOF | |
11674 | /* end confdefs.h. */ | |
11675 | ||
11676 | /* Override any GCC internal prototype to avoid an error. | |
11677 | Use char because int might match the return type of a GCC | |
11678 | builtin and then its argument prototype would still apply. */ | |
11679 | #ifdef __cplusplus | |
11680 | extern "C" | |
11681 | #endif | |
11682 | char $lib_no_libs_arg2 (); | |
11683 | int | |
11684 | main () | |
11685 | { | |
11686 | return $lib_no_libs_arg2 (); | |
11687 | ; | |
11688 | return 0; | |
11689 | } | |
11690 | _ACEOF | |
11691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11692 | if { (ac_try="$ac_link" | |
11693 | case "(($ac_try" in | |
11694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11695 | *) ac_try_echo=$ac_try;; | |
11696 | esac | |
11697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11698 | $as_echo "$ac_try_echo") >&5 | |
11699 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11700 | ac_status=$? |
a946372e AK |
11701 | grep -v '^ *+' conftest.er1 >conftest.err |
11702 | rm -f conftest.er1 | |
11703 | cat conftest.err >&5 | |
e2997b73 | 11704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11705 | (exit $ac_status); } && { |
11706 | test -z "$ac_c_werror_flag" || | |
11707 | test ! -s conftest.err | |
11708 | } && test -s conftest$ac_exeext && { | |
11709 | test "$cross_compiling" = yes || | |
11710 | $as_test_x conftest$ac_exeext | |
11711 | }; then | |
11712 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11713 | else |
a946372e AK |
11714 | $as_echo "$as_me: failed program was:" >&5 |
11715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11716 | |
a946372e AK |
11717 | eval "$as_ac_Lib=no" |
11718 | fi | |
e2997b73 | 11719 | |
a946372e AK |
11720 | rm -rf conftest.dSYM |
11721 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11722 | conftest$ac_exeext conftest.$ac_ext | |
11723 | LIBS=$ac_check_lib_save_LIBS | |
11724 | fi | |
11725 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11726 | $as_echo "$as_val"'` | |
11727 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11728 | $as_echo "$ac_res" >&6; } | |
11729 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11730 | $as_echo "$as_val"'` | |
11731 | if test "x$as_val" = x""yes; then | |
11732 | cat >>confdefs.h <<_ACEOF | |
11733 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11734 | _ACEOF | |
e2997b73 | 11735 | |
a946372e | 11736 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11737 | |
e2997b73 | 11738 | else |
a946372e | 11739 | $bailout |
e2997b73 | 11740 | fi |
e2997b73 | 11741 | |
a946372e AK |
11742 | LIBS=$ac_check_lib_save_LIBS |
11743 | } | |
11744 | ||
11745 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11746 | |
11747 | pkg_failed=no | |
a946372e AK |
11748 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11749 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11750 | |
a946372e AK |
11751 | if test -n "$CCS_CFLAGS"; then |
11752 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11753 | elif test -n "$PKG_CONFIG"; then |
11754 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11755 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11756 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11757 | ac_status=$? |
11758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11759 | (exit $ac_status); }; then | |
a946372e | 11760 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11761 | else |
11762 | pkg_failed=yes | |
11763 | fi | |
11764 | else | |
11765 | pkg_failed=untried | |
11766 | fi | |
a946372e AK |
11767 | if test -n "$CCS_LIBS"; then |
11768 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11769 | elif test -n "$PKG_CONFIG"; then |
11770 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11771 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11772 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11773 | ac_status=$? |
11774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11775 | (exit $ac_status); }; then | |
a946372e | 11776 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11777 | else |
11778 | pkg_failed=yes | |
11779 | fi | |
11780 | else | |
11781 | pkg_failed=untried | |
11782 | fi | |
11783 | ||
11784 | ||
11785 | ||
11786 | if test $pkg_failed = yes; then | |
11787 | ||
11788 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11789 | _pkg_short_errors_supported=yes | |
11790 | else | |
11791 | _pkg_short_errors_supported=no | |
11792 | fi | |
11793 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11794 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11795 | else |
a946372e | 11796 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11797 | fi |
11798 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11799 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11800 | |
d911ec67 AK |
11801 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11802 | $as_echo "no" >&6; } | |
11803 | NOTFOUND=0 | |
e2997b73 | 11804 | |
a946372e AK |
11805 | for ac_header in ccs.h |
11806 | do | |
11807 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11808 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11809 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11810 | $as_echo_n "checking for $ac_header... " >&6; } | |
11811 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11812 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11813 | fi |
a946372e AK |
11814 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11815 | $as_echo "$as_val"'` | |
11816 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11817 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11818 | else |
a946372e AK |
11819 | # Is the header compilable? |
11820 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11821 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11822 | cat >conftest.$ac_ext <<_ACEOF | |
11823 | /* confdefs.h. */ | |
11824 | _ACEOF | |
11825 | cat confdefs.h >>conftest.$ac_ext | |
11826 | cat >>conftest.$ac_ext <<_ACEOF | |
11827 | /* end confdefs.h. */ | |
11828 | $ac_includes_default | |
11829 | #include <$ac_header> | |
11830 | _ACEOF | |
11831 | rm -f conftest.$ac_objext | |
11832 | if { (ac_try="$ac_compile" | |
11833 | case "(($ac_try" in | |
11834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11835 | *) ac_try_echo=$ac_try;; | |
11836 | esac | |
11837 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11838 | $as_echo "$ac_try_echo") >&5 | |
11839 | (eval "$ac_compile") 2>conftest.er1 | |
11840 | ac_status=$? | |
11841 | grep -v '^ *+' conftest.er1 >conftest.err | |
11842 | rm -f conftest.er1 | |
11843 | cat conftest.err >&5 | |
11844 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11845 | (exit $ac_status); } && { | |
11846 | test -z "$ac_c_werror_flag" || | |
11847 | test ! -s conftest.err | |
11848 | } && test -s conftest.$ac_objext; then | |
11849 | ac_header_compiler=yes | |
11850 | else | |
11851 | $as_echo "$as_me: failed program was:" >&5 | |
11852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11853 | |
a946372e | 11854 | ac_header_compiler=no |
d0191583 JM |
11855 | fi |
11856 | ||
a946372e AK |
11857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11858 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11859 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11860 | |
a946372e AK |
11861 | # Is the header present? |
11862 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11863 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11864 | cat >conftest.$ac_ext <<_ACEOF | |
11865 | /* confdefs.h. */ | |
11866 | _ACEOF | |
11867 | cat confdefs.h >>conftest.$ac_ext | |
11868 | cat >>conftest.$ac_ext <<_ACEOF | |
11869 | /* end confdefs.h. */ | |
11870 | #include <$ac_header> | |
11871 | _ACEOF | |
11872 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11873 | case "(($ac_try" in | |
11874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11875 | *) ac_try_echo=$ac_try;; | |
11876 | esac | |
11877 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11878 | $as_echo "$ac_try_echo") >&5 | |
11879 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11880 | ac_status=$? | |
11881 | grep -v '^ *+' conftest.er1 >conftest.err | |
11882 | rm -f conftest.er1 | |
11883 | cat conftest.err >&5 | |
11884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11885 | (exit $ac_status); } >/dev/null && { | |
11886 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11887 | test ! -s conftest.err | |
11888 | }; then | |
11889 | ac_header_preproc=yes | |
11890 | else | |
11891 | $as_echo "$as_me: failed program was:" >&5 | |
11892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11893 | ||
11894 | ac_header_preproc=no | |
11895 | fi | |
11896 | ||
11897 | rm -f conftest.err conftest.$ac_ext | |
11898 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11899 | $as_echo "$ac_header_preproc" >&6; } | |
11900 | ||
11901 | # So? What about this header? | |
11902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11903 | yes:no: ) | |
11904 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11905 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11906 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11907 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11908 | ac_header_preproc=yes | |
11909 | ;; | |
11910 | no:yes:* ) | |
11911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11912 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11913 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11914 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11916 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11917 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11918 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11919 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11920 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11921 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11922 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11923 | ||
11924 | ;; | |
11925 | esac | |
11926 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11927 | $as_echo_n "checking for $ac_header... " >&6; } | |
11928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11929 | $as_echo_n "(cached) " >&6 | |
11930 | else | |
11931 | eval "$as_ac_Header=\$ac_header_preproc" | |
11932 | fi | |
11933 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11934 | $as_echo "$as_val"'` | |
11935 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11936 | $as_echo "$ac_res" >&6; } | |
11937 | ||
11938 | fi | |
11939 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11940 | $as_echo "$as_val"'` | |
11941 | if test "x$as_val" = x""yes; then | |
11942 | cat >>confdefs.h <<_ACEOF | |
11943 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11944 | _ACEOF | |
11945 | ||
11946 | else | |
11947 | $bailout | |
11948 | fi | |
11949 | ||
11950 | done | |
11951 | ||
11952 | check_lib_no_libs ccs ccs_connect | |
11953 | if test $NOTFOUND = 0; then | |
11954 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11955 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11956 | CCS_LIBS="-lccs" | |
11957 | HAVE_CCS=yes | |
11958 | fi | |
11959 | elif test $pkg_failed = untried; then | |
11960 | NOTFOUND=0 | |
11961 | ||
11962 | for ac_header in ccs.h | |
11963 | do | |
11964 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11965 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11966 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11967 | $as_echo_n "checking for $ac_header... " >&6; } | |
11968 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11969 | $as_echo_n "(cached) " >&6 | |
11970 | fi | |
11971 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11972 | $as_echo "$as_val"'` | |
11973 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11974 | $as_echo "$ac_res" >&6; } | |
11975 | else | |
11976 | # Is the header compilable? | |
11977 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11978 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11979 | cat >conftest.$ac_ext <<_ACEOF | |
11980 | /* confdefs.h. */ | |
11981 | _ACEOF | |
11982 | cat confdefs.h >>conftest.$ac_ext | |
11983 | cat >>conftest.$ac_ext <<_ACEOF | |
11984 | /* end confdefs.h. */ | |
11985 | $ac_includes_default | |
11986 | #include <$ac_header> | |
11987 | _ACEOF | |
11988 | rm -f conftest.$ac_objext | |
11989 | if { (ac_try="$ac_compile" | |
11990 | case "(($ac_try" in | |
11991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11992 | *) ac_try_echo=$ac_try;; | |
11993 | esac | |
11994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11995 | $as_echo "$ac_try_echo") >&5 | |
11996 | (eval "$ac_compile") 2>conftest.er1 | |
11997 | ac_status=$? | |
11998 | grep -v '^ *+' conftest.er1 >conftest.err | |
11999 | rm -f conftest.er1 | |
12000 | cat conftest.err >&5 | |
12001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12002 | (exit $ac_status); } && { | |
12003 | test -z "$ac_c_werror_flag" || | |
12004 | test ! -s conftest.err | |
12005 | } && test -s conftest.$ac_objext; then | |
12006 | ac_header_compiler=yes | |
12007 | else | |
12008 | $as_echo "$as_me: failed program was:" >&5 | |
12009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12010 | ||
12011 | ac_header_compiler=no | |
12012 | fi | |
12013 | ||
12014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12015 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12016 | $as_echo "$ac_header_compiler" >&6; } | |
12017 | ||
12018 | # Is the header present? | |
12019 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12020 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12021 | cat >conftest.$ac_ext <<_ACEOF | |
12022 | /* confdefs.h. */ | |
12023 | _ACEOF | |
12024 | cat confdefs.h >>conftest.$ac_ext | |
12025 | cat >>conftest.$ac_ext <<_ACEOF | |
12026 | /* end confdefs.h. */ | |
12027 | #include <$ac_header> | |
12028 | _ACEOF | |
12029 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12030 | case "(($ac_try" in | |
12031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12032 | *) ac_try_echo=$ac_try;; | |
12033 | esac | |
12034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12035 | $as_echo "$ac_try_echo") >&5 | |
12036 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12037 | ac_status=$? | |
12038 | grep -v '^ *+' conftest.er1 >conftest.err | |
12039 | rm -f conftest.er1 | |
12040 | cat conftest.err >&5 | |
12041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12042 | (exit $ac_status); } >/dev/null && { | |
12043 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12044 | test ! -s conftest.err | |
12045 | }; then | |
12046 | ac_header_preproc=yes | |
12047 | else | |
12048 | $as_echo "$as_me: failed program was:" >&5 | |
12049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12050 | ||
12051 | ac_header_preproc=no | |
12052 | fi | |
12053 | ||
12054 | rm -f conftest.err conftest.$ac_ext | |
12055 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12056 | $as_echo "$ac_header_preproc" >&6; } | |
12057 | ||
12058 | # So? What about this header? | |
12059 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12060 | yes:no: ) | |
12061 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12062 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12063 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12064 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12065 | ac_header_preproc=yes | |
12066 | ;; | |
12067 | no:yes:* ) | |
12068 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12069 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12070 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12071 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12072 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12073 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12074 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12075 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12076 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12077 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12078 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12079 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12080 | ||
12081 | ;; | |
12082 | esac | |
12083 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12084 | $as_echo_n "checking for $ac_header... " >&6; } | |
12085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12086 | $as_echo_n "(cached) " >&6 | |
12087 | else | |
12088 | eval "$as_ac_Header=\$ac_header_preproc" | |
12089 | fi | |
12090 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12091 | $as_echo "$as_val"'` | |
12092 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12093 | $as_echo "$ac_res" >&6; } | |
12094 | ||
12095 | fi | |
12096 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12097 | $as_echo "$as_val"'` | |
12098 | if test "x$as_val" = x""yes; then | |
12099 | cat >>confdefs.h <<_ACEOF | |
12100 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12101 | _ACEOF | |
12102 | ||
12103 | else | |
12104 | $bailout | |
12105 | fi | |
12106 | ||
12107 | done | |
12108 | ||
12109 | check_lib_no_libs ccs ccs_connect | |
12110 | if test $NOTFOUND = 0; then | |
12111 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12112 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12113 | CCS_LIBS="-lccs" | |
12114 | HAVE_CCS=yes | |
12115 | fi | |
12116 | else | |
12117 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12118 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12119 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12120 | $as_echo "yes" >&6; } | |
12121 | HAVE_CCS=yes | |
12122 | fi | |
12123 | ||
12124 | pkg_failed=no | |
12125 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12126 | $as_echo_n "checking for GULM... " >&6; } | |
12127 | ||
12128 | if test -n "$GULM_CFLAGS"; then | |
12129 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12130 | elif test -n "$PKG_CONFIG"; then | |
12131 | if test -n "$PKG_CONFIG" && \ | |
12132 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12133 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12134 | ac_status=$? | |
12135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12136 | (exit $ac_status); }; then | |
12137 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12138 | else | |
12139 | pkg_failed=yes | |
12140 | fi | |
12141 | else | |
12142 | pkg_failed=untried | |
12143 | fi | |
12144 | if test -n "$GULM_LIBS"; then | |
12145 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12146 | elif test -n "$PKG_CONFIG"; then | |
12147 | if test -n "$PKG_CONFIG" && \ | |
12148 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12149 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12150 | ac_status=$? | |
12151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12152 | (exit $ac_status); }; then | |
12153 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12154 | else | |
12155 | pkg_failed=yes | |
12156 | fi | |
12157 | else | |
12158 | pkg_failed=untried | |
12159 | fi | |
12160 | ||
12161 | ||
12162 | ||
12163 | if test $pkg_failed = yes; then | |
12164 | ||
12165 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12166 | _pkg_short_errors_supported=yes | |
12167 | else | |
12168 | _pkg_short_errors_supported=no | |
12169 | fi | |
12170 | if test $_pkg_short_errors_supported = yes; then | |
12171 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12172 | else | |
12173 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12174 | fi | |
12175 | # Put the nasty error message in config.log where it belongs | |
12176 | echo "$GULM_PKG_ERRORS" >&5 | |
12177 | ||
d911ec67 AK |
12178 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12179 | $as_echo "no" >&6; } | |
12180 | NOTFOUND=0 | |
a946372e AK |
12181 | |
12182 | for ac_header in libgulm.h | |
12183 | do | |
12184 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12185 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12186 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12187 | $as_echo_n "checking for $ac_header... " >&6; } | |
12188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12189 | $as_echo_n "(cached) " >&6 | |
12190 | fi | |
12191 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12192 | $as_echo "$as_val"'` | |
12193 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12194 | $as_echo "$ac_res" >&6; } | |
12195 | else | |
12196 | # Is the header compilable? | |
12197 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12198 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12199 | cat >conftest.$ac_ext <<_ACEOF | |
12200 | /* confdefs.h. */ | |
12201 | _ACEOF | |
12202 | cat confdefs.h >>conftest.$ac_ext | |
12203 | cat >>conftest.$ac_ext <<_ACEOF | |
12204 | /* end confdefs.h. */ | |
12205 | $ac_includes_default | |
12206 | #include <$ac_header> | |
12207 | _ACEOF | |
12208 | rm -f conftest.$ac_objext | |
12209 | if { (ac_try="$ac_compile" | |
12210 | case "(($ac_try" in | |
12211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12212 | *) ac_try_echo=$ac_try;; | |
12213 | esac | |
12214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12215 | $as_echo "$ac_try_echo") >&5 | |
12216 | (eval "$ac_compile") 2>conftest.er1 | |
12217 | ac_status=$? | |
12218 | grep -v '^ *+' conftest.er1 >conftest.err | |
12219 | rm -f conftest.er1 | |
12220 | cat conftest.err >&5 | |
12221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12222 | (exit $ac_status); } && { | |
12223 | test -z "$ac_c_werror_flag" || | |
12224 | test ! -s conftest.err | |
12225 | } && test -s conftest.$ac_objext; then | |
12226 | ac_header_compiler=yes | |
12227 | else | |
12228 | $as_echo "$as_me: failed program was:" >&5 | |
12229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12230 | ||
12231 | ac_header_compiler=no | |
12232 | fi | |
12233 | ||
12234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12235 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12236 | $as_echo "$ac_header_compiler" >&6; } | |
12237 | ||
12238 | # Is the header present? | |
12239 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12240 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12241 | cat >conftest.$ac_ext <<_ACEOF | |
12242 | /* confdefs.h. */ | |
12243 | _ACEOF | |
12244 | cat confdefs.h >>conftest.$ac_ext | |
12245 | cat >>conftest.$ac_ext <<_ACEOF | |
12246 | /* end confdefs.h. */ | |
12247 | #include <$ac_header> | |
12248 | _ACEOF | |
12249 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12250 | case "(($ac_try" in | |
12251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12252 | *) ac_try_echo=$ac_try;; | |
12253 | esac | |
12254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12255 | $as_echo "$ac_try_echo") >&5 | |
12256 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12257 | ac_status=$? | |
12258 | grep -v '^ *+' conftest.er1 >conftest.err | |
12259 | rm -f conftest.er1 | |
12260 | cat conftest.err >&5 | |
12261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12262 | (exit $ac_status); } >/dev/null && { | |
12263 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12264 | test ! -s conftest.err | |
12265 | }; then | |
12266 | ac_header_preproc=yes | |
12267 | else | |
12268 | $as_echo "$as_me: failed program was:" >&5 | |
12269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12270 | ||
12271 | ac_header_preproc=no | |
12272 | fi | |
12273 | ||
12274 | rm -f conftest.err conftest.$ac_ext | |
12275 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12276 | $as_echo "$ac_header_preproc" >&6; } | |
12277 | ||
12278 | # So? What about this header? | |
12279 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12280 | yes:no: ) | |
12281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12282 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12284 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12285 | ac_header_preproc=yes | |
12286 | ;; | |
12287 | no:yes:* ) | |
12288 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12289 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12290 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12291 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12292 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12293 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12294 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12295 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12297 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12299 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12300 | ||
12301 | ;; | |
12302 | esac | |
12303 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12304 | $as_echo_n "checking for $ac_header... " >&6; } | |
12305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12306 | $as_echo_n "(cached) " >&6 | |
12307 | else | |
12308 | eval "$as_ac_Header=\$ac_header_preproc" | |
12309 | fi | |
12310 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12311 | $as_echo "$as_val"'` | |
12312 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12313 | $as_echo "$ac_res" >&6; } | |
12314 | ||
12315 | fi | |
12316 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12317 | $as_echo "$as_val"'` | |
12318 | if test "x$as_val" = x""yes; then | |
12319 | cat >>confdefs.h <<_ACEOF | |
12320 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12321 | _ACEOF | |
12322 | ||
12323 | else | |
12324 | $bailout | |
12325 | fi | |
12326 | ||
12327 | done | |
12328 | ||
12329 | check_lib_no_libs gulm lg_core_login | |
12330 | if test $NOTFOUND = 0; then | |
12331 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12332 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12333 | GULM_LIBS="-lgulm" | |
12334 | HAVE_GULM=yes | |
12335 | fi | |
12336 | elif test $pkg_failed = untried; then | |
12337 | NOTFOUND=0 | |
12338 | ||
12339 | for ac_header in libgulm.h | |
12340 | do | |
12341 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12342 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12343 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12344 | $as_echo_n "checking for $ac_header... " >&6; } | |
12345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12346 | $as_echo_n "(cached) " >&6 | |
12347 | fi | |
12348 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12349 | $as_echo "$as_val"'` | |
12350 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12351 | $as_echo "$ac_res" >&6; } | |
12352 | else | |
12353 | # Is the header compilable? | |
12354 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12355 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12356 | cat >conftest.$ac_ext <<_ACEOF | |
12357 | /* confdefs.h. */ | |
12358 | _ACEOF | |
12359 | cat confdefs.h >>conftest.$ac_ext | |
12360 | cat >>conftest.$ac_ext <<_ACEOF | |
12361 | /* end confdefs.h. */ | |
12362 | $ac_includes_default | |
12363 | #include <$ac_header> | |
12364 | _ACEOF | |
12365 | rm -f conftest.$ac_objext | |
12366 | if { (ac_try="$ac_compile" | |
12367 | case "(($ac_try" in | |
12368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12369 | *) ac_try_echo=$ac_try;; | |
12370 | esac | |
12371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12372 | $as_echo "$ac_try_echo") >&5 | |
12373 | (eval "$ac_compile") 2>conftest.er1 | |
12374 | ac_status=$? | |
12375 | grep -v '^ *+' conftest.er1 >conftest.err | |
12376 | rm -f conftest.er1 | |
12377 | cat conftest.err >&5 | |
12378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12379 | (exit $ac_status); } && { | |
12380 | test -z "$ac_c_werror_flag" || | |
12381 | test ! -s conftest.err | |
12382 | } && test -s conftest.$ac_objext; then | |
12383 | ac_header_compiler=yes | |
12384 | else | |
12385 | $as_echo "$as_me: failed program was:" >&5 | |
12386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12387 | ||
12388 | ac_header_compiler=no | |
12389 | fi | |
12390 | ||
12391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12392 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12393 | $as_echo "$ac_header_compiler" >&6; } | |
12394 | ||
12395 | # Is the header present? | |
12396 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12397 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12398 | cat >conftest.$ac_ext <<_ACEOF | |
12399 | /* confdefs.h. */ | |
12400 | _ACEOF | |
12401 | cat confdefs.h >>conftest.$ac_ext | |
12402 | cat >>conftest.$ac_ext <<_ACEOF | |
12403 | /* end confdefs.h. */ | |
12404 | #include <$ac_header> | |
12405 | _ACEOF | |
12406 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12407 | case "(($ac_try" in | |
12408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12409 | *) ac_try_echo=$ac_try;; | |
12410 | esac | |
12411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12412 | $as_echo "$ac_try_echo") >&5 | |
12413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12414 | ac_status=$? | |
12415 | grep -v '^ *+' conftest.er1 >conftest.err | |
12416 | rm -f conftest.er1 | |
12417 | cat conftest.err >&5 | |
12418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12419 | (exit $ac_status); } >/dev/null && { | |
12420 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12421 | test ! -s conftest.err | |
12422 | }; then | |
12423 | ac_header_preproc=yes | |
12424 | else | |
12425 | $as_echo "$as_me: failed program was:" >&5 | |
12426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12427 | ||
12428 | ac_header_preproc=no | |
12429 | fi | |
12430 | ||
12431 | rm -f conftest.err conftest.$ac_ext | |
12432 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12433 | $as_echo "$ac_header_preproc" >&6; } | |
12434 | ||
12435 | # So? What about this header? | |
12436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12437 | yes:no: ) | |
12438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12439 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12440 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12441 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12442 | ac_header_preproc=yes | |
12443 | ;; | |
12444 | no:yes:* ) | |
12445 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12446 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12447 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12448 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12450 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12452 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12454 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12456 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12457 | ||
12458 | ;; | |
12459 | esac | |
12460 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12461 | $as_echo_n "checking for $ac_header... " >&6; } | |
12462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12463 | $as_echo_n "(cached) " >&6 | |
12464 | else | |
12465 | eval "$as_ac_Header=\$ac_header_preproc" | |
12466 | fi | |
12467 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12468 | $as_echo "$as_val"'` | |
12469 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12470 | $as_echo "$ac_res" >&6; } | |
12471 | ||
12472 | fi | |
12473 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12474 | $as_echo "$as_val"'` | |
12475 | if test "x$as_val" = x""yes; then | |
12476 | cat >>confdefs.h <<_ACEOF | |
12477 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12478 | _ACEOF | |
12479 | ||
12480 | else | |
12481 | $bailout | |
12482 | fi | |
12483 | ||
12484 | done | |
12485 | ||
12486 | check_lib_no_libs gulm lg_core_login | |
12487 | if test $NOTFOUND = 0; then | |
12488 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12489 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12490 | GULM_LIBS="-lgulm" | |
12491 | HAVE_GULM=yes | |
12492 | fi | |
12493 | else | |
12494 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12495 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12496 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12497 | $as_echo "yes" >&6; } | |
12498 | HAVE_GULM=yes | |
12499 | fi | |
12500 | fi | |
12501 | ||
12502 | if test x$BUILDCMAN = xyes; then | |
12503 | ||
12504 | pkg_failed=no | |
12505 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12506 | $as_echo_n "checking for CMAN... " >&6; } | |
12507 | ||
12508 | if test -n "$CMAN_CFLAGS"; then | |
12509 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12510 | elif test -n "$PKG_CONFIG"; then | |
12511 | if test -n "$PKG_CONFIG" && \ | |
12512 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12513 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12514 | ac_status=$? | |
12515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12516 | (exit $ac_status); }; then | |
12517 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12518 | else | |
12519 | pkg_failed=yes | |
12520 | fi | |
12521 | else | |
12522 | pkg_failed=untried | |
12523 | fi | |
12524 | if test -n "$CMAN_LIBS"; then | |
12525 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12526 | elif test -n "$PKG_CONFIG"; then | |
12527 | if test -n "$PKG_CONFIG" && \ | |
12528 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12529 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12530 | ac_status=$? | |
12531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12532 | (exit $ac_status); }; then | |
12533 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12534 | else | |
12535 | pkg_failed=yes | |
12536 | fi | |
12537 | else | |
12538 | pkg_failed=untried | |
12539 | fi | |
12540 | ||
12541 | ||
12542 | ||
12543 | if test $pkg_failed = yes; then | |
12544 | ||
12545 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12546 | _pkg_short_errors_supported=yes | |
12547 | else | |
12548 | _pkg_short_errors_supported=no | |
12549 | fi | |
12550 | if test $_pkg_short_errors_supported = yes; then | |
12551 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12552 | else | |
12553 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12554 | fi | |
12555 | # Put the nasty error message in config.log where it belongs | |
12556 | echo "$CMAN_PKG_ERRORS" >&5 | |
12557 | ||
d911ec67 AK |
12558 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12559 | $as_echo "no" >&6; } | |
12560 | NOTFOUND=0 | |
a946372e AK |
12561 | |
12562 | for ac_header in libcman.h | |
12563 | do | |
12564 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12566 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12567 | $as_echo_n "checking for $ac_header... " >&6; } | |
12568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12569 | $as_echo_n "(cached) " >&6 | |
12570 | fi | |
12571 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12572 | $as_echo "$as_val"'` | |
12573 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12574 | $as_echo "$ac_res" >&6; } | |
12575 | else | |
12576 | # Is the header compilable? | |
12577 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12578 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12579 | cat >conftest.$ac_ext <<_ACEOF | |
12580 | /* confdefs.h. */ | |
12581 | _ACEOF | |
12582 | cat confdefs.h >>conftest.$ac_ext | |
12583 | cat >>conftest.$ac_ext <<_ACEOF | |
12584 | /* end confdefs.h. */ | |
12585 | $ac_includes_default | |
12586 | #include <$ac_header> | |
12587 | _ACEOF | |
12588 | rm -f conftest.$ac_objext | |
12589 | if { (ac_try="$ac_compile" | |
12590 | case "(($ac_try" in | |
12591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12592 | *) ac_try_echo=$ac_try;; | |
12593 | esac | |
12594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12595 | $as_echo "$ac_try_echo") >&5 | |
12596 | (eval "$ac_compile") 2>conftest.er1 | |
12597 | ac_status=$? | |
12598 | grep -v '^ *+' conftest.er1 >conftest.err | |
12599 | rm -f conftest.er1 | |
12600 | cat conftest.err >&5 | |
12601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12602 | (exit $ac_status); } && { | |
12603 | test -z "$ac_c_werror_flag" || | |
12604 | test ! -s conftest.err | |
12605 | } && test -s conftest.$ac_objext; then | |
12606 | ac_header_compiler=yes | |
12607 | else | |
12608 | $as_echo "$as_me: failed program was:" >&5 | |
12609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12610 | ||
12611 | ac_header_compiler=no | |
12612 | fi | |
12613 | ||
12614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12615 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12616 | $as_echo "$ac_header_compiler" >&6; } | |
12617 | ||
12618 | # Is the header present? | |
12619 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12620 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12621 | cat >conftest.$ac_ext <<_ACEOF | |
12622 | /* confdefs.h. */ | |
12623 | _ACEOF | |
12624 | cat confdefs.h >>conftest.$ac_ext | |
12625 | cat >>conftest.$ac_ext <<_ACEOF | |
12626 | /* end confdefs.h. */ | |
12627 | #include <$ac_header> | |
12628 | _ACEOF | |
12629 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12630 | case "(($ac_try" in | |
12631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12632 | *) ac_try_echo=$ac_try;; | |
12633 | esac | |
12634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12635 | $as_echo "$ac_try_echo") >&5 | |
12636 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12637 | ac_status=$? | |
12638 | grep -v '^ *+' conftest.er1 >conftest.err | |
12639 | rm -f conftest.er1 | |
12640 | cat conftest.err >&5 | |
12641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12642 | (exit $ac_status); } >/dev/null && { | |
12643 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12644 | test ! -s conftest.err | |
12645 | }; then | |
12646 | ac_header_preproc=yes | |
12647 | else | |
12648 | $as_echo "$as_me: failed program was:" >&5 | |
12649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12650 | ||
12651 | ac_header_preproc=no | |
12652 | fi | |
12653 | ||
12654 | rm -f conftest.err conftest.$ac_ext | |
12655 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12656 | $as_echo "$ac_header_preproc" >&6; } | |
12657 | ||
12658 | # So? What about this header? | |
12659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12660 | yes:no: ) | |
12661 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12662 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12663 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12664 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12665 | ac_header_preproc=yes | |
12666 | ;; | |
12667 | no:yes:* ) | |
12668 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12669 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12670 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12671 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12672 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12673 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12674 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12675 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12676 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12677 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12679 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12680 | ||
12681 | ;; | |
12682 | esac | |
12683 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12684 | $as_echo_n "checking for $ac_header... " >&6; } | |
12685 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12686 | $as_echo_n "(cached) " >&6 | |
12687 | else | |
12688 | eval "$as_ac_Header=\$ac_header_preproc" | |
12689 | fi | |
12690 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12691 | $as_echo "$as_val"'` | |
12692 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12693 | $as_echo "$ac_res" >&6; } | |
12694 | ||
12695 | fi | |
12696 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12697 | $as_echo "$as_val"'` | |
12698 | if test "x$as_val" = x""yes; then | |
12699 | cat >>confdefs.h <<_ACEOF | |
12700 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12701 | _ACEOF | |
12702 | ||
12703 | else | |
12704 | $bailout | |
12705 | fi | |
12706 | ||
12707 | done | |
12708 | ||
12709 | check_lib_no_libs cman cman_init | |
12710 | if test $NOTFOUND = 0; then | |
12711 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12712 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12713 | CMAN_LIBS="-lcman" | |
12714 | HAVE_CMAN=yes | |
12715 | fi | |
12716 | elif test $pkg_failed = untried; then | |
12717 | NOTFOUND=0 | |
12718 | ||
12719 | for ac_header in libcman.h | |
12720 | do | |
12721 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12723 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12724 | $as_echo_n "checking for $ac_header... " >&6; } | |
12725 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12726 | $as_echo_n "(cached) " >&6 | |
12727 | fi | |
12728 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12729 | $as_echo "$as_val"'` | |
12730 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12731 | $as_echo "$ac_res" >&6; } | |
12732 | else | |
12733 | # Is the header compilable? | |
12734 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12735 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12736 | cat >conftest.$ac_ext <<_ACEOF | |
12737 | /* confdefs.h. */ | |
12738 | _ACEOF | |
12739 | cat confdefs.h >>conftest.$ac_ext | |
12740 | cat >>conftest.$ac_ext <<_ACEOF | |
12741 | /* end confdefs.h. */ | |
12742 | $ac_includes_default | |
12743 | #include <$ac_header> | |
12744 | _ACEOF | |
12745 | rm -f conftest.$ac_objext | |
12746 | if { (ac_try="$ac_compile" | |
12747 | case "(($ac_try" in | |
12748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12749 | *) ac_try_echo=$ac_try;; | |
12750 | esac | |
12751 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12752 | $as_echo "$ac_try_echo") >&5 | |
12753 | (eval "$ac_compile") 2>conftest.er1 | |
12754 | ac_status=$? | |
12755 | grep -v '^ *+' conftest.er1 >conftest.err | |
12756 | rm -f conftest.er1 | |
12757 | cat conftest.err >&5 | |
12758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12759 | (exit $ac_status); } && { | |
12760 | test -z "$ac_c_werror_flag" || | |
12761 | test ! -s conftest.err | |
12762 | } && test -s conftest.$ac_objext; then | |
12763 | ac_header_compiler=yes | |
12764 | else | |
12765 | $as_echo "$as_me: failed program was:" >&5 | |
12766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12767 | ||
12768 | ac_header_compiler=no | |
12769 | fi | |
12770 | ||
12771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12772 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12773 | $as_echo "$ac_header_compiler" >&6; } | |
12774 | ||
12775 | # Is the header present? | |
12776 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12777 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12778 | cat >conftest.$ac_ext <<_ACEOF | |
12779 | /* confdefs.h. */ | |
12780 | _ACEOF | |
12781 | cat confdefs.h >>conftest.$ac_ext | |
12782 | cat >>conftest.$ac_ext <<_ACEOF | |
12783 | /* end confdefs.h. */ | |
12784 | #include <$ac_header> | |
12785 | _ACEOF | |
12786 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12787 | case "(($ac_try" in | |
12788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12789 | *) ac_try_echo=$ac_try;; | |
12790 | esac | |
12791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12792 | $as_echo "$ac_try_echo") >&5 | |
12793 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12794 | ac_status=$? | |
12795 | grep -v '^ *+' conftest.er1 >conftest.err | |
12796 | rm -f conftest.er1 | |
12797 | cat conftest.err >&5 | |
12798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12799 | (exit $ac_status); } >/dev/null && { | |
12800 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12801 | test ! -s conftest.err | |
12802 | }; then | |
12803 | ac_header_preproc=yes | |
12804 | else | |
12805 | $as_echo "$as_me: failed program was:" >&5 | |
12806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12807 | ||
12808 | ac_header_preproc=no | |
12809 | fi | |
12810 | ||
12811 | rm -f conftest.err conftest.$ac_ext | |
12812 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12813 | $as_echo "$ac_header_preproc" >&6; } | |
12814 | ||
12815 | # So? What about this header? | |
12816 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12817 | yes:no: ) | |
12818 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12819 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12820 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12821 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12822 | ac_header_preproc=yes | |
12823 | ;; | |
12824 | no:yes:* ) | |
12825 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12826 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12827 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12828 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12829 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12830 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12831 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12832 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12833 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12834 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12835 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12836 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12837 | ||
12838 | ;; | |
12839 | esac | |
12840 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12841 | $as_echo_n "checking for $ac_header... " >&6; } | |
12842 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12843 | $as_echo_n "(cached) " >&6 | |
12844 | else | |
12845 | eval "$as_ac_Header=\$ac_header_preproc" | |
12846 | fi | |
12847 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12848 | $as_echo "$as_val"'` | |
12849 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12850 | $as_echo "$ac_res" >&6; } | |
12851 | ||
12852 | fi | |
12853 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12854 | $as_echo "$as_val"'` | |
12855 | if test "x$as_val" = x""yes; then | |
12856 | cat >>confdefs.h <<_ACEOF | |
12857 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12858 | _ACEOF | |
12859 | ||
12860 | else | |
12861 | $bailout | |
12862 | fi | |
12863 | ||
12864 | done | |
12865 | ||
12866 | check_lib_no_libs cman cman_init | |
12867 | if test $NOTFOUND = 0; then | |
12868 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12869 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12870 | CMAN_LIBS="-lcman" | |
12871 | HAVE_CMAN=yes | |
12872 | fi | |
12873 | else | |
12874 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12875 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12876 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12877 | $as_echo "yes" >&6; } | |
12878 | HAVE_CMAN=yes | |
12879 | fi | |
12880 | CHECKCONFDB=yes | |
12881 | CHECKDLM=yes | |
12882 | fi | |
12883 | ||
12884 | if test x$BUILDCOROSYNC = xyes || \ | |
12885 | test x$BUILDOPENAIS = xyes; then | |
12886 | ||
12887 | pkg_failed=no | |
12888 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12889 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12890 | ||
12891 | if test -n "$COROSYNC_CFLAGS"; then | |
12892 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12893 | elif test -n "$PKG_CONFIG"; then | |
12894 | if test -n "$PKG_CONFIG" && \ | |
12895 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12896 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12897 | ac_status=$? | |
12898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12899 | (exit $ac_status); }; then | |
12900 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12901 | else | |
12902 | pkg_failed=yes | |
12903 | fi | |
12904 | else | |
12905 | pkg_failed=untried | |
12906 | fi | |
12907 | if test -n "$COROSYNC_LIBS"; then | |
12908 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12909 | elif test -n "$PKG_CONFIG"; then | |
12910 | if test -n "$PKG_CONFIG" && \ | |
12911 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12912 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12913 | ac_status=$? | |
12914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12915 | (exit $ac_status); }; then | |
12916 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12917 | else | |
12918 | pkg_failed=yes | |
12919 | fi | |
12920 | else | |
12921 | pkg_failed=untried | |
12922 | fi | |
12923 | ||
12924 | ||
12925 | ||
12926 | if test $pkg_failed = yes; then | |
12927 | ||
12928 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12929 | _pkg_short_errors_supported=yes | |
12930 | else | |
12931 | _pkg_short_errors_supported=no | |
12932 | fi | |
12933 | if test $_pkg_short_errors_supported = yes; then | |
12934 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12935 | else | |
12936 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12937 | fi | |
12938 | # Put the nasty error message in config.log where it belongs | |
12939 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12940 | ||
d911ec67 | 12941 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
b5c2529b | 12942 | $as_echo "no" >&6; } |
d911ec67 AK |
12943 | $bailout |
12944 | elif test $pkg_failed = untried; then | |
a946372e AK |
12945 | $bailout |
12946 | else | |
12947 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12948 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12949 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12950 | $as_echo "yes" >&6; } | |
12951 | HAVE_COROSYNC=yes | |
12952 | fi | |
12953 | CHECKCONFDB=yes | |
12954 | fi | |
12955 | ||
12956 | if test x$BUILDCOROSYNC = xyes; then | |
12957 | ||
12958 | pkg_failed=no | |
12959 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
12960 | $as_echo_n "checking for QUORUM... " >&6; } | |
12961 | ||
12962 | if test -n "$QUORUM_CFLAGS"; then | |
12963 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
12964 | elif test -n "$PKG_CONFIG"; then | |
12965 | if test -n "$PKG_CONFIG" && \ | |
12966 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12967 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12968 | ac_status=$? | |
12969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12970 | (exit $ac_status); }; then | |
12971 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
12972 | else | |
12973 | pkg_failed=yes | |
12974 | fi | |
12975 | else | |
12976 | pkg_failed=untried | |
12977 | fi | |
12978 | if test -n "$QUORUM_LIBS"; then | |
12979 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
12980 | elif test -n "$PKG_CONFIG"; then | |
12981 | if test -n "$PKG_CONFIG" && \ | |
12982 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12983 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12984 | ac_status=$? | |
12985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12986 | (exit $ac_status); }; then | |
12987 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
12988 | else | |
12989 | pkg_failed=yes | |
12990 | fi | |
12991 | else | |
12992 | pkg_failed=untried | |
12993 | fi | |
12994 | ||
12995 | ||
12996 | ||
12997 | if test $pkg_failed = yes; then | |
12998 | ||
12999 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13000 | _pkg_short_errors_supported=yes | |
13001 | else | |
13002 | _pkg_short_errors_supported=no | |
13003 | fi | |
13004 | if test $_pkg_short_errors_supported = yes; then | |
13005 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
13006 | else | |
13007 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
13008 | fi | |
13009 | # Put the nasty error message in config.log where it belongs | |
13010 | echo "$QUORUM_PKG_ERRORS" >&5 | |
13011 | ||
d911ec67 | 13012 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
b5c2529b | 13013 | $as_echo "no" >&6; } |
d911ec67 AK |
13014 | $bailout |
13015 | elif test $pkg_failed = untried; then | |
a946372e AK |
13016 | $bailout |
13017 | else | |
13018 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
13019 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
13020 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13021 | $as_echo "yes" >&6; } | |
13022 | HAVE_QUORUM=yes | |
13023 | fi | |
13024 | CHECKCPG=yes | |
13025 | CHECKDLM=yes | |
13026 | fi | |
13027 | ||
13028 | if test x$BUILDOPENAIS = xyes; then | |
13029 | ||
13030 | pkg_failed=no | |
13031 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
13032 | $as_echo_n "checking for SALCK... " >&6; } | |
13033 | ||
13034 | if test -n "$SALCK_CFLAGS"; then | |
13035 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13036 | elif test -n "$PKG_CONFIG"; then | |
13037 | if test -n "$PKG_CONFIG" && \ | |
13038 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13039 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13040 | ac_status=$? | |
13041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13042 | (exit $ac_status); }; then | |
13043 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13044 | else | |
13045 | pkg_failed=yes | |
13046 | fi | |
13047 | else | |
13048 | pkg_failed=untried | |
13049 | fi | |
13050 | if test -n "$SALCK_LIBS"; then | |
13051 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13052 | elif test -n "$PKG_CONFIG"; then | |
13053 | if test -n "$PKG_CONFIG" && \ | |
13054 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13055 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13056 | ac_status=$? | |
13057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13058 | (exit $ac_status); }; then | |
13059 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13060 | else | |
13061 | pkg_failed=yes | |
13062 | fi | |
13063 | else | |
13064 | pkg_failed=untried | |
13065 | fi | |
13066 | ||
13067 | ||
13068 | ||
13069 | if test $pkg_failed = yes; then | |
13070 | ||
13071 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13072 | _pkg_short_errors_supported=yes | |
13073 | else | |
13074 | _pkg_short_errors_supported=no | |
13075 | fi | |
13076 | if test $_pkg_short_errors_supported = yes; then | |
13077 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13078 | else | |
13079 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13080 | fi | |
13081 | # Put the nasty error message in config.log where it belongs | |
13082 | echo "$SALCK_PKG_ERRORS" >&5 | |
13083 | ||
d911ec67 | 13084 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
b5c2529b | 13085 | $as_echo "no" >&6; } |
d911ec67 AK |
13086 | $bailout |
13087 | elif test $pkg_failed = untried; then | |
a946372e AK |
13088 | $bailout |
13089 | else | |
13090 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13091 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13092 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13093 | $as_echo "yes" >&6; } | |
13094 | HAVE_SALCK=yes | |
13095 | fi | |
13096 | CHECKCPG=yes | |
13097 | fi | |
13098 | ||
13099 | ||
13100 | ||
13101 | if test x$CHECKCONFDB = xyes; then | |
13102 | ||
13103 | pkg_failed=no | |
13104 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13105 | $as_echo_n "checking for CONFDB... " >&6; } | |
13106 | ||
13107 | if test -n "$CONFDB_CFLAGS"; then | |
13108 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13109 | elif test -n "$PKG_CONFIG"; then | |
13110 | if test -n "$PKG_CONFIG" && \ | |
13111 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13112 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13113 | ac_status=$? | |
13114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13115 | (exit $ac_status); }; then | |
13116 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13117 | else | |
13118 | pkg_failed=yes | |
13119 | fi | |
13120 | else | |
13121 | pkg_failed=untried | |
13122 | fi | |
13123 | if test -n "$CONFDB_LIBS"; then | |
13124 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13125 | elif test -n "$PKG_CONFIG"; then | |
13126 | if test -n "$PKG_CONFIG" && \ | |
13127 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13128 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13129 | ac_status=$? | |
13130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13131 | (exit $ac_status); }; then | |
13132 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13133 | else | |
13134 | pkg_failed=yes | |
13135 | fi | |
13136 | else | |
13137 | pkg_failed=untried | |
13138 | fi | |
13139 | ||
13140 | ||
13141 | ||
13142 | if test $pkg_failed = yes; then | |
13143 | ||
13144 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13145 | _pkg_short_errors_supported=yes | |
13146 | else | |
13147 | _pkg_short_errors_supported=no | |
13148 | fi | |
13149 | if test $_pkg_short_errors_supported = yes; then | |
13150 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13151 | else | |
13152 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13153 | fi | |
13154 | # Put the nasty error message in config.log where it belongs | |
13155 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13156 | ||
d911ec67 | 13157 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
b5c2529b | 13158 | $as_echo "no" >&6; } |
d911ec67 AK |
13159 | HAVE_CONFDB=no |
13160 | elif test $pkg_failed = untried; then | |
a946372e AK |
13161 | HAVE_CONFDB=no |
13162 | else | |
13163 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13164 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13165 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13166 | $as_echo "yes" >&6; } | |
13167 | HAVE_CONFDB=yes | |
13168 | fi | |
13169 | ||
13170 | ||
13171 | for ac_header in corosync/confdb.h | |
13172 | do | |
13173 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13175 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13176 | $as_echo_n "checking for $ac_header... " >&6; } | |
13177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13178 | $as_echo_n "(cached) " >&6 | |
13179 | fi | |
13180 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13181 | $as_echo "$as_val"'` | |
13182 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13183 | $as_echo "$ac_res" >&6; } | |
13184 | else | |
13185 | # Is the header compilable? | |
13186 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13187 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13188 | cat >conftest.$ac_ext <<_ACEOF | |
13189 | /* confdefs.h. */ | |
13190 | _ACEOF | |
13191 | cat confdefs.h >>conftest.$ac_ext | |
13192 | cat >>conftest.$ac_ext <<_ACEOF | |
13193 | /* end confdefs.h. */ | |
13194 | $ac_includes_default | |
13195 | #include <$ac_header> | |
13196 | _ACEOF | |
13197 | rm -f conftest.$ac_objext | |
13198 | if { (ac_try="$ac_compile" | |
13199 | case "(($ac_try" in | |
13200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13201 | *) ac_try_echo=$ac_try;; | |
13202 | esac | |
13203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13204 | $as_echo "$ac_try_echo") >&5 | |
13205 | (eval "$ac_compile") 2>conftest.er1 | |
13206 | ac_status=$? | |
13207 | grep -v '^ *+' conftest.er1 >conftest.err | |
13208 | rm -f conftest.er1 | |
13209 | cat conftest.err >&5 | |
13210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13211 | (exit $ac_status); } && { | |
13212 | test -z "$ac_c_werror_flag" || | |
13213 | test ! -s conftest.err | |
13214 | } && test -s conftest.$ac_objext; then | |
13215 | ac_header_compiler=yes | |
13216 | else | |
13217 | $as_echo "$as_me: failed program was:" >&5 | |
13218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13219 | ||
13220 | ac_header_compiler=no | |
13221 | fi | |
13222 | ||
13223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13224 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13225 | $as_echo "$ac_header_compiler" >&6; } | |
13226 | ||
13227 | # Is the header present? | |
13228 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13229 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13230 | cat >conftest.$ac_ext <<_ACEOF | |
13231 | /* confdefs.h. */ | |
13232 | _ACEOF | |
13233 | cat confdefs.h >>conftest.$ac_ext | |
13234 | cat >>conftest.$ac_ext <<_ACEOF | |
13235 | /* end confdefs.h. */ | |
13236 | #include <$ac_header> | |
13237 | _ACEOF | |
13238 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13239 | case "(($ac_try" in | |
13240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13241 | *) ac_try_echo=$ac_try;; | |
13242 | esac | |
13243 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13244 | $as_echo "$ac_try_echo") >&5 | |
13245 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13246 | ac_status=$? | |
13247 | grep -v '^ *+' conftest.er1 >conftest.err | |
13248 | rm -f conftest.er1 | |
13249 | cat conftest.err >&5 | |
13250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); } >/dev/null && { | |
13252 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13253 | test ! -s conftest.err | |
13254 | }; then | |
13255 | ac_header_preproc=yes | |
13256 | else | |
13257 | $as_echo "$as_me: failed program was:" >&5 | |
13258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13259 | ||
13260 | ac_header_preproc=no | |
13261 | fi | |
13262 | ||
13263 | rm -f conftest.err conftest.$ac_ext | |
13264 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13265 | $as_echo "$ac_header_preproc" >&6; } | |
13266 | ||
13267 | # So? What about this header? | |
13268 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13269 | yes:no: ) | |
13270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13271 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13273 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13274 | ac_header_preproc=yes | |
13275 | ;; | |
13276 | no:yes:* ) | |
13277 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13278 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13280 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13282 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13284 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13286 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13287 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13288 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13289 | ||
13290 | ;; | |
13291 | esac | |
13292 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13293 | $as_echo_n "checking for $ac_header... " >&6; } | |
13294 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13295 | $as_echo_n "(cached) " >&6 | |
13296 | else | |
13297 | eval "$as_ac_Header=\$ac_header_preproc" | |
13298 | fi | |
13299 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13300 | $as_echo "$as_val"'` | |
13301 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13302 | $as_echo "$ac_res" >&6; } | |
13303 | ||
13304 | fi | |
13305 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13306 | $as_echo "$as_val"'` | |
13307 | if test "x$as_val" = x""yes; then | |
13308 | cat >>confdefs.h <<_ACEOF | |
13309 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13310 | _ACEOF | |
13311 | HAVE_CONFDB_H=yes | |
13312 | else | |
13313 | HAVE_CONFDB_H=no | |
13314 | fi | |
13315 | ||
13316 | done | |
13317 | ||
13318 | ||
13319 | if test x$HAVE_CONFDB != xyes && \ | |
13320 | test x$HAVE_CONFDB_H = xyes; then | |
13321 | check_lib_no_libs confdb confdb_initialize | |
13322 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13323 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13324 | CONFDB_LIBS="-lconfdb" | |
13325 | HAVE_CONFDB=yes | |
13326 | fi | |
13327 | ||
13328 | if test x$BUILDCOROSYNC = xyes && \ | |
13329 | test x$HAVE_CONFDB != xyes && | |
13330 | test x$CLVMD != xall; then | |
13331 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13332 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13333 | { (exit 1); exit 1; }; } | |
13334 | fi | |
13335 | fi | |
13336 | ||
13337 | if test x$CHECKCPG = xyes; then | |
13338 | ||
13339 | pkg_failed=no | |
13340 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13341 | $as_echo_n "checking for CPG... " >&6; } | |
13342 | ||
13343 | if test -n "$CPG_CFLAGS"; then | |
13344 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13345 | elif test -n "$PKG_CONFIG"; then | |
13346 | if test -n "$PKG_CONFIG" && \ | |
13347 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13348 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13349 | ac_status=$? | |
13350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13351 | (exit $ac_status); }; then | |
13352 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13353 | else | |
13354 | pkg_failed=yes | |
13355 | fi | |
13356 | else | |
13357 | pkg_failed=untried | |
13358 | fi | |
13359 | if test -n "$CPG_LIBS"; then | |
13360 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13361 | elif test -n "$PKG_CONFIG"; then | |
13362 | if test -n "$PKG_CONFIG" && \ | |
13363 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13364 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13365 | ac_status=$? | |
13366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13367 | (exit $ac_status); }; then | |
13368 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13369 | else | |
13370 | pkg_failed=yes | |
13371 | fi | |
13372 | else | |
13373 | pkg_failed=untried | |
13374 | fi | |
13375 | ||
13376 | ||
13377 | ||
13378 | if test $pkg_failed = yes; then | |
13379 | ||
13380 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13381 | _pkg_short_errors_supported=yes | |
13382 | else | |
13383 | _pkg_short_errors_supported=no | |
13384 | fi | |
13385 | if test $_pkg_short_errors_supported = yes; then | |
13386 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13387 | else | |
13388 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13389 | fi | |
13390 | # Put the nasty error message in config.log where it belongs | |
13391 | echo "$CPG_PKG_ERRORS" >&5 | |
13392 | ||
d911ec67 | 13393 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
b5c2529b | 13394 | $as_echo "no" >&6; } |
d911ec67 AK |
13395 | $bailout |
13396 | elif test $pkg_failed = untried; then | |
a946372e AK |
13397 | $bailout |
13398 | else | |
13399 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13400 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13401 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13402 | $as_echo "yes" >&6; } | |
13403 | HAVE_CPG=yes | |
13404 | fi | |
13405 | fi | |
13406 | ||
13407 | if test x$CHECKDLM = xyes; then | |
13408 | ||
13409 | pkg_failed=no | |
13410 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13411 | $as_echo_n "checking for DLM... " >&6; } | |
13412 | ||
13413 | if test -n "$DLM_CFLAGS"; then | |
13414 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13415 | elif test -n "$PKG_CONFIG"; then | |
13416 | if test -n "$PKG_CONFIG" && \ | |
13417 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13418 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13419 | ac_status=$? | |
13420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13421 | (exit $ac_status); }; then | |
13422 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13423 | else | |
13424 | pkg_failed=yes | |
13425 | fi | |
13426 | else | |
13427 | pkg_failed=untried | |
13428 | fi | |
13429 | if test -n "$DLM_LIBS"; then | |
13430 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13431 | elif test -n "$PKG_CONFIG"; then | |
13432 | if test -n "$PKG_CONFIG" && \ | |
13433 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13434 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13435 | ac_status=$? | |
13436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13437 | (exit $ac_status); }; then | |
13438 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13439 | else | |
13440 | pkg_failed=yes | |
13441 | fi | |
13442 | else | |
13443 | pkg_failed=untried | |
13444 | fi | |
13445 | ||
13446 | ||
13447 | ||
13448 | if test $pkg_failed = yes; then | |
13449 | ||
13450 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13451 | _pkg_short_errors_supported=yes | |
13452 | else | |
13453 | _pkg_short_errors_supported=no | |
13454 | fi | |
13455 | if test $_pkg_short_errors_supported = yes; then | |
13456 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13457 | else | |
13458 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13459 | fi | |
13460 | # Put the nasty error message in config.log where it belongs | |
13461 | echo "$DLM_PKG_ERRORS" >&5 | |
13462 | ||
d911ec67 AK |
13463 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13464 | $as_echo "no" >&6; } | |
13465 | NOTFOUND=0 | |
a946372e AK |
13466 | |
13467 | for ac_header in libdlm.h | |
13468 | do | |
13469 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13471 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13472 | $as_echo_n "checking for $ac_header... " >&6; } | |
13473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13474 | $as_echo_n "(cached) " >&6 | |
13475 | fi | |
13476 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13477 | $as_echo "$as_val"'` | |
13478 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13479 | $as_echo "$ac_res" >&6; } | |
13480 | else | |
13481 | # Is the header compilable? | |
13482 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13483 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13484 | cat >conftest.$ac_ext <<_ACEOF | |
13485 | /* confdefs.h. */ | |
13486 | _ACEOF | |
13487 | cat confdefs.h >>conftest.$ac_ext | |
13488 | cat >>conftest.$ac_ext <<_ACEOF | |
13489 | /* end confdefs.h. */ | |
13490 | $ac_includes_default | |
13491 | #include <$ac_header> | |
13492 | _ACEOF | |
13493 | rm -f conftest.$ac_objext | |
13494 | if { (ac_try="$ac_compile" | |
13495 | case "(($ac_try" in | |
13496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13497 | *) ac_try_echo=$ac_try;; | |
13498 | esac | |
13499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13500 | $as_echo "$ac_try_echo") >&5 | |
13501 | (eval "$ac_compile") 2>conftest.er1 | |
13502 | ac_status=$? | |
13503 | grep -v '^ *+' conftest.er1 >conftest.err | |
13504 | rm -f conftest.er1 | |
13505 | cat conftest.err >&5 | |
13506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13507 | (exit $ac_status); } && { | |
13508 | test -z "$ac_c_werror_flag" || | |
13509 | test ! -s conftest.err | |
13510 | } && test -s conftest.$ac_objext; then | |
13511 | ac_header_compiler=yes | |
13512 | else | |
13513 | $as_echo "$as_me: failed program was:" >&5 | |
13514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13515 | ||
13516 | ac_header_compiler=no | |
13517 | fi | |
13518 | ||
13519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13520 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13521 | $as_echo "$ac_header_compiler" >&6; } | |
13522 | ||
13523 | # Is the header present? | |
13524 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13525 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13526 | cat >conftest.$ac_ext <<_ACEOF | |
13527 | /* confdefs.h. */ | |
13528 | _ACEOF | |
13529 | cat confdefs.h >>conftest.$ac_ext | |
13530 | cat >>conftest.$ac_ext <<_ACEOF | |
13531 | /* end confdefs.h. */ | |
13532 | #include <$ac_header> | |
13533 | _ACEOF | |
13534 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13535 | case "(($ac_try" in | |
13536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13537 | *) ac_try_echo=$ac_try;; | |
13538 | esac | |
13539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13540 | $as_echo "$ac_try_echo") >&5 | |
13541 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13542 | ac_status=$? | |
13543 | grep -v '^ *+' conftest.er1 >conftest.err | |
13544 | rm -f conftest.er1 | |
13545 | cat conftest.err >&5 | |
13546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13547 | (exit $ac_status); } >/dev/null && { | |
13548 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13549 | test ! -s conftest.err | |
13550 | }; then | |
13551 | ac_header_preproc=yes | |
13552 | else | |
13553 | $as_echo "$as_me: failed program was:" >&5 | |
13554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13555 | ||
13556 | ac_header_preproc=no | |
13557 | fi | |
13558 | ||
13559 | rm -f conftest.err conftest.$ac_ext | |
13560 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13561 | $as_echo "$ac_header_preproc" >&6; } | |
13562 | ||
13563 | # So? What about this header? | |
13564 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13565 | yes:no: ) | |
13566 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13567 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13568 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13569 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13570 | ac_header_preproc=yes | |
13571 | ;; | |
13572 | no:yes:* ) | |
13573 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13574 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13575 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13576 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13577 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13578 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13579 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13580 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13581 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13582 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13583 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13584 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13585 | ||
13586 | ;; | |
13587 | esac | |
13588 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13589 | $as_echo_n "checking for $ac_header... " >&6; } | |
13590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13591 | $as_echo_n "(cached) " >&6 | |
13592 | else | |
13593 | eval "$as_ac_Header=\$ac_header_preproc" | |
13594 | fi | |
13595 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13596 | $as_echo "$as_val"'` | |
13597 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13598 | $as_echo "$ac_res" >&6; } | |
13599 | ||
13600 | fi | |
13601 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13602 | $as_echo "$as_val"'` | |
13603 | if test "x$as_val" = x""yes; then | |
13604 | cat >>confdefs.h <<_ACEOF | |
13605 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13606 | _ACEOF | |
13607 | ||
13608 | else | |
13609 | $bailout | |
13610 | fi | |
13611 | ||
13612 | done | |
13613 | ||
13614 | check_lib_no_libs dlm dlm_lock -lpthread | |
13615 | if test $NOTFOUND = 0; then | |
13616 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13617 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13618 | DLM_LIBS="-ldlm -lpthread" | |
13619 | HAVE_DLM=yes | |
13620 | fi | |
13621 | elif test $pkg_failed = untried; then | |
13622 | NOTFOUND=0 | |
13623 | ||
13624 | for ac_header in libdlm.h | |
13625 | do | |
13626 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13627 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13628 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13629 | $as_echo_n "checking for $ac_header... " >&6; } | |
13630 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13631 | $as_echo_n "(cached) " >&6 | |
13632 | fi | |
13633 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13634 | $as_echo "$as_val"'` | |
13635 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13636 | $as_echo "$ac_res" >&6; } | |
13637 | else | |
13638 | # Is the header compilable? | |
13639 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13640 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13641 | cat >conftest.$ac_ext <<_ACEOF | |
13642 | /* confdefs.h. */ | |
13643 | _ACEOF | |
13644 | cat confdefs.h >>conftest.$ac_ext | |
13645 | cat >>conftest.$ac_ext <<_ACEOF | |
13646 | /* end confdefs.h. */ | |
13647 | $ac_includes_default | |
13648 | #include <$ac_header> | |
13649 | _ACEOF | |
13650 | rm -f conftest.$ac_objext | |
13651 | if { (ac_try="$ac_compile" | |
13652 | case "(($ac_try" in | |
13653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13654 | *) ac_try_echo=$ac_try;; | |
13655 | esac | |
13656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13657 | $as_echo "$ac_try_echo") >&5 | |
13658 | (eval "$ac_compile") 2>conftest.er1 | |
13659 | ac_status=$? | |
13660 | grep -v '^ *+' conftest.er1 >conftest.err | |
13661 | rm -f conftest.er1 | |
13662 | cat conftest.err >&5 | |
13663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13664 | (exit $ac_status); } && { | |
13665 | test -z "$ac_c_werror_flag" || | |
13666 | test ! -s conftest.err | |
13667 | } && test -s conftest.$ac_objext; then | |
13668 | ac_header_compiler=yes | |
13669 | else | |
13670 | $as_echo "$as_me: failed program was:" >&5 | |
13671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13672 | ||
13673 | ac_header_compiler=no | |
13674 | fi | |
13675 | ||
13676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13677 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13678 | $as_echo "$ac_header_compiler" >&6; } | |
13679 | ||
13680 | # Is the header present? | |
13681 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13682 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13683 | cat >conftest.$ac_ext <<_ACEOF | |
13684 | /* confdefs.h. */ | |
13685 | _ACEOF | |
13686 | cat confdefs.h >>conftest.$ac_ext | |
13687 | cat >>conftest.$ac_ext <<_ACEOF | |
13688 | /* end confdefs.h. */ | |
13689 | #include <$ac_header> | |
13690 | _ACEOF | |
13691 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13692 | case "(($ac_try" in | |
13693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13694 | *) ac_try_echo=$ac_try;; | |
13695 | esac | |
13696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13697 | $as_echo "$ac_try_echo") >&5 | |
13698 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13699 | ac_status=$? | |
13700 | grep -v '^ *+' conftest.er1 >conftest.err | |
13701 | rm -f conftest.er1 | |
13702 | cat conftest.err >&5 | |
13703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13704 | (exit $ac_status); } >/dev/null && { | |
13705 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13706 | test ! -s conftest.err | |
13707 | }; then | |
13708 | ac_header_preproc=yes | |
13709 | else | |
13710 | $as_echo "$as_me: failed program was:" >&5 | |
13711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13712 | ||
13713 | ac_header_preproc=no | |
13714 | fi | |
13715 | ||
13716 | rm -f conftest.err conftest.$ac_ext | |
13717 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13718 | $as_echo "$ac_header_preproc" >&6; } | |
13719 | ||
13720 | # So? What about this header? | |
13721 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13722 | yes:no: ) | |
13723 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13724 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13725 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13726 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13727 | ac_header_preproc=yes | |
13728 | ;; | |
13729 | no:yes:* ) | |
13730 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13731 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13732 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13733 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13734 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13735 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13736 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13737 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13738 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13739 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13740 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13741 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13742 | ||
13743 | ;; | |
13744 | esac | |
13745 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13746 | $as_echo_n "checking for $ac_header... " >&6; } | |
13747 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13748 | $as_echo_n "(cached) " >&6 | |
13749 | else | |
13750 | eval "$as_ac_Header=\$ac_header_preproc" | |
13751 | fi | |
13752 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13753 | $as_echo "$as_val"'` | |
13754 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13755 | $as_echo "$ac_res" >&6; } | |
13756 | ||
13757 | fi | |
13758 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13759 | $as_echo "$as_val"'` | |
13760 | if test "x$as_val" = x""yes; then | |
13761 | cat >>confdefs.h <<_ACEOF | |
13762 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13763 | _ACEOF | |
13764 | ||
13765 | else | |
13766 | $bailout | |
13767 | fi | |
13768 | ||
13769 | done | |
13770 | ||
13771 | check_lib_no_libs dlm dlm_lock -lpthread | |
13772 | if test $NOTFOUND = 0; then | |
13773 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13774 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13775 | DLM_LIBS="-ldlm -lpthread" | |
13776 | HAVE_DLM=yes | |
13777 | fi | |
13778 | else | |
13779 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13780 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13781 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13782 | $as_echo "yes" >&6; } | |
13783 | HAVE_DLM=yes | |
13784 | fi | |
13785 | fi | |
13786 | ||
13787 | if test x$CLVMD = xall; then | |
8c222979 | 13788 | CLVMD=none |
a946372e AK |
13789 | if test x$HAVE_CCS = xyes && \ |
13790 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13791 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13792 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13793 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
13794 | fi |
13795 | if test x$HAVE_CMAN = xyes && \ | |
13796 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13797 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13798 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13799 | CLVMD="$CLVMD,cman" | |
a946372e AK |
13800 | fi |
13801 | if test x$HAVE_COROSYNC = xyes && \ | |
13802 | test x$HAVE_QUORUM = xyes && \ | |
13803 | test x$HAVE_CPG = xyes && \ | |
13804 | test x$HAVE_DLM = xyes && \ | |
13805 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13806 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13807 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13808 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
13809 | fi |
13810 | if test x$HAVE_COROSYNC = xyes && \ | |
13811 | test x$HAVE_CPG = xyes && \ | |
13812 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13813 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13814 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13815 | CLVMD="$CLVMD,openais" | |
13816 | fi | |
13817 | if test x$CLVMD = xnone; then | |
13818 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13819 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13820 | fi |
a946372e AK |
13821 | fi |
13822 | ||
13823 | ################################################################################ | |
66fd4529 AK |
13824 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13825 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13826 | # Check whether --enable-cmirrord was given. | |
13827 | if test "${enable_cmirrord+set}" = set; then | |
13828 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13829 | else | |
13830 | CMIRRORD=no | |
13831 | fi | |
13832 | ||
13833 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13834 | $as_echo "$CMIRRORD" >&6; } | |
13835 | ||
13836 | BUILD_CMIRRORD=$CMIRRORD | |
13837 | ||
13838 | ################################################################################ | |
13839 | ||
13840 | ||
13841 | if test "x$BUILD_CMIRRORD" = xyes; then | |
13842 | ||
13843 | # Check whether --with-cmirrord-pidfile was given. | |
13844 | if test "${with_cmirrord_pidfile+set}" = set; then | |
13845 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
13846 | #define CMIRRORD_PIDFILE "$withval" | |
13847 | _ACEOF | |
13848 | ||
13849 | else | |
13850 | cat >>confdefs.h <<_ACEOF | |
13851 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
13852 | _ACEOF | |
13853 | ||
a946372e AK |
13854 | fi |
13855 | ||
66fd4529 | 13856 | fi |
a946372e | 13857 | |
66fd4529 AK |
13858 | ################################################################################ |
13859 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13860 | if test x$PKGCONFIG_INIT != x1; then |
13861 | pkg_config_init | |
13862 | fi | |
13863 | ||
13864 | pkg_failed=no | |
13865 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13866 | $as_echo_n "checking for SACKPT... " >&6; } | |
13867 | ||
13868 | if test -n "$SACKPT_CFLAGS"; then | |
13869 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13870 | elif test -n "$PKG_CONFIG"; then | |
13871 | if test -n "$PKG_CONFIG" && \ | |
13872 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13873 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13874 | ac_status=$? | |
13875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13876 | (exit $ac_status); }; then | |
13877 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13878 | else | |
13879 | pkg_failed=yes | |
13880 | fi | |
13881 | else | |
13882 | pkg_failed=untried | |
13883 | fi | |
13884 | if test -n "$SACKPT_LIBS"; then | |
13885 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13886 | elif test -n "$PKG_CONFIG"; then | |
13887 | if test -n "$PKG_CONFIG" && \ | |
13888 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13889 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13890 | ac_status=$? | |
13891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13892 | (exit $ac_status); }; then | |
13893 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13894 | else | |
13895 | pkg_failed=yes | |
13896 | fi | |
13897 | else | |
13898 | pkg_failed=untried | |
13899 | fi | |
13900 | ||
13901 | ||
13902 | ||
13903 | if test $pkg_failed = yes; then | |
13904 | ||
13905 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13906 | _pkg_short_errors_supported=yes | |
13907 | else | |
13908 | _pkg_short_errors_supported=no | |
13909 | fi | |
13910 | if test $_pkg_short_errors_supported = yes; then | |
13911 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13912 | else | |
13913 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13914 | fi | |
13915 | # Put the nasty error message in config.log where it belongs | |
13916 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13917 | ||
13918 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13919 | ||
13920 | $SACKPT_PKG_ERRORS | |
13921 | ||
13922 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13923 | installed software in a non-standard prefix. | |
13924 | ||
13925 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13926 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
d911ec67 AK |
13927 | See the pkg-config man page for more details. |
13928 | " >&5 | |
90c80887 AK |
13929 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13930 | ||
13931 | $SACKPT_PKG_ERRORS | |
13932 | ||
13933 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13934 | installed software in a non-standard prefix. | |
13935 | ||
13936 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13937 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
d911ec67 AK |
13938 | See the pkg-config man page for more details. |
13939 | " >&2;} | |
90c80887 AK |
13940 | { (exit 1); exit 1; }; } |
13941 | elif test $pkg_failed = untried; then | |
13942 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
13943 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13944 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
13945 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13946 | path to pkg-config. | |
13947 | ||
13948 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13949 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13950 | See the pkg-config man page for more details. | |
13951 | ||
13952 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13953 | See \`config.log' for more details." >&5 | |
13954 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
13955 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13956 | path to pkg-config. | |
13957 | ||
13958 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13959 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13960 | See the pkg-config man page for more details. | |
13961 | ||
13962 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13963 | See \`config.log' for more details." >&2;} | |
13964 | { (exit 1); exit 1; }; }; } | |
13965 | else | |
13966 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
13967 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
13968 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13969 | $as_echo "yes" >&6; } | |
d911ec67 | 13970 | : |
90c80887 AK |
13971 | fi |
13972 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
13973 | |
13974 | pkg_failed=no | |
13975 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13976 | $as_echo_n "checking for CPG... " >&6; } | |
13977 | ||
13978 | if test -n "$CPG_CFLAGS"; then | |
13979 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13980 | elif test -n "$PKG_CONFIG"; then | |
13981 | if test -n "$PKG_CONFIG" && \ | |
13982 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13983 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13984 | ac_status=$? | |
13985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13986 | (exit $ac_status); }; then | |
13987 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13988 | else | |
13989 | pkg_failed=yes | |
13990 | fi | |
13991 | else | |
13992 | pkg_failed=untried | |
13993 | fi | |
13994 | if test -n "$CPG_LIBS"; then | |
13995 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13996 | elif test -n "$PKG_CONFIG"; then | |
13997 | if test -n "$PKG_CONFIG" && \ | |
13998 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13999 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14000 | ac_status=$? | |
14001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14002 | (exit $ac_status); }; then | |
14003 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
14004 | else | |
14005 | pkg_failed=yes | |
14006 | fi | |
14007 | else | |
14008 | pkg_failed=untried | |
14009 | fi | |
14010 | ||
14011 | ||
14012 | ||
14013 | if test $pkg_failed = yes; then | |
14014 | ||
14015 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14016 | _pkg_short_errors_supported=yes | |
14017 | else | |
14018 | _pkg_short_errors_supported=no | |
14019 | fi | |
14020 | if test $_pkg_short_errors_supported = yes; then | |
14021 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14022 | else | |
14023 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14024 | fi | |
14025 | # Put the nasty error message in config.log where it belongs | |
14026 | echo "$CPG_PKG_ERRORS" >&5 | |
14027 | ||
90c80887 AK |
14028 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14029 | ||
14030 | $CPG_PKG_ERRORS | |
14031 | ||
14032 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14033 | installed software in a non-standard prefix. | |
14034 | ||
14035 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14036 | and CPG_LIBS to avoid the need to call pkg-config. | |
d911ec67 AK |
14037 | See the pkg-config man page for more details. |
14038 | " >&5 | |
90c80887 AK |
14039 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14040 | ||
14041 | $CPG_PKG_ERRORS | |
14042 | ||
14043 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14044 | installed software in a non-standard prefix. | |
14045 | ||
14046 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14047 | and CPG_LIBS to avoid the need to call pkg-config. | |
d911ec67 AK |
14048 | See the pkg-config man page for more details. |
14049 | " >&2;} | |
90c80887 | 14050 | { (exit 1); exit 1; }; } |
a946372e | 14051 | elif test $pkg_failed = untried; then |
90c80887 AK |
14052 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14053 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14054 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14055 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14056 | path to pkg-config. | |
14057 | ||
14058 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14059 | and CPG_LIBS to avoid the need to call pkg-config. | |
14060 | See the pkg-config man page for more details. | |
14061 | ||
14062 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14063 | See \`config.log' for more details." >&5 | |
14064 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14065 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14066 | path to pkg-config. | |
14067 | ||
14068 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14069 | and CPG_LIBS to avoid the need to call pkg-config. | |
14070 | See the pkg-config man page for more details. | |
14071 | ||
14072 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14073 | See \`config.log' for more details." >&2;} | |
14074 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14075 | else |
14076 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14077 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14078 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14079 | $as_echo "yes" >&6; } | |
d911ec67 | 14080 | : |
a946372e | 14081 | fi |
90c80887 | 14082 | fi |
a946372e AK |
14083 | fi |
14084 | ||
14085 | ################################################################################ | |
14086 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14087 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14088 | # Check whether --enable-debug was given. | |
14089 | if test "${enable_debug+set}" = set; then | |
14090 | enableval=$enable_debug; DEBUG=$enableval | |
14091 | else | |
14092 | DEBUG=no | |
14093 | fi | |
14094 | ||
14095 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14096 | $as_echo "$DEBUG" >&6; } | |
14097 | ||
14098 | if test x$DEBUG = xyes; then | |
14099 | COPTIMISE_FLAG= | |
14100 | else | |
14101 | CSCOPE_CMD= | |
14102 | fi | |
14103 | ||
14104 | ################################################################################ | |
14105 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14106 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14107 | ||
14108 | # Check whether --with-optimisation was given. | |
14109 | if test "${with_optimisation+set}" = set; then | |
14110 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
14111 | fi | |
14112 | ||
14113 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14114 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14115 | ||
14116 | ################################################################################ | |
14117 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14118 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14119 | # Check whether --enable-profiling was given. | |
14120 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14121 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14122 | else |
5556819a | 14123 | PROFILING=no |
fddafd51 ZK |
14124 | fi |
14125 | ||
ec6a6fbe AK |
14126 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14127 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14128 | |
14129 | if test "x$PROFILING" = xyes; then | |
14130 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14131 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14132 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14133 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14134 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14135 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14136 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14137 | else |
14138 | case $LCOV in | |
14139 | [\\/]* | ?:[\\/]*) | |
14140 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14141 | ;; | |
14142 | *) | |
14143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14144 | for as_dir in $PATH | |
14145 | do | |
14146 | IFS=$as_save_IFS | |
14147 | test -z "$as_dir" && as_dir=. | |
14148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14150 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14151 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14152 | break 2 |
14153 | fi | |
14154 | done | |
14155 | done | |
14156 | IFS=$as_save_IFS | |
14157 | ||
14158 | ;; | |
14159 | esac | |
14160 | fi | |
14161 | LCOV=$ac_cv_path_LCOV | |
14162 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14163 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14164 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14165 | else |
ec6a6fbe AK |
14166 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14167 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14168 | fi |
14169 | ||
14170 | ||
5556819a | 14171 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14172 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14173 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14174 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14175 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14176 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14177 | else |
14178 | case $GENHTML in | |
14179 | [\\/]* | ?:[\\/]*) | |
14180 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14181 | ;; | |
14182 | *) | |
14183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14184 | for as_dir in $PATH | |
14185 | do | |
14186 | IFS=$as_save_IFS | |
14187 | test -z "$as_dir" && as_dir=. | |
14188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14190 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14191 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14192 | break 2 |
14193 | fi | |
14194 | done | |
14195 | done | |
14196 | IFS=$as_save_IFS | |
14197 | ||
14198 | ;; | |
14199 | esac | |
14200 | fi | |
14201 | GENHTML=$ac_cv_path_GENHTML | |
14202 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14203 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14204 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14205 | else |
ec6a6fbe AK |
14206 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14207 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14208 | fi |
14209 | ||
14210 | ||
fd4728e1 | 14211 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14212 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14213 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14214 | { (exit 1); exit 1; }; } |
14215 | fi | |
fd4728e1 ZK |
14216 | # Extract the first word of "genpng", so it can be a program name with args. |
14217 | set dummy genpng; ac_word=$2 | |
14218 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14219 | $as_echo_n "checking for $ac_word... " >&6; } | |
14220 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14221 | $as_echo_n "(cached) " >&6 | |
14222 | else | |
14223 | case $GENPNG in | |
14224 | [\\/]* | ?:[\\/]*) | |
14225 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14226 | ;; | |
14227 | *) | |
14228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14229 | for as_dir in $PATH | |
14230 | do | |
14231 | IFS=$as_save_IFS | |
14232 | test -z "$as_dir" && as_dir=. | |
14233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14235 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14236 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14237 | break 2 | |
14238 | fi | |
14239 | done | |
14240 | done | |
14241 | IFS=$as_save_IFS | |
14242 | ||
14243 | ;; | |
14244 | esac | |
14245 | fi | |
14246 | GENPNG=$ac_cv_path_GENPNG | |
14247 | if test -n "$GENPNG"; then | |
14248 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14249 | $as_echo "$GENPNG" >&6; } | |
14250 | else | |
14251 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14252 | $as_echo "no" >&6; } | |
14253 | fi | |
14254 | ||
14255 | ||
14256 | if test -n "$GENPNG"; then | |
14257 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14258 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14259 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14260 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14261 | $as_echo "ok" >&6; } | |
14262 | GENHTML="$GENHTML --frames" | |
14263 | else | |
14264 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14265 | $as_echo "not supported" >&6; } | |
14266 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14267 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14268 | GENPNG= | |
14269 | fi | |
14270 | fi | |
5556819a | 14271 | fi |
d0191583 JM |
14272 | |
14273 | ################################################################################ | |
ec6a6fbe AK |
14274 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14275 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14276 | # Check whether --enable-devmapper was given. |
14277 | if test "${enable_devmapper+set}" = set; then | |
14278 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14279 | fi |
14280 | ||
ec6a6fbe AK |
14281 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14282 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14283 | |
14284 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14285 | |
14286 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14287 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14288 | _ACEOF |
14289 | ||
14290 | fi | |
14291 | ||
a5f46f6a AK |
14292 | ################################################################################ |
14293 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14294 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14295 | # Check whether --enable-udev_sync was given. | |
14296 | if test "${enable_udev_sync+set}" = set; then | |
14297 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14298 | else | |
14299 | UDEV_SYNC=no | |
14300 | fi | |
14301 | ||
14302 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14303 | $as_echo "$UDEV_SYNC" >&6; } | |
14304 | ||
90c80887 AK |
14305 | if test x$UDEV_SYNC = xyes; then |
14306 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14307 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14308 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14309 | $as_echo_n "(cached) " >&6 | |
14310 | else | |
14311 | ac_check_lib_save_LIBS=$LIBS | |
14312 | LIBS="-ludev $LIBS" | |
14313 | cat >conftest.$ac_ext <<_ACEOF | |
14314 | /* confdefs.h. */ | |
14315 | _ACEOF | |
14316 | cat confdefs.h >>conftest.$ac_ext | |
14317 | cat >>conftest.$ac_ext <<_ACEOF | |
14318 | /* end confdefs.h. */ | |
14319 | ||
14320 | /* Override any GCC internal prototype to avoid an error. | |
14321 | Use char because int might match the return type of a GCC | |
14322 | builtin and then its argument prototype would still apply. */ | |
14323 | #ifdef __cplusplus | |
14324 | extern "C" | |
14325 | #endif | |
14326 | char udev_queue_get_udev_is_active (); | |
14327 | int | |
14328 | main () | |
14329 | { | |
14330 | return udev_queue_get_udev_is_active (); | |
14331 | ; | |
14332 | return 0; | |
14333 | } | |
14334 | _ACEOF | |
14335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14336 | if { (ac_try="$ac_link" | |
14337 | case "(($ac_try" in | |
14338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14339 | *) ac_try_echo=$ac_try;; | |
14340 | esac | |
14341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14342 | $as_echo "$ac_try_echo") >&5 | |
14343 | (eval "$ac_link") 2>conftest.er1 | |
14344 | ac_status=$? | |
14345 | grep -v '^ *+' conftest.er1 >conftest.err | |
14346 | rm -f conftest.er1 | |
14347 | cat conftest.err >&5 | |
14348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14349 | (exit $ac_status); } && { | |
14350 | test -z "$ac_c_werror_flag" || | |
14351 | test ! -s conftest.err | |
14352 | } && test -s conftest$ac_exeext && { | |
14353 | test "$cross_compiling" = yes || | |
14354 | $as_test_x conftest$ac_exeext | |
14355 | }; then | |
14356 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14357 | else | |
14358 | $as_echo "$as_me: failed program was:" >&5 | |
14359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14360 | ||
14361 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14362 | fi | |
14363 | ||
14364 | rm -rf conftest.dSYM | |
14365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14366 | conftest$ac_exeext conftest.$ac_ext | |
14367 | LIBS=$ac_check_lib_save_LIBS | |
14368 | fi | |
14369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14370 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14371 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14372 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14373 | else |
5161ecb9 PR |
14374 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14375 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14376 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14377 | fi |
14378 | ||
14379 | ||
90c80887 | 14380 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14381 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14382 | _ACEOF |
14383 | ||
90c80887 AK |
14384 | fi |
14385 | ||
5161ecb9 PR |
14386 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14387 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14388 | # Check whether --enable-udev_rules was given. | |
14389 | if test "${enable_udev_rules+set}" = set; then | |
14390 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14391 | else | |
14392 | UDEV_RULES=$UDEV_SYNC | |
14393 | fi | |
14394 | ||
14395 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14396 | $as_echo "$UDEV_RULES" >&6; } | |
14397 | ||
93bd259b AK |
14398 | ################################################################################ |
14399 | # Check whether --enable-compat was given. | |
14400 | if test "${enable_compat+set}" = set; then | |
14401 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14402 | else | |
14403 | DM_COMPAT=no | |
14404 | fi | |
14405 | ||
14406 | ||
95eaa683 AK |
14407 | ################################################################################ |
14408 | # Check whether --enable-units-compat was given. | |
14409 | if test "${enable_units_compat+set}" = set; then | |
14410 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14411 | else | |
14412 | UNITS_COMPAT=no | |
14413 | fi | |
14414 | ||
14415 | ||
14416 | if test x$UNITS_COMPAT = xyes; then | |
14417 | ||
14418 | cat >>confdefs.h <<\_ACEOF | |
14419 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14420 | _ACEOF | |
14421 | ||
14422 | fi | |
14423 | ||
93bd259b AK |
14424 | ################################################################################ |
14425 | # Check whether --enable-ioctl was given. | |
14426 | if test "${enable_ioctl+set}" = set; then | |
14427 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14428 | fi | |
14429 | ||
14430 | ||
d0191583 | 14431 | ################################################################################ |
ec6a6fbe AK |
14432 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14433 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14434 | # Check whether --enable-o_direct was given. |
14435 | if test "${enable_o_direct+set}" = set; then | |
14436 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14437 | fi |
ad6254c5 | 14438 | |
ec6a6fbe AK |
14439 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14440 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14441 | |
d0191583 | 14442 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14443 | |
d0191583 JM |
14444 | cat >>confdefs.h <<\_ACEOF |
14445 | #define O_DIRECT_SUPPORT 1 | |
14446 | _ACEOF | |
ad6254c5 | 14447 | |
d0191583 | 14448 | fi |
ad6254c5 | 14449 | |
572fefeb AK |
14450 | ################################################################################ |
14451 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14452 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14453 | # Check whether --enable-applib was given. | |
14454 | if test "${enable_applib+set}" = set; then | |
14455 | enableval=$enable_applib; APPLIB=$enableval | |
14456 | else | |
14457 | APPLIB=no | |
14458 | fi | |
14459 | ||
14460 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14461 | $as_echo "$APPLIB" >&6; } | |
14462 | ||
14463 | test x$APPLIB = xyes \ | |
14464 | && LVM2APP_LIB=-llvm2app \ | |
14465 | || LVM2APP_LIB= | |
14466 | ||
d0191583 | 14467 | ################################################################################ |
ec6a6fbe AK |
14468 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14469 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14470 | # Check whether --enable-cmdlib was given. |
14471 | if test "${enable_cmdlib+set}" = set; then | |
14472 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14473 | else |
d0191583 JM |
14474 | CMDLIB=no |
14475 | fi | |
8a2fc586 | 14476 | |
ec6a6fbe AK |
14477 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14478 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14479 | |
2a9a80c9 | 14480 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14481 | && LVM2CMD_LIB=-llvm2cmd \ |
14482 | || LVM2CMD_LIB= | |
14483 | ||
93bd259b AK |
14484 | ################################################################################ |
14485 | # Check whether --enable-pkgconfig was given. | |
14486 | if test "${enable_pkgconfig+set}" = set; then | |
14487 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14488 | else | |
14489 | PKGCONFIG=no | |
14490 | fi | |
14491 | ||
2a9a80c9 | 14492 | |
23b059e7 ZK |
14493 | ################################################################################ |
14494 | # Check whether --enable-write_install was given. | |
14495 | if test "${enable_write_install+set}" = set; then | |
14496 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14497 | else | |
14498 | WRITE_INSTALL=no | |
14499 | fi | |
14500 | ||
14501 | ||
d0191583 | 14502 | ################################################################################ |
ec6a6fbe AK |
14503 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14504 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14505 | # Check whether --enable-fsadm was given. |
14506 | if test "${enable_fsadm+set}" = set; then | |
14507 | enableval=$enable_fsadm; FSADM=$enableval | |
14508 | fi | |
8a2fc586 | 14509 | |
ec6a6fbe AK |
14510 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14511 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14512 | |
d0191583 | 14513 | ################################################################################ |
ec6a6fbe AK |
14514 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14515 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14516 | # Check whether --enable-dmeventd was given. |
14517 | if test "${enable_dmeventd+set}" = set; then | |
14518 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14519 | fi | |
ad6254c5 | 14520 | |
ec6a6fbe AK |
14521 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14522 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14523 | |
93bd259b AK |
14524 | BUILD_DMEVENTD=$DMEVENTD |
14525 | ||
2a9a80c9 PR |
14526 | if test x$DMEVENTD = xyes; then |
14527 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14528 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14529 | " >&5 |
ec6a6fbe | 14530 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14531 | " >&2;} |
d0191583 | 14532 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14533 | fi |
14534 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14535 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14536 | " >&5 |
ec6a6fbe | 14537 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14538 | " >&2;} |
14539 | { (exit 1); exit 1; }; } | |
14540 | fi | |
ad6254c5 | 14541 | fi |
7a197a62 | 14542 | |
d0191583 JM |
14543 | if test x$DMEVENTD = xyes; then |
14544 | ||
14545 | cat >>confdefs.h <<\_ACEOF | |
14546 | #define DMEVENTD 1 | |
ad6254c5 AK |
14547 | _ACEOF |
14548 | ||
ad6254c5 | 14549 | fi |
93bd259b AK |
14550 | |
14551 | ################################################################################ | |
14552 | ||
ec6a6fbe AK |
14553 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14554 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14555 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14556 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14557 | else |
14558 | ac_check_lib_save_LIBS=$LIBS | |
14559 | LIBS="-lc $LIBS" | |
14560 | cat >conftest.$ac_ext <<_ACEOF | |
14561 | /* confdefs.h. */ | |
14562 | _ACEOF | |
14563 | cat confdefs.h >>conftest.$ac_ext | |
14564 | cat >>conftest.$ac_ext <<_ACEOF | |
14565 | /* end confdefs.h. */ | |
14566 | ||
14567 | /* Override any GCC internal prototype to avoid an error. | |
14568 | Use char because int might match the return type of a GCC | |
14569 | builtin and then its argument prototype would still apply. */ | |
14570 | #ifdef __cplusplus | |
14571 | extern "C" | |
14572 | #endif | |
14573 | char getline (); | |
14574 | int | |
14575 | main () | |
14576 | { | |
14577 | return getline (); | |
14578 | ; | |
14579 | return 0; | |
14580 | } | |
14581 | _ACEOF | |
14582 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14583 | if { (ac_try="$ac_link" | |
14584 | case "(($ac_try" in | |
14585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14586 | *) ac_try_echo=$ac_try;; | |
14587 | esac | |
ec6a6fbe AK |
14588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14589 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14590 | (eval "$ac_link") 2>conftest.er1 |
14591 | ac_status=$? | |
14592 | grep -v '^ *+' conftest.er1 >conftest.err | |
14593 | rm -f conftest.er1 | |
14594 | cat conftest.err >&5 | |
ec6a6fbe | 14595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14596 | (exit $ac_status); } && { |
14597 | test -z "$ac_c_werror_flag" || | |
14598 | test ! -s conftest.err | |
ec6a6fbe AK |
14599 | } && test -s conftest$ac_exeext && { |
14600 | test "$cross_compiling" = yes || | |
14601 | $as_test_x conftest$ac_exeext | |
14602 | }; then | |
93bd259b AK |
14603 | ac_cv_lib_c_getline=yes |
14604 | else | |
ec6a6fbe | 14605 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14606 | sed 's/^/| /' conftest.$ac_ext >&5 |
14607 | ||
14608 | ac_cv_lib_c_getline=no | |
14609 | fi | |
14610 | ||
ec6a6fbe | 14611 | rm -rf conftest.dSYM |
93bd259b AK |
14612 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14613 | conftest$ac_exeext conftest.$ac_ext | |
14614 | LIBS=$ac_check_lib_save_LIBS | |
14615 | fi | |
ec6a6fbe AK |
14616 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14617 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14618 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14619 | |
14620 | cat >>confdefs.h <<\_ACEOF | |
14621 | #define HAVE_GETLINE 1 | |
14622 | _ACEOF | |
14623 | ||
14624 | fi | |
14625 | ||
14626 | ||
14627 | ################################################################################ | |
14628 | ||
ec6a6fbe AK |
14629 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14630 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14631 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14632 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14633 | else |
14634 | ac_check_lib_save_LIBS=$LIBS | |
14635 | LIBS="-lc $LIBS" | |
14636 | cat >conftest.$ac_ext <<_ACEOF | |
14637 | /* confdefs.h. */ | |
14638 | _ACEOF | |
14639 | cat confdefs.h >>conftest.$ac_ext | |
14640 | cat >>conftest.$ac_ext <<_ACEOF | |
14641 | /* end confdefs.h. */ | |
14642 | ||
14643 | /* Override any GCC internal prototype to avoid an error. | |
14644 | Use char because int might match the return type of a GCC | |
14645 | builtin and then its argument prototype would still apply. */ | |
14646 | #ifdef __cplusplus | |
14647 | extern "C" | |
14648 | #endif | |
14649 | char canonicalize_file_name (); | |
14650 | int | |
14651 | main () | |
14652 | { | |
14653 | return canonicalize_file_name (); | |
14654 | ; | |
14655 | return 0; | |
14656 | } | |
14657 | _ACEOF | |
14658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14659 | if { (ac_try="$ac_link" | |
14660 | case "(($ac_try" in | |
14661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14662 | *) ac_try_echo=$ac_try;; | |
14663 | esac | |
ec6a6fbe AK |
14664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14665 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14666 | (eval "$ac_link") 2>conftest.er1 |
14667 | ac_status=$? | |
14668 | grep -v '^ *+' conftest.er1 >conftest.err | |
14669 | rm -f conftest.er1 | |
14670 | cat conftest.err >&5 | |
ec6a6fbe | 14671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14672 | (exit $ac_status); } && { |
14673 | test -z "$ac_c_werror_flag" || | |
14674 | test ! -s conftest.err | |
ec6a6fbe AK |
14675 | } && test -s conftest$ac_exeext && { |
14676 | test "$cross_compiling" = yes || | |
14677 | $as_test_x conftest$ac_exeext | |
14678 | }; then | |
93bd259b AK |
14679 | ac_cv_lib_c_canonicalize_file_name=yes |
14680 | else | |
ec6a6fbe | 14681 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14682 | sed 's/^/| /' conftest.$ac_ext >&5 |
14683 | ||
14684 | ac_cv_lib_c_canonicalize_file_name=no | |
14685 | fi | |
14686 | ||
ec6a6fbe | 14687 | rm -rf conftest.dSYM |
93bd259b AK |
14688 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14689 | conftest$ac_exeext conftest.$ac_ext | |
14690 | LIBS=$ac_check_lib_save_LIBS | |
14691 | fi | |
ec6a6fbe AK |
14692 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
14693 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14694 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
14695 | |
14696 | cat >>confdefs.h <<\_ACEOF | |
14697 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
14698 | _ACEOF | |
14699 | ||
14700 | fi | |
14701 | ||
14702 | ||
d0191583 JM |
14703 | ################################################################################ |
14704 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
14705 | then exec_prefix=""; | |
14706 | fi; | |
ad6254c5 | 14707 | |
ad6254c5 | 14708 | ################################################################################ |
ec6a6fbe AK |
14709 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
14710 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 14711 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 14712 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14713 | else |
14714 | ac_check_lib_save_LIBS=$LIBS | |
14715 | LIBS="-ldl $LIBS" | |
14716 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14717 | /* confdefs.h. */ |
14718 | _ACEOF | |
14719 | cat confdefs.h >>conftest.$ac_ext | |
14720 | cat >>conftest.$ac_ext <<_ACEOF | |
14721 | /* end confdefs.h. */ | |
14722 | ||
7a197a62 AK |
14723 | /* Override any GCC internal prototype to avoid an error. |
14724 | Use char because int might match the return type of a GCC | |
14725 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14726 | #ifdef __cplusplus |
14727 | extern "C" | |
14728 | #endif | |
ad6254c5 AK |
14729 | char dlopen (); |
14730 | int | |
14731 | main () | |
14732 | { | |
7a197a62 | 14733 | return dlopen (); |
ad6254c5 AK |
14734 | ; |
14735 | return 0; | |
14736 | } | |
14737 | _ACEOF | |
14738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14739 | if { (ac_try="$ac_link" |
14740 | case "(($ac_try" in | |
14741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14742 | *) ac_try_echo=$ac_try;; | |
14743 | esac | |
ec6a6fbe AK |
14744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14745 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14746 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14747 | ac_status=$? |
8a2fc586 AK |
14748 | grep -v '^ *+' conftest.er1 >conftest.err |
14749 | rm -f conftest.er1 | |
14750 | cat conftest.err >&5 | |
ec6a6fbe | 14751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14752 | (exit $ac_status); } && { |
14753 | test -z "$ac_c_werror_flag" || | |
14754 | test ! -s conftest.err | |
ec6a6fbe AK |
14755 | } && test -s conftest$ac_exeext && { |
14756 | test "$cross_compiling" = yes || | |
14757 | $as_test_x conftest$ac_exeext | |
14758 | }; then | |
ad6254c5 AK |
14759 | ac_cv_lib_dl_dlopen=yes |
14760 | else | |
ec6a6fbe | 14761 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14762 | sed 's/^/| /' conftest.$ac_ext >&5 |
14763 | ||
7a197a62 | 14764 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 14765 | fi |
7a197a62 | 14766 | |
ec6a6fbe | 14767 | rm -rf conftest.dSYM |
25fbec5b | 14768 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14769 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
14770 | LIBS=$ac_check_lib_save_LIBS |
14771 | fi | |
ec6a6fbe AK |
14772 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
14773 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14774 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 14775 | |
72b2cb61 AK |
14776 | |
14777 | cat >>confdefs.h <<\_ACEOF | |
14778 | #define HAVE_LIBDL 1 | |
14779 | _ACEOF | |
14780 | ||
19a2c6e0 ZK |
14781 | DL_LIBS="-ldl" |
14782 | HAVE_LIBDL=yes | |
ad6254c5 | 14783 | else |
19a2c6e0 ZK |
14784 | |
14785 | DL_LIBS= | |
ad6254c5 AK |
14786 | HAVE_LIBDL=no |
14787 | fi | |
14788 | ||
19a2c6e0 | 14789 | |
ad6254c5 AK |
14790 | ################################################################################ |
14791 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
14792 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
14793 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 14794 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 14795 | " >&5 |
ec6a6fbe | 14796 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
14797 | " >&2;} |
14798 | { (exit 1); exit 1; }; } | |
14799 | fi | |
14800 | ||
f30875db ZK |
14801 | ################################################################################ |
14802 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
14803 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
14804 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
14805 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
14806 | $as_echo_n "(cached) " >&6 | |
14807 | else | |
14808 | ac_check_lib_save_LIBS=$LIBS | |
14809 | LIBS="-lpthread $LIBS" | |
14810 | cat >conftest.$ac_ext <<_ACEOF | |
14811 | /* confdefs.h. */ | |
14812 | _ACEOF | |
14813 | cat confdefs.h >>conftest.$ac_ext | |
14814 | cat >>conftest.$ac_ext <<_ACEOF | |
14815 | /* end confdefs.h. */ | |
14816 | ||
14817 | /* Override any GCC internal prototype to avoid an error. | |
14818 | Use char because int might match the return type of a GCC | |
14819 | builtin and then its argument prototype would still apply. */ | |
14820 | #ifdef __cplusplus | |
14821 | extern "C" | |
14822 | #endif | |
14823 | char pthread_mutex_lock (); | |
14824 | int | |
14825 | main () | |
14826 | { | |
14827 | return pthread_mutex_lock (); | |
14828 | ; | |
14829 | return 0; | |
14830 | } | |
14831 | _ACEOF | |
14832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14833 | if { (ac_try="$ac_link" | |
14834 | case "(($ac_try" in | |
14835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14836 | *) ac_try_echo=$ac_try;; | |
14837 | esac | |
14838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14839 | $as_echo "$ac_try_echo") >&5 | |
14840 | (eval "$ac_link") 2>conftest.er1 | |
14841 | ac_status=$? | |
14842 | grep -v '^ *+' conftest.er1 >conftest.err | |
14843 | rm -f conftest.er1 | |
14844 | cat conftest.err >&5 | |
14845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14846 | (exit $ac_status); } && { | |
14847 | test -z "$ac_c_werror_flag" || | |
14848 | test ! -s conftest.err | |
14849 | } && test -s conftest$ac_exeext && { | |
14850 | test "$cross_compiling" = yes || | |
14851 | $as_test_x conftest$ac_exeext | |
14852 | }; then | |
14853 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
14854 | else | |
14855 | $as_echo "$as_me: failed program was:" >&5 | |
14856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14857 | ||
14858 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
14859 | fi | |
14860 | ||
14861 | rm -rf conftest.dSYM | |
14862 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14863 | conftest$ac_exeext conftest.$ac_ext | |
14864 | LIBS=$ac_check_lib_save_LIBS | |
14865 | fi | |
14866 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
14867 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
14868 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
14869 | PTHREAD_LIBS="-lpthread" | |
14870 | else | |
14871 | hard_bailout | |
14872 | fi | |
14873 | ||
14874 | fi | |
14875 | ||
d0191583 | 14876 | ################################################################################ |
ec6a6fbe AK |
14877 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
14878 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
14879 | # Check whether --enable-selinux was given. |
14880 | if test "${enable_selinux+set}" = set; then | |
14881 | enableval=$enable_selinux; SELINUX=$enableval | |
14882 | fi | |
14883 | ||
ec6a6fbe AK |
14884 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
14885 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 14886 | |
ad6254c5 AK |
14887 | ################################################################################ |
14888 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
14889 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
14890 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 14891 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 14892 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
14893 | else |
14894 | ac_check_lib_save_LIBS=$LIBS | |
14895 | LIBS="-lsepol $LIBS" | |
14896 | cat >conftest.$ac_ext <<_ACEOF | |
14897 | /* confdefs.h. */ | |
14898 | _ACEOF | |
14899 | cat confdefs.h >>conftest.$ac_ext | |
14900 | cat >>conftest.$ac_ext <<_ACEOF | |
14901 | /* end confdefs.h. */ | |
14902 | ||
7a197a62 AK |
14903 | /* Override any GCC internal prototype to avoid an error. |
14904 | Use char because int might match the return type of a GCC | |
14905 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
14906 | #ifdef __cplusplus |
14907 | extern "C" | |
14908 | #endif | |
8a2fc586 AK |
14909 | char sepol_check_context (); |
14910 | int | |
14911 | main () | |
14912 | { | |
7a197a62 | 14913 | return sepol_check_context (); |
8a2fc586 AK |
14914 | ; |
14915 | return 0; | |
14916 | } | |
14917 | _ACEOF | |
14918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14919 | if { (ac_try="$ac_link" |
14920 | case "(($ac_try" in | |
14921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14922 | *) ac_try_echo=$ac_try;; | |
14923 | esac | |
ec6a6fbe AK |
14924 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14925 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14926 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
14927 | ac_status=$? |
14928 | grep -v '^ *+' conftest.er1 >conftest.err | |
14929 | rm -f conftest.er1 | |
14930 | cat conftest.err >&5 | |
ec6a6fbe | 14931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14932 | (exit $ac_status); } && { |
14933 | test -z "$ac_c_werror_flag" || | |
14934 | test ! -s conftest.err | |
ec6a6fbe AK |
14935 | } && test -s conftest$ac_exeext && { |
14936 | test "$cross_compiling" = yes || | |
14937 | $as_test_x conftest$ac_exeext | |
14938 | }; then | |
8a2fc586 AK |
14939 | ac_cv_lib_sepol_sepol_check_context=yes |
14940 | else | |
ec6a6fbe | 14941 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
14942 | sed 's/^/| /' conftest.$ac_ext >&5 |
14943 | ||
7a197a62 | 14944 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 14945 | fi |
7a197a62 | 14946 | |
ec6a6fbe | 14947 | rm -rf conftest.dSYM |
25fbec5b | 14948 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
14949 | conftest$ac_exeext conftest.$ac_ext |
14950 | LIBS=$ac_check_lib_save_LIBS | |
14951 | fi | |
ec6a6fbe AK |
14952 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
14953 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
14954 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 14955 | |
d0191583 JM |
14956 | |
14957 | cat >>confdefs.h <<\_ACEOF | |
14958 | #define HAVE_SEPOL 1 | |
14959 | _ACEOF | |
14960 | ||
f8f6ec92 ZK |
14961 | SELINUX_LIBS="-lsepol" |
14962 | fi | |
14963 | ||
8a2fc586 | 14964 | |
ec6a6fbe AK |
14965 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
14966 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 14967 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 14968 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14969 | else |
14970 | ac_check_lib_save_LIBS=$LIBS | |
14971 | LIBS="-lselinux $LIBS" | |
14972 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14973 | /* confdefs.h. */ |
14974 | _ACEOF | |
14975 | cat confdefs.h >>conftest.$ac_ext | |
14976 | cat >>conftest.$ac_ext <<_ACEOF | |
14977 | /* end confdefs.h. */ | |
14978 | ||
7a197a62 AK |
14979 | /* Override any GCC internal prototype to avoid an error. |
14980 | Use char because int might match the return type of a GCC | |
14981 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14982 | #ifdef __cplusplus |
14983 | extern "C" | |
14984 | #endif | |
ad6254c5 AK |
14985 | char is_selinux_enabled (); |
14986 | int | |
14987 | main () | |
14988 | { | |
7a197a62 | 14989 | return is_selinux_enabled (); |
ad6254c5 AK |
14990 | ; |
14991 | return 0; | |
14992 | } | |
14993 | _ACEOF | |
14994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14995 | if { (ac_try="$ac_link" |
14996 | case "(($ac_try" in | |
14997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14998 | *) ac_try_echo=$ac_try;; | |
14999 | esac | |
ec6a6fbe AK |
15000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15001 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15002 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15003 | ac_status=$? |
8a2fc586 AK |
15004 | grep -v '^ *+' conftest.er1 >conftest.err |
15005 | rm -f conftest.er1 | |
15006 | cat conftest.err >&5 | |
ec6a6fbe | 15007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15008 | (exit $ac_status); } && { |
15009 | test -z "$ac_c_werror_flag" || | |
15010 | test ! -s conftest.err | |
ec6a6fbe AK |
15011 | } && test -s conftest$ac_exeext && { |
15012 | test "$cross_compiling" = yes || | |
15013 | $as_test_x conftest$ac_exeext | |
15014 | }; then | |
ad6254c5 AK |
15015 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15016 | else | |
ec6a6fbe | 15017 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15018 | sed 's/^/| /' conftest.$ac_ext >&5 |
15019 | ||
7a197a62 | 15020 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15021 | fi |
7a197a62 | 15022 | |
ec6a6fbe | 15023 | rm -rf conftest.dSYM |
25fbec5b | 15024 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15025 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15026 | LIBS=$ac_check_lib_save_LIBS |
15027 | fi | |
ec6a6fbe AK |
15028 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15029 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15030 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15031 | |
72b2cb61 | 15032 | |
f8f6ec92 ZK |
15033 | for ac_header in selinux/selinux.h |
15034 | do | |
15035 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15037 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15038 | $as_echo_n "checking for $ac_header... " >&6; } | |
15039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15040 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15041 | fi |
15042 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15043 | $as_echo "$as_val"'` | |
15044 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15045 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15046 | else |
f8f6ec92 ZK |
15047 | # Is the header compilable? |
15048 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15049 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
15050 | cat >conftest.$ac_ext <<_ACEOF |
15051 | /* confdefs.h. */ | |
15052 | _ACEOF | |
15053 | cat confdefs.h >>conftest.$ac_ext | |
15054 | cat >>conftest.$ac_ext <<_ACEOF | |
15055 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
15056 | $ac_includes_default |
15057 | #include <$ac_header> | |
66e941e8 | 15058 | _ACEOF |
f8f6ec92 ZK |
15059 | rm -f conftest.$ac_objext |
15060 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15061 | case "(($ac_try" in |
15062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15063 | *) ac_try_echo=$ac_try;; | |
15064 | esac | |
ec6a6fbe AK |
15065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15066 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15067 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15068 | ac_status=$? |
15069 | grep -v '^ *+' conftest.er1 >conftest.err | |
15070 | rm -f conftest.er1 | |
15071 | cat conftest.err >&5 | |
ec6a6fbe | 15072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15073 | (exit $ac_status); } && { |
15074 | test -z "$ac_c_werror_flag" || | |
15075 | test ! -s conftest.err | |
f8f6ec92 ZK |
15076 | } && test -s conftest.$ac_objext; then |
15077 | ac_header_compiler=yes | |
15078 | else | |
15079 | $as_echo "$as_me: failed program was:" >&5 | |
15080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15081 | ||
15082 | ac_header_compiler=no | |
15083 | fi | |
15084 | ||
15085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15086 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15087 | $as_echo "$ac_header_compiler" >&6; } | |
15088 | ||
15089 | # Is the header present? | |
15090 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15091 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15092 | cat >conftest.$ac_ext <<_ACEOF | |
15093 | /* confdefs.h. */ | |
15094 | _ACEOF | |
15095 | cat confdefs.h >>conftest.$ac_ext | |
15096 | cat >>conftest.$ac_ext <<_ACEOF | |
15097 | /* end confdefs.h. */ | |
15098 | #include <$ac_header> | |
15099 | _ACEOF | |
15100 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15101 | case "(($ac_try" in | |
15102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15103 | *) ac_try_echo=$ac_try;; | |
15104 | esac | |
15105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15106 | $as_echo "$ac_try_echo") >&5 | |
15107 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15108 | ac_status=$? | |
15109 | grep -v '^ *+' conftest.er1 >conftest.err | |
15110 | rm -f conftest.er1 | |
15111 | cat conftest.err >&5 | |
15112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15113 | (exit $ac_status); } >/dev/null && { | |
15114 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15115 | test ! -s conftest.err | |
ec6a6fbe | 15116 | }; then |
f8f6ec92 | 15117 | ac_header_preproc=yes |
66e941e8 | 15118 | else |
ec6a6fbe | 15119 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15120 | sed 's/^/| /' conftest.$ac_ext >&5 |
15121 | ||
f8f6ec92 ZK |
15122 | ac_header_preproc=no |
15123 | fi | |
15124 | ||
15125 | rm -f conftest.err conftest.$ac_ext | |
15126 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15127 | $as_echo "$ac_header_preproc" >&6; } | |
15128 | ||
15129 | # So? What about this header? | |
15130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15131 | yes:no: ) | |
15132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15133 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15135 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15136 | ac_header_preproc=yes | |
15137 | ;; | |
15138 | no:yes:* ) | |
15139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15140 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15142 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15143 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15144 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15145 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15146 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15147 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15148 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15149 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15150 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15151 | |
f8f6ec92 ZK |
15152 | ;; |
15153 | esac | |
15154 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15155 | $as_echo_n "checking for $ac_header... " >&6; } | |
15156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15157 | $as_echo_n "(cached) " >&6 | |
15158 | else | |
15159 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15160 | fi |
f8f6ec92 ZK |
15161 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15162 | $as_echo "$as_val"'` | |
15163 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15164 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15165 | |
66e941e8 | 15166 | fi |
f8f6ec92 ZK |
15167 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15168 | $as_echo "$as_val"'` | |
15169 | if test "x$as_val" = x""yes; then | |
15170 | cat >>confdefs.h <<_ACEOF | |
15171 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15172 | _ACEOF | |
15173 | ||
66e941e8 | 15174 | else |
f8f6ec92 | 15175 | hard_bailout |
66e941e8 | 15176 | fi |
f8f6ec92 ZK |
15177 | |
15178 | done | |
15179 | ||
15180 | ||
15181 | cat >>confdefs.h <<\_ACEOF | |
15182 | #define HAVE_SELINUX 1 | |
15183 | _ACEOF | |
15184 | ||
15185 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15186 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15187 | HAVE_SELINUX=yes |
15188 | else | |
15189 | ||
15190 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15191 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15192 | SELINUX_LIBS= | |
f7f0854e | 15193 | SELINUX_PC= |
f8f6ec92 | 15194 | HAVE_SELINUX=no |
66e941e8 JM |
15195 | fi |
15196 | ||
ad6254c5 AK |
15197 | fi |
15198 | ||
8b1a3214 AK |
15199 | ################################################################################ |
15200 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15201 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15202 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15203 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15204 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15205 | else |
15206 | ac_check_lib_save_LIBS=$LIBS | |
15207 | LIBS="-lrt $LIBS" | |
15208 | cat >conftest.$ac_ext <<_ACEOF | |
15209 | /* confdefs.h. */ | |
15210 | _ACEOF | |
15211 | cat confdefs.h >>conftest.$ac_ext | |
15212 | cat >>conftest.$ac_ext <<_ACEOF | |
15213 | /* end confdefs.h. */ | |
15214 | ||
7a197a62 AK |
15215 | /* Override any GCC internal prototype to avoid an error. |
15216 | Use char because int might match the return type of a GCC | |
15217 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15218 | #ifdef __cplusplus |
15219 | extern "C" | |
15220 | #endif | |
8b1a3214 AK |
15221 | char clock_gettime (); |
15222 | int | |
15223 | main () | |
15224 | { | |
7a197a62 | 15225 | return clock_gettime (); |
8b1a3214 AK |
15226 | ; |
15227 | return 0; | |
15228 | } | |
15229 | _ACEOF | |
15230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15231 | if { (ac_try="$ac_link" |
15232 | case "(($ac_try" in | |
15233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15234 | *) ac_try_echo=$ac_try;; | |
15235 | esac | |
ec6a6fbe AK |
15236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15237 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15238 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15239 | ac_status=$? |
15240 | grep -v '^ *+' conftest.er1 >conftest.err | |
15241 | rm -f conftest.er1 | |
15242 | cat conftest.err >&5 | |
ec6a6fbe | 15243 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15244 | (exit $ac_status); } && { |
15245 | test -z "$ac_c_werror_flag" || | |
15246 | test ! -s conftest.err | |
ec6a6fbe AK |
15247 | } && test -s conftest$ac_exeext && { |
15248 | test "$cross_compiling" = yes || | |
15249 | $as_test_x conftest$ac_exeext | |
15250 | }; then | |
8b1a3214 AK |
15251 | ac_cv_lib_rt_clock_gettime=yes |
15252 | else | |
ec6a6fbe | 15253 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15254 | sed 's/^/| /' conftest.$ac_ext >&5 |
15255 | ||
7a197a62 | 15256 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15257 | fi |
7a197a62 | 15258 | |
ec6a6fbe | 15259 | rm -rf conftest.dSYM |
25fbec5b | 15260 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15261 | conftest$ac_exeext conftest.$ac_ext |
15262 | LIBS=$ac_check_lib_save_LIBS | |
15263 | fi | |
ec6a6fbe AK |
15264 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15265 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15266 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15267 | HAVE_REALTIME=yes |
15268 | else | |
15269 | HAVE_REALTIME=no | |
15270 | fi | |
15271 | ||
8b1a3214 AK |
15272 | |
15273 | if test x$HAVE_REALTIME = xyes; then | |
15274 | ||
15275 | cat >>confdefs.h <<\_ACEOF | |
15276 | #define HAVE_REALTIME 1 | |
15277 | _ACEOF | |
15278 | ||
15279 | LIBS="-lrt $LIBS" | |
15280 | else | |
ec6a6fbe AK |
15281 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15282 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15283 | fi |
15284 | fi | |
15285 | ||
ad6254c5 AK |
15286 | ################################################################################ |
15287 | ||
15288 | for ac_header in getopt.h | |
15289 | do | |
ec6a6fbe | 15290 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15291 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15292 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15293 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15294 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15295 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15296 | fi |
ec6a6fbe AK |
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; } | |
ad6254c5 AK |
15301 | else |
15302 | # Is the header compilable? | |
ec6a6fbe AK |
15303 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15304 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15305 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15306 | /* confdefs.h. */ |
15307 | _ACEOF | |
15308 | cat confdefs.h >>conftest.$ac_ext | |
15309 | cat >>conftest.$ac_ext <<_ACEOF | |
15310 | /* end confdefs.h. */ | |
15311 | $ac_includes_default | |
15312 | #include <$ac_header> | |
15313 | _ACEOF | |
15314 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15315 | if { (ac_try="$ac_compile" |
15316 | case "(($ac_try" in | |
15317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15318 | *) ac_try_echo=$ac_try;; | |
15319 | esac | |
ec6a6fbe AK |
15320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15321 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15322 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15323 | ac_status=$? |
8a2fc586 AK |
15324 | grep -v '^ *+' conftest.er1 >conftest.err |
15325 | rm -f conftest.er1 | |
15326 | cat conftest.err >&5 | |
ec6a6fbe | 15327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15328 | (exit $ac_status); } && { |
15329 | test -z "$ac_c_werror_flag" || | |
15330 | test ! -s conftest.err | |
15331 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15332 | ac_header_compiler=yes |
15333 | else | |
ec6a6fbe | 15334 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15335 | sed 's/^/| /' conftest.$ac_ext >&5 |
15336 | ||
7a197a62 | 15337 | ac_header_compiler=no |
ad6254c5 | 15338 | fi |
7a197a62 AK |
15339 | |
15340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15341 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15342 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15343 | |
15344 | # Is the header present? | |
ec6a6fbe AK |
15345 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15346 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15347 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15348 | /* confdefs.h. */ |
15349 | _ACEOF | |
15350 | cat confdefs.h >>conftest.$ac_ext | |
15351 | cat >>conftest.$ac_ext <<_ACEOF | |
15352 | /* end confdefs.h. */ | |
15353 | #include <$ac_header> | |
15354 | _ACEOF | |
7a197a62 AK |
15355 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15356 | case "(($ac_try" in | |
15357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15358 | *) ac_try_echo=$ac_try;; | |
15359 | esac | |
ec6a6fbe AK |
15360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15361 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15362 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15363 | ac_status=$? |
15364 | grep -v '^ *+' conftest.er1 >conftest.err | |
15365 | rm -f conftest.er1 | |
15366 | cat conftest.err >&5 | |
ec6a6fbe | 15367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15368 | (exit $ac_status); } >/dev/null && { |
15369 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15370 | test ! -s conftest.err | |
15371 | }; then | |
ad6254c5 AK |
15372 | ac_header_preproc=yes |
15373 | else | |
ec6a6fbe | 15374 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15375 | sed 's/^/| /' conftest.$ac_ext >&5 |
15376 | ||
15377 | ac_header_preproc=no | |
15378 | fi | |
7a197a62 | 15379 | |
ad6254c5 | 15380 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15381 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15382 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15383 | |
15384 | # So? What about this header? | |
8a2fc586 AK |
15385 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15386 | yes:no: ) | |
ec6a6fbe AK |
15387 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15388 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15389 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15390 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15391 | ac_header_preproc=yes |
ad6254c5 | 15392 | ;; |
8a2fc586 | 15393 | no:yes:* ) |
ec6a6fbe AK |
15394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15395 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15397 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15399 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15401 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15403 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15405 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15406 | |
ad6254c5 AK |
15407 | ;; |
15408 | esac | |
ec6a6fbe AK |
15409 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15410 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15411 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15412 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15413 | else |
8a2fc586 | 15414 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15415 | fi |
ec6a6fbe AK |
15416 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15417 | $as_echo "$as_val"'` | |
15418 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15419 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15420 | |
15421 | fi | |
ec6a6fbe AK |
15422 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15423 | $as_echo "$as_val"'` | |
15424 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15425 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15426 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15427 | _ACEOF |
72b2cb61 AK |
15428 | |
15429 | cat >>confdefs.h <<\_ACEOF | |
15430 | #define HAVE_GETOPTLONG 1 | |
15431 | _ACEOF | |
15432 | ||
ad6254c5 AK |
15433 | fi |
15434 | ||
15435 | done | |
15436 | ||
15437 | ||
15438 | ################################################################################ | |
06e459df | 15439 | if test x$READLINE != xno; then |
539f4a77 ZK |
15440 | lvm_saved_libs=$LIBS |
15441 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15442 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15443 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15444 | $as_echo_n "(cached) " >&6 | |
15445 | else | |
15446 | ac_func_search_save_LIBS=$LIBS | |
15447 | cat >conftest.$ac_ext <<_ACEOF | |
15448 | /* confdefs.h. */ | |
15449 | _ACEOF | |
15450 | cat confdefs.h >>conftest.$ac_ext | |
15451 | cat >>conftest.$ac_ext <<_ACEOF | |
15452 | /* end confdefs.h. */ | |
bc1024f8 | 15453 | |
539f4a77 ZK |
15454 | /* Override any GCC internal prototype to avoid an error. |
15455 | Use char because int might match the return type of a GCC | |
15456 | builtin and then its argument prototype would still apply. */ | |
15457 | #ifdef __cplusplus | |
15458 | extern "C" | |
15459 | #endif | |
15460 | char tgetent (); | |
15461 | int | |
15462 | main () | |
15463 | { | |
15464 | return tgetent (); | |
15465 | ; | |
15466 | return 0; | |
15467 | } | |
15468 | _ACEOF | |
15469 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15470 | if test -z "$ac_lib"; then | |
15471 | ac_res="none required" | |
15472 | else | |
15473 | ac_res=-l$ac_lib | |
15474 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15475 | fi | |
15476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15477 | if { (ac_try="$ac_link" | |
15478 | case "(($ac_try" in | |
15479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15480 | *) ac_try_echo=$ac_try;; | |
15481 | esac | |
15482 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15483 | $as_echo "$ac_try_echo") >&5 | |
15484 | (eval "$ac_link") 2>conftest.er1 | |
15485 | ac_status=$? | |
15486 | grep -v '^ *+' conftest.er1 >conftest.err | |
15487 | rm -f conftest.er1 | |
15488 | cat conftest.err >&5 | |
15489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15490 | (exit $ac_status); } && { | |
15491 | test -z "$ac_c_werror_flag" || | |
15492 | test ! -s conftest.err | |
15493 | } && test -s conftest$ac_exeext && { | |
15494 | test "$cross_compiling" = yes || | |
15495 | $as_test_x conftest$ac_exeext | |
15496 | }; then | |
15497 | ac_cv_search_tgetent=$ac_res | |
15498 | else | |
15499 | $as_echo "$as_me: failed program was:" >&5 | |
15500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15501 | ||
15502 | ||
15503 | fi | |
15504 | ||
15505 | rm -rf conftest.dSYM | |
15506 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15507 | conftest$ac_exeext | |
15508 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15509 | break | |
15510 | fi | |
15511 | done | |
15512 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15513 | : | |
15514 | else | |
15515 | ac_cv_search_tgetent=no | |
15516 | fi | |
15517 | rm conftest.$ac_ext | |
15518 | LIBS=$ac_func_search_save_LIBS | |
15519 | fi | |
15520 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15521 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15522 | ac_res=$ac_cv_search_tgetent | |
15523 | if test "$ac_res" != no; then | |
15524 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15525 | READLINE_LIBS=$ac_cv_search_tgetent | |
15526 | else | |
15527 | ||
15528 | if test "$READLINE" = yes; then | |
15529 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15530 | --enable-readline option (which is enabled by default). Either disable readline | |
15531 | support with --disable-readline or download and install termcap from: | |
15532 | ftp.gnu.org/gnu/termcap | |
15533 | Note: if you are using precompiled packages you will also need the development | |
15534 | package as well (which may be called termcap-devel or something similar). | |
15535 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15536 | not found either - but you could try installing that as well." >&5 | |
15537 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15538 | --enable-readline option (which is enabled by default). Either disable readline | |
15539 | support with --disable-readline or download and install termcap from: | |
15540 | ftp.gnu.org/gnu/termcap | |
15541 | Note: if you are using precompiled packages you will also need the development | |
15542 | package as well (which may be called termcap-devel or something similar). | |
15543 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15544 | not found either - but you could try installing that as well." >&2;} | |
15545 | { (exit 1); exit 1; }; } | |
15546 | fi | |
15547 | fi | |
15548 | ||
15549 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15550 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15551 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15552 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15553 | else |
15554 | ac_check_lib_save_LIBS=$LIBS | |
15555 | LIBS="-lreadline $LIBS" | |
15556 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15557 | /* confdefs.h. */ |
15558 | _ACEOF | |
15559 | cat confdefs.h >>conftest.$ac_ext | |
15560 | cat >>conftest.$ac_ext <<_ACEOF | |
15561 | /* end confdefs.h. */ | |
15562 | ||
7a197a62 AK |
15563 | /* Override any GCC internal prototype to avoid an error. |
15564 | Use char because int might match the return type of a GCC | |
15565 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15566 | #ifdef __cplusplus |
15567 | extern "C" | |
15568 | #endif | |
ad6254c5 AK |
15569 | char readline (); |
15570 | int | |
15571 | main () | |
15572 | { | |
7a197a62 | 15573 | return readline (); |
ad6254c5 AK |
15574 | ; |
15575 | return 0; | |
15576 | } | |
15577 | _ACEOF | |
15578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15579 | if { (ac_try="$ac_link" |
15580 | case "(($ac_try" in | |
15581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15582 | *) ac_try_echo=$ac_try;; | |
15583 | esac | |
ec6a6fbe AK |
15584 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15585 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15586 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15587 | ac_status=$? |
8a2fc586 AK |
15588 | grep -v '^ *+' conftest.er1 >conftest.err |
15589 | rm -f conftest.er1 | |
15590 | cat conftest.err >&5 | |
ec6a6fbe | 15591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15592 | (exit $ac_status); } && { |
15593 | test -z "$ac_c_werror_flag" || | |
15594 | test ! -s conftest.err | |
ec6a6fbe AK |
15595 | } && test -s conftest$ac_exeext && { |
15596 | test "$cross_compiling" = yes || | |
15597 | $as_test_x conftest$ac_exeext | |
15598 | }; then | |
ad6254c5 AK |
15599 | ac_cv_lib_readline_readline=yes |
15600 | else | |
ec6a6fbe | 15601 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15602 | sed 's/^/| /' conftest.$ac_ext >&5 |
15603 | ||
7a197a62 | 15604 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15605 | fi |
7a197a62 | 15606 | |
ec6a6fbe | 15607 | rm -rf conftest.dSYM |
25fbec5b | 15608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15609 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15610 | LIBS=$ac_check_lib_save_LIBS |
15611 | fi | |
ec6a6fbe AK |
15612 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15613 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15614 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15615 | |
15616 | ||
15617 | cat >>confdefs.h <<\_ACEOF | |
15618 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15619 | _ACEOF |
15620 | ||
539f4a77 ZK |
15621 | LIBS=$lvm_saved_libs |
15622 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15623 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15624 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15625 | $as_echo_n "(cached) " >&6 | |
15626 | else | |
15627 | ac_check_lib_save_LIBS=$LIBS | |
15628 | LIBS="-lreadline $LIBS" | |
15629 | cat >conftest.$ac_ext <<_ACEOF | |
15630 | /* confdefs.h. */ | |
15631 | _ACEOF | |
15632 | cat confdefs.h >>conftest.$ac_ext | |
15633 | cat >>conftest.$ac_ext <<_ACEOF | |
15634 | /* end confdefs.h. */ | |
bc1024f8 | 15635 | |
539f4a77 ZK |
15636 | /* Override any GCC internal prototype to avoid an error. |
15637 | Use char because int might match the return type of a GCC | |
15638 | builtin and then its argument prototype would still apply. */ | |
15639 | #ifdef __cplusplus | |
15640 | extern "C" | |
15641 | #endif | |
15642 | char rl_line_buffer (); | |
15643 | int | |
15644 | main () | |
15645 | { | |
15646 | return rl_line_buffer (); | |
15647 | ; | |
15648 | return 0; | |
15649 | } | |
15650 | _ACEOF | |
15651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15652 | if { (ac_try="$ac_link" | |
15653 | case "(($ac_try" in | |
15654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15655 | *) ac_try_echo=$ac_try;; | |
15656 | esac | |
15657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15658 | $as_echo "$ac_try_echo") >&5 | |
15659 | (eval "$ac_link") 2>conftest.er1 | |
15660 | ac_status=$? | |
15661 | grep -v '^ *+' conftest.er1 >conftest.err | |
15662 | rm -f conftest.er1 | |
15663 | cat conftest.err >&5 | |
15664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15665 | (exit $ac_status); } && { | |
15666 | test -z "$ac_c_werror_flag" || | |
15667 | test ! -s conftest.err | |
15668 | } && test -s conftest$ac_exeext && { | |
15669 | test "$cross_compiling" = yes || | |
15670 | $as_test_x conftest$ac_exeext | |
15671 | }; then | |
15672 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 15673 | else |
539f4a77 ZK |
15674 | $as_echo "$as_me: failed program was:" >&5 |
15675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15676 | ||
15677 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
15678 | fi |
15679 | ||
539f4a77 ZK |
15680 | rm -rf conftest.dSYM |
15681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15682 | conftest$ac_exeext conftest.$ac_ext | |
15683 | LIBS=$ac_check_lib_save_LIBS | |
15684 | fi | |
15685 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
15686 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15687 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
15688 | READLINE_LIBS="-lreadline" | |
15689 | else | |
15690 | ||
15691 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
15692 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
15693 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
15694 | ||
15695 | fi | |
15696 | ||
15697 | else | |
15698 | ||
15699 | READLINE_LIBS= | |
15700 | if test "$READLINE" = yes; then | |
15701 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
15702 | --enable-readline option (which is enabled by default). Either disable readline |
15703 | support with --disable-readline or download and install readline from: | |
15704 | ftp.gnu.org/gnu/readline | |
15705 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15706 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 15707 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
15708 | --enable-readline option (which is enabled by default). Either disable readline |
15709 | support with --disable-readline or download and install readline from: | |
15710 | ftp.gnu.org/gnu/readline | |
15711 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15712 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 15713 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
15714 | fi |
15715 | fi | |
15716 | ||
15717 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
15718 | |
15719 | for ac_func in rl_completion_matches | |
15720 | do | |
ec6a6fbe AK |
15721 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15722 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15723 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 15724 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15725 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15726 | else |
15727 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15728 | /* confdefs.h. */ |
15729 | _ACEOF | |
15730 | cat confdefs.h >>conftest.$ac_ext | |
15731 | cat >>conftest.$ac_ext <<_ACEOF | |
15732 | /* end confdefs.h. */ | |
bc1024f8 | 15733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 15734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 15735 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 15736 | |
ad6254c5 | 15737 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 15738 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
15739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
15740 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 15741 | |
ad6254c5 AK |
15742 | #ifdef __STDC__ |
15743 | # include <limits.h> | |
15744 | #else | |
15745 | # include <assert.h> | |
15746 | #endif | |
8a2fc586 | 15747 | |
bc1024f8 | 15748 | #undef $ac_func |
8a2fc586 | 15749 | |
7a197a62 AK |
15750 | /* Override any GCC internal prototype to avoid an error. |
15751 | Use char because int might match the return type of a GCC | |
15752 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15753 | #ifdef __cplusplus |
15754 | extern "C" | |
ad6254c5 | 15755 | #endif |
bc1024f8 | 15756 | char $ac_func (); |
ad6254c5 AK |
15757 | /* The GNU C library defines this for functions which it implements |
15758 | to always fail with ENOSYS. Some functions are actually named | |
15759 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 15760 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 15761 | choke me |
ad6254c5 AK |
15762 | #endif |
15763 | ||
15764 | int | |
15765 | main () | |
15766 | { | |
bc1024f8 | 15767 | return $ac_func (); |
ad6254c5 AK |
15768 | ; |
15769 | return 0; | |
15770 | } | |
15771 | _ACEOF | |
15772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15773 | if { (ac_try="$ac_link" |
15774 | case "(($ac_try" in | |
15775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15776 | *) ac_try_echo=$ac_try;; | |
15777 | esac | |
ec6a6fbe AK |
15778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15779 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15780 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15781 | ac_status=$? |
8a2fc586 AK |
15782 | grep -v '^ *+' conftest.er1 >conftest.err |
15783 | rm -f conftest.er1 | |
15784 | cat conftest.err >&5 | |
ec6a6fbe | 15785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15786 | (exit $ac_status); } && { |
15787 | test -z "$ac_c_werror_flag" || | |
15788 | test ! -s conftest.err | |
ec6a6fbe AK |
15789 | } && test -s conftest$ac_exeext && { |
15790 | test "$cross_compiling" = yes || | |
15791 | $as_test_x conftest$ac_exeext | |
15792 | }; then | |
bc1024f8 | 15793 | eval "$as_ac_var=yes" |
ad6254c5 | 15794 | else |
ec6a6fbe | 15795 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15796 | sed 's/^/| /' conftest.$ac_ext >&5 |
15797 | ||
bc1024f8 | 15798 | eval "$as_ac_var=no" |
ad6254c5 | 15799 | fi |
7a197a62 | 15800 | |
ec6a6fbe | 15801 | rm -rf conftest.dSYM |
25fbec5b | 15802 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15803 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 15804 | fi |
ec6a6fbe AK |
15805 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15806 | $as_echo "$as_val"'` | |
15807 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15808 | $as_echo "$ac_res" >&6; } | |
15809 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15810 | $as_echo "$as_val"'` | |
15811 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 15812 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15813 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
15814 | _ACEOF |
15815 | ||
15816 | fi | |
bc1024f8 | 15817 | done |
ad6254c5 | 15818 | |
539f4a77 | 15819 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
15820 | fi |
15821 | ||
15822 | ################################################################################ | |
ec6a6fbe AK |
15823 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
15824 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 15825 | # Check whether --enable-nls was given. |
ad6254c5 | 15826 | if test "${enable_nls+set}" = set; then |
7a197a62 | 15827 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
15828 | else |
15829 | INTL=no | |
7a197a62 AK |
15830 | fi |
15831 | ||
ec6a6fbe AK |
15832 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
15833 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
15834 | |
15835 | if test x$INTL = xyes; then | |
93bd259b | 15836 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
15837 | INTL_PACKAGE="lvm2" |
15838 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15839 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
15840 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15841 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 15842 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 15843 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15844 | else |
15845 | case $MSGFMT in | |
15846 | [\\/]* | ?:[\\/]*) | |
15847 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15848 | ;; | |
15849 | *) | |
15850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15851 | for as_dir in $PATH | |
15852 | do | |
15853 | IFS=$as_save_IFS | |
15854 | test -z "$as_dir" && as_dir=. | |
15855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 15857 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15858 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
15859 | break 2 |
15860 | fi | |
15861 | done | |
15862 | done | |
7a197a62 | 15863 | IFS=$as_save_IFS |
ad6254c5 AK |
15864 | |
15865 | ;; | |
15866 | esac | |
15867 | fi | |
15868 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 15869 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
15870 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
15871 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 15872 | else |
ec6a6fbe AK |
15873 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15874 | $as_echo "no" >&6; } | |
ad6254c5 AK |
15875 | fi |
15876 | ||
7a197a62 | 15877 | |
ad6254c5 | 15878 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 15879 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 15880 | " >&5 |
ec6a6fbe | 15881 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
15882 | " >&2;} |
15883 | { (exit 1); exit 1; }; } | |
15884 | fi; | |
15885 | ||
15886 | ||
7a197a62 | 15887 | # Check whether --with-localedir was given. |
ad6254c5 | 15888 | if test "${with_localedir+set}" = set; then |
7a197a62 | 15889 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
15890 | else |
15891 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
15892 | fi |
15893 | ||
ad6254c5 AK |
15894 | fi |
15895 | ||
15896 | ################################################################################ | |
15897 | ||
7a197a62 | 15898 | # Check whether --with-confdir was given. |
ad6254c5 | 15899 | if test "${with_confdir+set}" = set; then |
7a197a62 | 15900 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
15901 | else |
15902 | CONFDIR='/etc' | |
7a197a62 AK |
15903 | fi |
15904 | ||
ad6254c5 AK |
15905 | |
15906 | ||
7a197a62 | 15907 | # Check whether --with-staticdir was given. |
ad6254c5 | 15908 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 15909 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
15910 | else |
15911 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 15912 | fi |
ad6254c5 | 15913 | |
33f732c5 | 15914 | |
7a197a62 | 15915 | |
68f2de6d AK |
15916 | # Check whether --with-usrlibdir was given. |
15917 | if test "${with_usrlibdir+set}" = set; then | |
15918 | withval=$with_usrlibdir; usrlibdir="$withval" | |
15919 | else | |
15920 | usrlibdir='${prefix}/lib' | |
15921 | fi | |
15922 | ||
15923 | ||
15924 | ||
15925 | # Check whether --with-usrsbindir was given. | |
15926 | if test "${with_usrsbindir+set}" = set; then | |
15927 | withval=$with_usrsbindir; usrsbindir="$withval" | |
15928 | else | |
15929 | usrsbindir='${prefix}/sbin' | |
15930 | fi | |
15931 | ||
15932 | ||
a5f46f6a AK |
15933 | ################################################################################ |
15934 | ||
15935 | # Check whether --with-udev_prefix was given. | |
15936 | if test "${with_udev_prefix+set}" = set; then | |
15937 | withval=$with_udev_prefix; udev_prefix="$withval" | |
15938 | else | |
15939 | udev_prefix='${exec_prefix}' | |
15940 | fi | |
15941 | ||
15942 | ||
78ce7acc AK |
15943 | |
15944 | # Check whether --with-udevdir was given. | |
15945 | if test "${with_udevdir+set}" = set; then | |
15946 | withval=$with_udevdir; udevdir="$withval" | |
15947 | else | |
15948 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
15949 | fi | |
15950 | ||
a5f46f6a | 15951 | |
ad6254c5 AK |
15952 | ################################################################################ |
15953 | if test x$READLINE = xyes; then | |
15954 | ||
15955 | ||
15956 | for ac_header in readline/readline.h readline/history.h | |
15957 | do | |
ec6a6fbe | 15958 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15960 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15961 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15962 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15963 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15964 | fi |
ec6a6fbe AK |
15965 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15966 | $as_echo "$as_val"'` | |
15967 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15968 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15969 | else |
15970 | # Is the header compilable? | |
ec6a6fbe AK |
15971 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15972 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15973 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15974 | /* confdefs.h. */ |
15975 | _ACEOF | |
15976 | cat confdefs.h >>conftest.$ac_ext | |
15977 | cat >>conftest.$ac_ext <<_ACEOF | |
15978 | /* end confdefs.h. */ | |
15979 | $ac_includes_default | |
15980 | #include <$ac_header> | |
15981 | _ACEOF | |
15982 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15983 | if { (ac_try="$ac_compile" |
15984 | case "(($ac_try" in | |
15985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15986 | *) ac_try_echo=$ac_try;; | |
15987 | esac | |
ec6a6fbe AK |
15988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15989 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15990 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15991 | ac_status=$? |
8a2fc586 AK |
15992 | grep -v '^ *+' conftest.er1 >conftest.err |
15993 | rm -f conftest.er1 | |
15994 | cat conftest.err >&5 | |
ec6a6fbe | 15995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15996 | (exit $ac_status); } && { |
15997 | test -z "$ac_c_werror_flag" || | |
15998 | test ! -s conftest.err | |
15999 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16000 | ac_header_compiler=yes |
16001 | else | |
ec6a6fbe | 16002 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16003 | sed 's/^/| /' conftest.$ac_ext >&5 |
16004 | ||
7a197a62 | 16005 | ac_header_compiler=no |
ad6254c5 | 16006 | fi |
7a197a62 AK |
16007 | |
16008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16009 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16010 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16011 | |
16012 | # Is the header present? | |
ec6a6fbe AK |
16013 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16014 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16015 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16016 | /* confdefs.h. */ |
16017 | _ACEOF | |
16018 | cat confdefs.h >>conftest.$ac_ext | |
16019 | cat >>conftest.$ac_ext <<_ACEOF | |
16020 | /* end confdefs.h. */ | |
16021 | #include <$ac_header> | |
16022 | _ACEOF | |
7a197a62 AK |
16023 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16024 | case "(($ac_try" in | |
16025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16026 | *) ac_try_echo=$ac_try;; | |
16027 | esac | |
ec6a6fbe AK |
16028 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16029 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16030 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16031 | ac_status=$? |
16032 | grep -v '^ *+' conftest.er1 >conftest.err | |
16033 | rm -f conftest.er1 | |
16034 | cat conftest.err >&5 | |
ec6a6fbe | 16035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16036 | (exit $ac_status); } >/dev/null && { |
16037 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16038 | test ! -s conftest.err | |
16039 | }; then | |
ad6254c5 AK |
16040 | ac_header_preproc=yes |
16041 | else | |
ec6a6fbe | 16042 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16043 | sed 's/^/| /' conftest.$ac_ext >&5 |
16044 | ||
16045 | ac_header_preproc=no | |
16046 | fi | |
7a197a62 | 16047 | |
ad6254c5 | 16048 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16049 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16050 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16051 | |
16052 | # So? What about this header? | |
8a2fc586 AK |
16053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16054 | yes:no: ) | |
ec6a6fbe AK |
16055 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16056 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16057 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16058 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16059 | ac_header_preproc=yes |
ad6254c5 | 16060 | ;; |
8a2fc586 | 16061 | no:yes:* ) |
ec6a6fbe AK |
16062 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16063 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16064 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16065 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16066 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16067 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16068 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16069 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16070 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16071 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16072 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16073 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16074 | |
ad6254c5 AK |
16075 | ;; |
16076 | esac | |
ec6a6fbe AK |
16077 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16078 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16079 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16080 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16081 | else |
8a2fc586 | 16082 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16083 | fi |
ec6a6fbe AK |
16084 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16085 | $as_echo "$as_val"'` | |
16086 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16087 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16088 | |
16089 | fi | |
ec6a6fbe AK |
16090 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16091 | $as_echo "$as_val"'` | |
16092 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16093 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16094 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16095 | _ACEOF |
16096 | ||
16097 | else | |
ec6a6fbe AK |
16098 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16099 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16100 | { (exit 1); exit 1; }; } |
16101 | fi | |
16102 | ||
16103 | done | |
16104 | ||
16105 | fi | |
16106 | ||
5c7fc7c4 | 16107 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16108 | |
16109 | ||
16110 | ||
16111 | ||
16112 | ||
16113 | ||
16114 | ||
16115 | ||
16116 | ||
16117 | ||
16118 | 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 | |
16119 | do | |
ec6a6fbe | 16120 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16121 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16122 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16123 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16124 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16125 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16126 | fi |
ec6a6fbe AK |
16127 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16128 | $as_echo "$as_val"'` | |
16129 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16130 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16131 | else |
16132 | # Is the header compilable? | |
ec6a6fbe AK |
16133 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16134 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16135 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16136 | /* confdefs.h. */ |
16137 | _ACEOF | |
16138 | cat confdefs.h >>conftest.$ac_ext | |
16139 | cat >>conftest.$ac_ext <<_ACEOF | |
16140 | /* end confdefs.h. */ | |
16141 | $ac_includes_default | |
16142 | #include <$ac_header> | |
16143 | _ACEOF | |
16144 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16145 | if { (ac_try="$ac_compile" |
16146 | case "(($ac_try" in | |
16147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16148 | *) ac_try_echo=$ac_try;; | |
16149 | esac | |
ec6a6fbe AK |
16150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16151 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16152 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16153 | ac_status=$? |
8a2fc586 AK |
16154 | grep -v '^ *+' conftest.er1 >conftest.err |
16155 | rm -f conftest.er1 | |
16156 | cat conftest.err >&5 | |
ec6a6fbe | 16157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16158 | (exit $ac_status); } && { |
16159 | test -z "$ac_c_werror_flag" || | |
16160 | test ! -s conftest.err | |
16161 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16162 | ac_header_compiler=yes |
16163 | else | |
ec6a6fbe | 16164 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16165 | sed 's/^/| /' conftest.$ac_ext >&5 |
16166 | ||
7a197a62 | 16167 | ac_header_compiler=no |
ad6254c5 | 16168 | fi |
7a197a62 AK |
16169 | |
16170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16171 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16172 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16173 | |
16174 | # Is the header present? | |
ec6a6fbe AK |
16175 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16176 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16177 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16178 | /* confdefs.h. */ |
16179 | _ACEOF | |
16180 | cat confdefs.h >>conftest.$ac_ext | |
16181 | cat >>conftest.$ac_ext <<_ACEOF | |
16182 | /* end confdefs.h. */ | |
16183 | #include <$ac_header> | |
16184 | _ACEOF | |
7a197a62 AK |
16185 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16186 | case "(($ac_try" in | |
16187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16188 | *) ac_try_echo=$ac_try;; | |
16189 | esac | |
ec6a6fbe AK |
16190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16191 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16192 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16193 | ac_status=$? |
16194 | grep -v '^ *+' conftest.er1 >conftest.err | |
16195 | rm -f conftest.er1 | |
16196 | cat conftest.err >&5 | |
ec6a6fbe | 16197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16198 | (exit $ac_status); } >/dev/null && { |
16199 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16200 | test ! -s conftest.err | |
16201 | }; then | |
ad6254c5 AK |
16202 | ac_header_preproc=yes |
16203 | else | |
ec6a6fbe | 16204 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16205 | sed 's/^/| /' conftest.$ac_ext >&5 |
16206 | ||
16207 | ac_header_preproc=no | |
16208 | fi | |
7a197a62 | 16209 | |
ad6254c5 | 16210 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16211 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16212 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16213 | |
16214 | # So? What about this header? | |
8a2fc586 AK |
16215 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16216 | yes:no: ) | |
ec6a6fbe AK |
16217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16218 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16219 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16220 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16221 | ac_header_preproc=yes |
ad6254c5 | 16222 | ;; |
8a2fc586 | 16223 | no:yes:* ) |
ec6a6fbe AK |
16224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16225 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16226 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16227 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16228 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16229 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16230 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16231 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16232 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16233 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16234 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16235 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16236 | |
ad6254c5 AK |
16237 | ;; |
16238 | esac | |
ec6a6fbe AK |
16239 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16240 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16242 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16243 | else |
8a2fc586 | 16244 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16245 | fi |
ec6a6fbe AK |
16246 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16247 | $as_echo "$as_val"'` | |
16248 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16249 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16250 | |
16251 | fi | |
ec6a6fbe AK |
16252 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16253 | $as_echo "$as_val"'` | |
16254 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16255 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16256 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16257 | _ACEOF |
16258 | ||
16259 | else | |
ec6a6fbe AK |
16260 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16261 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16262 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16263 | fi |
16264 | ||
ad6254c5 AK |
16265 | done |
16266 | ||
16267 | ||
795ca3e5 | 16268 | |
8106cdd5 | 16269 | |
ad6254c5 AK |
16270 | |
16271 | ||
16272 | for ac_func in dup2 getmntent memmove select socket | |
16273 | do | |
ec6a6fbe AK |
16274 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16275 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16276 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16277 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16278 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16279 | else |
ad6254c5 | 16280 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16281 | /* confdefs.h. */ |
16282 | _ACEOF | |
16283 | cat confdefs.h >>conftest.$ac_ext | |
16284 | cat >>conftest.$ac_ext <<_ACEOF | |
16285 | /* end confdefs.h. */ | |
8a2fc586 AK |
16286 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16287 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16288 | #define $ac_func innocuous_$ac_func | |
16289 | ||
795ca3e5 | 16290 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16291 | which can conflict with char $ac_func (); below. |
16292 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16293 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16294 | |
ad6254c5 AK |
16295 | #ifdef __STDC__ |
16296 | # include <limits.h> | |
16297 | #else | |
16298 | # include <assert.h> | |
16299 | #endif | |
8a2fc586 AK |
16300 | |
16301 | #undef $ac_func | |
16302 | ||
7a197a62 AK |
16303 | /* Override any GCC internal prototype to avoid an error. |
16304 | Use char because int might match the return type of a GCC | |
16305 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16306 | #ifdef __cplusplus |
16307 | extern "C" | |
ad6254c5 | 16308 | #endif |
ad6254c5 | 16309 | char $ac_func (); |
795ca3e5 AK |
16310 | /* The GNU C library defines this for functions which it implements |
16311 | to always fail with ENOSYS. Some functions are actually named | |
16312 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16313 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16314 | choke me |
795ca3e5 AK |
16315 | #endif |
16316 | ||
ad6254c5 AK |
16317 | int |
16318 | main () | |
16319 | { | |
7a197a62 | 16320 | return $ac_func (); |
ad6254c5 AK |
16321 | ; |
16322 | return 0; | |
16323 | } | |
16324 | _ACEOF | |
16325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16326 | if { (ac_try="$ac_link" |
16327 | case "(($ac_try" in | |
16328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16329 | *) ac_try_echo=$ac_try;; | |
16330 | esac | |
ec6a6fbe AK |
16331 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16332 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16333 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16334 | ac_status=$? |
8a2fc586 AK |
16335 | grep -v '^ *+' conftest.er1 >conftest.err |
16336 | rm -f conftest.er1 | |
16337 | cat conftest.err >&5 | |
ec6a6fbe | 16338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16339 | (exit $ac_status); } && { |
16340 | test -z "$ac_c_werror_flag" || | |
16341 | test ! -s conftest.err | |
ec6a6fbe AK |
16342 | } && test -s conftest$ac_exeext && { |
16343 | test "$cross_compiling" = yes || | |
16344 | $as_test_x conftest$ac_exeext | |
16345 | }; then | |
ad6254c5 | 16346 | eval "$as_ac_var=yes" |
795ca3e5 | 16347 | else |
ec6a6fbe | 16348 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16349 | sed 's/^/| /' conftest.$ac_ext >&5 |
16350 | ||
7a197a62 | 16351 | eval "$as_ac_var=no" |
80992638 | 16352 | fi |
7a197a62 | 16353 | |
ec6a6fbe | 16354 | rm -rf conftest.dSYM |
25fbec5b | 16355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16356 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16357 | fi |
ec6a6fbe AK |
16358 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16359 | $as_echo "$as_val"'` | |
16360 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16361 | $as_echo "$ac_res" >&6; } | |
16362 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16363 | $as_echo "$as_val"'` | |
16364 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16365 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16366 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16367 | _ACEOF |
80992638 AK |
16368 | |
16369 | else | |
ec6a6fbe AK |
16370 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16371 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16372 | { (exit 1); exit 1; }; } |
8106cdd5 | 16373 | fi |
ad6254c5 | 16374 | done |
795ca3e5 | 16375 | |
25fbec5b AK |
16376 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16377 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16378 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16379 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16380 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16381 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16382 | else |
16383 | ac_func_search_save_LIBS=$LIBS | |
16384 | cat >conftest.$ac_ext <<_ACEOF | |
16385 | /* confdefs.h. */ | |
16386 | _ACEOF | |
16387 | cat confdefs.h >>conftest.$ac_ext | |
16388 | cat >>conftest.$ac_ext <<_ACEOF | |
16389 | /* end confdefs.h. */ | |
80992638 | 16390 | |
7a197a62 AK |
16391 | /* Override any GCC internal prototype to avoid an error. |
16392 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16393 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16394 | #ifdef __cplusplus |
16395 | extern "C" | |
16396 | #endif | |
25fbec5b | 16397 | char getmntent (); |
ad6254c5 AK |
16398 | int |
16399 | main () | |
16400 | { | |
25fbec5b | 16401 | return getmntent (); |
ad6254c5 AK |
16402 | ; |
16403 | return 0; | |
16404 | } | |
16405 | _ACEOF | |
25fbec5b AK |
16406 | for ac_lib in '' sun seq gen; do |
16407 | if test -z "$ac_lib"; then | |
16408 | ac_res="none required" | |
16409 | else | |
16410 | ac_res=-l$ac_lib | |
16411 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16412 | fi | |
16413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16414 | if { (ac_try="$ac_link" |
16415 | case "(($ac_try" in | |
16416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16417 | *) ac_try_echo=$ac_try;; | |
16418 | esac | |
ec6a6fbe AK |
16419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16420 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16421 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16422 | ac_status=$? |
8a2fc586 AK |
16423 | grep -v '^ *+' conftest.er1 >conftest.err |
16424 | rm -f conftest.er1 | |
16425 | cat conftest.err >&5 | |
ec6a6fbe | 16426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16427 | (exit $ac_status); } && { |
16428 | test -z "$ac_c_werror_flag" || | |
16429 | test ! -s conftest.err | |
ec6a6fbe AK |
16430 | } && test -s conftest$ac_exeext && { |
16431 | test "$cross_compiling" = yes || | |
16432 | $as_test_x conftest$ac_exeext | |
16433 | }; then | |
25fbec5b | 16434 | ac_cv_search_getmntent=$ac_res |
80992638 | 16435 | else |
ec6a6fbe | 16436 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16437 | sed 's/^/| /' conftest.$ac_ext >&5 |
16438 | ||
25fbec5b | 16439 | |
795ca3e5 AK |
16440 | fi |
16441 | ||
ec6a6fbe | 16442 | rm -rf conftest.dSYM |
25fbec5b AK |
16443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16444 | conftest$ac_exeext | |
16445 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16446 | break | |
795ca3e5 | 16447 | fi |
25fbec5b AK |
16448 | done |
16449 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16450 | : | |
16451 | else | |
16452 | ac_cv_search_getmntent=no | |
16453 | fi | |
16454 | rm conftest.$ac_ext | |
16455 | LIBS=$ac_func_search_save_LIBS | |
16456 | fi | |
ec6a6fbe AK |
16457 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16458 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16459 | ac_res=$ac_cv_search_getmntent |
16460 | if test "$ac_res" != no; then | |
16461 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16462 | ac_cv_func_getmntent=yes | |
16463 | ||
16464 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16465 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16466 | _ACEOF |
795ca3e5 | 16467 | |
25fbec5b AK |
16468 | else |
16469 | ac_cv_func_getmntent=no | |
795ca3e5 | 16470 | fi |
795ca3e5 AK |
16471 | |
16472 | ||
ad6254c5 AK |
16473 | |
16474 | ||
16475 | for ac_header in sys/select.h sys/socket.h | |
16476 | do | |
ec6a6fbe | 16477 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16479 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16480 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16481 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16482 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16483 | fi |
ec6a6fbe AK |
16484 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16485 | $as_echo "$as_val"'` | |
16486 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16487 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16488 | else |
ad6254c5 | 16489 | # Is the header compilable? |
ec6a6fbe AK |
16490 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16491 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16492 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16493 | /* confdefs.h. */ |
16494 | _ACEOF | |
16495 | cat confdefs.h >>conftest.$ac_ext | |
16496 | cat >>conftest.$ac_ext <<_ACEOF | |
16497 | /* end confdefs.h. */ | |
16498 | $ac_includes_default | |
16499 | #include <$ac_header> | |
16500 | _ACEOF | |
16501 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16502 | if { (ac_try="$ac_compile" |
16503 | case "(($ac_try" in | |
16504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16505 | *) ac_try_echo=$ac_try;; | |
16506 | esac | |
ec6a6fbe AK |
16507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16508 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16509 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16510 | ac_status=$? |
8a2fc586 AK |
16511 | grep -v '^ *+' conftest.er1 >conftest.err |
16512 | rm -f conftest.er1 | |
16513 | cat conftest.err >&5 | |
ec6a6fbe | 16514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16515 | (exit $ac_status); } && { |
16516 | test -z "$ac_c_werror_flag" || | |
16517 | test ! -s conftest.err | |
16518 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16519 | ac_header_compiler=yes |
80992638 | 16520 | else |
ec6a6fbe | 16521 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16522 | sed 's/^/| /' conftest.$ac_ext >&5 |
16523 | ||
7a197a62 | 16524 | ac_header_compiler=no |
ad6254c5 | 16525 | fi |
7a197a62 AK |
16526 | |
16527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16528 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16529 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16530 | |
16531 | # Is the header present? | |
ec6a6fbe AK |
16532 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16533 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16534 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16535 | /* confdefs.h. */ |
16536 | _ACEOF | |
16537 | cat confdefs.h >>conftest.$ac_ext | |
16538 | cat >>conftest.$ac_ext <<_ACEOF | |
16539 | /* end confdefs.h. */ | |
16540 | #include <$ac_header> | |
16541 | _ACEOF | |
7a197a62 AK |
16542 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16543 | case "(($ac_try" in | |
16544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16545 | *) ac_try_echo=$ac_try;; | |
16546 | esac | |
ec6a6fbe AK |
16547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16548 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16549 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16550 | ac_status=$? |
16551 | grep -v '^ *+' conftest.er1 >conftest.err | |
16552 | rm -f conftest.er1 | |
16553 | cat conftest.err >&5 | |
ec6a6fbe | 16554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16555 | (exit $ac_status); } >/dev/null && { |
16556 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16557 | test ! -s conftest.err | |
16558 | }; then | |
ad6254c5 AK |
16559 | ac_header_preproc=yes |
16560 | else | |
ec6a6fbe | 16561 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16562 | sed 's/^/| /' conftest.$ac_ext >&5 |
16563 | ||
16564 | ac_header_preproc=no | |
16565 | fi | |
7a197a62 | 16566 | |
ad6254c5 | 16567 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16568 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16569 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16570 | |
16571 | # So? What about this header? | |
8a2fc586 AK |
16572 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16573 | yes:no: ) | |
ec6a6fbe AK |
16574 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16575 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16576 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16577 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16578 | ac_header_preproc=yes |
ad6254c5 | 16579 | ;; |
8a2fc586 | 16580 | no:yes:* ) |
ec6a6fbe AK |
16581 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16582 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16583 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16584 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16585 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16586 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16587 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16588 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16589 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16590 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16591 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16592 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16593 | |
ad6254c5 AK |
16594 | ;; |
16595 | esac | |
ec6a6fbe AK |
16596 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16597 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16599 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16600 | else |
8a2fc586 | 16601 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16602 | fi |
ec6a6fbe AK |
16603 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16604 | $as_echo "$as_val"'` | |
16605 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16606 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16607 | |
795ca3e5 | 16608 | fi |
ec6a6fbe AK |
16609 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16610 | $as_echo "$as_val"'` | |
16611 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16612 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16613 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16614 | _ACEOF |
16615 | ||
795ca3e5 AK |
16616 | fi |
16617 | ||
ad6254c5 AK |
16618 | done |
16619 | ||
ec6a6fbe AK |
16620 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16621 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16622 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16623 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16624 | else |
ad6254c5 | 16625 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16626 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16627 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
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 | |
25fbec5b | 16635 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16636 | # include <sys/select.h> |
16637 | #endif | |
25fbec5b | 16638 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16639 | # include <sys/socket.h> |
16640 | #endif | |
16641 | ||
16642 | int | |
16643 | main () | |
16644 | { | |
16645 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16646 | $ac_arg234, $ac_arg234, $ac_arg234, |
16647 | $ac_arg5); | |
ad6254c5 AK |
16648 | ; |
16649 | return 0; | |
16650 | } | |
16651 | _ACEOF | |
16652 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16653 | if { (ac_try="$ac_compile" |
16654 | case "(($ac_try" in | |
16655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16656 | *) ac_try_echo=$ac_try;; | |
16657 | esac | |
ec6a6fbe AK |
16658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16659 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16660 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16661 | ac_status=$? |
8a2fc586 AK |
16662 | grep -v '^ *+' conftest.er1 >conftest.err |
16663 | rm -f conftest.er1 | |
16664 | cat conftest.err >&5 | |
ec6a6fbe | 16665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16666 | (exit $ac_status); } && { |
16667 | test -z "$ac_c_werror_flag" || | |
16668 | test ! -s conftest.err | |
16669 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16670 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
16671 | else | |
ec6a6fbe | 16672 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16673 | sed 's/^/| /' conftest.$ac_ext >&5 |
16674 | ||
7a197a62 | 16675 | |
ad6254c5 | 16676 | fi |
7a197a62 AK |
16677 | |
16678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
16679 | done |
16680 | done | |
16681 | done | |
16682 | # Provide a safe default value. | |
16683 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
16684 | ||
26e7f2e0 | 16685 | fi |
ec6a6fbe AK |
16686 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
16687 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
16688 | ac_save_IFS=$IFS; IFS=',' |
16689 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
16690 | IFS=$ac_save_IFS | |
16691 | shift | |
16692 | ||
16693 | cat >>confdefs.h <<_ACEOF | |
16694 | #define SELECT_TYPE_ARG1 $1 | |
16695 | _ACEOF | |
16696 | ||
16697 | ||
16698 | cat >>confdefs.h <<_ACEOF | |
16699 | #define SELECT_TYPE_ARG234 ($2) | |
16700 | _ACEOF | |
16701 | ||
16702 | ||
16703 | cat >>confdefs.h <<_ACEOF | |
16704 | #define SELECT_TYPE_ARG5 ($3) | |
16705 | _ACEOF | |
16706 | ||
80992638 | 16707 | rm -f conftest* |
80992638 | 16708 | |
8106cdd5 | 16709 | fi |
ad6254c5 | 16710 | |
ad6254c5 AK |
16711 | if test x$CLUSTER != xnone; then |
16712 | ||
16713 | ||
16714 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 16715 | do |
ec6a6fbe | 16716 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16717 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16718 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16719 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16721 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16722 | fi |
ec6a6fbe AK |
16723 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16724 | $as_echo "$as_val"'` | |
16725 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16726 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16727 | else |
16728 | # Is the header compilable? | |
ec6a6fbe AK |
16729 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16730 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16731 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16732 | /* confdefs.h. */ |
16733 | _ACEOF | |
16734 | cat confdefs.h >>conftest.$ac_ext | |
16735 | cat >>conftest.$ac_ext <<_ACEOF | |
16736 | /* end confdefs.h. */ | |
16737 | $ac_includes_default | |
16738 | #include <$ac_header> | |
16739 | _ACEOF | |
16740 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16741 | if { (ac_try="$ac_compile" |
16742 | case "(($ac_try" in | |
16743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16744 | *) ac_try_echo=$ac_try;; | |
16745 | esac | |
ec6a6fbe AK |
16746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16747 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16748 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16749 | ac_status=$? |
8a2fc586 AK |
16750 | grep -v '^ *+' conftest.er1 >conftest.err |
16751 | rm -f conftest.er1 | |
16752 | cat conftest.err >&5 | |
ec6a6fbe | 16753 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16754 | (exit $ac_status); } && { |
16755 | test -z "$ac_c_werror_flag" || | |
16756 | test ! -s conftest.err | |
16757 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16758 | ac_header_compiler=yes |
16759 | else | |
ec6a6fbe | 16760 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16761 | sed 's/^/| /' conftest.$ac_ext >&5 |
16762 | ||
7a197a62 | 16763 | ac_header_compiler=no |
ad6254c5 | 16764 | fi |
7a197a62 AK |
16765 | |
16766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16767 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16768 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16769 | |
16770 | # Is the header present? | |
ec6a6fbe AK |
16771 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16772 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16773 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16774 | /* confdefs.h. */ |
16775 | _ACEOF | |
16776 | cat confdefs.h >>conftest.$ac_ext | |
16777 | cat >>conftest.$ac_ext <<_ACEOF | |
16778 | /* end confdefs.h. */ | |
16779 | #include <$ac_header> | |
16780 | _ACEOF | |
7a197a62 AK |
16781 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16782 | case "(($ac_try" in | |
16783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16784 | *) ac_try_echo=$ac_try;; | |
16785 | esac | |
ec6a6fbe AK |
16786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16787 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16788 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16789 | ac_status=$? |
16790 | grep -v '^ *+' conftest.er1 >conftest.err | |
16791 | rm -f conftest.er1 | |
16792 | cat conftest.err >&5 | |
ec6a6fbe | 16793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16794 | (exit $ac_status); } >/dev/null && { |
16795 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16796 | test ! -s conftest.err | |
16797 | }; then | |
ad6254c5 AK |
16798 | ac_header_preproc=yes |
16799 | else | |
ec6a6fbe | 16800 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16801 | sed 's/^/| /' conftest.$ac_ext >&5 |
16802 | ||
16803 | ac_header_preproc=no | |
16804 | fi | |
7a197a62 | 16805 | |
ad6254c5 | 16806 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16807 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16808 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16809 | |
16810 | # So? What about this header? | |
8a2fc586 AK |
16811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16812 | yes:no: ) | |
ec6a6fbe AK |
16813 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16814 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16815 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16816 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16817 | ac_header_preproc=yes |
ad6254c5 | 16818 | ;; |
8a2fc586 | 16819 | no:yes:* ) |
ec6a6fbe AK |
16820 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16821 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16822 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16823 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16824 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16825 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16826 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16827 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16828 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16829 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16831 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16832 | |
ad6254c5 AK |
16833 | ;; |
16834 | esac | |
ec6a6fbe AK |
16835 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16836 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16837 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16838 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16839 | else |
8a2fc586 | 16840 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 16841 | fi |
ec6a6fbe AK |
16842 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16843 | $as_echo "$as_val"'` | |
16844 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16845 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16846 | |
16847 | fi | |
ec6a6fbe AK |
16848 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16849 | $as_echo "$as_val"'` | |
16850 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16851 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16852 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16853 | _ACEOF |
16854 | ||
80992638 | 16855 | else |
ec6a6fbe AK |
16856 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16857 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16858 | { (exit 1); exit 1; }; } |
b896caa1 | 16859 | fi |
ad6254c5 | 16860 | |
b896caa1 AK |
16861 | done |
16862 | ||
16863 | ||
ad6254c5 AK |
16864 | for ac_func in socket |
16865 | do | |
ec6a6fbe AK |
16866 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16867 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16868 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16869 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16870 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16871 | else |
ad6254c5 | 16872 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16873 | /* confdefs.h. */ |
16874 | _ACEOF | |
16875 | cat confdefs.h >>conftest.$ac_ext | |
16876 | cat >>conftest.$ac_ext <<_ACEOF | |
16877 | /* end confdefs.h. */ | |
8a2fc586 AK |
16878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16880 | #define $ac_func innocuous_$ac_func | |
16881 | ||
ad6254c5 AK |
16882 | /* System header to define __stub macros and hopefully few prototypes, |
16883 | which can conflict with char $ac_func (); below. | |
16884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16885 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16886 | |
ad6254c5 AK |
16887 | #ifdef __STDC__ |
16888 | # include <limits.h> | |
16889 | #else | |
16890 | # include <assert.h> | |
16891 | #endif | |
8a2fc586 AK |
16892 | |
16893 | #undef $ac_func | |
16894 | ||
7a197a62 AK |
16895 | /* Override any GCC internal prototype to avoid an error. |
16896 | Use char because int might match the return type of a GCC | |
16897 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16898 | #ifdef __cplusplus |
16899 | extern "C" | |
ad6254c5 | 16900 | #endif |
ad6254c5 AK |
16901 | char $ac_func (); |
16902 | /* The GNU C library defines this for functions which it implements | |
16903 | to always fail with ENOSYS. Some functions are actually named | |
16904 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16905 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 16906 | choke me |
ad6254c5 AK |
16907 | #endif |
16908 | ||
16909 | int | |
16910 | main () | |
16911 | { | |
7a197a62 | 16912 | return $ac_func (); |
ad6254c5 AK |
16913 | ; |
16914 | return 0; | |
16915 | } | |
16916 | _ACEOF | |
16917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16918 | if { (ac_try="$ac_link" |
16919 | case "(($ac_try" in | |
16920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16921 | *) ac_try_echo=$ac_try;; | |
16922 | esac | |
ec6a6fbe AK |
16923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16924 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16925 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16926 | ac_status=$? |
8a2fc586 AK |
16927 | grep -v '^ *+' conftest.er1 >conftest.err |
16928 | rm -f conftest.er1 | |
16929 | cat conftest.err >&5 | |
ec6a6fbe | 16930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16931 | (exit $ac_status); } && { |
16932 | test -z "$ac_c_werror_flag" || | |
16933 | test ! -s conftest.err | |
ec6a6fbe AK |
16934 | } && test -s conftest$ac_exeext && { |
16935 | test "$cross_compiling" = yes || | |
16936 | $as_test_x conftest$ac_exeext | |
16937 | }; then | |
ad6254c5 AK |
16938 | eval "$as_ac_var=yes" |
16939 | else | |
ec6a6fbe | 16940 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16941 | sed 's/^/| /' conftest.$ac_ext >&5 |
16942 | ||
7a197a62 | 16943 | eval "$as_ac_var=no" |
ad6254c5 | 16944 | fi |
7a197a62 | 16945 | |
ec6a6fbe | 16946 | rm -rf conftest.dSYM |
25fbec5b | 16947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16948 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 16949 | fi |
ec6a6fbe AK |
16950 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16951 | $as_echo "$as_val"'` | |
16952 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16953 | $as_echo "$ac_res" >&6; } | |
16954 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16955 | $as_echo "$as_val"'` | |
16956 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16957 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16958 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
16959 | _ACEOF |
16960 | ||
16961 | else | |
ec6a6fbe AK |
16962 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16963 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16964 | { (exit 1); exit 1; }; } |
16965 | fi | |
16966 | done | |
16967 | ||
16968 | fi | |
16969 | ||
d911ec67 AK |
16970 | if test x$DMEVENTD = xyes; then |
16971 | ||
16972 | for ac_header in arpa/inet.h | |
16973 | do | |
16974 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16975 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16976 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16977 | $as_echo_n "checking for $ac_header... " >&6; } | |
16978 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
16979 | $as_echo_n "(cached) " >&6 | |
16980 | fi | |
16981 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
16982 | $as_echo "$as_val"'` | |
16983 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16984 | $as_echo "$ac_res" >&6; } | |
16985 | else | |
16986 | # Is the header compilable? | |
16987 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16988 | $as_echo_n "checking $ac_header usability... " >&6; } | |
16989 | cat >conftest.$ac_ext <<_ACEOF | |
16990 | /* confdefs.h. */ | |
16991 | _ACEOF | |
16992 | cat confdefs.h >>conftest.$ac_ext | |
16993 | cat >>conftest.$ac_ext <<_ACEOF | |
16994 | /* end confdefs.h. */ | |
16995 | $ac_includes_default | |
16996 | #include <$ac_header> | |
16997 | _ACEOF | |
16998 | rm -f conftest.$ac_objext | |
16999 | if { (ac_try="$ac_compile" | |
17000 | case "(($ac_try" in | |
17001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17002 | *) ac_try_echo=$ac_try;; | |
17003 | esac | |
17004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17005 | $as_echo "$ac_try_echo") >&5 | |
17006 | (eval "$ac_compile") 2>conftest.er1 | |
17007 | ac_status=$? | |
17008 | grep -v '^ *+' conftest.er1 >conftest.err | |
17009 | rm -f conftest.er1 | |
17010 | cat conftest.err >&5 | |
17011 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17012 | (exit $ac_status); } && { | |
17013 | test -z "$ac_c_werror_flag" || | |
17014 | test ! -s conftest.err | |
17015 | } && test -s conftest.$ac_objext; then | |
17016 | ac_header_compiler=yes | |
17017 | else | |
17018 | $as_echo "$as_me: failed program was:" >&5 | |
17019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17020 | ||
17021 | ac_header_compiler=no | |
17022 | fi | |
17023 | ||
17024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17025 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17026 | $as_echo "$ac_header_compiler" >&6; } | |
17027 | ||
17028 | # Is the header present? | |
17029 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17030 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17031 | cat >conftest.$ac_ext <<_ACEOF | |
17032 | /* confdefs.h. */ | |
17033 | _ACEOF | |
17034 | cat confdefs.h >>conftest.$ac_ext | |
17035 | cat >>conftest.$ac_ext <<_ACEOF | |
17036 | /* end confdefs.h. */ | |
17037 | #include <$ac_header> | |
17038 | _ACEOF | |
17039 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17040 | case "(($ac_try" in | |
17041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17042 | *) ac_try_echo=$ac_try;; | |
17043 | esac | |
17044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17045 | $as_echo "$ac_try_echo") >&5 | |
17046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17047 | ac_status=$? | |
17048 | grep -v '^ *+' conftest.er1 >conftest.err | |
17049 | rm -f conftest.er1 | |
17050 | cat conftest.err >&5 | |
17051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17052 | (exit $ac_status); } >/dev/null && { | |
17053 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17054 | test ! -s conftest.err | |
17055 | }; then | |
17056 | ac_header_preproc=yes | |
17057 | else | |
17058 | $as_echo "$as_me: failed program was:" >&5 | |
17059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17060 | ||
17061 | ac_header_preproc=no | |
17062 | fi | |
17063 | ||
17064 | rm -f conftest.err conftest.$ac_ext | |
17065 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17066 | $as_echo "$ac_header_preproc" >&6; } | |
17067 | ||
17068 | # So? What about this header? | |
17069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17070 | yes:no: ) | |
17071 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17072 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17073 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17074 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17075 | ac_header_preproc=yes | |
17076 | ;; | |
17077 | no:yes:* ) | |
17078 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17079 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17080 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17081 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17083 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17085 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17086 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17087 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17089 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17090 | ||
17091 | ;; | |
17092 | esac | |
17093 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17094 | $as_echo_n "checking for $ac_header... " >&6; } | |
17095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17096 | $as_echo_n "(cached) " >&6 | |
17097 | else | |
17098 | eval "$as_ac_Header=\$ac_header_preproc" | |
17099 | fi | |
17100 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17101 | $as_echo "$as_val"'` | |
17102 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17103 | $as_echo "$ac_res" >&6; } | |
17104 | ||
17105 | fi | |
17106 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17107 | $as_echo "$as_val"'` | |
17108 | if test "x$as_val" = x""yes; then | |
17109 | cat >>confdefs.h <<_ACEOF | |
17110 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17111 | _ACEOF | |
17112 | ||
17113 | else | |
17114 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17115 | $as_echo "$as_me: error: bailing out" >&2;} | |
17116 | { (exit 1); exit 1; }; } | |
17117 | fi | |
17118 | ||
17119 | done | |
17120 | ||
17121 | fi | |
17122 | ||
ad6254c5 AK |
17123 | if test x$HAVE_LIBDL = xyes; then |
17124 | ||
17125 | for ac_header in dlfcn.h | |
17126 | do | |
ec6a6fbe | 17127 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17128 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17129 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17130 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17132 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17133 | fi |
ec6a6fbe AK |
17134 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17135 | $as_echo "$as_val"'` | |
17136 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17137 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17138 | else |
17139 | # Is the header compilable? | |
ec6a6fbe AK |
17140 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17141 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17142 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17143 | /* confdefs.h. */ |
17144 | _ACEOF | |
17145 | cat confdefs.h >>conftest.$ac_ext | |
17146 | cat >>conftest.$ac_ext <<_ACEOF | |
17147 | /* end confdefs.h. */ | |
17148 | $ac_includes_default | |
17149 | #include <$ac_header> | |
17150 | _ACEOF | |
17151 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17152 | if { (ac_try="$ac_compile" |
17153 | case "(($ac_try" in | |
17154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17155 | *) ac_try_echo=$ac_try;; | |
17156 | esac | |
ec6a6fbe AK |
17157 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17158 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17159 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17160 | ac_status=$? |
8a2fc586 AK |
17161 | grep -v '^ *+' conftest.er1 >conftest.err |
17162 | rm -f conftest.er1 | |
17163 | cat conftest.err >&5 | |
ec6a6fbe | 17164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17165 | (exit $ac_status); } && { |
17166 | test -z "$ac_c_werror_flag" || | |
17167 | test ! -s conftest.err | |
17168 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17169 | ac_header_compiler=yes |
17170 | else | |
ec6a6fbe | 17171 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17172 | sed 's/^/| /' conftest.$ac_ext >&5 |
17173 | ||
7a197a62 | 17174 | ac_header_compiler=no |
ad6254c5 | 17175 | fi |
7a197a62 AK |
17176 | |
17177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17178 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17179 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17180 | |
17181 | # Is the header present? | |
ec6a6fbe AK |
17182 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17183 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17184 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17185 | /* confdefs.h. */ |
17186 | _ACEOF | |
17187 | cat confdefs.h >>conftest.$ac_ext | |
17188 | cat >>conftest.$ac_ext <<_ACEOF | |
17189 | /* end confdefs.h. */ | |
17190 | #include <$ac_header> | |
17191 | _ACEOF | |
7a197a62 AK |
17192 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17193 | case "(($ac_try" in | |
17194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17195 | *) ac_try_echo=$ac_try;; | |
17196 | esac | |
ec6a6fbe AK |
17197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17198 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17199 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17200 | ac_status=$? |
17201 | grep -v '^ *+' conftest.er1 >conftest.err | |
17202 | rm -f conftest.er1 | |
17203 | cat conftest.err >&5 | |
ec6a6fbe | 17204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17205 | (exit $ac_status); } >/dev/null && { |
17206 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17207 | test ! -s conftest.err | |
17208 | }; then | |
ad6254c5 AK |
17209 | ac_header_preproc=yes |
17210 | else | |
ec6a6fbe | 17211 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17212 | sed 's/^/| /' conftest.$ac_ext >&5 |
17213 | ||
17214 | ac_header_preproc=no | |
17215 | fi | |
7a197a62 | 17216 | |
ad6254c5 | 17217 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17218 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17219 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17220 | |
17221 | # So? What about this header? | |
8a2fc586 AK |
17222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17223 | yes:no: ) | |
ec6a6fbe AK |
17224 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17225 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17226 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17227 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17228 | ac_header_preproc=yes |
ad6254c5 | 17229 | ;; |
8a2fc586 | 17230 | no:yes:* ) |
ec6a6fbe AK |
17231 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17232 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17234 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17236 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17238 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17240 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17242 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17243 | |
ad6254c5 AK |
17244 | ;; |
17245 | esac | |
ec6a6fbe AK |
17246 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17247 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17248 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17249 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17250 | else |
8a2fc586 | 17251 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17252 | fi |
ec6a6fbe AK |
17253 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17254 | $as_echo "$as_val"'` | |
17255 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17256 | $as_echo "$ac_res" >&6; } | |
80992638 | 17257 | |
8106cdd5 | 17258 | fi |
ec6a6fbe AK |
17259 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17260 | $as_echo "$as_val"'` | |
17261 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17262 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17263 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17264 | _ACEOF |
795ca3e5 AK |
17265 | |
17266 | else | |
ec6a6fbe AK |
17267 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17268 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17269 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17270 | fi |
17271 | ||
ad6254c5 | 17272 | done |
80992638 | 17273 | |
ad6254c5 | 17274 | fi |
80992638 | 17275 | |
ad6254c5 | 17276 | if test x$INTL = xyes; then |
83912faa | 17277 | |
ad6254c5 AK |
17278 | for ac_header in libintl.h |
17279 | do | |
ec6a6fbe | 17280 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17282 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17283 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17284 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17285 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17286 | fi |
ec6a6fbe AK |
17287 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17288 | $as_echo "$as_val"'` | |
17289 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17290 | $as_echo "$ac_res" >&6; } | |
83912faa | 17291 | else |
ad6254c5 | 17292 | # Is the header compilable? |
ec6a6fbe AK |
17293 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17294 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17295 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17296 | /* confdefs.h. */ |
17297 | _ACEOF | |
17298 | cat confdefs.h >>conftest.$ac_ext | |
17299 | cat >>conftest.$ac_ext <<_ACEOF | |
17300 | /* end confdefs.h. */ | |
17301 | $ac_includes_default | |
17302 | #include <$ac_header> | |
17303 | _ACEOF | |
17304 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17305 | if { (ac_try="$ac_compile" |
17306 | case "(($ac_try" in | |
17307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17308 | *) ac_try_echo=$ac_try;; | |
17309 | esac | |
ec6a6fbe AK |
17310 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17311 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17312 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17313 | ac_status=$? |
8a2fc586 AK |
17314 | grep -v '^ *+' conftest.er1 >conftest.err |
17315 | rm -f conftest.er1 | |
17316 | cat conftest.err >&5 | |
ec6a6fbe | 17317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17318 | (exit $ac_status); } && { |
17319 | test -z "$ac_c_werror_flag" || | |
17320 | test ! -s conftest.err | |
17321 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17322 | ac_header_compiler=yes |
17323 | else | |
ec6a6fbe | 17324 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17325 | sed 's/^/| /' conftest.$ac_ext >&5 |
17326 | ||
7a197a62 | 17327 | ac_header_compiler=no |
ad6254c5 | 17328 | fi |
7a197a62 AK |
17329 | |
17330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17331 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17332 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17333 | |
17334 | # Is the header present? | |
ec6a6fbe AK |
17335 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17336 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17337 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17338 | /* confdefs.h. */ |
17339 | _ACEOF | |
17340 | cat confdefs.h >>conftest.$ac_ext | |
17341 | cat >>conftest.$ac_ext <<_ACEOF | |
17342 | /* end confdefs.h. */ | |
17343 | #include <$ac_header> | |
17344 | _ACEOF | |
7a197a62 AK |
17345 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17346 | case "(($ac_try" in | |
17347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17348 | *) ac_try_echo=$ac_try;; | |
17349 | esac | |
ec6a6fbe AK |
17350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17351 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17352 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17353 | ac_status=$? |
17354 | grep -v '^ *+' conftest.er1 >conftest.err | |
17355 | rm -f conftest.er1 | |
17356 | cat conftest.err >&5 | |
ec6a6fbe | 17357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17358 | (exit $ac_status); } >/dev/null && { |
17359 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17360 | test ! -s conftest.err | |
17361 | }; then | |
ad6254c5 AK |
17362 | ac_header_preproc=yes |
17363 | else | |
ec6a6fbe | 17364 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17365 | sed 's/^/| /' conftest.$ac_ext >&5 |
17366 | ||
17367 | ac_header_preproc=no | |
17368 | fi | |
7a197a62 | 17369 | |
ad6254c5 | 17370 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17371 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17372 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17373 | |
17374 | # So? What about this header? | |
8a2fc586 AK |
17375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17376 | yes:no: ) | |
ec6a6fbe AK |
17377 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17378 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17379 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17380 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17381 | ac_header_preproc=yes |
ad6254c5 | 17382 | ;; |
8a2fc586 | 17383 | no:yes:* ) |
ec6a6fbe AK |
17384 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17385 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17387 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17389 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17390 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17391 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17393 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17395 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17396 | |
ad6254c5 AK |
17397 | ;; |
17398 | esac | |
ec6a6fbe AK |
17399 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17400 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17401 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17402 | $as_echo_n "(cached) " >&6 |
80992638 | 17403 | else |
8a2fc586 | 17404 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17405 | fi |
ec6a6fbe AK |
17406 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17407 | $as_echo "$as_val"'` | |
17408 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17409 | $as_echo "$ac_res" >&6; } | |
83912faa | 17410 | |
69792976 | 17411 | fi |
ec6a6fbe AK |
17412 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17413 | $as_echo "$as_val"'` | |
17414 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17415 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17416 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17417 | _ACEOF |
69792976 | 17418 | |
69792976 | 17419 | else |
ec6a6fbe AK |
17420 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17421 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17422 | { (exit 1); exit 1; }; } |
80992638 AK |
17423 | fi |
17424 | ||
ad6254c5 | 17425 | done |
69792976 | 17426 | |
ad6254c5 AK |
17427 | fi |
17428 | ||
a5f46f6a AK |
17429 | if test x$UDEV_SYNC = xyes; then |
17430 | ||
17431 | ||
17432 | for ac_header in sys/ipc.h sys/sem.h | |
17433 | do | |
17434 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17436 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17437 | $as_echo_n "checking for $ac_header... " >&6; } | |
17438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17439 | $as_echo_n "(cached) " >&6 | |
17440 | fi | |
17441 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17442 | $as_echo "$as_val"'` | |
17443 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17444 | $as_echo "$ac_res" >&6; } | |
17445 | else | |
17446 | # Is the header compilable? | |
17447 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17448 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17449 | cat >conftest.$ac_ext <<_ACEOF | |
17450 | /* confdefs.h. */ | |
17451 | _ACEOF | |
17452 | cat confdefs.h >>conftest.$ac_ext | |
17453 | cat >>conftest.$ac_ext <<_ACEOF | |
17454 | /* end confdefs.h. */ | |
17455 | $ac_includes_default | |
17456 | #include <$ac_header> | |
17457 | _ACEOF | |
17458 | rm -f conftest.$ac_objext | |
17459 | if { (ac_try="$ac_compile" | |
17460 | case "(($ac_try" in | |
17461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17462 | *) ac_try_echo=$ac_try;; | |
17463 | esac | |
17464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17465 | $as_echo "$ac_try_echo") >&5 | |
17466 | (eval "$ac_compile") 2>conftest.er1 | |
17467 | ac_status=$? | |
17468 | grep -v '^ *+' conftest.er1 >conftest.err | |
17469 | rm -f conftest.er1 | |
17470 | cat conftest.err >&5 | |
17471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17472 | (exit $ac_status); } && { | |
17473 | test -z "$ac_c_werror_flag" || | |
17474 | test ! -s conftest.err | |
17475 | } && test -s conftest.$ac_objext; then | |
17476 | ac_header_compiler=yes | |
17477 | else | |
17478 | $as_echo "$as_me: failed program was:" >&5 | |
17479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17480 | ||
17481 | ac_header_compiler=no | |
17482 | fi | |
17483 | ||
17484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17485 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17486 | $as_echo "$ac_header_compiler" >&6; } | |
17487 | ||
17488 | # Is the header present? | |
17489 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17490 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17491 | cat >conftest.$ac_ext <<_ACEOF | |
17492 | /* confdefs.h. */ | |
17493 | _ACEOF | |
17494 | cat confdefs.h >>conftest.$ac_ext | |
17495 | cat >>conftest.$ac_ext <<_ACEOF | |
17496 | /* end confdefs.h. */ | |
17497 | #include <$ac_header> | |
17498 | _ACEOF | |
17499 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17500 | case "(($ac_try" in | |
17501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17502 | *) ac_try_echo=$ac_try;; | |
17503 | esac | |
17504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17505 | $as_echo "$ac_try_echo") >&5 | |
17506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17507 | ac_status=$? | |
17508 | grep -v '^ *+' conftest.er1 >conftest.err | |
17509 | rm -f conftest.er1 | |
17510 | cat conftest.err >&5 | |
17511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17512 | (exit $ac_status); } >/dev/null && { | |
17513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17514 | test ! -s conftest.err | |
17515 | }; then | |
17516 | ac_header_preproc=yes | |
17517 | else | |
17518 | $as_echo "$as_me: failed program was:" >&5 | |
17519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17520 | ||
17521 | ac_header_preproc=no | |
17522 | fi | |
17523 | ||
17524 | rm -f conftest.err conftest.$ac_ext | |
17525 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17526 | $as_echo "$ac_header_preproc" >&6; } | |
17527 | ||
17528 | # So? What about this header? | |
17529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17530 | yes:no: ) | |
17531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17532 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17534 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17535 | ac_header_preproc=yes | |
17536 | ;; | |
17537 | no:yes:* ) | |
17538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17539 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17541 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17543 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17545 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17547 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17549 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17550 | ||
17551 | ;; | |
17552 | esac | |
17553 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17554 | $as_echo_n "checking for $ac_header... " >&6; } | |
17555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17556 | $as_echo_n "(cached) " >&6 | |
17557 | else | |
17558 | eval "$as_ac_Header=\$ac_header_preproc" | |
17559 | fi | |
17560 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17561 | $as_echo "$as_val"'` | |
17562 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17563 | $as_echo "$ac_res" >&6; } | |
17564 | ||
17565 | fi | |
17566 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17567 | $as_echo "$as_val"'` | |
17568 | if test "x$as_val" = x""yes; then | |
17569 | cat >>confdefs.h <<_ACEOF | |
17570 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17571 | _ACEOF | |
17572 | ||
17573 | else | |
17574 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17575 | $as_echo "$as_me: error: bailing out" >&2;} | |
17576 | { (exit 1); exit 1; }; } | |
17577 | fi | |
17578 | ||
17579 | done | |
17580 | ||
17581 | fi | |
17582 | ||
a653923f AK |
17583 | ################################################################################ |
17584 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17585 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17586 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17587 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17588 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17589 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17590 | else |
17591 | case $MODPROBE_CMD in | |
17592 | [\\/]* | ?:[\\/]*) | |
17593 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17594 | ;; | |
17595 | *) | |
17596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17597 | for as_dir in $PATH | |
17598 | do | |
17599 | IFS=$as_save_IFS | |
17600 | test -z "$as_dir" && as_dir=. | |
17601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17603 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17604 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17605 | break 2 |
17606 | fi | |
17607 | done | |
17608 | done | |
7a197a62 | 17609 | IFS=$as_save_IFS |
72b2cb61 AK |
17610 | |
17611 | ;; | |
17612 | esac | |
17613 | fi | |
17614 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17615 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17616 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17617 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17618 | else |
ec6a6fbe AK |
17619 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17620 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17621 | fi |
17622 | ||
a653923f | 17623 | |
7a197a62 | 17624 | |
a653923f | 17625 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17626 | |
17627 | cat >>confdefs.h <<_ACEOF | |
17628 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17629 | _ACEOF | |
17630 | ||
a653923f AK |
17631 | fi |
17632 | ||
b5c2529b | 17633 | |
a9b601e2 ZK |
17634 | lvm_exec_prefix=$exec_prefix |
17635 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17636 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17637 | ||
b5c2529b | 17638 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17639 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17640 | _ACEOF |
17641 | ||
17642 | ||
17643 | if test "$CLVMD" != none; then | |
17644 | clvmd_prefix=$ac_default_prefix | |
17645 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17646 | ||
17647 | cat >>confdefs.h <<_ACEOF | |
17648 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17649 | _ACEOF | |
17650 | ||
17651 | fi | |
17652 | ||
80992638 | 17653 | ################################################################################ |
93bd259b AK |
17654 | |
17655 | ||
17656 | if test "$BUILD_DMEVENTD" = yes; then | |
17657 | ||
17658 | # Check whether --with-dmeventd-pidfile was given. | |
17659 | if test "${with_dmeventd_pidfile+set}" = set; then | |
17660 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
17661 | #define DMEVENTD_PIDFILE "$withval" | |
17662 | _ACEOF | |
17663 | ||
17664 | else | |
17665 | cat >>confdefs.h <<_ACEOF | |
17666 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
17667 | _ACEOF | |
17668 | ||
17669 | fi | |
17670 | ||
17671 | fi | |
17672 | ||
17673 | ||
17674 | ||
17675 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
17676 | |
17677 | # Check whether --with-dmeventd-path was given. | |
17678 | if test "${with_dmeventd_path+set}" = set; then | |
17679 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
17680 | #define DMEVENTD_PATH "$withval" | |
17681 | _ACEOF | |
17682 | ||
17683 | else | |
17684 | cat >>confdefs.h <<_ACEOF | |
a9b601e2 | 17685 | #define DMEVENTD_PATH "$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
17686 | _ACEOF |
17687 | ||
17688 | fi | |
17689 | ||
17690 | fi | |
17691 | ||
3399ae32 AK |
17692 | ################################################################################ |
17693 | ||
17694 | ||
17695 | ||
17696 | # Check whether --with-default-system-dir was given. | |
17697 | if test "${with_default_system_dir+set}" = set; then | |
17698 | withval=$with_default_system_dir; DEFAULT_SYS_DIR="$withval" | |
17699 | else | |
17700 | DEFAULT_SYS_DIR="/etc/lvm" | |
17701 | fi | |
17702 | ||
17703 | cat >>confdefs.h <<_ACEOF | |
17704 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
17705 | _ACEOF | |
17706 | ||
17707 | ||
17708 | ||
17709 | ||
17710 | ||
17711 | # Check whether --with-default-archive-subdir was given. | |
17712 | if test "${with_default_archive_subdir+set}" = set; then | |
17713 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR="$withval" | |
17714 | else | |
17715 | DEFAULT_ARCHIVE_SUBDIR="archive" | |
17716 | fi | |
17717 | ||
17718 | cat >>confdefs.h <<_ACEOF | |
17719 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
17720 | _ACEOF | |
17721 | ||
17722 | ||
17723 | ||
17724 | ||
17725 | ||
17726 | # Check whether --with-default-backup-subdir was given. | |
17727 | if test "${with_default_backup_subdir+set}" = set; then | |
17728 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR="$withval" | |
17729 | else | |
17730 | DEFAULT_BACKUP_SUBDIR="backup" | |
17731 | fi | |
17732 | ||
17733 | cat >>confdefs.h <<_ACEOF | |
17734 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
17735 | _ACEOF | |
17736 | ||
17737 | ||
17738 | ||
17739 | ||
17740 | ||
17741 | # Check whether --with-default-cache-subdir was given. | |
17742 | if test "${with_default_cache_subdir+set}" = set; then | |
17743 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR="$withval" | |
17744 | else | |
17745 | DEFAULT_CACHE_SUBDIR="cache" | |
17746 | fi | |
17747 | ||
17748 | cat >>confdefs.h <<_ACEOF | |
17749 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
17750 | _ACEOF | |
17751 | ||
17752 | ||
17753 | ||
17754 | ||
17755 | ||
17756 | # Check whether --with-default-locking-dir was given. | |
17757 | if test "${with_default_locking_dir+set}" = set; then | |
17758 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR="$withval" | |
17759 | else | |
17760 | DEFAULT_LOCK_DIR="/var/lock/lvm" | |
17761 | fi | |
17762 | ||
17763 | cat >>confdefs.h <<_ACEOF | |
17764 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
17765 | _ACEOF | |
17766 | ||
17767 | ||
93bd259b | 17768 | ################################################################################ |
ec6a6fbe AK |
17769 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
17770 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
17771 | |
17772 | # Check whether --with-interface was given. | |
17773 | if test "${with_interface+set}" = set; then | |
17774 | withval=$with_interface; interface="$withval" | |
17775 | else | |
17776 | interface=ioctl | |
17777 | fi | |
17778 | ||
17779 | if [ "x$interface" != xioctl ]; | |
17780 | then | |
ec6a6fbe AK |
17781 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
17782 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
17783 | { (exit 1); exit 1; }; } |
17784 | fi | |
ec6a6fbe AK |
17785 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
17786 | $as_echo "$interface" >&6; } | |
93bd259b AK |
17787 | |
17788 | ################################################################################ | |
db8b5af9 | 17789 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
17790 | |
17791 | cat >>confdefs.h <<_ACEOF | |
17792 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
17793 | _ACEOF | |
17794 | ||
17795 | ||
db8b5af9 | 17796 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 17797 | |
db8b5af9 | 17798 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 17799 | |
db8b5af9 | 17800 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 17801 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
17802 | VER=`echo "$VER" | $AWK '{print $1}'` |
17803 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
17804 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
17805 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
17806 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
17807 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
17808 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 17809 | |
80992638 | 17810 | ################################################################################ |
fae0c576 | 17811 | |
83912faa | 17812 | |
795ca3e5 AK |
17813 | |
17814 | ||
17815 | ||
17816 | ||
17817 | ||
17818 | ||
5a52dca9 | 17819 | |
8ef2b021 | 17820 | |
199e490e | 17821 | |
69792976 AK |
17822 | |
17823 | ||
17824 | ||
d0191583 | 17825 | |
69792976 | 17826 | |
8106cdd5 AK |
17827 | |
17828 | ||
17829 | ||
17830 | ||
17831 | ||
d68a82ec | 17832 | |
036f273a | 17833 | |
7d1552c9 | 17834 | |
8106cdd5 | 17835 | |
0a62c911 | 17836 | |
8106cdd5 | 17837 | |
4a7f3eb2 | 17838 | |
4922197a AK |
17839 | |
17840 | ||
d8ac0fbc | 17841 | |
1a9ea74d | 17842 | |
8a2fc586 AK |
17843 | |
17844 | ||
d0191583 | 17845 | |
93bd259b AK |
17846 | |
17847 | ||
17848 | ||
17849 | ||
17850 | ||
d0191583 JM |
17851 | |
17852 | ||
17853 | ||
17854 | ||
17855 | ||
8a2fc586 | 17856 | |
19a2c6e0 | 17857 | |
f7f0854e ZK |
17858 | |
17859 | ||
3ceb7608 | 17860 | |
8ce0cbda | 17861 | |
8b1a3214 | 17862 | |
ec6a6fbe AK |
17863 | |
17864 | ||
17865 | ||
17866 | ||
e2997b73 AK |
17867 | |
17868 | ||
17869 | ||
17870 | ||
17871 | ||
17872 | ||
a946372e AK |
17873 | |
17874 | ||
17875 | ||
17876 | ||
17877 | ||
17878 | ||
17879 | ||
17880 | ||
17881 | ||
17882 | ||
17883 | ||
ec6a6fbe | 17884 | |
33f732c5 | 17885 | |
66e941e8 | 17886 | |
d3c8211f | 17887 | |
7e3fe830 | 17888 | |
a5f46f6a AK |
17889 | |
17890 | ||
17891 | ||
572fefeb | 17892 | |
90c80887 | 17893 | |
3399ae32 AK |
17894 | |
17895 | ||
17896 | ||
17897 | ||
17898 | ||
90c80887 | 17899 | |
bf456146 | 17900 | |
e1b8a236 | 17901 | |
0878503f | 17902 | |
8fea97b7 | 17903 | |
68f2de6d AK |
17904 | |
17905 | ||
80992638 | 17906 | ################################################################################ |
8fea97b7 | 17907 | 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" |
7a197a62 | 17908 | |
ad6254c5 | 17909 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
17910 | # This file is a shell script that caches the results of configure |
17911 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
17912 | # scripts and configure runs, see configure's option --config-cache. |
17913 | # It is not useful on other systems. If it contains results you don't | |
17914 | # want to keep, you may remove or edit it. | |
795ca3e5 | 17915 | # |
ad6254c5 AK |
17916 | # config.status only pays attention to the cache file if you give it |
17917 | # the --recheck option to rerun configure. | |
795ca3e5 | 17918 | # |
ad6254c5 AK |
17919 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17920 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17921 | # following values. | |
17922 | ||
17923 | _ACEOF | |
17924 | ||
795ca3e5 AK |
17925 | # The following way of writing the cache mishandles newlines in values, |
17926 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 17927 | # So, we kill variables containing newlines. |
795ca3e5 AK |
17928 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17929 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
17930 | ( |
17931 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17932 | eval ac_val=\$$ac_var | |
17933 | case $ac_val in #( | |
17934 | *${as_nl}*) | |
17935 | case $ac_var in #( | |
ec6a6fbe AK |
17936 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
17937 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
17938 | esac |
17939 | case $ac_var in #( | |
17940 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 17941 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
17942 | *) $as_unset $ac_var ;; |
17943 | esac ;; | |
17944 | esac | |
17945 | done | |
17946 | ||
ad6254c5 | 17947 | (set) 2>&1 | |
7a197a62 AK |
17948 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17949 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
17950 | # `set' does not quote correctly, so add quotes (double-quote |
17951 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17952 | sed -n \ | |
8a2fc586 AK |
17953 | "s/'/'\\\\''/g; |
17954 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 17955 | ;; #( |
ad6254c5 AK |
17956 | *) |
17957 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 17958 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 17959 | ;; |
7a197a62 AK |
17960 | esac | |
17961 | sort | |
17962 | ) | | |
ad6254c5 | 17963 | sed ' |
7a197a62 | 17964 | /^ac_cv_env_/b end |
ad6254c5 | 17965 | t clear |
7a197a62 | 17966 | :clear |
ad6254c5 AK |
17967 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17968 | t end | |
7a197a62 AK |
17969 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17970 | :end' >>confcache | |
17971 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17972 | if test -w "$cache_file"; then | |
17973 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
17974 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
17975 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 17976 | cat confcache >$cache_file |
795ca3e5 | 17977 | else |
ec6a6fbe AK |
17978 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
17979 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
17980 | fi |
17981 | fi | |
17982 | rm -f confcache | |
17983 | ||
795ca3e5 AK |
17984 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17985 | # Let make expand exec_prefix. | |
17986 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17987 | ||
72b2cb61 | 17988 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
17989 | |
17990 | ac_libobjs= | |
17991 | ac_ltlibobjs= | |
17992 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17993 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 17994 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 17995 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
17996 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17997 | # will be set to the directory where LIBOBJS objects are built. | |
17998 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17999 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18000 | done |
18001 | LIBOBJS=$ac_libobjs | |
80992638 | 18002 | |
ad6254c5 AK |
18003 | LTLIBOBJS=$ac_ltlibobjs |
18004 | ||
18005 | ||
18006 | ||
18007 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18008 | ac_write_fail=0 |
ad6254c5 AK |
18009 | ac_clean_files_save=$ac_clean_files |
18010 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18011 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18012 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18013 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18014 | #! $SHELL |
18015 | # Generated by $as_me. | |
795ca3e5 | 18016 | # Run this file to recreate the current configuration. |
795ca3e5 | 18017 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18018 | # configure, is in config.log if it exists. |
18019 | ||
18020 | debug=false | |
18021 | ac_cs_recheck=false | |
18022 | ac_cs_silent=false | |
18023 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18024 | _ACEOF | |
18025 | ||
ec6a6fbe | 18026 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18027 | ## --------------------- ## |
18028 | ## M4sh Initialization. ## | |
18029 | ## --------------------- ## | |
18030 | ||
25fbec5b AK |
18031 | # Be more Bourne compatible |
18032 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18033 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18034 | emulate sh | |
18035 | NULLCMD=: | |
ec6a6fbe | 18036 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18037 | # is contrary to our usage. Disable this feature. |
18038 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18039 | setopt NO_GLOB_SUBST |
18040 | else | |
25fbec5b AK |
18041 | case `(set -o) 2>/dev/null` in |
18042 | *posix*) set -o posix ;; | |
18043 | esac | |
18044 | ||
7a197a62 | 18045 | fi |
25fbec5b AK |
18046 | |
18047 | ||
7a197a62 AK |
18048 | |
18049 | ||
18050 | # PATH needs CR | |
18051 | # Avoid depending upon Character Ranges. | |
18052 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18053 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18054 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18055 | as_cr_digits='0123456789' | |
18056 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18057 | ||
ec6a6fbe AK |
18058 | as_nl=' |
18059 | ' | |
18060 | export as_nl | |
18061 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18062 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18063 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18064 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18065 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18066 | as_echo='printf %s\n' | |
18067 | as_echo_n='printf %s' | |
18068 | else | |
18069 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18070 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18071 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18072 | else |
ec6a6fbe AK |
18073 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18074 | as_echo_n_body='eval | |
18075 | arg=$1; | |
18076 | case $arg in | |
18077 | *"$as_nl"*) | |
18078 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18079 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18080 | esac; | |
18081 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18082 | ' | |
18083 | export as_echo_n_body | |
18084 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18085 | fi |
ec6a6fbe AK |
18086 | export as_echo_body |
18087 | as_echo='sh -c $as_echo_body as_echo' | |
18088 | fi | |
18089 | ||
18090 | # The user is always right. | |
18091 | if test "${PATH_SEPARATOR+set}" != set; then | |
18092 | PATH_SEPARATOR=: | |
18093 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18094 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18095 | PATH_SEPARATOR=';' | |
18096 | } | |
ad6254c5 AK |
18097 | fi |
18098 | ||
18099 | # Support unset when possible. | |
8a2fc586 | 18100 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18101 | as_unset=unset |
18102 | else | |
18103 | as_unset=false | |
18104 | fi | |
8106cdd5 | 18105 | |
ad6254c5 | 18106 | |
7a197a62 AK |
18107 | # IFS |
18108 | # We need space, tab and new line, in precisely that order. Quoting is | |
18109 | # there to prevent editors from complaining about space-tab. | |
18110 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18111 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18112 | IFS=" "" $as_nl" |
18113 | ||
18114 | # Find who we are. Look in the path if we contain no directory separator. | |
18115 | case $0 in | |
18116 | *[\\/]* ) as_myself=$0 ;; | |
18117 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18118 | for as_dir in $PATH | |
18119 | do | |
18120 | IFS=$as_save_IFS | |
18121 | test -z "$as_dir" && as_dir=. | |
18122 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18123 | done | |
18124 | IFS=$as_save_IFS | |
18125 | ||
18126 | ;; | |
18127 | esac | |
18128 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18129 | # in which case we are not to be found in the path. | |
18130 | if test "x$as_myself" = x; then | |
18131 | as_myself=$0 | |
18132 | fi | |
18133 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18134 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18135 | { (exit 1); exit 1; } |
18136 | fi | |
18137 | ||
ad6254c5 | 18138 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18139 | for as_var in ENV MAIL MAILPATH |
18140 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18141 | done | |
ad6254c5 AK |
18142 | PS1='$ ' |
18143 | PS2='> ' | |
18144 | PS4='+ ' | |
18145 | ||
18146 | # NLS nuisances. | |
ec6a6fbe AK |
18147 | LC_ALL=C |
18148 | export LC_ALL | |
18149 | LANGUAGE=C | |
18150 | export LANGUAGE | |
8106cdd5 | 18151 | |
ad6254c5 | 18152 | # Required to use basename. |
7a197a62 AK |
18153 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18154 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18155 | as_expr=expr |
18156 | else | |
18157 | as_expr=false | |
18158 | fi | |
8106cdd5 | 18159 | |
7a197a62 | 18160 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18161 | as_basename=basename |
18162 | else | |
18163 | as_basename=false | |
18164 | fi | |
18165 | ||
18166 | ||
18167 | # Name of the executable. | |
7a197a62 | 18168 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18169 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18170 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18171 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18172 | $as_echo X/"$0" | |
7a197a62 AK |
18173 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18174 | s//\1/ | |
18175 | q | |
18176 | } | |
18177 | /^X\/\(\/\/\)$/{ | |
18178 | s//\1/ | |
18179 | q | |
18180 | } | |
18181 | /^X\/\(\/\).*/{ | |
18182 | s//\1/ | |
18183 | q | |
18184 | } | |
18185 | s/.*/./; q'` | |
ad6254c5 | 18186 | |
7a197a62 AK |
18187 | # CDPATH. |
18188 | $as_unset CDPATH | |
ad6254c5 AK |
18189 | |
18190 | ||
ad6254c5 | 18191 | |
ad6254c5 AK |
18192 | as_lineno_1=$LINENO |
18193 | as_lineno_2=$LINENO | |
ad6254c5 | 18194 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18195 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18196 | |
ad6254c5 AK |
18197 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18198 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18199 | # line-number line after each line using $LINENO; the second 'sed' |
18200 | # does the real work. The second script uses 'N' to pair each | |
18201 | # line-number line with the line containing $LINENO, and appends | |
18202 | # trailing '-' during substitution so that $LINENO is not a special | |
18203 | # case at line end. | |
ad6254c5 | 18204 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18205 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18206 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18207 | sed -n ' | |
18208 | p | |
18209 | /[$]LINENO/= | |
18210 | ' <$as_myself | | |
ad6254c5 | 18211 | sed ' |
7a197a62 AK |
18212 | s/[$]LINENO.*/&-/ |
18213 | t lineno | |
18214 | b | |
18215 | :lineno | |
ad6254c5 | 18216 | N |
7a197a62 AK |
18217 | :loop |
18218 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18219 | t loop |
7a197a62 | 18220 | s/-\n.*// |
ad6254c5 | 18221 | ' >$as_me.lineno && |
7a197a62 | 18222 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18223 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18224 | { (exit 1); exit 1; }; } |
18225 | ||
18226 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18227 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18228 | # original and so on. Autoconf is especially sensitive to this). |
18229 | . "./$as_me.lineno" | |
ad6254c5 AK |
18230 | # Exit status is that of the last command. |
18231 | exit | |
18232 | } | |
18233 | ||
18234 | ||
7a197a62 AK |
18235 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18236 | as_dirname=dirname | |
18237 | else | |
18238 | as_dirname=false | |
18239 | fi | |
18240 | ||
18241 | ECHO_C= ECHO_N= ECHO_T= | |
18242 | case `echo -n x` in | |
18243 | -n*) | |
18244 | case `echo 'x\c'` in | |
18245 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18246 | *) ECHO_C='\c';; | |
18247 | esac;; | |
18248 | *) | |
18249 | ECHO_N='-n';; | |
ad6254c5 | 18250 | esac |
7a197a62 AK |
18251 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18252 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18253 | as_expr=expr |
18254 | else | |
18255 | as_expr=false | |
18256 | fi | |
80992638 | 18257 | |
ad6254c5 | 18258 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18259 | if test -d conf$$.dir; then |
18260 | rm -f conf$$.dir/conf$$.file | |
18261 | else | |
18262 | rm -f conf$$.dir | |
ec6a6fbe AK |
18263 | mkdir conf$$.dir 2>/dev/null |
18264 | fi | |
18265 | if (echo >conf$$.file) 2>/dev/null; then | |
18266 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18267 | as_ln_s='ln -s' | |
18268 | # ... but there are two gotchas: | |
18269 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18270 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18271 | # In both cases, we have to default to `cp -p'. | |
18272 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18273 | as_ln_s='cp -p' | |
18274 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18275 | as_ln_s=ln | |
18276 | else | |
ad6254c5 | 18277 | as_ln_s='cp -p' |
ec6a6fbe | 18278 | fi |
ad6254c5 AK |
18279 | else |
18280 | as_ln_s='cp -p' | |
18281 | fi | |
7a197a62 AK |
18282 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18283 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18284 | |
ad6254c5 AK |
18285 | if mkdir -p . 2>/dev/null; then |
18286 | as_mkdir_p=: | |
18287 | else | |
8a2fc586 | 18288 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18289 | as_mkdir_p=false |
18290 | fi | |
18291 | ||
25fbec5b AK |
18292 | if test -x / >/dev/null 2>&1; then |
18293 | as_test_x='test -x' | |
7a197a62 | 18294 | else |
25fbec5b AK |
18295 | if ls -dL / >/dev/null 2>&1; then |
18296 | as_ls_L_option=L | |
18297 | else | |
18298 | as_ls_L_option= | |
18299 | fi | |
18300 | as_test_x=' | |
18301 | eval sh -c '\'' | |
18302 | if test -d "$1"; then | |
ec6a6fbe | 18303 | test -d "$1/."; |
25fbec5b AK |
18304 | else |
18305 | case $1 in | |
ec6a6fbe | 18306 | -*)set "./$1";; |
25fbec5b AK |
18307 | esac; |
18308 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18309 | ???[sx]*):;;*)false;;esac;fi | |
18310 | '\'' sh | |
18311 | ' | |
7a197a62 | 18312 | fi |
25fbec5b | 18313 | as_executable_p=$as_test_x |
ad6254c5 AK |
18314 | |
18315 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18316 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18317 | |
18318 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18319 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18320 | |
18321 | ||
ad6254c5 AK |
18322 | exec 6>&1 |
18323 | ||
7a197a62 | 18324 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18325 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18326 | # values after options handling. |
18327 | ac_log=" | |
ad6254c5 | 18328 | This file was extended by $as_me, which was |
ec6a6fbe | 18329 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18330 | |
18331 | CONFIG_FILES = $CONFIG_FILES | |
18332 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18333 | CONFIG_LINKS = $CONFIG_LINKS | |
18334 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18335 | $ $0 $@ | |
18336 | ||
7a197a62 AK |
18337 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18338 | " | |
18339 | ||
ad6254c5 AK |
18340 | _ACEOF |
18341 | ||
ec6a6fbe AK |
18342 | case $ac_config_files in *" |
18343 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18344 | esac | |
18345 | ||
18346 | case $ac_config_headers in *" | |
18347 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18348 | esac | |
18349 | ||
18350 | ||
18351 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18352 | # Files that config.status was made for. |
68f2de6d AK |
18353 | config_files="$ac_config_files" |
18354 | config_headers="$ac_config_headers" | |
ad6254c5 | 18355 | |
7a197a62 | 18356 | _ACEOF |
ad6254c5 | 18357 | |
ec6a6fbe | 18358 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18359 | ac_cs_usage="\ |
18360 | \`$as_me' instantiates files from templates according to the | |
18361 | current configuration. | |
18362 | ||
ec6a6fbe | 18363 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18364 | |
18365 | -h, --help print this help, then exit | |
25fbec5b | 18366 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18367 | -q, --quiet, --silent |
18368 | do not print progress messages | |
ad6254c5 AK |
18369 | -d, --debug don't remove temporary files |
18370 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18371 | --file=FILE[:TEMPLATE] |
18372 | instantiate the configuration file FILE | |
18373 | --header=FILE[:TEMPLATE] | |
18374 | instantiate the configuration header FILE | |
ad6254c5 AK |
18375 | |
18376 | Configuration files: | |
18377 | $config_files | |
18378 | ||
72b2cb61 AK |
18379 | Configuration headers: |
18380 | $config_headers | |
18381 | ||
ad6254c5 | 18382 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18383 | |
7a197a62 | 18384 | _ACEOF |
ec6a6fbe | 18385 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18386 | ac_cs_version="\\ |
18387 | config.status | |
ec6a6fbe AK |
18388 | configured by $0, generated by GNU Autoconf 2.63, |
18389 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18390 | |
ec6a6fbe | 18391 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18392 | This config.status script is free software; the Free Software Foundation |
18393 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18394 | |
18395 | ac_pwd='$ac_pwd' | |
18396 | srcdir='$srcdir' | |
18397 | INSTALL='$INSTALL' | |
fddafd51 | 18398 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18399 | AWK='$AWK' |
18400 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18401 | _ACEOF |
18402 | ||
ec6a6fbe AK |
18403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18404 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18405 | ac_need_defaults=: |
18406 | while test $# != 0 | |
18407 | do | |
18408 | case $1 in | |
18409 | --*=*) | |
7a197a62 AK |
18410 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18411 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18412 | ac_shift=: |
18413 | ;; | |
7a197a62 | 18414 | *) |
ad6254c5 AK |
18415 | ac_option=$1 |
18416 | ac_optarg=$2 | |
18417 | ac_shift=shift | |
18418 | ;; | |
ad6254c5 AK |
18419 | esac |
18420 | ||
18421 | case $ac_option in | |
18422 | # Handling of the options. | |
ad6254c5 AK |
18423 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18424 | ac_cs_recheck=: ;; | |
7a197a62 | 18425 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18426 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18427 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18428 | debug=: ;; |
18429 | --file | --fil | --fi | --f ) | |
18430 | $ac_shift | |
ec6a6fbe AK |
18431 | case $ac_optarg in |
18432 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18433 | esac | |
18434 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18435 | ac_need_defaults=false;; |
18436 | --header | --heade | --head | --hea ) | |
18437 | $ac_shift | |
ec6a6fbe AK |
18438 | case $ac_optarg in |
18439 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18440 | esac | |
18441 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18442 | ac_need_defaults=false;; |
7a197a62 AK |
18443 | --he | --h) |
18444 | # Conflict between --help and --header | |
ec6a6fbe | 18445 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18446 | Try \`$0 --help' for more information." >&2 |
18447 | { (exit 1); exit 1; }; };; | |
18448 | --help | --hel | -h ) | |
ec6a6fbe | 18449 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18450 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18451 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18452 | ac_cs_silent=: ;; | |
18453 | ||
18454 | # This is an error. | |
ec6a6fbe | 18455 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18456 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18457 | { (exit 1); exit 1; }; } ;; |
18458 | ||
7a197a62 AK |
18459 | *) ac_config_targets="$ac_config_targets $1" |
18460 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18461 | |
18462 | esac | |
18463 | shift | |
18464 | done | |
18465 | ||
18466 | ac_configure_extra_args= | |
18467 | ||
18468 | if $ac_cs_silent; then | |
18469 | exec 6>/dev/null | |
18470 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18471 | fi | |
18472 | ||
18473 | _ACEOF | |
ec6a6fbe | 18474 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18475 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18476 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18477 | shift | |
18478 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18479 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18480 | export CONFIG_SHELL |
ec6a6fbe | 18481 | exec "\$@" |
ad6254c5 AK |
18482 | fi |
18483 | ||
18484 | _ACEOF | |
ec6a6fbe | 18485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18486 | exec 5>>config.log |
18487 | { | |
18488 | echo | |
18489 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18490 | ## Running $as_me. ## | |
18491 | _ASBOX | |
ec6a6fbe | 18492 | $as_echo "$ac_log" |
7a197a62 | 18493 | } >&5 |
ad6254c5 | 18494 | |
7a197a62 | 18495 | _ACEOF |
ec6a6fbe | 18496 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18497 | _ACEOF |
ad6254c5 | 18498 | |
ec6a6fbe | 18499 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18500 | |
18501 | # Handling of arguments. | |
ad6254c5 AK |
18502 | for ac_config_target in $ac_config_targets |
18503 | do | |
7a197a62 AK |
18504 | case $ac_config_target in |
18505 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18506 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18507 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18508 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18509 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18510 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18511 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18512 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18513 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18514 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18515 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18516 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18517 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18518 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18519 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18520 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18521 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18522 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18523 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18524 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18525 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18526 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18527 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18528 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18529 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18530 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18531 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18532 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18533 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18534 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18535 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18536 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18537 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18538 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18539 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18540 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18541 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18542 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 18543 | |
ec6a6fbe AK |
18544 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18545 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18546 | { (exit 1); exit 1; }; };; |
80992638 | 18547 | esac |
ad6254c5 AK |
18548 | done |
18549 | ||
7a197a62 | 18550 | |
ad6254c5 AK |
18551 | # If the user did not use the arguments to specify the items to instantiate, |
18552 | # then the envvar interface is used. Set only those that are not. | |
18553 | # We use the long form for the default assignment because of an extremely | |
18554 | # bizarre bug on SunOS 4.1.3. | |
18555 | if $ac_need_defaults; then | |
18556 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18557 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18558 | fi |
18559 | ||
18560 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18561 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18562 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18563 | # Hook for its removal unless debugging. |
18564 | # Note that there is a small window in which the directory will not be cleaned: | |
18565 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18566 | $debug || |
18567 | { | |
7a197a62 AK |
18568 | tmp= |
18569 | trap 'exit_status=$? | |
18570 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18571 | ' 0 | |
ad6254c5 AK |
18572 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18573 | } | |
ad6254c5 AK |
18574 | # Create a (secure) tmp directory for tmp files. |
18575 | ||
18576 | { | |
7a197a62 | 18577 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18578 | test -n "$tmp" && test -d "$tmp" |
18579 | } || | |
18580 | { | |
7a197a62 AK |
18581 | tmp=./conf$$-$RANDOM |
18582 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18583 | } || |
18584 | { | |
ec6a6fbe | 18585 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18586 | { (exit 1); exit 1; } |
18587 | } | |
18588 | ||
ec6a6fbe AK |
18589 | # Set up the scripts for CONFIG_FILES section. |
18590 | # No need to generate them if there are no CONFIG_FILES. | |
18591 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18592 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18593 | |
68f2de6d | 18594 | |
ec6a6fbe AK |
18595 | ac_cr='\r' |
18596 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18597 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18598 | ac_cs_awk_cr='\\r' | |
18599 | else | |
18600 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18601 | fi |
7a197a62 | 18602 | |
ec6a6fbe | 18603 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18604 | _ACEOF |
7a197a62 | 18605 | |
8106cdd5 | 18606 | |
ec6a6fbe AK |
18607 | { |
18608 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18609 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18610 | echo "_ACEOF" | |
18611 | } >conf$$subs.sh || | |
18612 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18613 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18614 | { (exit 1); exit 1; }; } | |
18615 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18616 | ac_delim='%!_!# ' |
18617 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18618 | . ./conf$$subs.sh || |
18619 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18620 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18621 | { (exit 1); exit 1; }; } | |
18622 | ||
18623 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18624 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18625 | break |
18626 | elif $ac_last_try; then | |
ec6a6fbe AK |
18627 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18628 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18629 | { (exit 1); exit 1; }; } |
18630 | else | |
18631 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18632 | fi | |
18633 | done | |
ec6a6fbe AK |
18634 | rm -f conf$$subs.sh |
18635 | ||
18636 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18637 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18638 | _ACEOF | |
18639 | sed -n ' | |
18640 | h | |
18641 | s/^/S["/; s/!.*/"]=/ | |
18642 | p | |
18643 | g | |
18644 | s/^[^!]*!// | |
18645 | :repl | |
18646 | t repl | |
18647 | s/'"$ac_delim"'$// | |
18648 | t delim | |
18649 | :nl | |
18650 | h | |
18651 | s/\(.\{148\}\).*/\1/ | |
18652 | t more1 | |
18653 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18654 | p | |
18655 | n | |
18656 | b repl | |
18657 | :more1 | |
18658 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18659 | p | |
18660 | g | |
18661 | s/.\{148\}// | |
18662 | t nl | |
18663 | :delim | |
18664 | h | |
18665 | s/\(.\{148\}\).*/\1/ | |
18666 | t more2 | |
18667 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18668 | p | |
18669 | b | |
18670 | :more2 | |
18671 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18672 | p | |
18673 | g | |
18674 | s/.\{148\}// | |
18675 | t delim | |
18676 | ' <conf$$subs.awk | sed ' | |
18677 | /^[^""]/{ | |
18678 | N | |
18679 | s/\n// | |
18680 | } | |
18681 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18682 | rm -f conf$$subs.awk | |
18683 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18684 | _ACAWK | |
18685 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18686 | for (key in S) S_is_set[key] = 1 | |
18687 | FS = "\a" | |
7a197a62 | 18688 | |
ec6a6fbe AK |
18689 | } |
18690 | { | |
18691 | line = $ 0 | |
18692 | nfields = split(line, field, "@") | |
18693 | substed = 0 | |
18694 | len = length(field[1]) | |
18695 | for (i = 2; i < nfields; i++) { | |
18696 | key = field[i] | |
18697 | keylen = length(key) | |
18698 | if (S_is_set[key]) { | |
18699 | value = S[key] | |
18700 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18701 | len += length(value) + length(field[++i]) | |
18702 | substed = 1 | |
18703 | } else | |
18704 | len += 1 + keylen | |
18705 | } | |
18706 | ||
18707 | print line | |
18708 | } | |
fddafd51 | 18709 | |
ec6a6fbe | 18710 | _ACAWK |
1995c9ff | 18711 | _ACEOF |
ec6a6fbe AK |
18712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18713 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18714 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18715 | else | |
18716 | cat | |
18717 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18718 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
18719 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
18720 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
18721 | _ACEOF |
18722 | ||
7a197a62 AK |
18723 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18724 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18725 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18726 | # (actually we leave an empty line to preserve line numbers). | |
18727 | if test "x$srcdir" = x.; then | |
18728 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18729 | s/:*\$(srcdir):*/:/ | |
18730 | s/:*\${srcdir}:*/:/ | |
18731 | s/:*@srcdir@:*/:/ | |
18732 | s/^\([^=]*=[ ]*\):*/\1/ | |
18733 | s/:*$// | |
18734 | s/^[^=]*=[ ]*$// | |
18735 | }' | |
18736 | fi | |
18737 | ||
ec6a6fbe | 18738 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18739 | fi # test -n "$CONFIG_FILES" |
18740 | ||
ec6a6fbe AK |
18741 | # Set up the scripts for CONFIG_HEADERS section. |
18742 | # No need to generate them if there are no CONFIG_HEADERS. | |
18743 | # This happens for instance with `./config.status Makefile'. | |
18744 | if test -n "$CONFIG_HEADERS"; then | |
18745 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18746 | BEGIN { | |
18747 | _ACEOF | |
18748 | ||
18749 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18750 | # here-document in config.status, that substitutes the proper values into | |
18751 | # config.h.in to produce config.h. | |
18752 | ||
18753 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18754 | # handling of long lines. | |
18755 | ac_delim='%!_!# ' | |
18756 | for ac_last_try in false false :; do | |
18757 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18758 | if test -z "$ac_t"; then | |
18759 | break | |
18760 | elif $ac_last_try; then | |
18761 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
18762 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
18763 | { (exit 1); exit 1; }; } | |
18764 | else | |
18765 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18766 | fi | |
18767 | done | |
18768 | ||
18769 | # For the awk script, D is an array of macro values keyed by name, | |
18770 | # likewise P contains macro parameters if any. Preserve backslash | |
18771 | # newline sequences. | |
18772 | ||
18773 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18774 | sed -n ' | |
18775 | s/.\{148\}/&'"$ac_delim"'/g | |
18776 | t rset | |
18777 | :rset | |
18778 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18779 | t def | |
18780 | d | |
18781 | :def | |
18782 | s/\\$// | |
18783 | t bsnl | |
18784 | s/["\\]/\\&/g | |
18785 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18786 | D["\1"]=" \3"/p | |
18787 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18788 | d | |
18789 | :bsnl | |
18790 | s/["\\]/\\&/g | |
18791 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18792 | D["\1"]=" \3\\\\\\n"\\/p | |
18793 | t cont | |
18794 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18795 | t cont | |
18796 | d | |
18797 | :cont | |
18798 | n | |
18799 | s/.\{148\}/&'"$ac_delim"'/g | |
18800 | t clear | |
18801 | :clear | |
18802 | s/\\$// | |
18803 | t bsnlc | |
18804 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18805 | d | |
18806 | :bsnlc | |
18807 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18808 | b cont | |
18809 | ' <confdefs.h | sed ' | |
18810 | s/'"$ac_delim"'/"\\\ | |
18811 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18812 | ||
18813 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18814 | for (key in D) D_is_set[key] = 1 | |
18815 | FS = "\a" | |
18816 | } | |
18817 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18818 | line = \$ 0 | |
18819 | split(line, arg, " ") | |
18820 | if (arg[1] == "#") { | |
18821 | defundef = arg[2] | |
18822 | mac1 = arg[3] | |
18823 | } else { | |
18824 | defundef = substr(arg[1], 2) | |
18825 | mac1 = arg[2] | |
18826 | } | |
18827 | split(mac1, mac2, "(") #) | |
18828 | macro = mac2[1] | |
18829 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18830 | if (D_is_set[macro]) { | |
18831 | # Preserve the white space surrounding the "#". | |
18832 | print prefix "define", macro P[macro] D[macro] | |
18833 | next | |
18834 | } else { | |
18835 | # Replace #undef with comments. This is necessary, for example, | |
18836 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18837 | # on some systems where configure will not decide to define it. | |
18838 | if (defundef == "undef") { | |
18839 | print "/*", prefix defundef, macro, "*/" | |
18840 | next | |
18841 | } | |
18842 | } | |
18843 | } | |
18844 | { print } | |
18845 | _ACAWK | |
18846 | _ACEOF | |
18847 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18848 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
18849 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
18850 | { (exit 1); exit 1; }; } | |
18851 | fi # test -n "$CONFIG_HEADERS" | |
18852 | ||
7a197a62 | 18853 | |
ec6a6fbe AK |
18854 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
18855 | shift | |
18856 | for ac_tag | |
7a197a62 AK |
18857 | do |
18858 | case $ac_tag in | |
18859 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18860 | esac | |
18861 | case $ac_mode$ac_tag in | |
18862 | :[FHL]*:*);; | |
ec6a6fbe AK |
18863 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
18864 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
18865 | { (exit 1); exit 1; }; };; |
18866 | :[FH]-) ac_tag=-:-;; | |
18867 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18868 | esac | |
18869 | ac_save_IFS=$IFS | |
18870 | IFS=: | |
18871 | set x $ac_tag | |
18872 | IFS=$ac_save_IFS | |
18873 | shift | |
18874 | ac_file=$1 | |
18875 | shift | |
18876 | ||
18877 | case $ac_mode in | |
18878 | :L) ac_source=$1;; | |
18879 | :[FH]) | |
18880 | ac_file_inputs= | |
18881 | for ac_f | |
18882 | do | |
18883 | case $ac_f in | |
18884 | -) ac_f="$tmp/stdin";; | |
18885 | *) # Look for the file first in the build tree, then in the source tree | |
18886 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18887 | # because $ac_f cannot contain `:'. | |
18888 | test -f "$ac_f" || | |
18889 | case $ac_f in | |
18890 | [\\/$]*) false;; | |
18891 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18892 | esac || | |
ec6a6fbe AK |
18893 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
18894 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
18895 | { (exit 1); exit 1; }; };; |
18896 | esac | |
ec6a6fbe AK |
18897 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
18898 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
18899 | done |
18900 | ||
18901 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18902 | # use $as_me), people would be surprised to read: | |
18903 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
18904 | configure_input='Generated from '` |
18905 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18906 | `' by configure.' | |
7a197a62 AK |
18907 | if test x"$ac_file" != x-; then |
18908 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
18909 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
18910 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 18911 | fi |
ec6a6fbe AK |
18912 | # Neutralize special characters interpreted by sed in replacement strings. |
18913 | case $configure_input in #( | |
18914 | *\&* | *\|* | *\\* ) | |
18915 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18916 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18917 | *) ac_sed_conf_input=$configure_input;; | |
18918 | esac | |
7a197a62 AK |
18919 | |
18920 | case $ac_tag in | |
ec6a6fbe AK |
18921 | *:-:* | *:-) cat >"$tmp/stdin" \ |
18922 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18923 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18924 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
18925 | esac |
18926 | ;; | |
80992638 | 18927 | esac |
8106cdd5 | 18928 | |
7a197a62 | 18929 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 18930 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
18931 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18932 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 18933 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18934 | $as_echo X"$ac_file" | |
7a197a62 AK |
18935 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18936 | s//\1/ | |
18937 | q | |
18938 | } | |
18939 | /^X\(\/\/\)[^/].*/{ | |
18940 | s//\1/ | |
18941 | q | |
18942 | } | |
18943 | /^X\(\/\/\)$/{ | |
18944 | s//\1/ | |
18945 | q | |
18946 | } | |
18947 | /^X\(\/\).*/{ | |
18948 | s//\1/ | |
18949 | q | |
18950 | } | |
18951 | s/.*/./; q'` | |
18952 | { as_dir="$ac_dir" | |
18953 | case $as_dir in #( | |
18954 | -*) as_dir=./$as_dir;; | |
18955 | esac | |
18956 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 18957 | as_dirs= |
7a197a62 AK |
18958 | while :; do |
18959 | case $as_dir in #( | |
ec6a6fbe | 18960 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
18961 | *) as_qdir=$as_dir;; |
18962 | esac | |
18963 | as_dirs="'$as_qdir' $as_dirs" | |
18964 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 18965 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
18966 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
18967 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 18968 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18969 | $as_echo X"$as_dir" | |
7a197a62 AK |
18970 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18971 | s//\1/ | |
18972 | q | |
18973 | } | |
18974 | /^X\(\/\/\)[^/].*/{ | |
18975 | s//\1/ | |
18976 | q | |
18977 | } | |
18978 | /^X\(\/\/\)$/{ | |
18979 | s//\1/ | |
18980 | q | |
18981 | } | |
18982 | /^X\(\/\).*/{ | |
18983 | s//\1/ | |
18984 | q | |
18985 | } | |
18986 | s/.*/./; q'` | |
18987 | test -d "$as_dir" && break | |
ad6254c5 | 18988 | done |
7a197a62 | 18989 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
18990 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
18991 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 18992 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
18993 | ac_builddir=. |
18994 | ||
7a197a62 AK |
18995 | case "$ac_dir" in |
18996 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18997 | *) | |
ec6a6fbe | 18998 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 18999 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19000 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19001 | case $ac_top_builddir_sub in |
19002 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19003 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19004 | esac ;; | |
19005 | esac | |
19006 | ac_abs_top_builddir=$ac_pwd | |
19007 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19008 | # for backward compatibility: | |
19009 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19010 | |
19011 | case $srcdir in | |
7a197a62 | 19012 | .) # We are building in place. |
ad6254c5 | 19013 | ac_srcdir=. |
7a197a62 AK |
19014 | ac_top_srcdir=$ac_top_builddir_sub |
19015 | ac_abs_top_srcdir=$ac_pwd ;; | |
19016 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19017 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19018 | ac_top_srcdir=$srcdir |
19019 | ac_abs_top_srcdir=$srcdir ;; | |
19020 | *) # Relative name. | |
19021 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19022 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19023 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19024 | esac |
7a197a62 | 19025 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19026 | |
ad6254c5 | 19027 | |
7a197a62 AK |
19028 | case $ac_mode in |
19029 | :F) | |
19030 | # | |
19031 | # CONFIG_FILE | |
19032 | # | |
ad6254c5 AK |
19033 | |
19034 | case $INSTALL in | |
19035 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19036 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19037 | esac |
fddafd51 ZK |
19038 | ac_MKDIR_P=$MKDIR_P |
19039 | case $MKDIR_P in | |
19040 | [\\/$]* | ?:[\\/]* ) ;; | |
19041 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19042 | esac | |
7a197a62 | 19043 | _ACEOF |
795ca3e5 | 19044 | |
ec6a6fbe | 19045 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19046 | # If the template does not know about datarootdir, expand it. |
19047 | # FIXME: This hack should be removed a few years after 2.60. | |
19048 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19049 | ||
ec6a6fbe AK |
19050 | ac_sed_dataroot=' |
19051 | /datarootdir/ { | |
7a197a62 AK |
19052 | p |
19053 | q | |
19054 | } | |
19055 | /@datadir@/p | |
19056 | /@docdir@/p | |
19057 | /@infodir@/p | |
19058 | /@localedir@/p | |
19059 | /@mandir@/p | |
ec6a6fbe AK |
19060 | ' |
19061 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19062 | *datarootdir*) ac_datarootdir_seen=yes;; |
19063 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19064 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19065 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19066 | _ACEOF |
ec6a6fbe | 19067 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19068 | ac_datarootdir_hack=' |
19069 | s&@datadir@&$datadir&g | |
19070 | s&@docdir@&$docdir&g | |
19071 | s&@infodir@&$infodir&g | |
19072 | s&@localedir@&$localedir&g | |
19073 | s&@mandir@&$mandir&g | |
19074 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19075 | esac | |
19076 | _ACEOF | |
19077 | ||
19078 | # Neutralize VPATH when `$srcdir' = `.'. | |
19079 | # Shell code in configure.ac might set extrasub. | |
19080 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19081 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19082 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19083 | $extrasub |
19084 | _ACEOF | |
ec6a6fbe | 19085 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19086 | :t |
19087 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19088 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19089 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19090 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19091 | s&@srcdir@&$ac_srcdir&;t t |
19092 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19093 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19094 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19095 | s&@builddir@&$ac_builddir&;t t | |
19096 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19097 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19098 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19099 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19100 | $ac_datarootdir_hack |
ec6a6fbe AK |
19101 | " |
19102 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19103 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19104 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19105 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19106 | |
19107 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19108 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19109 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19110 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19111 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19112 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19113 | which seems to be undefined. Please make sure it is defined." >&2;} |
19114 | ||
19115 | rm -f "$tmp/stdin" | |
72b2cb61 | 19116 | case $ac_file in |
ec6a6fbe AK |
19117 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19118 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19119 | esac \ | |
19120 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19121 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19122 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19123 | ;; |
19124 | :H) | |
19125 | # | |
19126 | # CONFIG_HEADER | |
19127 | # | |
72b2cb61 | 19128 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19129 | { |
19130 | $as_echo "/* $configure_input */" \ | |
19131 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19132 | } >"$tmp/config.h" \ | |
19133 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19134 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19135 | { (exit 1); exit 1; }; } | |
19136 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19137 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19138 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19139 | else |
ec6a6fbe AK |
19140 | rm -f "$ac_file" |
19141 | mv "$tmp/config.h" "$ac_file" \ | |
19142 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19143 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19144 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19145 | fi |
19146 | else | |
ec6a6fbe AK |
19147 | $as_echo "/* $configure_input */" \ |
19148 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19149 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19150 | $as_echo "$as_me: error: could not create -" >&2;} | |
19151 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19152 | fi |
7a197a62 AK |
19153 | ;; |
19154 | ||
19155 | ||
19156 | esac | |
19157 | ||
19158 | done # for ac_tag | |
795ca3e5 | 19159 | |
795ca3e5 | 19160 | |
ad6254c5 AK |
19161 | { (exit 0); exit 0; } |
19162 | _ACEOF | |
795ca3e5 | 19163 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19164 | ac_clean_files=$ac_clean_files_save |
19165 | ||
ec6a6fbe AK |
19166 | test $ac_write_fail = 0 || |
19167 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19168 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19169 | { (exit 1); exit 1; }; } | |
19170 | ||
ad6254c5 AK |
19171 | |
19172 | # configure is writing to config.log, and then calls config.status. | |
19173 | # config.status does its own redirection, appending to config.log. | |
19174 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19175 | # by configure, so config.status won't be able to write to it; its | |
19176 | # output is simply discarded. So we exec the FD to /dev/null, | |
19177 | # effectively closing config.log, so it can be properly (re)opened and | |
19178 | # appended to by config.status. When coming back to configure, we | |
19179 | # need to make the FD available again. | |
19180 | if test "$no_create" != yes; then | |
19181 | ac_cs_success=: | |
19182 | ac_config_status_args= | |
19183 | test "$silent" = yes && | |
19184 | ac_config_status_args="$ac_config_status_args --quiet" | |
19185 | exec 5>/dev/null | |
19186 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19187 | exec 5>>config.log | |
19188 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19189 | # would make configure fail if this is the last instruction. | |
19190 | $ac_cs_success || { (exit 1); exit 1; } | |
19191 | fi | |
ec6a6fbe AK |
19192 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19193 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19194 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19195 | fi | |
795ca3e5 | 19196 | |
2dc95e1c AK |
19197 | |
19198 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19199 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19200 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19201 | fi |