]>
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 | |
71082be4 ZK |
739 | PKG_CONFIG_LIBDIR |
740 | PKG_CONFIG_PATH | |
e2997b73 | 741 | PKG_CONFIG |
ec6a6fbe AK |
742 | POW_LIB |
743 | LIBOBJS | |
744 | ALLOCA | |
745 | CSCOPE_CMD | |
746 | CFLOW_CMD | |
747 | RANLIB | |
748 | MKDIR_P | |
749 | SET_MAKE | |
750 | LN_S | |
751 | INSTALL_DATA | |
752 | INSTALL_SCRIPT | |
753 | INSTALL_PROGRAM | |
754 | EGREP | |
755 | GREP | |
756 | CPP | |
757 | OBJEXT | |
758 | EXEEXT | |
759 | ac_ct_CC | |
760 | CPPFLAGS | |
761 | LDFLAGS | |
762 | CFLAGS | |
763 | CC | |
764 | AWK | |
765 | SED | |
766 | target_os | |
767 | target_vendor | |
768 | target_cpu | |
769 | target | |
770 | host_os | |
771 | host_vendor | |
772 | host_cpu | |
773 | host | |
774 | build_os | |
775 | build_vendor | |
776 | build_cpu | |
777 | build | |
778 | target_alias | |
779 | host_alias | |
780 | build_alias | |
781 | LIBS | |
782 | ECHO_T | |
783 | ECHO_N | |
784 | ECHO_C | |
785 | DEFS | |
786 | mandir | |
787 | localedir | |
788 | libdir | |
789 | psdir | |
790 | pdfdir | |
791 | dvidir | |
792 | htmldir | |
793 | infodir | |
794 | docdir | |
795 | oldincludedir | |
796 | includedir | |
797 | localstatedir | |
798 | sharedstatedir | |
799 | sysconfdir | |
800 | datadir | |
801 | datarootdir | |
802 | libexecdir | |
803 | sbindir | |
804 | bindir | |
805 | program_transform_name | |
806 | prefix | |
807 | exec_prefix | |
808 | PACKAGE_BUGREPORT | |
809 | PACKAGE_STRING | |
810 | PACKAGE_VERSION | |
811 | PACKAGE_TARNAME | |
812 | PACKAGE_NAME | |
813 | PATH_SEPARATOR | |
814 | SHELL' | |
ad6254c5 | 815 | ac_subst_files='' |
ec6a6fbe AK |
816 | ac_user_opts=' |
817 | enable_option_checking | |
818 | enable_static_link | |
819 | with_user | |
820 | with_group | |
821 | with_device_uid | |
822 | with_device_gid | |
823 | with_device_mode | |
824 | enable_lvm1_fallback | |
825 | with_lvm1 | |
826 | with_pool | |
827 | with_cluster | |
828 | with_snapshots | |
829 | with_mirrors | |
8fea97b7 | 830 | with_replicators |
ec6a6fbe AK |
831 | enable_readline |
832 | enable_realtime | |
833 | with_clvmd | |
66fd4529 AK |
834 | enable_cmirrord |
835 | with_cmirrord_pidfile | |
ec6a6fbe AK |
836 | enable_debug |
837 | with_optimisation | |
838 | enable_profiling | |
839 | enable_devmapper | |
a5f46f6a AK |
840 | enable_udev_sync |
841 | enable_udev_rules | |
ec6a6fbe | 842 | enable_compat |
95eaa683 | 843 | enable_units_compat |
ec6a6fbe AK |
844 | enable_ioctl |
845 | enable_o_direct | |
572fefeb | 846 | enable_applib |
ec6a6fbe AK |
847 | enable_cmdlib |
848 | enable_pkgconfig | |
23b059e7 | 849 | enable_write_install |
ec6a6fbe AK |
850 | enable_fsadm |
851 | enable_dmeventd | |
852 | enable_selinux | |
853 | enable_nls | |
854 | with_localedir | |
855 | with_confdir | |
856 | with_staticdir | |
857 | with_usrlibdir | |
858 | with_usrsbindir | |
a5f46f6a | 859 | with_udev_prefix |
78ce7acc | 860 | with_udevdir |
ec6a6fbe AK |
861 | with_dmeventd_pidfile |
862 | with_dmeventd_path | |
3399ae32 AK |
863 | with_default_system_dir |
864 | with_default_archive_subdir | |
865 | with_default_backup_subdir | |
866 | with_default_cache_subdir | |
867 | with_default_locking_dir | |
ec6a6fbe AK |
868 | with_interface |
869 | ' | |
7a197a62 AK |
870 | ac_precious_vars='build_alias |
871 | host_alias | |
872 | target_alias | |
873 | CC | |
874 | CFLAGS | |
875 | LDFLAGS | |
25fbec5b | 876 | LIBS |
7a197a62 | 877 | CPPFLAGS |
e2997b73 AK |
878 | CPP |
879 | PKG_CONFIG | |
71082be4 ZK |
880 | PKG_CONFIG_PATH |
881 | PKG_CONFIG_LIBDIR | |
a946372e AK |
882 | PKGCONFIGINIT_CFLAGS |
883 | PKGCONFIGINIT_LIBS | |
884 | CCS_CFLAGS | |
885 | CCS_LIBS | |
886 | GULM_CFLAGS | |
887 | GULM_LIBS | |
888 | CMAN_CFLAGS | |
889 | CMAN_LIBS | |
890 | COROSYNC_CFLAGS | |
891 | COROSYNC_LIBS | |
e2997b73 AK |
892 | QUORUM_CFLAGS |
893 | QUORUM_LIBS | |
a946372e AK |
894 | SALCK_CFLAGS |
895 | SALCK_LIBS | |
e2997b73 AK |
896 | CONFDB_CFLAGS |
897 | CONFDB_LIBS | |
898 | CPG_CFLAGS | |
a946372e AK |
899 | CPG_LIBS |
900 | DLM_CFLAGS | |
90c80887 AK |
901 | DLM_LIBS |
902 | SACKPT_CFLAGS | |
903 | SACKPT_LIBS' | |
7a197a62 | 904 | |
795ca3e5 AK |
905 | |
906 | # Initialize some variables set by options. | |
ad6254c5 AK |
907 | ac_init_help= |
908 | ac_init_version=false | |
ec6a6fbe AK |
909 | ac_unrecognized_opts= |
910 | ac_unrecognized_sep= | |
795ca3e5 AK |
911 | # The variables have the same names as the options, with |
912 | # dashes changed to underlines. | |
ad6254c5 | 913 | cache_file=/dev/null |
795ca3e5 | 914 | exec_prefix=NONE |
795ca3e5 | 915 | no_create= |
795ca3e5 AK |
916 | no_recursion= |
917 | prefix=NONE | |
918 | program_prefix=NONE | |
919 | program_suffix=NONE | |
920 | program_transform_name=s,x,x, | |
921 | silent= | |
922 | site= | |
923 | srcdir= | |
795ca3e5 AK |
924 | verbose= |
925 | x_includes=NONE | |
926 | x_libraries=NONE | |
ad6254c5 AK |
927 | |
928 | # Installation directory options. | |
929 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
930 | # and all the variables that are supposed to be based on exec_prefix | |
931 | # by default will actually change. | |
932 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 933 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
934 | bindir='${exec_prefix}/bin' |
935 | sbindir='${exec_prefix}/sbin' | |
936 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
937 | datarootdir='${prefix}/share' |
938 | datadir='${datarootdir}' | |
795ca3e5 AK |
939 | sysconfdir='${prefix}/etc' |
940 | sharedstatedir='${prefix}/com' | |
941 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
942 | includedir='${prefix}/include' |
943 | oldincludedir='/usr/include' | |
7a197a62 AK |
944 | docdir='${datarootdir}/doc/${PACKAGE}' |
945 | infodir='${datarootdir}/info' | |
946 | htmldir='${docdir}' | |
947 | dvidir='${docdir}' | |
948 | pdfdir='${docdir}' | |
949 | psdir='${docdir}' | |
950 | libdir='${exec_prefix}/lib' | |
951 | localedir='${datarootdir}/locale' | |
952 | mandir='${datarootdir}/man' | |
795ca3e5 | 953 | |
795ca3e5 | 954 | ac_prev= |
7a197a62 | 955 | ac_dashdash= |
795ca3e5 AK |
956 | for ac_option |
957 | do | |
795ca3e5 AK |
958 | # If the previous option needs an argument, assign it. |
959 | if test -n "$ac_prev"; then | |
7a197a62 | 960 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
961 | ac_prev= |
962 | continue | |
963 | fi | |
964 | ||
7a197a62 AK |
965 | case $ac_option in |
966 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
967 | *) ac_optarg=yes ;; | |
968 | esac | |
795ca3e5 AK |
969 | |
970 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
971 | ||
7a197a62 AK |
972 | case $ac_dashdash$ac_option in |
973 | --) | |
974 | ac_dashdash=yes ;; | |
795ca3e5 AK |
975 | |
976 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
977 | ac_prev=bindir ;; | |
978 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 979 | bindir=$ac_optarg ;; |
795ca3e5 AK |
980 | |
981 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 982 | ac_prev=build_alias ;; |
795ca3e5 | 983 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 984 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
985 | |
986 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
987 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
988 | ac_prev=cache_file ;; | |
989 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
990 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
991 | cache_file=$ac_optarg ;; |
992 | ||
993 | --config-cache | -C) | |
994 | cache_file=config.cache ;; | |
795ca3e5 | 995 | |
7a197a62 | 996 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 997 | ac_prev=datadir ;; |
7a197a62 | 998 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 999 | datadir=$ac_optarg ;; |
795ca3e5 | 1000 | |
7a197a62 AK |
1001 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1002 | | --dataroo | --dataro | --datar) | |
1003 | ac_prev=datarootdir ;; | |
1004 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1005 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1006 | datarootdir=$ac_optarg ;; | |
1007 | ||
795ca3e5 | 1008 | -disable-* | --disable-*) |
ec6a6fbe | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1010 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1012 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1013 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1014 | ac_useropt_orig=$ac_useropt |
1015 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1016 | case $ac_user_opts in | |
1017 | *" | |
1018 | "enable_$ac_useropt" | |
1019 | "*) ;; | |
1020 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1021 | ac_unrecognized_sep=', ';; | |
1022 | esac | |
1023 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1024 | |
1025 | -docdir | --docdir | --docdi | --doc | --do) | |
1026 | ac_prev=docdir ;; | |
1027 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1028 | docdir=$ac_optarg ;; | |
1029 | ||
1030 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1031 | ac_prev=dvidir ;; | |
1032 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1033 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1034 | |
1035 | -enable-* | --enable-*) | |
ec6a6fbe | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1037 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1039 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1040 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1041 | ac_useropt_orig=$ac_useropt |
1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1043 | case $ac_user_opts in | |
1044 | *" | |
1045 | "enable_$ac_useropt" | |
1046 | "*) ;; | |
1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1048 | ac_unrecognized_sep=', ';; | |
1049 | esac | |
1050 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1051 | |
1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1054 | | --exec | --exe | --ex) | |
1055 | ac_prev=exec_prefix ;; | |
1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1058 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1059 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1060 | |
1061 | -gas | --gas | --ga | --g) | |
1062 | # Obsolete; use --with-gas. | |
1063 | with_gas=yes ;; | |
1064 | ||
ad6254c5 AK |
1065 | -help | --help | --hel | --he | -h) |
1066 | ac_init_help=long ;; | |
1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1068 | ac_init_help=recursive ;; | |
1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1070 | ac_init_help=short ;; | |
795ca3e5 AK |
1071 | |
1072 | -host | --host | --hos | --ho) | |
ad6254c5 | 1073 | ac_prev=host_alias ;; |
795ca3e5 | 1074 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1075 | host_alias=$ac_optarg ;; |
795ca3e5 | 1076 | |
7a197a62 AK |
1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1078 | ac_prev=htmldir ;; | |
1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1080 | | --ht=*) | |
1081 | htmldir=$ac_optarg ;; | |
1082 | ||
795ca3e5 AK |
1083 | -includedir | --includedir | --includedi | --included | --include \ |
1084 | | --includ | --inclu | --incl | --inc) | |
1085 | ac_prev=includedir ;; | |
1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1088 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1089 | |
1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1091 | ac_prev=infodir ;; | |
1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1093 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1094 | |
1095 | -libdir | --libdir | --libdi | --libd) | |
1096 | ac_prev=libdir ;; | |
1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1098 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1099 | |
1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1101 | | --libexe | --libex | --libe) | |
1102 | ac_prev=libexecdir ;; | |
1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1104 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1105 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1106 | |
7a197a62 AK |
1107 | -localedir | --localedir | --localedi | --localed | --locale) |
1108 | ac_prev=localedir ;; | |
1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1110 | localedir=$ac_optarg ;; | |
1111 | ||
795ca3e5 | 1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1113 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1114 | ac_prev=localstatedir ;; |
1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1117 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1118 | |
1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1120 | ac_prev=mandir ;; | |
1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1122 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1123 | |
1124 | -nfp | --nfp | --nf) | |
1125 | # Obsolete; use --without-fp. | |
1126 | with_fp=no ;; | |
1127 | ||
1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1129 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1130 | no_create=yes ;; |
1131 | ||
1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1134 | no_recursion=yes ;; | |
1135 | ||
1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1138 | | --oldin | --oldi | --old | --ol | --o) | |
1139 | ac_prev=oldincludedir ;; | |
1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1143 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1144 | |
1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1146 | ac_prev=prefix ;; | |
1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1148 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1149 | |
1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1151 | | --program-pre | --program-pr | --program-p) | |
1152 | ac_prev=program_prefix ;; | |
1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1155 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1156 | |
1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1158 | | --program-suf | --program-su | --program-s) | |
1159 | ac_prev=program_suffix ;; | |
1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1162 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1163 | |
1164 | -program-transform-name | --program-transform-name \ | |
1165 | | --program-transform-nam | --program-transform-na \ | |
1166 | | --program-transform-n | --program-transform- \ | |
1167 | | --program-transform | --program-transfor \ | |
1168 | | --program-transfo | --program-transf \ | |
1169 | | --program-trans | --program-tran \ | |
1170 | | --progr-tra | --program-tr | --program-t) | |
1171 | ac_prev=program_transform_name ;; | |
1172 | -program-transform-name=* | --program-transform-name=* \ | |
1173 | | --program-transform-nam=* | --program-transform-na=* \ | |
1174 | | --program-transform-n=* | --program-transform-=* \ | |
1175 | | --program-transform=* | --program-transfor=* \ | |
1176 | | --program-transfo=* | --program-transf=* \ | |
1177 | | --program-trans=* | --program-tran=* \ | |
1178 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1179 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1180 | |
7a197a62 AK |
1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1182 | ac_prev=pdfdir ;; | |
1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1184 | pdfdir=$ac_optarg ;; | |
1185 | ||
1186 | -psdir | --psdir | --psdi | --psd | --ps) | |
1187 | ac_prev=psdir ;; | |
1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1189 | psdir=$ac_optarg ;; | |
1190 | ||
795ca3e5 AK |
1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1192 | | -silent | --silent | --silen | --sile | --sil) | |
1193 | silent=yes ;; | |
1194 | ||
1195 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1196 | ac_prev=sbindir ;; | |
1197 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1198 | | --sbi=* | --sb=*) | |
ad6254c5 | 1199 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1202 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1203 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1204 | | --sha | --sh) | |
1205 | ac_prev=sharedstatedir ;; | |
1206 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1207 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1208 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1209 | | --sha=* | --sh=*) | |
ad6254c5 | 1210 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1211 | |
1212 | -site | --site | --sit) | |
1213 | ac_prev=site ;; | |
1214 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1215 | site=$ac_optarg ;; |
795ca3e5 AK |
1216 | |
1217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1218 | ac_prev=srcdir ;; | |
1219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1220 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1221 | |
1222 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1223 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1224 | ac_prev=sysconfdir ;; | |
1225 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1226 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1227 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1228 | |
1229 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1230 | ac_prev=target_alias ;; |
795ca3e5 | 1231 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1232 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1233 | |
1234 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1235 | verbose=yes ;; | |
1236 | ||
ad6254c5 AK |
1237 | -version | --version | --versio | --versi | --vers | -V) |
1238 | ac_init_version=: ;; | |
795ca3e5 AK |
1239 | |
1240 | -with-* | --with-*) | |
ec6a6fbe | 1241 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1242 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1243 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1244 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1245 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1246 | ac_useropt_orig=$ac_useropt |
1247 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1248 | case $ac_user_opts in | |
1249 | *" | |
1250 | "with_$ac_useropt" | |
1251 | "*) ;; | |
1252 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1253 | ac_unrecognized_sep=', ';; | |
1254 | esac | |
1255 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1256 | |
1257 | -without-* | --without-*) | |
ec6a6fbe | 1258 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1259 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1260 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1261 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1262 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1263 | ac_useropt_orig=$ac_useropt |
1264 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1265 | case $ac_user_opts in | |
1266 | *" | |
1267 | "with_$ac_useropt" | |
1268 | "*) ;; | |
1269 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1270 | ac_unrecognized_sep=', ';; | |
1271 | esac | |
1272 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1273 | |
1274 | --x) | |
1275 | # Obsolete; use --with-x. | |
1276 | with_x=yes ;; | |
1277 | ||
1278 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1279 | | --x-incl | --x-inc | --x-in | --x-i) | |
1280 | ac_prev=x_includes ;; | |
1281 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1282 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1283 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1284 | |
1285 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1286 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1287 | ac_prev=x_libraries ;; | |
1288 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1289 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1290 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1291 | |
ec6a6fbe | 1292 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1293 | Try \`$0 --help' for more information." >&2 |
1294 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1295 | ;; |
1296 | ||
ad6254c5 AK |
1297 | *=*) |
1298 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1299 | # Reject names that are not valid shell variable names. | |
1300 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1301 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1302 | { (exit 1); exit 1; }; } |
7a197a62 | 1303 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1304 | export $ac_envvar ;; |
1305 | ||
795ca3e5 | 1306 | *) |
ad6254c5 | 1307 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1308 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1309 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1310 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1311 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1312 | ;; |
1313 | ||
1314 | esac | |
1315 | done | |
1316 | ||
1317 | if test -n "$ac_prev"; then | |
ad6254c5 | 1318 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1319 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1320 | { (exit 1); exit 1; }; } |
795ca3e5 | 1321 | fi |
795ca3e5 | 1322 | |
ec6a6fbe AK |
1323 | if test -n "$ac_unrecognized_opts"; then |
1324 | case $enable_option_checking in | |
1325 | no) ;; | |
1326 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1327 | { (exit 1); exit 1; }; } ;; | |
1328 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1329 | esac | |
1330 | fi | |
1331 | ||
1332 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1333 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1334 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1335 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1336 | libdir localedir mandir | |
795ca3e5 | 1337 | do |
7a197a62 | 1338 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1339 | # Remove trailing slashes. |
1340 | case $ac_val in | |
1341 | */ ) | |
1342 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1343 | eval $ac_var=\$ac_val;; | |
1344 | esac | |
1345 | # Be sure to have absolute directory names. | |
ad6254c5 | 1346 | case $ac_val in |
7a197a62 AK |
1347 | [\\/$]* | ?:[\\/]* ) continue;; |
1348 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1349 | esac |
ec6a6fbe | 1350 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1351 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1352 | done |
1353 | ||
ad6254c5 AK |
1354 | # There might be people who depend on the old broken behavior: `$host' |
1355 | # used to hold the argument of --host etc. | |
1356 | # FIXME: To remove some day. | |
1357 | build=$build_alias | |
1358 | host=$host_alias | |
1359 | target=$target_alias | |
1360 | ||
1361 | # FIXME: To remove some day. | |
1362 | if test "x$host_alias" != x; then | |
1363 | if test "x$build_alias" = x; then | |
1364 | cross_compiling=maybe | |
ec6a6fbe | 1365 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1366 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1367 | elif test "x$build_alias" != "x$host_alias"; then | |
1368 | cross_compiling=yes | |
1369 | fi | |
1370 | fi | |
8106cdd5 | 1371 | |
ad6254c5 AK |
1372 | ac_tool_prefix= |
1373 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1374 | ||
1375 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1376 | |
795ca3e5 | 1377 | |
7a197a62 AK |
1378 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1379 | ac_ls_di=`ls -di .` && | |
1380 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1381 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1382 | { (exit 1); exit 1; }; } |
1383 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1384 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1385 | { (exit 1); exit 1; }; } |
1386 | ||
1387 | ||
795ca3e5 AK |
1388 | # Find the source files, if location was not specified. |
1389 | if test -z "$srcdir"; then | |
1390 | ac_srcdir_defaulted=yes | |
7a197a62 | 1391 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1392 | ac_confdir=`$as_dirname -- "$as_myself" || |
1393 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1394 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1395 | X"$as_myself" : 'X\(//\)$' \| \ | |
1396 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1397 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\/\)[^/].*/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | /^X\(\/\/\)$/{ | |
1407 | s//\1/ | |
1408 | q | |
1409 | } | |
1410 | /^X\(\/\).*/{ | |
1411 | s//\1/ | |
1412 | q | |
1413 | } | |
1414 | s/.*/./; q'` | |
795ca3e5 | 1415 | srcdir=$ac_confdir |
7a197a62 | 1416 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1417 | srcdir=.. |
1418 | fi | |
1419 | else | |
1420 | ac_srcdir_defaulted=no | |
1421 | fi | |
7a197a62 AK |
1422 | if test ! -r "$srcdir/$ac_unique_file"; then |
1423 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1424 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1425 | { (exit 1); exit 1; }; } |
795ca3e5 | 1426 | fi |
7a197a62 AK |
1427 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1428 | ac_abs_confdir=`( | |
ec6a6fbe | 1429 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1430 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1431 | pwd)` |
1432 | # When building in place, set srcdir=. | |
1433 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1434 | srcdir=. | |
1435 | fi | |
1436 | # Remove unnecessary trailing slashes from srcdir. | |
1437 | # Double slashes in file names in object file debugging info | |
1438 | # mess up M-x gdb in Emacs. | |
1439 | case $srcdir in | |
1440 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1441 | esac | |
1442 | for ac_var in $ac_precious_vars; do | |
1443 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1444 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1445 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1446 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1447 | done | |
ad6254c5 AK |
1448 | |
1449 | # | |
1450 | # Report the --help message. | |
1451 | # | |
1452 | if test "$ac_init_help" = "long"; then | |
1453 | # Omit some internal or obsolete options to make the list less imposing. | |
1454 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1455 | cat <<_ACEOF | |
1456 | \`configure' configures this package to adapt to many kinds of systems. | |
1457 | ||
1458 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1459 | ||
1460 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1461 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1462 | ||
1463 | Defaults for the options are specified in brackets. | |
1464 | ||
1465 | Configuration: | |
1466 | -h, --help display this help and exit | |
1467 | --help=short display options specific to this package | |
1468 | --help=recursive display the short help of all the included packages | |
1469 | -V, --version display version information and exit | |
1470 | -q, --quiet, --silent do not print \`checking...' messages | |
1471 | --cache-file=FILE cache test results in FILE [disabled] | |
1472 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1473 | -n, --no-create do not create output files | |
1474 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1475 | ||
ad6254c5 AK |
1476 | Installation directories: |
1477 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1478 | [$ac_default_prefix] |
ad6254c5 | 1479 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1480 | [PREFIX] |
ad6254c5 AK |
1481 | |
1482 | By default, \`make install' will install all the files in | |
1483 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1484 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1485 | for instance \`--prefix=\$HOME'. | |
1486 | ||
1487 | For better control, use the options below. | |
1488 | ||
1489 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1490 | --bindir=DIR user executables [EPREFIX/bin] |
1491 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1492 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1493 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1494 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1495 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1496 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1497 | --includedir=DIR C header files [PREFIX/include] | |
1498 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1499 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1500 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1501 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1502 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1503 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1504 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1505 | --htmldir=DIR html documentation [DOCDIR] | |
1506 | --dvidir=DIR dvi documentation [DOCDIR] | |
1507 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1508 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1509 | _ACEOF |
1510 | ||
1511 | cat <<\_ACEOF | |
1512 | ||
1513 | System types: | |
1514 | --build=BUILD configure for building on BUILD [guessed] | |
1515 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1516 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1517 | _ACEOF | |
1518 | fi | |
1519 | ||
1520 | if test -n "$ac_init_help"; then | |
1521 | ||
1522 | cat <<\_ACEOF | |
1523 | ||
1524 | Optional Features: | |
ec6a6fbe | 1525 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1526 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1527 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1528 | --enable-static_link use this to link the tools to their libraries |
1529 | statically (default is dynamic linking | |
1530 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1531 | device-mapper is missing from the kernel |
71082be4 ZK |
1532 | --disable-readline disable readline support |
1533 | --enable-realtime enable realtime clock support | |
1534 | --enable-cmirrord enable the cluster mirror log daemon | |
1535 | --enable-debug enable debugging | |
1536 | --enable-profiling gather gcov profiling data | |
1537 | --disable-devmapper disable LVM2 device-mapper interaction | |
1538 | --enable-udev_sync enable synchronisation with udev processing | |
1539 | --enable-udev_rules install rule files needed for udev synchronisation | |
1540 | --enable-compat enable support for old device-mapper versions | |
1541 | --enable-units-compat enable output compatibility with old versions that | |
1542 | that do not use KiB-style unit suffixes | |
1543 | --disable-driver disable calls to device-mapper in the kernel | |
1544 | --disable-o_direct disable O_DIRECT | |
1545 | --enable-applib build application library | |
1546 | --enable-cmdlib build shared command library | |
1547 | --enable-pkgconfig install pkgconfig support | |
1548 | --enable-write_install install user writable files | |
1549 | --disable-fsadm disable fsadm | |
1550 | --enable-dmeventd enable the device-mapper event daemon | |
1551 | --disable-selinux disable selinux support | |
1552 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1553 | |
1554 | Optional Packages: | |
1555 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1556 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
71082be4 ZK |
1557 | --with-user=USER set the owner of installed files [USER=] |
1558 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1559 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1560 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1561 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
ad6254c5 | 1562 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
71082be4 | 1563 | [TYPE=internal] |
ad6254c5 | 1564 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
71082be4 ZK |
1565 | [TYPE=internal] |
1566 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none | |
1567 | [TYPE=internal] | |
1568 | --with-snapshots=TYPE snapshot support: internal/shared/none | |
1569 | [TYPE=internal] | |
1570 | --with-mirrors=TYPE mirror support: internal/shared/none | |
1571 | [TYPE=internal] | |
1572 | --with-replicators=TYPE replicator support: internal/shared/none | |
1573 | [TYPE=none] | |
1574 | --with-clvmd=TYPE build cluster LVM Daemon | |
8c222979 | 1575 | The following cluster manager combinations are valid: |
a946372e AK |
1576 | * cman,gulm (RHEL4 or equivalent) |
1577 | * cman (RHEL5 or equivalent) | |
1578 | * cman,corosync,openais (or selection of them) | |
1091650a | 1579 | * singlenode (localhost only) |
a946372e AK |
1580 | * all (autodetect) |
1581 | * none (disable build) | |
71082be4 ZK |
1582 | [TYPE=none] |
1583 | --with-cmirrord-pidfile=PATH | |
1584 | cmirrord pidfile [/var/run/cmirrord.pid] | |
d0191583 | 1585 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
71082be4 ZK |
1586 | --with-localedir=DIR translation files in DIR [PREFIX/share/locale] |
1587 | --with-confdir=DIR configuration files in DIR [/etc] | |
1588 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1589 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1590 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1591 | --with-udev-prefix=UPREFIX | |
1592 | install udev rule files in UPREFIX [EPREFIX] | |
78ce7acc | 1593 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
71082be4 ZK |
1594 | --with-dmeventd-pidfile=PATH |
1595 | dmeventd pidfile [/var/run/dmeventd.pid] | |
1596 | --with-dmeventd-path=PATH | |
1597 | dmeventd path [EPREFIX/sbin/dmeventd] | |
1598 | --with-default-system-dir=DIR | |
1599 | default LVM system directory [/etc/lvm] | |
1600 | --with-default-archive-subdir=SUBDIR | |
1601 | default metadata archive subdir [archive] | |
1602 | --with-default-backup-subdir=SUBDIR | |
1603 | default metadata backup subdir [backup] | |
1604 | --with-default-cache-subdir=SUBDIR | |
1605 | default metadata cache subdir [cache] | |
1606 | --with-default-locking-dir=DIR | |
1607 | default locking directory [/var/lock/lvm] | |
1608 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1609 | |
1610 | Some influential environment variables: | |
1611 | CC C compiler command | |
1612 | CFLAGS C compiler flags | |
1613 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1614 | nonstandard directory <lib dir> | |
25fbec5b | 1615 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1616 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1617 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1618 | CPP C preprocessor |
e2997b73 | 1619 | PKG_CONFIG path to pkg-config utility |
71082be4 ZK |
1620 | PKG_CONFIG_PATH |
1621 | directories to add to pkg-config's search path | |
1622 | PKG_CONFIG_LIBDIR | |
1623 | path overriding pkg-config's built-in search path | |
a946372e AK |
1624 | PKGCONFIGINIT_CFLAGS |
1625 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1626 | PKGCONFIGINIT_LIBS | |
1627 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1628 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1629 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1630 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1631 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1632 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1633 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1634 | COROSYNC_CFLAGS | |
1635 | C compiler flags for COROSYNC, overriding pkg-config | |
1636 | COROSYNC_LIBS | |
1637 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1638 | QUORUM_CFLAGS |
1639 | C compiler flags for QUORUM, overriding pkg-config | |
1640 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1641 | SALCK_CFLAGS |
1642 | C compiler flags for SALCK, overriding pkg-config | |
1643 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1644 | CONFDB_CFLAGS |
1645 | C compiler flags for CONFDB, overriding pkg-config | |
1646 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1647 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1648 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1649 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1650 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1651 | SACKPT_CFLAGS |
1652 | C compiler flags for SACKPT, overriding pkg-config | |
1653 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1654 | |
1655 | Use these variables to override the choices made by `configure' or to help | |
1656 | it to find libraries and programs with nonstandard names/locations. | |
1657 | ||
1658 | _ACEOF | |
7a197a62 | 1659 | ac_status=$? |
ad6254c5 AK |
1660 | fi |
1661 | ||
1662 | if test "$ac_init_help" = "recursive"; then | |
1663 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1664 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1665 | test -d "$ac_dir" || |
1666 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1667 | continue | |
ad6254c5 AK |
1668 | ac_builddir=. |
1669 | ||
7a197a62 AK |
1670 | case "$ac_dir" in |
1671 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1672 | *) | |
ec6a6fbe | 1673 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1674 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1675 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1676 | case $ac_top_builddir_sub in |
1677 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1678 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1679 | esac ;; | |
1680 | esac | |
1681 | ac_abs_top_builddir=$ac_pwd | |
1682 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1683 | # for backward compatibility: | |
1684 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1685 | |
1686 | case $srcdir in | |
7a197a62 | 1687 | .) # We are building in place. |
ad6254c5 | 1688 | ac_srcdir=. |
7a197a62 AK |
1689 | ac_top_srcdir=$ac_top_builddir_sub |
1690 | ac_abs_top_srcdir=$ac_pwd ;; | |
1691 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1692 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1693 | ac_top_srcdir=$srcdir |
1694 | ac_abs_top_srcdir=$srcdir ;; | |
1695 | *) # Relative name. | |
1696 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1697 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1698 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1699 | esac |
7a197a62 AK |
1700 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1701 | ||
1702 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1703 | # Check for guested configure. | |
1704 | if test -f "$ac_srcdir/configure.gnu"; then | |
1705 | echo && | |
1706 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1707 | elif test -f "$ac_srcdir/configure"; then | |
1708 | echo && | |
1709 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1710 | else |
ec6a6fbe | 1711 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1712 | fi || ac_status=$? |
1713 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1714 | done |
1715 | fi | |
1716 | ||
7a197a62 | 1717 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1718 | if $ac_init_version; then |
1719 | cat <<\_ACEOF | |
7a197a62 | 1720 | configure |
ec6a6fbe | 1721 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1722 | |
7a197a62 | 1723 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1724 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1725 | This configure script is free software; the Free Software Foundation |
1726 | gives unlimited permission to copy, distribute and modify it. | |
1727 | _ACEOF | |
7a197a62 | 1728 | exit |
ad6254c5 | 1729 | fi |
7a197a62 | 1730 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1731 | This file contains any messages produced by compilers while |
1732 | running configure, to aid debugging if configure makes a mistake. | |
1733 | ||
1734 | It was created by $as_me, which was | |
ec6a6fbe | 1735 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1736 | |
1737 | $ $0 $@ | |
1738 | ||
1739 | _ACEOF | |
7a197a62 | 1740 | exec 5>>config.log |
ad6254c5 AK |
1741 | { |
1742 | cat <<_ASUNAME | |
1743 | ## --------- ## | |
1744 | ## Platform. ## | |
1745 | ## --------- ## | |
1746 | ||
1747 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1748 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1749 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1750 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1751 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1752 | ||
1753 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1754 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1755 | ||
1756 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1757 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1758 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1759 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1760 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1761 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1762 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1763 | ||
1764 | _ASUNAME | |
1765 | ||
1766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1767 | for as_dir in $PATH | |
1768 | do | |
1769 | IFS=$as_save_IFS | |
1770 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1771 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1772 | done |
7a197a62 | 1773 | IFS=$as_save_IFS |
ad6254c5 AK |
1774 | |
1775 | } >&5 | |
1776 | ||
1777 | cat >&5 <<_ACEOF | |
1778 | ||
1779 | ||
1780 | ## ----------- ## | |
1781 | ## Core tests. ## | |
1782 | ## ----------- ## | |
1783 | ||
1784 | _ACEOF | |
1785 | ||
1786 | ||
1787 | # Keep a trace of the command line. | |
1788 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1789 | # Strip out --silent because we don't want to record it for future runs. | |
1790 | # Also quote any args containing shell meta-characters. | |
1791 | # Make two passes to allow for proper duplicate-argument suppression. | |
1792 | ac_configure_args= | |
1793 | ac_configure_args0= | |
1794 | ac_configure_args1= | |
ad6254c5 AK |
1795 | ac_must_keep_next=false |
1796 | for ac_pass in 1 2 | |
1797 | do | |
1798 | for ac_arg | |
1799 | do | |
1800 | case $ac_arg in | |
1801 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1802 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1803 | | -silent | --silent | --silen | --sile | --sil) | |
1804 | continue ;; | |
7a197a62 | 1805 | *\'*) |
ec6a6fbe | 1806 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1807 | esac |
1808 | case $ac_pass in | |
1809 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1810 | 2) | |
1811 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1812 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1813 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1814 | else |
8a2fc586 AK |
1815 | case $ac_arg in |
1816 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1817 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1818 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1819 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1820 | case "$ac_configure_args0 " in | |
1821 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1822 | esac | |
1823 | ;; | |
1824 | -* ) ac_must_keep_next=true ;; | |
1825 | esac | |
ad6254c5 | 1826 | fi |
7a197a62 | 1827 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1828 | ;; |
1829 | esac | |
1830 | done | |
1831 | done | |
1832 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1833 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1834 | ||
1835 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1836 | # config.log. We remove comments because anyway the quotes in there | |
1837 | # would cause problems or look ugly. | |
7a197a62 AK |
1838 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1839 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1840 | trap 'exit_status=$? |
1841 | # Save into config.log some information that might help in debugging. | |
1842 | { | |
1843 | echo | |
1844 | ||
1845 | cat <<\_ASBOX | |
1846 | ## ---------------- ## | |
1847 | ## Cache variables. ## | |
1848 | ## ---------------- ## | |
1849 | _ASBOX | |
1850 | echo | |
1851 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1852 | ( |
1853 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1854 | eval ac_val=\$$ac_var | |
1855 | case $ac_val in #( | |
1856 | *${as_nl}*) | |
1857 | case $ac_var in #( | |
ec6a6fbe AK |
1858 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1859 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1860 | esac |
1861 | case $ac_var in #( | |
1862 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1863 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1864 | *) $as_unset $ac_var ;; |
1865 | esac ;; | |
1866 | esac | |
1867 | done | |
ad6254c5 | 1868 | (set) 2>&1 | |
7a197a62 AK |
1869 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1870 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1871 | sed -n \ |
7a197a62 AK |
1872 | "s/'\''/'\''\\\\'\'''\''/g; |
1873 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1874 | ;; #( | |
ad6254c5 | 1875 | *) |
7a197a62 | 1876 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1877 | ;; |
7a197a62 AK |
1878 | esac | |
1879 | sort | |
1880 | ) | |
ad6254c5 AK |
1881 | echo |
1882 | ||
1883 | cat <<\_ASBOX | |
1884 | ## ----------------- ## | |
1885 | ## Output variables. ## | |
1886 | ## ----------------- ## | |
1887 | _ASBOX | |
1888 | echo | |
1889 | for ac_var in $ac_subst_vars | |
1890 | do | |
7a197a62 AK |
1891 | eval ac_val=\$$ac_var |
1892 | case $ac_val in | |
ec6a6fbe | 1893 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1894 | esac |
ec6a6fbe | 1895 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1896 | done | sort |
1897 | echo | |
1898 | ||
1899 | if test -n "$ac_subst_files"; then | |
1900 | cat <<\_ASBOX | |
7a197a62 AK |
1901 | ## ------------------- ## |
1902 | ## File substitutions. ## | |
1903 | ## ------------------- ## | |
ad6254c5 AK |
1904 | _ASBOX |
1905 | echo | |
1906 | for ac_var in $ac_subst_files | |
1907 | do | |
7a197a62 AK |
1908 | eval ac_val=\$$ac_var |
1909 | case $ac_val in | |
ec6a6fbe | 1910 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1911 | esac |
ec6a6fbe | 1912 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1913 | done | sort |
1914 | echo | |
1915 | fi | |
1916 | ||
1917 | if test -s confdefs.h; then | |
1918 | cat <<\_ASBOX | |
1919 | ## ----------- ## | |
1920 | ## confdefs.h. ## | |
1921 | ## ----------- ## | |
1922 | _ASBOX | |
1923 | echo | |
7a197a62 | 1924 | cat confdefs.h |
ad6254c5 AK |
1925 | echo |
1926 | fi | |
1927 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1928 | $as_echo "$as_me: caught signal $ac_signal" |
1929 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1930 | } >&5 |
7a197a62 AK |
1931 | rm -f core *.core core.conftest.* && |
1932 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1933 | exit $exit_status |
7a197a62 | 1934 | ' 0 |
ad6254c5 AK |
1935 | for ac_signal in 1 2 13 15; do |
1936 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1937 | done | |
1938 | ac_signal=0 | |
1939 | ||
1940 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1941 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1942 | |
1943 | # Predefined preprocessor variables. | |
1944 | ||
1945 | cat >>confdefs.h <<_ACEOF | |
1946 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1947 | _ACEOF | |
1948 | ||
1949 | ||
1950 | cat >>confdefs.h <<_ACEOF | |
1951 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1952 | _ACEOF | |
1953 | ||
1954 | ||
1955 | cat >>confdefs.h <<_ACEOF | |
1956 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1957 | _ACEOF | |
8106cdd5 | 1958 | |
ad6254c5 AK |
1959 | |
1960 | cat >>confdefs.h <<_ACEOF | |
1961 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1962 | _ACEOF | |
1963 | ||
1964 | ||
1965 | cat >>confdefs.h <<_ACEOF | |
1966 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1967 | _ACEOF | |
1968 | ||
1969 | ||
1970 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1971 | # Prefer an explicitly selected file to automatically selected ones. |
1972 | ac_site_file1=NONE | |
1973 | ac_site_file2=NONE | |
7a197a62 | 1974 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1975 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1976 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1977 | ac_site_file1=$prefix/share/config.site |
1978 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1979 | else |
ec6a6fbe AK |
1980 | ac_site_file1=$ac_default_prefix/share/config.site |
1981 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1982 | fi |
ec6a6fbe | 1983 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1984 | do |
ec6a6fbe | 1985 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1986 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1987 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1988 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1989 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1990 | . "$ac_site_file" |
1991 | fi | |
1992 | done | |
1993 | ||
1994 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1995 | # Some versions of bash will fail to source /dev/null (special |
1996 | # files actually), so we avoid doing that. | |
1997 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1998 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1999 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 2000 | case $cache_file in |
7a197a62 AK |
2001 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2002 | *) . "./$cache_file";; | |
ad6254c5 AK |
2003 | esac |
2004 | fi | |
795ca3e5 | 2005 | else |
ec6a6fbe AK |
2006 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2007 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
2008 | >$cache_file |
2009 | fi | |
2010 | ||
2011 | # Check that the precious variables saved in the cache have kept the same | |
2012 | # value. | |
2013 | ac_cache_corrupted=false | |
7a197a62 | 2014 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2015 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2016 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2017 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2018 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2019 | case $ac_old_set,$ac_new_set in |
2020 | set,) | |
ec6a6fbe AK |
2021 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2022 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2023 | ac_cache_corrupted=: ;; |
2024 | ,set) | |
ec6a6fbe AK |
2025 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2026 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2027 | ac_cache_corrupted=: ;; |
2028 | ,);; | |
2029 | *) | |
2030 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2031 | # differences in whitespace do not lead to failure. |
2032 | ac_old_val_w=`echo x $ac_old_val` | |
2033 | ac_new_val_w=`echo x $ac_new_val` | |
2034 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2035 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2036 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2037 | ac_cache_corrupted=: | |
2038 | else | |
2039 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2040 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2041 | eval $ac_var=\$ac_old_val | |
2042 | fi | |
2043 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2044 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2045 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2046 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2047 | fi;; |
2048 | esac | |
2049 | # Pass precious variables to config.status. | |
2050 | if test "$ac_new_set" = set; then | |
2051 | case $ac_new_val in | |
ec6a6fbe | 2052 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2053 | *) ac_arg=$ac_var=$ac_new_val ;; |
2054 | esac | |
2055 | case " $ac_configure_args " in | |
2056 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2057 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2058 | esac | |
2059 | fi | |
2060 | done | |
2061 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2062 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2063 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2064 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2065 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2066 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2067 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2068 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2069 | fi |
2070 | ||
ad6254c5 AK |
2071 | |
2072 | ||
2073 | ||
2074 | ||
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ||
2082 | ||
2083 | ||
2084 | ||
2085 | ||
2086 | ||
7a197a62 AK |
2087 | ac_ext=c |
2088 | ac_cpp='$CPP $CPPFLAGS' | |
2089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2092 | |
795ca3e5 AK |
2093 | |
2094 | ||
7a197a62 | 2095 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2096 | |
2097 | ||
80992638 | 2098 | ################################################################################ |
795ca3e5 | 2099 | ac_aux_dir= |
7a197a62 AK |
2100 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2101 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2102 | ac_aux_dir=$ac_dir |
2103 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2104 | break | |
7a197a62 | 2105 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2106 | ac_aux_dir=$ac_dir |
2107 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2108 | break | |
7a197a62 | 2109 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2110 | ac_aux_dir=$ac_dir |
2111 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2112 | break | |
795ca3e5 AK |
2113 | fi |
2114 | done | |
2115 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2116 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2117 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2118 | { (exit 1); exit 1; }; } |
795ca3e5 | 2119 | fi |
7a197a62 AK |
2120 | |
2121 | # These three variables are undocumented and unsupported, | |
2122 | # and are intended to be withdrawn in a future Autoconf release. | |
2123 | # They can cause serious problems if a builder's source tree is in a directory | |
2124 | # whose full name contains unusual characters. | |
2125 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2126 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2127 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2128 | ||
8ce0cbda AK |
2129 | |
2130 | ||
ad6254c5 | 2131 | ################################################################################ |
8ce0cbda | 2132 | # Make sure we can run config.sub. |
7a197a62 | 2133 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2134 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2135 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2136 | { (exit 1); exit 1; }; } |
2137 | ||
ec6a6fbe AK |
2138 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2139 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2140 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2141 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2142 | else |
7a197a62 AK |
2143 | ac_build_alias=$build_alias |
2144 | test "x$ac_build_alias" = x && | |
2145 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2146 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2147 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2148 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2149 | { (exit 1); exit 1; }; } |
7a197a62 | 2150 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2151 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2152 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2153 | { (exit 1); exit 1; }; } |
2154 | ||
2155 | fi | |
ec6a6fbe AK |
2156 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2157 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2158 | case $ac_cv_build in |
2159 | *-*-*) ;; | |
ec6a6fbe AK |
2160 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2161 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2162 | { (exit 1); exit 1; }; };; |
2163 | esac | |
ad6254c5 | 2164 | build=$ac_cv_build |
7a197a62 AK |
2165 | ac_save_IFS=$IFS; IFS='-' |
2166 | set x $ac_cv_build | |
2167 | shift | |
2168 | build_cpu=$1 | |
2169 | build_vendor=$2 | |
2170 | shift; shift | |
2171 | # Remember, the first character of IFS is used to create $*, | |
2172 | # except with old shells: | |
2173 | build_os=$* | |
2174 | IFS=$ac_save_IFS | |
2175 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2176 | |
2177 | ||
ec6a6fbe AK |
2178 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2179 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2180 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2181 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2182 | else |
7a197a62 AK |
2183 | if test "x$host_alias" = x; then |
2184 | ac_cv_host=$ac_cv_build | |
2185 | else | |
2186 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2187 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2188 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2189 | { (exit 1); exit 1; }; } |
7a197a62 | 2190 | fi |
ad6254c5 AK |
2191 | |
2192 | fi | |
ec6a6fbe AK |
2193 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2194 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2195 | case $ac_cv_host in |
2196 | *-*-*) ;; | |
ec6a6fbe AK |
2197 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2198 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2199 | { (exit 1); exit 1; }; };; |
2200 | esac | |
ad6254c5 | 2201 | host=$ac_cv_host |
7a197a62 AK |
2202 | ac_save_IFS=$IFS; IFS='-' |
2203 | set x $ac_cv_host | |
2204 | shift | |
2205 | host_cpu=$1 | |
2206 | host_vendor=$2 | |
2207 | shift; shift | |
2208 | # Remember, the first character of IFS is used to create $*, | |
2209 | # except with old shells: | |
2210 | host_os=$* | |
2211 | IFS=$ac_save_IFS | |
2212 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2213 | |
2214 | ||
ec6a6fbe AK |
2215 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2216 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2217 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2218 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2219 | else |
7a197a62 AK |
2220 | if test "x$target_alias" = x; then |
2221 | ac_cv_target=$ac_cv_host | |
2222 | else | |
2223 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2224 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2225 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2226 | { (exit 1); exit 1; }; } |
7a197a62 | 2227 | fi |
8ce0cbda | 2228 | |
ad6254c5 | 2229 | fi |
ec6a6fbe AK |
2230 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2231 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2232 | case $ac_cv_target in |
2233 | *-*-*) ;; | |
ec6a6fbe AK |
2234 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2235 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2236 | { (exit 1); exit 1; }; };; |
2237 | esac | |
ad6254c5 | 2238 | target=$ac_cv_target |
7a197a62 AK |
2239 | ac_save_IFS=$IFS; IFS='-' |
2240 | set x $ac_cv_target | |
2241 | shift | |
2242 | target_cpu=$1 | |
2243 | target_vendor=$2 | |
2244 | shift; shift | |
2245 | # Remember, the first character of IFS is used to create $*, | |
2246 | # except with old shells: | |
2247 | target_os=$* | |
2248 | IFS=$ac_save_IFS | |
2249 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2250 | |
8ce0cbda | 2251 | |
ad6254c5 AK |
2252 | # The aliases save the names the user supplied, while $host etc. |
2253 | # will get canonicalized. | |
2254 | test -n "$target_alias" && | |
8ce0cbda AK |
2255 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2256 | NONENONEs,x,x, && | |
2257 | program_prefix=${target_alias}- | |
2258 | ||
8ce0cbda AK |
2259 | case "$host_os" in |
2260 | linux*) | |
7f54ef36 | 2261 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2262 | COPTIMISE_FLAG="-O2" |
2263 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2264 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2265 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2266 | LDDEPS="$LDDEPS .export.sym" | |
2267 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2268 | LIB_SUFFIX=so |
8ce0cbda AK |
2269 | DEVMAPPER=yes |
2270 | ODIRECT=yes | |
d0191583 | 2271 | DM_IOCTLS=yes |
8ce0cbda AK |
2272 | SELINUX=yes |
2273 | CLUSTER=internal | |
93bd259b | 2274 | FSADM=yes |
d0191583 | 2275 | ;; |
8ce0cbda AK |
2276 | darwin*) |
2277 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2278 | COPTIMISE_FLAG="-O2" | |
2279 | CLDFLAGS="$CLDFLAGS" | |
2280 | CLDWHOLEARCHIVE="-all_load" | |
2281 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2282 | LIB_SUFFIX=dylib |
a653923f | 2283 | DEVMAPPER=yes |
8ce0cbda | 2284 | ODIRECT=no |
d0191583 | 2285 | DM_IOCTLS=no |
8ce0cbda AK |
2286 | SELINUX=no |
2287 | CLUSTER=none | |
d0191583 JM |
2288 | FSADM=no |
2289 | ;; | |
8ce0cbda AK |
2290 | esac |
2291 | ||
80992638 | 2292 | ################################################################################ |
ec6a6fbe AK |
2293 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2294 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2295 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2296 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2297 | else |
2298 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2299 | for ac_i in 1 2 3 4 5 6 7; do | |
2300 | ac_script="$ac_script$as_nl$ac_script" | |
2301 | done | |
ec6a6fbe | 2302 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2303 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2304 | if test -z "$SED"; then |
5951ef33 | 2305 | ac_path_SED_found=false |
ec6a6fbe AK |
2306 | # Loop through the user's path and test for each of PROGNAME-LIST |
2307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2308 | for as_dir in $PATH |
2309 | do | |
2310 | IFS=$as_save_IFS | |
2311 | test -z "$as_dir" && as_dir=. | |
2312 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2313 | for ac_exec_ext in '' $ac_executable_extensions; do |
2314 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2315 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2316 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2317 | # Check for GNU $ac_path_SED |
2318 | case `"$ac_path_SED" --version 2>&1` in | |
2319 | *GNU*) | |
2320 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2321 | *) | |
2322 | ac_count=0 | |
ec6a6fbe | 2323 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2324 | while : |
2325 | do | |
2326 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2327 | mv "conftest.tmp" "conftest.in" | |
2328 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2329 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2330 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2331 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2332 | ac_count=`expr $ac_count + 1` | |
2333 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2334 | # Best one so far, save it but keep looking for a better one | |
2335 | ac_cv_path_SED="$ac_path_SED" | |
2336 | ac_path_SED_max=$ac_count | |
2337 | fi | |
2338 | # 10*(2^10) chars as input seems more than enough | |
2339 | test $ac_count -gt 10 && break | |
2340 | done | |
2341 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2342 | esac | |
2343 | ||
ec6a6fbe AK |
2344 | $ac_path_SED_found && break 3 |
2345 | done | |
5951ef33 AK |
2346 | done |
2347 | done | |
5951ef33 | 2348 | IFS=$as_save_IFS |
ec6a6fbe AK |
2349 | if test -z "$ac_cv_path_SED"; then |
2350 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2351 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2352 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2353 | fi |
5951ef33 AK |
2354 | else |
2355 | ac_cv_path_SED=$SED | |
2356 | fi | |
2357 | ||
2358 | fi | |
ec6a6fbe AK |
2359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2360 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2361 | SED="$ac_cv_path_SED" |
2362 | rm -f conftest.sed | |
2363 | ||
ad6254c5 | 2364 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2365 | do |
ad6254c5 | 2366 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2367 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2368 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2369 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2370 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2371 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2372 | else |
2373 | if test -n "$AWK"; then | |
2374 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2375 | else | |
ad6254c5 AK |
2376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2377 | for as_dir in $PATH | |
2378 | do | |
2379 | IFS=$as_save_IFS | |
2380 | test -z "$as_dir" && as_dir=. | |
2381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2383 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2384 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2385 | break 2 |
2386 | fi | |
2387 | done | |
2388 | done | |
7a197a62 | 2389 | IFS=$as_save_IFS |
ad6254c5 | 2390 | |
795ca3e5 AK |
2391 | fi |
2392 | fi | |
ad6254c5 | 2393 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2394 | if test -n "$AWK"; then |
ec6a6fbe AK |
2395 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2396 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2397 | else |
ec6a6fbe AK |
2398 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2399 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2400 | fi |
2401 | ||
7a197a62 | 2402 | |
ad6254c5 AK |
2403 | test -n "$AWK" && break |
2404 | done | |
2405 | ||
2406 | ac_ext=c | |
2407 | ac_cpp='$CPP $CPPFLAGS' | |
2408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2411 | if test -n "$ac_tool_prefix"; then | |
2412 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2413 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2414 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2415 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2416 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2417 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2418 | else |
2419 | if test -n "$CC"; then | |
2420 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2421 | else | |
2422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2423 | for as_dir in $PATH | |
2424 | do | |
2425 | IFS=$as_save_IFS | |
2426 | test -z "$as_dir" && as_dir=. | |
2427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2429 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2430 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2431 | break 2 |
2432 | fi | |
2433 | done | |
8106cdd5 | 2434 | done |
7a197a62 | 2435 | IFS=$as_save_IFS |
8106cdd5 | 2436 | |
ad6254c5 AK |
2437 | fi |
2438 | fi | |
2439 | CC=$ac_cv_prog_CC | |
2440 | if test -n "$CC"; then | |
ec6a6fbe AK |
2441 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2442 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2443 | else |
ec6a6fbe AK |
2444 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2445 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2446 | fi |
2447 | ||
7a197a62 | 2448 | |
ad6254c5 AK |
2449 | fi |
2450 | if test -z "$ac_cv_prog_CC"; then | |
2451 | ac_ct_CC=$CC | |
2452 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2453 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2454 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2455 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2456 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2457 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2458 | else |
2459 | if test -n "$ac_ct_CC"; then | |
2460 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2461 | else | |
2462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2463 | for as_dir in $PATH | |
2464 | do | |
2465 | IFS=$as_save_IFS | |
2466 | test -z "$as_dir" && as_dir=. | |
2467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2469 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2470 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2471 | break 2 |
2472 | fi | |
2473 | done | |
2474 | done | |
7a197a62 | 2475 | IFS=$as_save_IFS |
ad6254c5 AK |
2476 | |
2477 | fi | |
2478 | fi | |
2479 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2480 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2481 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2482 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2483 | else |
ec6a6fbe AK |
2484 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2485 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2486 | fi |
2487 | ||
7a197a62 AK |
2488 | if test "x$ac_ct_CC" = x; then |
2489 | CC="" | |
2490 | else | |
2491 | case $cross_compiling:$ac_tool_warned in | |
2492 | yes:) | |
ec6a6fbe AK |
2493 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2494 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2495 | ac_tool_warned=yes ;; |
2496 | esac | |
2497 | CC=$ac_ct_CC | |
2498 | fi | |
ad6254c5 AK |
2499 | else |
2500 | CC="$ac_cv_prog_CC" | |
2501 | fi | |
2502 | ||
2503 | if test -z "$CC"; then | |
7a197a62 AK |
2504 | if test -n "$ac_tool_prefix"; then |
2505 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2506 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2507 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2508 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2509 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2510 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2511 | else |
2512 | if test -n "$CC"; then | |
2513 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2514 | else | |
ad6254c5 AK |
2515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2516 | for as_dir in $PATH | |
2517 | do | |
2518 | IFS=$as_save_IFS | |
2519 | test -z "$as_dir" && as_dir=. | |
2520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2522 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2523 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2524 | break 2 |
2525 | fi | |
2526 | done | |
2527 | done | |
7a197a62 | 2528 | IFS=$as_save_IFS |
ad6254c5 | 2529 | |
8106cdd5 AK |
2530 | fi |
2531 | fi | |
ad6254c5 | 2532 | CC=$ac_cv_prog_CC |
8106cdd5 | 2533 | if test -n "$CC"; then |
ec6a6fbe AK |
2534 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2535 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2536 | else |
ec6a6fbe AK |
2537 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2538 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2539 | fi |
2540 | ||
8106cdd5 | 2541 | |
7a197a62 | 2542 | fi |
ad6254c5 | 2543 | fi |
795ca3e5 AK |
2544 | if test -z "$CC"; then |
2545 | # Extract the first word of "cc", so it can be a program name with args. | |
2546 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2547 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2548 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2549 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2550 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2551 | else |
2552 | if test -n "$CC"; then | |
2553 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2554 | else | |
795ca3e5 | 2555 | ac_prog_rejected=no |
ad6254c5 AK |
2556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2557 | for as_dir in $PATH | |
2558 | do | |
2559 | IFS=$as_save_IFS | |
2560 | test -z "$as_dir" && as_dir=. | |
2561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2563 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2564 | ac_prog_rejected=yes | |
2565 | continue | |
2566 | fi | |
2567 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2568 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2569 | break 2 |
2570 | fi | |
2571 | done | |
2572 | done | |
7a197a62 | 2573 | IFS=$as_save_IFS |
ad6254c5 | 2574 | |
795ca3e5 AK |
2575 | if test $ac_prog_rejected = yes; then |
2576 | # We found a bogon in the path, so make sure we never use it. | |
2577 | set dummy $ac_cv_prog_CC | |
2578 | shift | |
ad6254c5 | 2579 | if test $# != 0; then |
795ca3e5 AK |
2580 | # We chose a different compiler from the bogus one. |
2581 | # However, it has the same basename, so the bogon will be chosen | |
2582 | # first if we set CC to just the basename; use the full file name. | |
2583 | shift | |
ad6254c5 | 2584 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2585 | fi |
2586 | fi | |
2587 | fi | |
2588 | fi | |
ad6254c5 | 2589 | CC=$ac_cv_prog_CC |
795ca3e5 | 2590 | if test -n "$CC"; then |
ec6a6fbe AK |
2591 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2592 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2593 | else |
ec6a6fbe AK |
2594 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2595 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2596 | fi |
2597 | ||
7a197a62 | 2598 | |
ad6254c5 AK |
2599 | fi |
2600 | if test -z "$CC"; then | |
2601 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2602 | for ac_prog in cl.exe |
ad6254c5 AK |
2603 | do |
2604 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2605 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2606 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2607 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2608 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2609 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2610 | else |
2611 | if test -n "$CC"; then | |
2612 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2613 | else | |
ad6254c5 AK |
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2615 | for as_dir in $PATH | |
2616 | do | |
2617 | IFS=$as_save_IFS | |
2618 | test -z "$as_dir" && as_dir=. | |
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2621 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2622 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2623 | break 2 |
2624 | fi | |
2625 | done | |
2626 | done | |
7a197a62 | 2627 | IFS=$as_save_IFS |
ad6254c5 | 2628 | |
795ca3e5 AK |
2629 | fi |
2630 | fi | |
ad6254c5 | 2631 | CC=$ac_cv_prog_CC |
795ca3e5 | 2632 | if test -n "$CC"; then |
ec6a6fbe AK |
2633 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2634 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2635 | else |
ec6a6fbe AK |
2636 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2637 | $as_echo "no" >&6; } | |
795ca3e5 | 2638 | fi |
ad6254c5 | 2639 | |
7a197a62 | 2640 | |
ad6254c5 AK |
2641 | test -n "$CC" && break |
2642 | done | |
2643 | fi | |
2644 | if test -z "$CC"; then | |
2645 | ac_ct_CC=$CC | |
7a197a62 | 2646 | for ac_prog in cl.exe |
ad6254c5 AK |
2647 | do |
2648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2649 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2650 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2651 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2653 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2654 | else |
2655 | if test -n "$ac_ct_CC"; then | |
2656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2657 | else | |
2658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2659 | for as_dir in $PATH | |
2660 | do | |
2661 | IFS=$as_save_IFS | |
2662 | test -z "$as_dir" && as_dir=. | |
2663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2665 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2666 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2667 | break 2 |
795ca3e5 | 2668 | fi |
ad6254c5 AK |
2669 | done |
2670 | done | |
7a197a62 | 2671 | IFS=$as_save_IFS |
ad6254c5 AK |
2672 | |
2673 | fi | |
2674 | fi | |
2675 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2676 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2677 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2678 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2679 | else |
ec6a6fbe AK |
2680 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2681 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2682 | fi |
2683 | ||
7a197a62 | 2684 | |
ad6254c5 AK |
2685 | test -n "$ac_ct_CC" && break |
2686 | done | |
795ca3e5 | 2687 | |
7a197a62 AK |
2688 | if test "x$ac_ct_CC" = x; then |
2689 | CC="" | |
2690 | else | |
2691 | case $cross_compiling:$ac_tool_warned in | |
2692 | yes:) | |
ec6a6fbe AK |
2693 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2694 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2695 | ac_tool_warned=yes ;; |
2696 | esac | |
2697 | CC=$ac_ct_CC | |
2698 | fi | |
ad6254c5 AK |
2699 | fi |
2700 | ||
2701 | fi | |
2702 | ||
2703 | ||
ec6a6fbe AK |
2704 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2705 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2706 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2707 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2708 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2709 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2710 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2711 | |
2712 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2713 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2714 | set X $ac_compile | |
2715 | ac_compiler=$2 | |
7a197a62 AK |
2716 | { (ac_try="$ac_compiler --version >&5" |
2717 | case "(($ac_try" in | |
2718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2719 | *) ac_try_echo=$ac_try;; | |
2720 | esac | |
ec6a6fbe AK |
2721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2722 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2723 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2724 | ac_status=$? |
ec6a6fbe | 2725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2726 | (exit $ac_status); } |
7a197a62 AK |
2727 | { (ac_try="$ac_compiler -v >&5" |
2728 | case "(($ac_try" in | |
2729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2730 | *) ac_try_echo=$ac_try;; | |
2731 | esac | |
ec6a6fbe AK |
2732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2733 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2734 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2735 | ac_status=$? |
ec6a6fbe | 2736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2737 | (exit $ac_status); } |
7a197a62 AK |
2738 | { (ac_try="$ac_compiler -V >&5" |
2739 | case "(($ac_try" in | |
2740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2741 | *) ac_try_echo=$ac_try;; | |
2742 | esac | |
ec6a6fbe AK |
2743 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2744 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2745 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2746 | ac_status=$? |
ec6a6fbe | 2747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2748 | (exit $ac_status); } |
2749 | ||
2750 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2751 | /* confdefs.h. */ |
2752 | _ACEOF | |
2753 | cat confdefs.h >>conftest.$ac_ext | |
2754 | cat >>conftest.$ac_ext <<_ACEOF | |
2755 | /* end confdefs.h. */ | |
2756 | ||
2757 | int | |
2758 | main () | |
2759 | { | |
2760 | ||
2761 | ; | |
2762 | return 0; | |
2763 | } | |
2764 | _ACEOF | |
2765 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2766 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2767 | # Try to create an executable without -o first, disregard a.out. |
2768 | # It will help us diagnose broken compilers, and finding out an intuition | |
2769 | # of exeext. | |
ec6a6fbe AK |
2770 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2771 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2772 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2773 | ||
2774 | # The possible output files: | |
2775 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2776 | ||
7a197a62 AK |
2777 | ac_rmfiles= |
2778 | for ac_file in $ac_files | |
2779 | do | |
2780 | case $ac_file in | |
ec6a6fbe | 2781 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2782 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2783 | esac | |
2784 | done | |
2785 | rm -f $ac_rmfiles | |
2786 | ||
2787 | if { (ac_try="$ac_link_default" | |
2788 | case "(($ac_try" in | |
2789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2790 | *) ac_try_echo=$ac_try;; | |
2791 | esac | |
ec6a6fbe AK |
2792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2793 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2794 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2795 | ac_status=$? |
ec6a6fbe | 2796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2797 | (exit $ac_status); }; then |
7a197a62 AK |
2798 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2799 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2800 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2801 | # so that the user can short-circuit this test for compilers unknown to | |
2802 | # Autoconf. | |
25fbec5b | 2803 | for ac_file in $ac_files '' |
ad6254c5 AK |
2804 | do |
2805 | test -f "$ac_file" || continue | |
2806 | case $ac_file in | |
ec6a6fbe | 2807 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2808 | ;; |
ad6254c5 | 2809 | [ab].out ) |
8a2fc586 AK |
2810 | # We found the default executable, but exeext='' is most |
2811 | # certainly right. | |
2812 | break;; | |
ad6254c5 | 2813 | *.* ) |
7a197a62 AK |
2814 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2815 | then :; else | |
2816 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2817 | fi | |
2818 | # We set ac_cv_exeext here because the later test for it is not | |
2819 | # safe: cross compilers may not add the suffix if given an `-o' | |
2820 | # argument, so we may need to know it at that point already. | |
2821 | # Even if this section looks crufty: it has the advantage of | |
2822 | # actually working. | |
8a2fc586 | 2823 | break;; |
ad6254c5 | 2824 | * ) |
8a2fc586 | 2825 | break;; |
ad6254c5 AK |
2826 | esac |
2827 | done | |
7a197a62 AK |
2828 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2829 | ||
ad6254c5 | 2830 | else |
25fbec5b AK |
2831 | ac_file='' |
2832 | fi | |
2833 | ||
ec6a6fbe AK |
2834 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2835 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2836 | if test -z "$ac_file"; then |
ec6a6fbe | 2837 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2838 | sed 's/^/| /' conftest.$ac_ext >&5 |
2839 | ||
ec6a6fbe AK |
2840 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2841 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2842 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2843 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2844 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2845 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2846 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2847 | fi |
2848 | ||
2849 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2850 | |
7a197a62 | 2851 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2852 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2853 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2854 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2855 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2856 | # If not cross compiling, check that we can run a simple program. | |
2857 | if test "$cross_compiling" != yes; then | |
2858 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2859 | { (case "(($ac_try" in |
2860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2861 | *) ac_try_echo=$ac_try;; | |
2862 | esac | |
ec6a6fbe AK |
2863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2864 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2865 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2866 | ac_status=$? |
ec6a6fbe | 2867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2868 | (exit $ac_status); }; }; then |
2869 | cross_compiling=no | |
795ca3e5 | 2870 | else |
ad6254c5 AK |
2871 | if test "$cross_compiling" = maybe; then |
2872 | cross_compiling=yes | |
2873 | else | |
ec6a6fbe AK |
2874 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2875 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2876 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2877 | If you meant to cross compile, use \`--host'. |
2878 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2879 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2880 | If you meant to cross compile, use \`--host'. |
2881 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2882 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2883 | fi |
795ca3e5 | 2884 | fi |
80992638 | 2885 | fi |
ec6a6fbe AK |
2886 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2887 | $as_echo "yes" >&6; } | |
ad6254c5 | 2888 | |
ec6a6fbe | 2889 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2890 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2891 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2892 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2893 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2894 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2895 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2896 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2897 | |
ec6a6fbe AK |
2898 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2899 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2900 | if { (ac_try="$ac_link" |
2901 | case "(($ac_try" in | |
2902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2903 | *) ac_try_echo=$ac_try;; | |
2904 | esac | |
ec6a6fbe AK |
2905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2906 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2907 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2908 | ac_status=$? |
ec6a6fbe | 2909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2910 | (exit $ac_status); }; then |
2911 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2912 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2913 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2914 | # `rm'. | |
2915 | for ac_file in conftest.exe conftest conftest.*; do | |
2916 | test -f "$ac_file" || continue | |
2917 | case $ac_file in | |
ec6a6fbe | 2918 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2919 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2920 | break;; |
ad6254c5 AK |
2921 | * ) break;; |
2922 | esac | |
2923 | done | |
80992638 | 2924 | else |
ec6a6fbe AK |
2925 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2927 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2928 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2929 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2930 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2931 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2932 | fi |
2933 | ||
2934 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2935 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2936 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2937 | |
2938 | rm -f conftest.$ac_ext | |
2939 | EXEEXT=$ac_cv_exeext | |
2940 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2941 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2942 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2943 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2944 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2945 | else |
ad6254c5 | 2946 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2947 | /* confdefs.h. */ |
2948 | _ACEOF | |
2949 | cat confdefs.h >>conftest.$ac_ext | |
2950 | cat >>conftest.$ac_ext <<_ACEOF | |
2951 | /* end confdefs.h. */ | |
2952 | ||
2953 | int | |
2954 | main () | |
2955 | { | |
2956 | ||
2957 | ; | |
2958 | return 0; | |
2959 | } | |
2960 | _ACEOF | |
2961 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2962 | if { (ac_try="$ac_compile" |
2963 | case "(($ac_try" in | |
2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2965 | *) ac_try_echo=$ac_try;; | |
2966 | esac | |
ec6a6fbe AK |
2967 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2968 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2969 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2970 | ac_status=$? |
ec6a6fbe | 2971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2972 | (exit $ac_status); }; then |
7a197a62 AK |
2973 | for ac_file in conftest.o conftest.obj conftest.*; do |
2974 | test -f "$ac_file" || continue; | |
ad6254c5 | 2975 | case $ac_file in |
ec6a6fbe | 2976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2977 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2978 | break;; | |
2979 | esac | |
2980 | done | |
2981 | else | |
ec6a6fbe | 2982 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2983 | sed 's/^/| /' conftest.$ac_ext >&5 |
2984 | ||
ec6a6fbe AK |
2985 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2986 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2987 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2988 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2989 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2990 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2991 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2992 | fi |
2993 | ||
2994 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2995 | fi | |
ec6a6fbe AK |
2996 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2997 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2998 | OBJEXT=$ac_cv_objext |
2999 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
3000 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3001 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 3002 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 3003 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3004 | else |
3005 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3006 | /* confdefs.h. */ |
3007 | _ACEOF | |
3008 | cat confdefs.h >>conftest.$ac_ext | |
3009 | cat >>conftest.$ac_ext <<_ACEOF | |
3010 | /* end confdefs.h. */ | |
3011 | ||
3012 | int | |
3013 | main () | |
3014 | { | |
3015 | #ifndef __GNUC__ | |
3016 | choke me | |
3017 | #endif | |
80992638 | 3018 | |
ad6254c5 AK |
3019 | ; |
3020 | return 0; | |
3021 | } | |
3022 | _ACEOF | |
3023 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3024 | if { (ac_try="$ac_compile" |
3025 | case "(($ac_try" in | |
3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3027 | *) ac_try_echo=$ac_try;; | |
3028 | esac | |
ec6a6fbe AK |
3029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3030 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3031 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3032 | ac_status=$? |
8a2fc586 AK |
3033 | grep -v '^ *+' conftest.er1 >conftest.err |
3034 | rm -f conftest.er1 | |
3035 | cat conftest.err >&5 | |
ec6a6fbe | 3036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3037 | (exit $ac_status); } && { |
3038 | test -z "$ac_c_werror_flag" || | |
3039 | test ! -s conftest.err | |
3040 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3041 | ac_compiler_gnu=yes |
80992638 | 3042 | else |
ec6a6fbe | 3043 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3044 | sed 's/^/| /' conftest.$ac_ext >&5 |
3045 | ||
7a197a62 | 3046 | ac_compiler_gnu=no |
8106cdd5 | 3047 | fi |
7a197a62 AK |
3048 | |
3049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3050 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3051 | |
ad6254c5 | 3052 | fi |
ec6a6fbe AK |
3053 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3054 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3055 | if test $ac_compiler_gnu = yes; then | |
3056 | GCC=yes | |
3057 | else | |
3058 | GCC= | |
3059 | fi | |
ad6254c5 AK |
3060 | ac_test_CFLAGS=${CFLAGS+set} |
3061 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3062 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3063 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3064 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3065 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3066 | else |
7a197a62 AK |
3067 | ac_save_c_werror_flag=$ac_c_werror_flag |
3068 | ac_c_werror_flag=yes | |
3069 | ac_cv_prog_cc_g=no | |
3070 | CFLAGS="-g" | |
3071 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3072 | /* confdefs.h. */ |
3073 | _ACEOF | |
3074 | cat confdefs.h >>conftest.$ac_ext | |
3075 | cat >>conftest.$ac_ext <<_ACEOF | |
3076 | /* end confdefs.h. */ | |
3077 | ||
3078 | int | |
3079 | main () | |
3080 | { | |
3081 | ||
3082 | ; | |
3083 | return 0; | |
3084 | } | |
3085 | _ACEOF | |
3086 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3087 | if { (ac_try="$ac_compile" |
3088 | case "(($ac_try" in | |
3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3090 | *) ac_try_echo=$ac_try;; | |
3091 | esac | |
ec6a6fbe AK |
3092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3093 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3094 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3095 | ac_status=$? |
8a2fc586 AK |
3096 | grep -v '^ *+' conftest.er1 >conftest.err |
3097 | rm -f conftest.er1 | |
3098 | cat conftest.err >&5 | |
ec6a6fbe | 3099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3100 | (exit $ac_status); } && { |
3101 | test -z "$ac_c_werror_flag" || | |
3102 | test ! -s conftest.err | |
3103 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3104 | ac_cv_prog_cc_g=yes |
3105 | else | |
ec6a6fbe | 3106 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
3108 | ||
3109 | CFLAGS="" | |
3110 | cat >conftest.$ac_ext <<_ACEOF | |
3111 | /* confdefs.h. */ | |
3112 | _ACEOF | |
3113 | cat confdefs.h >>conftest.$ac_ext | |
3114 | cat >>conftest.$ac_ext <<_ACEOF | |
3115 | /* end confdefs.h. */ | |
3116 | ||
3117 | int | |
3118 | main () | |
3119 | { | |
3120 | ||
3121 | ; | |
3122 | return 0; | |
3123 | } | |
3124 | _ACEOF | |
3125 | rm -f conftest.$ac_objext | |
3126 | if { (ac_try="$ac_compile" | |
3127 | case "(($ac_try" in | |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3129 | *) ac_try_echo=$ac_try;; | |
3130 | esac | |
ec6a6fbe AK |
3131 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3132 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3133 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3134 | ac_status=$? |
7a197a62 AK |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3136 | rm -f conftest.er1 | |
3137 | cat conftest.err >&5 | |
ec6a6fbe | 3138 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3139 | (exit $ac_status); } && { |
3140 | test -z "$ac_c_werror_flag" || | |
3141 | test ! -s conftest.err | |
3142 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3143 | : |
3144 | else | |
ec6a6fbe | 3145 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3146 | sed 's/^/| /' conftest.$ac_ext >&5 |
3147 | ||
3148 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3149 | CFLAGS="-g" | |
3150 | cat >conftest.$ac_ext <<_ACEOF | |
3151 | /* confdefs.h. */ | |
3152 | _ACEOF | |
3153 | cat confdefs.h >>conftest.$ac_ext | |
3154 | cat >>conftest.$ac_ext <<_ACEOF | |
3155 | /* end confdefs.h. */ | |
3156 | ||
3157 | int | |
3158 | main () | |
3159 | { | |
3160 | ||
3161 | ; | |
3162 | return 0; | |
3163 | } | |
3164 | _ACEOF | |
3165 | rm -f conftest.$ac_objext | |
3166 | if { (ac_try="$ac_compile" | |
3167 | case "(($ac_try" in | |
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3169 | *) ac_try_echo=$ac_try;; | |
3170 | esac | |
ec6a6fbe AK |
3171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3172 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3173 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3174 | ac_status=$? |
7a197a62 AK |
3175 | grep -v '^ *+' conftest.er1 >conftest.err |
3176 | rm -f conftest.er1 | |
3177 | cat conftest.err >&5 | |
ec6a6fbe | 3178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3179 | (exit $ac_status); } && { |
3180 | test -z "$ac_c_werror_flag" || | |
3181 | test ! -s conftest.err | |
3182 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3183 | ac_cv_prog_cc_g=yes |
3184 | else | |
ec6a6fbe | 3185 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3186 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3187 | |
7a197a62 AK |
3188 | |
3189 | fi | |
3190 | ||
3191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3192 | fi | |
3193 | ||
3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3195 | fi |
7a197a62 AK |
3196 | |
3197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3198 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3199 | fi |
ec6a6fbe AK |
3200 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3201 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3202 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3203 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3204 | elif test $ac_cv_prog_cc_g = yes; then |
3205 | if test "$GCC" = yes; then | |
3206 | CFLAGS="-g -O2" | |
3207 | else | |
3208 | CFLAGS="-g" | |
3209 | fi | |
3210 | else | |
3211 | if test "$GCC" = yes; then | |
3212 | CFLAGS="-O2" | |
3213 | else | |
3214 | CFLAGS= | |
3215 | fi | |
3216 | fi | |
ec6a6fbe AK |
3217 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3218 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3219 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3220 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3221 | else |
7a197a62 | 3222 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3223 | ac_save_CC=$CC |
3224 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3225 | /* confdefs.h. */ |
3226 | _ACEOF | |
3227 | cat confdefs.h >>conftest.$ac_ext | |
3228 | cat >>conftest.$ac_ext <<_ACEOF | |
3229 | /* end confdefs.h. */ | |
3230 | #include <stdarg.h> | |
3231 | #include <stdio.h> | |
3232 | #include <sys/types.h> | |
3233 | #include <sys/stat.h> | |
3234 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3235 | struct buf { int x; }; | |
3236 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3237 | static char *e (p, i) | |
3238 | char **p; | |
3239 | int i; | |
3240 | { | |
3241 | return p[i]; | |
3242 | } | |
3243 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3244 | { | |
3245 | char *s; | |
3246 | va_list v; | |
3247 | va_start (v,p); | |
3248 | s = g (p, va_arg (v,int)); | |
3249 | va_end (v); | |
3250 | return s; | |
3251 | } | |
8a2fc586 AK |
3252 | |
3253 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3254 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3255 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3256 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3257 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3258 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3259 | that's true only with -std. */ |
8a2fc586 AK |
3260 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3261 | ||
7a197a62 AK |
3262 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3263 | inside strings and character constants. */ | |
3264 | #define FOO(x) 'x' | |
3265 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3266 | ||
ad6254c5 AK |
3267 | int test (int i, double x); |
3268 | struct s1 {int (*f) (int a);}; | |
3269 | struct s2 {int (*f) (double a);}; | |
3270 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3271 | int argc; | |
3272 | char **argv; | |
3273 | int | |
3274 | main () | |
3275 | { | |
3276 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3277 | ; | |
3278 | return 0; | |
3279 | } | |
3280 | _ACEOF | |
7a197a62 AK |
3281 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3282 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3283 | do |
3284 | CC="$ac_save_CC $ac_arg" | |
3285 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3286 | if { (ac_try="$ac_compile" |
3287 | case "(($ac_try" in | |
3288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3289 | *) ac_try_echo=$ac_try;; | |
3290 | esac | |
ec6a6fbe AK |
3291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3292 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3293 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3294 | ac_status=$? |
8a2fc586 AK |
3295 | grep -v '^ *+' conftest.er1 >conftest.err |
3296 | rm -f conftest.er1 | |
3297 | cat conftest.err >&5 | |
ec6a6fbe | 3298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3299 | (exit $ac_status); } && { |
3300 | test -z "$ac_c_werror_flag" || | |
3301 | test ! -s conftest.err | |
3302 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3303 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3304 | else |
ec6a6fbe | 3305 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3306 | sed 's/^/| /' conftest.$ac_ext >&5 |
3307 | ||
7a197a62 | 3308 | |
ad6254c5 | 3309 | fi |
7a197a62 AK |
3310 | |
3311 | rm -f core conftest.err conftest.$ac_objext | |
3312 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3313 | done |
7a197a62 | 3314 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3315 | CC=$ac_save_CC |
3316 | ||
3317 | fi | |
7a197a62 AK |
3318 | # AC_CACHE_VAL |
3319 | case "x$ac_cv_prog_cc_c89" in | |
3320 | x) | |
ec6a6fbe AK |
3321 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3322 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3323 | xno) |
ec6a6fbe AK |
3324 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3325 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3326 | *) |
7a197a62 | 3327 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3328 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3329 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3330 | esac |
3331 | ||
ad6254c5 | 3332 | |
ad6254c5 AK |
3333 | ac_ext=c |
3334 | ac_cpp='$CPP $CPPFLAGS' | |
3335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3338 | |
d0191583 JM |
3339 | |
3340 | ||
3341 | ac_ext=c | |
3342 | ac_cpp='$CPP $CPPFLAGS' | |
3343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3346 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3347 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3348 | # On Suns, sometimes $CPP names a directory. |
3349 | if test -n "$CPP" && test -d "$CPP"; then | |
3350 | CPP= | |
3351 | fi | |
3352 | if test -z "$CPP"; then | |
3353 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3354 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3355 | else |
d0191583 JM |
3356 | # Double quotes because CPP needs to be expanded |
3357 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3358 | do | |
3359 | ac_preproc_ok=false | |
3360 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3361 | do |
d0191583 JM |
3362 | # Use a header file that comes with gcc, so configuring glibc |
3363 | # with a fresh cross-compiler works. | |
3364 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3365 | # <limits.h> exists even on freestanding compilers. | |
3366 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3367 | # not just through cpp. "Syntax error" is here to catch this case. | |
3368 | cat >conftest.$ac_ext <<_ACEOF | |
3369 | /* confdefs.h. */ | |
3370 | _ACEOF | |
3371 | cat confdefs.h >>conftest.$ac_ext | |
3372 | cat >>conftest.$ac_ext <<_ACEOF | |
3373 | /* end confdefs.h. */ | |
3374 | #ifdef __STDC__ | |
3375 | # include <limits.h> | |
3376 | #else | |
3377 | # include <assert.h> | |
3378 | #endif | |
3379 | Syntax error | |
3380 | _ACEOF | |
3381 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3382 | case "(($ac_try" in | |
3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3384 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3385 | esac |
ec6a6fbe AK |
3386 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3387 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3388 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3389 | ac_status=$? | |
3390 | grep -v '^ *+' conftest.er1 >conftest.err | |
3391 | rm -f conftest.er1 | |
3392 | cat conftest.err >&5 | |
ec6a6fbe | 3393 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3394 | (exit $ac_status); } >/dev/null && { |
3395 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3396 | test ! -s conftest.err | |
3397 | }; then | |
3398 | : | |
3399 | else | |
ec6a6fbe | 3400 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3401 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3402 | |
d0191583 JM |
3403 | # Broken: fails on valid input. |
3404 | continue | |
795ca3e5 | 3405 | fi |
795ca3e5 | 3406 | |
d0191583 | 3407 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3408 | |
d0191583 JM |
3409 | # OK, works on sane cases. Now check whether nonexistent headers |
3410 | # can be detected and how. | |
3411 | cat >conftest.$ac_ext <<_ACEOF | |
3412 | /* confdefs.h. */ | |
3413 | _ACEOF | |
3414 | cat confdefs.h >>conftest.$ac_ext | |
3415 | cat >>conftest.$ac_ext <<_ACEOF | |
3416 | /* end confdefs.h. */ | |
3417 | #include <ac_nonexistent.h> | |
3418 | _ACEOF | |
3419 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3420 | case "(($ac_try" in | |
3421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3422 | *) ac_try_echo=$ac_try;; | |
3423 | esac | |
ec6a6fbe AK |
3424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3425 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3426 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3427 | ac_status=$? | |
3428 | grep -v '^ *+' conftest.er1 >conftest.err | |
3429 | rm -f conftest.er1 | |
3430 | cat conftest.err >&5 | |
ec6a6fbe | 3431 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3432 | (exit $ac_status); } >/dev/null && { |
3433 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3434 | test ! -s conftest.err | |
3435 | }; then | |
3436 | # Broken: success on invalid input. | |
3437 | continue | |
3438 | else | |
ec6a6fbe | 3439 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3440 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3441 | |
d0191583 JM |
3442 | # Passes both tests. |
3443 | ac_preproc_ok=: | |
3444 | break | |
3445 | fi | |
795ca3e5 | 3446 | |
d0191583 JM |
3447 | rm -f conftest.err conftest.$ac_ext |
3448 | ||
3449 | done | |
3450 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3451 | rm -f conftest.err conftest.$ac_ext | |
3452 | if $ac_preproc_ok; then | |
3453 | break | |
795ca3e5 AK |
3454 | fi |
3455 | ||
d0191583 JM |
3456 | done |
3457 | ac_cv_prog_CPP=$CPP | |
3458 | ||
3459 | fi | |
3460 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3461 | else |
d0191583 JM |
3462 | ac_cv_prog_CPP=$CPP |
3463 | fi | |
ec6a6fbe AK |
3464 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3465 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3466 | ac_preproc_ok=false |
3467 | for ac_c_preproc_warn_flag in '' yes | |
3468 | do | |
3469 | # Use a header file that comes with gcc, so configuring glibc | |
3470 | # with a fresh cross-compiler works. | |
3471 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3472 | # <limits.h> exists even on freestanding compilers. | |
3473 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3474 | # not just through cpp. "Syntax error" is here to catch this case. | |
3475 | cat >conftest.$ac_ext <<_ACEOF | |
3476 | /* confdefs.h. */ | |
ad6254c5 | 3477 | _ACEOF |
d0191583 JM |
3478 | cat confdefs.h >>conftest.$ac_ext |
3479 | cat >>conftest.$ac_ext <<_ACEOF | |
3480 | /* end confdefs.h. */ | |
3481 | #ifdef __STDC__ | |
3482 | # include <limits.h> | |
3483 | #else | |
3484 | # include <assert.h> | |
3485 | #endif | |
3486 | Syntax error | |
3487 | _ACEOF | |
3488 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3489 | case "(($ac_try" in | |
3490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3491 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3492 | esac |
ec6a6fbe AK |
3493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3494 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3496 | ac_status=$? | |
3497 | grep -v '^ *+' conftest.er1 >conftest.err | |
3498 | rm -f conftest.er1 | |
3499 | cat conftest.err >&5 | |
ec6a6fbe | 3500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3501 | (exit $ac_status); } >/dev/null && { |
3502 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3503 | test ! -s conftest.err | |
3504 | }; then | |
3505 | : | |
795ca3e5 | 3506 | else |
ec6a6fbe | 3507 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3508 | sed 's/^/| /' conftest.$ac_ext >&5 |
3509 | ||
3510 | # Broken: fails on valid input. | |
3511 | continue | |
795ca3e5 AK |
3512 | fi |
3513 | ||
d0191583 JM |
3514 | rm -f conftest.err conftest.$ac_ext |
3515 | ||
3516 | # OK, works on sane cases. Now check whether nonexistent headers | |
3517 | # can be detected and how. | |
3518 | cat >conftest.$ac_ext <<_ACEOF | |
3519 | /* confdefs.h. */ | |
3520 | _ACEOF | |
3521 | cat confdefs.h >>conftest.$ac_ext | |
3522 | cat >>conftest.$ac_ext <<_ACEOF | |
3523 | /* end confdefs.h. */ | |
3524 | #include <ac_nonexistent.h> | |
3525 | _ACEOF | |
3526 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3527 | case "(($ac_try" in | |
3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3529 | *) ac_try_echo=$ac_try;; | |
3530 | esac | |
ec6a6fbe AK |
3531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3532 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3533 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3534 | ac_status=$? | |
3535 | grep -v '^ *+' conftest.er1 >conftest.err | |
3536 | rm -f conftest.er1 | |
3537 | cat conftest.err >&5 | |
ec6a6fbe | 3538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3539 | (exit $ac_status); } >/dev/null && { |
3540 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3541 | test ! -s conftest.err | |
3542 | }; then | |
3543 | # Broken: success on invalid input. | |
3544 | continue | |
795ca3e5 | 3545 | else |
ec6a6fbe | 3546 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3547 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3548 | |
d0191583 JM |
3549 | # Passes both tests. |
3550 | ac_preproc_ok=: | |
3551 | break | |
795ca3e5 | 3552 | fi |
d0191583 JM |
3553 | |
3554 | rm -f conftest.err conftest.$ac_ext | |
3555 | ||
3556 | done | |
3557 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3558 | rm -f conftest.err conftest.$ac_ext | |
3559 | if $ac_preproc_ok; then | |
3560 | : | |
8106cdd5 | 3561 | else |
ec6a6fbe AK |
3562 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3563 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3564 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3565 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3566 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3567 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3568 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3569 | fi |
3570 | ||
d0191583 JM |
3571 | ac_ext=c |
3572 | ac_cpp='$CPP $CPPFLAGS' | |
3573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3576 | ||
7a197a62 | 3577 | |
ec6a6fbe AK |
3578 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3579 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3580 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3581 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3582 | else |
ec6a6fbe | 3583 | if test -z "$GREP"; then |
d0191583 | 3584 | ac_path_GREP_found=false |
ec6a6fbe AK |
3585 | # Loop through the user's path and test for each of PROGNAME-LIST |
3586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3587 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3588 | do |
3589 | IFS=$as_save_IFS | |
3590 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3591 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3592 | for ac_exec_ext in '' $ac_executable_extensions; do |
3593 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3594 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3595 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3596 | # Check for GNU $ac_path_GREP |
3597 | case `"$ac_path_GREP" --version 2>&1` in | |
3598 | *GNU*) | |
3599 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3600 | *) | |
3601 | ac_count=0 | |
ec6a6fbe | 3602 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3603 | while : |
3604 | do | |
3605 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3606 | mv "conftest.tmp" "conftest.in" | |
3607 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3608 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3609 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3610 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3611 | ac_count=`expr $ac_count + 1` | |
3612 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3613 | # Best one so far, save it but keep looking for a better one | |
3614 | ac_cv_path_GREP="$ac_path_GREP" | |
3615 | ac_path_GREP_max=$ac_count | |
3616 | fi | |
3617 | # 10*(2^10) chars as input seems more than enough | |
3618 | test $ac_count -gt 10 && break | |
3619 | done | |
3620 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3621 | esac | |
3622 | ||
ec6a6fbe AK |
3623 | $ac_path_GREP_found && break 3 |
3624 | done | |
d0191583 | 3625 | done |
ad6254c5 | 3626 | done |
7a197a62 | 3627 | IFS=$as_save_IFS |
ec6a6fbe AK |
3628 | if test -z "$ac_cv_path_GREP"; then |
3629 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3630 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3631 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3632 | fi |
80992638 | 3633 | else |
d0191583 | 3634 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3635 | fi |
8106cdd5 | 3636 | |
80992638 | 3637 | fi |
ec6a6fbe AK |
3638 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3639 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3640 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3641 | |
d0191583 | 3642 | |
ec6a6fbe AK |
3643 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3644 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3645 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3646 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3647 | else |
d0191583 JM |
3648 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3649 | then ac_cv_path_EGREP="$GREP -E" | |
3650 | else | |
ec6a6fbe | 3651 | if test -z "$EGREP"; then |
d0191583 | 3652 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3653 | # Loop through the user's path and test for each of PROGNAME-LIST |
3654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3655 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3656 | do |
3657 | IFS=$as_save_IFS | |
3658 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3659 | for ac_prog in egrep; do |
ec6a6fbe AK |
3660 | for ac_exec_ext in '' $ac_executable_extensions; do |
3661 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3662 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3663 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3664 | # Check for GNU $ac_path_EGREP |
3665 | case `"$ac_path_EGREP" --version 2>&1` in | |
3666 | *GNU*) | |
3667 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3668 | *) | |
3669 | ac_count=0 | |
ec6a6fbe | 3670 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3671 | while : |
3672 | do | |
3673 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3674 | mv "conftest.tmp" "conftest.in" | |
3675 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3676 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3677 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3678 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3679 | ac_count=`expr $ac_count + 1` | |
3680 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3681 | # Best one so far, save it but keep looking for a better one | |
3682 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3683 | ac_path_EGREP_max=$ac_count | |
3684 | fi | |
3685 | # 10*(2^10) chars as input seems more than enough | |
3686 | test $ac_count -gt 10 && break | |
3687 | done | |
3688 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3689 | esac |
8a2fc586 | 3690 | |
ec6a6fbe AK |
3691 | $ac_path_EGREP_found && break 3 |
3692 | done | |
d0191583 | 3693 | done |
8a2fc586 | 3694 | done |
7a197a62 | 3695 | IFS=$as_save_IFS |
ec6a6fbe AK |
3696 | if test -z "$ac_cv_path_EGREP"; then |
3697 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3698 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3699 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3700 | fi |
d0191583 JM |
3701 | else |
3702 | ac_cv_path_EGREP=$EGREP | |
3703 | fi | |
ad6254c5 | 3704 | |
d0191583 JM |
3705 | fi |
3706 | fi | |
ec6a6fbe AK |
3707 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3708 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3709 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3710 | |
3711 | ||
d0191583 | 3712 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3713 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3714 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3715 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3716 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3717 | else |
d0191583 | 3718 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3719 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3720 | /* confdefs.h. */ |
3721 | _ACEOF | |
3722 | cat confdefs.h >>conftest.$ac_ext | |
3723 | cat >>conftest.$ac_ext <<_ACEOF | |
3724 | /* end confdefs.h. */ | |
d0191583 JM |
3725 | #include <sgtty.h> |
3726 | Autoconf TIOCGETP | |
ad6254c5 | 3727 | _ACEOF |
d0191583 JM |
3728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3729 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3730 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3731 | else |
d0191583 | 3732 | ac_cv_prog_gcc_traditional=no |
80992638 | 3733 | fi |
d0191583 | 3734 | rm -f conftest* |
ad6254c5 | 3735 | |
8106cdd5 | 3736 | |
d0191583 JM |
3737 | if test $ac_cv_prog_gcc_traditional = no; then |
3738 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3739 | /* confdefs.h. */ |
3740 | _ACEOF | |
3741 | cat confdefs.h >>conftest.$ac_ext | |
3742 | cat >>conftest.$ac_ext <<_ACEOF | |
3743 | /* end confdefs.h. */ | |
d0191583 JM |
3744 | #include <termio.h> |
3745 | Autoconf TCGETA | |
ad6254c5 | 3746 | _ACEOF |
d0191583 JM |
3747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3748 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3749 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3750 | fi |
d0191583 | 3751 | rm -f conftest* |
795ca3e5 | 3752 | |
d0191583 | 3753 | fi |
795ca3e5 | 3754 | fi |
ec6a6fbe AK |
3755 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3756 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3757 | if test $ac_cv_prog_gcc_traditional = yes; then |
3758 | CC="$CC -traditional" | |
3759 | fi | |
795ca3e5 AK |
3760 | fi |
3761 | ||
d0191583 JM |
3762 | # Find a good install program. We prefer a C program (faster), |
3763 | # so one script is as good as another. But avoid the broken or | |
3764 | # incompatible versions: | |
3765 | # SysV /etc/install, /usr/sbin/install | |
3766 | # SunOS /usr/etc/install | |
3767 | # IRIX /sbin/install | |
3768 | # AIX /bin/install | |
3769 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3770 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3771 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3772 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3773 | # OS/2's system install, which has a completely different semantic | |
3774 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3775 | # Reject install programs that cannot install multiple files. |
3776 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3777 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3778 | if test -z "$INSTALL"; then |
3779 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3780 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3781 | else |
d0191583 JM |
3782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3783 | for as_dir in $PATH | |
3784 | do | |
3785 | IFS=$as_save_IFS | |
3786 | test -z "$as_dir" && as_dir=. | |
3787 | # Account for people who put trailing slashes in PATH elements. | |
3788 | case $as_dir/ in | |
3789 | ./ | .// | /cC/* | \ | |
3790 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3791 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3792 | /usr/ucb/* ) ;; | |
3793 | *) | |
3794 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3795 | # Don't use installbsd from OSF since it installs stuff as root | |
3796 | # by default. | |
3797 | for ac_prog in ginstall scoinst install; do | |
3798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3799 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3800 | if test $ac_prog = install && | |
3801 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3802 | # AIX install. It has an incompatible calling convention. | |
3803 | : | |
3804 | elif test $ac_prog = install && | |
3805 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3806 | # program-specific install script used by HP pwplus--don't use. | |
3807 | : | |
3808 | else | |
ec6a6fbe AK |
3809 | rm -rf conftest.one conftest.two conftest.dir |
3810 | echo one > conftest.one | |
3811 | echo two > conftest.two | |
3812 | mkdir conftest.dir | |
3813 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3814 | test -s conftest.one && test -s conftest.two && | |
3815 | test -s conftest.dir/conftest.one && | |
3816 | test -s conftest.dir/conftest.two | |
3817 | then | |
3818 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3819 | break 3 | |
3820 | fi | |
d0191583 JM |
3821 | fi |
3822 | fi | |
3823 | done | |
3824 | done | |
3825 | ;; | |
3826 | esac | |
ec6a6fbe | 3827 | |
d0191583 JM |
3828 | done |
3829 | IFS=$as_save_IFS | |
80992638 | 3830 | |
ec6a6fbe | 3831 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3832 | |
3833 | fi | |
3834 | if test "${ac_cv_path_install+set}" = set; then | |
3835 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3836 | else |
d0191583 JM |
3837 | # As a last resort, use the slow shell script. Don't cache a |
3838 | # value for INSTALL within a source directory, because that will | |
3839 | # break other packages using the cache if that directory is | |
3840 | # removed, or if the value is a relative name. | |
3841 | INSTALL=$ac_install_sh | |
7a197a62 | 3842 | fi |
d0191583 | 3843 | fi |
ec6a6fbe AK |
3844 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3845 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3846 | |
d0191583 JM |
3847 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3848 | # It thinks the first close brace ends the variable substitution. | |
3849 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3850 | |
d0191583 | 3851 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3852 | |
d0191583 JM |
3853 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3854 | ||
ec6a6fbe AK |
3855 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3856 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3857 | LN_S=$as_ln_s |
3858 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3859 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3860 | $as_echo "yes" >&6; } | |
d0191583 | 3861 | else |
ec6a6fbe AK |
3862 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3863 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3864 | fi |
d0191583 | 3865 | |
ec6a6fbe AK |
3866 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3867 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3868 | set x ${MAKE-make} | |
3869 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3870 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3871 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3872 | else |
d0191583 JM |
3873 | cat >conftest.make <<\_ACEOF |
3874 | SHELL = /bin/sh | |
3875 | all: | |
3876 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3877 | _ACEOF | |
3878 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3879 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3880 | *@@@%%%=?*=@@@%%%*) | |
3881 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3882 | *) | |
3883 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3884 | esac | |
3885 | rm -f conftest.make | |
ad6254c5 | 3886 | fi |
d0191583 | 3887 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3888 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3889 | $as_echo "yes" >&6; } | |
d0191583 JM |
3890 | SET_MAKE= |
3891 | else | |
ec6a6fbe AK |
3892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3893 | $as_echo "no" >&6; } | |
d0191583 | 3894 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3895 | fi |
8106cdd5 | 3896 | |
ec6a6fbe AK |
3897 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3898 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3899 | if test -z "$MKDIR_P"; then |
3900 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3901 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3902 | else |
3903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3904 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3905 | do | |
3906 | IFS=$as_save_IFS | |
3907 | test -z "$as_dir" && as_dir=. | |
3908 | for ac_prog in mkdir gmkdir; do | |
3909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3910 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3911 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3912 | 'mkdir (GNU coreutils) '* | \ | |
3913 | 'mkdir (coreutils) '* | \ | |
3914 | 'mkdir (fileutils) '4.1*) | |
3915 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3916 | break 3;; | |
3917 | esac | |
3918 | done | |
3919 | done | |
3920 | done | |
3921 | IFS=$as_save_IFS | |
3922 | ||
3923 | fi | |
3924 | ||
3925 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3926 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3927 | else | |
3928 | # As a last resort, use the slow shell script. Don't cache a | |
3929 | # value for MKDIR_P within a source directory, because that will | |
3930 | # break other packages using the cache if that directory is | |
3931 | # removed, or if the value is a relative name. | |
3932 | test -d ./--version && rmdir ./--version | |
3933 | MKDIR_P="$ac_install_sh -d" | |
3934 | fi | |
3935 | fi | |
ec6a6fbe AK |
3936 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3937 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3938 | |
d0191583 JM |
3939 | if test -n "$ac_tool_prefix"; then |
3940 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3941 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3942 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3943 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3944 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3945 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3946 | else |
3947 | if test -n "$RANLIB"; then | |
3948 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3949 | else | |
3950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3951 | for as_dir in $PATH | |
3952 | do | |
3953 | IFS=$as_save_IFS | |
3954 | test -z "$as_dir" && as_dir=. | |
3955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3957 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3958 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3959 | break 2 |
3960 | fi | |
3961 | done | |
3962 | done | |
3963 | IFS=$as_save_IFS | |
8106cdd5 | 3964 | |
795ca3e5 | 3965 | fi |
d0191583 JM |
3966 | fi |
3967 | RANLIB=$ac_cv_prog_RANLIB | |
3968 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3969 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3970 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3971 | else |
ec6a6fbe AK |
3972 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3973 | $as_echo "no" >&6; } | |
d0191583 JM |
3974 | fi |
3975 | ||
8106cdd5 | 3976 | |
ad6254c5 | 3977 | fi |
d0191583 JM |
3978 | if test -z "$ac_cv_prog_RANLIB"; then |
3979 | ac_ct_RANLIB=$RANLIB | |
3980 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3981 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3982 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3983 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3984 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3985 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3986 | else |
d0191583 JM |
3987 | if test -n "$ac_ct_RANLIB"; then |
3988 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3989 | else | |
3990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3991 | for as_dir in $PATH | |
8106cdd5 | 3992 | do |
d0191583 JM |
3993 | IFS=$as_save_IFS |
3994 | test -z "$as_dir" && as_dir=. | |
3995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3997 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3998 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3999 | break 2 |
4000 | fi | |
4001 | done | |
4002 | done | |
4003 | IFS=$as_save_IFS | |
4004 | ||
4005 | fi | |
4006 | fi | |
4007 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4008 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
4009 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4010 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4011 | else |
ec6a6fbe AK |
4012 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4013 | $as_echo "no" >&6; } | |
d0191583 | 4014 | fi |
ad6254c5 | 4015 | |
d0191583 JM |
4016 | if test "x$ac_ct_RANLIB" = x; then |
4017 | RANLIB=":" | |
4018 | else | |
4019 | case $cross_compiling:$ac_tool_warned in | |
4020 | yes:) | |
ec6a6fbe AK |
4021 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4022 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4023 | ac_tool_warned=yes ;; |
4024 | esac | |
4025 | RANLIB=$ac_ct_RANLIB | |
4026 | fi | |
4027 | else | |
4028 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4029 | fi |
7a197a62 | 4030 | |
d0191583 JM |
4031 | # Extract the first word of "cflow", so it can be a program name with args. |
4032 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4033 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4034 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4035 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4036 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4037 | else |
4038 | case $CFLOW_CMD in | |
4039 | [\\/]* | ?:[\\/]*) | |
4040 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4041 | ;; | |
4042 | *) | |
4043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4044 | for as_dir in $PATH | |
4045 | do | |
4046 | IFS=$as_save_IFS | |
4047 | test -z "$as_dir" && as_dir=. | |
4048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4050 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4051 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4052 | break 2 |
4053 | fi | |
4054 | done | |
4055 | done | |
4056 | IFS=$as_save_IFS | |
ad6254c5 | 4057 | |
d0191583 | 4058 | ;; |
7a197a62 | 4059 | esac |
d0191583 JM |
4060 | fi |
4061 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4062 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4063 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4064 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4065 | else |
ec6a6fbe AK |
4066 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4067 | $as_echo "no" >&6; } | |
795ca3e5 | 4068 | fi |
7a197a62 | 4069 | |
ad6254c5 | 4070 | |
d0191583 JM |
4071 | # Extract the first word of "cscope", so it can be a program name with args. |
4072 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4073 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4074 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4075 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4076 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4077 | else |
4078 | case $CSCOPE_CMD in | |
4079 | [\\/]* | ?:[\\/]*) | |
4080 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4081 | ;; | |
4082 | *) | |
4083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4084 | for as_dir in $PATH | |
4085 | do | |
4086 | IFS=$as_save_IFS | |
4087 | test -z "$as_dir" && as_dir=. | |
4088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4090 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4091 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4092 | break 2 |
4093 | fi | |
795ca3e5 | 4094 | done |
d0191583 JM |
4095 | done |
4096 | IFS=$as_save_IFS | |
795ca3e5 | 4097 | |
d0191583 JM |
4098 | ;; |
4099 | esac | |
ad6254c5 | 4100 | fi |
d0191583 JM |
4101 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4102 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4103 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4104 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4105 | else |
ec6a6fbe AK |
4106 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4107 | $as_echo "no" >&6; } | |
795ca3e5 | 4108 | fi |
ad6254c5 | 4109 | |
7a197a62 | 4110 | |
ad6254c5 | 4111 | |
d0191583 JM |
4112 | ################################################################################ |
4113 | ||
4114 | ||
4115 | ||
4116 | ||
4117 | ||
4118 | ac_header_dirent=no | |
4119 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4120 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4121 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4122 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4123 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4124 | $as_echo_n "(cached) " >&6 |
d0191583 | 4125 | else |
ad6254c5 | 4126 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4127 | /* confdefs.h. */ |
4128 | _ACEOF | |
4129 | cat confdefs.h >>conftest.$ac_ext | |
4130 | cat >>conftest.$ac_ext <<_ACEOF | |
4131 | /* end confdefs.h. */ | |
d0191583 JM |
4132 | #include <sys/types.h> |
4133 | #include <$ac_hdr> | |
4134 | ||
4135 | int | |
4136 | main () | |
4137 | { | |
4138 | if ((DIR *) 0) | |
4139 | return 0; | |
4140 | ; | |
4141 | return 0; | |
4142 | } | |
ad6254c5 | 4143 | _ACEOF |
d0191583 JM |
4144 | rm -f conftest.$ac_objext |
4145 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4146 | case "(($ac_try" in |
4147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4148 | *) ac_try_echo=$ac_try;; | |
4149 | esac | |
ec6a6fbe AK |
4150 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4151 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4152 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4153 | ac_status=$? |
4154 | grep -v '^ *+' conftest.er1 >conftest.err | |
4155 | rm -f conftest.er1 | |
4156 | cat conftest.err >&5 | |
ec6a6fbe | 4157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4158 | (exit $ac_status); } && { |
4159 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4160 | test ! -s conftest.err |
d0191583 JM |
4161 | } && test -s conftest.$ac_objext; then |
4162 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4163 | else |
ec6a6fbe | 4164 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4165 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4166 | |
d0191583 | 4167 | eval "$as_ac_Header=no" |
795ca3e5 | 4168 | fi |
7a197a62 | 4169 | |
d0191583 | 4170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4171 | fi |
ec6a6fbe AK |
4172 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4173 | $as_echo "$as_val"'` | |
4174 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4175 | $as_echo "$ac_res" >&6; } | |
4176 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4177 | $as_echo "$as_val"'` | |
4178 | if test "x$as_val" = x""yes; then | |
d0191583 | 4179 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4180 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4181 | _ACEOF |
795ca3e5 | 4182 | |
d0191583 JM |
4183 | ac_header_dirent=$ac_hdr; break |
4184 | fi | |
ad6254c5 | 4185 | |
d0191583 JM |
4186 | done |
4187 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4188 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4189 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4190 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4191 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4192 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4193 | else |
d0191583 JM |
4194 | ac_func_search_save_LIBS=$LIBS |
4195 | cat >conftest.$ac_ext <<_ACEOF | |
4196 | /* confdefs.h. */ | |
4197 | _ACEOF | |
4198 | cat confdefs.h >>conftest.$ac_ext | |
4199 | cat >>conftest.$ac_ext <<_ACEOF | |
4200 | /* end confdefs.h. */ | |
ad6254c5 | 4201 | |
d0191583 JM |
4202 | /* Override any GCC internal prototype to avoid an error. |
4203 | Use char because int might match the return type of a GCC | |
4204 | builtin and then its argument prototype would still apply. */ | |
4205 | #ifdef __cplusplus | |
4206 | extern "C" | |
4207 | #endif | |
4208 | char opendir (); | |
4209 | int | |
4210 | main () | |
4211 | { | |
4212 | return opendir (); | |
4213 | ; | |
4214 | return 0; | |
4215 | } | |
4216 | _ACEOF | |
4217 | for ac_lib in '' dir; do | |
4218 | if test -z "$ac_lib"; then | |
4219 | ac_res="none required" | |
4220 | else | |
4221 | ac_res=-l$ac_lib | |
4222 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4223 | fi | |
4224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4225 | if { (ac_try="$ac_link" | |
4226 | case "(($ac_try" in | |
4227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4228 | *) ac_try_echo=$ac_try;; | |
4229 | esac | |
ec6a6fbe AK |
4230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4231 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4232 | (eval "$ac_link") 2>conftest.er1 |
4233 | ac_status=$? | |
4234 | grep -v '^ *+' conftest.er1 >conftest.err | |
4235 | rm -f conftest.er1 | |
4236 | cat conftest.err >&5 | |
ec6a6fbe | 4237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4238 | (exit $ac_status); } && { |
4239 | test -z "$ac_c_werror_flag" || | |
4240 | test ! -s conftest.err | |
ec6a6fbe AK |
4241 | } && test -s conftest$ac_exeext && { |
4242 | test "$cross_compiling" = yes || | |
4243 | $as_test_x conftest$ac_exeext | |
4244 | }; then | |
d0191583 JM |
4245 | ac_cv_search_opendir=$ac_res |
4246 | else | |
ec6a6fbe | 4247 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4248 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4249 | |
ad6254c5 | 4250 | |
795ca3e5 | 4251 | fi |
ad6254c5 | 4252 | |
ec6a6fbe | 4253 | rm -rf conftest.dSYM |
d0191583 JM |
4254 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4255 | conftest$ac_exeext | |
4256 | if test "${ac_cv_search_opendir+set}" = set; then | |
4257 | break | |
7a197a62 | 4258 | fi |
d0191583 JM |
4259 | done |
4260 | if test "${ac_cv_search_opendir+set}" = set; then | |
4261 | : | |
7a197a62 | 4262 | else |
d0191583 | 4263 | ac_cv_search_opendir=no |
7a197a62 | 4264 | fi |
d0191583 JM |
4265 | rm conftest.$ac_ext |
4266 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4267 | fi |
ec6a6fbe AK |
4268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4269 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4270 | ac_res=$ac_cv_search_opendir |
4271 | if test "$ac_res" != no; then | |
4272 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4273 | |
d0191583 | 4274 | fi |
7a197a62 | 4275 | |
7a197a62 | 4276 | else |
ec6a6fbe AK |
4277 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4278 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4279 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4280 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4281 | else |
d0191583 JM |
4282 | ac_func_search_save_LIBS=$LIBS |
4283 | cat >conftest.$ac_ext <<_ACEOF | |
4284 | /* confdefs.h. */ | |
4285 | _ACEOF | |
4286 | cat confdefs.h >>conftest.$ac_ext | |
4287 | cat >>conftest.$ac_ext <<_ACEOF | |
4288 | /* end confdefs.h. */ | |
7a197a62 | 4289 | |
d0191583 JM |
4290 | /* Override any GCC internal prototype to avoid an error. |
4291 | Use char because int might match the return type of a GCC | |
4292 | builtin and then its argument prototype would still apply. */ | |
4293 | #ifdef __cplusplus | |
4294 | extern "C" | |
4295 | #endif | |
4296 | char opendir (); | |
4297 | int | |
4298 | main () | |
4299 | { | |
4300 | return opendir (); | |
4301 | ; | |
4302 | return 0; | |
4303 | } | |
4304 | _ACEOF | |
4305 | for ac_lib in '' x; do | |
4306 | if test -z "$ac_lib"; then | |
4307 | ac_res="none required" | |
4308 | else | |
4309 | ac_res=-l$ac_lib | |
4310 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4311 | fi | |
4312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4313 | if { (ac_try="$ac_link" | |
4314 | case "(($ac_try" in | |
4315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4316 | *) ac_try_echo=$ac_try;; | |
4317 | esac | |
ec6a6fbe AK |
4318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4319 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4320 | (eval "$ac_link") 2>conftest.er1 |
4321 | ac_status=$? | |
4322 | grep -v '^ *+' conftest.er1 >conftest.err | |
4323 | rm -f conftest.er1 | |
4324 | cat conftest.err >&5 | |
ec6a6fbe | 4325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4326 | (exit $ac_status); } && { |
4327 | test -z "$ac_c_werror_flag" || | |
4328 | test ! -s conftest.err | |
ec6a6fbe AK |
4329 | } && test -s conftest$ac_exeext && { |
4330 | test "$cross_compiling" = yes || | |
4331 | $as_test_x conftest$ac_exeext | |
4332 | }; then | |
d0191583 JM |
4333 | ac_cv_search_opendir=$ac_res |
4334 | else | |
ec6a6fbe | 4335 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4336 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4337 | |
4338 | ||
4339 | fi | |
4340 | ||
ec6a6fbe | 4341 | rm -rf conftest.dSYM |
d0191583 JM |
4342 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4343 | conftest$ac_exeext | |
4344 | if test "${ac_cv_search_opendir+set}" = set; then | |
4345 | break | |
7a197a62 | 4346 | fi |
d0191583 JM |
4347 | done |
4348 | if test "${ac_cv_search_opendir+set}" = set; then | |
4349 | : | |
7a197a62 | 4350 | else |
d0191583 | 4351 | ac_cv_search_opendir=no |
7a197a62 | 4352 | fi |
d0191583 JM |
4353 | rm conftest.$ac_ext |
4354 | LIBS=$ac_func_search_save_LIBS | |
4355 | fi | |
ec6a6fbe AK |
4356 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4357 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4358 | ac_res=$ac_cv_search_opendir |
4359 | if test "$ac_res" != no; then | |
4360 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4361 | |
7a197a62 | 4362 | fi |
7a197a62 | 4363 | |
d0191583 | 4364 | fi |
7a197a62 | 4365 | |
ec6a6fbe AK |
4366 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4367 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4368 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4369 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4370 | else |
4371 | cat >conftest.$ac_ext <<_ACEOF | |
4372 | /* confdefs.h. */ | |
4373 | _ACEOF | |
4374 | cat confdefs.h >>conftest.$ac_ext | |
4375 | cat >>conftest.$ac_ext <<_ACEOF | |
4376 | /* end confdefs.h. */ | |
4377 | #include <stdlib.h> | |
4378 | #include <stdarg.h> | |
4379 | #include <string.h> | |
4380 | #include <float.h> | |
4381 | ||
4382 | int | |
4383 | main () | |
4384 | { | |
4385 | ||
4386 | ; | |
4387 | return 0; | |
4388 | } | |
4389 | _ACEOF | |
4390 | rm -f conftest.$ac_objext | |
4391 | if { (ac_try="$ac_compile" | |
4392 | case "(($ac_try" in | |
4393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4394 | *) ac_try_echo=$ac_try;; | |
4395 | esac | |
ec6a6fbe AK |
4396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4397 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4398 | (eval "$ac_compile") 2>conftest.er1 |
4399 | ac_status=$? | |
4400 | grep -v '^ *+' conftest.er1 >conftest.err | |
4401 | rm -f conftest.er1 | |
4402 | cat conftest.err >&5 | |
ec6a6fbe | 4403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4404 | (exit $ac_status); } && { |
4405 | test -z "$ac_c_werror_flag" || | |
4406 | test ! -s conftest.err | |
4407 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4408 | ac_cv_header_stdc=yes |
4409 | else | |
ec6a6fbe | 4410 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4411 | sed 's/^/| /' conftest.$ac_ext >&5 |
4412 | ||
4413 | ac_cv_header_stdc=no | |
4414 | fi | |
4415 | ||
4416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4417 | ||
4418 | if test $ac_cv_header_stdc = yes; then | |
4419 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4420 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4421 | /* confdefs.h. */ |
4422 | _ACEOF | |
4423 | cat confdefs.h >>conftest.$ac_ext | |
4424 | cat >>conftest.$ac_ext <<_ACEOF | |
4425 | /* end confdefs.h. */ | |
4426 | #include <string.h> | |
8106cdd5 | 4427 | |
ad6254c5 AK |
4428 | _ACEOF |
4429 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4430 | $EGREP "memchr" >/dev/null 2>&1; then | |
4431 | : | |
4432 | else | |
4433 | ac_cv_header_stdc=no | |
80992638 | 4434 | fi |
ad6254c5 | 4435 | rm -f conftest* |
795ca3e5 AK |
4436 | |
4437 | fi | |
4438 | ||
ad6254c5 AK |
4439 | if test $ac_cv_header_stdc = yes; then |
4440 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4442 | /* confdefs.h. */ |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
80992638 | 4447 | #include <stdlib.h> |
ad6254c5 AK |
4448 | |
4449 | _ACEOF | |
80992638 | 4450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4451 | $EGREP "free" >/dev/null 2>&1; then |
4452 | : | |
795ca3e5 | 4453 | else |
ad6254c5 | 4454 | ac_cv_header_stdc=no |
795ca3e5 | 4455 | fi |
80992638 | 4456 | rm -f conftest* |
8106cdd5 | 4457 | |
795ca3e5 AK |
4458 | fi |
4459 | ||
ad6254c5 AK |
4460 | if test $ac_cv_header_stdc = yes; then |
4461 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4462 | if test "$cross_compiling" = yes; then | |
4463 | : | |
795ca3e5 | 4464 | else |
ad6254c5 | 4465 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4466 | /* confdefs.h. */ |
4467 | _ACEOF | |
4468 | cat confdefs.h >>conftest.$ac_ext | |
4469 | cat >>conftest.$ac_ext <<_ACEOF | |
4470 | /* end confdefs.h. */ | |
4471 | #include <ctype.h> | |
7a197a62 | 4472 | #include <stdlib.h> |
ad6254c5 AK |
4473 | #if ((' ' & 0x0FF) == 0x020) |
4474 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4475 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4476 | #else | |
4477 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4478 | (('a' <= (c) && (c) <= 'i') \ |
4479 | || ('j' <= (c) && (c) <= 'r') \ | |
4480 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4481 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4482 | #endif |
ad6254c5 AK |
4483 | |
4484 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4485 | int | |
4486 | main () | |
4487 | { | |
4488 | int i; | |
4489 | for (i = 0; i < 256; i++) | |
4490 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4491 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4492 | return 2; |
4493 | return 0; | |
ad6254c5 AK |
4494 | } |
4495 | _ACEOF | |
4496 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4497 | if { (ac_try="$ac_link" |
4498 | case "(($ac_try" in | |
4499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4500 | *) ac_try_echo=$ac_try;; | |
4501 | esac | |
ec6a6fbe AK |
4502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4503 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4504 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4505 | ac_status=$? |
ec6a6fbe | 4506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4507 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4508 | { (case "(($ac_try" in |
4509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4510 | *) ac_try_echo=$ac_try;; | |
4511 | esac | |
ec6a6fbe AK |
4512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4513 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4514 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4515 | ac_status=$? |
ec6a6fbe | 4516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4517 | (exit $ac_status); }; }; then |
4518 | : | |
795ca3e5 | 4519 | else |
ec6a6fbe AK |
4520 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4521 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4523 | |
ad6254c5 AK |
4524 | ( exit $ac_status ) |
4525 | ac_cv_header_stdc=no | |
80992638 | 4526 | fi |
ec6a6fbe | 4527 | rm -rf conftest.dSYM |
7a197a62 | 4528 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4529 | fi |
7a197a62 AK |
4530 | |
4531 | ||
ad6254c5 AK |
4532 | fi |
4533 | fi | |
ec6a6fbe AK |
4534 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4535 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4536 | if test $ac_cv_header_stdc = yes; then |
4537 | ||
4538 | cat >>confdefs.h <<\_ACEOF | |
4539 | #define STDC_HEADERS 1 | |
4540 | _ACEOF | |
795ca3e5 AK |
4541 | |
4542 | fi | |
4543 | ||
d911ec67 | 4544 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4545 | |
ad6254c5 | 4546 | |
7a197a62 | 4547 | |
8106cdd5 | 4548 | |
795ca3e5 | 4549 | |
795ca3e5 | 4550 | |
d911ec67 AK |
4551 | |
4552 | ||
4553 | ||
4554 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4555 | inttypes.h stdint.h unistd.h | |
4556 | do | |
4557 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4558 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4559 | $as_echo_n "checking for $ac_header... " >&6; } | |
4560 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4561 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4562 | else |
ad6254c5 | 4563 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4564 | /* confdefs.h. */ |
4565 | _ACEOF | |
4566 | cat confdefs.h >>conftest.$ac_ext | |
4567 | cat >>conftest.$ac_ext <<_ACEOF | |
4568 | /* end confdefs.h. */ | |
d911ec67 | 4569 | $ac_includes_default |
ad6254c5 | 4570 | |
d911ec67 | 4571 | #include <$ac_header> |
ad6254c5 AK |
4572 | _ACEOF |
4573 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4574 | if { (ac_try="$ac_compile" |
4575 | case "(($ac_try" in | |
4576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4577 | *) ac_try_echo=$ac_try;; | |
4578 | esac | |
ec6a6fbe AK |
4579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4580 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4581 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4582 | ac_status=$? |
8a2fc586 AK |
4583 | grep -v '^ *+' conftest.er1 >conftest.err |
4584 | rm -f conftest.er1 | |
4585 | cat conftest.err >&5 | |
ec6a6fbe | 4586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4587 | (exit $ac_status); } && { |
4588 | test -z "$ac_c_werror_flag" || | |
4589 | test ! -s conftest.err | |
4590 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4591 | eval "$as_ac_Header=yes" |
795ca3e5 | 4592 | else |
ec6a6fbe | 4593 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4594 | sed 's/^/| /' conftest.$ac_ext >&5 |
4595 | ||
d911ec67 | 4596 | eval "$as_ac_Header=no" |
795ca3e5 | 4597 | fi |
7a197a62 AK |
4598 | |
4599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4600 | fi |
d911ec67 AK |
4601 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4602 | $as_echo "$as_val"'` | |
4603 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4604 | $as_echo "$ac_res" >&6; } | |
4605 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4606 | $as_echo "$as_val"'` | |
4607 | if test "x$as_val" = x""yes; then | |
4608 | cat >>confdefs.h <<_ACEOF | |
4609 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4610 | _ACEOF |
b896caa1 | 4611 | |
8106cdd5 | 4612 | fi |
b896caa1 | 4613 | |
d911ec67 | 4614 | done |
d0191583 JM |
4615 | |
4616 | ||
d911ec67 AK |
4617 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4618 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4619 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4620 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4621 | else |
4622 | cat >conftest.$ac_ext <<_ACEOF | |
4623 | /* confdefs.h. */ | |
4624 | _ACEOF | |
4625 | cat confdefs.h >>conftest.$ac_ext | |
4626 | cat >>conftest.$ac_ext <<_ACEOF | |
4627 | /* end confdefs.h. */ | |
d911ec67 AK |
4628 | #include <sys/types.h> |
4629 | int | |
4630 | main () | |
4631 | { | |
4632 | return makedev(0, 0); | |
4633 | ; | |
4634 | return 0; | |
4635 | } | |
d0191583 | 4636 | _ACEOF |
d911ec67 AK |
4637 | rm -f conftest.$ac_objext conftest$ac_exeext |
4638 | if { (ac_try="$ac_link" | |
d0191583 JM |
4639 | case "(($ac_try" in |
4640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4641 | *) ac_try_echo=$ac_try;; | |
4642 | esac | |
ec6a6fbe AK |
4643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4644 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4645 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4646 | ac_status=$? |
4647 | grep -v '^ *+' conftest.er1 >conftest.err | |
4648 | rm -f conftest.er1 | |
4649 | cat conftest.err >&5 | |
ec6a6fbe | 4650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4651 | (exit $ac_status); } && { |
4652 | test -z "$ac_c_werror_flag" || | |
4653 | test ! -s conftest.err | |
d911ec67 AK |
4654 | } && test -s conftest$ac_exeext && { |
4655 | test "$cross_compiling" = yes || | |
4656 | $as_test_x conftest$ac_exeext | |
4657 | }; then | |
4658 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4659 | else |
ec6a6fbe | 4660 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4661 | sed 's/^/| /' conftest.$ac_ext >&5 |
4662 | ||
d911ec67 | 4663 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4664 | fi |
4665 | ||
d911ec67 AK |
4666 | rm -rf conftest.dSYM |
4667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4668 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4669 | |
4670 | fi | |
d911ec67 AK |
4671 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4672 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4673 | |
d911ec67 AK |
4674 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4675 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4676 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4677 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4678 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4679 | $as_echo_n "(cached) " >&6 |
d0191583 | 4680 | fi |
d911ec67 AK |
4681 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4682 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4683 | else |
d0191583 | 4684 | # Is the header compilable? |
d911ec67 AK |
4685 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4686 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4687 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4688 | /* confdefs.h. */ |
4689 | _ACEOF | |
4690 | cat confdefs.h >>conftest.$ac_ext | |
4691 | cat >>conftest.$ac_ext <<_ACEOF | |
4692 | /* end confdefs.h. */ | |
4693 | $ac_includes_default | |
d911ec67 | 4694 | #include <sys/mkdev.h> |
ad6254c5 AK |
4695 | _ACEOF |
4696 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4697 | if { (ac_try="$ac_compile" |
4698 | case "(($ac_try" in | |
4699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4700 | *) ac_try_echo=$ac_try;; | |
4701 | esac | |
ec6a6fbe AK |
4702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4703 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4704 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4705 | ac_status=$? |
8a2fc586 AK |
4706 | grep -v '^ *+' conftest.er1 >conftest.err |
4707 | rm -f conftest.er1 | |
4708 | cat conftest.err >&5 | |
ec6a6fbe | 4709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4710 | (exit $ac_status); } && { |
4711 | test -z "$ac_c_werror_flag" || | |
4712 | test ! -s conftest.err | |
4713 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4714 | ac_header_compiler=yes |
ad6254c5 | 4715 | else |
ec6a6fbe | 4716 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4717 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4718 | |
d0191583 | 4719 | ac_header_compiler=no |
ad6254c5 | 4720 | fi |
7a197a62 AK |
4721 | |
4722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4723 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4724 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4725 | |
4726 | # Is the header present? | |
d911ec67 AK |
4727 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4728 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4729 | cat >conftest.$ac_ext <<_ACEOF |
4730 | /* confdefs.h. */ | |
4731 | _ACEOF | |
4732 | cat confdefs.h >>conftest.$ac_ext | |
4733 | cat >>conftest.$ac_ext <<_ACEOF | |
4734 | /* end confdefs.h. */ | |
d911ec67 | 4735 | #include <sys/mkdev.h> |
d0191583 JM |
4736 | _ACEOF |
4737 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4738 | case "(($ac_try" in | |
4739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4740 | *) ac_try_echo=$ac_try;; | |
4741 | esac | |
ec6a6fbe AK |
4742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4743 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4744 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4745 | ac_status=$? | |
4746 | grep -v '^ *+' conftest.er1 >conftest.err | |
4747 | rm -f conftest.er1 | |
4748 | cat conftest.err >&5 | |
ec6a6fbe | 4749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4750 | (exit $ac_status); } >/dev/null && { |
4751 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4752 | test ! -s conftest.err | |
4753 | }; then | |
4754 | ac_header_preproc=yes | |
4755 | else | |
ec6a6fbe | 4756 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4757 | sed 's/^/| /' conftest.$ac_ext >&5 |
4758 | ||
4759 | ac_header_preproc=no | |
4760 | fi | |
4761 | ||
4762 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4763 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4764 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4765 | |
4766 | # So? What about this header? | |
4767 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4768 | yes:no: ) | |
d911ec67 AK |
4769 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4770 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4771 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4772 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4773 | ac_header_preproc=yes |
4774 | ;; | |
4775 | no:yes:* ) | |
d911ec67 AK |
4776 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4777 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4778 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4779 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4780 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4781 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4782 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4783 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4784 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4785 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4786 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4787 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4788 | |
4789 | ;; | |
4790 | esac | |
d911ec67 AK |
4791 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4792 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4793 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4794 | $as_echo_n "(cached) " >&6 |
d0191583 | 4795 | else |
d911ec67 | 4796 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4797 | fi |
d911ec67 AK |
4798 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4799 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4800 | |
4801 | fi | |
d911ec67 AK |
4802 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4803 | ||
4804 | cat >>confdefs.h <<\_ACEOF | |
4805 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4806 | _ACEOF |
a38df97f | 4807 | |
80992638 AK |
4808 | fi |
4809 | ||
80992638 | 4810 | |
5a52dca9 | 4811 | |
d911ec67 AK |
4812 | if test $ac_cv_header_sys_mkdev_h = no; then |
4813 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4814 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4815 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4816 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4817 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4818 | fi |
d911ec67 AK |
4819 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4820 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4821 | else |
4822 | # Is the header compilable? | |
d911ec67 AK |
4823 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4824 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4825 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4826 | /* confdefs.h. */ |
4827 | _ACEOF | |
4828 | cat confdefs.h >>conftest.$ac_ext | |
4829 | cat >>conftest.$ac_ext <<_ACEOF | |
4830 | /* end confdefs.h. */ | |
4831 | $ac_includes_default | |
d911ec67 | 4832 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4833 | _ACEOF |
4834 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4835 | if { (ac_try="$ac_compile" |
4836 | case "(($ac_try" in | |
4837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4838 | *) ac_try_echo=$ac_try;; | |
4839 | esac | |
ec6a6fbe AK |
4840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4841 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4842 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4843 | ac_status=$? |
8a2fc586 AK |
4844 | grep -v '^ *+' conftest.er1 >conftest.err |
4845 | rm -f conftest.er1 | |
4846 | cat conftest.err >&5 | |
ec6a6fbe | 4847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4848 | (exit $ac_status); } && { |
4849 | test -z "$ac_c_werror_flag" || | |
4850 | test ! -s conftest.err | |
4851 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4852 | ac_header_compiler=yes |
4853 | else | |
ec6a6fbe | 4854 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4855 | sed 's/^/| /' conftest.$ac_ext >&5 |
4856 | ||
4857 | ac_header_compiler=no | |
4858 | fi | |
4859 | ||
4860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4861 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4862 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4863 | |
4864 | # Is the header present? | |
d911ec67 AK |
4865 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4866 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4867 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4868 | /* confdefs.h. */ |
4869 | _ACEOF | |
4870 | cat confdefs.h >>conftest.$ac_ext | |
4871 | cat >>conftest.$ac_ext <<_ACEOF | |
4872 | /* end confdefs.h. */ | |
d911ec67 | 4873 | #include <sys/sysmacros.h> |
ad6254c5 | 4874 | _ACEOF |
7a197a62 AK |
4875 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4876 | case "(($ac_try" in | |
4877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4878 | *) ac_try_echo=$ac_try;; | |
4879 | esac | |
ec6a6fbe AK |
4880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4881 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4882 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4883 | ac_status=$? |
4884 | grep -v '^ *+' conftest.er1 >conftest.err | |
4885 | rm -f conftest.er1 | |
4886 | cat conftest.err >&5 | |
ec6a6fbe | 4887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4888 | (exit $ac_status); } >/dev/null && { |
4889 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4890 | test ! -s conftest.err | |
4891 | }; then | |
ad6254c5 AK |
4892 | ac_header_preproc=yes |
4893 | else | |
ec6a6fbe | 4894 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4895 | sed 's/^/| /' conftest.$ac_ext >&5 |
4896 | ||
4897 | ac_header_preproc=no | |
4898 | fi | |
7a197a62 | 4899 | |
ad6254c5 | 4900 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4901 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4902 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4903 | |
4904 | # So? What about this header? | |
8a2fc586 AK |
4905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4906 | yes:no: ) | |
d911ec67 AK |
4907 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4908 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4909 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4910 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4911 | ac_header_preproc=yes |
ad6254c5 | 4912 | ;; |
8a2fc586 | 4913 | no:yes:* ) |
d911ec67 AK |
4914 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4915 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4916 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4917 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4918 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4919 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4920 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4921 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4922 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4923 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4924 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4925 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4926 | |
ad6254c5 AK |
4927 | ;; |
4928 | esac | |
d911ec67 AK |
4929 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4930 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4931 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4932 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4933 | else |
d911ec67 | 4934 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4935 | fi |
d911ec67 AK |
4936 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4937 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4938 | |
4939 | fi | |
d911ec67 AK |
4940 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4941 | ||
4942 | cat >>confdefs.h <<\_ACEOF | |
4943 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4944 | _ACEOF |
b896caa1 | 4945 | |
80992638 AK |
4946 | fi |
4947 | ||
d8ac0fbc | 4948 | |
d911ec67 AK |
4949 | fi |
4950 | fi | |
d8ac0fbc | 4951 | |
d911ec67 AK |
4952 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4953 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4954 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4955 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4956 | else |
d911ec67 | 4957 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4958 | /* confdefs.h. */ |
4959 | _ACEOF | |
4960 | cat confdefs.h >>conftest.$ac_ext | |
4961 | cat >>conftest.$ac_ext <<_ACEOF | |
4962 | /* end confdefs.h. */ | |
d911ec67 AK |
4963 | #include <stdlib.h> |
4964 | #include <stdarg.h> | |
4965 | #include <string.h> | |
4966 | #include <float.h> | |
4967 | ||
4968 | int | |
4969 | main () | |
4970 | { | |
4971 | ||
4972 | ; | |
4973 | return 0; | |
4974 | } | |
ad6254c5 AK |
4975 | _ACEOF |
4976 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4977 | if { (ac_try="$ac_compile" |
4978 | case "(($ac_try" in | |
4979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4980 | *) ac_try_echo=$ac_try;; | |
4981 | esac | |
ec6a6fbe AK |
4982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4983 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4984 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4985 | ac_status=$? |
8a2fc586 AK |
4986 | grep -v '^ *+' conftest.er1 >conftest.err |
4987 | rm -f conftest.er1 | |
4988 | cat conftest.err >&5 | |
ec6a6fbe | 4989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4990 | (exit $ac_status); } && { |
4991 | test -z "$ac_c_werror_flag" || | |
4992 | test ! -s conftest.err | |
4993 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4994 | ac_cv_header_stdc=yes |
ad6254c5 | 4995 | else |
ec6a6fbe | 4996 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4997 | sed 's/^/| /' conftest.$ac_ext >&5 |
4998 | ||
d911ec67 | 4999 | ac_cv_header_stdc=no |
ad6254c5 | 5000 | fi |
7a197a62 AK |
5001 | |
5002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5003 | |
d911ec67 AK |
5004 | if test $ac_cv_header_stdc = yes; then |
5005 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5006 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5007 | /* confdefs.h. */ |
5008 | _ACEOF | |
5009 | cat confdefs.h >>conftest.$ac_ext | |
5010 | cat >>conftest.$ac_ext <<_ACEOF | |
5011 | /* end confdefs.h. */ | |
d911ec67 AK |
5012 | #include <string.h> |
5013 | ||
ad6254c5 | 5014 | _ACEOF |
d911ec67 AK |
5015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5016 | $EGREP "memchr" >/dev/null 2>&1; then | |
5017 | : | |
5018 | else | |
5019 | ac_cv_header_stdc=no | |
5020 | fi | |
5021 | rm -f conftest* | |
5022 | ||
5023 | fi | |
5024 | ||
5025 | if test $ac_cv_header_stdc = yes; then | |
5026 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5027 | cat >conftest.$ac_ext <<_ACEOF | |
5028 | /* confdefs.h. */ | |
5029 | _ACEOF | |
5030 | cat confdefs.h >>conftest.$ac_ext | |
5031 | cat >>conftest.$ac_ext <<_ACEOF | |
5032 | /* end confdefs.h. */ | |
5033 | #include <stdlib.h> | |
5034 | ||
5035 | _ACEOF | |
5036 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5037 | $EGREP "free" >/dev/null 2>&1; then | |
5038 | : | |
5039 | else | |
5040 | ac_cv_header_stdc=no | |
5041 | fi | |
5042 | rm -f conftest* | |
5043 | ||
5044 | fi | |
5045 | ||
5046 | if test $ac_cv_header_stdc = yes; then | |
5047 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5048 | if test "$cross_compiling" = yes; then | |
5049 | : | |
5050 | else | |
5051 | cat >conftest.$ac_ext <<_ACEOF | |
5052 | /* confdefs.h. */ | |
5053 | _ACEOF | |
5054 | cat confdefs.h >>conftest.$ac_ext | |
5055 | cat >>conftest.$ac_ext <<_ACEOF | |
5056 | /* end confdefs.h. */ | |
5057 | #include <ctype.h> | |
5058 | #include <stdlib.h> | |
5059 | #if ((' ' & 0x0FF) == 0x020) | |
5060 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5061 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5062 | #else | |
5063 | # define ISLOWER(c) \ | |
5064 | (('a' <= (c) && (c) <= 'i') \ | |
5065 | || ('j' <= (c) && (c) <= 'r') \ | |
5066 | || ('s' <= (c) && (c) <= 'z')) | |
5067 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5068 | #endif | |
5069 | ||
5070 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5071 | int | |
5072 | main () | |
5073 | { | |
5074 | int i; | |
5075 | for (i = 0; i < 256; i++) | |
5076 | if (XOR (islower (i), ISLOWER (i)) | |
5077 | || toupper (i) != TOUPPER (i)) | |
5078 | return 2; | |
5079 | return 0; | |
5080 | } | |
5081 | _ACEOF | |
5082 | rm -f conftest$ac_exeext | |
5083 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5084 | case "(($ac_try" in |
5085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5086 | *) ac_try_echo=$ac_try;; | |
5087 | esac | |
ec6a6fbe AK |
5088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5089 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5090 | (eval "$ac_link") 2>&5 |
5091 | ac_status=$? | |
5092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5093 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5094 | { (case "(($ac_try" in | |
5095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5096 | *) ac_try_echo=$ac_try;; | |
5097 | esac | |
5098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5099 | $as_echo "$ac_try_echo") >&5 | |
5100 | (eval "$ac_try") 2>&5 | |
5101 | ac_status=$? | |
5102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5103 | (exit $ac_status); }; }; then | |
5104 | : | |
5105 | else | |
5106 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5107 | $as_echo "$as_me: failed program was:" >&5 | |
5108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5109 | ||
5110 | ( exit $ac_status ) | |
5111 | ac_cv_header_stdc=no | |
5112 | fi | |
5113 | rm -rf conftest.dSYM | |
5114 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5115 | fi | |
5116 | ||
5117 | ||
5118 | fi | |
5119 | fi | |
5120 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5121 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5122 | if test $ac_cv_header_stdc = yes; then | |
5123 | ||
5124 | cat >>confdefs.h <<\_ACEOF | |
5125 | #define STDC_HEADERS 1 | |
5126 | _ACEOF | |
5127 | ||
5128 | fi | |
5129 | ||
5130 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5131 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5132 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5133 | $as_echo_n "(cached) " >&6 | |
5134 | else | |
5135 | cat >conftest.$ac_ext <<_ACEOF | |
5136 | /* confdefs.h. */ | |
5137 | _ACEOF | |
5138 | cat confdefs.h >>conftest.$ac_ext | |
5139 | cat >>conftest.$ac_ext <<_ACEOF | |
5140 | /* end confdefs.h. */ | |
5141 | #include <sys/types.h> | |
5142 | #include <sys/wait.h> | |
5143 | #ifndef WEXITSTATUS | |
5144 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5145 | #endif | |
5146 | #ifndef WIFEXITED | |
5147 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5148 | #endif | |
5149 | ||
5150 | int | |
5151 | main () | |
5152 | { | |
5153 | int s; | |
5154 | wait (&s); | |
5155 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5156 | ; | |
5157 | return 0; | |
5158 | } | |
5159 | _ACEOF | |
5160 | rm -f conftest.$ac_objext | |
5161 | if { (ac_try="$ac_compile" | |
5162 | case "(($ac_try" in | |
5163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5164 | *) ac_try_echo=$ac_try;; | |
5165 | esac | |
5166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5167 | $as_echo "$ac_try_echo") >&5 | |
5168 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5169 | ac_status=$? |
5170 | grep -v '^ *+' conftest.er1 >conftest.err | |
5171 | rm -f conftest.er1 | |
5172 | cat conftest.err >&5 | |
ec6a6fbe | 5173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5174 | (exit $ac_status); } && { |
5175 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5176 | test ! -s conftest.err |
d911ec67 AK |
5177 | } && test -s conftest.$ac_objext; then |
5178 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5179 | else |
ec6a6fbe | 5180 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5181 | sed 's/^/| /' conftest.$ac_ext >&5 |
5182 | ||
d911ec67 | 5183 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5184 | fi |
7a197a62 | 5185 | |
d911ec67 AK |
5186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5187 | fi | |
5188 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5189 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5190 | if test $ac_cv_header_sys_wait_h = yes; then | |
5191 | ||
5192 | cat >>confdefs.h <<\_ACEOF | |
5193 | #define HAVE_SYS_WAIT_H 1 | |
5194 | _ACEOF | |
5195 | ||
5196 | fi | |
5197 | ||
5198 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5199 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5200 | if test "${ac_cv_header_time+set}" = set; then | |
5201 | $as_echo_n "(cached) " >&6 | |
5202 | else | |
5203 | cat >conftest.$ac_ext <<_ACEOF | |
5204 | /* confdefs.h. */ | |
5205 | _ACEOF | |
5206 | cat confdefs.h >>conftest.$ac_ext | |
5207 | cat >>conftest.$ac_ext <<_ACEOF | |
5208 | /* end confdefs.h. */ | |
5209 | #include <sys/types.h> | |
5210 | #include <sys/time.h> | |
5211 | #include <time.h> | |
5212 | ||
5213 | int | |
5214 | main () | |
5215 | { | |
5216 | if ((struct tm *) 0) | |
5217 | return 0; | |
5218 | ; | |
5219 | return 0; | |
5220 | } | |
5221 | _ACEOF | |
5222 | rm -f conftest.$ac_objext | |
5223 | if { (ac_try="$ac_compile" | |
5224 | case "(($ac_try" in | |
5225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5226 | *) ac_try_echo=$ac_try;; | |
5227 | esac | |
5228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5229 | $as_echo "$ac_try_echo") >&5 | |
5230 | (eval "$ac_compile") 2>conftest.er1 | |
5231 | ac_status=$? | |
5232 | grep -v '^ *+' conftest.er1 >conftest.err | |
5233 | rm -f conftest.er1 | |
5234 | cat conftest.err >&5 | |
5235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5236 | (exit $ac_status); } && { | |
5237 | test -z "$ac_c_werror_flag" || | |
5238 | test ! -s conftest.err | |
5239 | } && test -s conftest.$ac_objext; then | |
5240 | ac_cv_header_time=yes | |
5241 | else | |
5242 | $as_echo "$as_me: failed program was:" >&5 | |
5243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5244 | ||
5245 | ac_cv_header_time=no | |
5246 | fi | |
5247 | ||
5248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5249 | fi | |
5250 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5251 | $as_echo "$ac_cv_header_time" >&6; } | |
5252 | if test $ac_cv_header_time = yes; then | |
5253 | ||
5254 | cat >>confdefs.h <<\_ACEOF | |
5255 | #define TIME_WITH_SYS_TIME 1 | |
5256 | _ACEOF | |
5257 | ||
5258 | fi | |
5259 | ||
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5276 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5277 | sys/wait.h time.h | |
5278 | do | |
5279 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5280 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5281 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5282 | $as_echo_n "checking for $ac_header... " >&6; } | |
5283 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5284 | $as_echo_n "(cached) " >&6 | |
5285 | fi | |
5286 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5287 | $as_echo "$as_val"'` | |
5288 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5289 | $as_echo "$ac_res" >&6; } | |
5290 | else | |
5291 | # Is the header compilable? | |
5292 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5293 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5294 | cat >conftest.$ac_ext <<_ACEOF | |
5295 | /* confdefs.h. */ | |
5296 | _ACEOF | |
5297 | cat confdefs.h >>conftest.$ac_ext | |
5298 | cat >>conftest.$ac_ext <<_ACEOF | |
5299 | /* end confdefs.h. */ | |
5300 | $ac_includes_default | |
5301 | #include <$ac_header> | |
5302 | _ACEOF | |
5303 | rm -f conftest.$ac_objext | |
5304 | if { (ac_try="$ac_compile" | |
5305 | case "(($ac_try" in | |
5306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5307 | *) ac_try_echo=$ac_try;; | |
5308 | esac | |
5309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5310 | $as_echo "$ac_try_echo") >&5 | |
5311 | (eval "$ac_compile") 2>conftest.er1 | |
5312 | ac_status=$? | |
5313 | grep -v '^ *+' conftest.er1 >conftest.err | |
5314 | rm -f conftest.er1 | |
5315 | cat conftest.err >&5 | |
5316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5317 | (exit $ac_status); } && { | |
5318 | test -z "$ac_c_werror_flag" || | |
5319 | test ! -s conftest.err | |
5320 | } && test -s conftest.$ac_objext; then | |
5321 | ac_header_compiler=yes | |
5322 | else | |
5323 | $as_echo "$as_me: failed program was:" >&5 | |
5324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5325 | ||
5326 | ac_header_compiler=no | |
5327 | fi | |
5328 | ||
5329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5330 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5331 | $as_echo "$ac_header_compiler" >&6; } | |
5332 | ||
5333 | # Is the header present? | |
5334 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5335 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5336 | cat >conftest.$ac_ext <<_ACEOF | |
5337 | /* confdefs.h. */ | |
5338 | _ACEOF | |
5339 | cat confdefs.h >>conftest.$ac_ext | |
5340 | cat >>conftest.$ac_ext <<_ACEOF | |
5341 | /* end confdefs.h. */ | |
5342 | #include <$ac_header> | |
5343 | _ACEOF | |
5344 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5345 | case "(($ac_try" in | |
5346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5347 | *) ac_try_echo=$ac_try;; | |
5348 | esac | |
5349 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5350 | $as_echo "$ac_try_echo") >&5 | |
5351 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5352 | ac_status=$? | |
5353 | grep -v '^ *+' conftest.er1 >conftest.err | |
5354 | rm -f conftest.er1 | |
5355 | cat conftest.err >&5 | |
5356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5357 | (exit $ac_status); } >/dev/null && { | |
5358 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5359 | test ! -s conftest.err | |
5360 | }; then | |
5361 | ac_header_preproc=yes | |
5362 | else | |
5363 | $as_echo "$as_me: failed program was:" >&5 | |
5364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5365 | ||
5366 | ac_header_preproc=no | |
5367 | fi | |
5368 | ||
5369 | rm -f conftest.err conftest.$ac_ext | |
5370 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5371 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5372 | |
5373 | # So? What about this header? | |
8a2fc586 AK |
5374 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5375 | yes:no: ) | |
ec6a6fbe AK |
5376 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5377 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5378 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5379 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5380 | ac_header_preproc=yes |
ad6254c5 | 5381 | ;; |
8a2fc586 | 5382 | no:yes:* ) |
ec6a6fbe AK |
5383 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5384 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5385 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5386 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5387 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5388 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5389 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5390 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5391 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5392 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5393 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5394 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5395 | |
ad6254c5 AK |
5396 | ;; |
5397 | esac | |
d911ec67 AK |
5398 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5399 | $as_echo_n "checking for $ac_header... " >&6; } | |
5400 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5401 | $as_echo_n "(cached) " >&6 | |
5402 | else | |
5403 | eval "$as_ac_Header=\$ac_header_preproc" | |
5404 | fi | |
5405 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5406 | $as_echo "$as_val"'` | |
5407 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5408 | $as_echo "$ac_res" >&6; } | |
5409 | ||
5410 | fi | |
5411 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5412 | $as_echo "$as_val"'` | |
5413 | if test "x$as_val" = x""yes; then | |
5414 | cat >>confdefs.h <<_ACEOF | |
5415 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5416 | _ACEOF | |
5417 | ||
5418 | else | |
5419 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5420 | $as_echo "$as_me: error: bailing out" >&2;} | |
5421 | { (exit 1); exit 1; }; } | |
5422 | fi | |
5423 | ||
5424 | done | |
5425 | ||
5426 | ||
5427 | case "$host_os" in | |
5428 | linux*) | |
5429 | ||
5430 | ||
5431 | ||
5432 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5433 | do | |
5434 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5436 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5437 | $as_echo_n "checking for $ac_header... " >&6; } | |
5438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5439 | $as_echo_n "(cached) " >&6 | |
5440 | fi | |
5441 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5442 | $as_echo "$as_val"'` | |
5443 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5444 | $as_echo "$ac_res" >&6; } | |
5445 | else | |
5446 | # Is the header compilable? | |
5447 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5448 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5449 | cat >conftest.$ac_ext <<_ACEOF | |
5450 | /* confdefs.h. */ | |
5451 | _ACEOF | |
5452 | cat confdefs.h >>conftest.$ac_ext | |
5453 | cat >>conftest.$ac_ext <<_ACEOF | |
5454 | /* end confdefs.h. */ | |
5455 | $ac_includes_default | |
5456 | #include <$ac_header> | |
5457 | _ACEOF | |
5458 | rm -f conftest.$ac_objext | |
5459 | if { (ac_try="$ac_compile" | |
5460 | case "(($ac_try" in | |
5461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5462 | *) ac_try_echo=$ac_try;; | |
5463 | esac | |
5464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5465 | $as_echo "$ac_try_echo") >&5 | |
5466 | (eval "$ac_compile") 2>conftest.er1 | |
5467 | ac_status=$? | |
5468 | grep -v '^ *+' conftest.er1 >conftest.err | |
5469 | rm -f conftest.er1 | |
5470 | cat conftest.err >&5 | |
5471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5472 | (exit $ac_status); } && { | |
5473 | test -z "$ac_c_werror_flag" || | |
5474 | test ! -s conftest.err | |
5475 | } && test -s conftest.$ac_objext; then | |
5476 | ac_header_compiler=yes | |
5477 | else | |
5478 | $as_echo "$as_me: failed program was:" >&5 | |
5479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5480 | ||
5481 | ac_header_compiler=no | |
5482 | fi | |
5483 | ||
5484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5485 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5486 | $as_echo "$ac_header_compiler" >&6; } | |
5487 | ||
5488 | # Is the header present? | |
5489 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5490 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5491 | cat >conftest.$ac_ext <<_ACEOF | |
5492 | /* confdefs.h. */ | |
5493 | _ACEOF | |
5494 | cat confdefs.h >>conftest.$ac_ext | |
5495 | cat >>conftest.$ac_ext <<_ACEOF | |
5496 | /* end confdefs.h. */ | |
5497 | #include <$ac_header> | |
5498 | _ACEOF | |
5499 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5500 | case "(($ac_try" in | |
5501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5502 | *) ac_try_echo=$ac_try;; | |
5503 | esac | |
5504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5505 | $as_echo "$ac_try_echo") >&5 | |
5506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5507 | ac_status=$? | |
5508 | grep -v '^ *+' conftest.er1 >conftest.err | |
5509 | rm -f conftest.er1 | |
5510 | cat conftest.err >&5 | |
5511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5512 | (exit $ac_status); } >/dev/null && { | |
5513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5514 | test ! -s conftest.err | |
5515 | }; then | |
5516 | ac_header_preproc=yes | |
5517 | else | |
5518 | $as_echo "$as_me: failed program was:" >&5 | |
5519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5520 | ||
5521 | ac_header_preproc=no | |
5522 | fi | |
5523 | ||
5524 | rm -f conftest.err conftest.$ac_ext | |
5525 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5526 | $as_echo "$ac_header_preproc" >&6; } | |
5527 | ||
5528 | # So? What about this header? | |
5529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5530 | yes:no: ) | |
5531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5532 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5534 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5535 | ac_header_preproc=yes | |
5536 | ;; | |
5537 | no:yes:* ) | |
5538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5539 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5541 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5543 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5545 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5547 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5549 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5550 | ||
5551 | ;; | |
5552 | esac | |
5553 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5554 | $as_echo_n "checking for $ac_header... " >&6; } | |
5555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5556 | $as_echo_n "(cached) " >&6 | |
5557 | else | |
5558 | eval "$as_ac_Header=\$ac_header_preproc" | |
5559 | fi | |
5560 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5561 | $as_echo "$as_val"'` | |
5562 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5563 | $as_echo "$ac_res" >&6; } | |
5564 | ||
5565 | fi | |
5566 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5567 | $as_echo "$as_val"'` | |
5568 | if test "x$as_val" = x""yes; then | |
5569 | cat >>confdefs.h <<_ACEOF | |
5570 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5571 | _ACEOF | |
5572 | ||
5573 | else | |
5574 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5575 | $as_echo "$as_me: error: bailing out" >&2;} | |
5576 | { (exit 1); exit 1; }; } | |
5577 | fi | |
5578 | ||
5579 | done | |
5580 | ;; | |
5581 | darwin*) | |
5582 | ||
5583 | ||
5584 | for ac_header in machine/endian.h sys/disk.h | |
5585 | do | |
5586 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5588 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5589 | $as_echo_n "checking for $ac_header... " >&6; } | |
5590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5591 | $as_echo_n "(cached) " >&6 | |
5592 | fi | |
5593 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5594 | $as_echo "$as_val"'` | |
5595 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5596 | $as_echo "$ac_res" >&6; } | |
5597 | else | |
5598 | # Is the header compilable? | |
5599 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5600 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5601 | cat >conftest.$ac_ext <<_ACEOF | |
5602 | /* confdefs.h. */ | |
5603 | _ACEOF | |
5604 | cat confdefs.h >>conftest.$ac_ext | |
5605 | cat >>conftest.$ac_ext <<_ACEOF | |
5606 | /* end confdefs.h. */ | |
5607 | $ac_includes_default | |
5608 | #include <$ac_header> | |
5609 | _ACEOF | |
5610 | rm -f conftest.$ac_objext | |
5611 | if { (ac_try="$ac_compile" | |
5612 | case "(($ac_try" in | |
5613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5614 | *) ac_try_echo=$ac_try;; | |
5615 | esac | |
5616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5617 | $as_echo "$ac_try_echo") >&5 | |
5618 | (eval "$ac_compile") 2>conftest.er1 | |
5619 | ac_status=$? | |
5620 | grep -v '^ *+' conftest.er1 >conftest.err | |
5621 | rm -f conftest.er1 | |
5622 | cat conftest.err >&5 | |
5623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5624 | (exit $ac_status); } && { | |
5625 | test -z "$ac_c_werror_flag" || | |
5626 | test ! -s conftest.err | |
5627 | } && test -s conftest.$ac_objext; then | |
5628 | ac_header_compiler=yes | |
5629 | else | |
5630 | $as_echo "$as_me: failed program was:" >&5 | |
5631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5632 | ||
5633 | ac_header_compiler=no | |
5634 | fi | |
5635 | ||
5636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5637 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5638 | $as_echo "$ac_header_compiler" >&6; } | |
5639 | ||
5640 | # Is the header present? | |
5641 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5642 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5643 | cat >conftest.$ac_ext <<_ACEOF | |
5644 | /* confdefs.h. */ | |
5645 | _ACEOF | |
5646 | cat confdefs.h >>conftest.$ac_ext | |
5647 | cat >>conftest.$ac_ext <<_ACEOF | |
5648 | /* end confdefs.h. */ | |
5649 | #include <$ac_header> | |
5650 | _ACEOF | |
5651 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5652 | case "(($ac_try" in | |
5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5654 | *) ac_try_echo=$ac_try;; | |
5655 | esac | |
5656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5657 | $as_echo "$ac_try_echo") >&5 | |
5658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5659 | ac_status=$? | |
5660 | grep -v '^ *+' conftest.er1 >conftest.err | |
5661 | rm -f conftest.er1 | |
5662 | cat conftest.err >&5 | |
5663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5664 | (exit $ac_status); } >/dev/null && { | |
5665 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5666 | test ! -s conftest.err | |
5667 | }; then | |
5668 | ac_header_preproc=yes | |
5669 | else | |
5670 | $as_echo "$as_me: failed program was:" >&5 | |
5671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5672 | ||
5673 | ac_header_preproc=no | |
5674 | fi | |
5675 | ||
5676 | rm -f conftest.err conftest.$ac_ext | |
5677 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5678 | $as_echo "$ac_header_preproc" >&6; } | |
5679 | ||
5680 | # So? What about this header? | |
5681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5682 | yes:no: ) | |
5683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5684 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5686 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5687 | ac_header_preproc=yes | |
5688 | ;; | |
5689 | no:yes:* ) | |
5690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5691 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5693 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5695 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5697 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5699 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5701 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5702 | ||
5703 | ;; | |
5704 | esac | |
5705 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5706 | $as_echo_n "checking for $ac_header... " >&6; } | |
5707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5708 | $as_echo_n "(cached) " >&6 | |
5709 | else | |
5710 | eval "$as_ac_Header=\$ac_header_preproc" | |
5711 | fi | |
5712 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5713 | $as_echo "$as_val"'` | |
5714 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5715 | $as_echo "$ac_res" >&6; } | |
5716 | ||
5717 | fi | |
5718 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5719 | $as_echo "$as_val"'` | |
5720 | if test "x$as_val" = x""yes; then | |
5721 | cat >>confdefs.h <<_ACEOF | |
5722 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5723 | _ACEOF | |
5724 | ||
5725 | else | |
5726 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5727 | $as_echo "$as_me: error: bailing out" >&2;} | |
5728 | { (exit 1); exit 1; }; } | |
5729 | fi | |
5730 | ||
5731 | done | |
5732 | ;; | |
5733 | esac | |
5734 | ||
5735 | ||
5736 | ||
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5752 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5753 | sys/types.h unistd.h | |
5754 | do | |
5755 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5756 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5757 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5758 | $as_echo_n "checking for $ac_header... " >&6; } | |
5759 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5760 | $as_echo_n "(cached) " >&6 | |
5761 | fi | |
5762 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5763 | $as_echo "$as_val"'` | |
5764 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5765 | $as_echo "$ac_res" >&6; } | |
5766 | else | |
5767 | # Is the header compilable? | |
5768 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5769 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5770 | cat >conftest.$ac_ext <<_ACEOF | |
5771 | /* confdefs.h. */ | |
5772 | _ACEOF | |
5773 | cat confdefs.h >>conftest.$ac_ext | |
5774 | cat >>conftest.$ac_ext <<_ACEOF | |
5775 | /* end confdefs.h. */ | |
5776 | $ac_includes_default | |
5777 | #include <$ac_header> | |
5778 | _ACEOF | |
5779 | rm -f conftest.$ac_objext | |
5780 | if { (ac_try="$ac_compile" | |
5781 | case "(($ac_try" in | |
5782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5783 | *) ac_try_echo=$ac_try;; | |
5784 | esac | |
5785 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5786 | $as_echo "$ac_try_echo") >&5 | |
5787 | (eval "$ac_compile") 2>conftest.er1 | |
5788 | ac_status=$? | |
5789 | grep -v '^ *+' conftest.er1 >conftest.err | |
5790 | rm -f conftest.er1 | |
5791 | cat conftest.err >&5 | |
5792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5793 | (exit $ac_status); } && { | |
5794 | test -z "$ac_c_werror_flag" || | |
5795 | test ! -s conftest.err | |
5796 | } && test -s conftest.$ac_objext; then | |
5797 | ac_header_compiler=yes | |
5798 | else | |
5799 | $as_echo "$as_me: failed program was:" >&5 | |
5800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5801 | ||
5802 | ac_header_compiler=no | |
5803 | fi | |
5804 | ||
5805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5806 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5807 | $as_echo "$ac_header_compiler" >&6; } | |
5808 | ||
5809 | # Is the header present? | |
5810 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5811 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5812 | cat >conftest.$ac_ext <<_ACEOF | |
5813 | /* confdefs.h. */ | |
5814 | _ACEOF | |
5815 | cat confdefs.h >>conftest.$ac_ext | |
5816 | cat >>conftest.$ac_ext <<_ACEOF | |
5817 | /* end confdefs.h. */ | |
5818 | #include <$ac_header> | |
5819 | _ACEOF | |
5820 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5821 | case "(($ac_try" in | |
5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5823 | *) ac_try_echo=$ac_try;; | |
5824 | esac | |
5825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5826 | $as_echo "$ac_try_echo") >&5 | |
5827 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5828 | ac_status=$? | |
5829 | grep -v '^ *+' conftest.er1 >conftest.err | |
5830 | rm -f conftest.er1 | |
5831 | cat conftest.err >&5 | |
5832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5833 | (exit $ac_status); } >/dev/null && { | |
5834 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5835 | test ! -s conftest.err | |
5836 | }; then | |
5837 | ac_header_preproc=yes | |
5838 | else | |
5839 | $as_echo "$as_me: failed program was:" >&5 | |
5840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5841 | ||
5842 | ac_header_preproc=no | |
5843 | fi | |
5844 | ||
5845 | rm -f conftest.err conftest.$ac_ext | |
5846 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5847 | $as_echo "$ac_header_preproc" >&6; } | |
5848 | ||
5849 | # So? What about this header? | |
5850 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5851 | yes:no: ) | |
5852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5853 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5855 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5856 | ac_header_preproc=yes | |
5857 | ;; | |
5858 | no:yes:* ) | |
5859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5860 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5862 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5864 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5866 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5868 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5870 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5871 | ||
5872 | ;; | |
5873 | esac | |
5874 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5875 | $as_echo_n "checking for $ac_header... " >&6; } | |
5876 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5877 | $as_echo_n "(cached) " >&6 | |
5878 | else | |
5879 | eval "$as_ac_Header=\$ac_header_preproc" | |
5880 | fi | |
5881 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5882 | $as_echo "$as_val"'` | |
5883 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5884 | $as_echo "$ac_res" >&6; } | |
5885 | ||
5886 | fi | |
5887 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5888 | $as_echo "$as_val"'` | |
5889 | if test "x$as_val" = x""yes; then | |
5890 | cat >>confdefs.h <<_ACEOF | |
5891 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5892 | _ACEOF | |
5893 | ||
5894 | else | |
5895 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5896 | $as_echo "$as_me: error: bailing out" >&2;} | |
5897 | { (exit 1); exit 1; }; } | |
5898 | fi | |
5899 | ||
5900 | done | |
5901 | ||
5902 | ||
5903 | ||
5904 | for ac_header in termios.h sys/statvfs.h | |
5905 | do | |
5906 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5908 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5909 | $as_echo_n "checking for $ac_header... " >&6; } | |
5910 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5911 | $as_echo_n "(cached) " >&6 | |
5912 | fi | |
5913 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5914 | $as_echo "$as_val"'` | |
5915 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5916 | $as_echo "$ac_res" >&6; } | |
5917 | else | |
5918 | # Is the header compilable? | |
5919 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5920 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5921 | cat >conftest.$ac_ext <<_ACEOF | |
5922 | /* confdefs.h. */ | |
5923 | _ACEOF | |
5924 | cat confdefs.h >>conftest.$ac_ext | |
5925 | cat >>conftest.$ac_ext <<_ACEOF | |
5926 | /* end confdefs.h. */ | |
5927 | $ac_includes_default | |
5928 | #include <$ac_header> | |
5929 | _ACEOF | |
5930 | rm -f conftest.$ac_objext | |
5931 | if { (ac_try="$ac_compile" | |
5932 | case "(($ac_try" in | |
5933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5934 | *) ac_try_echo=$ac_try;; | |
5935 | esac | |
5936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5937 | $as_echo "$ac_try_echo") >&5 | |
5938 | (eval "$ac_compile") 2>conftest.er1 | |
5939 | ac_status=$? | |
5940 | grep -v '^ *+' conftest.er1 >conftest.err | |
5941 | rm -f conftest.er1 | |
5942 | cat conftest.err >&5 | |
5943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5944 | (exit $ac_status); } && { | |
5945 | test -z "$ac_c_werror_flag" || | |
5946 | test ! -s conftest.err | |
5947 | } && test -s conftest.$ac_objext; then | |
5948 | ac_header_compiler=yes | |
5949 | else | |
5950 | $as_echo "$as_me: failed program was:" >&5 | |
5951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5952 | ||
5953 | ac_header_compiler=no | |
5954 | fi | |
5955 | ||
5956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5957 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5958 | $as_echo "$ac_header_compiler" >&6; } | |
5959 | ||
5960 | # Is the header present? | |
5961 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5962 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5963 | cat >conftest.$ac_ext <<_ACEOF | |
5964 | /* confdefs.h. */ | |
5965 | _ACEOF | |
5966 | cat confdefs.h >>conftest.$ac_ext | |
5967 | cat >>conftest.$ac_ext <<_ACEOF | |
5968 | /* end confdefs.h. */ | |
5969 | #include <$ac_header> | |
5970 | _ACEOF | |
5971 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5972 | case "(($ac_try" in | |
5973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5974 | *) ac_try_echo=$ac_try;; | |
5975 | esac | |
5976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5977 | $as_echo "$ac_try_echo") >&5 | |
5978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5979 | ac_status=$? | |
5980 | grep -v '^ *+' conftest.er1 >conftest.err | |
5981 | rm -f conftest.er1 | |
5982 | cat conftest.err >&5 | |
5983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5984 | (exit $ac_status); } >/dev/null && { | |
5985 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5986 | test ! -s conftest.err | |
5987 | }; then | |
5988 | ac_header_preproc=yes | |
5989 | else | |
5990 | $as_echo "$as_me: failed program was:" >&5 | |
5991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5992 | ||
5993 | ac_header_preproc=no | |
5994 | fi | |
5995 | ||
5996 | rm -f conftest.err conftest.$ac_ext | |
5997 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5998 | $as_echo "$ac_header_preproc" >&6; } | |
5999 | ||
6000 | # So? What about this header? | |
6001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6002 | yes:no: ) | |
6003 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6004 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6006 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6007 | ac_header_preproc=yes | |
6008 | ;; | |
6009 | no:yes:* ) | |
6010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6011 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6013 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6015 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6017 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6019 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6021 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6022 | ||
6023 | ;; | |
6024 | esac | |
6025 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6026 | $as_echo_n "checking for $ac_header... " >&6; } | |
6027 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6028 | $as_echo_n "(cached) " >&6 | |
6029 | else | |
6030 | eval "$as_ac_Header=\$ac_header_preproc" | |
6031 | fi | |
6032 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6033 | $as_echo "$as_val"'` | |
6034 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6035 | $as_echo "$ac_res" >&6; } | |
6036 | ||
6037 | fi | |
6038 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6039 | $as_echo "$as_val"'` | |
6040 | if test "x$as_val" = x""yes; then | |
6041 | cat >>confdefs.h <<_ACEOF | |
6042 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6043 | _ACEOF | |
6044 | ||
6045 | fi | |
6046 | ||
6047 | done | |
6048 | ||
6049 | ||
6050 | ################################################################################ | |
6051 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6052 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6053 | if test "${ac_cv_c_const+set}" = set; then | |
6054 | $as_echo_n "(cached) " >&6 | |
6055 | else | |
6056 | cat >conftest.$ac_ext <<_ACEOF | |
6057 | /* confdefs.h. */ | |
6058 | _ACEOF | |
6059 | cat confdefs.h >>conftest.$ac_ext | |
6060 | cat >>conftest.$ac_ext <<_ACEOF | |
6061 | /* end confdefs.h. */ | |
6062 | ||
6063 | int | |
6064 | main () | |
6065 | { | |
6066 | /* FIXME: Include the comments suggested by Paul. */ | |
6067 | #ifndef __cplusplus | |
6068 | /* Ultrix mips cc rejects this. */ | |
6069 | typedef int charset[2]; | |
6070 | const charset cs; | |
6071 | /* SunOS 4.1.1 cc rejects this. */ | |
6072 | char const *const *pcpcc; | |
6073 | char **ppc; | |
6074 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6075 | struct point {int x, y;}; | |
6076 | static struct point const zero = {0,0}; | |
6077 | /* AIX XL C 1.02.0.0 rejects this. | |
6078 | It does not let you subtract one const X* pointer from another in | |
6079 | an arm of an if-expression whose if-part is not a constant | |
6080 | expression */ | |
6081 | const char *g = "string"; | |
6082 | pcpcc = &g + (g ? g-g : 0); | |
6083 | /* HPUX 7.0 cc rejects these. */ | |
6084 | ++pcpcc; | |
6085 | ppc = (char**) pcpcc; | |
6086 | pcpcc = (char const *const *) ppc; | |
6087 | { /* SCO 3.2v4 cc rejects this. */ | |
6088 | char *t; | |
6089 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6090 | ||
6091 | *t++ = 0; | |
6092 | if (s) return 0; | |
6093 | } | |
6094 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6095 | int x[] = {25, 17}; | |
6096 | const int *foo = &x[0]; | |
6097 | ++foo; | |
6098 | } | |
6099 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6100 | typedef const int *iptr; | |
6101 | iptr p = 0; | |
6102 | ++p; | |
6103 | } | |
6104 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6105 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6106 | struct s { int j; const int *ap[3]; }; | |
6107 | struct s *b; b->j = 5; | |
6108 | } | |
6109 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6110 | const int foo = 10; | |
6111 | if (!foo) return 0; | |
6112 | } | |
6113 | return !cs[0] && !zero.x; | |
6114 | #endif | |
6115 | ||
6116 | ; | |
6117 | return 0; | |
6118 | } | |
6119 | _ACEOF | |
6120 | rm -f conftest.$ac_objext | |
6121 | if { (ac_try="$ac_compile" | |
6122 | case "(($ac_try" in | |
6123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6124 | *) ac_try_echo=$ac_try;; | |
6125 | esac | |
6126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6127 | $as_echo "$ac_try_echo") >&5 | |
6128 | (eval "$ac_compile") 2>conftest.er1 | |
6129 | ac_status=$? | |
6130 | grep -v '^ *+' conftest.er1 >conftest.err | |
6131 | rm -f conftest.er1 | |
6132 | cat conftest.err >&5 | |
6133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6134 | (exit $ac_status); } && { | |
6135 | test -z "$ac_c_werror_flag" || | |
6136 | test ! -s conftest.err | |
6137 | } && test -s conftest.$ac_objext; then | |
6138 | ac_cv_c_const=yes | |
6139 | else | |
6140 | $as_echo "$as_me: failed program was:" >&5 | |
6141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6142 | ||
6143 | ac_cv_c_const=no | |
6144 | fi | |
6145 | ||
6146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6147 | fi | |
6148 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6149 | $as_echo "$ac_cv_c_const" >&6; } | |
6150 | if test $ac_cv_c_const = no; then | |
6151 | ||
6152 | cat >>confdefs.h <<\_ACEOF | |
6153 | #define const /**/ | |
6154 | _ACEOF | |
6155 | ||
6156 | fi | |
6157 | ||
6158 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6159 | $as_echo_n "checking for inline... " >&6; } | |
6160 | if test "${ac_cv_c_inline+set}" = set; then | |
6161 | $as_echo_n "(cached) " >&6 | |
6162 | else | |
6163 | ac_cv_c_inline=no | |
6164 | for ac_kw in inline __inline__ __inline; do | |
6165 | cat >conftest.$ac_ext <<_ACEOF | |
6166 | /* confdefs.h. */ | |
6167 | _ACEOF | |
6168 | cat confdefs.h >>conftest.$ac_ext | |
6169 | cat >>conftest.$ac_ext <<_ACEOF | |
6170 | /* end confdefs.h. */ | |
6171 | #ifndef __cplusplus | |
6172 | typedef int foo_t; | |
6173 | static $ac_kw foo_t static_foo () {return 0; } | |
6174 | $ac_kw foo_t foo () {return 0; } | |
6175 | #endif | |
6176 | ||
6177 | _ACEOF | |
6178 | rm -f conftest.$ac_objext | |
6179 | if { (ac_try="$ac_compile" | |
6180 | case "(($ac_try" in | |
6181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6182 | *) ac_try_echo=$ac_try;; | |
6183 | esac | |
6184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6185 | $as_echo "$ac_try_echo") >&5 | |
6186 | (eval "$ac_compile") 2>conftest.er1 | |
6187 | ac_status=$? | |
6188 | grep -v '^ *+' conftest.er1 >conftest.err | |
6189 | rm -f conftest.er1 | |
6190 | cat conftest.err >&5 | |
6191 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6192 | (exit $ac_status); } && { | |
6193 | test -z "$ac_c_werror_flag" || | |
6194 | test ! -s conftest.err | |
6195 | } && test -s conftest.$ac_objext; then | |
6196 | ac_cv_c_inline=$ac_kw | |
6197 | else | |
6198 | $as_echo "$as_me: failed program was:" >&5 | |
6199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6200 | ||
6201 | ||
6202 | fi | |
6203 | ||
6204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6205 | test "$ac_cv_c_inline" != no && break | |
6206 | done | |
6207 | ||
6208 | fi | |
6209 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6210 | $as_echo "$ac_cv_c_inline" >&6; } | |
6211 | ||
6212 | ||
6213 | case $ac_cv_c_inline in | |
6214 | inline | yes) ;; | |
6215 | *) | |
6216 | case $ac_cv_c_inline in | |
6217 | no) ac_val=;; | |
6218 | *) ac_val=$ac_cv_c_inline;; | |
6219 | esac | |
6220 | cat >>confdefs.h <<_ACEOF | |
6221 | #ifndef __cplusplus | |
6222 | #define inline $ac_val | |
6223 | #endif | |
6224 | _ACEOF | |
6225 | ;; | |
6226 | esac | |
6227 | ||
6228 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6229 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6230 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6231 | $as_echo_n "(cached) " >&6 | |
6232 | else | |
6233 | cat >conftest.$ac_ext <<_ACEOF | |
6234 | /* confdefs.h. */ | |
6235 | _ACEOF | |
6236 | cat confdefs.h >>conftest.$ac_ext | |
6237 | cat >>conftest.$ac_ext <<_ACEOF | |
6238 | /* end confdefs.h. */ | |
6239 | $ac_includes_default | |
6240 | int | |
6241 | main () | |
6242 | { | |
6243 | static struct stat ac_aggr; | |
6244 | if (ac_aggr.st_rdev) | |
6245 | return 0; | |
6246 | ; | |
6247 | return 0; | |
6248 | } | |
6249 | _ACEOF | |
6250 | rm -f conftest.$ac_objext | |
6251 | if { (ac_try="$ac_compile" | |
6252 | case "(($ac_try" in | |
6253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6254 | *) ac_try_echo=$ac_try;; | |
6255 | esac | |
6256 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6257 | $as_echo "$ac_try_echo") >&5 | |
6258 | (eval "$ac_compile") 2>conftest.er1 | |
6259 | ac_status=$? | |
6260 | grep -v '^ *+' conftest.er1 >conftest.err | |
6261 | rm -f conftest.er1 | |
6262 | cat conftest.err >&5 | |
6263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6264 | (exit $ac_status); } && { | |
6265 | test -z "$ac_c_werror_flag" || | |
6266 | test ! -s conftest.err | |
6267 | } && test -s conftest.$ac_objext; then | |
6268 | ac_cv_member_struct_stat_st_rdev=yes | |
6269 | else | |
6270 | $as_echo "$as_me: failed program was:" >&5 | |
6271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6272 | ||
6273 | cat >conftest.$ac_ext <<_ACEOF | |
6274 | /* confdefs.h. */ | |
6275 | _ACEOF | |
6276 | cat confdefs.h >>conftest.$ac_ext | |
6277 | cat >>conftest.$ac_ext <<_ACEOF | |
6278 | /* end confdefs.h. */ | |
6279 | $ac_includes_default | |
6280 | int | |
6281 | main () | |
6282 | { | |
6283 | static struct stat ac_aggr; | |
6284 | if (sizeof ac_aggr.st_rdev) | |
6285 | return 0; | |
6286 | ; | |
6287 | return 0; | |
6288 | } | |
6289 | _ACEOF | |
6290 | rm -f conftest.$ac_objext | |
6291 | if { (ac_try="$ac_compile" | |
6292 | case "(($ac_try" in | |
6293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6294 | *) ac_try_echo=$ac_try;; | |
6295 | esac | |
6296 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6297 | $as_echo "$ac_try_echo") >&5 | |
6298 | (eval "$ac_compile") 2>conftest.er1 | |
6299 | ac_status=$? | |
6300 | grep -v '^ *+' conftest.er1 >conftest.err | |
6301 | rm -f conftest.er1 | |
6302 | cat conftest.err >&5 | |
6303 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6304 | (exit $ac_status); } && { | |
6305 | test -z "$ac_c_werror_flag" || | |
6306 | test ! -s conftest.err | |
6307 | } && test -s conftest.$ac_objext; then | |
6308 | ac_cv_member_struct_stat_st_rdev=yes | |
6309 | else | |
6310 | $as_echo "$as_me: failed program was:" >&5 | |
6311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6312 | ||
6313 | ac_cv_member_struct_stat_st_rdev=no | |
6314 | fi | |
6315 | ||
6316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6317 | fi | |
6318 | ||
6319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6320 | fi | |
6321 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6322 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6323 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6324 | ||
6325 | cat >>confdefs.h <<_ACEOF | |
6326 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6327 | _ACEOF | |
6328 | ||
6329 | ||
6330 | fi | |
6331 | ||
6332 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6333 | $as_echo_n "checking for off_t... " >&6; } | |
6334 | if test "${ac_cv_type_off_t+set}" = set; then | |
6335 | $as_echo_n "(cached) " >&6 | |
6336 | else | |
6337 | ac_cv_type_off_t=no | |
6338 | cat >conftest.$ac_ext <<_ACEOF | |
6339 | /* confdefs.h. */ | |
6340 | _ACEOF | |
6341 | cat confdefs.h >>conftest.$ac_ext | |
6342 | cat >>conftest.$ac_ext <<_ACEOF | |
6343 | /* end confdefs.h. */ | |
6344 | $ac_includes_default | |
6345 | int | |
6346 | main () | |
6347 | { | |
6348 | if (sizeof (off_t)) | |
6349 | return 0; | |
6350 | ; | |
6351 | return 0; | |
6352 | } | |
6353 | _ACEOF | |
6354 | rm -f conftest.$ac_objext | |
6355 | if { (ac_try="$ac_compile" | |
6356 | case "(($ac_try" in | |
6357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6358 | *) ac_try_echo=$ac_try;; | |
6359 | esac | |
6360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6361 | $as_echo "$ac_try_echo") >&5 | |
6362 | (eval "$ac_compile") 2>conftest.er1 | |
6363 | ac_status=$? | |
6364 | grep -v '^ *+' conftest.er1 >conftest.err | |
6365 | rm -f conftest.er1 | |
6366 | cat conftest.err >&5 | |
6367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6368 | (exit $ac_status); } && { | |
6369 | test -z "$ac_c_werror_flag" || | |
6370 | test ! -s conftest.err | |
6371 | } && test -s conftest.$ac_objext; then | |
6372 | cat >conftest.$ac_ext <<_ACEOF | |
6373 | /* confdefs.h. */ | |
6374 | _ACEOF | |
6375 | cat confdefs.h >>conftest.$ac_ext | |
6376 | cat >>conftest.$ac_ext <<_ACEOF | |
6377 | /* end confdefs.h. */ | |
6378 | $ac_includes_default | |
6379 | int | |
6380 | main () | |
6381 | { | |
6382 | if (sizeof ((off_t))) | |
6383 | return 0; | |
6384 | ; | |
6385 | return 0; | |
6386 | } | |
6387 | _ACEOF | |
6388 | rm -f conftest.$ac_objext | |
6389 | if { (ac_try="$ac_compile" | |
6390 | case "(($ac_try" in | |
6391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6392 | *) ac_try_echo=$ac_try;; | |
6393 | esac | |
6394 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6395 | $as_echo "$ac_try_echo") >&5 | |
6396 | (eval "$ac_compile") 2>conftest.er1 | |
6397 | ac_status=$? | |
6398 | grep -v '^ *+' conftest.er1 >conftest.err | |
6399 | rm -f conftest.er1 | |
6400 | cat conftest.err >&5 | |
6401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6402 | (exit $ac_status); } && { | |
6403 | test -z "$ac_c_werror_flag" || | |
6404 | test ! -s conftest.err | |
6405 | } && test -s conftest.$ac_objext; then | |
6406 | : | |
6407 | else | |
6408 | $as_echo "$as_me: failed program was:" >&5 | |
6409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6410 | ||
6411 | ac_cv_type_off_t=yes | |
6412 | fi | |
6413 | ||
6414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6415 | else | |
6416 | $as_echo "$as_me: failed program was:" >&5 | |
6417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6418 | ||
6419 | ||
6420 | fi | |
6421 | ||
6422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6423 | fi | |
6424 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6425 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6426 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6427 | : | |
6428 | else | |
6429 | ||
6430 | cat >>confdefs.h <<_ACEOF | |
6431 | #define off_t long int | |
6432 | _ACEOF | |
6433 | ||
6434 | fi | |
6435 | ||
6436 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6437 | $as_echo_n "checking for pid_t... " >&6; } | |
6438 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6439 | $as_echo_n "(cached) " >&6 | |
6440 | else | |
6441 | ac_cv_type_pid_t=no | |
6442 | cat >conftest.$ac_ext <<_ACEOF | |
6443 | /* confdefs.h. */ | |
6444 | _ACEOF | |
6445 | cat confdefs.h >>conftest.$ac_ext | |
6446 | cat >>conftest.$ac_ext <<_ACEOF | |
6447 | /* end confdefs.h. */ | |
6448 | $ac_includes_default | |
6449 | int | |
6450 | main () | |
6451 | { | |
6452 | if (sizeof (pid_t)) | |
6453 | return 0; | |
6454 | ; | |
6455 | return 0; | |
6456 | } | |
6457 | _ACEOF | |
6458 | rm -f conftest.$ac_objext | |
6459 | if { (ac_try="$ac_compile" | |
6460 | case "(($ac_try" in | |
6461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6462 | *) ac_try_echo=$ac_try;; | |
6463 | esac | |
6464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6465 | $as_echo "$ac_try_echo") >&5 | |
6466 | (eval "$ac_compile") 2>conftest.er1 | |
6467 | ac_status=$? | |
6468 | grep -v '^ *+' conftest.er1 >conftest.err | |
6469 | rm -f conftest.er1 | |
6470 | cat conftest.err >&5 | |
6471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6472 | (exit $ac_status); } && { | |
6473 | test -z "$ac_c_werror_flag" || | |
6474 | test ! -s conftest.err | |
6475 | } && test -s conftest.$ac_objext; then | |
6476 | cat >conftest.$ac_ext <<_ACEOF | |
6477 | /* confdefs.h. */ | |
6478 | _ACEOF | |
6479 | cat confdefs.h >>conftest.$ac_ext | |
6480 | cat >>conftest.$ac_ext <<_ACEOF | |
6481 | /* end confdefs.h. */ | |
6482 | $ac_includes_default | |
6483 | int | |
6484 | main () | |
6485 | { | |
6486 | if (sizeof ((pid_t))) | |
6487 | return 0; | |
6488 | ; | |
6489 | return 0; | |
6490 | } | |
6491 | _ACEOF | |
6492 | rm -f conftest.$ac_objext | |
6493 | if { (ac_try="$ac_compile" | |
6494 | case "(($ac_try" in | |
6495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6496 | *) ac_try_echo=$ac_try;; | |
6497 | esac | |
6498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6499 | $as_echo "$ac_try_echo") >&5 | |
6500 | (eval "$ac_compile") 2>conftest.er1 | |
6501 | ac_status=$? | |
6502 | grep -v '^ *+' conftest.er1 >conftest.err | |
6503 | rm -f conftest.er1 | |
6504 | cat conftest.err >&5 | |
6505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6506 | (exit $ac_status); } && { | |
6507 | test -z "$ac_c_werror_flag" || | |
6508 | test ! -s conftest.err | |
6509 | } && test -s conftest.$ac_objext; then | |
6510 | : | |
6511 | else | |
6512 | $as_echo "$as_me: failed program was:" >&5 | |
6513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6514 | ||
6515 | ac_cv_type_pid_t=yes | |
6516 | fi | |
6517 | ||
6518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6519 | else | |
6520 | $as_echo "$as_me: failed program was:" >&5 | |
6521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6522 | ||
6523 | ||
6524 | fi | |
6525 | ||
6526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6527 | fi | |
6528 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6529 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6530 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6531 | : | |
6532 | else | |
6533 | ||
6534 | cat >>confdefs.h <<_ACEOF | |
6535 | #define pid_t int | |
6536 | _ACEOF | |
6537 | ||
6538 | fi | |
6539 | ||
6540 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6541 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6542 | if test "${ac_cv_type_signal+set}" = set; then | |
6543 | $as_echo_n "(cached) " >&6 | |
6544 | else | |
6545 | cat >conftest.$ac_ext <<_ACEOF | |
6546 | /* confdefs.h. */ | |
6547 | _ACEOF | |
6548 | cat confdefs.h >>conftest.$ac_ext | |
6549 | cat >>conftest.$ac_ext <<_ACEOF | |
6550 | /* end confdefs.h. */ | |
6551 | #include <sys/types.h> | |
6552 | #include <signal.h> | |
6553 | ||
6554 | int | |
6555 | main () | |
6556 | { | |
6557 | return *(signal (0, 0)) (0) == 1; | |
6558 | ; | |
6559 | return 0; | |
6560 | } | |
6561 | _ACEOF | |
6562 | rm -f conftest.$ac_objext | |
6563 | if { (ac_try="$ac_compile" | |
6564 | case "(($ac_try" in | |
6565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6566 | *) ac_try_echo=$ac_try;; | |
6567 | esac | |
6568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6569 | $as_echo "$ac_try_echo") >&5 | |
6570 | (eval "$ac_compile") 2>conftest.er1 | |
6571 | ac_status=$? | |
6572 | grep -v '^ *+' conftest.er1 >conftest.err | |
6573 | rm -f conftest.er1 | |
6574 | cat conftest.err >&5 | |
6575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6576 | (exit $ac_status); } && { | |
6577 | test -z "$ac_c_werror_flag" || | |
6578 | test ! -s conftest.err | |
6579 | } && test -s conftest.$ac_objext; then | |
6580 | ac_cv_type_signal=int | |
6581 | else | |
6582 | $as_echo "$as_me: failed program was:" >&5 | |
6583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6584 | ||
6585 | ac_cv_type_signal=void | |
6586 | fi | |
6587 | ||
6588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6589 | fi | |
6590 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6591 | $as_echo "$ac_cv_type_signal" >&6; } | |
6592 | ||
6593 | cat >>confdefs.h <<_ACEOF | |
6594 | #define RETSIGTYPE $ac_cv_type_signal | |
6595 | _ACEOF | |
6596 | ||
6597 | ||
6598 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6599 | $as_echo_n "checking for size_t... " >&6; } | |
6600 | if test "${ac_cv_type_size_t+set}" = set; then | |
6601 | $as_echo_n "(cached) " >&6 | |
6602 | else | |
6603 | ac_cv_type_size_t=no | |
6604 | cat >conftest.$ac_ext <<_ACEOF | |
6605 | /* confdefs.h. */ | |
6606 | _ACEOF | |
6607 | cat confdefs.h >>conftest.$ac_ext | |
6608 | cat >>conftest.$ac_ext <<_ACEOF | |
6609 | /* end confdefs.h. */ | |
6610 | $ac_includes_default | |
6611 | int | |
6612 | main () | |
6613 | { | |
6614 | if (sizeof (size_t)) | |
6615 | return 0; | |
6616 | ; | |
6617 | return 0; | |
6618 | } | |
6619 | _ACEOF | |
6620 | rm -f conftest.$ac_objext | |
6621 | if { (ac_try="$ac_compile" | |
6622 | case "(($ac_try" in | |
6623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6624 | *) ac_try_echo=$ac_try;; | |
6625 | esac | |
6626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6627 | $as_echo "$ac_try_echo") >&5 | |
6628 | (eval "$ac_compile") 2>conftest.er1 | |
6629 | ac_status=$? | |
6630 | grep -v '^ *+' conftest.er1 >conftest.err | |
6631 | rm -f conftest.er1 | |
6632 | cat conftest.err >&5 | |
6633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6634 | (exit $ac_status); } && { | |
6635 | test -z "$ac_c_werror_flag" || | |
6636 | test ! -s conftest.err | |
6637 | } && test -s conftest.$ac_objext; then | |
6638 | cat >conftest.$ac_ext <<_ACEOF | |
6639 | /* confdefs.h. */ | |
6640 | _ACEOF | |
6641 | cat confdefs.h >>conftest.$ac_ext | |
6642 | cat >>conftest.$ac_ext <<_ACEOF | |
6643 | /* end confdefs.h. */ | |
6644 | $ac_includes_default | |
6645 | int | |
6646 | main () | |
6647 | { | |
6648 | if (sizeof ((size_t))) | |
6649 | return 0; | |
6650 | ; | |
6651 | return 0; | |
6652 | } | |
6653 | _ACEOF | |
6654 | rm -f conftest.$ac_objext | |
6655 | if { (ac_try="$ac_compile" | |
6656 | case "(($ac_try" in | |
6657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6658 | *) ac_try_echo=$ac_try;; | |
6659 | esac | |
6660 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6661 | $as_echo "$ac_try_echo") >&5 | |
6662 | (eval "$ac_compile") 2>conftest.er1 | |
6663 | ac_status=$? | |
6664 | grep -v '^ *+' conftest.er1 >conftest.err | |
6665 | rm -f conftest.er1 | |
6666 | cat conftest.err >&5 | |
6667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6668 | (exit $ac_status); } && { | |
6669 | test -z "$ac_c_werror_flag" || | |
6670 | test ! -s conftest.err | |
6671 | } && test -s conftest.$ac_objext; then | |
6672 | : | |
ad6254c5 | 6673 | else |
d911ec67 AK |
6674 | $as_echo "$as_me: failed program was:" >&5 |
6675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6676 | |
d911ec67 | 6677 | ac_cv_type_size_t=yes |
ad6254c5 | 6678 | fi |
4922197a | 6679 | |
d911ec67 | 6680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6681 | else |
d911ec67 AK |
6682 | $as_echo "$as_me: failed program was:" >&5 |
6683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6684 | |
6685 | ||
d911ec67 | 6686 | fi |
d0191583 | 6687 | |
d911ec67 AK |
6688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6689 | fi | |
6690 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6691 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6692 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6693 | : | |
6694 | else | |
d0191583 | 6695 | |
d911ec67 AK |
6696 | cat >>confdefs.h <<_ACEOF |
6697 | #define size_t unsigned int | |
6698 | _ACEOF | |
d0191583 | 6699 | |
d911ec67 | 6700 | fi |
d0191583 | 6701 | |
d911ec67 AK |
6702 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6703 | $as_echo_n "checking for mode_t... " >&6; } | |
6704 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6705 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6706 | else |
d911ec67 | 6707 | ac_cv_type_mode_t=no |
ad6254c5 | 6708 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6709 | /* confdefs.h. */ |
6710 | _ACEOF | |
6711 | cat confdefs.h >>conftest.$ac_ext | |
6712 | cat >>conftest.$ac_ext <<_ACEOF | |
6713 | /* end confdefs.h. */ | |
6714 | $ac_includes_default | |
d911ec67 AK |
6715 | int |
6716 | main () | |
6717 | { | |
6718 | if (sizeof (mode_t)) | |
6719 | return 0; | |
6720 | ; | |
6721 | return 0; | |
6722 | } | |
ad6254c5 AK |
6723 | _ACEOF |
6724 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6725 | if { (ac_try="$ac_compile" |
6726 | case "(($ac_try" in | |
6727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6728 | *) ac_try_echo=$ac_try;; | |
6729 | esac | |
ec6a6fbe AK |
6730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6731 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6732 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6733 | ac_status=$? |
8a2fc586 AK |
6734 | grep -v '^ *+' conftest.er1 >conftest.err |
6735 | rm -f conftest.er1 | |
6736 | cat conftest.err >&5 | |
ec6a6fbe | 6737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6738 | (exit $ac_status); } && { |
6739 | test -z "$ac_c_werror_flag" || | |
6740 | test ! -s conftest.err | |
6741 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6742 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6743 | /* confdefs.h. */ |
6744 | _ACEOF | |
6745 | cat confdefs.h >>conftest.$ac_ext | |
6746 | cat >>conftest.$ac_ext <<_ACEOF | |
6747 | /* end confdefs.h. */ | |
d911ec67 AK |
6748 | $ac_includes_default |
6749 | int | |
6750 | main () | |
6751 | { | |
6752 | if (sizeof ((mode_t))) | |
6753 | return 0; | |
6754 | ; | |
6755 | return 0; | |
6756 | } | |
ad6254c5 | 6757 | _ACEOF |
d911ec67 AK |
6758 | rm -f conftest.$ac_objext |
6759 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6760 | case "(($ac_try" in |
6761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6762 | *) ac_try_echo=$ac_try;; | |
6763 | esac | |
ec6a6fbe AK |
6764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6765 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6766 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6767 | ac_status=$? |
6768 | grep -v '^ *+' conftest.er1 >conftest.err | |
6769 | rm -f conftest.er1 | |
6770 | cat conftest.err >&5 | |
ec6a6fbe | 6771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6772 | (exit $ac_status); } && { |
6773 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6774 | test ! -s conftest.err |
d911ec67 AK |
6775 | } && test -s conftest.$ac_objext; then |
6776 | : | |
ad6254c5 | 6777 | else |
ec6a6fbe | 6778 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6779 | sed 's/^/| /' conftest.$ac_ext >&5 |
6780 | ||
d911ec67 | 6781 | ac_cv_type_mode_t=yes |
ad6254c5 | 6782 | fi |
7a197a62 | 6783 | |
d911ec67 AK |
6784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6785 | else | |
6786 | $as_echo "$as_me: failed program was:" >&5 | |
6787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6788 | |
7a197a62 | 6789 | |
80992638 AK |
6790 | fi |
6791 | ||
d911ec67 | 6792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6793 | fi |
d911ec67 AK |
6794 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6795 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6796 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6797 | : | |
795ca3e5 | 6798 | else |
80992638 | 6799 | |
d911ec67 AK |
6800 | cat >>confdefs.h <<_ACEOF |
6801 | #define mode_t int | |
6802 | _ACEOF | |
ad6254c5 | 6803 | |
d911ec67 | 6804 | fi |
795ca3e5 | 6805 | |
d0191583 | 6806 | |
d911ec67 AK |
6807 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6808 | $as_echo_n "checking for int8_t... " >&6; } | |
6809 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6810 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6811 | else |
d911ec67 AK |
6812 | ac_cv_c_int8_t=no |
6813 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6814 | 'long long int' 'short int' 'signed char'; do | |
6815 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6816 | /* confdefs.h. */ |
6817 | _ACEOF | |
6818 | cat confdefs.h >>conftest.$ac_ext | |
6819 | cat >>conftest.$ac_ext <<_ACEOF | |
6820 | /* end confdefs.h. */ | |
6821 | $ac_includes_default | |
d911ec67 AK |
6822 | int |
6823 | main () | |
6824 | { | |
6825 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6826 | test_array [0] = 0 | |
6827 | ||
6828 | ; | |
6829 | return 0; | |
6830 | } | |
ad6254c5 AK |
6831 | _ACEOF |
6832 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6833 | if { (ac_try="$ac_compile" |
6834 | case "(($ac_try" in | |
6835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6836 | *) ac_try_echo=$ac_try;; | |
6837 | esac | |
ec6a6fbe AK |
6838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6839 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6840 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6841 | ac_status=$? |
8a2fc586 AK |
6842 | grep -v '^ *+' conftest.er1 >conftest.err |
6843 | rm -f conftest.er1 | |
6844 | cat conftest.err >&5 | |
ec6a6fbe | 6845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6846 | (exit $ac_status); } && { |
6847 | test -z "$ac_c_werror_flag" || | |
6848 | test ! -s conftest.err | |
6849 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6850 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6851 | /* confdefs.h. */ |
6852 | _ACEOF | |
6853 | cat confdefs.h >>conftest.$ac_ext | |
6854 | cat >>conftest.$ac_ext <<_ACEOF | |
6855 | /* end confdefs.h. */ | |
d911ec67 AK |
6856 | $ac_includes_default |
6857 | int | |
6858 | main () | |
6859 | { | |
6860 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6861 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6862 | test_array [0] = 0 | |
6863 | ||
6864 | ; | |
6865 | return 0; | |
6866 | } | |
ad6254c5 | 6867 | _ACEOF |
d911ec67 AK |
6868 | rm -f conftest.$ac_objext |
6869 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6870 | case "(($ac_try" in |
6871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6872 | *) ac_try_echo=$ac_try;; | |
6873 | esac | |
ec6a6fbe AK |
6874 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6875 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6876 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6877 | ac_status=$? |
6878 | grep -v '^ *+' conftest.er1 >conftest.err | |
6879 | rm -f conftest.er1 | |
6880 | cat conftest.err >&5 | |
ec6a6fbe | 6881 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6882 | (exit $ac_status); } && { |
6883 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6884 | test ! -s conftest.err |
d911ec67 AK |
6885 | } && test -s conftest.$ac_objext; then |
6886 | : | |
ad6254c5 | 6887 | else |
ec6a6fbe | 6888 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6889 | sed 's/^/| /' conftest.$ac_ext >&5 |
6890 | ||
d911ec67 AK |
6891 | case $ac_type in |
6892 | int8_t) ac_cv_c_int8_t=yes ;; | |
6893 | *) ac_cv_c_int8_t=$ac_type ;; | |
6894 | esac | |
ad6254c5 | 6895 | |
d911ec67 | 6896 | fi |
7a197a62 | 6897 | |
d911ec67 | 6898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6899 | else |
d911ec67 AK |
6900 | $as_echo "$as_me: failed program was:" >&5 |
6901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6902 | ||
b896caa1 | 6903 | |
ad6254c5 | 6904 | fi |
ad6254c5 | 6905 | |
d911ec67 AK |
6906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6907 | test "$ac_cv_c_int8_t" != no && break | |
6908 | done | |
80992638 | 6909 | fi |
d911ec67 AK |
6910 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6911 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6912 | case $ac_cv_c_int8_t in #( | |
6913 | no|yes) ;; #( | |
6914 | *) | |
80992638 | 6915 | |
d911ec67 AK |
6916 | cat >>confdefs.h <<_ACEOF |
6917 | #define int8_t $ac_cv_c_int8_t | |
6918 | _ACEOF | |
6919 | ;; | |
6920 | esac | |
d0191583 | 6921 | |
d3c8211f | 6922 | |
d911ec67 AK |
6923 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6924 | $as_echo_n "checking for int16_t... " >&6; } | |
6925 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6926 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6927 | else |
d911ec67 AK |
6928 | ac_cv_c_int16_t=no |
6929 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6930 | 'long long int' 'short int' 'signed char'; do | |
6931 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6932 | /* confdefs.h. */ |
6933 | _ACEOF | |
6934 | cat confdefs.h >>conftest.$ac_ext | |
6935 | cat >>conftest.$ac_ext <<_ACEOF | |
6936 | /* end confdefs.h. */ | |
d911ec67 | 6937 | $ac_includes_default |
ad6254c5 AK |
6938 | int |
6939 | main () | |
6940 | { | |
d911ec67 AK |
6941 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6942 | test_array [0] = 0 | |
ad6254c5 AK |
6943 | |
6944 | ; | |
6945 | return 0; | |
6946 | } | |
6947 | _ACEOF | |
6948 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6949 | if { (ac_try="$ac_compile" |
6950 | case "(($ac_try" in | |
6951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6952 | *) ac_try_echo=$ac_try;; | |
6953 | esac | |
ec6a6fbe AK |
6954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6955 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6956 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6957 | ac_status=$? |
8a2fc586 AK |
6958 | grep -v '^ *+' conftest.er1 >conftest.err |
6959 | rm -f conftest.er1 | |
6960 | cat conftest.err >&5 | |
ec6a6fbe | 6961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6962 | (exit $ac_status); } && { |
6963 | test -z "$ac_c_werror_flag" || | |
6964 | test ! -s conftest.err | |
6965 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6966 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6967 | /* confdefs.h. */ |
6968 | _ACEOF | |
6969 | cat confdefs.h >>conftest.$ac_ext | |
6970 | cat >>conftest.$ac_ext <<_ACEOF | |
6971 | /* end confdefs.h. */ | |
d911ec67 AK |
6972 | $ac_includes_default |
6973 | int | |
6974 | main () | |
6975 | { | |
6976 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6977 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6978 | test_array [0] = 0 | |
80992638 | 6979 | |
d911ec67 AK |
6980 | ; |
6981 | return 0; | |
6982 | } | |
ad6254c5 AK |
6983 | _ACEOF |
6984 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6985 | if { (ac_try="$ac_compile" |
6986 | case "(($ac_try" in | |
6987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6988 | *) ac_try_echo=$ac_try;; | |
6989 | esac | |
ec6a6fbe AK |
6990 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6991 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6992 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6993 | ac_status=$? |
8a2fc586 AK |
6994 | grep -v '^ *+' conftest.er1 >conftest.err |
6995 | rm -f conftest.er1 | |
6996 | cat conftest.err >&5 | |
ec6a6fbe | 6997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6998 | (exit $ac_status); } && { |
6999 | test -z "$ac_c_werror_flag" || | |
7000 | test ! -s conftest.err | |
7001 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7002 | : |
ad6254c5 | 7003 | else |
ec6a6fbe | 7004 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 7005 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 7006 | |
d911ec67 AK |
7007 | case $ac_type in |
7008 | int16_t) ac_cv_c_int16_t=yes ;; | |
7009 | *) ac_cv_c_int16_t=$ac_type ;; | |
7010 | esac | |
7a197a62 | 7011 | |
8ce0cbda | 7012 | fi |
7a197a62 AK |
7013 | |
7014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7015 | else |
7016 | $as_echo "$as_me: failed program was:" >&5 | |
7017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7018 | |
8a2fc586 | 7019 | |
d911ec67 | 7020 | fi |
8a2fc586 | 7021 | |
d911ec67 AK |
7022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7023 | test "$ac_cv_c_int16_t" != no && break | |
7024 | done | |
7025 | fi | |
7026 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7027 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7028 | case $ac_cv_c_int16_t in #( | |
7029 | no|yes) ;; #( | |
8a2fc586 | 7030 | *) |
d911ec67 AK |
7031 | |
7032 | cat >>confdefs.h <<_ACEOF | |
7033 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7034 | _ACEOF |
d911ec67 AK |
7035 | ;; |
7036 | esac | |
d0191583 | 7037 | |
d911ec67 AK |
7038 | |
7039 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7040 | $as_echo_n "checking for int32_t... " >&6; } | |
7041 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7042 | $as_echo_n "(cached) " >&6 |
d0191583 | 7043 | else |
d911ec67 AK |
7044 | ac_cv_c_int32_t=no |
7045 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7046 | 'long long int' 'short int' 'signed char'; do | |
7047 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7048 | /* confdefs.h. */ |
7049 | _ACEOF | |
7050 | cat confdefs.h >>conftest.$ac_ext | |
7051 | cat >>conftest.$ac_ext <<_ACEOF | |
7052 | /* end confdefs.h. */ | |
7053 | $ac_includes_default | |
7054 | int | |
7055 | main () | |
7056 | { | |
d911ec67 AK |
7057 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7058 | test_array [0] = 0 | |
7059 | ||
d0191583 JM |
7060 | ; |
7061 | return 0; | |
7062 | } | |
7063 | _ACEOF | |
7064 | rm -f conftest.$ac_objext | |
7065 | if { (ac_try="$ac_compile" | |
7066 | case "(($ac_try" in | |
7067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7068 | *) ac_try_echo=$ac_try;; | |
7069 | esac | |
ec6a6fbe AK |
7070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7071 | $as_echo "$ac_try_echo") >&5 | |
7072 | (eval "$ac_compile") 2>conftest.er1 | |
7073 | ac_status=$? | |
7074 | grep -v '^ *+' conftest.er1 >conftest.err | |
7075 | rm -f conftest.er1 | |
7076 | cat conftest.err >&5 | |
7077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7078 | (exit $ac_status); } && { | |
7079 | test -z "$ac_c_werror_flag" || | |
7080 | test ! -s conftest.err | |
7081 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7082 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7083 | /* confdefs.h. */ |
7084 | _ACEOF | |
7085 | cat confdefs.h >>conftest.$ac_ext | |
7086 | cat >>conftest.$ac_ext <<_ACEOF | |
7087 | /* end confdefs.h. */ | |
7088 | $ac_includes_default | |
7089 | int | |
7090 | main () | |
7091 | { | |
d911ec67 AK |
7092 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7093 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7094 | test_array [0] = 0 | |
7095 | ||
ec6a6fbe AK |
7096 | ; |
7097 | return 0; | |
7098 | } | |
7099 | _ACEOF | |
7100 | rm -f conftest.$ac_objext | |
7101 | if { (ac_try="$ac_compile" | |
7102 | case "(($ac_try" in | |
7103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7104 | *) ac_try_echo=$ac_try;; | |
7105 | esac | |
7106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7107 | $as_echo "$ac_try_echo") >&5 | |
7108 | (eval "$ac_compile") 2>conftest.er1 | |
7109 | ac_status=$? | |
7110 | grep -v '^ *+' conftest.er1 >conftest.err | |
7111 | rm -f conftest.er1 | |
7112 | cat conftest.err >&5 | |
7113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7114 | (exit $ac_status); } && { | |
7115 | test -z "$ac_c_werror_flag" || | |
7116 | test ! -s conftest.err | |
7117 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7118 | : |
ec6a6fbe AK |
7119 | else |
7120 | $as_echo "$as_me: failed program was:" >&5 | |
7121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7122 | ||
d911ec67 AK |
7123 | case $ac_type in |
7124 | int32_t) ac_cv_c_int32_t=yes ;; | |
7125 | *) ac_cv_c_int32_t=$ac_type ;; | |
7126 | esac | |
7127 | ||
ec6a6fbe AK |
7128 | fi |
7129 | ||
7130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7131 | else |
7132 | $as_echo "$as_me: failed program was:" >&5 | |
7133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7134 | ||
7135 | ||
ec6a6fbe AK |
7136 | fi |
7137 | ||
7138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7139 | test "$ac_cv_c_int32_t" != no && break |
7140 | done | |
ec6a6fbe | 7141 | fi |
d911ec67 AK |
7142 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7143 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7144 | case $ac_cv_c_int32_t in #( | |
7145 | no|yes) ;; #( | |
7146 | *) | |
ec6a6fbe AK |
7147 | |
7148 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7149 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7150 | _ACEOF |
d911ec67 AK |
7151 | ;; |
7152 | esac | |
ec6a6fbe AK |
7153 | |
7154 | ||
d911ec67 AK |
7155 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7156 | $as_echo_n "checking for int64_t... " >&6; } | |
7157 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7158 | $as_echo_n "(cached) " >&6 |
7159 | else | |
d911ec67 AK |
7160 | ac_cv_c_int64_t=no |
7161 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7162 | 'long long int' 'short int' 'signed char'; do | |
7163 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7164 | /* confdefs.h. */ |
7165 | _ACEOF | |
7166 | cat confdefs.h >>conftest.$ac_ext | |
7167 | cat >>conftest.$ac_ext <<_ACEOF | |
7168 | /* end confdefs.h. */ | |
7169 | $ac_includes_default | |
7170 | int | |
7171 | main () | |
7172 | { | |
d911ec67 AK |
7173 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7174 | test_array [0] = 0 | |
7175 | ||
ec6a6fbe AK |
7176 | ; |
7177 | return 0; | |
7178 | } | |
7179 | _ACEOF | |
7180 | rm -f conftest.$ac_objext | |
7181 | if { (ac_try="$ac_compile" | |
7182 | case "(($ac_try" in | |
7183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7184 | *) ac_try_echo=$ac_try;; | |
7185 | esac | |
7186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7187 | $as_echo "$ac_try_echo") >&5 | |
7188 | (eval "$ac_compile") 2>conftest.er1 | |
7189 | ac_status=$? | |
7190 | grep -v '^ *+' conftest.er1 >conftest.err | |
7191 | rm -f conftest.er1 | |
7192 | cat conftest.err >&5 | |
7193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7194 | (exit $ac_status); } && { | |
7195 | test -z "$ac_c_werror_flag" || | |
7196 | test ! -s conftest.err | |
7197 | } && test -s conftest.$ac_objext; then | |
7198 | cat >conftest.$ac_ext <<_ACEOF | |
7199 | /* confdefs.h. */ | |
7200 | _ACEOF | |
7201 | cat confdefs.h >>conftest.$ac_ext | |
7202 | cat >>conftest.$ac_ext <<_ACEOF | |
7203 | /* end confdefs.h. */ | |
7204 | $ac_includes_default | |
7205 | int | |
7206 | main () | |
7207 | { | |
d911ec67 AK |
7208 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7209 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7210 | test_array [0] = 0 | |
7211 | ||
ec6a6fbe AK |
7212 | ; |
7213 | return 0; | |
7214 | } | |
7215 | _ACEOF | |
7216 | rm -f conftest.$ac_objext | |
7217 | if { (ac_try="$ac_compile" | |
7218 | case "(($ac_try" in | |
7219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7220 | *) ac_try_echo=$ac_try;; | |
7221 | esac | |
7222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7223 | $as_echo "$ac_try_echo") >&5 | |
7224 | (eval "$ac_compile") 2>conftest.er1 | |
7225 | ac_status=$? | |
7226 | grep -v '^ *+' conftest.er1 >conftest.err | |
7227 | rm -f conftest.er1 | |
7228 | cat conftest.err >&5 | |
7229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7230 | (exit $ac_status); } && { | |
7231 | test -z "$ac_c_werror_flag" || | |
7232 | test ! -s conftest.err | |
7233 | } && test -s conftest.$ac_objext; then | |
7234 | : | |
7235 | else | |
7236 | $as_echo "$as_me: failed program was:" >&5 | |
7237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7238 | ||
d911ec67 AK |
7239 | case $ac_type in |
7240 | int64_t) ac_cv_c_int64_t=yes ;; | |
7241 | *) ac_cv_c_int64_t=$ac_type ;; | |
7242 | esac | |
7243 | ||
ec6a6fbe AK |
7244 | fi |
7245 | ||
7246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7247 | else | |
7248 | $as_echo "$as_me: failed program was:" >&5 | |
7249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7250 | ||
7251 | ||
7252 | fi | |
7253 | ||
7254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7255 | test "$ac_cv_c_int64_t" != no && break |
7256 | done | |
ec6a6fbe | 7257 | fi |
d911ec67 AK |
7258 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7259 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7260 | case $ac_cv_c_int64_t in #( | |
7261 | no|yes) ;; #( | |
7262 | *) | |
ec6a6fbe AK |
7263 | |
7264 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7265 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7266 | _ACEOF |
d911ec67 AK |
7267 | ;; |
7268 | esac | |
ec6a6fbe | 7269 | |
d911ec67 AK |
7270 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7271 | $as_echo_n "checking for ssize_t... " >&6; } | |
7272 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7273 | $as_echo_n "(cached) " >&6 |
7274 | else | |
d911ec67 | 7275 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7276 | cat >conftest.$ac_ext <<_ACEOF |
7277 | /* confdefs.h. */ | |
7278 | _ACEOF | |
7279 | cat confdefs.h >>conftest.$ac_ext | |
7280 | cat >>conftest.$ac_ext <<_ACEOF | |
7281 | /* end confdefs.h. */ | |
7282 | $ac_includes_default | |
7283 | int | |
7284 | main () | |
7285 | { | |
d911ec67 | 7286 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7287 | return 0; |
7288 | ; | |
7289 | return 0; | |
7290 | } | |
7291 | _ACEOF | |
7292 | rm -f conftest.$ac_objext | |
7293 | if { (ac_try="$ac_compile" | |
7294 | case "(($ac_try" in | |
7295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7296 | *) ac_try_echo=$ac_try;; | |
7297 | esac | |
7298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7299 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7300 | (eval "$ac_compile") 2>conftest.er1 |
7301 | ac_status=$? | |
7302 | grep -v '^ *+' conftest.er1 >conftest.err | |
7303 | rm -f conftest.er1 | |
7304 | cat conftest.err >&5 | |
ec6a6fbe | 7305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7306 | (exit $ac_status); } && { |
7307 | test -z "$ac_c_werror_flag" || | |
7308 | test ! -s conftest.err | |
7309 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7310 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7311 | /* confdefs.h. */ |
7312 | _ACEOF | |
7313 | cat confdefs.h >>conftest.$ac_ext | |
7314 | cat >>conftest.$ac_ext <<_ACEOF | |
7315 | /* end confdefs.h. */ | |
7316 | $ac_includes_default | |
7317 | int | |
7318 | main () | |
7319 | { | |
d911ec67 | 7320 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7321 | return 0; |
d0191583 JM |
7322 | ; |
7323 | return 0; | |
7324 | } | |
7325 | _ACEOF | |
7326 | rm -f conftest.$ac_objext | |
7327 | if { (ac_try="$ac_compile" | |
7328 | case "(($ac_try" in | |
7329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7330 | *) ac_try_echo=$ac_try;; | |
7331 | esac | |
ec6a6fbe AK |
7332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7333 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7334 | (eval "$ac_compile") 2>conftest.er1 |
7335 | ac_status=$? | |
7336 | grep -v '^ *+' conftest.er1 >conftest.err | |
7337 | rm -f conftest.er1 | |
7338 | cat conftest.err >&5 | |
ec6a6fbe | 7339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7340 | (exit $ac_status); } && { |
7341 | test -z "$ac_c_werror_flag" || | |
7342 | test ! -s conftest.err | |
7343 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7344 | : |
d0191583 | 7345 | else |
ec6a6fbe | 7346 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7347 | sed 's/^/| /' conftest.$ac_ext >&5 |
7348 | ||
d911ec67 | 7349 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7350 | fi |
7351 | ||
7352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7353 | else |
7354 | $as_echo "$as_me: failed program was:" >&5 | |
7355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7356 | ||
7357 | ||
d0191583 JM |
7358 | fi |
7359 | ||
7360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7361 | fi | |
d911ec67 AK |
7362 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7363 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7364 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7365 | : |
7366 | else | |
d0191583 JM |
7367 | |
7368 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7369 | #define ssize_t int |
d0191583 JM |
7370 | _ACEOF |
7371 | ||
d0191583 | 7372 | fi |
8ce0cbda | 7373 | |
d911ec67 AK |
7374 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7375 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7376 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7377 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7378 | else |
b145d876 ZK |
7379 | cat >conftest.$ac_ext <<_ACEOF |
7380 | /* confdefs.h. */ | |
7381 | _ACEOF | |
7382 | cat confdefs.h >>conftest.$ac_ext | |
7383 | cat >>conftest.$ac_ext <<_ACEOF | |
7384 | /* end confdefs.h. */ | |
ec6a6fbe | 7385 | #include <sys/types.h> |
ec6a6fbe | 7386 | |
ad6254c5 | 7387 | _ACEOF |
d911ec67 AK |
7388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7389 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7390 | ac_cv_type_uid_t=yes | |
b145d876 | 7391 | else |
d911ec67 | 7392 | ac_cv_type_uid_t=no |
ad6254c5 | 7393 | fi |
d911ec67 | 7394 | rm -f conftest* |
b145d876 | 7395 | |
b145d876 | 7396 | fi |
d911ec67 AK |
7397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7398 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7399 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7400 | |
d911ec67 AK |
7401 | cat >>confdefs.h <<\_ACEOF |
7402 | #define uid_t int | |
ad6254c5 | 7403 | _ACEOF |
199e490e | 7404 | |
b896caa1 | 7405 | |
d911ec67 AK |
7406 | cat >>confdefs.h <<\_ACEOF |
7407 | #define gid_t int | |
7408 | _ACEOF | |
7409 | ||
7410 | fi | |
7411 | ||
7412 | ||
7413 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7414 | $as_echo_n "checking for uint8_t... " >&6; } | |
7415 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7416 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7417 | else |
d911ec67 AK |
7418 | ac_cv_c_uint8_t=no |
7419 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7420 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7421 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7422 | /* confdefs.h. */ |
7423 | _ACEOF | |
7424 | cat confdefs.h >>conftest.$ac_ext | |
7425 | cat >>conftest.$ac_ext <<_ACEOF | |
7426 | /* end confdefs.h. */ | |
7427 | $ac_includes_default | |
7428 | int | |
7429 | main () | |
7430 | { | |
d911ec67 AK |
7431 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7432 | test_array [0] = 0 | |
7433 | ||
ad6254c5 AK |
7434 | ; |
7435 | return 0; | |
7436 | } | |
7437 | _ACEOF | |
7438 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7439 | if { (ac_try="$ac_compile" |
7440 | case "(($ac_try" in | |
7441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7442 | *) ac_try_echo=$ac_try;; | |
7443 | esac | |
ec6a6fbe AK |
7444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7445 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7446 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7447 | ac_status=$? |
8a2fc586 AK |
7448 | grep -v '^ *+' conftest.er1 >conftest.err |
7449 | rm -f conftest.er1 | |
7450 | cat conftest.err >&5 | |
ec6a6fbe | 7451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7452 | (exit $ac_status); } && { |
7453 | test -z "$ac_c_werror_flag" || | |
7454 | test ! -s conftest.err | |
7455 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7456 | case $ac_type in |
7457 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7458 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7459 | esac | |
7460 | ||
7461 | else | |
7462 | $as_echo "$as_me: failed program was:" >&5 | |
7463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7464 | ||
7465 | ||
7466 | fi | |
7467 | ||
7468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7469 | test "$ac_cv_c_uint8_t" != no && break | |
7470 | done | |
7471 | fi | |
7472 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7473 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7474 | case $ac_cv_c_uint8_t in #( | |
7475 | no|yes) ;; #( | |
7476 | *) | |
7477 | ||
7478 | cat >>confdefs.h <<\_ACEOF | |
7479 | #define _UINT8_T 1 | |
7480 | _ACEOF | |
7481 | ||
7482 | ||
7483 | cat >>confdefs.h <<_ACEOF | |
7484 | #define uint8_t $ac_cv_c_uint8_t | |
7485 | _ACEOF | |
7486 | ;; | |
7487 | esac | |
7488 | ||
7489 | ||
7490 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7491 | $as_echo_n "checking for uint16_t... " >&6; } | |
7492 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7493 | $as_echo_n "(cached) " >&6 | |
7494 | else | |
7495 | ac_cv_c_uint16_t=no | |
7496 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7497 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7498 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7499 | /* confdefs.h. */ |
7500 | _ACEOF | |
7501 | cat confdefs.h >>conftest.$ac_ext | |
7502 | cat >>conftest.$ac_ext <<_ACEOF | |
7503 | /* end confdefs.h. */ | |
ec6a6fbe | 7504 | $ac_includes_default |
d0191583 JM |
7505 | int |
7506 | main () | |
7507 | { | |
d911ec67 AK |
7508 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7509 | test_array [0] = 0 | |
7510 | ||
d0191583 JM |
7511 | ; |
7512 | return 0; | |
7513 | } | |
7514 | _ACEOF | |
7515 | rm -f conftest.$ac_objext | |
7516 | if { (ac_try="$ac_compile" | |
7517 | case "(($ac_try" in | |
7518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7519 | *) ac_try_echo=$ac_try;; | |
7520 | esac | |
ec6a6fbe AK |
7521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7522 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7523 | (eval "$ac_compile") 2>conftest.er1 |
7524 | ac_status=$? | |
7525 | grep -v '^ *+' conftest.er1 >conftest.err | |
7526 | rm -f conftest.er1 | |
7527 | cat conftest.err >&5 | |
ec6a6fbe | 7528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7529 | (exit $ac_status); } && { |
7530 | test -z "$ac_c_werror_flag" || | |
7531 | test ! -s conftest.err | |
7532 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7533 | case $ac_type in |
7534 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7535 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7536 | esac | |
ec6a6fbe | 7537 | |
ec6a6fbe AK |
7538 | else |
7539 | $as_echo "$as_me: failed program was:" >&5 | |
7540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7541 | ||
7542 | ||
d0191583 JM |
7543 | fi |
7544 | ||
7545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7546 | test "$ac_cv_c_uint16_t" != no && break |
7547 | done | |
d0191583 | 7548 | fi |
d911ec67 AK |
7549 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7550 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7551 | case $ac_cv_c_uint16_t in #( | |
7552 | no|yes) ;; #( | |
7553 | *) | |
7554 | ||
d0191583 JM |
7555 | |
7556 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7557 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7558 | _ACEOF |
d911ec67 AK |
7559 | ;; |
7560 | esac | |
d0191583 JM |
7561 | |
7562 | ||
d911ec67 AK |
7563 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7564 | $as_echo_n "checking for uint32_t... " >&6; } | |
7565 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7566 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7567 | else |
d911ec67 AK |
7568 | ac_cv_c_uint32_t=no |
7569 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7570 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7571 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7572 | /* confdefs.h. */ |
7573 | _ACEOF | |
7574 | cat confdefs.h >>conftest.$ac_ext | |
7575 | cat >>conftest.$ac_ext <<_ACEOF | |
7576 | /* end confdefs.h. */ | |
7577 | $ac_includes_default | |
7578 | int | |
7579 | main () | |
7580 | { | |
d911ec67 AK |
7581 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7582 | test_array [0] = 0 | |
7583 | ||
ad6254c5 AK |
7584 | ; |
7585 | return 0; | |
7586 | } | |
7587 | _ACEOF | |
7588 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7589 | if { (ac_try="$ac_compile" |
7590 | case "(($ac_try" in | |
7591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7592 | *) ac_try_echo=$ac_try;; | |
7593 | esac | |
ec6a6fbe AK |
7594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7595 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7596 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7597 | ac_status=$? |
8a2fc586 AK |
7598 | grep -v '^ *+' conftest.er1 >conftest.err |
7599 | rm -f conftest.er1 | |
7600 | cat conftest.err >&5 | |
ec6a6fbe | 7601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7602 | (exit $ac_status); } && { |
7603 | test -z "$ac_c_werror_flag" || | |
7604 | test ! -s conftest.err | |
7605 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7606 | case $ac_type in |
7607 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7608 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7609 | esac | |
7610 | ||
7611 | else | |
7612 | $as_echo "$as_me: failed program was:" >&5 | |
7613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7614 | ||
7615 | ||
7616 | fi | |
7617 | ||
7618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7619 | test "$ac_cv_c_uint32_t" != no && break | |
7620 | done | |
7621 | fi | |
7622 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7623 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7624 | case $ac_cv_c_uint32_t in #( | |
7625 | no|yes) ;; #( | |
7626 | *) | |
7627 | ||
7628 | cat >>confdefs.h <<\_ACEOF | |
7629 | #define _UINT32_T 1 | |
7630 | _ACEOF | |
7631 | ||
7632 | ||
7633 | cat >>confdefs.h <<_ACEOF | |
7634 | #define uint32_t $ac_cv_c_uint32_t | |
7635 | _ACEOF | |
7636 | ;; | |
7637 | esac | |
7638 | ||
7639 | ||
7640 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7641 | $as_echo_n "checking for uint64_t... " >&6; } | |
7642 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7643 | $as_echo_n "(cached) " >&6 | |
7644 | else | |
7645 | ac_cv_c_uint64_t=no | |
7646 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7647 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7648 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7649 | /* confdefs.h. */ |
7650 | _ACEOF | |
7651 | cat confdefs.h >>conftest.$ac_ext | |
7652 | cat >>conftest.$ac_ext <<_ACEOF | |
7653 | /* end confdefs.h. */ | |
7654 | $ac_includes_default | |
7655 | int | |
7656 | main () | |
7657 | { | |
d911ec67 AK |
7658 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7659 | test_array [0] = 0 | |
7660 | ||
ad6254c5 AK |
7661 | ; |
7662 | return 0; | |
7663 | } | |
7664 | _ACEOF | |
7665 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7666 | if { (ac_try="$ac_compile" |
7667 | case "(($ac_try" in | |
7668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7669 | *) ac_try_echo=$ac_try;; | |
7670 | esac | |
ec6a6fbe AK |
7671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7672 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7673 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7674 | ac_status=$? |
8a2fc586 AK |
7675 | grep -v '^ *+' conftest.er1 >conftest.err |
7676 | rm -f conftest.er1 | |
7677 | cat conftest.err >&5 | |
ec6a6fbe | 7678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7679 | (exit $ac_status); } && { |
7680 | test -z "$ac_c_werror_flag" || | |
7681 | test ! -s conftest.err | |
7682 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7683 | case $ac_type in |
7684 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7685 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7686 | esac | |
ec6a6fbe | 7687 | |
fddafd51 | 7688 | else |
ec6a6fbe | 7689 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7690 | sed 's/^/| /' conftest.$ac_ext >&5 |
7691 | ||
ec6a6fbe | 7692 | |
80992638 | 7693 | fi |
7a197a62 AK |
7694 | |
7695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7696 | test "$ac_cv_c_uint64_t" != no && break |
7697 | done | |
ad6254c5 | 7698 | fi |
d911ec67 AK |
7699 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7700 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7701 | case $ac_cv_c_uint64_t in #( | |
7702 | no|yes) ;; #( | |
7703 | *) | |
80992638 | 7704 | |
d911ec67 AK |
7705 | cat >>confdefs.h <<\_ACEOF |
7706 | #define _UINT64_T 1 | |
ad6254c5 AK |
7707 | _ACEOF |
7708 | ||
d911ec67 AK |
7709 | |
7710 | cat >>confdefs.h <<_ACEOF | |
7711 | #define uint64_t $ac_cv_c_uint64_t | |
7712 | _ACEOF | |
7713 | ;; | |
7714 | esac | |
ad6254c5 | 7715 | |
ec6a6fbe AK |
7716 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7717 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7718 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7719 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7720 | else |
7721 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7722 | /* confdefs.h. */ |
7723 | _ACEOF | |
7724 | cat confdefs.h >>conftest.$ac_ext | |
7725 | cat >>conftest.$ac_ext <<_ACEOF | |
7726 | /* end confdefs.h. */ | |
7727 | $ac_includes_default | |
7728 | int | |
7729 | main () | |
7730 | { | |
7731 | static struct stat ac_aggr; | |
7732 | if (ac_aggr.st_rdev) | |
7733 | return 0; | |
7734 | ; | |
7735 | return 0; | |
7736 | } | |
7737 | _ACEOF | |
7738 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7739 | if { (ac_try="$ac_compile" |
7740 | case "(($ac_try" in | |
7741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7742 | *) ac_try_echo=$ac_try;; | |
7743 | esac | |
ec6a6fbe AK |
7744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7745 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7746 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7747 | ac_status=$? |
8a2fc586 AK |
7748 | grep -v '^ *+' conftest.er1 >conftest.err |
7749 | rm -f conftest.er1 | |
7750 | cat conftest.err >&5 | |
ec6a6fbe | 7751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7752 | (exit $ac_status); } && { |
7753 | test -z "$ac_c_werror_flag" || | |
7754 | test ! -s conftest.err | |
7755 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7756 | ac_cv_member_struct_stat_st_rdev=yes |
7757 | else | |
ec6a6fbe | 7758 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7759 | sed 's/^/| /' conftest.$ac_ext >&5 |
7760 | ||
7a197a62 | 7761 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7762 | /* confdefs.h. */ |
7763 | _ACEOF | |
7764 | cat confdefs.h >>conftest.$ac_ext | |
7765 | cat >>conftest.$ac_ext <<_ACEOF | |
7766 | /* end confdefs.h. */ | |
7767 | $ac_includes_default | |
7768 | int | |
7769 | main () | |
7770 | { | |
7771 | static struct stat ac_aggr; | |
7772 | if (sizeof ac_aggr.st_rdev) | |
7773 | return 0; | |
7774 | ; | |
7775 | return 0; | |
7776 | } | |
7777 | _ACEOF | |
7778 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7779 | if { (ac_try="$ac_compile" |
7780 | case "(($ac_try" in | |
7781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7782 | *) ac_try_echo=$ac_try;; | |
7783 | esac | |
ec6a6fbe AK |
7784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7785 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7786 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7787 | ac_status=$? |
8a2fc586 AK |
7788 | grep -v '^ *+' conftest.er1 >conftest.err |
7789 | rm -f conftest.er1 | |
7790 | cat conftest.err >&5 | |
ec6a6fbe | 7791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7792 | (exit $ac_status); } && { |
7793 | test -z "$ac_c_werror_flag" || | |
7794 | test ! -s conftest.err | |
7795 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7796 | ac_cv_member_struct_stat_st_rdev=yes |
7797 | else | |
ec6a6fbe | 7798 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7799 | sed 's/^/| /' conftest.$ac_ext >&5 |
7800 | ||
7a197a62 | 7801 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7802 | fi |
7a197a62 AK |
7803 | |
7804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7805 | fi |
7a197a62 AK |
7806 | |
7807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7808 | fi |
ec6a6fbe AK |
7809 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7810 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7811 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7812 | |
7813 | cat >>confdefs.h <<_ACEOF | |
7814 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7815 | _ACEOF | |
7816 | ||
7817 | ||
ad6254c5 AK |
7818 | fi |
7819 | ||
ec6a6fbe AK |
7820 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7821 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7822 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7823 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7824 | else |
7825 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7826 | /* confdefs.h. */ |
7827 | _ACEOF | |
7828 | cat confdefs.h >>conftest.$ac_ext | |
7829 | cat >>conftest.$ac_ext <<_ACEOF | |
7830 | /* end confdefs.h. */ | |
7831 | #include <sys/types.h> | |
7832 | #include <time.h> | |
7833 | ||
7834 | int | |
7835 | main () | |
7836 | { | |
25fbec5b AK |
7837 | struct tm tm; |
7838 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7839 | return !p; |
ad6254c5 AK |
7840 | ; |
7841 | return 0; | |
7842 | } | |
7843 | _ACEOF | |
7844 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7845 | if { (ac_try="$ac_compile" |
7846 | case "(($ac_try" in | |
7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7848 | *) ac_try_echo=$ac_try;; | |
7849 | esac | |
ec6a6fbe AK |
7850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7851 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7852 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7853 | ac_status=$? |
8a2fc586 AK |
7854 | grep -v '^ *+' conftest.er1 >conftest.err |
7855 | rm -f conftest.er1 | |
7856 | cat conftest.err >&5 | |
ec6a6fbe | 7857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7858 | (exit $ac_status); } && { |
7859 | test -z "$ac_c_werror_flag" || | |
7860 | test ! -s conftest.err | |
d911ec67 AK |
7861 | } && test -s conftest.$ac_objext; then |
7862 | ac_cv_struct_tm=time.h | |
7863 | else | |
7864 | $as_echo "$as_me: failed program was:" >&5 | |
7865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7866 | ||
7867 | ac_cv_struct_tm=sys/time.h | |
7868 | fi | |
7869 | ||
7870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7871 | fi | |
7872 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7873 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7874 | if test $ac_cv_struct_tm = sys/time.h; then | |
7875 | ||
7876 | cat >>confdefs.h <<\_ACEOF | |
7877 | #define TM_IN_SYS_TIME 1 | |
7878 | _ACEOF | |
7879 | ||
7880 | fi | |
7881 | ||
7882 | ||
7883 | ################################################################################ | |
7884 | { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5 | |
7885 | $as_echo_n "checking for library containing floor... " >&6; } | |
7886 | if test "${ac_cv_search_floor+set}" = set; then | |
7887 | $as_echo_n "(cached) " >&6 | |
7888 | else | |
7889 | ac_func_search_save_LIBS=$LIBS | |
7890 | cat >conftest.$ac_ext <<_ACEOF | |
7891 | /* confdefs.h. */ | |
7892 | _ACEOF | |
7893 | cat confdefs.h >>conftest.$ac_ext | |
7894 | cat >>conftest.$ac_ext <<_ACEOF | |
7895 | /* end confdefs.h. */ | |
7896 | ||
7897 | /* Override any GCC internal prototype to avoid an error. | |
7898 | Use char because int might match the return type of a GCC | |
7899 | builtin and then its argument prototype would still apply. */ | |
7900 | #ifdef __cplusplus | |
7901 | extern "C" | |
7902 | #endif | |
7903 | char floor (); | |
7904 | int | |
7905 | main () | |
7906 | { | |
7907 | return floor (); | |
7908 | ; | |
7909 | return 0; | |
7910 | } | |
7911 | _ACEOF | |
7912 | for ac_lib in '' m; do | |
7913 | if test -z "$ac_lib"; then | |
7914 | ac_res="none required" | |
7915 | else | |
7916 | ac_res=-l$ac_lib | |
7917 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7918 | fi | |
7919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7920 | if { (ac_try="$ac_link" | |
7921 | case "(($ac_try" in | |
7922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7923 | *) ac_try_echo=$ac_try;; | |
7924 | esac | |
7925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7926 | $as_echo "$ac_try_echo") >&5 | |
7927 | (eval "$ac_link") 2>conftest.er1 | |
7928 | ac_status=$? | |
7929 | grep -v '^ *+' conftest.er1 >conftest.err | |
7930 | rm -f conftest.er1 | |
7931 | cat conftest.err >&5 | |
7932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7933 | (exit $ac_status); } && { | |
7934 | test -z "$ac_c_werror_flag" || | |
7935 | test ! -s conftest.err | |
7936 | } && test -s conftest$ac_exeext && { | |
7937 | test "$cross_compiling" = yes || | |
7938 | $as_test_x conftest$ac_exeext | |
7939 | }; then | |
7940 | ac_cv_search_floor=$ac_res | |
ad6254c5 | 7941 | else |
ec6a6fbe | 7942 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7943 | sed 's/^/| /' conftest.$ac_ext >&5 |
7944 | ||
7a197a62 | 7945 | |
ad6254c5 | 7946 | fi |
ad6254c5 | 7947 | |
d911ec67 AK |
7948 | rm -rf conftest.dSYM |
7949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7950 | conftest$ac_exeext | |
7951 | if test "${ac_cv_search_floor+set}" = set; then | |
7952 | break | |
7953 | fi | |
7954 | done | |
7955 | if test "${ac_cv_search_floor+set}" = set; then | |
7956 | : | |
7957 | else | |
7958 | ac_cv_search_floor=no | |
7959 | fi | |
7960 | rm conftest.$ac_ext | |
7961 | LIBS=$ac_func_search_save_LIBS | |
7962 | fi | |
7963 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5 | |
7964 | $as_echo "$ac_cv_search_floor" >&6; } | |
7965 | ac_res=$ac_cv_search_floor | |
7966 | if test "$ac_res" != no; then | |
7967 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 | 7968 | |
d911ec67 AK |
7969 | else |
7970 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
7971 | $as_echo "$as_me: error: bailing out" >&2;} | |
7972 | { (exit 1); exit 1; }; } | |
ad6254c5 | 7973 | fi |
809fae91 | 7974 | |
795ca3e5 | 7975 | |
ad6254c5 AK |
7976 | |
7977 | ||
7978 | ||
7979 | ||
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | ||
7989 | ||
d0191583 JM |
7990 | |
7991 | ||
7992 | ||
d911ec67 AK |
7993 | |
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | ||
7999 | ||
8000 | for ac_func in floor ftruncate gethostname getpagesize \ | |
8001 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
8002 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
8003 | strstr strtol strtoul uname | |
ad6254c5 | 8004 | do |
ec6a6fbe AK |
8005 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8006 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8007 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8008 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8009 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8010 | else |
ad6254c5 | 8011 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8012 | /* confdefs.h. */ |
8013 | _ACEOF | |
8014 | cat confdefs.h >>conftest.$ac_ext | |
8015 | cat >>conftest.$ac_ext <<_ACEOF | |
8016 | /* end confdefs.h. */ | |
8a2fc586 AK |
8017 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8018 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8019 | #define $ac_func innocuous_$ac_func | |
8020 | ||
ad6254c5 AK |
8021 | /* System header to define __stub macros and hopefully few prototypes, |
8022 | which can conflict with char $ac_func (); below. | |
8023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8024 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8025 | |
ad6254c5 AK |
8026 | #ifdef __STDC__ |
8027 | # include <limits.h> | |
8028 | #else | |
8029 | # include <assert.h> | |
8030 | #endif | |
8a2fc586 AK |
8031 | |
8032 | #undef $ac_func | |
8033 | ||
7a197a62 AK |
8034 | /* Override any GCC internal prototype to avoid an error. |
8035 | Use char because int might match the return type of a GCC | |
8036 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8037 | #ifdef __cplusplus |
8038 | extern "C" | |
ad6254c5 | 8039 | #endif |
ad6254c5 AK |
8040 | char $ac_func (); |
8041 | /* The GNU C library defines this for functions which it implements | |
8042 | to always fail with ENOSYS. Some functions are actually named | |
8043 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8044 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8045 | choke me |
ad6254c5 AK |
8046 | #endif |
8047 | ||
8048 | int | |
8049 | main () | |
8050 | { | |
7a197a62 | 8051 | return $ac_func (); |
ad6254c5 AK |
8052 | ; |
8053 | return 0; | |
8054 | } | |
8055 | _ACEOF | |
8056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8057 | if { (ac_try="$ac_link" |
8058 | case "(($ac_try" in | |
8059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8060 | *) ac_try_echo=$ac_try;; | |
8061 | esac | |
ec6a6fbe AK |
8062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8063 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8064 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8065 | ac_status=$? |
8a2fc586 AK |
8066 | grep -v '^ *+' conftest.er1 >conftest.err |
8067 | rm -f conftest.er1 | |
8068 | cat conftest.err >&5 | |
ec6a6fbe | 8069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8070 | (exit $ac_status); } && { |
8071 | test -z "$ac_c_werror_flag" || | |
8072 | test ! -s conftest.err | |
ec6a6fbe AK |
8073 | } && test -s conftest$ac_exeext && { |
8074 | test "$cross_compiling" = yes || | |
8075 | $as_test_x conftest$ac_exeext | |
8076 | }; then | |
fc54be10 AK |
8077 | eval "$as_ac_var=yes" |
8078 | else | |
ec6a6fbe | 8079 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8080 | sed 's/^/| /' conftest.$ac_ext >&5 |
8081 | ||
8082 | eval "$as_ac_var=no" | |
8083 | fi | |
8084 | ||
ec6a6fbe | 8085 | rm -rf conftest.dSYM |
25fbec5b | 8086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8087 | conftest$ac_exeext conftest.$ac_ext |
8088 | fi | |
ec6a6fbe AK |
8089 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8090 | $as_echo "$as_val"'` | |
8091 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8092 | $as_echo "$ac_res" >&6; } | |
8093 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8094 | $as_echo "$as_val"'` | |
8095 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8096 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8097 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8098 | _ACEOF |
8099 | ||
8100 | else | |
ec6a6fbe AK |
8101 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8102 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8103 | { (exit 1); exit 1; }; } |
8104 | fi | |
8105 | done | |
795ca3e5 | 8106 | |
a0f9708e AK |
8107 | |
8108 | for ac_func in siginterrupt | |
8109 | do | |
8110 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8111 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8112 | $as_echo_n "checking for $ac_func... " >&6; } | |
8113 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8114 | $as_echo_n "(cached) " >&6 | |
8115 | else | |
8116 | cat >conftest.$ac_ext <<_ACEOF | |
8117 | /* confdefs.h. */ | |
8118 | _ACEOF | |
8119 | cat confdefs.h >>conftest.$ac_ext | |
8120 | cat >>conftest.$ac_ext <<_ACEOF | |
8121 | /* end confdefs.h. */ | |
8122 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8123 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8124 | #define $ac_func innocuous_$ac_func | |
8125 | ||
8126 | /* System header to define __stub macros and hopefully few prototypes, | |
8127 | which can conflict with char $ac_func (); below. | |
8128 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8129 | <limits.h> exists even on freestanding compilers. */ | |
8130 | ||
8131 | #ifdef __STDC__ | |
8132 | # include <limits.h> | |
8133 | #else | |
8134 | # include <assert.h> | |
8135 | #endif | |
8136 | ||
8137 | #undef $ac_func | |
8138 | ||
8139 | /* Override any GCC internal prototype to avoid an error. | |
8140 | Use char because int might match the return type of a GCC | |
8141 | builtin and then its argument prototype would still apply. */ | |
8142 | #ifdef __cplusplus | |
8143 | extern "C" | |
8144 | #endif | |
8145 | char $ac_func (); | |
8146 | /* The GNU C library defines this for functions which it implements | |
8147 | to always fail with ENOSYS. Some functions are actually named | |
8148 | something starting with __ and the normal name is an alias. */ | |
8149 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8150 | choke me | |
8151 | #endif | |
8152 | ||
8153 | int | |
8154 | main () | |
8155 | { | |
8156 | return $ac_func (); | |
8157 | ; | |
8158 | return 0; | |
8159 | } | |
8160 | _ACEOF | |
8161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8162 | if { (ac_try="$ac_link" | |
8163 | case "(($ac_try" in | |
8164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8165 | *) ac_try_echo=$ac_try;; | |
8166 | esac | |
8167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8168 | $as_echo "$ac_try_echo") >&5 | |
8169 | (eval "$ac_link") 2>conftest.er1 | |
8170 | ac_status=$? | |
8171 | grep -v '^ *+' conftest.er1 >conftest.err | |
8172 | rm -f conftest.er1 | |
8173 | cat conftest.err >&5 | |
8174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8175 | (exit $ac_status); } && { | |
8176 | test -z "$ac_c_werror_flag" || | |
8177 | test ! -s conftest.err | |
8178 | } && test -s conftest$ac_exeext && { | |
8179 | test "$cross_compiling" = yes || | |
8180 | $as_test_x conftest$ac_exeext | |
8181 | }; then | |
8182 | eval "$as_ac_var=yes" | |
8183 | else | |
8184 | $as_echo "$as_me: failed program was:" >&5 | |
8185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8186 | ||
8187 | eval "$as_ac_var=no" | |
8188 | fi | |
8189 | ||
8190 | rm -rf conftest.dSYM | |
8191 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8192 | conftest$ac_exeext conftest.$ac_ext | |
8193 | fi | |
8194 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8195 | $as_echo "$as_val"'` | |
8196 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8197 | $as_echo "$ac_res" >&6; } | |
8198 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8199 | $as_echo "$as_val"'` | |
8200 | if test "x$as_val" = x""yes; then | |
8201 | cat >>confdefs.h <<_ACEOF | |
8202 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8203 | _ACEOF | |
8204 | ||
8205 | fi | |
8206 | done | |
8207 | ||
ad6254c5 AK |
8208 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8209 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8210 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8211 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8212 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8213 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8214 | else |
8215 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8216 | /* confdefs.h. */ |
8217 | _ACEOF | |
8218 | cat confdefs.h >>conftest.$ac_ext | |
8219 | cat >>conftest.$ac_ext <<_ACEOF | |
8220 | /* end confdefs.h. */ | |
8221 | #include <alloca.h> | |
8222 | int | |
8223 | main () | |
8224 | { | |
8225 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8226 | if (p) return 0; |
ad6254c5 AK |
8227 | ; |
8228 | return 0; | |
8229 | } | |
8230 | _ACEOF | |
8231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8232 | if { (ac_try="$ac_link" |
8233 | case "(($ac_try" in | |
8234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8235 | *) ac_try_echo=$ac_try;; | |
8236 | esac | |
ec6a6fbe AK |
8237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8238 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8239 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8240 | ac_status=$? |
8a2fc586 AK |
8241 | grep -v '^ *+' conftest.er1 >conftest.err |
8242 | rm -f conftest.er1 | |
8243 | cat conftest.err >&5 | |
ec6a6fbe | 8244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8245 | (exit $ac_status); } && { |
8246 | test -z "$ac_c_werror_flag" || | |
8247 | test ! -s conftest.err | |
ec6a6fbe AK |
8248 | } && test -s conftest$ac_exeext && { |
8249 | test "$cross_compiling" = yes || | |
8250 | $as_test_x conftest$ac_exeext | |
8251 | }; then | |
ad6254c5 AK |
8252 | ac_cv_working_alloca_h=yes |
8253 | else | |
ec6a6fbe | 8254 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8255 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8256 | |
7a197a62 | 8257 | ac_cv_working_alloca_h=no |
ad6254c5 | 8258 | fi |
7a197a62 | 8259 | |
ec6a6fbe | 8260 | rm -rf conftest.dSYM |
25fbec5b | 8261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8262 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8263 | fi |
ec6a6fbe AK |
8264 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8265 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8266 | if test $ac_cv_working_alloca_h = yes; then |
8267 | ||
8268 | cat >>confdefs.h <<\_ACEOF | |
8269 | #define HAVE_ALLOCA_H 1 | |
8270 | _ACEOF | |
8271 | ||
8272 | fi | |
8273 | ||
ec6a6fbe AK |
8274 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8275 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8276 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8277 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8278 | else |
8279 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8280 | /* confdefs.h. */ |
8281 | _ACEOF | |
8282 | cat confdefs.h >>conftest.$ac_ext | |
8283 | cat >>conftest.$ac_ext <<_ACEOF | |
8284 | /* end confdefs.h. */ | |
8285 | #ifdef __GNUC__ | |
8286 | # define alloca __builtin_alloca | |
8287 | #else | |
8288 | # ifdef _MSC_VER | |
8289 | # include <malloc.h> | |
8290 | # define alloca _alloca | |
8291 | # else | |
25fbec5b | 8292 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8293 | # include <alloca.h> |
8294 | # else | |
8295 | # ifdef _AIX | |
8296 | #pragma alloca | |
8297 | # else | |
8298 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8299 | char *alloca (); | |
8300 | # endif | |
8301 | # endif | |
8302 | # endif | |
8303 | # endif | |
8304 | #endif | |
8305 | ||
8306 | int | |
8307 | main () | |
8308 | { | |
8309 | char *p = (char *) alloca (1); | |
7a197a62 | 8310 | if (p) return 0; |
ad6254c5 AK |
8311 | ; |
8312 | return 0; | |
8313 | } | |
8314 | _ACEOF | |
8315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8316 | if { (ac_try="$ac_link" |
8317 | case "(($ac_try" in | |
8318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8319 | *) ac_try_echo=$ac_try;; | |
8320 | esac | |
ec6a6fbe AK |
8321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8322 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8323 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8324 | ac_status=$? |
8a2fc586 AK |
8325 | grep -v '^ *+' conftest.er1 >conftest.err |
8326 | rm -f conftest.er1 | |
8327 | cat conftest.err >&5 | |
ec6a6fbe | 8328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8329 | (exit $ac_status); } && { |
8330 | test -z "$ac_c_werror_flag" || | |
8331 | test ! -s conftest.err | |
ec6a6fbe AK |
8332 | } && test -s conftest$ac_exeext && { |
8333 | test "$cross_compiling" = yes || | |
8334 | $as_test_x conftest$ac_exeext | |
8335 | }; then | |
ad6254c5 AK |
8336 | ac_cv_func_alloca_works=yes |
8337 | else | |
ec6a6fbe | 8338 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8339 | sed 's/^/| /' conftest.$ac_ext >&5 |
8340 | ||
7a197a62 | 8341 | ac_cv_func_alloca_works=no |
ad6254c5 | 8342 | fi |
7a197a62 | 8343 | |
ec6a6fbe | 8344 | rm -rf conftest.dSYM |
25fbec5b | 8345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8346 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8347 | fi |
ec6a6fbe AK |
8348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8349 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8350 | |
8351 | if test $ac_cv_func_alloca_works = yes; then | |
8352 | ||
8353 | cat >>confdefs.h <<\_ACEOF | |
8354 | #define HAVE_ALLOCA 1 | |
8355 | _ACEOF | |
8356 | ||
8357 | else | |
8358 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8359 | # that cause trouble. Some versions do not even contain alloca or | |
8360 | # contain a buggy version. If you still want to use their alloca, | |
8361 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8362 | ||
7a197a62 | 8363 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8364 | |
8365 | cat >>confdefs.h <<\_ACEOF | |
8366 | #define C_ALLOCA 1 | |
8367 | _ACEOF | |
8368 | ||
8369 | ||
ec6a6fbe AK |
8370 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8371 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8372 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8373 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8374 | else |
8375 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8376 | /* confdefs.h. */ |
8377 | _ACEOF | |
8378 | cat confdefs.h >>conftest.$ac_ext | |
8379 | cat >>conftest.$ac_ext <<_ACEOF | |
8380 | /* end confdefs.h. */ | |
7a197a62 | 8381 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8382 | webecray |
8383 | #else | |
8384 | wenotbecray | |
8385 | #endif | |
8386 | ||
8387 | _ACEOF | |
795ca3e5 | 8388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8389 | $EGREP "webecray" >/dev/null 2>&1; then |
8390 | ac_cv_os_cray=yes | |
8391 | else | |
8392 | ac_cv_os_cray=no | |
795ca3e5 AK |
8393 | fi |
8394 | rm -f conftest* | |
8395 | ||
795ca3e5 | 8396 | fi |
ec6a6fbe AK |
8397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8398 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8399 | if test $ac_cv_os_cray = yes; then |
8400 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8401 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8402 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8403 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8404 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8405 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8406 | else |
8407 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8408 | /* confdefs.h. */ |
8409 | _ACEOF | |
8410 | cat confdefs.h >>conftest.$ac_ext | |
8411 | cat >>conftest.$ac_ext <<_ACEOF | |
8412 | /* end confdefs.h. */ | |
8a2fc586 AK |
8413 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8414 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8415 | #define $ac_func innocuous_$ac_func | |
8416 | ||
ad6254c5 AK |
8417 | /* System header to define __stub macros and hopefully few prototypes, |
8418 | which can conflict with char $ac_func (); below. | |
8419 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8420 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8421 | |
ad6254c5 AK |
8422 | #ifdef __STDC__ |
8423 | # include <limits.h> | |
8424 | #else | |
8425 | # include <assert.h> | |
8426 | #endif | |
8a2fc586 AK |
8427 | |
8428 | #undef $ac_func | |
8429 | ||
7a197a62 AK |
8430 | /* Override any GCC internal prototype to avoid an error. |
8431 | Use char because int might match the return type of a GCC | |
8432 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8433 | #ifdef __cplusplus |
8434 | extern "C" | |
ad6254c5 | 8435 | #endif |
ad6254c5 AK |
8436 | char $ac_func (); |
8437 | /* The GNU C library defines this for functions which it implements | |
8438 | to always fail with ENOSYS. Some functions are actually named | |
8439 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8440 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8441 | choke me |
ad6254c5 AK |
8442 | #endif |
8443 | ||
8444 | int | |
8445 | main () | |
8446 | { | |
7a197a62 | 8447 | return $ac_func (); |
ad6254c5 AK |
8448 | ; |
8449 | return 0; | |
8450 | } | |
8451 | _ACEOF | |
8452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8453 | if { (ac_try="$ac_link" |
8454 | case "(($ac_try" in | |
8455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8456 | *) ac_try_echo=$ac_try;; | |
8457 | esac | |
ec6a6fbe AK |
8458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8459 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8460 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8461 | ac_status=$? |
8a2fc586 AK |
8462 | grep -v '^ *+' conftest.er1 >conftest.err |
8463 | rm -f conftest.er1 | |
8464 | cat conftest.err >&5 | |
ec6a6fbe | 8465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8466 | (exit $ac_status); } && { |
8467 | test -z "$ac_c_werror_flag" || | |
8468 | test ! -s conftest.err | |
ec6a6fbe AK |
8469 | } && test -s conftest$ac_exeext && { |
8470 | test "$cross_compiling" = yes || | |
8471 | $as_test_x conftest$ac_exeext | |
8472 | }; then | |
ad6254c5 AK |
8473 | eval "$as_ac_var=yes" |
8474 | else | |
ec6a6fbe | 8475 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8476 | sed 's/^/| /' conftest.$ac_ext >&5 |
8477 | ||
7a197a62 | 8478 | eval "$as_ac_var=no" |
ad6254c5 | 8479 | fi |
7a197a62 | 8480 | |
ec6a6fbe | 8481 | rm -rf conftest.dSYM |
25fbec5b | 8482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8483 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8484 | fi |
ec6a6fbe AK |
8485 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8486 | $as_echo "$as_val"'` | |
8487 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8488 | $as_echo "$ac_res" >&6; } | |
8489 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8490 | $as_echo "$as_val"'` | |
8491 | if test "x$as_val" = x""yes; then | |
80992638 | 8492 | |
ad6254c5 AK |
8493 | cat >>confdefs.h <<_ACEOF |
8494 | #define CRAY_STACKSEG_END $ac_func | |
8495 | _ACEOF | |
8496 | ||
8497 | break | |
8498 | fi | |
8499 | ||
8500 | done | |
8501 | fi | |
8502 | ||
ec6a6fbe AK |
8503 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8504 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8505 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8506 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8507 | else |
8508 | if test "$cross_compiling" = yes; then | |
8509 | ac_cv_c_stack_direction=0 | |
8510 | else | |
8511 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8512 | /* confdefs.h. */ |
8513 | _ACEOF | |
8514 | cat confdefs.h >>conftest.$ac_ext | |
8515 | cat >>conftest.$ac_ext <<_ACEOF | |
8516 | /* end confdefs.h. */ | |
7a197a62 | 8517 | $ac_includes_default |
ad6254c5 AK |
8518 | int |
8519 | find_stack_direction () | |
8520 | { | |
8521 | static char *addr = 0; | |
8522 | auto char dummy; | |
8523 | if (addr == 0) | |
8524 | { | |
8525 | addr = &dummy; | |
8526 | return find_stack_direction (); | |
8527 | } | |
8528 | else | |
8529 | return (&dummy > addr) ? 1 : -1; | |
8530 | } | |
8531 | ||
8532 | int | |
8533 | main () | |
8534 | { | |
7a197a62 | 8535 | return find_stack_direction () < 0; |
ad6254c5 AK |
8536 | } |
8537 | _ACEOF | |
8538 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8539 | if { (ac_try="$ac_link" |
8540 | case "(($ac_try" in | |
8541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8542 | *) ac_try_echo=$ac_try;; | |
8543 | esac | |
ec6a6fbe AK |
8544 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8545 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8546 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8547 | ac_status=$? |
ec6a6fbe | 8548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8550 | { (case "(($ac_try" in |
8551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8552 | *) ac_try_echo=$ac_try;; | |
8553 | esac | |
ec6a6fbe AK |
8554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8555 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8556 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8557 | ac_status=$? |
ec6a6fbe | 8558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8559 | (exit $ac_status); }; }; then |
8560 | ac_cv_c_stack_direction=1 | |
8561 | else | |
ec6a6fbe AK |
8562 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8563 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8564 | sed 's/^/| /' conftest.$ac_ext >&5 |
8565 | ||
8566 | ( exit $ac_status ) | |
8567 | ac_cv_c_stack_direction=-1 | |
8568 | fi | |
ec6a6fbe | 8569 | rm -rf conftest.dSYM |
7a197a62 | 8570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8571 | fi |
7a197a62 AK |
8572 | |
8573 | ||
ad6254c5 | 8574 | fi |
ec6a6fbe AK |
8575 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8576 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8577 | |
d911ec67 AK |
8578 | cat >>confdefs.h <<_ACEOF |
8579 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8580 | _ACEOF | |
8581 | ||
8582 | ||
8583 | fi | |
8584 | ||
8585 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8586 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8587 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8588 | $as_echo_n "(cached) " >&6 | |
8589 | else | |
8590 | if test "$cross_compiling" = yes; then | |
8591 | ac_cv_func_closedir_void=yes | |
8592 | else | |
8593 | cat >conftest.$ac_ext <<_ACEOF | |
8594 | /* confdefs.h. */ | |
8595 | _ACEOF | |
8596 | cat confdefs.h >>conftest.$ac_ext | |
8597 | cat >>conftest.$ac_ext <<_ACEOF | |
8598 | /* end confdefs.h. */ | |
8599 | $ac_includes_default | |
8600 | #include <$ac_header_dirent> | |
8601 | #ifndef __cplusplus | |
8602 | int closedir (); | |
8603 | #endif | |
8604 | ||
8605 | int | |
8606 | main () | |
8607 | { | |
8608 | return closedir (opendir (".")) != 0; | |
8609 | ; | |
8610 | return 0; | |
8611 | } | |
8612 | _ACEOF | |
8613 | rm -f conftest$ac_exeext | |
8614 | if { (ac_try="$ac_link" | |
8615 | case "(($ac_try" in | |
8616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8617 | *) ac_try_echo=$ac_try;; | |
8618 | esac | |
8619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8620 | $as_echo "$ac_try_echo") >&5 | |
8621 | (eval "$ac_link") 2>&5 | |
8622 | ac_status=$? | |
8623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8625 | { (case "(($ac_try" in | |
8626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8627 | *) ac_try_echo=$ac_try;; | |
8628 | esac | |
8629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8630 | $as_echo "$ac_try_echo") >&5 | |
8631 | (eval "$ac_try") 2>&5 | |
8632 | ac_status=$? | |
8633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8634 | (exit $ac_status); }; }; then | |
8635 | ac_cv_func_closedir_void=no | |
8636 | else | |
8637 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8638 | $as_echo "$as_me: failed program was:" >&5 | |
8639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8640 | ||
8641 | ( exit $ac_status ) | |
8642 | ac_cv_func_closedir_void=yes | |
8643 | fi | |
8644 | rm -rf conftest.dSYM | |
8645 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8646 | fi | |
8647 | ||
8648 | ||
8649 | fi | |
8650 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8651 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8652 | if test $ac_cv_func_closedir_void = yes; then | |
8653 | ||
8654 | cat >>confdefs.h <<\_ACEOF | |
8655 | #define CLOSEDIR_VOID 1 | |
8656 | _ACEOF | |
8657 | ||
8658 | fi | |
8659 | ||
8660 | ||
8661 | for ac_header in unistd.h | |
8662 | do | |
8663 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8664 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8665 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8666 | $as_echo_n "checking for $ac_header... " >&6; } | |
8667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8668 | $as_echo_n "(cached) " >&6 | |
8669 | fi | |
8670 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8671 | $as_echo "$as_val"'` | |
8672 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8673 | $as_echo "$ac_res" >&6; } | |
8674 | else | |
8675 | # Is the header compilable? | |
8676 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8677 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8678 | cat >conftest.$ac_ext <<_ACEOF | |
8679 | /* confdefs.h. */ | |
8680 | _ACEOF | |
8681 | cat confdefs.h >>conftest.$ac_ext | |
8682 | cat >>conftest.$ac_ext <<_ACEOF | |
8683 | /* end confdefs.h. */ | |
8684 | $ac_includes_default | |
8685 | #include <$ac_header> | |
8686 | _ACEOF | |
8687 | rm -f conftest.$ac_objext | |
8688 | if { (ac_try="$ac_compile" | |
8689 | case "(($ac_try" in | |
8690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8691 | *) ac_try_echo=$ac_try;; | |
8692 | esac | |
8693 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8694 | $as_echo "$ac_try_echo") >&5 | |
8695 | (eval "$ac_compile") 2>conftest.er1 | |
8696 | ac_status=$? | |
8697 | grep -v '^ *+' conftest.er1 >conftest.err | |
8698 | rm -f conftest.er1 | |
8699 | cat conftest.err >&5 | |
8700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8701 | (exit $ac_status); } && { | |
8702 | test -z "$ac_c_werror_flag" || | |
8703 | test ! -s conftest.err | |
8704 | } && test -s conftest.$ac_objext; then | |
8705 | ac_header_compiler=yes | |
8706 | else | |
8707 | $as_echo "$as_me: failed program was:" >&5 | |
8708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8709 | ||
8710 | ac_header_compiler=no | |
8711 | fi | |
8712 | ||
8713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8714 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8715 | $as_echo "$ac_header_compiler" >&6; } | |
8716 | ||
8717 | # Is the header present? | |
8718 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8719 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8720 | cat >conftest.$ac_ext <<_ACEOF | |
8721 | /* confdefs.h. */ | |
8722 | _ACEOF | |
8723 | cat confdefs.h >>conftest.$ac_ext | |
8724 | cat >>conftest.$ac_ext <<_ACEOF | |
8725 | /* end confdefs.h. */ | |
8726 | #include <$ac_header> | |
8727 | _ACEOF | |
8728 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8729 | case "(($ac_try" in | |
8730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8731 | *) ac_try_echo=$ac_try;; | |
8732 | esac | |
8733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8734 | $as_echo "$ac_try_echo") >&5 | |
8735 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8736 | ac_status=$? | |
8737 | grep -v '^ *+' conftest.er1 >conftest.err | |
8738 | rm -f conftest.er1 | |
8739 | cat conftest.err >&5 | |
8740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8741 | (exit $ac_status); } >/dev/null && { | |
8742 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8743 | test ! -s conftest.err | |
8744 | }; then | |
8745 | ac_header_preproc=yes | |
8746 | else | |
8747 | $as_echo "$as_me: failed program was:" >&5 | |
8748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8749 | ||
8750 | ac_header_preproc=no | |
8751 | fi | |
8752 | ||
8753 | rm -f conftest.err conftest.$ac_ext | |
8754 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8755 | $as_echo "$ac_header_preproc" >&6; } | |
8756 | ||
8757 | # So? What about this header? | |
8758 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8759 | yes:no: ) | |
8760 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8761 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8762 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8763 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8764 | ac_header_preproc=yes | |
8765 | ;; | |
8766 | no:yes:* ) | |
8767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8768 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8770 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8772 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8774 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8775 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8776 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8777 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8778 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8779 | ||
8780 | ;; | |
8781 | esac | |
8782 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8783 | $as_echo_n "checking for $ac_header... " >&6; } | |
8784 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8785 | $as_echo_n "(cached) " >&6 | |
8786 | else | |
8787 | eval "$as_ac_Header=\$ac_header_preproc" | |
8788 | fi | |
8789 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8790 | $as_echo "$as_val"'` | |
8791 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8792 | $as_echo "$ac_res" >&6; } | |
8793 | ||
8794 | fi | |
8795 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8796 | $as_echo "$as_val"'` | |
8797 | if test "x$as_val" = x""yes; then | |
8798 | cat >>confdefs.h <<_ACEOF | |
8799 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8800 | _ACEOF |
8801 | ||
ad6254c5 AK |
8802 | fi |
8803 | ||
d911ec67 AK |
8804 | done |
8805 | ||
8806 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8807 | $as_echo_n "checking for working chown... " >&6; } | |
8808 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8809 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8810 | else |
8811 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8812 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8813 | else |
8814 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8815 | /* confdefs.h. */ |
8816 | _ACEOF | |
8817 | cat confdefs.h >>conftest.$ac_ext | |
8818 | cat >>conftest.$ac_ext <<_ACEOF | |
8819 | /* end confdefs.h. */ | |
8820 | $ac_includes_default | |
d911ec67 | 8821 | #include <fcntl.h> |
ad6254c5 AK |
8822 | |
8823 | int | |
8824 | main () | |
8825 | { | |
d911ec67 AK |
8826 | char *f = "conftest.chown"; |
8827 | struct stat before, after; | |
8828 | ||
8829 | if (creat (f, 0600) < 0) | |
8830 | return 1; | |
8831 | if (stat (f, &before) < 0) | |
8832 | return 1; | |
8833 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8834 | return 1; | |
8835 | if (stat (f, &after) < 0) | |
8836 | return 1; | |
8837 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8838 | ||
ad6254c5 AK |
8839 | ; |
8840 | return 0; | |
8841 | } | |
8842 | _ACEOF | |
8843 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8844 | if { (ac_try="$ac_link" |
8845 | case "(($ac_try" in | |
8846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8847 | *) ac_try_echo=$ac_try;; | |
8848 | esac | |
ec6a6fbe AK |
8849 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8850 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8851 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8852 | ac_status=$? |
ec6a6fbe | 8853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8855 | { (case "(($ac_try" in |
8856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8857 | *) ac_try_echo=$ac_try;; | |
8858 | esac | |
ec6a6fbe AK |
8859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8860 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8861 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8862 | ac_status=$? |
ec6a6fbe | 8863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8864 | (exit $ac_status); }; }; then |
d911ec67 | 8865 | ac_cv_func_chown_works=yes |
ad6254c5 | 8866 | else |
ec6a6fbe AK |
8867 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8868 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8869 | sed 's/^/| /' conftest.$ac_ext >&5 |
8870 | ||
8871 | ( exit $ac_status ) | |
d911ec67 | 8872 | ac_cv_func_chown_works=no |
ad6254c5 | 8873 | fi |
ec6a6fbe | 8874 | rm -rf conftest.dSYM |
7a197a62 | 8875 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8876 | fi |
7a197a62 AK |
8877 | |
8878 | ||
d911ec67 AK |
8879 | rm -f conftest.chown |
8880 | ||
ad6254c5 | 8881 | fi |
d911ec67 AK |
8882 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8883 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8884 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8885 | |
8886 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8887 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8888 | _ACEOF |
8889 | ||
8890 | fi | |
8891 | ||
8892 | ||
7a197a62 | 8893 | for ac_header in vfork.h |
ad6254c5 | 8894 | do |
ec6a6fbe | 8895 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8896 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8897 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8898 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8899 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8900 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8901 | fi |
ec6a6fbe AK |
8902 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8903 | $as_echo "$as_val"'` | |
8904 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8905 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8906 | else |
8907 | # Is the header compilable? | |
ec6a6fbe AK |
8908 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8909 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8910 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8911 | /* confdefs.h. */ |
8912 | _ACEOF | |
8913 | cat confdefs.h >>conftest.$ac_ext | |
8914 | cat >>conftest.$ac_ext <<_ACEOF | |
8915 | /* end confdefs.h. */ | |
8916 | $ac_includes_default | |
8917 | #include <$ac_header> | |
8918 | _ACEOF | |
8919 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8920 | if { (ac_try="$ac_compile" |
8921 | case "(($ac_try" in | |
8922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8923 | *) ac_try_echo=$ac_try;; | |
8924 | esac | |
ec6a6fbe AK |
8925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8926 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8927 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8928 | ac_status=$? |
8a2fc586 AK |
8929 | grep -v '^ *+' conftest.er1 >conftest.err |
8930 | rm -f conftest.er1 | |
8931 | cat conftest.err >&5 | |
ec6a6fbe | 8932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8933 | (exit $ac_status); } && { |
8934 | test -z "$ac_c_werror_flag" || | |
8935 | test ! -s conftest.err | |
8936 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8937 | ac_header_compiler=yes |
8938 | else | |
ec6a6fbe | 8939 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8940 | sed 's/^/| /' conftest.$ac_ext >&5 |
8941 | ||
7a197a62 | 8942 | ac_header_compiler=no |
ad6254c5 | 8943 | fi |
7a197a62 AK |
8944 | |
8945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8946 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8947 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8948 | |
8949 | # Is the header present? | |
ec6a6fbe AK |
8950 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8951 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8952 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8953 | /* confdefs.h. */ |
8954 | _ACEOF | |
8955 | cat confdefs.h >>conftest.$ac_ext | |
8956 | cat >>conftest.$ac_ext <<_ACEOF | |
8957 | /* end confdefs.h. */ | |
8958 | #include <$ac_header> | |
8959 | _ACEOF | |
7a197a62 AK |
8960 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8961 | case "(($ac_try" in | |
8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8963 | *) ac_try_echo=$ac_try;; | |
8964 | esac | |
ec6a6fbe AK |
8965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8966 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8967 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8968 | ac_status=$? |
8969 | grep -v '^ *+' conftest.er1 >conftest.err | |
8970 | rm -f conftest.er1 | |
8971 | cat conftest.err >&5 | |
ec6a6fbe | 8972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8973 | (exit $ac_status); } >/dev/null && { |
8974 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8975 | test ! -s conftest.err | |
8976 | }; then | |
ad6254c5 AK |
8977 | ac_header_preproc=yes |
8978 | else | |
ec6a6fbe | 8979 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8980 | sed 's/^/| /' conftest.$ac_ext >&5 |
8981 | ||
8982 | ac_header_preproc=no | |
8983 | fi | |
7a197a62 | 8984 | |
ad6254c5 | 8985 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8986 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8987 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8988 | |
8989 | # So? What about this header? | |
8a2fc586 AK |
8990 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8991 | yes:no: ) | |
ec6a6fbe AK |
8992 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8993 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8994 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8995 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8996 | ac_header_preproc=yes |
ad6254c5 | 8997 | ;; |
8a2fc586 | 8998 | no:yes:* ) |
ec6a6fbe AK |
8999 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9000 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9001 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9002 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9003 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9004 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9006 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9007 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9008 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9010 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9011 | |
ad6254c5 AK |
9012 | ;; |
9013 | esac | |
ec6a6fbe AK |
9014 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9015 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9016 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9017 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9018 | else |
8a2fc586 | 9019 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9020 | fi |
ec6a6fbe AK |
9021 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9022 | $as_echo "$as_val"'` | |
9023 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9024 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 9025 | |
795ca3e5 | 9026 | fi |
ec6a6fbe AK |
9027 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9028 | $as_echo "$as_val"'` | |
9029 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9030 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9031 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9032 | _ACEOF |
9033 | ||
9034 | fi | |
9035 | ||
9036 | done | |
795ca3e5 | 9037 | |
ad6254c5 AK |
9038 | |
9039 | ||
9040 | for ac_func in fork vfork | |
9041 | do | |
ec6a6fbe AK |
9042 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9043 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9044 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9045 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9046 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9047 | else |
ad6254c5 | 9048 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9049 | /* confdefs.h. */ |
9050 | _ACEOF | |
9051 | cat confdefs.h >>conftest.$ac_ext | |
9052 | cat >>conftest.$ac_ext <<_ACEOF | |
9053 | /* end confdefs.h. */ | |
8a2fc586 AK |
9054 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9055 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9056 | #define $ac_func innocuous_$ac_func | |
9057 | ||
ad6254c5 AK |
9058 | /* System header to define __stub macros and hopefully few prototypes, |
9059 | which can conflict with char $ac_func (); below. | |
9060 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9061 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9062 | |
ad6254c5 AK |
9063 | #ifdef __STDC__ |
9064 | # include <limits.h> | |
9065 | #else | |
9066 | # include <assert.h> | |
795ca3e5 | 9067 | #endif |
8a2fc586 AK |
9068 | |
9069 | #undef $ac_func | |
9070 | ||
7a197a62 AK |
9071 | /* Override any GCC internal prototype to avoid an error. |
9072 | Use char because int might match the return type of a GCC | |
9073 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 9074 | #ifdef __cplusplus |
ad6254c5 | 9075 | extern "C" |
ad6254c5 | 9076 | #endif |
ad6254c5 AK |
9077 | char $ac_func (); |
9078 | /* The GNU C library defines this for functions which it implements | |
9079 | to always fail with ENOSYS. Some functions are actually named | |
9080 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9081 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9082 | choke me |
795ca3e5 AK |
9083 | #endif |
9084 | ||
ad6254c5 AK |
9085 | int |
9086 | main () | |
9087 | { | |
7a197a62 | 9088 | return $ac_func (); |
ad6254c5 AK |
9089 | ; |
9090 | return 0; | |
9091 | } | |
9092 | _ACEOF | |
9093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9094 | if { (ac_try="$ac_link" |
9095 | case "(($ac_try" in | |
9096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9097 | *) ac_try_echo=$ac_try;; | |
9098 | esac | |
ec6a6fbe AK |
9099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9100 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9101 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9102 | ac_status=$? |
8a2fc586 AK |
9103 | grep -v '^ *+' conftest.er1 >conftest.err |
9104 | rm -f conftest.er1 | |
9105 | cat conftest.err >&5 | |
ec6a6fbe | 9106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9107 | (exit $ac_status); } && { |
9108 | test -z "$ac_c_werror_flag" || | |
9109 | test ! -s conftest.err | |
ec6a6fbe AK |
9110 | } && test -s conftest$ac_exeext && { |
9111 | test "$cross_compiling" = yes || | |
9112 | $as_test_x conftest$ac_exeext | |
9113 | }; then | |
ad6254c5 | 9114 | eval "$as_ac_var=yes" |
795ca3e5 | 9115 | else |
ec6a6fbe | 9116 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9117 | sed 's/^/| /' conftest.$ac_ext >&5 |
9118 | ||
7a197a62 | 9119 | eval "$as_ac_var=no" |
795ca3e5 | 9120 | fi |
7a197a62 | 9121 | |
ec6a6fbe | 9122 | rm -rf conftest.dSYM |
25fbec5b | 9123 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9124 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9125 | fi |
ec6a6fbe AK |
9126 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9127 | $as_echo "$as_val"'` | |
9128 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9129 | $as_echo "$ac_res" >&6; } | |
9130 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9131 | $as_echo "$as_val"'` | |
9132 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9133 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9134 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9135 | _ACEOF |
9136 | ||
9137 | fi | |
9138 | done | |
9139 | ||
9140 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9141 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9142 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9143 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9144 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9145 | else |
9146 | if test "$cross_compiling" = yes; then | |
9147 | ac_cv_func_fork_works=cross | |
9148 | else | |
9149 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9150 | /* confdefs.h. */ |
9151 | _ACEOF | |
9152 | cat confdefs.h >>conftest.$ac_ext | |
9153 | cat >>conftest.$ac_ext <<_ACEOF | |
9154 | /* end confdefs.h. */ | |
9155 | $ac_includes_default | |
9156 | int | |
9157 | main () | |
9158 | { | |
9159 | ||
9160 | /* By Ruediger Kuhlmann. */ | |
9161 | return fork () < 0; | |
9162 | ||
9163 | ; | |
9164 | return 0; | |
9165 | } | |
ad6254c5 AK |
9166 | _ACEOF |
9167 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9168 | if { (ac_try="$ac_link" |
9169 | case "(($ac_try" in | |
9170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9171 | *) ac_try_echo=$ac_try;; | |
9172 | esac | |
ec6a6fbe AK |
9173 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9174 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9175 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9176 | ac_status=$? |
ec6a6fbe | 9177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9178 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9179 | { (case "(($ac_try" in |
9180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9181 | *) ac_try_echo=$ac_try;; | |
9182 | esac | |
ec6a6fbe AK |
9183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9184 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9185 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9186 | ac_status=$? |
ec6a6fbe | 9187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9188 | (exit $ac_status); }; }; then |
9189 | ac_cv_func_fork_works=yes | |
9190 | else | |
ec6a6fbe AK |
9191 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9192 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9193 | sed 's/^/| /' conftest.$ac_ext >&5 |
9194 | ||
9195 | ( exit $ac_status ) | |
9196 | ac_cv_func_fork_works=no | |
9197 | fi | |
ec6a6fbe | 9198 | rm -rf conftest.dSYM |
7a197a62 | 9199 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9200 | fi |
7a197a62 AK |
9201 | |
9202 | ||
ad6254c5 | 9203 | fi |
ec6a6fbe AK |
9204 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9205 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9206 | |
9207 | else | |
9208 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9209 | fi | |
9210 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9211 | case $host in | |
9212 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9213 | # Override, as these systems have only a dummy fork() stub | |
9214 | ac_cv_func_fork_works=no | |
9215 | ;; | |
9216 | *) | |
9217 | ac_cv_func_fork_works=yes | |
9218 | ;; | |
9219 | esac | |
ec6a6fbe AK |
9220 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9221 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9222 | fi |
9223 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9224 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9225 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9226 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9227 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9228 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9229 | else |
9230 | if test "$cross_compiling" = yes; then | |
9231 | ac_cv_func_vfork_works=cross | |
9232 | else | |
9233 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9234 | /* confdefs.h. */ |
9235 | _ACEOF | |
9236 | cat confdefs.h >>conftest.$ac_ext | |
9237 | cat >>conftest.$ac_ext <<_ACEOF | |
9238 | /* end confdefs.h. */ | |
9239 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9240 | $ac_includes_default |
ad6254c5 | 9241 | #include <sys/wait.h> |
25fbec5b | 9242 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9243 | # include <vfork.h> |
9244 | #endif | |
9245 | /* On some sparc systems, changes by the child to local and incoming | |
9246 | argument registers are propagated back to the parent. The compiler | |
9247 | is told about this with #include <vfork.h>, but some compilers | |
9248 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9249 | static variable whose address is put into a register that is | |
9250 | clobbered by the vfork. */ | |
9251 | static void | |
9252 | #ifdef __cplusplus | |
9253 | sparc_address_test (int arg) | |
9254 | # else | |
9255 | sparc_address_test (arg) int arg; | |
9256 | #endif | |
9257 | { | |
9258 | static pid_t child; | |
9259 | if (!child) { | |
9260 | child = vfork (); | |
9261 | if (child < 0) { | |
9262 | perror ("vfork"); | |
9263 | _exit(2); | |
9264 | } | |
9265 | if (!child) { | |
9266 | arg = getpid(); | |
9267 | write(-1, "", 0); | |
9268 | _exit (arg); | |
9269 | } | |
9270 | } | |
9271 | } | |
9272 | ||
9273 | int | |
9274 | main () | |
9275 | { | |
9276 | pid_t parent = getpid (); | |
9277 | pid_t child; | |
9278 | ||
9279 | sparc_address_test (0); | |
9280 | ||
9281 | child = vfork (); | |
9282 | ||
9283 | if (child == 0) { | |
9284 | /* Here is another test for sparc vfork register problems. This | |
9285 | test uses lots of local variables, at least as many local | |
9286 | variables as main has allocated so far including compiler | |
9287 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9288 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9289 | reuse the register of parent for one of the local variables, | |
9290 | since it will think that parent can't possibly be used any more | |
9291 | in this routine. Assigning to the local variable will thus | |
9292 | munge parent in the parent process. */ | |
9293 | pid_t | |
9294 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9295 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9296 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9297 | use the same hardware register for all 8 local variables. */ | |
9298 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9299 | || p != p5 || p != p6 || p != p7) | |
9300 | _exit(1); | |
9301 | ||
9302 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9303 | from child file descriptors. If the child closes a descriptor | |
9304 | before it execs or exits, this munges the parent's descriptor | |
9305 | as well. Test for this by closing stdout in the child. */ | |
9306 | _exit(close(fileno(stdout)) != 0); | |
9307 | } else { | |
9308 | int status; | |
9309 | struct stat st; | |
9310 | ||
9311 | while (wait(&status) != child) | |
9312 | ; | |
7a197a62 | 9313 | return ( |
ad6254c5 AK |
9314 | /* Was there some problem with vforking? */ |
9315 | child < 0 | |
9316 | ||
9317 | /* Did the child fail? (This shouldn't happen.) */ | |
9318 | || status | |
9319 | ||
9320 | /* Did the vfork/compiler bug occur? */ | |
9321 | || parent != getpid() | |
9322 | ||
9323 | /* Did the file descriptor bug occur? */ | |
9324 | || fstat(fileno(stdout), &st) != 0 | |
9325 | ); | |
9326 | } | |
9327 | } | |
9328 | _ACEOF | |
9329 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9330 | if { (ac_try="$ac_link" |
9331 | case "(($ac_try" in | |
9332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9333 | *) ac_try_echo=$ac_try;; | |
9334 | esac | |
ec6a6fbe AK |
9335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9336 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9337 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9338 | ac_status=$? |
ec6a6fbe | 9339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9341 | { (case "(($ac_try" in |
9342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9343 | *) ac_try_echo=$ac_try;; | |
9344 | esac | |
ec6a6fbe AK |
9345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9346 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9347 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9348 | ac_status=$? |
ec6a6fbe | 9349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9350 | (exit $ac_status); }; }; then |
9351 | ac_cv_func_vfork_works=yes | |
9352 | else | |
ec6a6fbe AK |
9353 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9354 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9355 | sed 's/^/| /' conftest.$ac_ext >&5 |
9356 | ||
9357 | ( exit $ac_status ) | |
9358 | ac_cv_func_vfork_works=no | |
9359 | fi | |
ec6a6fbe | 9360 | rm -rf conftest.dSYM |
7a197a62 | 9361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9362 | fi |
7a197a62 AK |
9363 | |
9364 | ||
ad6254c5 | 9365 | fi |
ec6a6fbe AK |
9366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9367 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9368 | |
9369 | fi; | |
9370 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9371 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9372 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9373 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9374 | fi |
9375 | ||
9376 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9377 | ||
9378 | cat >>confdefs.h <<\_ACEOF | |
9379 | #define HAVE_WORKING_VFORK 1 | |
9380 | _ACEOF | |
9381 | ||
9382 | else | |
9383 | ||
9384 | cat >>confdefs.h <<\_ACEOF | |
9385 | #define vfork fork | |
9386 | _ACEOF | |
9387 | ||
9388 | fi | |
9389 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9390 | ||
9391 | cat >>confdefs.h <<\_ACEOF | |
9392 | #define HAVE_WORKING_FORK 1 | |
9393 | _ACEOF | |
9394 | ||
9395 | fi | |
9396 | ||
ec6a6fbe AK |
9397 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9398 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9399 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9400 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9401 | else |
9402 | rm -f conftest.sym conftest.file | |
9403 | echo >conftest.file | |
9404 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9405 | if test "$cross_compiling" = yes; then | |
9406 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9407 | else | |
9408 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9409 | /* confdefs.h. */ |
9410 | _ACEOF | |
9411 | cat confdefs.h >>conftest.$ac_ext | |
9412 | cat >>conftest.$ac_ext <<_ACEOF | |
9413 | /* end confdefs.h. */ | |
9414 | $ac_includes_default | |
9415 | int | |
9416 | main () | |
9417 | { | |
9418 | struct stat sbuf; | |
9419 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9420 | That is better in the sense that it means we will not |
9421 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9422 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9423 | ; |
9424 | return 0; | |
9425 | } | |
9426 | _ACEOF | |
9427 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9428 | if { (ac_try="$ac_link" |
9429 | case "(($ac_try" in | |
9430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9431 | *) ac_try_echo=$ac_try;; | |
9432 | esac | |
ec6a6fbe AK |
9433 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9434 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9435 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9436 | ac_status=$? |
ec6a6fbe | 9437 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9439 | { (case "(($ac_try" in |
9440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9441 | *) ac_try_echo=$ac_try;; | |
9442 | esac | |
ec6a6fbe AK |
9443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9444 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9445 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9446 | ac_status=$? |
ec6a6fbe | 9447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9448 | (exit $ac_status); }; }; then |
9449 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9450 | else | |
ec6a6fbe AK |
9451 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9452 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9453 | sed 's/^/| /' conftest.$ac_ext >&5 |
9454 | ||
9455 | ( exit $ac_status ) | |
9456 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9457 | fi | |
ec6a6fbe | 9458 | rm -rf conftest.dSYM |
7a197a62 | 9459 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9460 | fi |
7a197a62 AK |
9461 | |
9462 | ||
ad6254c5 AK |
9463 | else |
9464 | # If the `ln -s' command failed, then we probably don't even | |
9465 | # have an lstat function. | |
9466 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9467 | fi | |
9468 | rm -f conftest.sym conftest.file | |
9469 | ||
9470 | fi | |
ec6a6fbe AK |
9471 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9472 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9473 | |
9474 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9475 | ||
9476 | cat >>confdefs.h <<_ACEOF | |
9477 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9478 | _ACEOF | |
9479 | ||
9480 | ||
9481 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9482 | case " $LIBOBJS " in |
8a2fc586 | 9483 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9484 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9485 | ;; | |
8a2fc586 AK |
9486 | esac |
9487 | ||
ad6254c5 AK |
9488 | fi |
9489 | ||
ec6a6fbe AK |
9490 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9491 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9492 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9493 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9494 | else |
9495 | if test "$cross_compiling" = yes; then | |
9496 | ac_cv_func_lstat_empty_string_bug=yes | |
9497 | else | |
9498 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9499 | /* confdefs.h. */ |
9500 | _ACEOF | |
9501 | cat confdefs.h >>conftest.$ac_ext | |
9502 | cat >>conftest.$ac_ext <<_ACEOF | |
9503 | /* end confdefs.h. */ | |
9504 | $ac_includes_default | |
9505 | int | |
9506 | main () | |
9507 | { | |
9508 | struct stat sbuf; | |
7a197a62 | 9509 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9510 | ; |
9511 | return 0; | |
9512 | } | |
9513 | _ACEOF | |
9514 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9515 | if { (ac_try="$ac_link" |
9516 | case "(($ac_try" in | |
9517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9518 | *) ac_try_echo=$ac_try;; | |
9519 | esac | |
ec6a6fbe AK |
9520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9521 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9522 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9523 | ac_status=$? |
ec6a6fbe | 9524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9525 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9526 | { (case "(($ac_try" in |
9527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9528 | *) ac_try_echo=$ac_try;; | |
9529 | esac | |
ec6a6fbe AK |
9530 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9531 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9532 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9533 | ac_status=$? |
ec6a6fbe | 9534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9535 | (exit $ac_status); }; }; then |
7a197a62 | 9536 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9537 | else |
ec6a6fbe AK |
9538 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9539 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9540 | sed 's/^/| /' conftest.$ac_ext >&5 |
9541 | ||
9542 | ( exit $ac_status ) | |
7a197a62 | 9543 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9544 | fi |
ec6a6fbe | 9545 | rm -rf conftest.dSYM |
7a197a62 | 9546 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9547 | fi |
7a197a62 AK |
9548 | |
9549 | ||
ad6254c5 | 9550 | fi |
ec6a6fbe AK |
9551 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9552 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9553 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 9554 | case " $LIBOBJS " in |
8a2fc586 | 9555 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9556 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9557 | ;; | |
8a2fc586 AK |
9558 | esac |
9559 | ||
ad6254c5 AK |
9560 | |
9561 | cat >>confdefs.h <<_ACEOF | |
9562 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9563 | _ACEOF | |
9564 | ||
9565 | fi | |
9566 | ||
9567 | ||
9568 | for ac_header in stdlib.h | |
9569 | do | |
ec6a6fbe | 9570 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9572 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9573 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9575 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9576 | fi |
ec6a6fbe AK |
9577 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9578 | $as_echo "$as_val"'` | |
9579 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9580 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9581 | else |
9582 | # Is the header compilable? | |
ec6a6fbe AK |
9583 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9584 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9585 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9586 | /* confdefs.h. */ |
9587 | _ACEOF | |
9588 | cat confdefs.h >>conftest.$ac_ext | |
9589 | cat >>conftest.$ac_ext <<_ACEOF | |
9590 | /* end confdefs.h. */ | |
9591 | $ac_includes_default | |
9592 | #include <$ac_header> | |
9593 | _ACEOF | |
9594 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9595 | if { (ac_try="$ac_compile" |
9596 | case "(($ac_try" in | |
9597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9598 | *) ac_try_echo=$ac_try;; | |
9599 | esac | |
ec6a6fbe AK |
9600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9601 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9602 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9603 | ac_status=$? |
8a2fc586 AK |
9604 | grep -v '^ *+' conftest.er1 >conftest.err |
9605 | rm -f conftest.er1 | |
9606 | cat conftest.err >&5 | |
ec6a6fbe | 9607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9608 | (exit $ac_status); } && { |
9609 | test -z "$ac_c_werror_flag" || | |
9610 | test ! -s conftest.err | |
9611 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9612 | ac_header_compiler=yes |
9613 | else | |
ec6a6fbe | 9614 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9615 | sed 's/^/| /' conftest.$ac_ext >&5 |
9616 | ||
7a197a62 | 9617 | ac_header_compiler=no |
ad6254c5 | 9618 | fi |
7a197a62 AK |
9619 | |
9620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9621 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9622 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9623 | |
9624 | # Is the header present? | |
ec6a6fbe AK |
9625 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9626 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9627 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9628 | /* confdefs.h. */ |
9629 | _ACEOF | |
9630 | cat confdefs.h >>conftest.$ac_ext | |
9631 | cat >>conftest.$ac_ext <<_ACEOF | |
9632 | /* end confdefs.h. */ | |
9633 | #include <$ac_header> | |
9634 | _ACEOF | |
7a197a62 AK |
9635 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9636 | case "(($ac_try" in | |
9637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9638 | *) ac_try_echo=$ac_try;; | |
9639 | esac | |
ec6a6fbe AK |
9640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9641 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9642 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9643 | ac_status=$? |
9644 | grep -v '^ *+' conftest.er1 >conftest.err | |
9645 | rm -f conftest.er1 | |
9646 | cat conftest.err >&5 | |
ec6a6fbe | 9647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9648 | (exit $ac_status); } >/dev/null && { |
9649 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9650 | test ! -s conftest.err | |
9651 | }; then | |
ad6254c5 AK |
9652 | ac_header_preproc=yes |
9653 | else | |
ec6a6fbe | 9654 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
9656 | ||
9657 | ac_header_preproc=no | |
9658 | fi | |
7a197a62 | 9659 | |
ad6254c5 | 9660 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9661 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9662 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9663 | |
9664 | # So? What about this header? | |
8a2fc586 AK |
9665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9666 | yes:no: ) | |
ec6a6fbe AK |
9667 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9668 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9669 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9670 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9671 | ac_header_preproc=yes |
ad6254c5 | 9672 | ;; |
8a2fc586 | 9673 | no:yes:* ) |
ec6a6fbe AK |
9674 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9675 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9676 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9677 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9679 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9681 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9682 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9683 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9685 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9686 | |
ad6254c5 AK |
9687 | ;; |
9688 | esac | |
ec6a6fbe AK |
9689 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9690 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9691 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9692 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9693 | else |
8a2fc586 | 9694 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9695 | fi |
ec6a6fbe AK |
9696 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9697 | $as_echo "$as_val"'` | |
9698 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9699 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9700 | |
9701 | fi | |
ec6a6fbe AK |
9702 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9703 | $as_echo "$as_val"'` | |
9704 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9705 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9706 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9707 | _ACEOF |
9708 | ||
9709 | fi | |
9710 | ||
9711 | done | |
9712 | ||
ec6a6fbe AK |
9713 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9714 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9715 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9716 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9717 | else |
9718 | if test "$cross_compiling" = yes; then | |
9719 | ac_cv_func_malloc_0_nonnull=no | |
9720 | else | |
9721 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9722 | /* confdefs.h. */ |
9723 | _ACEOF | |
9724 | cat confdefs.h >>conftest.$ac_ext | |
9725 | cat >>conftest.$ac_ext <<_ACEOF | |
9726 | /* end confdefs.h. */ | |
25fbec5b | 9727 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9728 | # include <stdlib.h> |
9729 | #else | |
9730 | char *malloc (); | |
9731 | #endif | |
9732 | ||
9733 | int | |
9734 | main () | |
9735 | { | |
7a197a62 | 9736 | return ! malloc (0); |
ad6254c5 AK |
9737 | ; |
9738 | return 0; | |
9739 | } | |
9740 | _ACEOF | |
9741 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9742 | if { (ac_try="$ac_link" |
9743 | case "(($ac_try" in | |
9744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9745 | *) ac_try_echo=$ac_try;; | |
9746 | esac | |
ec6a6fbe AK |
9747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9748 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9749 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9750 | ac_status=$? |
ec6a6fbe | 9751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9752 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9753 | { (case "(($ac_try" in |
9754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9755 | *) ac_try_echo=$ac_try;; | |
9756 | esac | |
ec6a6fbe AK |
9757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9758 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9759 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9760 | ac_status=$? |
ec6a6fbe | 9761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9762 | (exit $ac_status); }; }; then |
9763 | ac_cv_func_malloc_0_nonnull=yes | |
9764 | else | |
ec6a6fbe AK |
9765 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9766 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9767 | sed 's/^/| /' conftest.$ac_ext >&5 |
9768 | ||
9769 | ( exit $ac_status ) | |
9770 | ac_cv_func_malloc_0_nonnull=no | |
9771 | fi | |
ec6a6fbe | 9772 | rm -rf conftest.dSYM |
7a197a62 | 9773 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9774 | fi |
7a197a62 AK |
9775 | |
9776 | ||
ad6254c5 | 9777 | fi |
ec6a6fbe AK |
9778 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9779 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9780 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9781 | ||
9782 | cat >>confdefs.h <<\_ACEOF | |
9783 | #define HAVE_MALLOC 1 | |
9784 | _ACEOF | |
9785 | ||
9786 | else | |
9787 | cat >>confdefs.h <<\_ACEOF | |
9788 | #define HAVE_MALLOC 0 | |
9789 | _ACEOF | |
9790 | ||
7a197a62 | 9791 | case " $LIBOBJS " in |
8a2fc586 | 9792 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9793 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9794 | ;; | |
8a2fc586 AK |
9795 | esac |
9796 | ||
ad6254c5 AK |
9797 | |
9798 | cat >>confdefs.h <<\_ACEOF | |
9799 | #define malloc rpl_malloc | |
9800 | _ACEOF | |
9801 | ||
9802 | fi | |
9803 | ||
9804 | ||
9805 | ||
ec6a6fbe AK |
9806 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9807 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9808 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9809 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9810 | else |
9811 | if test "$cross_compiling" = yes; then | |
9812 | ac_cv_func_memcmp_working=no | |
9813 | else | |
9814 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9815 | /* confdefs.h. */ |
9816 | _ACEOF | |
9817 | cat confdefs.h >>conftest.$ac_ext | |
9818 | cat >>conftest.$ac_ext <<_ACEOF | |
9819 | /* end confdefs.h. */ | |
8a2fc586 | 9820 | $ac_includes_default |
ad6254c5 AK |
9821 | int |
9822 | main () | |
9823 | { | |
9824 | ||
9825 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9826 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9827 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9828 | return 1; |
ad6254c5 AK |
9829 | |
9830 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9831 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9832 | William Lewis provided this test program. */ | |
9833 | { | |
9834 | char foo[21]; | |
9835 | char bar[21]; | |
9836 | int i; | |
9837 | for (i = 0; i < 4; i++) | |
9838 | { | |
8a2fc586 AK |
9839 | char *a = foo + i; |
9840 | char *b = bar + i; | |
9841 | strcpy (a, "--------01111111"); | |
9842 | strcpy (b, "--------10000000"); | |
9843 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9844 | return 1; |
ad6254c5 | 9845 | } |
7a197a62 | 9846 | return 0; |
ad6254c5 AK |
9847 | } |
9848 | ||
9849 | ; | |
9850 | return 0; | |
9851 | } | |
9852 | _ACEOF | |
9853 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9854 | if { (ac_try="$ac_link" |
9855 | case "(($ac_try" in | |
9856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9857 | *) ac_try_echo=$ac_try;; | |
9858 | esac | |
ec6a6fbe AK |
9859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9860 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9861 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9862 | ac_status=$? |
ec6a6fbe | 9863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9864 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9865 | { (case "(($ac_try" in |
9866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9867 | *) ac_try_echo=$ac_try;; | |
9868 | esac | |
ec6a6fbe AK |
9869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9870 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9871 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9872 | ac_status=$? |
ec6a6fbe | 9873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9874 | (exit $ac_status); }; }; then |
9875 | ac_cv_func_memcmp_working=yes | |
9876 | else | |
ec6a6fbe AK |
9877 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9878 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9879 | sed 's/^/| /' conftest.$ac_ext >&5 |
9880 | ||
9881 | ( exit $ac_status ) | |
9882 | ac_cv_func_memcmp_working=no | |
9883 | fi | |
ec6a6fbe | 9884 | rm -rf conftest.dSYM |
7a197a62 | 9885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9886 | fi |
7a197a62 AK |
9887 | |
9888 | ||
ad6254c5 | 9889 | fi |
ec6a6fbe AK |
9890 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9891 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9892 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9893 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9894 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9895 | ;; | |
8a2fc586 AK |
9896 | esac |
9897 | ||
ad6254c5 AK |
9898 | |
9899 | ||
9900 | ||
9901 | for ac_header in stdlib.h unistd.h | |
9902 | do | |
ec6a6fbe | 9903 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9904 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9905 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9906 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9908 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9909 | fi |
ec6a6fbe AK |
9910 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9911 | $as_echo "$as_val"'` | |
9912 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9913 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9914 | else |
9915 | # Is the header compilable? | |
ec6a6fbe AK |
9916 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9917 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9918 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9919 | /* confdefs.h. */ |
9920 | _ACEOF | |
9921 | cat confdefs.h >>conftest.$ac_ext | |
9922 | cat >>conftest.$ac_ext <<_ACEOF | |
9923 | /* end confdefs.h. */ | |
9924 | $ac_includes_default | |
9925 | #include <$ac_header> | |
9926 | _ACEOF | |
9927 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9928 | if { (ac_try="$ac_compile" |
9929 | case "(($ac_try" in | |
9930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9931 | *) ac_try_echo=$ac_try;; | |
9932 | esac | |
ec6a6fbe AK |
9933 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9934 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9935 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9936 | ac_status=$? |
8a2fc586 AK |
9937 | grep -v '^ *+' conftest.er1 >conftest.err |
9938 | rm -f conftest.er1 | |
9939 | cat conftest.err >&5 | |
ec6a6fbe | 9940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9941 | (exit $ac_status); } && { |
9942 | test -z "$ac_c_werror_flag" || | |
9943 | test ! -s conftest.err | |
9944 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9945 | ac_header_compiler=yes |
9946 | else | |
ec6a6fbe | 9947 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9948 | sed 's/^/| /' conftest.$ac_ext >&5 |
9949 | ||
7a197a62 | 9950 | ac_header_compiler=no |
ad6254c5 | 9951 | fi |
7a197a62 AK |
9952 | |
9953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9954 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9955 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9956 | |
9957 | # Is the header present? | |
ec6a6fbe AK |
9958 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9959 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9960 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9961 | /* confdefs.h. */ |
9962 | _ACEOF | |
9963 | cat confdefs.h >>conftest.$ac_ext | |
9964 | cat >>conftest.$ac_ext <<_ACEOF | |
9965 | /* end confdefs.h. */ | |
9966 | #include <$ac_header> | |
9967 | _ACEOF | |
7a197a62 AK |
9968 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9969 | case "(($ac_try" in | |
9970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9971 | *) ac_try_echo=$ac_try;; | |
9972 | esac | |
ec6a6fbe AK |
9973 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9974 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9975 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9976 | ac_status=$? |
9977 | grep -v '^ *+' conftest.er1 >conftest.err | |
9978 | rm -f conftest.er1 | |
9979 | cat conftest.err >&5 | |
ec6a6fbe | 9980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9981 | (exit $ac_status); } >/dev/null && { |
9982 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9983 | test ! -s conftest.err | |
9984 | }; then | |
ad6254c5 AK |
9985 | ac_header_preproc=yes |
9986 | else | |
ec6a6fbe | 9987 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9988 | sed 's/^/| /' conftest.$ac_ext >&5 |
9989 | ||
9990 | ac_header_preproc=no | |
9991 | fi | |
7a197a62 | 9992 | |
ad6254c5 | 9993 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9994 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9995 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9996 | |
9997 | # So? What about this header? | |
8a2fc586 AK |
9998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9999 | yes:no: ) | |
ec6a6fbe AK |
10000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10001 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10003 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10004 | ac_header_preproc=yes |
ad6254c5 | 10005 | ;; |
8a2fc586 | 10006 | no:yes:* ) |
ec6a6fbe AK |
10007 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10008 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10010 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10012 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10014 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10016 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10018 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10019 | |
ad6254c5 AK |
10020 | ;; |
10021 | esac | |
ec6a6fbe AK |
10022 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10023 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10024 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10025 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10026 | else |
8a2fc586 | 10027 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10028 | fi |
ec6a6fbe AK |
10029 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10030 | $as_echo "$as_val"'` | |
10031 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10032 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10033 | |
10034 | fi | |
ec6a6fbe AK |
10035 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10036 | $as_echo "$as_val"'` | |
10037 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10038 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10039 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10040 | _ACEOF |
10041 | ||
10042 | fi | |
10043 | ||
10044 | done | |
10045 | ||
10046 | ||
10047 | for ac_func in getpagesize | |
10048 | do | |
ec6a6fbe AK |
10049 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10050 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10051 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10052 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10053 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10054 | else |
10055 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10056 | /* confdefs.h. */ |
10057 | _ACEOF | |
10058 | cat confdefs.h >>conftest.$ac_ext | |
10059 | cat >>conftest.$ac_ext <<_ACEOF | |
10060 | /* end confdefs.h. */ | |
8a2fc586 AK |
10061 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10062 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10063 | #define $ac_func innocuous_$ac_func | |
10064 | ||
ad6254c5 AK |
10065 | /* System header to define __stub macros and hopefully few prototypes, |
10066 | which can conflict with char $ac_func (); below. | |
10067 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10068 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10069 | |
ad6254c5 AK |
10070 | #ifdef __STDC__ |
10071 | # include <limits.h> | |
10072 | #else | |
10073 | # include <assert.h> | |
10074 | #endif | |
8a2fc586 AK |
10075 | |
10076 | #undef $ac_func | |
10077 | ||
7a197a62 AK |
10078 | /* Override any GCC internal prototype to avoid an error. |
10079 | Use char because int might match the return type of a GCC | |
10080 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10081 | #ifdef __cplusplus |
10082 | extern "C" | |
ad6254c5 | 10083 | #endif |
ad6254c5 AK |
10084 | char $ac_func (); |
10085 | /* The GNU C library defines this for functions which it implements | |
10086 | to always fail with ENOSYS. Some functions are actually named | |
10087 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10088 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10089 | choke me |
ad6254c5 AK |
10090 | #endif |
10091 | ||
10092 | int | |
10093 | main () | |
10094 | { | |
7a197a62 | 10095 | return $ac_func (); |
ad6254c5 AK |
10096 | ; |
10097 | return 0; | |
10098 | } | |
10099 | _ACEOF | |
10100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10101 | if { (ac_try="$ac_link" |
10102 | case "(($ac_try" in | |
10103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10104 | *) ac_try_echo=$ac_try;; | |
10105 | esac | |
ec6a6fbe AK |
10106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10107 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10108 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10109 | ac_status=$? |
8a2fc586 AK |
10110 | grep -v '^ *+' conftest.er1 >conftest.err |
10111 | rm -f conftest.er1 | |
10112 | cat conftest.err >&5 | |
ec6a6fbe | 10113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10114 | (exit $ac_status); } && { |
10115 | test -z "$ac_c_werror_flag" || | |
10116 | test ! -s conftest.err | |
ec6a6fbe AK |
10117 | } && test -s conftest$ac_exeext && { |
10118 | test "$cross_compiling" = yes || | |
10119 | $as_test_x conftest$ac_exeext | |
10120 | }; then | |
ad6254c5 AK |
10121 | eval "$as_ac_var=yes" |
10122 | else | |
ec6a6fbe | 10123 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10124 | sed 's/^/| /' conftest.$ac_ext >&5 |
10125 | ||
7a197a62 | 10126 | eval "$as_ac_var=no" |
ad6254c5 | 10127 | fi |
7a197a62 | 10128 | |
ec6a6fbe | 10129 | rm -rf conftest.dSYM |
25fbec5b | 10130 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10131 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10132 | fi |
ec6a6fbe AK |
10133 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10134 | $as_echo "$as_val"'` | |
10135 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10136 | $as_echo "$ac_res" >&6; } | |
10137 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10138 | $as_echo "$as_val"'` | |
10139 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10140 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10141 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10142 | _ACEOF |
10143 | ||
10144 | fi | |
10145 | done | |
10146 | ||
ec6a6fbe AK |
10147 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10148 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10149 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10150 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10151 | else |
10152 | if test "$cross_compiling" = yes; then | |
10153 | ac_cv_func_mmap_fixed_mapped=no | |
10154 | else | |
10155 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10156 | /* confdefs.h. */ |
10157 | _ACEOF | |
10158 | cat confdefs.h >>conftest.$ac_ext | |
10159 | cat >>conftest.$ac_ext <<_ACEOF | |
10160 | /* end confdefs.h. */ | |
10161 | $ac_includes_default | |
10162 | /* malloc might have been renamed as rpl_malloc. */ | |
10163 | #undef malloc | |
10164 | ||
10165 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10166 | Here is a matrix of mmap possibilities: | |
10167 | mmap private not fixed | |
10168 | mmap private fixed at somewhere currently unmapped | |
10169 | mmap private fixed at somewhere already mapped | |
10170 | mmap shared not fixed | |
10171 | mmap shared fixed at somewhere currently unmapped | |
10172 | mmap shared fixed at somewhere already mapped | |
10173 | For private mappings, we should verify that changes cannot be read() | |
10174 | back from the file, nor mmap's back from the file at a different | |
10175 | address. (There have been systems where private was not correctly | |
10176 | implemented like the infamous i386 svr4.0, and systems where the | |
10177 | VM page cache was not coherent with the file system buffer cache | |
10178 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10179 | For shared mappings, we should conversely verify that changes get | |
10180 | propagated back to all the places they're supposed to be. | |
10181 | ||
10182 | Grep wants private fixed already mapped. | |
10183 | The main things grep needs to know about mmap are: | |
10184 | * does it exist and is it safe to write into the mmap'd area | |
10185 | * how to use it (BSD variants) */ | |
10186 | ||
10187 | #include <fcntl.h> | |
10188 | #include <sys/mman.h> | |
10189 | ||
25fbec5b | 10190 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10191 | char *malloc (); |
10192 | #endif | |
10193 | ||
10194 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10195 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10196 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10197 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10198 | # define HAVE_SYS_PARAM_H 1 |
10199 | # endif | |
10200 | ||
10201 | # ifdef _SC_PAGESIZE | |
10202 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10203 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10204 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10205 | # include <sys/param.h> |
10206 | # ifdef EXEC_PAGESIZE | |
10207 | # define getpagesize() EXEC_PAGESIZE | |
10208 | # else /* no EXEC_PAGESIZE */ | |
10209 | # ifdef NBPG | |
10210 | # define getpagesize() NBPG * CLSIZE | |
10211 | # ifndef CLSIZE | |
10212 | # define CLSIZE 1 | |
10213 | # endif /* no CLSIZE */ | |
10214 | # else /* no NBPG */ | |
10215 | # ifdef NBPC | |
10216 | # define getpagesize() NBPC | |
10217 | # else /* no NBPC */ | |
10218 | # ifdef PAGESIZE | |
10219 | # define getpagesize() PAGESIZE | |
10220 | # endif /* PAGESIZE */ | |
10221 | # endif /* no NBPC */ | |
10222 | # endif /* no NBPG */ | |
10223 | # endif /* no EXEC_PAGESIZE */ | |
10224 | # else /* no HAVE_SYS_PARAM_H */ | |
10225 | # define getpagesize() 8192 /* punt totally */ | |
10226 | # endif /* no HAVE_SYS_PARAM_H */ | |
10227 | # endif /* no _SC_PAGESIZE */ | |
10228 | ||
10229 | #endif /* no HAVE_GETPAGESIZE */ | |
10230 | ||
10231 | int | |
10232 | main () | |
10233 | { | |
10234 | char *data, *data2, *data3; | |
10235 | int i, pagesize; | |
10236 | int fd; | |
10237 | ||
10238 | pagesize = getpagesize (); | |
10239 | ||
10240 | /* First, make a file with some known garbage in it. */ | |
10241 | data = (char *) malloc (pagesize); | |
10242 | if (!data) | |
7a197a62 | 10243 | return 1; |
ad6254c5 AK |
10244 | for (i = 0; i < pagesize; ++i) |
10245 | *(data + i) = rand (); | |
10246 | umask (0); | |
10247 | fd = creat ("conftest.mmap", 0600); | |
10248 | if (fd < 0) | |
7a197a62 | 10249 | return 1; |
ad6254c5 | 10250 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10251 | return 1; |
ad6254c5 AK |
10252 | close (fd); |
10253 | ||
10254 | /* Next, try to mmap the file at a fixed address which already has | |
10255 | something else allocated at it. If we can, also make sure that | |
10256 | we see the same garbage. */ | |
10257 | fd = open ("conftest.mmap", O_RDWR); | |
10258 | if (fd < 0) | |
7a197a62 | 10259 | return 1; |
ad6254c5 AK |
10260 | data2 = (char *) malloc (2 * pagesize); |
10261 | if (!data2) | |
7a197a62 AK |
10262 | return 1; |
10263 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10264 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10265 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10266 | return 1; |
ad6254c5 AK |
10267 | for (i = 0; i < pagesize; ++i) |
10268 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10269 | return 1; |
ad6254c5 | 10270 | |
d911ec67 AK |
10271 | /* Finally, make sure that changes to the mapped area do not |
10272 | percolate back to the file as seen by read(). (This is a bug on | |
10273 | some variants of i386 svr4.0.) */ | |
10274 | for (i = 0; i < pagesize; ++i) | |
10275 | *(data2 + i) = *(data2 + i) + 1; | |
10276 | data3 = (char *) malloc (pagesize); | |
10277 | if (!data3) | |
10278 | return 1; | |
10279 | if (read (fd, data3, pagesize) != pagesize) | |
10280 | return 1; | |
10281 | for (i = 0; i < pagesize; ++i) | |
10282 | if (*(data + i) != *(data3 + i)) | |
10283 | return 1; | |
10284 | close (fd); | |
10285 | return 0; | |
10286 | } | |
10287 | _ACEOF | |
10288 | rm -f conftest$ac_exeext | |
10289 | if { (ac_try="$ac_link" | |
10290 | case "(($ac_try" in | |
10291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10292 | *) ac_try_echo=$ac_try;; | |
10293 | esac | |
10294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10295 | $as_echo "$ac_try_echo") >&5 | |
10296 | (eval "$ac_link") 2>&5 | |
10297 | ac_status=$? | |
10298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10300 | { (case "(($ac_try" in | |
10301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10302 | *) ac_try_echo=$ac_try;; | |
10303 | esac | |
10304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10305 | $as_echo "$ac_try_echo") >&5 | |
10306 | (eval "$ac_try") 2>&5 | |
10307 | ac_status=$? | |
10308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10309 | (exit $ac_status); }; }; then | |
10310 | ac_cv_func_mmap_fixed_mapped=yes | |
10311 | else | |
10312 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10313 | $as_echo "$as_me: failed program was:" >&5 | |
10314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10315 | ||
10316 | ( exit $ac_status ) | |
10317 | ac_cv_func_mmap_fixed_mapped=no | |
10318 | fi | |
10319 | rm -rf conftest.dSYM | |
10320 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10321 | fi | |
10322 | ||
10323 | ||
10324 | fi | |
10325 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10326 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10327 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10328 | ||
10329 | cat >>confdefs.h <<\_ACEOF | |
10330 | #define HAVE_MMAP 1 | |
10331 | _ACEOF | |
10332 | ||
10333 | fi | |
10334 | rm -f conftest.mmap | |
10335 | ||
10336 | ||
10337 | for ac_header in stdlib.h | |
10338 | do | |
10339 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10341 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10342 | $as_echo_n "checking for $ac_header... " >&6; } | |
10343 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10344 | $as_echo_n "(cached) " >&6 | |
10345 | fi | |
10346 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10347 | $as_echo "$as_val"'` | |
10348 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10349 | $as_echo "$ac_res" >&6; } | |
10350 | else | |
10351 | # Is the header compilable? | |
10352 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10353 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10354 | cat >conftest.$ac_ext <<_ACEOF | |
10355 | /* confdefs.h. */ | |
10356 | _ACEOF | |
10357 | cat confdefs.h >>conftest.$ac_ext | |
10358 | cat >>conftest.$ac_ext <<_ACEOF | |
10359 | /* end confdefs.h. */ | |
10360 | $ac_includes_default | |
10361 | #include <$ac_header> | |
10362 | _ACEOF | |
10363 | rm -f conftest.$ac_objext | |
10364 | if { (ac_try="$ac_compile" | |
10365 | case "(($ac_try" in | |
10366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10367 | *) ac_try_echo=$ac_try;; | |
10368 | esac | |
10369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10370 | $as_echo "$ac_try_echo") >&5 | |
10371 | (eval "$ac_compile") 2>conftest.er1 | |
10372 | ac_status=$? | |
10373 | grep -v '^ *+' conftest.er1 >conftest.err | |
10374 | rm -f conftest.er1 | |
10375 | cat conftest.err >&5 | |
10376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); } && { | |
10378 | test -z "$ac_c_werror_flag" || | |
10379 | test ! -s conftest.err | |
10380 | } && test -s conftest.$ac_objext; then | |
10381 | ac_header_compiler=yes | |
10382 | else | |
10383 | $as_echo "$as_me: failed program was:" >&5 | |
10384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10385 | ||
10386 | ac_header_compiler=no | |
10387 | fi | |
10388 | ||
10389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10390 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10391 | $as_echo "$ac_header_compiler" >&6; } | |
10392 | ||
10393 | # Is the header present? | |
10394 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10395 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10396 | cat >conftest.$ac_ext <<_ACEOF | |
10397 | /* confdefs.h. */ | |
10398 | _ACEOF | |
10399 | cat confdefs.h >>conftest.$ac_ext | |
10400 | cat >>conftest.$ac_ext <<_ACEOF | |
10401 | /* end confdefs.h. */ | |
10402 | #include <$ac_header> | |
10403 | _ACEOF | |
10404 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10405 | case "(($ac_try" in | |
10406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10407 | *) ac_try_echo=$ac_try;; | |
10408 | esac | |
10409 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10410 | $as_echo "$ac_try_echo") >&5 | |
10411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10412 | ac_status=$? | |
10413 | grep -v '^ *+' conftest.er1 >conftest.err | |
10414 | rm -f conftest.er1 | |
10415 | cat conftest.err >&5 | |
10416 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10417 | (exit $ac_status); } >/dev/null && { | |
10418 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10419 | test ! -s conftest.err | |
10420 | }; then | |
10421 | ac_header_preproc=yes | |
10422 | else | |
10423 | $as_echo "$as_me: failed program was:" >&5 | |
10424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10425 | ||
10426 | ac_header_preproc=no | |
10427 | fi | |
10428 | ||
10429 | rm -f conftest.err conftest.$ac_ext | |
10430 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10431 | $as_echo "$ac_header_preproc" >&6; } | |
10432 | ||
10433 | # So? What about this header? | |
10434 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10435 | yes:no: ) | |
10436 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10437 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10439 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10440 | ac_header_preproc=yes | |
10441 | ;; | |
10442 | no:yes:* ) | |
10443 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10444 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10445 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10446 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10447 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10448 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10450 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10452 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10454 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10455 | ||
10456 | ;; | |
10457 | esac | |
10458 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10459 | $as_echo_n "checking for $ac_header... " >&6; } | |
10460 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10461 | $as_echo_n "(cached) " >&6 | |
10462 | else | |
10463 | eval "$as_ac_Header=\$ac_header_preproc" | |
10464 | fi | |
10465 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10466 | $as_echo "$as_val"'` | |
10467 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10468 | $as_echo "$ac_res" >&6; } | |
10469 | ||
10470 | fi | |
10471 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10472 | $as_echo "$as_val"'` | |
10473 | if test "x$as_val" = x""yes; then | |
10474 | cat >>confdefs.h <<_ACEOF | |
10475 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10476 | _ACEOF | |
10477 | ||
10478 | fi | |
10479 | ||
10480 | done | |
10481 | ||
10482 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10483 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10484 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10485 | $as_echo_n "(cached) " >&6 | |
10486 | else | |
10487 | if test "$cross_compiling" = yes; then | |
10488 | ac_cv_func_realloc_0_nonnull=no | |
10489 | else | |
10490 | cat >conftest.$ac_ext <<_ACEOF | |
10491 | /* confdefs.h. */ | |
10492 | _ACEOF | |
10493 | cat confdefs.h >>conftest.$ac_ext | |
10494 | cat >>conftest.$ac_ext <<_ACEOF | |
10495 | /* end confdefs.h. */ | |
10496 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10497 | # include <stdlib.h> | |
10498 | #else | |
10499 | char *realloc (); | |
10500 | #endif | |
10501 | ||
10502 | int | |
10503 | main () | |
10504 | { | |
10505 | return ! realloc (0, 0); | |
10506 | ; | |
7a197a62 | 10507 | return 0; |
ad6254c5 AK |
10508 | } |
10509 | _ACEOF | |
10510 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10511 | if { (ac_try="$ac_link" |
10512 | case "(($ac_try" in | |
10513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10514 | *) ac_try_echo=$ac_try;; | |
10515 | esac | |
ec6a6fbe AK |
10516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10517 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10518 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10519 | ac_status=$? |
ec6a6fbe | 10520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10522 | { (case "(($ac_try" in |
10523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10524 | *) ac_try_echo=$ac_try;; | |
10525 | esac | |
ec6a6fbe AK |
10526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10527 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10528 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10529 | ac_status=$? |
ec6a6fbe | 10530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10531 | (exit $ac_status); }; }; then |
d911ec67 | 10532 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10533 | else |
ec6a6fbe AK |
10534 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10535 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10536 | sed 's/^/| /' conftest.$ac_ext >&5 |
10537 | ||
10538 | ( exit $ac_status ) | |
d911ec67 | 10539 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10540 | fi |
ec6a6fbe | 10541 | rm -rf conftest.dSYM |
7a197a62 | 10542 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10543 | fi |
7a197a62 AK |
10544 | |
10545 | ||
ad6254c5 | 10546 | fi |
d911ec67 AK |
10547 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10548 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10549 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10550 | |
10551 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10552 | #define HAVE_REALLOC 1 |
10553 | _ACEOF | |
10554 | ||
10555 | else | |
10556 | cat >>confdefs.h <<\_ACEOF | |
10557 | #define HAVE_REALLOC 0 | |
10558 | _ACEOF | |
10559 | ||
10560 | case " $LIBOBJS " in | |
10561 | *" realloc.$ac_objext "* ) ;; | |
10562 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10563 | ;; | |
10564 | esac | |
10565 | ||
10566 | ||
10567 | cat >>confdefs.h <<\_ACEOF | |
10568 | #define realloc rpl_realloc | |
ad6254c5 AK |
10569 | _ACEOF |
10570 | ||
10571 | fi | |
d911ec67 AK |
10572 | |
10573 | ||
ad6254c5 | 10574 | |
ec6a6fbe AK |
10575 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10576 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10577 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10578 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10579 | else |
10580 | if test "$cross_compiling" = yes; then | |
10581 | ac_cv_func_stat_empty_string_bug=yes | |
10582 | else | |
10583 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10584 | /* confdefs.h. */ |
10585 | _ACEOF | |
10586 | cat confdefs.h >>conftest.$ac_ext | |
10587 | cat >>conftest.$ac_ext <<_ACEOF | |
10588 | /* end confdefs.h. */ | |
10589 | $ac_includes_default | |
10590 | int | |
10591 | main () | |
10592 | { | |
10593 | struct stat sbuf; | |
7a197a62 | 10594 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10595 | ; |
10596 | return 0; | |
10597 | } | |
10598 | _ACEOF | |
10599 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10600 | if { (ac_try="$ac_link" |
10601 | case "(($ac_try" in | |
10602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10603 | *) ac_try_echo=$ac_try;; | |
10604 | esac | |
ec6a6fbe AK |
10605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10606 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10607 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10608 | ac_status=$? |
ec6a6fbe | 10609 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10610 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10611 | { (case "(($ac_try" in |
10612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10613 | *) ac_try_echo=$ac_try;; | |
10614 | esac | |
ec6a6fbe AK |
10615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10616 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10617 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10618 | ac_status=$? |
ec6a6fbe | 10619 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10620 | (exit $ac_status); }; }; then |
7a197a62 | 10621 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10622 | else |
ec6a6fbe AK |
10623 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10624 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10625 | sed 's/^/| /' conftest.$ac_ext >&5 |
10626 | ||
10627 | ( exit $ac_status ) | |
7a197a62 | 10628 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10629 | fi |
ec6a6fbe | 10630 | rm -rf conftest.dSYM |
7a197a62 | 10631 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10632 | fi |
7a197a62 AK |
10633 | |
10634 | ||
ad6254c5 | 10635 | fi |
ec6a6fbe AK |
10636 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10637 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10638 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10639 | case " $LIBOBJS " in |
8a2fc586 | 10640 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10641 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10642 | ;; | |
8a2fc586 AK |
10643 | esac |
10644 | ||
ad6254c5 AK |
10645 | |
10646 | cat >>confdefs.h <<_ACEOF | |
10647 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10648 | _ACEOF | |
10649 | ||
10650 | fi | |
10651 | ||
ec6a6fbe AK |
10652 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10653 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10654 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10655 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10656 | else |
10657 | if test "$cross_compiling" = yes; then | |
10658 | ac_cv_func_strtod=no | |
10659 | else | |
10660 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10661 | /* confdefs.h. */ |
10662 | _ACEOF | |
10663 | cat confdefs.h >>conftest.$ac_ext | |
10664 | cat >>conftest.$ac_ext <<_ACEOF | |
10665 | /* end confdefs.h. */ | |
10666 | ||
7a197a62 AK |
10667 | $ac_includes_default |
10668 | #ifndef strtod | |
ad6254c5 | 10669 | double strtod (); |
7a197a62 | 10670 | #endif |
ad6254c5 AK |
10671 | int |
10672 | main() | |
10673 | { | |
10674 | { | |
10675 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10676 | char *string = " +69"; | |
10677 | char *term; | |
10678 | double value; | |
10679 | value = strtod (string, &term); | |
10680 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10681 | return 1; |
ad6254c5 AK |
10682 | } |
10683 | ||
10684 | { | |
10685 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10686 | terminating character under some conditions. */ | |
10687 | char *string = "NaN"; | |
10688 | char *term; | |
10689 | strtod (string, &term); | |
10690 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10691 | return 1; |
ad6254c5 | 10692 | } |
7a197a62 | 10693 | return 0; |
ad6254c5 AK |
10694 | } |
10695 | ||
10696 | _ACEOF | |
10697 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10698 | if { (ac_try="$ac_link" |
10699 | case "(($ac_try" in | |
10700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10701 | *) ac_try_echo=$ac_try;; | |
10702 | esac | |
ec6a6fbe AK |
10703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10704 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10705 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10706 | ac_status=$? |
ec6a6fbe | 10707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10709 | { (case "(($ac_try" in |
10710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10711 | *) ac_try_echo=$ac_try;; | |
10712 | esac | |
ec6a6fbe AK |
10713 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10714 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10715 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10716 | ac_status=$? |
ec6a6fbe | 10717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10718 | (exit $ac_status); }; }; then |
10719 | ac_cv_func_strtod=yes | |
10720 | else | |
ec6a6fbe AK |
10721 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10722 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10723 | sed 's/^/| /' conftest.$ac_ext >&5 |
10724 | ||
10725 | ( exit $ac_status ) | |
10726 | ac_cv_func_strtod=no | |
10727 | fi | |
ec6a6fbe | 10728 | rm -rf conftest.dSYM |
7a197a62 | 10729 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10730 | fi |
7a197a62 AK |
10731 | |
10732 | ||
ad6254c5 | 10733 | fi |
ec6a6fbe AK |
10734 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10735 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10736 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10737 | case " $LIBOBJS " in |
8a2fc586 | 10738 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10739 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10740 | ;; | |
8a2fc586 AK |
10741 | esac |
10742 | ||
ec6a6fbe AK |
10743 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10744 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10745 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10746 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10747 | else |
10748 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10749 | /* confdefs.h. */ |
10750 | _ACEOF | |
10751 | cat confdefs.h >>conftest.$ac_ext | |
10752 | cat >>conftest.$ac_ext <<_ACEOF | |
10753 | /* end confdefs.h. */ | |
8a2fc586 AK |
10754 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10756 | #define pow innocuous_pow | |
10757 | ||
ad6254c5 AK |
10758 | /* System header to define __stub macros and hopefully few prototypes, |
10759 | which can conflict with char pow (); below. | |
10760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10761 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10762 | |
ad6254c5 AK |
10763 | #ifdef __STDC__ |
10764 | # include <limits.h> | |
10765 | #else | |
10766 | # include <assert.h> | |
10767 | #endif | |
8a2fc586 AK |
10768 | |
10769 | #undef pow | |
10770 | ||
7a197a62 AK |
10771 | /* Override any GCC internal prototype to avoid an error. |
10772 | Use char because int might match the return type of a GCC | |
10773 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10774 | #ifdef __cplusplus |
10775 | extern "C" | |
ad6254c5 | 10776 | #endif |
ad6254c5 AK |
10777 | char pow (); |
10778 | /* The GNU C library defines this for functions which it implements | |
10779 | to always fail with ENOSYS. Some functions are actually named | |
10780 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10781 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10782 | choke me |
ad6254c5 AK |
10783 | #endif |
10784 | ||
10785 | int | |
10786 | main () | |
10787 | { | |
7a197a62 | 10788 | return pow (); |
ad6254c5 AK |
10789 | ; |
10790 | return 0; | |
10791 | } | |
10792 | _ACEOF | |
10793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10794 | if { (ac_try="$ac_link" |
10795 | case "(($ac_try" in | |
10796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10797 | *) ac_try_echo=$ac_try;; | |
10798 | esac | |
ec6a6fbe AK |
10799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10800 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10801 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10802 | ac_status=$? |
8a2fc586 AK |
10803 | grep -v '^ *+' conftest.er1 >conftest.err |
10804 | rm -f conftest.er1 | |
10805 | cat conftest.err >&5 | |
ec6a6fbe | 10806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10807 | (exit $ac_status); } && { |
10808 | test -z "$ac_c_werror_flag" || | |
10809 | test ! -s conftest.err | |
ec6a6fbe AK |
10810 | } && test -s conftest$ac_exeext && { |
10811 | test "$cross_compiling" = yes || | |
10812 | $as_test_x conftest$ac_exeext | |
10813 | }; then | |
ad6254c5 AK |
10814 | ac_cv_func_pow=yes |
10815 | else | |
ec6a6fbe | 10816 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10817 | sed 's/^/| /' conftest.$ac_ext >&5 |
10818 | ||
7a197a62 | 10819 | ac_cv_func_pow=no |
ad6254c5 | 10820 | fi |
7a197a62 | 10821 | |
ec6a6fbe | 10822 | rm -rf conftest.dSYM |
25fbec5b | 10823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10824 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10825 | fi |
ec6a6fbe AK |
10826 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10827 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10828 | |
10829 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10830 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10831 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10832 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10833 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10834 | else |
10835 | ac_check_lib_save_LIBS=$LIBS | |
10836 | LIBS="-lm $LIBS" | |
10837 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10838 | /* confdefs.h. */ |
10839 | _ACEOF | |
10840 | cat confdefs.h >>conftest.$ac_ext | |
10841 | cat >>conftest.$ac_ext <<_ACEOF | |
10842 | /* end confdefs.h. */ | |
10843 | ||
7a197a62 AK |
10844 | /* Override any GCC internal prototype to avoid an error. |
10845 | Use char because int might match the return type of a GCC | |
10846 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10847 | #ifdef __cplusplus |
10848 | extern "C" | |
10849 | #endif | |
ad6254c5 AK |
10850 | char pow (); |
10851 | int | |
10852 | main () | |
10853 | { | |
7a197a62 | 10854 | return pow (); |
ad6254c5 AK |
10855 | ; |
10856 | return 0; | |
10857 | } | |
10858 | _ACEOF | |
10859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10860 | if { (ac_try="$ac_link" |
10861 | case "(($ac_try" in | |
10862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10863 | *) ac_try_echo=$ac_try;; | |
10864 | esac | |
ec6a6fbe AK |
10865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10866 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10867 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10868 | ac_status=$? |
8a2fc586 AK |
10869 | grep -v '^ *+' conftest.er1 >conftest.err |
10870 | rm -f conftest.er1 | |
10871 | cat conftest.err >&5 | |
ec6a6fbe | 10872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10873 | (exit $ac_status); } && { |
10874 | test -z "$ac_c_werror_flag" || | |
10875 | test ! -s conftest.err | |
ec6a6fbe AK |
10876 | } && test -s conftest$ac_exeext && { |
10877 | test "$cross_compiling" = yes || | |
10878 | $as_test_x conftest$ac_exeext | |
10879 | }; then | |
ad6254c5 AK |
10880 | ac_cv_lib_m_pow=yes |
10881 | else | |
ec6a6fbe | 10882 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10883 | sed 's/^/| /' conftest.$ac_ext >&5 |
10884 | ||
7a197a62 | 10885 | ac_cv_lib_m_pow=no |
ad6254c5 | 10886 | fi |
7a197a62 | 10887 | |
ec6a6fbe | 10888 | rm -rf conftest.dSYM |
25fbec5b | 10889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10890 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10891 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10892 | fi |
ec6a6fbe AK |
10893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10894 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10895 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10896 | POW_LIB=-lm |
10897 | else | |
ec6a6fbe AK |
10898 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10899 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10900 | fi |
72b2cb61 | 10901 | |
d0191583 | 10902 | fi |
72b2cb61 | 10903 | |
ad6254c5 AK |
10904 | fi |
10905 | ||
ad6254c5 | 10906 | |
d0191583 JM |
10907 | for ac_func in vprintf |
10908 | do | |
ec6a6fbe AK |
10909 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10910 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10911 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10912 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10913 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10914 | else |
d0191583 JM |
10915 | cat >conftest.$ac_ext <<_ACEOF |
10916 | /* confdefs.h. */ | |
10917 | _ACEOF | |
10918 | cat confdefs.h >>conftest.$ac_ext | |
10919 | cat >>conftest.$ac_ext <<_ACEOF | |
10920 | /* end confdefs.h. */ | |
10921 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10922 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10923 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10924 | |
d0191583 JM |
10925 | /* System header to define __stub macros and hopefully few prototypes, |
10926 | which can conflict with char $ac_func (); below. | |
10927 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10928 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10929 | |
d0191583 JM |
10930 | #ifdef __STDC__ |
10931 | # include <limits.h> | |
10932 | #else | |
10933 | # include <assert.h> | |
10934 | #endif | |
ad6254c5 | 10935 | |
d0191583 | 10936 | #undef $ac_func |
72b2cb61 | 10937 | |
d0191583 JM |
10938 | /* Override any GCC internal prototype to avoid an error. |
10939 | Use char because int might match the return type of a GCC | |
10940 | builtin and then its argument prototype would still apply. */ | |
10941 | #ifdef __cplusplus | |
10942 | extern "C" | |
10943 | #endif | |
10944 | char $ac_func (); | |
10945 | /* The GNU C library defines this for functions which it implements | |
10946 | to always fail with ENOSYS. Some functions are actually named | |
10947 | something starting with __ and the normal name is an alias. */ | |
10948 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10949 | choke me | |
10950 | #endif | |
10951 | ||
10952 | int | |
10953 | main () | |
10954 | { | |
10955 | return $ac_func (); | |
10956 | ; | |
10957 | return 0; | |
10958 | } | |
72b2cb61 | 10959 | _ACEOF |
d0191583 JM |
10960 | rm -f conftest.$ac_objext conftest$ac_exeext |
10961 | if { (ac_try="$ac_link" | |
10962 | case "(($ac_try" in | |
10963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10964 | *) ac_try_echo=$ac_try;; | |
10965 | esac | |
ec6a6fbe AK |
10966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10967 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10968 | (eval "$ac_link") 2>conftest.er1 |
10969 | ac_status=$? | |
10970 | grep -v '^ *+' conftest.er1 >conftest.err | |
10971 | rm -f conftest.er1 | |
10972 | cat conftest.err >&5 | |
ec6a6fbe | 10973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10974 | (exit $ac_status); } && { |
10975 | test -z "$ac_c_werror_flag" || | |
10976 | test ! -s conftest.err | |
ec6a6fbe AK |
10977 | } && test -s conftest$ac_exeext && { |
10978 | test "$cross_compiling" = yes || | |
10979 | $as_test_x conftest$ac_exeext | |
10980 | }; then | |
d0191583 JM |
10981 | eval "$as_ac_var=yes" |
10982 | else | |
ec6a6fbe | 10983 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10984 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10985 | |
d0191583 | 10986 | eval "$as_ac_var=no" |
ad6254c5 AK |
10987 | fi |
10988 | ||
ec6a6fbe | 10989 | rm -rf conftest.dSYM |
d0191583 JM |
10990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10991 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 10992 | fi |
ec6a6fbe AK |
10993 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10994 | $as_echo "$as_val"'` | |
10995 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10996 | $as_echo "$ac_res" >&6; } | |
10997 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10998 | $as_echo "$as_val"'` | |
10999 | if test "x$as_val" = x""yes; then | |
d0191583 | 11000 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11001 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 11002 | _ACEOF |
7a197a62 | 11003 | |
ec6a6fbe AK |
11004 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
11005 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 11006 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 11007 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11008 | else |
d0191583 JM |
11009 | cat >conftest.$ac_ext <<_ACEOF |
11010 | /* confdefs.h. */ | |
11011 | _ACEOF | |
11012 | cat confdefs.h >>conftest.$ac_ext | |
11013 | cat >>conftest.$ac_ext <<_ACEOF | |
11014 | /* end confdefs.h. */ | |
11015 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
11016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11017 | #define _doprnt innocuous__doprnt | |
7a197a62 | 11018 | |
d0191583 JM |
11019 | /* System header to define __stub macros and hopefully few prototypes, |
11020 | which can conflict with char _doprnt (); below. | |
11021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11022 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 11023 | |
d0191583 JM |
11024 | #ifdef __STDC__ |
11025 | # include <limits.h> | |
11026 | #else | |
11027 | # include <assert.h> | |
11028 | #endif | |
72b2cb61 | 11029 | |
d0191583 JM |
11030 | #undef _doprnt |
11031 | ||
11032 | /* Override any GCC internal prototype to avoid an error. | |
11033 | Use char because int might match the return type of a GCC | |
11034 | builtin and then its argument prototype would still apply. */ | |
11035 | #ifdef __cplusplus | |
11036 | extern "C" | |
11037 | #endif | |
11038 | char _doprnt (); | |
11039 | /* The GNU C library defines this for functions which it implements | |
11040 | to always fail with ENOSYS. Some functions are actually named | |
11041 | something starting with __ and the normal name is an alias. */ | |
11042 | #if defined __stub__doprnt || defined __stub____doprnt | |
11043 | choke me | |
11044 | #endif | |
11045 | ||
11046 | int | |
11047 | main () | |
11048 | { | |
11049 | return _doprnt (); | |
11050 | ; | |
11051 | return 0; | |
11052 | } | |
72b2cb61 | 11053 | _ACEOF |
d0191583 JM |
11054 | rm -f conftest.$ac_objext conftest$ac_exeext |
11055 | if { (ac_try="$ac_link" | |
11056 | case "(($ac_try" in | |
11057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11058 | *) ac_try_echo=$ac_try;; | |
11059 | esac | |
ec6a6fbe AK |
11060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11061 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
11062 | (eval "$ac_link") 2>conftest.er1 |
11063 | ac_status=$? | |
11064 | grep -v '^ *+' conftest.er1 >conftest.err | |
11065 | rm -f conftest.er1 | |
11066 | cat conftest.err >&5 | |
ec6a6fbe | 11067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
11068 | (exit $ac_status); } && { |
11069 | test -z "$ac_c_werror_flag" || | |
11070 | test ! -s conftest.err | |
ec6a6fbe AK |
11071 | } && test -s conftest$ac_exeext && { |
11072 | test "$cross_compiling" = yes || | |
11073 | $as_test_x conftest$ac_exeext | |
11074 | }; then | |
d0191583 JM |
11075 | ac_cv_func__doprnt=yes |
11076 | else | |
ec6a6fbe | 11077 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11078 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11079 | |
d0191583 | 11080 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11081 | fi |
11082 | ||
ec6a6fbe | 11083 | rm -rf conftest.dSYM |
d0191583 JM |
11084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11085 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11086 | fi |
ec6a6fbe AK |
11087 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11088 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11089 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11090 | |
d0191583 JM |
11091 | cat >>confdefs.h <<\_ACEOF |
11092 | #define HAVE_DOPRNT 1 | |
11093 | _ACEOF | |
ad6254c5 | 11094 | |
7a197a62 AK |
11095 | fi |
11096 | ||
d0191583 JM |
11097 | fi |
11098 | done | |
8b1a3214 | 11099 | |
ad6254c5 | 11100 | |
7a197a62 | 11101 | |
9c961554 | 11102 | ################################################################################ |
ec6a6fbe AK |
11103 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11104 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11105 | # Check whether --enable-static_link was given. |
11106 | if test "${enable_static_link+set}" = set; then | |
11107 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11108 | else | |
11109 | STATIC_LINK=no | |
11110 | fi | |
11111 | ||
ec6a6fbe AK |
11112 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11113 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11114 | |
d0191583 | 11115 | ################################################################################ |
ad6254c5 | 11116 | |
ad6254c5 AK |
11117 | |
11118 | ################################################################################ | |
ec6a6fbe AK |
11119 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11120 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11121 | |
11122 | # Check whether --with-user was given. | |
11123 | if test "${with_user+set}" = set; then | |
71082be4 | 11124 | withval=$with_user; OWNER=$withval |
7a197a62 AK |
11125 | fi |
11126 | ||
ec6a6fbe AK |
11127 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11128 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11129 | |
d0191583 | 11130 | if test x$OWNER != x; then |
23b059e7 | 11131 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11132 | fi |
11133 | ||
11134 | ################################################################################ | |
ec6a6fbe AK |
11135 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11136 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11137 | |
d0191583 JM |
11138 | # Check whether --with-group was given. |
11139 | if test "${with_group+set}" = set; then | |
71082be4 | 11140 | withval=$with_group; GROUP=$withval |
7a197a62 AK |
11141 | fi |
11142 | ||
ec6a6fbe AK |
11143 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11144 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11145 | |
11146 | if test x$GROUP != x; then | |
23b059e7 | 11147 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11148 | fi |
ad6254c5 | 11149 | |
24bbc4d7 | 11150 | ################################################################################ |
ec6a6fbe AK |
11151 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11152 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11153 | |
11154 | ||
11155 | # Check whether --with-device-uid was given. | |
11156 | if test "${with_device_uid+set}" = set; then | |
71082be4 | 11157 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
24bbc4d7 | 11158 | else |
71082be4 | 11159 | DM_DEVICE_UID=0 |
24bbc4d7 AK |
11160 | fi |
11161 | ||
ec6a6fbe AK |
11162 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11163 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11164 | |
11165 | ################################################################################ | |
ec6a6fbe AK |
11166 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11167 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11168 | |
11169 | ||
11170 | # Check whether --with-device-gid was given. | |
11171 | if test "${with_device_gid+set}" = set; then | |
71082be4 | 11172 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
24bbc4d7 | 11173 | else |
71082be4 | 11174 | DM_DEVICE_GID=0 |
24bbc4d7 AK |
11175 | fi |
11176 | ||
ec6a6fbe AK |
11177 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11178 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11179 | |
93bd259b | 11180 | ################################################################################ |
ec6a6fbe AK |
11181 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11182 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11183 | |
11184 | ||
11185 | # Check whether --with-device-mode was given. | |
11186 | if test "${with_device_mode+set}" = set; then | |
71082be4 | 11187 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
93bd259b | 11188 | else |
71082be4 | 11189 | DM_DEVICE_MODE=0600 |
93bd259b AK |
11190 | fi |
11191 | ||
ec6a6fbe AK |
11192 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11193 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11194 | |
ad6254c5 | 11195 | ################################################################################ |
ec6a6fbe AK |
11196 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11197 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11198 | # Check whether --enable-lvm1_fallback was given. |
11199 | if test "${enable_lvm1_fallback+set}" = set; then | |
11200 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11201 | else | |
11202 | LVM1_FALLBACK=no | |
7a197a62 AK |
11203 | fi |
11204 | ||
ec6a6fbe AK |
11205 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11206 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11207 | |
d0191583 | 11208 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11209 | |
11210 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11211 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11212 | _ACEOF |
11213 | ||
ad6254c5 AK |
11214 | fi |
11215 | ||
11216 | ################################################################################ | |
ec6a6fbe AK |
11217 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11218 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11219 | |
11220 | # Check whether --with-lvm1 was given. | |
11221 | if test "${with_lvm1+set}" = set; then | |
71082be4 | 11222 | withval=$with_lvm1; LVM1=$withval |
d0191583 | 11223 | else |
71082be4 | 11224 | LVM1=internal |
7a197a62 AK |
11225 | fi |
11226 | ||
ec6a6fbe AK |
11227 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11228 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11229 | |
d0191583 | 11230 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11231 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11232 | " >&5 |
ec6a6fbe | 11233 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11234 | " >&2;} |
11235 | { (exit 1); exit 1; }; } | |
11236 | fi; | |
11237 | ||
11238 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11239 | |
11240 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11241 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11242 | _ACEOF |
11243 | ||
ad6254c5 AK |
11244 | fi |
11245 | ||
11246 | ################################################################################ | |
ec6a6fbe AK |
11247 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11248 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11249 | |
11250 | # Check whether --with-pool was given. | |
11251 | if test "${with_pool+set}" = set; then | |
71082be4 | 11252 | withval=$with_pool; POOL=$withval |
ad6254c5 | 11253 | else |
71082be4 | 11254 | POOL=internal |
7a197a62 AK |
11255 | fi |
11256 | ||
ec6a6fbe AK |
11257 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11258 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11259 | |
d0191583 | 11260 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11261 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11262 | " >&5 |
ec6a6fbe | 11263 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11264 | " >&2;} |
11265 | { (exit 1); exit 1; }; } | |
11266 | fi; | |
7a197a62 | 11267 | |
d0191583 JM |
11268 | if test x$POOL = xinternal; then |
11269 | ||
11270 | cat >>confdefs.h <<\_ACEOF | |
11271 | #define POOL_INTERNAL 1 | |
11272 | _ACEOF | |
11273 | ||
11274 | fi | |
ad6254c5 | 11275 | |
06f62ad1 | 11276 | ################################################################################ |
ec6a6fbe AK |
11277 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11278 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11279 | |
11280 | # Check whether --with-cluster was given. | |
11281 | if test "${with_cluster+set}" = set; then | |
71082be4 | 11282 | withval=$with_cluster; CLUSTER=$withval |
7a197a62 AK |
11283 | fi |
11284 | ||
ec6a6fbe AK |
11285 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11286 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11287 | |
d0191583 | 11288 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11289 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11290 | " >&5 |
ec6a6fbe | 11291 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11292 | " >&2;} |
11293 | { (exit 1); exit 1; }; } | |
d0191583 | 11294 | fi; |
06f62ad1 | 11295 | |
d0191583 | 11296 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11297 | |
11298 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11299 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11300 | _ACEOF |
11301 | ||
15d91f5a | 11302 | fi |
ad6254c5 AK |
11303 | |
11304 | ################################################################################ | |
ec6a6fbe AK |
11305 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11306 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11307 | |
d0191583 JM |
11308 | # Check whether --with-snapshots was given. |
11309 | if test "${with_snapshots+set}" = set; then | |
71082be4 | 11310 | withval=$with_snapshots; SNAPSHOTS=$withval |
d0191583 | 11311 | else |
71082be4 | 11312 | SNAPSHOTS=internal |
ad6254c5 AK |
11313 | fi |
11314 | ||
ec6a6fbe AK |
11315 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11316 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11317 | |
d0191583 | 11318 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11319 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11320 | " >&5 |
ec6a6fbe | 11321 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11322 | " >&2;} |
11323 | { (exit 1); exit 1; }; } | |
11324 | fi; | |
11325 | ||
11326 | if test x$SNAPSHOTS = xinternal; then | |
11327 | ||
11328 | cat >>confdefs.h <<\_ACEOF | |
11329 | #define SNAPSHOT_INTERNAL 1 | |
11330 | _ACEOF | |
ad6254c5 | 11331 | |
ad6254c5 | 11332 | fi |
7a197a62 | 11333 | |
d0191583 | 11334 | ################################################################################ |
ec6a6fbe AK |
11335 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11336 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11337 | |
11338 | # Check whether --with-mirrors was given. | |
11339 | if test "${with_mirrors+set}" = set; then | |
71082be4 | 11340 | withval=$with_mirrors; MIRRORS=$withval |
d0191583 | 11341 | else |
71082be4 | 11342 | MIRRORS=internal |
ad6254c5 | 11343 | fi |
ad6254c5 | 11344 | |
ec6a6fbe AK |
11345 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11346 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11347 | |
d0191583 | 11348 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11349 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11350 | " >&5 |
ec6a6fbe | 11351 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11352 | " >&2;} |
11353 | { (exit 1); exit 1; }; } | |
11354 | fi; | |
ad6254c5 | 11355 | |
d0191583 | 11356 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11357 | |
d0191583 JM |
11358 | cat >>confdefs.h <<\_ACEOF |
11359 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11360 | _ACEOF |
8a2fc586 | 11361 | |
d0191583 | 11362 | fi |
8a2fc586 | 11363 | |
8fea97b7 ZK |
11364 | ################################################################################ |
11365 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11366 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11367 | ||
11368 | # Check whether --with-replicators was given. | |
11369 | if test "${with_replicators+set}" = set; then | |
11370 | withval=$with_replicators; REPLICATORS=$withval | |
11371 | else | |
71082be4 | 11372 | REPLICATORS=none |
8fea97b7 ZK |
11373 | fi |
11374 | ||
11375 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11376 | $as_echo "$REPLICATORS" >&6; } | |
11377 | ||
11378 | case "$REPLICATORS" in | |
11379 | none|shared) ;; | |
11380 | internal) | |
11381 | cat >>confdefs.h <<\_ACEOF | |
11382 | #define REPLICATOR_INTERNAL 1 | |
11383 | _ACEOF | |
11384 | ;; | |
11385 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11386 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11387 | { (exit 1); exit 1; }; } ;; | |
11388 | esac | |
11389 | ||
d0191583 | 11390 | ################################################################################ |
ec6a6fbe AK |
11391 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11392 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11393 | # Check whether --enable-readline was given. |
11394 | if test "${enable_readline+set}" = set; then | |
11395 | enableval=$enable_readline; READLINE=$enableval | |
11396 | else | |
06e459df | 11397 | READLINE=maybe |
d0191583 | 11398 | fi |
8a2fc586 | 11399 | |
ec6a6fbe AK |
11400 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11401 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11402 | |
d0191583 | 11403 | ################################################################################ |
ec6a6fbe AK |
11404 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11405 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11406 | # Check whether --enable-realtime was given. |
11407 | if test "${enable_realtime+set}" = set; then | |
11408 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11409 | fi |
ad6254c5 | 11410 | |
ec6a6fbe AK |
11411 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11412 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
11413 | |
11414 | ################################################################################ | |
90c80887 | 11415 | pkg_config_init() { |
e2997b73 AK |
11416 | |
11417 | ||
71082be4 ZK |
11418 | |
11419 | ||
11420 | ||
11421 | ||
e2997b73 AK |
11422 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
11423 | if test -n "$ac_tool_prefix"; then | |
11424 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11425 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11426 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11427 | $as_echo_n "checking for $ac_word... " >&6; } | |
11428 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11429 | $as_echo_n "(cached) " >&6 | |
11430 | else | |
11431 | case $PKG_CONFIG in | |
11432 | [\\/]* | ?:[\\/]*) | |
11433 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11434 | ;; | |
11435 | *) | |
11436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11437 | for as_dir in $PATH | |
11438 | do | |
11439 | IFS=$as_save_IFS | |
11440 | test -z "$as_dir" && as_dir=. | |
11441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11443 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11444 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11445 | break 2 | |
11446 | fi | |
11447 | done | |
11448 | done | |
11449 | IFS=$as_save_IFS | |
11450 | ||
11451 | ;; | |
11452 | esac | |
11453 | fi | |
11454 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11455 | if test -n "$PKG_CONFIG"; then | |
11456 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11457 | $as_echo "$PKG_CONFIG" >&6; } | |
11458 | else | |
11459 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11460 | $as_echo "no" >&6; } | |
11461 | fi | |
11462 | ||
11463 | ||
11464 | fi | |
11465 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11466 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11467 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11468 | set dummy pkg-config; ac_word=$2 | |
11469 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11470 | $as_echo_n "checking for $ac_word... " >&6; } | |
11471 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11472 | $as_echo_n "(cached) " >&6 | |
11473 | else | |
11474 | case $ac_pt_PKG_CONFIG in | |
11475 | [\\/]* | ?:[\\/]*) | |
11476 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11477 | ;; | |
11478 | *) | |
11479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11480 | for as_dir in $PATH | |
11481 | do | |
11482 | IFS=$as_save_IFS | |
11483 | test -z "$as_dir" && as_dir=. | |
11484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11486 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11487 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11488 | break 2 | |
11489 | fi | |
11490 | done | |
11491 | done | |
11492 | IFS=$as_save_IFS | |
11493 | ||
11494 | ;; | |
11495 | esac | |
11496 | fi | |
11497 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11498 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11499 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11500 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11501 | else | |
11502 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11503 | $as_echo "no" >&6; } | |
11504 | fi | |
11505 | ||
11506 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11507 | PKG_CONFIG="" | |
11508 | else | |
11509 | case $cross_compiling:$ac_tool_warned in | |
11510 | yes:) | |
11511 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11512 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11513 | ac_tool_warned=yes ;; | |
11514 | esac | |
11515 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11516 | fi | |
11517 | else | |
11518 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11519 | fi | |
11520 | ||
11521 | fi | |
11522 | if test -n "$PKG_CONFIG"; then | |
11523 | _pkg_min_version=0.9.0 | |
11524 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11525 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11526 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11527 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11528 | $as_echo "yes" >&6; } | |
11529 | else | |
11530 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11531 | $as_echo "no" >&6; } | |
11532 | PKG_CONFIG="" | |
11533 | fi | |
e2997b73 AK |
11534 | fi |
11535 | ||
11536 | pkg_failed=no | |
a946372e AK |
11537 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11538 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11539 | |
a946372e AK |
11540 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11541 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11542 | elif test -n "$PKG_CONFIG"; then |
11543 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11544 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11545 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11546 | ac_status=$? |
11547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11548 | (exit $ac_status); }; then | |
a946372e | 11549 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11550 | else |
11551 | pkg_failed=yes | |
11552 | fi | |
11553 | else | |
11554 | pkg_failed=untried | |
11555 | fi | |
a946372e AK |
11556 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11557 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11558 | elif test -n "$PKG_CONFIG"; then |
11559 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11560 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11561 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11562 | ac_status=$? |
11563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11564 | (exit $ac_status); }; then | |
a946372e | 11565 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11566 | else |
11567 | pkg_failed=yes | |
11568 | fi | |
11569 | else | |
11570 | pkg_failed=untried | |
11571 | fi | |
11572 | ||
11573 | ||
11574 | ||
11575 | if test $pkg_failed = yes; then | |
71082be4 ZK |
11576 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11577 | $as_echo "no" >&6; } | |
e2997b73 AK |
11578 | |
11579 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11580 | _pkg_short_errors_supported=yes | |
11581 | else | |
11582 | _pkg_short_errors_supported=no | |
11583 | fi | |
11584 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11585 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11586 | else |
a946372e | 11587 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11588 | fi |
11589 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11590 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11591 | |
71082be4 | 11592 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
a946372e | 11593 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11594 | elif test $pkg_failed = untried; then |
71082be4 ZK |
11595 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11596 | $as_echo "no" >&6; } | |
a946372e AK |
11597 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11598 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11599 | else |
a946372e AK |
11600 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11601 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11602 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11603 | $as_echo "yes" >&6; } | |
71082be4 | 11604 | |
e2997b73 | 11605 | fi |
90c80887 AK |
11606 | PKGCONFIG_INIT=1 |
11607 | } | |
11608 | ||
11609 | ################################################################################ | |
11610 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11611 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11612 | ||
11613 | # Check whether --with-clvmd was given. | |
11614 | if test "${with_clvmd+set}" = set; then | |
71082be4 | 11615 | withval=$with_clvmd; CLVMD=$withval |
90c80887 | 11616 | else |
71082be4 | 11617 | CLVMD=none |
90c80887 AK |
11618 | fi |
11619 | ||
11620 | if test x$CLVMD = xyes; then | |
11621 | CLVMD=all | |
11622 | fi | |
11623 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11624 | $as_echo "$CLVMD" >&6; } | |
11625 | ||
11626 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11627 | CLUSTER=internal | |
11628 | fi | |
11629 | ||
11630 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
11631 | pkg_config_init | |
11632 | fi | |
11633 | ||
11634 | ||
11635 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11636 | BUILDGULM=yes | |
11637 | fi | |
11638 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11639 | BUILDCOROSYNC=yes | |
11640 | fi | |
11641 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11642 | BUILDOPENAIS=yes | |
11643 | fi | |
11644 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11645 | BUILDCMAN=yes | |
11646 | fi | |
11647 | ||
11648 | if test x$BUILDGULM = xyes; then | |
11649 | if test x$BUILDCOROSYNC = xyes || \ | |
11650 | test x$BUILDOPENAIS = xyes; then | |
11651 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11652 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11653 | { (exit 1); exit 1; }; } | |
11654 | fi | |
a946372e | 11655 | fi |
e2997b73 | 11656 | |
a946372e AK |
11657 | soft_bailout() { |
11658 | NOTFOUND=1 | |
11659 | } | |
e2997b73 | 11660 | |
a946372e AK |
11661 | hard_bailout() { |
11662 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11663 | $as_echo "$as_me: error: bailing out" >&2;} | |
11664 | { (exit 1); exit 1; }; } | |
11665 | } | |
11666 | ||
11667 | if test x$CLVMD = xall; then | |
11668 | bailout=soft_bailout | |
11669 | BUILDGULM=yes | |
11670 | BUILDCMAN=yes | |
11671 | BUILDCOROSYNC=yes | |
11672 | BUILDOPENAIS=yes | |
e2997b73 | 11673 | else |
a946372e | 11674 | bailout=hard_bailout |
e2997b73 | 11675 | fi |
a946372e AK |
11676 | |
11677 | check_lib_no_libs() { | |
11678 | lib_no_libs_arg1=$1 | |
11679 | shift | |
11680 | lib_no_libs_arg2=$1 | |
11681 | shift | |
11682 | lib_no_libs_args=$@ | |
11683 | ||
11684 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11685 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11686 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11687 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11688 | $as_echo_n "(cached) " >&6 | |
11689 | else | |
11690 | ac_check_lib_save_LIBS=$LIBS | |
11691 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11692 | cat >conftest.$ac_ext <<_ACEOF | |
11693 | /* confdefs.h. */ | |
11694 | _ACEOF | |
11695 | cat confdefs.h >>conftest.$ac_ext | |
11696 | cat >>conftest.$ac_ext <<_ACEOF | |
11697 | /* end confdefs.h. */ | |
11698 | ||
11699 | /* Override any GCC internal prototype to avoid an error. | |
11700 | Use char because int might match the return type of a GCC | |
11701 | builtin and then its argument prototype would still apply. */ | |
11702 | #ifdef __cplusplus | |
11703 | extern "C" | |
11704 | #endif | |
11705 | char $lib_no_libs_arg2 (); | |
11706 | int | |
11707 | main () | |
11708 | { | |
11709 | return $lib_no_libs_arg2 (); | |
11710 | ; | |
11711 | return 0; | |
11712 | } | |
11713 | _ACEOF | |
11714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11715 | if { (ac_try="$ac_link" | |
11716 | case "(($ac_try" in | |
11717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11718 | *) ac_try_echo=$ac_try;; | |
11719 | esac | |
11720 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11721 | $as_echo "$ac_try_echo") >&5 | |
11722 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11723 | ac_status=$? |
a946372e AK |
11724 | grep -v '^ *+' conftest.er1 >conftest.err |
11725 | rm -f conftest.er1 | |
11726 | cat conftest.err >&5 | |
e2997b73 | 11727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11728 | (exit $ac_status); } && { |
11729 | test -z "$ac_c_werror_flag" || | |
11730 | test ! -s conftest.err | |
11731 | } && test -s conftest$ac_exeext && { | |
11732 | test "$cross_compiling" = yes || | |
11733 | $as_test_x conftest$ac_exeext | |
11734 | }; then | |
11735 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11736 | else |
a946372e AK |
11737 | $as_echo "$as_me: failed program was:" >&5 |
11738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11739 | |
a946372e AK |
11740 | eval "$as_ac_Lib=no" |
11741 | fi | |
e2997b73 | 11742 | |
a946372e AK |
11743 | rm -rf conftest.dSYM |
11744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11745 | conftest$ac_exeext conftest.$ac_ext | |
11746 | LIBS=$ac_check_lib_save_LIBS | |
11747 | fi | |
11748 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11749 | $as_echo "$as_val"'` | |
11750 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11751 | $as_echo "$ac_res" >&6; } | |
11752 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11753 | $as_echo "$as_val"'` | |
11754 | if test "x$as_val" = x""yes; then | |
11755 | cat >>confdefs.h <<_ACEOF | |
11756 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11757 | _ACEOF | |
e2997b73 | 11758 | |
a946372e | 11759 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11760 | |
e2997b73 | 11761 | else |
a946372e | 11762 | $bailout |
e2997b73 | 11763 | fi |
e2997b73 | 11764 | |
a946372e AK |
11765 | LIBS=$ac_check_lib_save_LIBS |
11766 | } | |
11767 | ||
11768 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11769 | |
11770 | pkg_failed=no | |
a946372e AK |
11771 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11772 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11773 | |
a946372e AK |
11774 | if test -n "$CCS_CFLAGS"; then |
11775 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11776 | elif test -n "$PKG_CONFIG"; then |
11777 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11778 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11779 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11780 | ac_status=$? |
11781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11782 | (exit $ac_status); }; then | |
a946372e | 11783 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11784 | else |
11785 | pkg_failed=yes | |
11786 | fi | |
11787 | else | |
11788 | pkg_failed=untried | |
11789 | fi | |
a946372e AK |
11790 | if test -n "$CCS_LIBS"; then |
11791 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11792 | elif test -n "$PKG_CONFIG"; then |
11793 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11794 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11795 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11796 | ac_status=$? |
11797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11798 | (exit $ac_status); }; then | |
a946372e | 11799 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11800 | else |
11801 | pkg_failed=yes | |
11802 | fi | |
11803 | else | |
11804 | pkg_failed=untried | |
11805 | fi | |
11806 | ||
11807 | ||
11808 | ||
11809 | if test $pkg_failed = yes; then | |
71082be4 ZK |
11810 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11811 | $as_echo "no" >&6; } | |
e2997b73 AK |
11812 | |
11813 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11814 | _pkg_short_errors_supported=yes | |
11815 | else | |
11816 | _pkg_short_errors_supported=no | |
11817 | fi | |
11818 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11819 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11820 | else |
a946372e | 11821 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11822 | fi |
11823 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11824 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11825 | |
71082be4 | 11826 | NOTFOUND=0 |
e2997b73 | 11827 | |
a946372e AK |
11828 | for ac_header in ccs.h |
11829 | do | |
11830 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11831 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11832 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11833 | $as_echo_n "checking for $ac_header... " >&6; } | |
11834 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11835 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11836 | fi |
a946372e AK |
11837 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11838 | $as_echo "$as_val"'` | |
11839 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11840 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11841 | else |
a946372e AK |
11842 | # Is the header compilable? |
11843 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11844 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11845 | cat >conftest.$ac_ext <<_ACEOF | |
11846 | /* confdefs.h. */ | |
11847 | _ACEOF | |
11848 | cat confdefs.h >>conftest.$ac_ext | |
11849 | cat >>conftest.$ac_ext <<_ACEOF | |
11850 | /* end confdefs.h. */ | |
11851 | $ac_includes_default | |
11852 | #include <$ac_header> | |
11853 | _ACEOF | |
11854 | rm -f conftest.$ac_objext | |
11855 | if { (ac_try="$ac_compile" | |
11856 | case "(($ac_try" in | |
11857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11858 | *) ac_try_echo=$ac_try;; | |
11859 | esac | |
11860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11861 | $as_echo "$ac_try_echo") >&5 | |
11862 | (eval "$ac_compile") 2>conftest.er1 | |
11863 | ac_status=$? | |
11864 | grep -v '^ *+' conftest.er1 >conftest.err | |
11865 | rm -f conftest.er1 | |
11866 | cat conftest.err >&5 | |
11867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11868 | (exit $ac_status); } && { | |
11869 | test -z "$ac_c_werror_flag" || | |
11870 | test ! -s conftest.err | |
11871 | } && test -s conftest.$ac_objext; then | |
11872 | ac_header_compiler=yes | |
11873 | else | |
11874 | $as_echo "$as_me: failed program was:" >&5 | |
11875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11876 | |
a946372e | 11877 | ac_header_compiler=no |
d0191583 JM |
11878 | fi |
11879 | ||
a946372e AK |
11880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11881 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11882 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11883 | |
a946372e AK |
11884 | # Is the header present? |
11885 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11886 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11887 | cat >conftest.$ac_ext <<_ACEOF | |
11888 | /* confdefs.h. */ | |
11889 | _ACEOF | |
11890 | cat confdefs.h >>conftest.$ac_ext | |
11891 | cat >>conftest.$ac_ext <<_ACEOF | |
11892 | /* end confdefs.h. */ | |
11893 | #include <$ac_header> | |
11894 | _ACEOF | |
11895 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11896 | case "(($ac_try" in | |
11897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11898 | *) ac_try_echo=$ac_try;; | |
11899 | esac | |
11900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11901 | $as_echo "$ac_try_echo") >&5 | |
11902 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11903 | ac_status=$? | |
11904 | grep -v '^ *+' conftest.er1 >conftest.err | |
11905 | rm -f conftest.er1 | |
11906 | cat conftest.err >&5 | |
11907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11908 | (exit $ac_status); } >/dev/null && { | |
11909 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11910 | test ! -s conftest.err | |
11911 | }; then | |
11912 | ac_header_preproc=yes | |
11913 | else | |
11914 | $as_echo "$as_me: failed program was:" >&5 | |
11915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11916 | ||
11917 | ac_header_preproc=no | |
11918 | fi | |
11919 | ||
11920 | rm -f conftest.err conftest.$ac_ext | |
11921 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11922 | $as_echo "$ac_header_preproc" >&6; } | |
11923 | ||
11924 | # So? What about this header? | |
11925 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11926 | yes:no: ) | |
11927 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11928 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11929 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11930 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11931 | ac_header_preproc=yes | |
11932 | ;; | |
11933 | no:yes:* ) | |
11934 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11935 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11936 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11937 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11938 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11939 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11940 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11941 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11942 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11943 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11944 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11945 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11946 | ||
11947 | ;; | |
11948 | esac | |
11949 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11950 | $as_echo_n "checking for $ac_header... " >&6; } | |
11951 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11952 | $as_echo_n "(cached) " >&6 | |
11953 | else | |
11954 | eval "$as_ac_Header=\$ac_header_preproc" | |
11955 | fi | |
11956 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11957 | $as_echo "$as_val"'` | |
11958 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11959 | $as_echo "$ac_res" >&6; } | |
11960 | ||
11961 | fi | |
11962 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11963 | $as_echo "$as_val"'` | |
11964 | if test "x$as_val" = x""yes; then | |
11965 | cat >>confdefs.h <<_ACEOF | |
11966 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11967 | _ACEOF | |
11968 | ||
11969 | else | |
11970 | $bailout | |
11971 | fi | |
11972 | ||
11973 | done | |
11974 | ||
11975 | check_lib_no_libs ccs ccs_connect | |
11976 | if test $NOTFOUND = 0; then | |
11977 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11978 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11979 | CCS_LIBS="-lccs" | |
11980 | HAVE_CCS=yes | |
11981 | fi | |
11982 | elif test $pkg_failed = untried; then | |
71082be4 ZK |
11983 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11984 | $as_echo "no" >&6; } | |
a946372e AK |
11985 | NOTFOUND=0 |
11986 | ||
11987 | for ac_header in ccs.h | |
11988 | do | |
11989 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11990 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11991 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11992 | $as_echo_n "checking for $ac_header... " >&6; } | |
11993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11994 | $as_echo_n "(cached) " >&6 | |
11995 | fi | |
11996 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11997 | $as_echo "$as_val"'` | |
11998 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11999 | $as_echo "$ac_res" >&6; } | |
12000 | else | |
12001 | # Is the header compilable? | |
12002 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12003 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12004 | cat >conftest.$ac_ext <<_ACEOF | |
12005 | /* confdefs.h. */ | |
12006 | _ACEOF | |
12007 | cat confdefs.h >>conftest.$ac_ext | |
12008 | cat >>conftest.$ac_ext <<_ACEOF | |
12009 | /* end confdefs.h. */ | |
12010 | $ac_includes_default | |
12011 | #include <$ac_header> | |
12012 | _ACEOF | |
12013 | rm -f conftest.$ac_objext | |
12014 | if { (ac_try="$ac_compile" | |
12015 | case "(($ac_try" in | |
12016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12017 | *) ac_try_echo=$ac_try;; | |
12018 | esac | |
12019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12020 | $as_echo "$ac_try_echo") >&5 | |
12021 | (eval "$ac_compile") 2>conftest.er1 | |
12022 | ac_status=$? | |
12023 | grep -v '^ *+' conftest.er1 >conftest.err | |
12024 | rm -f conftest.er1 | |
12025 | cat conftest.err >&5 | |
12026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12027 | (exit $ac_status); } && { | |
12028 | test -z "$ac_c_werror_flag" || | |
12029 | test ! -s conftest.err | |
12030 | } && test -s conftest.$ac_objext; then | |
12031 | ac_header_compiler=yes | |
12032 | else | |
12033 | $as_echo "$as_me: failed program was:" >&5 | |
12034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12035 | ||
12036 | ac_header_compiler=no | |
12037 | fi | |
12038 | ||
12039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12040 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12041 | $as_echo "$ac_header_compiler" >&6; } | |
12042 | ||
12043 | # Is the header present? | |
12044 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12045 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12046 | cat >conftest.$ac_ext <<_ACEOF | |
12047 | /* confdefs.h. */ | |
12048 | _ACEOF | |
12049 | cat confdefs.h >>conftest.$ac_ext | |
12050 | cat >>conftest.$ac_ext <<_ACEOF | |
12051 | /* end confdefs.h. */ | |
12052 | #include <$ac_header> | |
12053 | _ACEOF | |
12054 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12055 | case "(($ac_try" in | |
12056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12057 | *) ac_try_echo=$ac_try;; | |
12058 | esac | |
12059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12060 | $as_echo "$ac_try_echo") >&5 | |
12061 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12062 | ac_status=$? | |
12063 | grep -v '^ *+' conftest.er1 >conftest.err | |
12064 | rm -f conftest.er1 | |
12065 | cat conftest.err >&5 | |
12066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12067 | (exit $ac_status); } >/dev/null && { | |
12068 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12069 | test ! -s conftest.err | |
12070 | }; then | |
12071 | ac_header_preproc=yes | |
12072 | else | |
12073 | $as_echo "$as_me: failed program was:" >&5 | |
12074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12075 | ||
12076 | ac_header_preproc=no | |
12077 | fi | |
12078 | ||
12079 | rm -f conftest.err conftest.$ac_ext | |
12080 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12081 | $as_echo "$ac_header_preproc" >&6; } | |
12082 | ||
12083 | # So? What about this header? | |
12084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12085 | yes:no: ) | |
12086 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12087 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12089 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12090 | ac_header_preproc=yes | |
12091 | ;; | |
12092 | no:yes:* ) | |
12093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12094 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12096 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12098 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12100 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12102 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12104 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12105 | ||
12106 | ;; | |
12107 | esac | |
12108 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12109 | $as_echo_n "checking for $ac_header... " >&6; } | |
12110 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12111 | $as_echo_n "(cached) " >&6 | |
12112 | else | |
12113 | eval "$as_ac_Header=\$ac_header_preproc" | |
12114 | fi | |
12115 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12116 | $as_echo "$as_val"'` | |
12117 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12118 | $as_echo "$ac_res" >&6; } | |
12119 | ||
12120 | fi | |
12121 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12122 | $as_echo "$as_val"'` | |
12123 | if test "x$as_val" = x""yes; then | |
12124 | cat >>confdefs.h <<_ACEOF | |
12125 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12126 | _ACEOF | |
12127 | ||
12128 | else | |
12129 | $bailout | |
12130 | fi | |
12131 | ||
12132 | done | |
12133 | ||
12134 | check_lib_no_libs ccs ccs_connect | |
12135 | if test $NOTFOUND = 0; then | |
12136 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12137 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12138 | CCS_LIBS="-lccs" | |
12139 | HAVE_CCS=yes | |
12140 | fi | |
12141 | else | |
12142 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12143 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12144 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12145 | $as_echo "yes" >&6; } | |
12146 | HAVE_CCS=yes | |
12147 | fi | |
12148 | ||
12149 | pkg_failed=no | |
12150 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12151 | $as_echo_n "checking for GULM... " >&6; } | |
12152 | ||
12153 | if test -n "$GULM_CFLAGS"; then | |
12154 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12155 | elif test -n "$PKG_CONFIG"; then | |
12156 | if test -n "$PKG_CONFIG" && \ | |
12157 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12158 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12159 | ac_status=$? | |
12160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12161 | (exit $ac_status); }; then | |
12162 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12163 | else | |
12164 | pkg_failed=yes | |
12165 | fi | |
12166 | else | |
12167 | pkg_failed=untried | |
12168 | fi | |
12169 | if test -n "$GULM_LIBS"; then | |
12170 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12171 | elif test -n "$PKG_CONFIG"; then | |
12172 | if test -n "$PKG_CONFIG" && \ | |
12173 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12174 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12175 | ac_status=$? | |
12176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12177 | (exit $ac_status); }; then | |
12178 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12179 | else | |
12180 | pkg_failed=yes | |
12181 | fi | |
12182 | else | |
12183 | pkg_failed=untried | |
12184 | fi | |
12185 | ||
12186 | ||
12187 | ||
12188 | if test $pkg_failed = yes; then | |
71082be4 ZK |
12189 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12190 | $as_echo "no" >&6; } | |
a946372e AK |
12191 | |
12192 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12193 | _pkg_short_errors_supported=yes | |
12194 | else | |
12195 | _pkg_short_errors_supported=no | |
12196 | fi | |
12197 | if test $_pkg_short_errors_supported = yes; then | |
12198 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12199 | else | |
12200 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12201 | fi | |
12202 | # Put the nasty error message in config.log where it belongs | |
12203 | echo "$GULM_PKG_ERRORS" >&5 | |
12204 | ||
71082be4 | 12205 | NOTFOUND=0 |
a946372e AK |
12206 | |
12207 | for ac_header in libgulm.h | |
12208 | do | |
12209 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12210 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12211 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12212 | $as_echo_n "checking for $ac_header... " >&6; } | |
12213 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12214 | $as_echo_n "(cached) " >&6 | |
12215 | fi | |
12216 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12217 | $as_echo "$as_val"'` | |
12218 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12219 | $as_echo "$ac_res" >&6; } | |
12220 | else | |
12221 | # Is the header compilable? | |
12222 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12223 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12224 | cat >conftest.$ac_ext <<_ACEOF | |
12225 | /* confdefs.h. */ | |
12226 | _ACEOF | |
12227 | cat confdefs.h >>conftest.$ac_ext | |
12228 | cat >>conftest.$ac_ext <<_ACEOF | |
12229 | /* end confdefs.h. */ | |
12230 | $ac_includes_default | |
12231 | #include <$ac_header> | |
12232 | _ACEOF | |
12233 | rm -f conftest.$ac_objext | |
12234 | if { (ac_try="$ac_compile" | |
12235 | case "(($ac_try" in | |
12236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12237 | *) ac_try_echo=$ac_try;; | |
12238 | esac | |
12239 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12240 | $as_echo "$ac_try_echo") >&5 | |
12241 | (eval "$ac_compile") 2>conftest.er1 | |
12242 | ac_status=$? | |
12243 | grep -v '^ *+' conftest.er1 >conftest.err | |
12244 | rm -f conftest.er1 | |
12245 | cat conftest.err >&5 | |
12246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12247 | (exit $ac_status); } && { | |
12248 | test -z "$ac_c_werror_flag" || | |
12249 | test ! -s conftest.err | |
12250 | } && test -s conftest.$ac_objext; then | |
12251 | ac_header_compiler=yes | |
12252 | else | |
12253 | $as_echo "$as_me: failed program was:" >&5 | |
12254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12255 | ||
12256 | ac_header_compiler=no | |
12257 | fi | |
12258 | ||
12259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12260 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12261 | $as_echo "$ac_header_compiler" >&6; } | |
12262 | ||
12263 | # Is the header present? | |
12264 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12265 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12266 | cat >conftest.$ac_ext <<_ACEOF | |
12267 | /* confdefs.h. */ | |
12268 | _ACEOF | |
12269 | cat confdefs.h >>conftest.$ac_ext | |
12270 | cat >>conftest.$ac_ext <<_ACEOF | |
12271 | /* end confdefs.h. */ | |
12272 | #include <$ac_header> | |
12273 | _ACEOF | |
12274 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12275 | case "(($ac_try" in | |
12276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12277 | *) ac_try_echo=$ac_try;; | |
12278 | esac | |
12279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12280 | $as_echo "$ac_try_echo") >&5 | |
12281 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12282 | ac_status=$? | |
12283 | grep -v '^ *+' conftest.er1 >conftest.err | |
12284 | rm -f conftest.er1 | |
12285 | cat conftest.err >&5 | |
12286 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 | (exit $ac_status); } >/dev/null && { | |
12288 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12289 | test ! -s conftest.err | |
12290 | }; then | |
12291 | ac_header_preproc=yes | |
12292 | else | |
12293 | $as_echo "$as_me: failed program was:" >&5 | |
12294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12295 | ||
12296 | ac_header_preproc=no | |
12297 | fi | |
12298 | ||
12299 | rm -f conftest.err conftest.$ac_ext | |
12300 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12301 | $as_echo "$ac_header_preproc" >&6; } | |
12302 | ||
12303 | # So? What about this header? | |
12304 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12305 | yes:no: ) | |
12306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12307 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12309 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12310 | ac_header_preproc=yes | |
12311 | ;; | |
12312 | no:yes:* ) | |
12313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12314 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12315 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12316 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12317 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12318 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12319 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12320 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12321 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12322 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12323 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12324 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12325 | ||
12326 | ;; | |
12327 | esac | |
12328 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12329 | $as_echo_n "checking for $ac_header... " >&6; } | |
12330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12331 | $as_echo_n "(cached) " >&6 | |
12332 | else | |
12333 | eval "$as_ac_Header=\$ac_header_preproc" | |
12334 | fi | |
12335 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12336 | $as_echo "$as_val"'` | |
12337 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12338 | $as_echo "$ac_res" >&6; } | |
12339 | ||
12340 | fi | |
12341 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12342 | $as_echo "$as_val"'` | |
12343 | if test "x$as_val" = x""yes; then | |
12344 | cat >>confdefs.h <<_ACEOF | |
12345 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12346 | _ACEOF | |
12347 | ||
12348 | else | |
12349 | $bailout | |
12350 | fi | |
12351 | ||
12352 | done | |
12353 | ||
12354 | check_lib_no_libs gulm lg_core_login | |
12355 | if test $NOTFOUND = 0; then | |
12356 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12357 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12358 | GULM_LIBS="-lgulm" | |
12359 | HAVE_GULM=yes | |
12360 | fi | |
12361 | elif test $pkg_failed = untried; then | |
71082be4 ZK |
12362 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12363 | $as_echo "no" >&6; } | |
a946372e AK |
12364 | NOTFOUND=0 |
12365 | ||
12366 | for ac_header in libgulm.h | |
12367 | do | |
12368 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12370 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12371 | $as_echo_n "checking for $ac_header... " >&6; } | |
12372 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12373 | $as_echo_n "(cached) " >&6 | |
12374 | fi | |
12375 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12376 | $as_echo "$as_val"'` | |
12377 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12378 | $as_echo "$ac_res" >&6; } | |
12379 | else | |
12380 | # Is the header compilable? | |
12381 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12382 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12383 | cat >conftest.$ac_ext <<_ACEOF | |
12384 | /* confdefs.h. */ | |
12385 | _ACEOF | |
12386 | cat confdefs.h >>conftest.$ac_ext | |
12387 | cat >>conftest.$ac_ext <<_ACEOF | |
12388 | /* end confdefs.h. */ | |
12389 | $ac_includes_default | |
12390 | #include <$ac_header> | |
12391 | _ACEOF | |
12392 | rm -f conftest.$ac_objext | |
12393 | if { (ac_try="$ac_compile" | |
12394 | case "(($ac_try" in | |
12395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12396 | *) ac_try_echo=$ac_try;; | |
12397 | esac | |
12398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12399 | $as_echo "$ac_try_echo") >&5 | |
12400 | (eval "$ac_compile") 2>conftest.er1 | |
12401 | ac_status=$? | |
12402 | grep -v '^ *+' conftest.er1 >conftest.err | |
12403 | rm -f conftest.er1 | |
12404 | cat conftest.err >&5 | |
12405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12406 | (exit $ac_status); } && { | |
12407 | test -z "$ac_c_werror_flag" || | |
12408 | test ! -s conftest.err | |
12409 | } && test -s conftest.$ac_objext; then | |
12410 | ac_header_compiler=yes | |
12411 | else | |
12412 | $as_echo "$as_me: failed program was:" >&5 | |
12413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12414 | ||
12415 | ac_header_compiler=no | |
12416 | fi | |
12417 | ||
12418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12419 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12420 | $as_echo "$ac_header_compiler" >&6; } | |
12421 | ||
12422 | # Is the header present? | |
12423 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12424 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12425 | cat >conftest.$ac_ext <<_ACEOF | |
12426 | /* confdefs.h. */ | |
12427 | _ACEOF | |
12428 | cat confdefs.h >>conftest.$ac_ext | |
12429 | cat >>conftest.$ac_ext <<_ACEOF | |
12430 | /* end confdefs.h. */ | |
12431 | #include <$ac_header> | |
12432 | _ACEOF | |
12433 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12434 | case "(($ac_try" in | |
12435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12436 | *) ac_try_echo=$ac_try;; | |
12437 | esac | |
12438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12439 | $as_echo "$ac_try_echo") >&5 | |
12440 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12441 | ac_status=$? | |
12442 | grep -v '^ *+' conftest.er1 >conftest.err | |
12443 | rm -f conftest.er1 | |
12444 | cat conftest.err >&5 | |
12445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12446 | (exit $ac_status); } >/dev/null && { | |
12447 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12448 | test ! -s conftest.err | |
12449 | }; then | |
12450 | ac_header_preproc=yes | |
12451 | else | |
12452 | $as_echo "$as_me: failed program was:" >&5 | |
12453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12454 | ||
12455 | ac_header_preproc=no | |
12456 | fi | |
12457 | ||
12458 | rm -f conftest.err conftest.$ac_ext | |
12459 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12460 | $as_echo "$ac_header_preproc" >&6; } | |
12461 | ||
12462 | # So? What about this header? | |
12463 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12464 | yes:no: ) | |
12465 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12466 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12467 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12468 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12469 | ac_header_preproc=yes | |
12470 | ;; | |
12471 | no:yes:* ) | |
12472 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12473 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12474 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12475 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12476 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12477 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12478 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12479 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12481 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12482 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12483 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12484 | ||
12485 | ;; | |
12486 | esac | |
12487 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12488 | $as_echo_n "checking for $ac_header... " >&6; } | |
12489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12490 | $as_echo_n "(cached) " >&6 | |
12491 | else | |
12492 | eval "$as_ac_Header=\$ac_header_preproc" | |
12493 | fi | |
12494 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12495 | $as_echo "$as_val"'` | |
12496 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12497 | $as_echo "$ac_res" >&6; } | |
12498 | ||
12499 | fi | |
12500 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12501 | $as_echo "$as_val"'` | |
12502 | if test "x$as_val" = x""yes; then | |
12503 | cat >>confdefs.h <<_ACEOF | |
12504 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12505 | _ACEOF | |
12506 | ||
12507 | else | |
12508 | $bailout | |
12509 | fi | |
12510 | ||
12511 | done | |
12512 | ||
12513 | check_lib_no_libs gulm lg_core_login | |
12514 | if test $NOTFOUND = 0; then | |
12515 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12516 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12517 | GULM_LIBS="-lgulm" | |
12518 | HAVE_GULM=yes | |
12519 | fi | |
12520 | else | |
12521 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12522 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12523 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12524 | $as_echo "yes" >&6; } | |
12525 | HAVE_GULM=yes | |
12526 | fi | |
12527 | fi | |
12528 | ||
12529 | if test x$BUILDCMAN = xyes; then | |
12530 | ||
12531 | pkg_failed=no | |
12532 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12533 | $as_echo_n "checking for CMAN... " >&6; } | |
12534 | ||
12535 | if test -n "$CMAN_CFLAGS"; then | |
12536 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12537 | elif test -n "$PKG_CONFIG"; then | |
12538 | if test -n "$PKG_CONFIG" && \ | |
12539 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12540 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12541 | ac_status=$? | |
12542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12543 | (exit $ac_status); }; then | |
12544 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12545 | else | |
12546 | pkg_failed=yes | |
12547 | fi | |
12548 | else | |
12549 | pkg_failed=untried | |
12550 | fi | |
12551 | if test -n "$CMAN_LIBS"; then | |
12552 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12553 | elif test -n "$PKG_CONFIG"; then | |
12554 | if test -n "$PKG_CONFIG" && \ | |
12555 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12556 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12557 | ac_status=$? | |
12558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12559 | (exit $ac_status); }; then | |
12560 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12561 | else | |
12562 | pkg_failed=yes | |
12563 | fi | |
12564 | else | |
12565 | pkg_failed=untried | |
12566 | fi | |
12567 | ||
12568 | ||
12569 | ||
12570 | if test $pkg_failed = yes; then | |
71082be4 ZK |
12571 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12572 | $as_echo "no" >&6; } | |
a946372e AK |
12573 | |
12574 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12575 | _pkg_short_errors_supported=yes | |
12576 | else | |
12577 | _pkg_short_errors_supported=no | |
12578 | fi | |
12579 | if test $_pkg_short_errors_supported = yes; then | |
12580 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12581 | else | |
12582 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12583 | fi | |
12584 | # Put the nasty error message in config.log where it belongs | |
12585 | echo "$CMAN_PKG_ERRORS" >&5 | |
12586 | ||
71082be4 | 12587 | NOTFOUND=0 |
a946372e AK |
12588 | |
12589 | for ac_header in libcman.h | |
12590 | do | |
12591 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12593 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12594 | $as_echo_n "checking for $ac_header... " >&6; } | |
12595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12596 | $as_echo_n "(cached) " >&6 | |
12597 | fi | |
12598 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12599 | $as_echo "$as_val"'` | |
12600 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12601 | $as_echo "$ac_res" >&6; } | |
12602 | else | |
12603 | # Is the header compilable? | |
12604 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12605 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | /* confdefs.h. */ | |
12608 | _ACEOF | |
12609 | cat confdefs.h >>conftest.$ac_ext | |
12610 | cat >>conftest.$ac_ext <<_ACEOF | |
12611 | /* end confdefs.h. */ | |
12612 | $ac_includes_default | |
12613 | #include <$ac_header> | |
12614 | _ACEOF | |
12615 | rm -f conftest.$ac_objext | |
12616 | if { (ac_try="$ac_compile" | |
12617 | case "(($ac_try" in | |
12618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12619 | *) ac_try_echo=$ac_try;; | |
12620 | esac | |
12621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12622 | $as_echo "$ac_try_echo") >&5 | |
12623 | (eval "$ac_compile") 2>conftest.er1 | |
12624 | ac_status=$? | |
12625 | grep -v '^ *+' conftest.er1 >conftest.err | |
12626 | rm -f conftest.er1 | |
12627 | cat conftest.err >&5 | |
12628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12629 | (exit $ac_status); } && { | |
12630 | test -z "$ac_c_werror_flag" || | |
12631 | test ! -s conftest.err | |
12632 | } && test -s conftest.$ac_objext; then | |
12633 | ac_header_compiler=yes | |
12634 | else | |
12635 | $as_echo "$as_me: failed program was:" >&5 | |
12636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12637 | ||
12638 | ac_header_compiler=no | |
12639 | fi | |
12640 | ||
12641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12642 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12643 | $as_echo "$ac_header_compiler" >&6; } | |
12644 | ||
12645 | # Is the header present? | |
12646 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12647 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12648 | cat >conftest.$ac_ext <<_ACEOF | |
12649 | /* confdefs.h. */ | |
12650 | _ACEOF | |
12651 | cat confdefs.h >>conftest.$ac_ext | |
12652 | cat >>conftest.$ac_ext <<_ACEOF | |
12653 | /* end confdefs.h. */ | |
12654 | #include <$ac_header> | |
12655 | _ACEOF | |
12656 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12657 | case "(($ac_try" in | |
12658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12659 | *) ac_try_echo=$ac_try;; | |
12660 | esac | |
12661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12662 | $as_echo "$ac_try_echo") >&5 | |
12663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12664 | ac_status=$? | |
12665 | grep -v '^ *+' conftest.er1 >conftest.err | |
12666 | rm -f conftest.er1 | |
12667 | cat conftest.err >&5 | |
12668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12669 | (exit $ac_status); } >/dev/null && { | |
12670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12671 | test ! -s conftest.err | |
12672 | }; then | |
12673 | ac_header_preproc=yes | |
12674 | else | |
12675 | $as_echo "$as_me: failed program was:" >&5 | |
12676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12677 | ||
12678 | ac_header_preproc=no | |
12679 | fi | |
12680 | ||
12681 | rm -f conftest.err conftest.$ac_ext | |
12682 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12683 | $as_echo "$ac_header_preproc" >&6; } | |
12684 | ||
12685 | # So? What about this header? | |
12686 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12687 | yes:no: ) | |
12688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12689 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12691 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12692 | ac_header_preproc=yes | |
12693 | ;; | |
12694 | no:yes:* ) | |
12695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12696 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12698 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12700 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12702 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12704 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12706 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12707 | ||
12708 | ;; | |
12709 | esac | |
12710 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12711 | $as_echo_n "checking for $ac_header... " >&6; } | |
12712 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12713 | $as_echo_n "(cached) " >&6 | |
12714 | else | |
12715 | eval "$as_ac_Header=\$ac_header_preproc" | |
12716 | fi | |
12717 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12718 | $as_echo "$as_val"'` | |
12719 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12720 | $as_echo "$ac_res" >&6; } | |
12721 | ||
12722 | fi | |
12723 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12724 | $as_echo "$as_val"'` | |
12725 | if test "x$as_val" = x""yes; then | |
12726 | cat >>confdefs.h <<_ACEOF | |
12727 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12728 | _ACEOF | |
12729 | ||
12730 | else | |
12731 | $bailout | |
12732 | fi | |
12733 | ||
12734 | done | |
12735 | ||
12736 | check_lib_no_libs cman cman_init | |
12737 | if test $NOTFOUND = 0; then | |
12738 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12739 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12740 | CMAN_LIBS="-lcman" | |
12741 | HAVE_CMAN=yes | |
12742 | fi | |
12743 | elif test $pkg_failed = untried; then | |
71082be4 ZK |
12744 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12745 | $as_echo "no" >&6; } | |
a946372e AK |
12746 | NOTFOUND=0 |
12747 | ||
12748 | for ac_header in libcman.h | |
12749 | do | |
12750 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12751 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12752 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12753 | $as_echo_n "checking for $ac_header... " >&6; } | |
12754 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12755 | $as_echo_n "(cached) " >&6 | |
12756 | fi | |
12757 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12758 | $as_echo "$as_val"'` | |
12759 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12760 | $as_echo "$ac_res" >&6; } | |
12761 | else | |
12762 | # Is the header compilable? | |
12763 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12764 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12765 | cat >conftest.$ac_ext <<_ACEOF | |
12766 | /* confdefs.h. */ | |
12767 | _ACEOF | |
12768 | cat confdefs.h >>conftest.$ac_ext | |
12769 | cat >>conftest.$ac_ext <<_ACEOF | |
12770 | /* end confdefs.h. */ | |
12771 | $ac_includes_default | |
12772 | #include <$ac_header> | |
12773 | _ACEOF | |
12774 | rm -f conftest.$ac_objext | |
12775 | if { (ac_try="$ac_compile" | |
12776 | case "(($ac_try" in | |
12777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12778 | *) ac_try_echo=$ac_try;; | |
12779 | esac | |
12780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12781 | $as_echo "$ac_try_echo") >&5 | |
12782 | (eval "$ac_compile") 2>conftest.er1 | |
12783 | ac_status=$? | |
12784 | grep -v '^ *+' conftest.er1 >conftest.err | |
12785 | rm -f conftest.er1 | |
12786 | cat conftest.err >&5 | |
12787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12788 | (exit $ac_status); } && { | |
12789 | test -z "$ac_c_werror_flag" || | |
12790 | test ! -s conftest.err | |
12791 | } && test -s conftest.$ac_objext; then | |
12792 | ac_header_compiler=yes | |
12793 | else | |
12794 | $as_echo "$as_me: failed program was:" >&5 | |
12795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12796 | ||
12797 | ac_header_compiler=no | |
12798 | fi | |
12799 | ||
12800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12801 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12802 | $as_echo "$ac_header_compiler" >&6; } | |
12803 | ||
12804 | # Is the header present? | |
12805 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12806 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12807 | cat >conftest.$ac_ext <<_ACEOF | |
12808 | /* confdefs.h. */ | |
12809 | _ACEOF | |
12810 | cat confdefs.h >>conftest.$ac_ext | |
12811 | cat >>conftest.$ac_ext <<_ACEOF | |
12812 | /* end confdefs.h. */ | |
12813 | #include <$ac_header> | |
12814 | _ACEOF | |
12815 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12816 | case "(($ac_try" in | |
12817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12818 | *) ac_try_echo=$ac_try;; | |
12819 | esac | |
12820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12821 | $as_echo "$ac_try_echo") >&5 | |
12822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12823 | ac_status=$? | |
12824 | grep -v '^ *+' conftest.er1 >conftest.err | |
12825 | rm -f conftest.er1 | |
12826 | cat conftest.err >&5 | |
12827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12828 | (exit $ac_status); } >/dev/null && { | |
12829 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12830 | test ! -s conftest.err | |
12831 | }; then | |
12832 | ac_header_preproc=yes | |
12833 | else | |
12834 | $as_echo "$as_me: failed program was:" >&5 | |
12835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12836 | ||
12837 | ac_header_preproc=no | |
12838 | fi | |
12839 | ||
12840 | rm -f conftest.err conftest.$ac_ext | |
12841 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12842 | $as_echo "$ac_header_preproc" >&6; } | |
12843 | ||
12844 | # So? What about this header? | |
12845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12846 | yes:no: ) | |
12847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12848 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12850 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12851 | ac_header_preproc=yes | |
12852 | ;; | |
12853 | no:yes:* ) | |
12854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12855 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12857 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12859 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12861 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12863 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12865 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12866 | ||
12867 | ;; | |
12868 | esac | |
12869 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12870 | $as_echo_n "checking for $ac_header... " >&6; } | |
12871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12872 | $as_echo_n "(cached) " >&6 | |
12873 | else | |
12874 | eval "$as_ac_Header=\$ac_header_preproc" | |
12875 | fi | |
12876 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12877 | $as_echo "$as_val"'` | |
12878 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12879 | $as_echo "$ac_res" >&6; } | |
12880 | ||
12881 | fi | |
12882 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12883 | $as_echo "$as_val"'` | |
12884 | if test "x$as_val" = x""yes; then | |
12885 | cat >>confdefs.h <<_ACEOF | |
12886 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12887 | _ACEOF | |
12888 | ||
12889 | else | |
12890 | $bailout | |
12891 | fi | |
12892 | ||
12893 | done | |
12894 | ||
12895 | check_lib_no_libs cman cman_init | |
12896 | if test $NOTFOUND = 0; then | |
12897 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12898 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12899 | CMAN_LIBS="-lcman" | |
12900 | HAVE_CMAN=yes | |
12901 | fi | |
12902 | else | |
12903 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12904 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12905 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12906 | $as_echo "yes" >&6; } | |
12907 | HAVE_CMAN=yes | |
12908 | fi | |
12909 | CHECKCONFDB=yes | |
12910 | CHECKDLM=yes | |
12911 | fi | |
12912 | ||
12913 | if test x$BUILDCOROSYNC = xyes || \ | |
12914 | test x$BUILDOPENAIS = xyes; then | |
12915 | ||
12916 | pkg_failed=no | |
12917 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12918 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12919 | ||
12920 | if test -n "$COROSYNC_CFLAGS"; then | |
12921 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12922 | elif test -n "$PKG_CONFIG"; then | |
12923 | if test -n "$PKG_CONFIG" && \ | |
12924 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12925 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12926 | ac_status=$? | |
12927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12928 | (exit $ac_status); }; then | |
12929 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12930 | else | |
12931 | pkg_failed=yes | |
12932 | fi | |
12933 | else | |
12934 | pkg_failed=untried | |
12935 | fi | |
12936 | if test -n "$COROSYNC_LIBS"; then | |
12937 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12938 | elif test -n "$PKG_CONFIG"; then | |
12939 | if test -n "$PKG_CONFIG" && \ | |
12940 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12941 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12942 | ac_status=$? | |
12943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12944 | (exit $ac_status); }; then | |
12945 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12946 | else | |
12947 | pkg_failed=yes | |
12948 | fi | |
12949 | else | |
12950 | pkg_failed=untried | |
12951 | fi | |
12952 | ||
12953 | ||
12954 | ||
12955 | if test $pkg_failed = yes; then | |
71082be4 ZK |
12956 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12957 | $as_echo "no" >&6; } | |
a946372e AK |
12958 | |
12959 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12960 | _pkg_short_errors_supported=yes | |
12961 | else | |
12962 | _pkg_short_errors_supported=no | |
12963 | fi | |
12964 | if test $_pkg_short_errors_supported = yes; then | |
12965 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12966 | else | |
12967 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12968 | fi | |
12969 | # Put the nasty error message in config.log where it belongs | |
12970 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12971 | ||
71082be4 | 12972 | $bailout |
d911ec67 | 12973 | elif test $pkg_failed = untried; then |
71082be4 ZK |
12974 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12975 | $as_echo "no" >&6; } | |
a946372e AK |
12976 | $bailout |
12977 | else | |
12978 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12979 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12980 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12981 | $as_echo "yes" >&6; } | |
12982 | HAVE_COROSYNC=yes | |
12983 | fi | |
12984 | CHECKCONFDB=yes | |
12985 | fi | |
12986 | ||
12987 | if test x$BUILDCOROSYNC = xyes; then | |
12988 | ||
12989 | pkg_failed=no | |
12990 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
12991 | $as_echo_n "checking for QUORUM... " >&6; } | |
12992 | ||
12993 | if test -n "$QUORUM_CFLAGS"; then | |
12994 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
12995 | elif test -n "$PKG_CONFIG"; then | |
12996 | if test -n "$PKG_CONFIG" && \ | |
12997 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12998 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12999 | ac_status=$? | |
13000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13001 | (exit $ac_status); }; then | |
13002 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
13003 | else | |
13004 | pkg_failed=yes | |
13005 | fi | |
13006 | else | |
13007 | pkg_failed=untried | |
13008 | fi | |
13009 | if test -n "$QUORUM_LIBS"; then | |
13010 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
13011 | elif test -n "$PKG_CONFIG"; then | |
13012 | if test -n "$PKG_CONFIG" && \ | |
13013 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
13014 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
13015 | ac_status=$? | |
13016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13017 | (exit $ac_status); }; then | |
13018 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
13019 | else | |
13020 | pkg_failed=yes | |
13021 | fi | |
13022 | else | |
13023 | pkg_failed=untried | |
13024 | fi | |
13025 | ||
13026 | ||
13027 | ||
13028 | if test $pkg_failed = yes; then | |
71082be4 ZK |
13029 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13030 | $as_echo "no" >&6; } | |
a946372e AK |
13031 | |
13032 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13033 | _pkg_short_errors_supported=yes | |
13034 | else | |
13035 | _pkg_short_errors_supported=no | |
13036 | fi | |
13037 | if test $_pkg_short_errors_supported = yes; then | |
13038 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
13039 | else | |
13040 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
13041 | fi | |
13042 | # Put the nasty error message in config.log where it belongs | |
13043 | echo "$QUORUM_PKG_ERRORS" >&5 | |
13044 | ||
71082be4 | 13045 | $bailout |
d911ec67 | 13046 | elif test $pkg_failed = untried; then |
71082be4 ZK |
13047 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13048 | $as_echo "no" >&6; } | |
a946372e AK |
13049 | $bailout |
13050 | else | |
13051 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
13052 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
13053 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13054 | $as_echo "yes" >&6; } | |
13055 | HAVE_QUORUM=yes | |
13056 | fi | |
13057 | CHECKCPG=yes | |
13058 | CHECKDLM=yes | |
13059 | fi | |
13060 | ||
13061 | if test x$BUILDOPENAIS = xyes; then | |
13062 | ||
13063 | pkg_failed=no | |
13064 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
13065 | $as_echo_n "checking for SALCK... " >&6; } | |
13066 | ||
13067 | if test -n "$SALCK_CFLAGS"; then | |
13068 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13069 | elif test -n "$PKG_CONFIG"; then | |
13070 | if test -n "$PKG_CONFIG" && \ | |
13071 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13072 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13073 | ac_status=$? | |
13074 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13075 | (exit $ac_status); }; then | |
13076 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13077 | else | |
13078 | pkg_failed=yes | |
13079 | fi | |
13080 | else | |
13081 | pkg_failed=untried | |
13082 | fi | |
13083 | if test -n "$SALCK_LIBS"; then | |
13084 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13085 | elif test -n "$PKG_CONFIG"; then | |
13086 | if test -n "$PKG_CONFIG" && \ | |
13087 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13088 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13089 | ac_status=$? | |
13090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13091 | (exit $ac_status); }; then | |
13092 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13093 | else | |
13094 | pkg_failed=yes | |
13095 | fi | |
13096 | else | |
13097 | pkg_failed=untried | |
13098 | fi | |
13099 | ||
13100 | ||
13101 | ||
13102 | if test $pkg_failed = yes; then | |
71082be4 ZK |
13103 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13104 | $as_echo "no" >&6; } | |
a946372e AK |
13105 | |
13106 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13107 | _pkg_short_errors_supported=yes | |
13108 | else | |
13109 | _pkg_short_errors_supported=no | |
13110 | fi | |
13111 | if test $_pkg_short_errors_supported = yes; then | |
13112 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13113 | else | |
13114 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13115 | fi | |
13116 | # Put the nasty error message in config.log where it belongs | |
13117 | echo "$SALCK_PKG_ERRORS" >&5 | |
13118 | ||
71082be4 | 13119 | $bailout |
d911ec67 | 13120 | elif test $pkg_failed = untried; then |
71082be4 ZK |
13121 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13122 | $as_echo "no" >&6; } | |
a946372e AK |
13123 | $bailout |
13124 | else | |
13125 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13126 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13127 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13128 | $as_echo "yes" >&6; } | |
13129 | HAVE_SALCK=yes | |
13130 | fi | |
13131 | CHECKCPG=yes | |
13132 | fi | |
13133 | ||
13134 | ||
13135 | ||
13136 | if test x$CHECKCONFDB = xyes; then | |
13137 | ||
13138 | pkg_failed=no | |
13139 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13140 | $as_echo_n "checking for CONFDB... " >&6; } | |
13141 | ||
13142 | if test -n "$CONFDB_CFLAGS"; then | |
13143 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13144 | elif test -n "$PKG_CONFIG"; then | |
13145 | if test -n "$PKG_CONFIG" && \ | |
13146 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13147 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13148 | ac_status=$? | |
13149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13150 | (exit $ac_status); }; then | |
13151 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13152 | else | |
13153 | pkg_failed=yes | |
13154 | fi | |
13155 | else | |
13156 | pkg_failed=untried | |
13157 | fi | |
13158 | if test -n "$CONFDB_LIBS"; then | |
13159 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13160 | elif test -n "$PKG_CONFIG"; then | |
13161 | if test -n "$PKG_CONFIG" && \ | |
13162 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13163 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13164 | ac_status=$? | |
13165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13166 | (exit $ac_status); }; then | |
13167 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13168 | else | |
13169 | pkg_failed=yes | |
13170 | fi | |
13171 | else | |
13172 | pkg_failed=untried | |
13173 | fi | |
13174 | ||
13175 | ||
13176 | ||
13177 | if test $pkg_failed = yes; then | |
71082be4 ZK |
13178 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13179 | $as_echo "no" >&6; } | |
a946372e AK |
13180 | |
13181 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13182 | _pkg_short_errors_supported=yes | |
13183 | else | |
13184 | _pkg_short_errors_supported=no | |
13185 | fi | |
13186 | if test $_pkg_short_errors_supported = yes; then | |
13187 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13188 | else | |
13189 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13190 | fi | |
13191 | # Put the nasty error message in config.log where it belongs | |
13192 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13193 | ||
71082be4 | 13194 | HAVE_CONFDB=no |
d911ec67 | 13195 | elif test $pkg_failed = untried; then |
71082be4 ZK |
13196 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13197 | $as_echo "no" >&6; } | |
a946372e AK |
13198 | HAVE_CONFDB=no |
13199 | else | |
13200 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13201 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13202 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13203 | $as_echo "yes" >&6; } | |
13204 | HAVE_CONFDB=yes | |
13205 | fi | |
13206 | ||
13207 | ||
13208 | for ac_header in corosync/confdb.h | |
13209 | do | |
13210 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13211 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13212 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13213 | $as_echo_n "checking for $ac_header... " >&6; } | |
13214 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13215 | $as_echo_n "(cached) " >&6 | |
13216 | fi | |
13217 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13218 | $as_echo "$as_val"'` | |
13219 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13220 | $as_echo "$ac_res" >&6; } | |
13221 | else | |
13222 | # Is the header compilable? | |
13223 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13224 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13225 | cat >conftest.$ac_ext <<_ACEOF | |
13226 | /* confdefs.h. */ | |
13227 | _ACEOF | |
13228 | cat confdefs.h >>conftest.$ac_ext | |
13229 | cat >>conftest.$ac_ext <<_ACEOF | |
13230 | /* end confdefs.h. */ | |
13231 | $ac_includes_default | |
13232 | #include <$ac_header> | |
13233 | _ACEOF | |
13234 | rm -f conftest.$ac_objext | |
13235 | if { (ac_try="$ac_compile" | |
13236 | case "(($ac_try" in | |
13237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13238 | *) ac_try_echo=$ac_try;; | |
13239 | esac | |
13240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13241 | $as_echo "$ac_try_echo") >&5 | |
13242 | (eval "$ac_compile") 2>conftest.er1 | |
13243 | ac_status=$? | |
13244 | grep -v '^ *+' conftest.er1 >conftest.err | |
13245 | rm -f conftest.er1 | |
13246 | cat conftest.err >&5 | |
13247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13248 | (exit $ac_status); } && { | |
13249 | test -z "$ac_c_werror_flag" || | |
13250 | test ! -s conftest.err | |
13251 | } && test -s conftest.$ac_objext; then | |
13252 | ac_header_compiler=yes | |
13253 | else | |
13254 | $as_echo "$as_me: failed program was:" >&5 | |
13255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13256 | ||
13257 | ac_header_compiler=no | |
13258 | fi | |
13259 | ||
13260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13261 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13262 | $as_echo "$ac_header_compiler" >&6; } | |
13263 | ||
13264 | # Is the header present? | |
13265 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13266 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13267 | cat >conftest.$ac_ext <<_ACEOF | |
13268 | /* confdefs.h. */ | |
13269 | _ACEOF | |
13270 | cat confdefs.h >>conftest.$ac_ext | |
13271 | cat >>conftest.$ac_ext <<_ACEOF | |
13272 | /* end confdefs.h. */ | |
13273 | #include <$ac_header> | |
13274 | _ACEOF | |
13275 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13276 | case "(($ac_try" in | |
13277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13278 | *) ac_try_echo=$ac_try;; | |
13279 | esac | |
13280 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13281 | $as_echo "$ac_try_echo") >&5 | |
13282 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13283 | ac_status=$? | |
13284 | grep -v '^ *+' conftest.er1 >conftest.err | |
13285 | rm -f conftest.er1 | |
13286 | cat conftest.err >&5 | |
13287 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13288 | (exit $ac_status); } >/dev/null && { | |
13289 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13290 | test ! -s conftest.err | |
13291 | }; then | |
13292 | ac_header_preproc=yes | |
13293 | else | |
13294 | $as_echo "$as_me: failed program was:" >&5 | |
13295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13296 | ||
13297 | ac_header_preproc=no | |
13298 | fi | |
13299 | ||
13300 | rm -f conftest.err conftest.$ac_ext | |
13301 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13302 | $as_echo "$ac_header_preproc" >&6; } | |
13303 | ||
13304 | # So? What about this header? | |
13305 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13306 | yes:no: ) | |
13307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13308 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13310 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13311 | ac_header_preproc=yes | |
13312 | ;; | |
13313 | no:yes:* ) | |
13314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13315 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13317 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13318 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13319 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13320 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13321 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13322 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13323 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13324 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13325 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13326 | ||
13327 | ;; | |
13328 | esac | |
13329 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13330 | $as_echo_n "checking for $ac_header... " >&6; } | |
13331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13332 | $as_echo_n "(cached) " >&6 | |
13333 | else | |
13334 | eval "$as_ac_Header=\$ac_header_preproc" | |
13335 | fi | |
13336 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13337 | $as_echo "$as_val"'` | |
13338 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13339 | $as_echo "$ac_res" >&6; } | |
13340 | ||
13341 | fi | |
13342 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13343 | $as_echo "$as_val"'` | |
13344 | if test "x$as_val" = x""yes; then | |
13345 | cat >>confdefs.h <<_ACEOF | |
13346 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13347 | _ACEOF | |
13348 | HAVE_CONFDB_H=yes | |
13349 | else | |
13350 | HAVE_CONFDB_H=no | |
13351 | fi | |
13352 | ||
13353 | done | |
13354 | ||
13355 | ||
13356 | if test x$HAVE_CONFDB != xyes && \ | |
13357 | test x$HAVE_CONFDB_H = xyes; then | |
13358 | check_lib_no_libs confdb confdb_initialize | |
13359 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13360 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13361 | CONFDB_LIBS="-lconfdb" | |
13362 | HAVE_CONFDB=yes | |
13363 | fi | |
13364 | ||
13365 | if test x$BUILDCOROSYNC = xyes && \ | |
13366 | test x$HAVE_CONFDB != xyes && | |
13367 | test x$CLVMD != xall; then | |
13368 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13369 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13370 | { (exit 1); exit 1; }; } | |
13371 | fi | |
13372 | fi | |
13373 | ||
13374 | if test x$CHECKCPG = xyes; then | |
13375 | ||
13376 | pkg_failed=no | |
13377 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13378 | $as_echo_n "checking for CPG... " >&6; } | |
13379 | ||
13380 | if test -n "$CPG_CFLAGS"; then | |
13381 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13382 | elif test -n "$PKG_CONFIG"; then | |
13383 | if test -n "$PKG_CONFIG" && \ | |
13384 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13385 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13386 | ac_status=$? | |
13387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13388 | (exit $ac_status); }; then | |
13389 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13390 | else | |
13391 | pkg_failed=yes | |
13392 | fi | |
13393 | else | |
13394 | pkg_failed=untried | |
13395 | fi | |
13396 | if test -n "$CPG_LIBS"; then | |
13397 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13398 | elif test -n "$PKG_CONFIG"; then | |
13399 | if test -n "$PKG_CONFIG" && \ | |
13400 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13401 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13402 | ac_status=$? | |
13403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13404 | (exit $ac_status); }; then | |
13405 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13406 | else | |
13407 | pkg_failed=yes | |
13408 | fi | |
13409 | else | |
13410 | pkg_failed=untried | |
13411 | fi | |
13412 | ||
13413 | ||
13414 | ||
13415 | if test $pkg_failed = yes; then | |
71082be4 ZK |
13416 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13417 | $as_echo "no" >&6; } | |
a946372e AK |
13418 | |
13419 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13420 | _pkg_short_errors_supported=yes | |
13421 | else | |
13422 | _pkg_short_errors_supported=no | |
13423 | fi | |
13424 | if test $_pkg_short_errors_supported = yes; then | |
13425 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13426 | else | |
13427 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13428 | fi | |
13429 | # Put the nasty error message in config.log where it belongs | |
13430 | echo "$CPG_PKG_ERRORS" >&5 | |
13431 | ||
71082be4 | 13432 | $bailout |
d911ec67 | 13433 | elif test $pkg_failed = untried; then |
71082be4 ZK |
13434 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13435 | $as_echo "no" >&6; } | |
a946372e AK |
13436 | $bailout |
13437 | else | |
13438 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13439 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13440 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13441 | $as_echo "yes" >&6; } | |
13442 | HAVE_CPG=yes | |
13443 | fi | |
13444 | fi | |
13445 | ||
13446 | if test x$CHECKDLM = xyes; then | |
13447 | ||
13448 | pkg_failed=no | |
13449 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13450 | $as_echo_n "checking for DLM... " >&6; } | |
13451 | ||
13452 | if test -n "$DLM_CFLAGS"; then | |
13453 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13454 | elif test -n "$PKG_CONFIG"; then | |
13455 | if test -n "$PKG_CONFIG" && \ | |
13456 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13457 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13458 | ac_status=$? | |
13459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13460 | (exit $ac_status); }; then | |
13461 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13462 | else | |
13463 | pkg_failed=yes | |
13464 | fi | |
13465 | else | |
13466 | pkg_failed=untried | |
13467 | fi | |
13468 | if test -n "$DLM_LIBS"; then | |
13469 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13470 | elif test -n "$PKG_CONFIG"; then | |
13471 | if test -n "$PKG_CONFIG" && \ | |
13472 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13473 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13474 | ac_status=$? | |
13475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13476 | (exit $ac_status); }; then | |
13477 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13478 | else | |
13479 | pkg_failed=yes | |
13480 | fi | |
13481 | else | |
13482 | pkg_failed=untried | |
13483 | fi | |
13484 | ||
13485 | ||
13486 | ||
13487 | if test $pkg_failed = yes; then | |
71082be4 ZK |
13488 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13489 | $as_echo "no" >&6; } | |
a946372e AK |
13490 | |
13491 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13492 | _pkg_short_errors_supported=yes | |
13493 | else | |
13494 | _pkg_short_errors_supported=no | |
13495 | fi | |
13496 | if test $_pkg_short_errors_supported = yes; then | |
13497 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13498 | else | |
13499 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13500 | fi | |
13501 | # Put the nasty error message in config.log where it belongs | |
13502 | echo "$DLM_PKG_ERRORS" >&5 | |
13503 | ||
71082be4 | 13504 | NOTFOUND=0 |
a946372e AK |
13505 | |
13506 | for ac_header in libdlm.h | |
13507 | do | |
13508 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13510 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13511 | $as_echo_n "checking for $ac_header... " >&6; } | |
13512 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13513 | $as_echo_n "(cached) " >&6 | |
13514 | fi | |
13515 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13516 | $as_echo "$as_val"'` | |
13517 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13518 | $as_echo "$ac_res" >&6; } | |
13519 | else | |
13520 | # Is the header compilable? | |
13521 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13522 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13523 | cat >conftest.$ac_ext <<_ACEOF | |
13524 | /* confdefs.h. */ | |
13525 | _ACEOF | |
13526 | cat confdefs.h >>conftest.$ac_ext | |
13527 | cat >>conftest.$ac_ext <<_ACEOF | |
13528 | /* end confdefs.h. */ | |
13529 | $ac_includes_default | |
13530 | #include <$ac_header> | |
13531 | _ACEOF | |
13532 | rm -f conftest.$ac_objext | |
13533 | if { (ac_try="$ac_compile" | |
13534 | case "(($ac_try" in | |
13535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13536 | *) ac_try_echo=$ac_try;; | |
13537 | esac | |
13538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13539 | $as_echo "$ac_try_echo") >&5 | |
13540 | (eval "$ac_compile") 2>conftest.er1 | |
13541 | ac_status=$? | |
13542 | grep -v '^ *+' conftest.er1 >conftest.err | |
13543 | rm -f conftest.er1 | |
13544 | cat conftest.err >&5 | |
13545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13546 | (exit $ac_status); } && { | |
13547 | test -z "$ac_c_werror_flag" || | |
13548 | test ! -s conftest.err | |
13549 | } && test -s conftest.$ac_objext; then | |
13550 | ac_header_compiler=yes | |
13551 | else | |
13552 | $as_echo "$as_me: failed program was:" >&5 | |
13553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13554 | ||
13555 | ac_header_compiler=no | |
13556 | fi | |
13557 | ||
13558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13559 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13560 | $as_echo "$ac_header_compiler" >&6; } | |
13561 | ||
13562 | # Is the header present? | |
13563 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13564 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13565 | cat >conftest.$ac_ext <<_ACEOF | |
13566 | /* confdefs.h. */ | |
13567 | _ACEOF | |
13568 | cat confdefs.h >>conftest.$ac_ext | |
13569 | cat >>conftest.$ac_ext <<_ACEOF | |
13570 | /* end confdefs.h. */ | |
13571 | #include <$ac_header> | |
13572 | _ACEOF | |
13573 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13574 | case "(($ac_try" in | |
13575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13576 | *) ac_try_echo=$ac_try;; | |
13577 | esac | |
13578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13579 | $as_echo "$ac_try_echo") >&5 | |
13580 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13581 | ac_status=$? | |
13582 | grep -v '^ *+' conftest.er1 >conftest.err | |
13583 | rm -f conftest.er1 | |
13584 | cat conftest.err >&5 | |
13585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13586 | (exit $ac_status); } >/dev/null && { | |
13587 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13588 | test ! -s conftest.err | |
13589 | }; then | |
13590 | ac_header_preproc=yes | |
13591 | else | |
13592 | $as_echo "$as_me: failed program was:" >&5 | |
13593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13594 | ||
13595 | ac_header_preproc=no | |
13596 | fi | |
13597 | ||
13598 | rm -f conftest.err conftest.$ac_ext | |
13599 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13600 | $as_echo "$ac_header_preproc" >&6; } | |
13601 | ||
13602 | # So? What about this header? | |
13603 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13604 | yes:no: ) | |
13605 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13606 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13607 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13608 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13609 | ac_header_preproc=yes | |
13610 | ;; | |
13611 | no:yes:* ) | |
13612 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13613 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13614 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13615 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13617 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13619 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13620 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13621 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13622 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13623 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13624 | ||
13625 | ;; | |
13626 | esac | |
13627 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13628 | $as_echo_n "checking for $ac_header... " >&6; } | |
13629 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13630 | $as_echo_n "(cached) " >&6 | |
13631 | else | |
13632 | eval "$as_ac_Header=\$ac_header_preproc" | |
13633 | fi | |
13634 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13635 | $as_echo "$as_val"'` | |
13636 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13637 | $as_echo "$ac_res" >&6; } | |
13638 | ||
13639 | fi | |
13640 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13641 | $as_echo "$as_val"'` | |
13642 | if test "x$as_val" = x""yes; then | |
13643 | cat >>confdefs.h <<_ACEOF | |
13644 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13645 | _ACEOF | |
13646 | ||
13647 | else | |
13648 | $bailout | |
13649 | fi | |
13650 | ||
13651 | done | |
13652 | ||
13653 | check_lib_no_libs dlm dlm_lock -lpthread | |
13654 | if test $NOTFOUND = 0; then | |
13655 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13656 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13657 | DLM_LIBS="-ldlm -lpthread" | |
13658 | HAVE_DLM=yes | |
13659 | fi | |
13660 | elif test $pkg_failed = untried; then | |
71082be4 ZK |
13661 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13662 | $as_echo "no" >&6; } | |
a946372e AK |
13663 | NOTFOUND=0 |
13664 | ||
13665 | for ac_header in libdlm.h | |
13666 | do | |
13667 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13668 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13669 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13670 | $as_echo_n "checking for $ac_header... " >&6; } | |
13671 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13672 | $as_echo_n "(cached) " >&6 | |
13673 | fi | |
13674 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13675 | $as_echo "$as_val"'` | |
13676 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13677 | $as_echo "$ac_res" >&6; } | |
13678 | else | |
13679 | # Is the header compilable? | |
13680 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13681 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13682 | cat >conftest.$ac_ext <<_ACEOF | |
13683 | /* confdefs.h. */ | |
13684 | _ACEOF | |
13685 | cat confdefs.h >>conftest.$ac_ext | |
13686 | cat >>conftest.$ac_ext <<_ACEOF | |
13687 | /* end confdefs.h. */ | |
13688 | $ac_includes_default | |
13689 | #include <$ac_header> | |
13690 | _ACEOF | |
13691 | rm -f conftest.$ac_objext | |
13692 | if { (ac_try="$ac_compile" | |
13693 | case "(($ac_try" in | |
13694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13695 | *) ac_try_echo=$ac_try;; | |
13696 | esac | |
13697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13698 | $as_echo "$ac_try_echo") >&5 | |
13699 | (eval "$ac_compile") 2>conftest.er1 | |
13700 | ac_status=$? | |
13701 | grep -v '^ *+' conftest.er1 >conftest.err | |
13702 | rm -f conftest.er1 | |
13703 | cat conftest.err >&5 | |
13704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13705 | (exit $ac_status); } && { | |
13706 | test -z "$ac_c_werror_flag" || | |
13707 | test ! -s conftest.err | |
13708 | } && test -s conftest.$ac_objext; then | |
13709 | ac_header_compiler=yes | |
13710 | else | |
13711 | $as_echo "$as_me: failed program was:" >&5 | |
13712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13713 | ||
13714 | ac_header_compiler=no | |
13715 | fi | |
13716 | ||
13717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13718 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13719 | $as_echo "$ac_header_compiler" >&6; } | |
13720 | ||
13721 | # Is the header present? | |
13722 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13723 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13724 | cat >conftest.$ac_ext <<_ACEOF | |
13725 | /* confdefs.h. */ | |
13726 | _ACEOF | |
13727 | cat confdefs.h >>conftest.$ac_ext | |
13728 | cat >>conftest.$ac_ext <<_ACEOF | |
13729 | /* end confdefs.h. */ | |
13730 | #include <$ac_header> | |
13731 | _ACEOF | |
13732 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13733 | case "(($ac_try" in | |
13734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13735 | *) ac_try_echo=$ac_try;; | |
13736 | esac | |
13737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13738 | $as_echo "$ac_try_echo") >&5 | |
13739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13740 | ac_status=$? | |
13741 | grep -v '^ *+' conftest.er1 >conftest.err | |
13742 | rm -f conftest.er1 | |
13743 | cat conftest.err >&5 | |
13744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13745 | (exit $ac_status); } >/dev/null && { | |
13746 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13747 | test ! -s conftest.err | |
13748 | }; then | |
13749 | ac_header_preproc=yes | |
13750 | else | |
13751 | $as_echo "$as_me: failed program was:" >&5 | |
13752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13753 | ||
13754 | ac_header_preproc=no | |
13755 | fi | |
13756 | ||
13757 | rm -f conftest.err conftest.$ac_ext | |
13758 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13759 | $as_echo "$ac_header_preproc" >&6; } | |
13760 | ||
13761 | # So? What about this header? | |
13762 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13763 | yes:no: ) | |
13764 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13765 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13766 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13767 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13768 | ac_header_preproc=yes | |
13769 | ;; | |
13770 | no:yes:* ) | |
13771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13772 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13774 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13775 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13776 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13777 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13778 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13779 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13780 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13782 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13783 | ||
13784 | ;; | |
13785 | esac | |
13786 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13787 | $as_echo_n "checking for $ac_header... " >&6; } | |
13788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13789 | $as_echo_n "(cached) " >&6 | |
13790 | else | |
13791 | eval "$as_ac_Header=\$ac_header_preproc" | |
13792 | fi | |
13793 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13794 | $as_echo "$as_val"'` | |
13795 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13796 | $as_echo "$ac_res" >&6; } | |
13797 | ||
13798 | fi | |
13799 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13800 | $as_echo "$as_val"'` | |
13801 | if test "x$as_val" = x""yes; then | |
13802 | cat >>confdefs.h <<_ACEOF | |
13803 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13804 | _ACEOF | |
13805 | ||
13806 | else | |
13807 | $bailout | |
13808 | fi | |
13809 | ||
13810 | done | |
13811 | ||
13812 | check_lib_no_libs dlm dlm_lock -lpthread | |
13813 | if test $NOTFOUND = 0; then | |
13814 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13815 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13816 | DLM_LIBS="-ldlm -lpthread" | |
13817 | HAVE_DLM=yes | |
13818 | fi | |
13819 | else | |
13820 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13821 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13822 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13823 | $as_echo "yes" >&6; } | |
13824 | HAVE_DLM=yes | |
13825 | fi | |
13826 | fi | |
13827 | ||
13828 | if test x$CLVMD = xall; then | |
8c222979 | 13829 | CLVMD=none |
a946372e AK |
13830 | if test x$HAVE_CCS = xyes && \ |
13831 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13832 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13833 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13834 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
13835 | fi |
13836 | if test x$HAVE_CMAN = xyes && \ | |
13837 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13838 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13839 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13840 | CLVMD="$CLVMD,cman" | |
a946372e AK |
13841 | fi |
13842 | if test x$HAVE_COROSYNC = xyes && \ | |
13843 | test x$HAVE_QUORUM = xyes && \ | |
13844 | test x$HAVE_CPG = xyes && \ | |
13845 | test x$HAVE_DLM = xyes && \ | |
13846 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13847 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13848 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13849 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
13850 | fi |
13851 | if test x$HAVE_COROSYNC = xyes && \ | |
13852 | test x$HAVE_CPG = xyes && \ | |
13853 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13854 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13855 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13856 | CLVMD="$CLVMD,openais" | |
13857 | fi | |
13858 | if test x$CLVMD = xnone; then | |
13859 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13860 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13861 | fi |
a946372e AK |
13862 | fi |
13863 | ||
13864 | ################################################################################ | |
66fd4529 AK |
13865 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13866 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13867 | # Check whether --enable-cmirrord was given. | |
13868 | if test "${enable_cmirrord+set}" = set; then | |
13869 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13870 | else | |
13871 | CMIRRORD=no | |
13872 | fi | |
13873 | ||
13874 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13875 | $as_echo "$CMIRRORD" >&6; } | |
13876 | ||
13877 | BUILD_CMIRRORD=$CMIRRORD | |
13878 | ||
13879 | ################################################################################ | |
66fd4529 AK |
13880 | if test "x$BUILD_CMIRRORD" = xyes; then |
13881 | ||
13882 | # Check whether --with-cmirrord-pidfile was given. | |
13883 | if test "${with_cmirrord_pidfile+set}" = set; then | |
71082be4 | 13884 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval |
66fd4529 | 13885 | else |
71082be4 | 13886 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
a946372e AK |
13887 | fi |
13888 | ||
71082be4 ZK |
13889 | |
13890 | cat >>confdefs.h <<_ACEOF | |
13891 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
13892 | _ACEOF | |
13893 | ||
66fd4529 | 13894 | fi |
a946372e | 13895 | |
66fd4529 AK |
13896 | ################################################################################ |
13897 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13898 | if test x$PKGCONFIG_INIT != x1; then |
13899 | pkg_config_init | |
13900 | fi | |
13901 | ||
13902 | pkg_failed=no | |
13903 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13904 | $as_echo_n "checking for SACKPT... " >&6; } | |
13905 | ||
13906 | if test -n "$SACKPT_CFLAGS"; then | |
13907 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13908 | elif test -n "$PKG_CONFIG"; then | |
13909 | if test -n "$PKG_CONFIG" && \ | |
13910 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13911 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13912 | ac_status=$? | |
13913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13914 | (exit $ac_status); }; then | |
13915 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13916 | else | |
13917 | pkg_failed=yes | |
13918 | fi | |
13919 | else | |
13920 | pkg_failed=untried | |
13921 | fi | |
13922 | if test -n "$SACKPT_LIBS"; then | |
13923 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13924 | elif test -n "$PKG_CONFIG"; then | |
13925 | if test -n "$PKG_CONFIG" && \ | |
13926 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13927 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13928 | ac_status=$? | |
13929 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13930 | (exit $ac_status); }; then | |
13931 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13932 | else | |
13933 | pkg_failed=yes | |
13934 | fi | |
13935 | else | |
13936 | pkg_failed=untried | |
13937 | fi | |
13938 | ||
13939 | ||
13940 | ||
13941 | if test $pkg_failed = yes; then | |
71082be4 ZK |
13942 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13943 | $as_echo "no" >&6; } | |
90c80887 AK |
13944 | |
13945 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13946 | _pkg_short_errors_supported=yes | |
13947 | else | |
13948 | _pkg_short_errors_supported=no | |
13949 | fi | |
13950 | if test $_pkg_short_errors_supported = yes; then | |
13951 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13952 | else | |
13953 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13954 | fi | |
13955 | # Put the nasty error message in config.log where it belongs | |
13956 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13957 | ||
13958 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13959 | ||
13960 | $SACKPT_PKG_ERRORS | |
13961 | ||
13962 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13963 | installed software in a non-standard prefix. | |
13964 | ||
13965 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13966 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
71082be4 | 13967 | See the pkg-config man page for more details." >&5 |
90c80887 AK |
13968 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13969 | ||
13970 | $SACKPT_PKG_ERRORS | |
13971 | ||
13972 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13973 | installed software in a non-standard prefix. | |
13974 | ||
13975 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13976 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
71082be4 | 13977 | See the pkg-config man page for more details." >&2;} |
90c80887 AK |
13978 | { (exit 1); exit 1; }; } |
13979 | elif test $pkg_failed = untried; then | |
71082be4 ZK |
13980 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13981 | $as_echo "no" >&6; } | |
90c80887 AK |
13982 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13983 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13984 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
13985 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13986 | path to pkg-config. | |
13987 | ||
13988 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13989 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13990 | See the pkg-config man page for more details. | |
13991 | ||
13992 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13993 | See \`config.log' for more details." >&5 | |
13994 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
13995 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13996 | path to pkg-config. | |
13997 | ||
13998 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13999 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
14000 | See the pkg-config man page for more details. | |
14001 | ||
14002 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14003 | See \`config.log' for more details." >&2;} | |
14004 | { (exit 1); exit 1; }; }; } | |
14005 | else | |
14006 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
14007 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
14008 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14009 | $as_echo "yes" >&6; } | |
71082be4 | 14010 | |
90c80887 AK |
14011 | fi |
14012 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
14013 | |
14014 | pkg_failed=no | |
14015 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
14016 | $as_echo_n "checking for CPG... " >&6; } | |
14017 | ||
14018 | if test -n "$CPG_CFLAGS"; then | |
14019 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
14020 | elif test -n "$PKG_CONFIG"; then | |
14021 | if test -n "$PKG_CONFIG" && \ | |
14022 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14023 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14024 | ac_status=$? | |
14025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14026 | (exit $ac_status); }; then | |
14027 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
14028 | else | |
14029 | pkg_failed=yes | |
14030 | fi | |
14031 | else | |
14032 | pkg_failed=untried | |
14033 | fi | |
14034 | if test -n "$CPG_LIBS"; then | |
14035 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
14036 | elif test -n "$PKG_CONFIG"; then | |
14037 | if test -n "$PKG_CONFIG" && \ | |
14038 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14039 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14040 | ac_status=$? | |
14041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14042 | (exit $ac_status); }; then | |
14043 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
14044 | else | |
14045 | pkg_failed=yes | |
14046 | fi | |
14047 | else | |
14048 | pkg_failed=untried | |
14049 | fi | |
14050 | ||
14051 | ||
14052 | ||
14053 | if test $pkg_failed = yes; then | |
71082be4 ZK |
14054 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14055 | $as_echo "no" >&6; } | |
a946372e AK |
14056 | |
14057 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14058 | _pkg_short_errors_supported=yes | |
14059 | else | |
14060 | _pkg_short_errors_supported=no | |
14061 | fi | |
14062 | if test $_pkg_short_errors_supported = yes; then | |
14063 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14064 | else | |
14065 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14066 | fi | |
14067 | # Put the nasty error message in config.log where it belongs | |
14068 | echo "$CPG_PKG_ERRORS" >&5 | |
14069 | ||
90c80887 AK |
14070 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14071 | ||
14072 | $CPG_PKG_ERRORS | |
14073 | ||
14074 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14075 | installed software in a non-standard prefix. | |
14076 | ||
14077 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14078 | and CPG_LIBS to avoid the need to call pkg-config. | |
71082be4 | 14079 | See the pkg-config man page for more details." >&5 |
90c80887 AK |
14080 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14081 | ||
14082 | $CPG_PKG_ERRORS | |
14083 | ||
14084 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14085 | installed software in a non-standard prefix. | |
14086 | ||
14087 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14088 | and CPG_LIBS to avoid the need to call pkg-config. | |
71082be4 | 14089 | See the pkg-config man page for more details." >&2;} |
90c80887 | 14090 | { (exit 1); exit 1; }; } |
a946372e | 14091 | elif test $pkg_failed = untried; then |
71082be4 ZK |
14092 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14093 | $as_echo "no" >&6; } | |
90c80887 AK |
14094 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14095 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14096 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14097 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14098 | path to pkg-config. | |
14099 | ||
14100 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14101 | and CPG_LIBS to avoid the need to call pkg-config. | |
14102 | See the pkg-config man page for more details. | |
14103 | ||
14104 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14105 | See \`config.log' for more details." >&5 | |
14106 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14107 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14108 | path to pkg-config. | |
14109 | ||
14110 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14111 | and CPG_LIBS to avoid the need to call pkg-config. | |
14112 | See the pkg-config man page for more details. | |
14113 | ||
14114 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14115 | See \`config.log' for more details." >&2;} | |
14116 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14117 | else |
14118 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14119 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14120 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14121 | $as_echo "yes" >&6; } | |
71082be4 | 14122 | |
a946372e | 14123 | fi |
90c80887 | 14124 | fi |
a946372e AK |
14125 | fi |
14126 | ||
14127 | ################################################################################ | |
14128 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14129 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14130 | # Check whether --enable-debug was given. | |
14131 | if test "${enable_debug+set}" = set; then | |
14132 | enableval=$enable_debug; DEBUG=$enableval | |
14133 | else | |
14134 | DEBUG=no | |
14135 | fi | |
14136 | ||
14137 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14138 | $as_echo "$DEBUG" >&6; } | |
14139 | ||
14140 | if test x$DEBUG = xyes; then | |
14141 | COPTIMISE_FLAG= | |
14142 | else | |
14143 | CSCOPE_CMD= | |
14144 | fi | |
14145 | ||
14146 | ################################################################################ | |
14147 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14148 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14149 | ||
14150 | # Check whether --with-optimisation was given. | |
14151 | if test "${with_optimisation+set}" = set; then | |
71082be4 | 14152 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
a946372e AK |
14153 | fi |
14154 | ||
14155 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14156 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14157 | ||
14158 | ################################################################################ | |
14159 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14160 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14161 | # Check whether --enable-profiling was given. | |
14162 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14163 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14164 | else |
5556819a | 14165 | PROFILING=no |
fddafd51 ZK |
14166 | fi |
14167 | ||
ec6a6fbe AK |
14168 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14169 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14170 | |
14171 | if test "x$PROFILING" = xyes; then | |
14172 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14173 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14174 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14175 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14176 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14177 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14178 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14179 | else |
14180 | case $LCOV in | |
14181 | [\\/]* | ?:[\\/]*) | |
14182 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14183 | ;; | |
14184 | *) | |
14185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14186 | for as_dir in $PATH | |
14187 | do | |
14188 | IFS=$as_save_IFS | |
14189 | test -z "$as_dir" && as_dir=. | |
14190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14192 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14193 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14194 | break 2 |
14195 | fi | |
14196 | done | |
14197 | done | |
14198 | IFS=$as_save_IFS | |
14199 | ||
14200 | ;; | |
14201 | esac | |
14202 | fi | |
14203 | LCOV=$ac_cv_path_LCOV | |
14204 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14205 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14206 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14207 | else |
ec6a6fbe AK |
14208 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14209 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14210 | fi |
14211 | ||
14212 | ||
5556819a | 14213 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14214 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14215 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14216 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14217 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14218 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14219 | else |
14220 | case $GENHTML in | |
14221 | [\\/]* | ?:[\\/]*) | |
14222 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14223 | ;; | |
14224 | *) | |
14225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14226 | for as_dir in $PATH | |
14227 | do | |
14228 | IFS=$as_save_IFS | |
14229 | test -z "$as_dir" && as_dir=. | |
14230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14232 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14233 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14234 | break 2 |
14235 | fi | |
14236 | done | |
14237 | done | |
14238 | IFS=$as_save_IFS | |
14239 | ||
14240 | ;; | |
14241 | esac | |
14242 | fi | |
14243 | GENHTML=$ac_cv_path_GENHTML | |
14244 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14245 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14246 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14247 | else |
ec6a6fbe AK |
14248 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14249 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14250 | fi |
14251 | ||
14252 | ||
fd4728e1 | 14253 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14254 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14255 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14256 | { (exit 1); exit 1; }; } |
14257 | fi | |
fd4728e1 ZK |
14258 | # Extract the first word of "genpng", so it can be a program name with args. |
14259 | set dummy genpng; ac_word=$2 | |
14260 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14261 | $as_echo_n "checking for $ac_word... " >&6; } | |
14262 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14263 | $as_echo_n "(cached) " >&6 | |
14264 | else | |
14265 | case $GENPNG in | |
14266 | [\\/]* | ?:[\\/]*) | |
14267 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14268 | ;; | |
14269 | *) | |
14270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14271 | for as_dir in $PATH | |
14272 | do | |
14273 | IFS=$as_save_IFS | |
14274 | test -z "$as_dir" && as_dir=. | |
14275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14277 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14278 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14279 | break 2 | |
14280 | fi | |
14281 | done | |
14282 | done | |
14283 | IFS=$as_save_IFS | |
14284 | ||
14285 | ;; | |
14286 | esac | |
14287 | fi | |
14288 | GENPNG=$ac_cv_path_GENPNG | |
14289 | if test -n "$GENPNG"; then | |
14290 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14291 | $as_echo "$GENPNG" >&6; } | |
14292 | else | |
14293 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14294 | $as_echo "no" >&6; } | |
14295 | fi | |
14296 | ||
14297 | ||
14298 | if test -n "$GENPNG"; then | |
14299 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14300 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14301 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14302 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14303 | $as_echo "ok" >&6; } | |
14304 | GENHTML="$GENHTML --frames" | |
14305 | else | |
14306 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14307 | $as_echo "not supported" >&6; } | |
14308 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14309 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14310 | GENPNG= | |
14311 | fi | |
14312 | fi | |
5556819a | 14313 | fi |
d0191583 JM |
14314 | |
14315 | ################################################################################ | |
ec6a6fbe AK |
14316 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14317 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14318 | # Check whether --enable-devmapper was given. |
14319 | if test "${enable_devmapper+set}" = set; then | |
14320 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14321 | fi |
14322 | ||
ec6a6fbe AK |
14323 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14324 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14325 | |
14326 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14327 | |
14328 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14329 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14330 | _ACEOF |
14331 | ||
14332 | fi | |
14333 | ||
a5f46f6a AK |
14334 | ################################################################################ |
14335 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14336 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14337 | # Check whether --enable-udev_sync was given. | |
14338 | if test "${enable_udev_sync+set}" = set; then | |
14339 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14340 | else | |
14341 | UDEV_SYNC=no | |
14342 | fi | |
14343 | ||
14344 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14345 | $as_echo "$UDEV_SYNC" >&6; } | |
14346 | ||
90c80887 AK |
14347 | if test x$UDEV_SYNC = xyes; then |
14348 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14349 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14350 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14351 | $as_echo_n "(cached) " >&6 | |
14352 | else | |
14353 | ac_check_lib_save_LIBS=$LIBS | |
14354 | LIBS="-ludev $LIBS" | |
14355 | cat >conftest.$ac_ext <<_ACEOF | |
14356 | /* confdefs.h. */ | |
14357 | _ACEOF | |
14358 | cat confdefs.h >>conftest.$ac_ext | |
14359 | cat >>conftest.$ac_ext <<_ACEOF | |
14360 | /* end confdefs.h. */ | |
14361 | ||
14362 | /* Override any GCC internal prototype to avoid an error. | |
14363 | Use char because int might match the return type of a GCC | |
14364 | builtin and then its argument prototype would still apply. */ | |
14365 | #ifdef __cplusplus | |
14366 | extern "C" | |
14367 | #endif | |
14368 | char udev_queue_get_udev_is_active (); | |
14369 | int | |
14370 | main () | |
14371 | { | |
14372 | return udev_queue_get_udev_is_active (); | |
14373 | ; | |
14374 | return 0; | |
14375 | } | |
14376 | _ACEOF | |
14377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14378 | if { (ac_try="$ac_link" | |
14379 | case "(($ac_try" in | |
14380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14381 | *) ac_try_echo=$ac_try;; | |
14382 | esac | |
14383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14384 | $as_echo "$ac_try_echo") >&5 | |
14385 | (eval "$ac_link") 2>conftest.er1 | |
14386 | ac_status=$? | |
14387 | grep -v '^ *+' conftest.er1 >conftest.err | |
14388 | rm -f conftest.er1 | |
14389 | cat conftest.err >&5 | |
14390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14391 | (exit $ac_status); } && { | |
14392 | test -z "$ac_c_werror_flag" || | |
14393 | test ! -s conftest.err | |
14394 | } && test -s conftest$ac_exeext && { | |
14395 | test "$cross_compiling" = yes || | |
14396 | $as_test_x conftest$ac_exeext | |
14397 | }; then | |
14398 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14399 | else | |
14400 | $as_echo "$as_me: failed program was:" >&5 | |
14401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14402 | ||
14403 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14404 | fi | |
14405 | ||
14406 | rm -rf conftest.dSYM | |
14407 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14408 | conftest$ac_exeext conftest.$ac_ext | |
14409 | LIBS=$ac_check_lib_save_LIBS | |
14410 | fi | |
14411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14412 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14413 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14414 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14415 | else |
5161ecb9 PR |
14416 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14417 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14418 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14419 | fi |
14420 | ||
14421 | ||
90c80887 | 14422 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14423 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14424 | _ACEOF |
14425 | ||
90c80887 AK |
14426 | fi |
14427 | ||
5161ecb9 PR |
14428 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14429 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14430 | # Check whether --enable-udev_rules was given. | |
14431 | if test "${enable_udev_rules+set}" = set; then | |
14432 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14433 | else | |
14434 | UDEV_RULES=$UDEV_SYNC | |
14435 | fi | |
14436 | ||
14437 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14438 | $as_echo "$UDEV_RULES" >&6; } | |
14439 | ||
93bd259b AK |
14440 | ################################################################################ |
14441 | # Check whether --enable-compat was given. | |
14442 | if test "${enable_compat+set}" = set; then | |
14443 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14444 | else | |
14445 | DM_COMPAT=no | |
14446 | fi | |
14447 | ||
14448 | ||
95eaa683 AK |
14449 | ################################################################################ |
14450 | # Check whether --enable-units-compat was given. | |
14451 | if test "${enable_units_compat+set}" = set; then | |
14452 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14453 | else | |
14454 | UNITS_COMPAT=no | |
14455 | fi | |
14456 | ||
14457 | ||
14458 | if test x$UNITS_COMPAT = xyes; then | |
14459 | ||
14460 | cat >>confdefs.h <<\_ACEOF | |
14461 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14462 | _ACEOF | |
14463 | ||
14464 | fi | |
14465 | ||
93bd259b AK |
14466 | ################################################################################ |
14467 | # Check whether --enable-ioctl was given. | |
14468 | if test "${enable_ioctl+set}" = set; then | |
14469 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14470 | fi | |
14471 | ||
14472 | ||
d0191583 | 14473 | ################################################################################ |
ec6a6fbe AK |
14474 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14475 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14476 | # Check whether --enable-o_direct was given. |
14477 | if test "${enable_o_direct+set}" = set; then | |
14478 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14479 | fi |
ad6254c5 | 14480 | |
ec6a6fbe AK |
14481 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14482 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14483 | |
d0191583 | 14484 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14485 | |
d0191583 JM |
14486 | cat >>confdefs.h <<\_ACEOF |
14487 | #define O_DIRECT_SUPPORT 1 | |
14488 | _ACEOF | |
ad6254c5 | 14489 | |
d0191583 | 14490 | fi |
ad6254c5 | 14491 | |
572fefeb AK |
14492 | ################################################################################ |
14493 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14494 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14495 | # Check whether --enable-applib was given. | |
14496 | if test "${enable_applib+set}" = set; then | |
14497 | enableval=$enable_applib; APPLIB=$enableval | |
14498 | else | |
14499 | APPLIB=no | |
14500 | fi | |
14501 | ||
14502 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14503 | $as_echo "$APPLIB" >&6; } | |
14504 | ||
14505 | test x$APPLIB = xyes \ | |
14506 | && LVM2APP_LIB=-llvm2app \ | |
14507 | || LVM2APP_LIB= | |
14508 | ||
d0191583 | 14509 | ################################################################################ |
ec6a6fbe AK |
14510 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14511 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14512 | # Check whether --enable-cmdlib was given. |
14513 | if test "${enable_cmdlib+set}" = set; then | |
14514 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14515 | else |
d0191583 JM |
14516 | CMDLIB=no |
14517 | fi | |
8a2fc586 | 14518 | |
ec6a6fbe AK |
14519 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14520 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14521 | |
2a9a80c9 | 14522 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14523 | && LVM2CMD_LIB=-llvm2cmd \ |
14524 | || LVM2CMD_LIB= | |
14525 | ||
93bd259b AK |
14526 | ################################################################################ |
14527 | # Check whether --enable-pkgconfig was given. | |
14528 | if test "${enable_pkgconfig+set}" = set; then | |
14529 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14530 | else | |
14531 | PKGCONFIG=no | |
14532 | fi | |
14533 | ||
2a9a80c9 | 14534 | |
23b059e7 ZK |
14535 | ################################################################################ |
14536 | # Check whether --enable-write_install was given. | |
14537 | if test "${enable_write_install+set}" = set; then | |
14538 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14539 | else | |
14540 | WRITE_INSTALL=no | |
14541 | fi | |
14542 | ||
14543 | ||
d0191583 | 14544 | ################################################################################ |
ec6a6fbe AK |
14545 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14546 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14547 | # Check whether --enable-fsadm was given. |
14548 | if test "${enable_fsadm+set}" = set; then | |
14549 | enableval=$enable_fsadm; FSADM=$enableval | |
14550 | fi | |
8a2fc586 | 14551 | |
ec6a6fbe AK |
14552 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14553 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14554 | |
d0191583 | 14555 | ################################################################################ |
ec6a6fbe AK |
14556 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14557 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14558 | # Check whether --enable-dmeventd was given. |
14559 | if test "${enable_dmeventd+set}" = set; then | |
14560 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14561 | fi | |
ad6254c5 | 14562 | |
ec6a6fbe AK |
14563 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14564 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14565 | |
93bd259b AK |
14566 | BUILD_DMEVENTD=$DMEVENTD |
14567 | ||
2a9a80c9 PR |
14568 | if test x$DMEVENTD = xyes; then |
14569 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14570 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14571 | " >&5 |
ec6a6fbe | 14572 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14573 | " >&2;} |
d0191583 | 14574 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14575 | fi |
14576 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14577 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14578 | " >&5 |
ec6a6fbe | 14579 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14580 | " >&2;} |
14581 | { (exit 1); exit 1; }; } | |
14582 | fi | |
ad6254c5 | 14583 | fi |
7a197a62 | 14584 | |
d0191583 JM |
14585 | if test x$DMEVENTD = xyes; then |
14586 | ||
14587 | cat >>confdefs.h <<\_ACEOF | |
14588 | #define DMEVENTD 1 | |
ad6254c5 AK |
14589 | _ACEOF |
14590 | ||
ad6254c5 | 14591 | fi |
93bd259b AK |
14592 | |
14593 | ################################################################################ | |
14594 | ||
ec6a6fbe AK |
14595 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14596 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14597 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14598 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14599 | else |
14600 | ac_check_lib_save_LIBS=$LIBS | |
14601 | LIBS="-lc $LIBS" | |
14602 | cat >conftest.$ac_ext <<_ACEOF | |
14603 | /* confdefs.h. */ | |
14604 | _ACEOF | |
14605 | cat confdefs.h >>conftest.$ac_ext | |
14606 | cat >>conftest.$ac_ext <<_ACEOF | |
14607 | /* end confdefs.h. */ | |
14608 | ||
14609 | /* Override any GCC internal prototype to avoid an error. | |
14610 | Use char because int might match the return type of a GCC | |
14611 | builtin and then its argument prototype would still apply. */ | |
14612 | #ifdef __cplusplus | |
14613 | extern "C" | |
14614 | #endif | |
14615 | char getline (); | |
14616 | int | |
14617 | main () | |
14618 | { | |
14619 | return getline (); | |
14620 | ; | |
14621 | return 0; | |
14622 | } | |
14623 | _ACEOF | |
14624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14625 | if { (ac_try="$ac_link" | |
14626 | case "(($ac_try" in | |
14627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14628 | *) ac_try_echo=$ac_try;; | |
14629 | esac | |
ec6a6fbe AK |
14630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14631 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14632 | (eval "$ac_link") 2>conftest.er1 |
14633 | ac_status=$? | |
14634 | grep -v '^ *+' conftest.er1 >conftest.err | |
14635 | rm -f conftest.er1 | |
14636 | cat conftest.err >&5 | |
ec6a6fbe | 14637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14638 | (exit $ac_status); } && { |
14639 | test -z "$ac_c_werror_flag" || | |
14640 | test ! -s conftest.err | |
ec6a6fbe AK |
14641 | } && test -s conftest$ac_exeext && { |
14642 | test "$cross_compiling" = yes || | |
14643 | $as_test_x conftest$ac_exeext | |
14644 | }; then | |
93bd259b AK |
14645 | ac_cv_lib_c_getline=yes |
14646 | else | |
ec6a6fbe | 14647 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14648 | sed 's/^/| /' conftest.$ac_ext >&5 |
14649 | ||
14650 | ac_cv_lib_c_getline=no | |
14651 | fi | |
14652 | ||
ec6a6fbe | 14653 | rm -rf conftest.dSYM |
93bd259b AK |
14654 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14655 | conftest$ac_exeext conftest.$ac_ext | |
14656 | LIBS=$ac_check_lib_save_LIBS | |
14657 | fi | |
ec6a6fbe AK |
14658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14659 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14660 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14661 | |
14662 | cat >>confdefs.h <<\_ACEOF | |
14663 | #define HAVE_GETLINE 1 | |
14664 | _ACEOF | |
14665 | ||
14666 | fi | |
14667 | ||
14668 | ||
14669 | ################################################################################ | |
14670 | ||
ec6a6fbe AK |
14671 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14672 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14673 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14674 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14675 | else |
14676 | ac_check_lib_save_LIBS=$LIBS | |
14677 | LIBS="-lc $LIBS" | |
14678 | cat >conftest.$ac_ext <<_ACEOF | |
14679 | /* confdefs.h. */ | |
14680 | _ACEOF | |
14681 | cat confdefs.h >>conftest.$ac_ext | |
14682 | cat >>conftest.$ac_ext <<_ACEOF | |
14683 | /* end confdefs.h. */ | |
14684 | ||
14685 | /* Override any GCC internal prototype to avoid an error. | |
14686 | Use char because int might match the return type of a GCC | |
14687 | builtin and then its argument prototype would still apply. */ | |
14688 | #ifdef __cplusplus | |
14689 | extern "C" | |
14690 | #endif | |
14691 | char canonicalize_file_name (); | |
14692 | int | |
14693 | main () | |
14694 | { | |
14695 | return canonicalize_file_name (); | |
14696 | ; | |
14697 | return 0; | |
14698 | } | |
14699 | _ACEOF | |
14700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14701 | if { (ac_try="$ac_link" | |
14702 | case "(($ac_try" in | |
14703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14704 | *) ac_try_echo=$ac_try;; | |
14705 | esac | |
ec6a6fbe AK |
14706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14707 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14708 | (eval "$ac_link") 2>conftest.er1 |
14709 | ac_status=$? | |
14710 | grep -v '^ *+' conftest.er1 >conftest.err | |
14711 | rm -f conftest.er1 | |
14712 | cat conftest.err >&5 | |
ec6a6fbe | 14713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14714 | (exit $ac_status); } && { |
14715 | test -z "$ac_c_werror_flag" || | |
14716 | test ! -s conftest.err | |
ec6a6fbe AK |
14717 | } && test -s conftest$ac_exeext && { |
14718 | test "$cross_compiling" = yes || | |
14719 | $as_test_x conftest$ac_exeext | |
14720 | }; then | |
93bd259b AK |
14721 | ac_cv_lib_c_canonicalize_file_name=yes |
14722 | else | |
ec6a6fbe | 14723 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14724 | sed 's/^/| /' conftest.$ac_ext >&5 |
14725 | ||
14726 | ac_cv_lib_c_canonicalize_file_name=no | |
14727 | fi | |
14728 | ||
ec6a6fbe | 14729 | rm -rf conftest.dSYM |
93bd259b AK |
14730 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14731 | conftest$ac_exeext conftest.$ac_ext | |
14732 | LIBS=$ac_check_lib_save_LIBS | |
14733 | fi | |
ec6a6fbe AK |
14734 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
14735 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14736 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
14737 | |
14738 | cat >>confdefs.h <<\_ACEOF | |
14739 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
14740 | _ACEOF | |
14741 | ||
14742 | fi | |
14743 | ||
14744 | ||
d0191583 JM |
14745 | ################################################################################ |
14746 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
14747 | then exec_prefix=""; | |
14748 | fi; | |
ad6254c5 | 14749 | |
ad6254c5 | 14750 | ################################################################################ |
ec6a6fbe AK |
14751 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
14752 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 14753 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 14754 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14755 | else |
14756 | ac_check_lib_save_LIBS=$LIBS | |
14757 | LIBS="-ldl $LIBS" | |
14758 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14759 | /* confdefs.h. */ |
14760 | _ACEOF | |
14761 | cat confdefs.h >>conftest.$ac_ext | |
14762 | cat >>conftest.$ac_ext <<_ACEOF | |
14763 | /* end confdefs.h. */ | |
14764 | ||
7a197a62 AK |
14765 | /* Override any GCC internal prototype to avoid an error. |
14766 | Use char because int might match the return type of a GCC | |
14767 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14768 | #ifdef __cplusplus |
14769 | extern "C" | |
14770 | #endif | |
ad6254c5 AK |
14771 | char dlopen (); |
14772 | int | |
14773 | main () | |
14774 | { | |
7a197a62 | 14775 | return dlopen (); |
ad6254c5 AK |
14776 | ; |
14777 | return 0; | |
14778 | } | |
14779 | _ACEOF | |
14780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14781 | if { (ac_try="$ac_link" |
14782 | case "(($ac_try" in | |
14783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14784 | *) ac_try_echo=$ac_try;; | |
14785 | esac | |
ec6a6fbe AK |
14786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14787 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14788 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14789 | ac_status=$? |
8a2fc586 AK |
14790 | grep -v '^ *+' conftest.er1 >conftest.err |
14791 | rm -f conftest.er1 | |
14792 | cat conftest.err >&5 | |
ec6a6fbe | 14793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14794 | (exit $ac_status); } && { |
14795 | test -z "$ac_c_werror_flag" || | |
14796 | test ! -s conftest.err | |
ec6a6fbe AK |
14797 | } && test -s conftest$ac_exeext && { |
14798 | test "$cross_compiling" = yes || | |
14799 | $as_test_x conftest$ac_exeext | |
14800 | }; then | |
ad6254c5 AK |
14801 | ac_cv_lib_dl_dlopen=yes |
14802 | else | |
ec6a6fbe | 14803 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14804 | sed 's/^/| /' conftest.$ac_ext >&5 |
14805 | ||
7a197a62 | 14806 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 14807 | fi |
7a197a62 | 14808 | |
ec6a6fbe | 14809 | rm -rf conftest.dSYM |
25fbec5b | 14810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14811 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
14812 | LIBS=$ac_check_lib_save_LIBS |
14813 | fi | |
ec6a6fbe AK |
14814 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
14815 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14816 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 14817 | |
72b2cb61 AK |
14818 | |
14819 | cat >>confdefs.h <<\_ACEOF | |
14820 | #define HAVE_LIBDL 1 | |
14821 | _ACEOF | |
14822 | ||
19a2c6e0 ZK |
14823 | DL_LIBS="-ldl" |
14824 | HAVE_LIBDL=yes | |
ad6254c5 | 14825 | else |
19a2c6e0 ZK |
14826 | |
14827 | DL_LIBS= | |
ad6254c5 AK |
14828 | HAVE_LIBDL=no |
14829 | fi | |
14830 | ||
19a2c6e0 | 14831 | |
ad6254c5 AK |
14832 | ################################################################################ |
14833 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
14834 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
14835 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 14836 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 14837 | " >&5 |
ec6a6fbe | 14838 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
14839 | " >&2;} |
14840 | { (exit 1); exit 1; }; } | |
14841 | fi | |
14842 | ||
f30875db ZK |
14843 | ################################################################################ |
14844 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
14845 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
14846 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
14847 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
14848 | $as_echo_n "(cached) " >&6 | |
14849 | else | |
14850 | ac_check_lib_save_LIBS=$LIBS | |
14851 | LIBS="-lpthread $LIBS" | |
14852 | cat >conftest.$ac_ext <<_ACEOF | |
14853 | /* confdefs.h. */ | |
14854 | _ACEOF | |
14855 | cat confdefs.h >>conftest.$ac_ext | |
14856 | cat >>conftest.$ac_ext <<_ACEOF | |
14857 | /* end confdefs.h. */ | |
14858 | ||
14859 | /* Override any GCC internal prototype to avoid an error. | |
14860 | Use char because int might match the return type of a GCC | |
14861 | builtin and then its argument prototype would still apply. */ | |
14862 | #ifdef __cplusplus | |
14863 | extern "C" | |
14864 | #endif | |
14865 | char pthread_mutex_lock (); | |
14866 | int | |
14867 | main () | |
14868 | { | |
14869 | return pthread_mutex_lock (); | |
14870 | ; | |
14871 | return 0; | |
14872 | } | |
14873 | _ACEOF | |
14874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14875 | if { (ac_try="$ac_link" | |
14876 | case "(($ac_try" in | |
14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14878 | *) ac_try_echo=$ac_try;; | |
14879 | esac | |
14880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14881 | $as_echo "$ac_try_echo") >&5 | |
14882 | (eval "$ac_link") 2>conftest.er1 | |
14883 | ac_status=$? | |
14884 | grep -v '^ *+' conftest.er1 >conftest.err | |
14885 | rm -f conftest.er1 | |
14886 | cat conftest.err >&5 | |
14887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14888 | (exit $ac_status); } && { | |
14889 | test -z "$ac_c_werror_flag" || | |
14890 | test ! -s conftest.err | |
14891 | } && test -s conftest$ac_exeext && { | |
14892 | test "$cross_compiling" = yes || | |
14893 | $as_test_x conftest$ac_exeext | |
14894 | }; then | |
14895 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
14896 | else | |
14897 | $as_echo "$as_me: failed program was:" >&5 | |
14898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14899 | ||
14900 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
14901 | fi | |
14902 | ||
14903 | rm -rf conftest.dSYM | |
14904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14905 | conftest$ac_exeext conftest.$ac_ext | |
14906 | LIBS=$ac_check_lib_save_LIBS | |
14907 | fi | |
14908 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
14909 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
14910 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
14911 | PTHREAD_LIBS="-lpthread" | |
14912 | else | |
14913 | hard_bailout | |
14914 | fi | |
14915 | ||
14916 | fi | |
14917 | ||
d0191583 | 14918 | ################################################################################ |
ec6a6fbe AK |
14919 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
14920 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
14921 | # Check whether --enable-selinux was given. |
14922 | if test "${enable_selinux+set}" = set; then | |
14923 | enableval=$enable_selinux; SELINUX=$enableval | |
14924 | fi | |
14925 | ||
ec6a6fbe AK |
14926 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
14927 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 14928 | |
ad6254c5 AK |
14929 | ################################################################################ |
14930 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
14931 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
14932 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 14933 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 14934 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
14935 | else |
14936 | ac_check_lib_save_LIBS=$LIBS | |
14937 | LIBS="-lsepol $LIBS" | |
14938 | cat >conftest.$ac_ext <<_ACEOF | |
14939 | /* confdefs.h. */ | |
14940 | _ACEOF | |
14941 | cat confdefs.h >>conftest.$ac_ext | |
14942 | cat >>conftest.$ac_ext <<_ACEOF | |
14943 | /* end confdefs.h. */ | |
14944 | ||
7a197a62 AK |
14945 | /* Override any GCC internal prototype to avoid an error. |
14946 | Use char because int might match the return type of a GCC | |
14947 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
14948 | #ifdef __cplusplus |
14949 | extern "C" | |
14950 | #endif | |
8a2fc586 AK |
14951 | char sepol_check_context (); |
14952 | int | |
14953 | main () | |
14954 | { | |
7a197a62 | 14955 | return sepol_check_context (); |
8a2fc586 AK |
14956 | ; |
14957 | return 0; | |
14958 | } | |
14959 | _ACEOF | |
14960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14961 | if { (ac_try="$ac_link" |
14962 | case "(($ac_try" in | |
14963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14964 | *) ac_try_echo=$ac_try;; | |
14965 | esac | |
ec6a6fbe AK |
14966 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14967 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14968 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
14969 | ac_status=$? |
14970 | grep -v '^ *+' conftest.er1 >conftest.err | |
14971 | rm -f conftest.er1 | |
14972 | cat conftest.err >&5 | |
ec6a6fbe | 14973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14974 | (exit $ac_status); } && { |
14975 | test -z "$ac_c_werror_flag" || | |
14976 | test ! -s conftest.err | |
ec6a6fbe AK |
14977 | } && test -s conftest$ac_exeext && { |
14978 | test "$cross_compiling" = yes || | |
14979 | $as_test_x conftest$ac_exeext | |
14980 | }; then | |
8a2fc586 AK |
14981 | ac_cv_lib_sepol_sepol_check_context=yes |
14982 | else | |
ec6a6fbe | 14983 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
14984 | sed 's/^/| /' conftest.$ac_ext >&5 |
14985 | ||
7a197a62 | 14986 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 14987 | fi |
7a197a62 | 14988 | |
ec6a6fbe | 14989 | rm -rf conftest.dSYM |
25fbec5b | 14990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
14991 | conftest$ac_exeext conftest.$ac_ext |
14992 | LIBS=$ac_check_lib_save_LIBS | |
14993 | fi | |
ec6a6fbe AK |
14994 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
14995 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
14996 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 14997 | |
d0191583 JM |
14998 | |
14999 | cat >>confdefs.h <<\_ACEOF | |
15000 | #define HAVE_SEPOL 1 | |
15001 | _ACEOF | |
15002 | ||
f8f6ec92 ZK |
15003 | SELINUX_LIBS="-lsepol" |
15004 | fi | |
15005 | ||
8a2fc586 | 15006 | |
ec6a6fbe AK |
15007 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
15008 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 15009 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 15010 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15011 | else |
15012 | ac_check_lib_save_LIBS=$LIBS | |
15013 | LIBS="-lselinux $LIBS" | |
15014 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15015 | /* confdefs.h. */ |
15016 | _ACEOF | |
15017 | cat confdefs.h >>conftest.$ac_ext | |
15018 | cat >>conftest.$ac_ext <<_ACEOF | |
15019 | /* end confdefs.h. */ | |
15020 | ||
7a197a62 AK |
15021 | /* Override any GCC internal prototype to avoid an error. |
15022 | Use char because int might match the return type of a GCC | |
15023 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15024 | #ifdef __cplusplus |
15025 | extern "C" | |
15026 | #endif | |
ad6254c5 AK |
15027 | char is_selinux_enabled (); |
15028 | int | |
15029 | main () | |
15030 | { | |
7a197a62 | 15031 | return is_selinux_enabled (); |
ad6254c5 AK |
15032 | ; |
15033 | return 0; | |
15034 | } | |
15035 | _ACEOF | |
15036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15037 | if { (ac_try="$ac_link" |
15038 | case "(($ac_try" in | |
15039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15040 | *) ac_try_echo=$ac_try;; | |
15041 | esac | |
ec6a6fbe AK |
15042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15043 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15044 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15045 | ac_status=$? |
8a2fc586 AK |
15046 | grep -v '^ *+' conftest.er1 >conftest.err |
15047 | rm -f conftest.er1 | |
15048 | cat conftest.err >&5 | |
ec6a6fbe | 15049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15050 | (exit $ac_status); } && { |
15051 | test -z "$ac_c_werror_flag" || | |
15052 | test ! -s conftest.err | |
ec6a6fbe AK |
15053 | } && test -s conftest$ac_exeext && { |
15054 | test "$cross_compiling" = yes || | |
15055 | $as_test_x conftest$ac_exeext | |
15056 | }; then | |
ad6254c5 AK |
15057 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15058 | else | |
ec6a6fbe | 15059 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15060 | sed 's/^/| /' conftest.$ac_ext >&5 |
15061 | ||
7a197a62 | 15062 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15063 | fi |
7a197a62 | 15064 | |
ec6a6fbe | 15065 | rm -rf conftest.dSYM |
25fbec5b | 15066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15067 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15068 | LIBS=$ac_check_lib_save_LIBS |
15069 | fi | |
ec6a6fbe AK |
15070 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15071 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15072 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15073 | |
72b2cb61 | 15074 | |
f8f6ec92 ZK |
15075 | for ac_header in selinux/selinux.h |
15076 | do | |
15077 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15079 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15080 | $as_echo_n "checking for $ac_header... " >&6; } | |
15081 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15082 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15083 | fi |
15084 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15085 | $as_echo "$as_val"'` | |
15086 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15087 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15088 | else |
f8f6ec92 ZK |
15089 | # Is the header compilable? |
15090 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15091 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
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. */ | |
f8f6ec92 ZK |
15098 | $ac_includes_default |
15099 | #include <$ac_header> | |
66e941e8 | 15100 | _ACEOF |
f8f6ec92 ZK |
15101 | rm -f conftest.$ac_objext |
15102 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15103 | case "(($ac_try" in |
15104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15105 | *) ac_try_echo=$ac_try;; | |
15106 | esac | |
ec6a6fbe AK |
15107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15108 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15109 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15110 | ac_status=$? |
15111 | grep -v '^ *+' conftest.er1 >conftest.err | |
15112 | rm -f conftest.er1 | |
15113 | cat conftest.err >&5 | |
ec6a6fbe | 15114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15115 | (exit $ac_status); } && { |
15116 | test -z "$ac_c_werror_flag" || | |
15117 | test ! -s conftest.err | |
f8f6ec92 ZK |
15118 | } && test -s conftest.$ac_objext; then |
15119 | ac_header_compiler=yes | |
15120 | else | |
15121 | $as_echo "$as_me: failed program was:" >&5 | |
15122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15123 | ||
15124 | ac_header_compiler=no | |
15125 | fi | |
15126 | ||
15127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15128 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15129 | $as_echo "$ac_header_compiler" >&6; } | |
15130 | ||
15131 | # Is the header present? | |
15132 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15133 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15134 | cat >conftest.$ac_ext <<_ACEOF | |
15135 | /* confdefs.h. */ | |
15136 | _ACEOF | |
15137 | cat confdefs.h >>conftest.$ac_ext | |
15138 | cat >>conftest.$ac_ext <<_ACEOF | |
15139 | /* end confdefs.h. */ | |
15140 | #include <$ac_header> | |
15141 | _ACEOF | |
15142 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15143 | case "(($ac_try" in | |
15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15145 | *) ac_try_echo=$ac_try;; | |
15146 | esac | |
15147 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15148 | $as_echo "$ac_try_echo") >&5 | |
15149 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15150 | ac_status=$? | |
15151 | grep -v '^ *+' conftest.er1 >conftest.err | |
15152 | rm -f conftest.er1 | |
15153 | cat conftest.err >&5 | |
15154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15155 | (exit $ac_status); } >/dev/null && { | |
15156 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15157 | test ! -s conftest.err | |
ec6a6fbe | 15158 | }; then |
f8f6ec92 | 15159 | ac_header_preproc=yes |
66e941e8 | 15160 | else |
ec6a6fbe | 15161 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15162 | sed 's/^/| /' conftest.$ac_ext >&5 |
15163 | ||
f8f6ec92 ZK |
15164 | ac_header_preproc=no |
15165 | fi | |
15166 | ||
15167 | rm -f conftest.err conftest.$ac_ext | |
15168 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15169 | $as_echo "$ac_header_preproc" >&6; } | |
15170 | ||
15171 | # So? What about this header? | |
15172 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15173 | yes:no: ) | |
15174 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15175 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15177 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15178 | ac_header_preproc=yes | |
15179 | ;; | |
15180 | no:yes:* ) | |
15181 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15182 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15183 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15184 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15185 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15186 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15187 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15188 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15190 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15192 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15193 | |
f8f6ec92 ZK |
15194 | ;; |
15195 | esac | |
15196 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15197 | $as_echo_n "checking for $ac_header... " >&6; } | |
15198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15199 | $as_echo_n "(cached) " >&6 | |
15200 | else | |
15201 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15202 | fi |
f8f6ec92 ZK |
15203 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15204 | $as_echo "$as_val"'` | |
15205 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15206 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15207 | |
66e941e8 | 15208 | fi |
f8f6ec92 ZK |
15209 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15210 | $as_echo "$as_val"'` | |
15211 | if test "x$as_val" = x""yes; then | |
15212 | cat >>confdefs.h <<_ACEOF | |
15213 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15214 | _ACEOF | |
15215 | ||
66e941e8 | 15216 | else |
f8f6ec92 | 15217 | hard_bailout |
66e941e8 | 15218 | fi |
f8f6ec92 ZK |
15219 | |
15220 | done | |
15221 | ||
15222 | ||
15223 | cat >>confdefs.h <<\_ACEOF | |
15224 | #define HAVE_SELINUX 1 | |
15225 | _ACEOF | |
15226 | ||
15227 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15228 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15229 | HAVE_SELINUX=yes |
15230 | else | |
15231 | ||
15232 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15233 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15234 | SELINUX_LIBS= | |
f7f0854e | 15235 | SELINUX_PC= |
f8f6ec92 | 15236 | HAVE_SELINUX=no |
66e941e8 JM |
15237 | fi |
15238 | ||
ad6254c5 AK |
15239 | fi |
15240 | ||
8b1a3214 AK |
15241 | ################################################################################ |
15242 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15243 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15244 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15245 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15246 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15247 | else |
15248 | ac_check_lib_save_LIBS=$LIBS | |
15249 | LIBS="-lrt $LIBS" | |
15250 | cat >conftest.$ac_ext <<_ACEOF | |
15251 | /* confdefs.h. */ | |
15252 | _ACEOF | |
15253 | cat confdefs.h >>conftest.$ac_ext | |
15254 | cat >>conftest.$ac_ext <<_ACEOF | |
15255 | /* end confdefs.h. */ | |
15256 | ||
7a197a62 AK |
15257 | /* Override any GCC internal prototype to avoid an error. |
15258 | Use char because int might match the return type of a GCC | |
15259 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15260 | #ifdef __cplusplus |
15261 | extern "C" | |
15262 | #endif | |
8b1a3214 AK |
15263 | char clock_gettime (); |
15264 | int | |
15265 | main () | |
15266 | { | |
7a197a62 | 15267 | return clock_gettime (); |
8b1a3214 AK |
15268 | ; |
15269 | return 0; | |
15270 | } | |
15271 | _ACEOF | |
15272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15273 | if { (ac_try="$ac_link" |
15274 | case "(($ac_try" in | |
15275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15276 | *) ac_try_echo=$ac_try;; | |
15277 | esac | |
ec6a6fbe AK |
15278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15279 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15280 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15281 | ac_status=$? |
15282 | grep -v '^ *+' conftest.er1 >conftest.err | |
15283 | rm -f conftest.er1 | |
15284 | cat conftest.err >&5 | |
ec6a6fbe | 15285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15286 | (exit $ac_status); } && { |
15287 | test -z "$ac_c_werror_flag" || | |
15288 | test ! -s conftest.err | |
ec6a6fbe AK |
15289 | } && test -s conftest$ac_exeext && { |
15290 | test "$cross_compiling" = yes || | |
15291 | $as_test_x conftest$ac_exeext | |
15292 | }; then | |
8b1a3214 AK |
15293 | ac_cv_lib_rt_clock_gettime=yes |
15294 | else | |
ec6a6fbe | 15295 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15296 | sed 's/^/| /' conftest.$ac_ext >&5 |
15297 | ||
7a197a62 | 15298 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15299 | fi |
7a197a62 | 15300 | |
ec6a6fbe | 15301 | rm -rf conftest.dSYM |
25fbec5b | 15302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15303 | conftest$ac_exeext conftest.$ac_ext |
15304 | LIBS=$ac_check_lib_save_LIBS | |
15305 | fi | |
ec6a6fbe AK |
15306 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15307 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15308 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15309 | HAVE_REALTIME=yes |
15310 | else | |
15311 | HAVE_REALTIME=no | |
15312 | fi | |
15313 | ||
8b1a3214 AK |
15314 | |
15315 | if test x$HAVE_REALTIME = xyes; then | |
15316 | ||
15317 | cat >>confdefs.h <<\_ACEOF | |
15318 | #define HAVE_REALTIME 1 | |
15319 | _ACEOF | |
15320 | ||
15321 | LIBS="-lrt $LIBS" | |
15322 | else | |
ec6a6fbe AK |
15323 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15324 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15325 | fi |
15326 | fi | |
15327 | ||
ad6254c5 AK |
15328 | ################################################################################ |
15329 | ||
15330 | for ac_header in getopt.h | |
15331 | do | |
ec6a6fbe | 15332 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15334 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15335 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15336 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15337 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15338 | fi |
ec6a6fbe AK |
15339 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15340 | $as_echo "$as_val"'` | |
15341 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15342 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15343 | else |
15344 | # Is the header compilable? | |
ec6a6fbe AK |
15345 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15346 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
15354 | #include <$ac_header> | |
15355 | _ACEOF | |
15356 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15357 | if { (ac_try="$ac_compile" |
15358 | case "(($ac_try" in | |
15359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15360 | *) ac_try_echo=$ac_try;; | |
15361 | esac | |
ec6a6fbe AK |
15362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15363 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15364 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15365 | ac_status=$? |
8a2fc586 AK |
15366 | grep -v '^ *+' conftest.er1 >conftest.err |
15367 | rm -f conftest.er1 | |
15368 | cat conftest.err >&5 | |
ec6a6fbe | 15369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15370 | (exit $ac_status); } && { |
15371 | test -z "$ac_c_werror_flag" || | |
15372 | test ! -s conftest.err | |
15373 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15374 | ac_header_compiler=yes |
15375 | else | |
ec6a6fbe | 15376 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15377 | sed 's/^/| /' conftest.$ac_ext >&5 |
15378 | ||
7a197a62 | 15379 | ac_header_compiler=no |
ad6254c5 | 15380 | fi |
7a197a62 AK |
15381 | |
15382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15383 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15384 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15385 | |
15386 | # Is the header present? | |
ec6a6fbe AK |
15387 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15388 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15389 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15390 | /* confdefs.h. */ |
15391 | _ACEOF | |
15392 | cat confdefs.h >>conftest.$ac_ext | |
15393 | cat >>conftest.$ac_ext <<_ACEOF | |
15394 | /* end confdefs.h. */ | |
15395 | #include <$ac_header> | |
15396 | _ACEOF | |
7a197a62 AK |
15397 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15398 | case "(($ac_try" in | |
15399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15400 | *) ac_try_echo=$ac_try;; | |
15401 | esac | |
ec6a6fbe AK |
15402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15403 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15404 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15405 | ac_status=$? |
15406 | grep -v '^ *+' conftest.er1 >conftest.err | |
15407 | rm -f conftest.er1 | |
15408 | cat conftest.err >&5 | |
ec6a6fbe | 15409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15410 | (exit $ac_status); } >/dev/null && { |
15411 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15412 | test ! -s conftest.err | |
15413 | }; then | |
ad6254c5 AK |
15414 | ac_header_preproc=yes |
15415 | else | |
ec6a6fbe | 15416 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15417 | sed 's/^/| /' conftest.$ac_ext >&5 |
15418 | ||
15419 | ac_header_preproc=no | |
15420 | fi | |
7a197a62 | 15421 | |
ad6254c5 | 15422 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15423 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15424 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15425 | |
15426 | # So? What about this header? | |
8a2fc586 AK |
15427 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15428 | yes:no: ) | |
ec6a6fbe AK |
15429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15430 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15432 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15433 | ac_header_preproc=yes |
ad6254c5 | 15434 | ;; |
8a2fc586 | 15435 | no:yes:* ) |
ec6a6fbe AK |
15436 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15437 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15439 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15440 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15441 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15442 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15443 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15445 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15447 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15448 | |
ad6254c5 AK |
15449 | ;; |
15450 | esac | |
ec6a6fbe AK |
15451 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15452 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15453 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15454 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15455 | else |
8a2fc586 | 15456 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15457 | fi |
ec6a6fbe AK |
15458 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15459 | $as_echo "$as_val"'` | |
15460 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15461 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15462 | |
15463 | fi | |
ec6a6fbe AK |
15464 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15465 | $as_echo "$as_val"'` | |
15466 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15467 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15468 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15469 | _ACEOF |
72b2cb61 AK |
15470 | |
15471 | cat >>confdefs.h <<\_ACEOF | |
15472 | #define HAVE_GETOPTLONG 1 | |
15473 | _ACEOF | |
15474 | ||
ad6254c5 AK |
15475 | fi |
15476 | ||
15477 | done | |
15478 | ||
15479 | ||
15480 | ################################################################################ | |
06e459df | 15481 | if test x$READLINE != xno; then |
539f4a77 ZK |
15482 | lvm_saved_libs=$LIBS |
15483 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15484 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15485 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15486 | $as_echo_n "(cached) " >&6 | |
15487 | else | |
15488 | ac_func_search_save_LIBS=$LIBS | |
15489 | cat >conftest.$ac_ext <<_ACEOF | |
15490 | /* confdefs.h. */ | |
15491 | _ACEOF | |
15492 | cat confdefs.h >>conftest.$ac_ext | |
15493 | cat >>conftest.$ac_ext <<_ACEOF | |
15494 | /* end confdefs.h. */ | |
bc1024f8 | 15495 | |
539f4a77 ZK |
15496 | /* Override any GCC internal prototype to avoid an error. |
15497 | Use char because int might match the return type of a GCC | |
15498 | builtin and then its argument prototype would still apply. */ | |
15499 | #ifdef __cplusplus | |
15500 | extern "C" | |
15501 | #endif | |
15502 | char tgetent (); | |
15503 | int | |
15504 | main () | |
15505 | { | |
15506 | return tgetent (); | |
15507 | ; | |
15508 | return 0; | |
15509 | } | |
15510 | _ACEOF | |
15511 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15512 | if test -z "$ac_lib"; then | |
15513 | ac_res="none required" | |
15514 | else | |
15515 | ac_res=-l$ac_lib | |
15516 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15517 | fi | |
15518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15519 | if { (ac_try="$ac_link" | |
15520 | case "(($ac_try" in | |
15521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15522 | *) ac_try_echo=$ac_try;; | |
15523 | esac | |
15524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15525 | $as_echo "$ac_try_echo") >&5 | |
15526 | (eval "$ac_link") 2>conftest.er1 | |
15527 | ac_status=$? | |
15528 | grep -v '^ *+' conftest.er1 >conftest.err | |
15529 | rm -f conftest.er1 | |
15530 | cat conftest.err >&5 | |
15531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15532 | (exit $ac_status); } && { | |
15533 | test -z "$ac_c_werror_flag" || | |
15534 | test ! -s conftest.err | |
15535 | } && test -s conftest$ac_exeext && { | |
15536 | test "$cross_compiling" = yes || | |
15537 | $as_test_x conftest$ac_exeext | |
15538 | }; then | |
15539 | ac_cv_search_tgetent=$ac_res | |
15540 | else | |
15541 | $as_echo "$as_me: failed program was:" >&5 | |
15542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15543 | ||
15544 | ||
15545 | fi | |
15546 | ||
15547 | rm -rf conftest.dSYM | |
15548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15549 | conftest$ac_exeext | |
15550 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15551 | break | |
15552 | fi | |
15553 | done | |
15554 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15555 | : | |
15556 | else | |
15557 | ac_cv_search_tgetent=no | |
15558 | fi | |
15559 | rm conftest.$ac_ext | |
15560 | LIBS=$ac_func_search_save_LIBS | |
15561 | fi | |
15562 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15563 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15564 | ac_res=$ac_cv_search_tgetent | |
15565 | if test "$ac_res" != no; then | |
15566 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15567 | READLINE_LIBS=$ac_cv_search_tgetent | |
15568 | else | |
15569 | ||
15570 | if test "$READLINE" = yes; then | |
15571 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15572 | --enable-readline option (which is enabled by default). Either disable readline | |
15573 | support with --disable-readline or download and install termcap from: | |
15574 | ftp.gnu.org/gnu/termcap | |
15575 | Note: if you are using precompiled packages you will also need the development | |
15576 | package as well (which may be called termcap-devel or something similar). | |
15577 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15578 | not found either - but you could try installing that as well." >&5 | |
15579 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15580 | --enable-readline option (which is enabled by default). Either disable readline | |
15581 | support with --disable-readline or download and install termcap from: | |
15582 | ftp.gnu.org/gnu/termcap | |
15583 | Note: if you are using precompiled packages you will also need the development | |
15584 | package as well (which may be called termcap-devel or something similar). | |
15585 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15586 | not found either - but you could try installing that as well." >&2;} | |
15587 | { (exit 1); exit 1; }; } | |
15588 | fi | |
15589 | fi | |
15590 | ||
15591 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15592 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15593 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15594 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15595 | else |
15596 | ac_check_lib_save_LIBS=$LIBS | |
15597 | LIBS="-lreadline $LIBS" | |
15598 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15599 | /* confdefs.h. */ |
15600 | _ACEOF | |
15601 | cat confdefs.h >>conftest.$ac_ext | |
15602 | cat >>conftest.$ac_ext <<_ACEOF | |
15603 | /* end confdefs.h. */ | |
15604 | ||
7a197a62 AK |
15605 | /* Override any GCC internal prototype to avoid an error. |
15606 | Use char because int might match the return type of a GCC | |
15607 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15608 | #ifdef __cplusplus |
15609 | extern "C" | |
15610 | #endif | |
ad6254c5 AK |
15611 | char readline (); |
15612 | int | |
15613 | main () | |
15614 | { | |
7a197a62 | 15615 | return readline (); |
ad6254c5 AK |
15616 | ; |
15617 | return 0; | |
15618 | } | |
15619 | _ACEOF | |
15620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15621 | if { (ac_try="$ac_link" |
15622 | case "(($ac_try" in | |
15623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15624 | *) ac_try_echo=$ac_try;; | |
15625 | esac | |
ec6a6fbe AK |
15626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15627 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15628 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15629 | ac_status=$? |
8a2fc586 AK |
15630 | grep -v '^ *+' conftest.er1 >conftest.err |
15631 | rm -f conftest.er1 | |
15632 | cat conftest.err >&5 | |
ec6a6fbe | 15633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15634 | (exit $ac_status); } && { |
15635 | test -z "$ac_c_werror_flag" || | |
15636 | test ! -s conftest.err | |
ec6a6fbe AK |
15637 | } && test -s conftest$ac_exeext && { |
15638 | test "$cross_compiling" = yes || | |
15639 | $as_test_x conftest$ac_exeext | |
15640 | }; then | |
ad6254c5 AK |
15641 | ac_cv_lib_readline_readline=yes |
15642 | else | |
ec6a6fbe | 15643 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15644 | sed 's/^/| /' conftest.$ac_ext >&5 |
15645 | ||
7a197a62 | 15646 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15647 | fi |
7a197a62 | 15648 | |
ec6a6fbe | 15649 | rm -rf conftest.dSYM |
25fbec5b | 15650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15651 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15652 | LIBS=$ac_check_lib_save_LIBS |
15653 | fi | |
ec6a6fbe AK |
15654 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15655 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15656 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15657 | |
15658 | ||
15659 | cat >>confdefs.h <<\_ACEOF | |
15660 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15661 | _ACEOF |
15662 | ||
539f4a77 ZK |
15663 | LIBS=$lvm_saved_libs |
15664 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15665 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15666 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15667 | $as_echo_n "(cached) " >&6 | |
15668 | else | |
15669 | ac_check_lib_save_LIBS=$LIBS | |
15670 | LIBS="-lreadline $LIBS" | |
15671 | cat >conftest.$ac_ext <<_ACEOF | |
15672 | /* confdefs.h. */ | |
15673 | _ACEOF | |
15674 | cat confdefs.h >>conftest.$ac_ext | |
15675 | cat >>conftest.$ac_ext <<_ACEOF | |
15676 | /* end confdefs.h. */ | |
bc1024f8 | 15677 | |
539f4a77 ZK |
15678 | /* Override any GCC internal prototype to avoid an error. |
15679 | Use char because int might match the return type of a GCC | |
15680 | builtin and then its argument prototype would still apply. */ | |
15681 | #ifdef __cplusplus | |
15682 | extern "C" | |
15683 | #endif | |
15684 | char rl_line_buffer (); | |
15685 | int | |
15686 | main () | |
15687 | { | |
15688 | return rl_line_buffer (); | |
15689 | ; | |
15690 | return 0; | |
15691 | } | |
15692 | _ACEOF | |
15693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15694 | if { (ac_try="$ac_link" | |
15695 | case "(($ac_try" in | |
15696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15697 | *) ac_try_echo=$ac_try;; | |
15698 | esac | |
15699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15700 | $as_echo "$ac_try_echo") >&5 | |
15701 | (eval "$ac_link") 2>conftest.er1 | |
15702 | ac_status=$? | |
15703 | grep -v '^ *+' conftest.er1 >conftest.err | |
15704 | rm -f conftest.er1 | |
15705 | cat conftest.err >&5 | |
15706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15707 | (exit $ac_status); } && { | |
15708 | test -z "$ac_c_werror_flag" || | |
15709 | test ! -s conftest.err | |
15710 | } && test -s conftest$ac_exeext && { | |
15711 | test "$cross_compiling" = yes || | |
15712 | $as_test_x conftest$ac_exeext | |
15713 | }; then | |
15714 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 15715 | else |
539f4a77 ZK |
15716 | $as_echo "$as_me: failed program was:" >&5 |
15717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15718 | ||
15719 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
15720 | fi |
15721 | ||
539f4a77 ZK |
15722 | rm -rf conftest.dSYM |
15723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15724 | conftest$ac_exeext conftest.$ac_ext | |
15725 | LIBS=$ac_check_lib_save_LIBS | |
15726 | fi | |
15727 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
15728 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15729 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
15730 | READLINE_LIBS="-lreadline" | |
15731 | else | |
15732 | ||
15733 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
15734 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
15735 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
15736 | ||
15737 | fi | |
15738 | ||
15739 | else | |
15740 | ||
15741 | READLINE_LIBS= | |
15742 | if test "$READLINE" = yes; then | |
15743 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
15744 | --enable-readline option (which is enabled by default). Either disable readline |
15745 | support with --disable-readline or download and install readline from: | |
15746 | ftp.gnu.org/gnu/readline | |
15747 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15748 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 15749 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
15750 | --enable-readline option (which is enabled by default). Either disable readline |
15751 | support with --disable-readline or download and install readline from: | |
15752 | ftp.gnu.org/gnu/readline | |
15753 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15754 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 15755 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
15756 | fi |
15757 | fi | |
15758 | ||
15759 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
15760 | |
15761 | for ac_func in rl_completion_matches | |
15762 | do | |
ec6a6fbe AK |
15763 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15764 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15765 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 15766 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15767 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15768 | else |
15769 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15770 | /* confdefs.h. */ |
15771 | _ACEOF | |
15772 | cat confdefs.h >>conftest.$ac_ext | |
15773 | cat >>conftest.$ac_ext <<_ACEOF | |
15774 | /* end confdefs.h. */ | |
bc1024f8 | 15775 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 15776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 15777 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 15778 | |
ad6254c5 | 15779 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 15780 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
15781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
15782 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 15783 | |
ad6254c5 AK |
15784 | #ifdef __STDC__ |
15785 | # include <limits.h> | |
15786 | #else | |
15787 | # include <assert.h> | |
15788 | #endif | |
8a2fc586 | 15789 | |
bc1024f8 | 15790 | #undef $ac_func |
8a2fc586 | 15791 | |
7a197a62 AK |
15792 | /* Override any GCC internal prototype to avoid an error. |
15793 | Use char because int might match the return type of a GCC | |
15794 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15795 | #ifdef __cplusplus |
15796 | extern "C" | |
ad6254c5 | 15797 | #endif |
bc1024f8 | 15798 | char $ac_func (); |
ad6254c5 AK |
15799 | /* The GNU C library defines this for functions which it implements |
15800 | to always fail with ENOSYS. Some functions are actually named | |
15801 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 15802 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 15803 | choke me |
ad6254c5 AK |
15804 | #endif |
15805 | ||
15806 | int | |
15807 | main () | |
15808 | { | |
bc1024f8 | 15809 | return $ac_func (); |
ad6254c5 AK |
15810 | ; |
15811 | return 0; | |
15812 | } | |
15813 | _ACEOF | |
15814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15815 | if { (ac_try="$ac_link" |
15816 | case "(($ac_try" in | |
15817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15818 | *) ac_try_echo=$ac_try;; | |
15819 | esac | |
ec6a6fbe AK |
15820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15821 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15822 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15823 | ac_status=$? |
8a2fc586 AK |
15824 | grep -v '^ *+' conftest.er1 >conftest.err |
15825 | rm -f conftest.er1 | |
15826 | cat conftest.err >&5 | |
ec6a6fbe | 15827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15828 | (exit $ac_status); } && { |
15829 | test -z "$ac_c_werror_flag" || | |
15830 | test ! -s conftest.err | |
ec6a6fbe AK |
15831 | } && test -s conftest$ac_exeext && { |
15832 | test "$cross_compiling" = yes || | |
15833 | $as_test_x conftest$ac_exeext | |
15834 | }; then | |
bc1024f8 | 15835 | eval "$as_ac_var=yes" |
ad6254c5 | 15836 | else |
ec6a6fbe | 15837 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15838 | sed 's/^/| /' conftest.$ac_ext >&5 |
15839 | ||
bc1024f8 | 15840 | eval "$as_ac_var=no" |
ad6254c5 | 15841 | fi |
7a197a62 | 15842 | |
ec6a6fbe | 15843 | rm -rf conftest.dSYM |
25fbec5b | 15844 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15845 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 15846 | fi |
ec6a6fbe AK |
15847 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15848 | $as_echo "$as_val"'` | |
15849 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15850 | $as_echo "$ac_res" >&6; } | |
15851 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15852 | $as_echo "$as_val"'` | |
15853 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 15854 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15855 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
15856 | _ACEOF |
15857 | ||
15858 | fi | |
bc1024f8 | 15859 | done |
ad6254c5 | 15860 | |
539f4a77 | 15861 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
15862 | fi |
15863 | ||
15864 | ################################################################################ | |
ec6a6fbe AK |
15865 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
15866 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 15867 | # Check whether --enable-nls was given. |
ad6254c5 | 15868 | if test "${enable_nls+set}" = set; then |
7a197a62 | 15869 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
15870 | else |
15871 | INTL=no | |
7a197a62 AK |
15872 | fi |
15873 | ||
ec6a6fbe AK |
15874 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
15875 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
15876 | |
15877 | if test x$INTL = xyes; then | |
93bd259b | 15878 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
15879 | INTL_PACKAGE="lvm2" |
15880 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15881 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
15882 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15883 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 15884 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 15885 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15886 | else |
15887 | case $MSGFMT in | |
15888 | [\\/]* | ?:[\\/]*) | |
15889 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15890 | ;; | |
15891 | *) | |
15892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15893 | for as_dir in $PATH | |
15894 | do | |
15895 | IFS=$as_save_IFS | |
15896 | test -z "$as_dir" && as_dir=. | |
15897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 15899 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15900 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
15901 | break 2 |
15902 | fi | |
15903 | done | |
15904 | done | |
7a197a62 | 15905 | IFS=$as_save_IFS |
ad6254c5 AK |
15906 | |
15907 | ;; | |
15908 | esac | |
15909 | fi | |
15910 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 15911 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
15912 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
15913 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 15914 | else |
ec6a6fbe AK |
15915 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15916 | $as_echo "no" >&6; } | |
ad6254c5 AK |
15917 | fi |
15918 | ||
7a197a62 | 15919 | |
ad6254c5 | 15920 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 15921 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 15922 | " >&5 |
ec6a6fbe | 15923 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
15924 | " >&2;} |
15925 | { (exit 1); exit 1; }; } | |
15926 | fi; | |
15927 | ||
15928 | ||
7a197a62 | 15929 | # Check whether --with-localedir was given. |
ad6254c5 | 15930 | if test "${with_localedir+set}" = set; then |
71082be4 | 15931 | withval=$with_localedir; LOCALEDIR=$withval |
ad6254c5 | 15932 | else |
71082be4 | 15933 | LOCALEDIR='${prefix}/share/locale' |
7a197a62 AK |
15934 | fi |
15935 | ||
ad6254c5 AK |
15936 | fi |
15937 | ||
15938 | ################################################################################ | |
15939 | ||
7a197a62 | 15940 | # Check whether --with-confdir was given. |
ad6254c5 | 15941 | if test "${with_confdir+set}" = set; then |
71082be4 | 15942 | withval=$with_confdir; CONFDIR=$withval |
ad6254c5 | 15943 | else |
71082be4 | 15944 | CONFDIR="/etc" |
7a197a62 AK |
15945 | fi |
15946 | ||
ad6254c5 AK |
15947 | |
15948 | ||
7a197a62 | 15949 | # Check whether --with-staticdir was given. |
ad6254c5 | 15950 | if test "${with_staticdir+set}" = set; then |
71082be4 | 15951 | withval=$with_staticdir; STATICDIR=$withval |
ad6254c5 | 15952 | else |
71082be4 | 15953 | STATICDIR='${exec_prefix}/sbin' |
7a197a62 | 15954 | fi |
ad6254c5 | 15955 | |
33f732c5 | 15956 | |
7a197a62 | 15957 | |
68f2de6d AK |
15958 | # Check whether --with-usrlibdir was given. |
15959 | if test "${with_usrlibdir+set}" = set; then | |
71082be4 | 15960 | withval=$with_usrlibdir; usrlibdir=$withval |
68f2de6d | 15961 | else |
71082be4 | 15962 | usrlibdir='${prefix}/lib' |
68f2de6d AK |
15963 | fi |
15964 | ||
15965 | ||
15966 | ||
15967 | # Check whether --with-usrsbindir was given. | |
15968 | if test "${with_usrsbindir+set}" = set; then | |
71082be4 | 15969 | withval=$with_usrsbindir; usrsbindir=$withval |
68f2de6d | 15970 | else |
71082be4 | 15971 | usrsbindir='${prefix}/sbin' |
68f2de6d AK |
15972 | fi |
15973 | ||
15974 | ||
a5f46f6a AK |
15975 | ################################################################################ |
15976 | ||
15977 | # Check whether --with-udev_prefix was given. | |
15978 | if test "${with_udev_prefix+set}" = set; then | |
71082be4 | 15979 | withval=$with_udev_prefix; udev_prefix=$withval |
a5f46f6a | 15980 | else |
71082be4 | 15981 | udev_prefix='${exec_prefix}' |
a5f46f6a AK |
15982 | fi |
15983 | ||
15984 | ||
78ce7acc AK |
15985 | |
15986 | # Check whether --with-udevdir was given. | |
15987 | if test "${with_udevdir+set}" = set; then | |
71082be4 | 15988 | withval=$with_udevdir; udevdir=$withval |
78ce7acc | 15989 | else |
71082be4 | 15990 | udevdir='${udev_prefix}/lib/udev/rules.d' |
78ce7acc AK |
15991 | fi |
15992 | ||
a5f46f6a | 15993 | |
ad6254c5 AK |
15994 | ################################################################################ |
15995 | if test x$READLINE = xyes; then | |
15996 | ||
15997 | ||
15998 | for ac_header in readline/readline.h readline/history.h | |
15999 | do | |
ec6a6fbe | 16000 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16001 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16002 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16003 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16004 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16005 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16006 | fi |
ec6a6fbe AK |
16007 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16008 | $as_echo "$as_val"'` | |
16009 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16010 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16011 | else |
16012 | # Is the header compilable? | |
ec6a6fbe AK |
16013 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16014 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
16022 | #include <$ac_header> | |
16023 | _ACEOF | |
16024 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16025 | if { (ac_try="$ac_compile" |
16026 | case "(($ac_try" in | |
16027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16028 | *) ac_try_echo=$ac_try;; | |
16029 | esac | |
ec6a6fbe AK |
16030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16031 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16032 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16033 | ac_status=$? |
8a2fc586 AK |
16034 | grep -v '^ *+' conftest.er1 >conftest.err |
16035 | rm -f conftest.er1 | |
16036 | cat conftest.err >&5 | |
ec6a6fbe | 16037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16038 | (exit $ac_status); } && { |
16039 | test -z "$ac_c_werror_flag" || | |
16040 | test ! -s conftest.err | |
16041 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16042 | ac_header_compiler=yes |
16043 | else | |
ec6a6fbe | 16044 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16045 | sed 's/^/| /' conftest.$ac_ext >&5 |
16046 | ||
7a197a62 | 16047 | ac_header_compiler=no |
ad6254c5 | 16048 | fi |
7a197a62 AK |
16049 | |
16050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16051 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16052 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16053 | |
16054 | # Is the header present? | |
ec6a6fbe AK |
16055 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16056 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16057 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16058 | /* confdefs.h. */ |
16059 | _ACEOF | |
16060 | cat confdefs.h >>conftest.$ac_ext | |
16061 | cat >>conftest.$ac_ext <<_ACEOF | |
16062 | /* end confdefs.h. */ | |
16063 | #include <$ac_header> | |
16064 | _ACEOF | |
7a197a62 AK |
16065 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16066 | case "(($ac_try" in | |
16067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16068 | *) ac_try_echo=$ac_try;; | |
16069 | esac | |
ec6a6fbe AK |
16070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16071 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16072 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16073 | ac_status=$? |
16074 | grep -v '^ *+' conftest.er1 >conftest.err | |
16075 | rm -f conftest.er1 | |
16076 | cat conftest.err >&5 | |
ec6a6fbe | 16077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16078 | (exit $ac_status); } >/dev/null && { |
16079 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16080 | test ! -s conftest.err | |
16081 | }; then | |
ad6254c5 AK |
16082 | ac_header_preproc=yes |
16083 | else | |
ec6a6fbe | 16084 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16085 | sed 's/^/| /' conftest.$ac_ext >&5 |
16086 | ||
16087 | ac_header_preproc=no | |
16088 | fi | |
7a197a62 | 16089 | |
ad6254c5 | 16090 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16091 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16092 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16093 | |
16094 | # So? What about this header? | |
8a2fc586 AK |
16095 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16096 | yes:no: ) | |
ec6a6fbe AK |
16097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16098 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16100 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16101 | ac_header_preproc=yes |
ad6254c5 | 16102 | ;; |
8a2fc586 | 16103 | no:yes:* ) |
ec6a6fbe AK |
16104 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16105 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16106 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16107 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16108 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16109 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16110 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16111 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16112 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16113 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16114 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16115 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16116 | |
ad6254c5 AK |
16117 | ;; |
16118 | esac | |
ec6a6fbe AK |
16119 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16120 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16121 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16122 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16123 | else |
8a2fc586 | 16124 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16125 | fi |
ec6a6fbe AK |
16126 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16127 | $as_echo "$as_val"'` | |
16128 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16129 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16130 | |
16131 | fi | |
ec6a6fbe AK |
16132 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16133 | $as_echo "$as_val"'` | |
16134 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16135 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16136 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16137 | _ACEOF |
16138 | ||
16139 | else | |
ec6a6fbe AK |
16140 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16141 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16142 | { (exit 1); exit 1; }; } |
16143 | fi | |
16144 | ||
16145 | done | |
16146 | ||
16147 | fi | |
16148 | ||
5c7fc7c4 | 16149 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16150 | |
16151 | ||
16152 | ||
16153 | ||
16154 | ||
16155 | ||
16156 | ||
16157 | ||
16158 | ||
16159 | ||
16160 | 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 | |
16161 | do | |
ec6a6fbe | 16162 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16163 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16164 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16165 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16166 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16167 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16168 | fi |
ec6a6fbe AK |
16169 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16170 | $as_echo "$as_val"'` | |
16171 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16172 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16173 | else |
16174 | # Is the header compilable? | |
ec6a6fbe AK |
16175 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16176 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
16184 | #include <$ac_header> | |
16185 | _ACEOF | |
16186 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16187 | if { (ac_try="$ac_compile" |
16188 | case "(($ac_try" in | |
16189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16190 | *) ac_try_echo=$ac_try;; | |
16191 | esac | |
ec6a6fbe AK |
16192 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16193 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16194 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16195 | ac_status=$? |
8a2fc586 AK |
16196 | grep -v '^ *+' conftest.er1 >conftest.err |
16197 | rm -f conftest.er1 | |
16198 | cat conftest.err >&5 | |
ec6a6fbe | 16199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16200 | (exit $ac_status); } && { |
16201 | test -z "$ac_c_werror_flag" || | |
16202 | test ! -s conftest.err | |
16203 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16204 | ac_header_compiler=yes |
16205 | else | |
ec6a6fbe | 16206 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16207 | sed 's/^/| /' conftest.$ac_ext >&5 |
16208 | ||
7a197a62 | 16209 | ac_header_compiler=no |
ad6254c5 | 16210 | fi |
7a197a62 AK |
16211 | |
16212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16213 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16214 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16215 | |
16216 | # Is the header present? | |
ec6a6fbe AK |
16217 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16218 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16219 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16220 | /* confdefs.h. */ |
16221 | _ACEOF | |
16222 | cat confdefs.h >>conftest.$ac_ext | |
16223 | cat >>conftest.$ac_ext <<_ACEOF | |
16224 | /* end confdefs.h. */ | |
16225 | #include <$ac_header> | |
16226 | _ACEOF | |
7a197a62 AK |
16227 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16228 | case "(($ac_try" in | |
16229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16230 | *) ac_try_echo=$ac_try;; | |
16231 | esac | |
ec6a6fbe AK |
16232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16233 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16234 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16235 | ac_status=$? |
16236 | grep -v '^ *+' conftest.er1 >conftest.err | |
16237 | rm -f conftest.er1 | |
16238 | cat conftest.err >&5 | |
ec6a6fbe | 16239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16240 | (exit $ac_status); } >/dev/null && { |
16241 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16242 | test ! -s conftest.err | |
16243 | }; then | |
ad6254c5 AK |
16244 | ac_header_preproc=yes |
16245 | else | |
ec6a6fbe | 16246 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16247 | sed 's/^/| /' conftest.$ac_ext >&5 |
16248 | ||
16249 | ac_header_preproc=no | |
16250 | fi | |
7a197a62 | 16251 | |
ad6254c5 | 16252 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16253 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16254 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16255 | |
16256 | # So? What about this header? | |
8a2fc586 AK |
16257 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16258 | yes:no: ) | |
ec6a6fbe AK |
16259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16260 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16261 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16262 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16263 | ac_header_preproc=yes |
ad6254c5 | 16264 | ;; |
8a2fc586 | 16265 | no:yes:* ) |
ec6a6fbe AK |
16266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16267 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16269 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16271 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16273 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16274 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16275 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16276 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16277 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16278 | |
ad6254c5 AK |
16279 | ;; |
16280 | esac | |
ec6a6fbe AK |
16281 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16282 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16283 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16284 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16285 | else |
8a2fc586 | 16286 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16287 | fi |
ec6a6fbe AK |
16288 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16289 | $as_echo "$as_val"'` | |
16290 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16291 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16292 | |
16293 | fi | |
ec6a6fbe AK |
16294 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16295 | $as_echo "$as_val"'` | |
16296 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16297 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16298 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16299 | _ACEOF |
16300 | ||
16301 | else | |
ec6a6fbe AK |
16302 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16303 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16304 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16305 | fi |
16306 | ||
ad6254c5 AK |
16307 | done |
16308 | ||
16309 | ||
795ca3e5 | 16310 | |
8106cdd5 | 16311 | |
ad6254c5 AK |
16312 | |
16313 | ||
16314 | for ac_func in dup2 getmntent memmove select socket | |
16315 | do | |
ec6a6fbe AK |
16316 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16317 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16318 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16319 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16320 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16321 | else |
ad6254c5 | 16322 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16323 | /* confdefs.h. */ |
16324 | _ACEOF | |
16325 | cat confdefs.h >>conftest.$ac_ext | |
16326 | cat >>conftest.$ac_ext <<_ACEOF | |
16327 | /* end confdefs.h. */ | |
8a2fc586 AK |
16328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16330 | #define $ac_func innocuous_$ac_func | |
16331 | ||
795ca3e5 | 16332 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16333 | which can conflict with char $ac_func (); below. |
16334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16335 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16336 | |
ad6254c5 AK |
16337 | #ifdef __STDC__ |
16338 | # include <limits.h> | |
16339 | #else | |
16340 | # include <assert.h> | |
16341 | #endif | |
8a2fc586 AK |
16342 | |
16343 | #undef $ac_func | |
16344 | ||
7a197a62 AK |
16345 | /* Override any GCC internal prototype to avoid an error. |
16346 | Use char because int might match the return type of a GCC | |
16347 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16348 | #ifdef __cplusplus |
16349 | extern "C" | |
ad6254c5 | 16350 | #endif |
ad6254c5 | 16351 | char $ac_func (); |
795ca3e5 AK |
16352 | /* The GNU C library defines this for functions which it implements |
16353 | to always fail with ENOSYS. Some functions are actually named | |
16354 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16355 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16356 | choke me |
795ca3e5 AK |
16357 | #endif |
16358 | ||
ad6254c5 AK |
16359 | int |
16360 | main () | |
16361 | { | |
7a197a62 | 16362 | return $ac_func (); |
ad6254c5 AK |
16363 | ; |
16364 | return 0; | |
16365 | } | |
16366 | _ACEOF | |
16367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16368 | if { (ac_try="$ac_link" |
16369 | case "(($ac_try" in | |
16370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16371 | *) ac_try_echo=$ac_try;; | |
16372 | esac | |
ec6a6fbe AK |
16373 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16374 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16375 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16376 | ac_status=$? |
8a2fc586 AK |
16377 | grep -v '^ *+' conftest.er1 >conftest.err |
16378 | rm -f conftest.er1 | |
16379 | cat conftest.err >&5 | |
ec6a6fbe | 16380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16381 | (exit $ac_status); } && { |
16382 | test -z "$ac_c_werror_flag" || | |
16383 | test ! -s conftest.err | |
ec6a6fbe AK |
16384 | } && test -s conftest$ac_exeext && { |
16385 | test "$cross_compiling" = yes || | |
16386 | $as_test_x conftest$ac_exeext | |
16387 | }; then | |
ad6254c5 | 16388 | eval "$as_ac_var=yes" |
795ca3e5 | 16389 | else |
ec6a6fbe | 16390 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16391 | sed 's/^/| /' conftest.$ac_ext >&5 |
16392 | ||
7a197a62 | 16393 | eval "$as_ac_var=no" |
80992638 | 16394 | fi |
7a197a62 | 16395 | |
ec6a6fbe | 16396 | rm -rf conftest.dSYM |
25fbec5b | 16397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16398 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16399 | fi |
ec6a6fbe AK |
16400 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16401 | $as_echo "$as_val"'` | |
16402 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16403 | $as_echo "$ac_res" >&6; } | |
16404 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16405 | $as_echo "$as_val"'` | |
16406 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16407 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16408 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16409 | _ACEOF |
80992638 AK |
16410 | |
16411 | else | |
ec6a6fbe AK |
16412 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16413 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16414 | { (exit 1); exit 1; }; } |
8106cdd5 | 16415 | fi |
ad6254c5 | 16416 | done |
795ca3e5 | 16417 | |
25fbec5b AK |
16418 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16419 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16420 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16421 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16422 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16423 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16424 | else |
16425 | ac_func_search_save_LIBS=$LIBS | |
16426 | cat >conftest.$ac_ext <<_ACEOF | |
16427 | /* confdefs.h. */ | |
16428 | _ACEOF | |
16429 | cat confdefs.h >>conftest.$ac_ext | |
16430 | cat >>conftest.$ac_ext <<_ACEOF | |
16431 | /* end confdefs.h. */ | |
80992638 | 16432 | |
7a197a62 AK |
16433 | /* Override any GCC internal prototype to avoid an error. |
16434 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16435 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16436 | #ifdef __cplusplus |
16437 | extern "C" | |
16438 | #endif | |
25fbec5b | 16439 | char getmntent (); |
ad6254c5 AK |
16440 | int |
16441 | main () | |
16442 | { | |
25fbec5b | 16443 | return getmntent (); |
ad6254c5 AK |
16444 | ; |
16445 | return 0; | |
16446 | } | |
16447 | _ACEOF | |
25fbec5b AK |
16448 | for ac_lib in '' sun seq gen; do |
16449 | if test -z "$ac_lib"; then | |
16450 | ac_res="none required" | |
16451 | else | |
16452 | ac_res=-l$ac_lib | |
16453 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16454 | fi | |
16455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16456 | if { (ac_try="$ac_link" |
16457 | case "(($ac_try" in | |
16458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16459 | *) ac_try_echo=$ac_try;; | |
16460 | esac | |
ec6a6fbe AK |
16461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16462 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16463 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16464 | ac_status=$? |
8a2fc586 AK |
16465 | grep -v '^ *+' conftest.er1 >conftest.err |
16466 | rm -f conftest.er1 | |
16467 | cat conftest.err >&5 | |
ec6a6fbe | 16468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16469 | (exit $ac_status); } && { |
16470 | test -z "$ac_c_werror_flag" || | |
16471 | test ! -s conftest.err | |
ec6a6fbe AK |
16472 | } && test -s conftest$ac_exeext && { |
16473 | test "$cross_compiling" = yes || | |
16474 | $as_test_x conftest$ac_exeext | |
16475 | }; then | |
25fbec5b | 16476 | ac_cv_search_getmntent=$ac_res |
80992638 | 16477 | else |
ec6a6fbe | 16478 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16479 | sed 's/^/| /' conftest.$ac_ext >&5 |
16480 | ||
25fbec5b | 16481 | |
795ca3e5 AK |
16482 | fi |
16483 | ||
ec6a6fbe | 16484 | rm -rf conftest.dSYM |
25fbec5b AK |
16485 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16486 | conftest$ac_exeext | |
16487 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16488 | break | |
795ca3e5 | 16489 | fi |
25fbec5b AK |
16490 | done |
16491 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16492 | : | |
16493 | else | |
16494 | ac_cv_search_getmntent=no | |
16495 | fi | |
16496 | rm conftest.$ac_ext | |
16497 | LIBS=$ac_func_search_save_LIBS | |
16498 | fi | |
ec6a6fbe AK |
16499 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16500 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16501 | ac_res=$ac_cv_search_getmntent |
16502 | if test "$ac_res" != no; then | |
16503 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16504 | ac_cv_func_getmntent=yes | |
16505 | ||
16506 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16507 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16508 | _ACEOF |
795ca3e5 | 16509 | |
25fbec5b AK |
16510 | else |
16511 | ac_cv_func_getmntent=no | |
795ca3e5 | 16512 | fi |
795ca3e5 AK |
16513 | |
16514 | ||
ad6254c5 AK |
16515 | |
16516 | ||
16517 | for ac_header in sys/select.h sys/socket.h | |
16518 | do | |
ec6a6fbe | 16519 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16521 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16522 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16524 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16525 | fi |
ec6a6fbe AK |
16526 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16527 | $as_echo "$as_val"'` | |
16528 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16529 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16530 | else |
ad6254c5 | 16531 | # Is the header compilable? |
ec6a6fbe AK |
16532 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16533 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
16541 | #include <$ac_header> | |
16542 | _ACEOF | |
16543 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16544 | if { (ac_try="$ac_compile" |
16545 | case "(($ac_try" in | |
16546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16547 | *) ac_try_echo=$ac_try;; | |
16548 | esac | |
ec6a6fbe AK |
16549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16550 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16551 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16552 | ac_status=$? |
8a2fc586 AK |
16553 | grep -v '^ *+' conftest.er1 >conftest.err |
16554 | rm -f conftest.er1 | |
16555 | cat conftest.err >&5 | |
ec6a6fbe | 16556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16557 | (exit $ac_status); } && { |
16558 | test -z "$ac_c_werror_flag" || | |
16559 | test ! -s conftest.err | |
16560 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16561 | ac_header_compiler=yes |
80992638 | 16562 | else |
ec6a6fbe | 16563 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16564 | sed 's/^/| /' conftest.$ac_ext >&5 |
16565 | ||
7a197a62 | 16566 | ac_header_compiler=no |
ad6254c5 | 16567 | fi |
7a197a62 AK |
16568 | |
16569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16570 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16571 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16572 | |
16573 | # Is the header present? | |
ec6a6fbe AK |
16574 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16575 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16576 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16577 | /* confdefs.h. */ |
16578 | _ACEOF | |
16579 | cat confdefs.h >>conftest.$ac_ext | |
16580 | cat >>conftest.$ac_ext <<_ACEOF | |
16581 | /* end confdefs.h. */ | |
16582 | #include <$ac_header> | |
16583 | _ACEOF | |
7a197a62 AK |
16584 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16585 | case "(($ac_try" in | |
16586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16587 | *) ac_try_echo=$ac_try;; | |
16588 | esac | |
ec6a6fbe AK |
16589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16590 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16591 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16592 | ac_status=$? |
16593 | grep -v '^ *+' conftest.er1 >conftest.err | |
16594 | rm -f conftest.er1 | |
16595 | cat conftest.err >&5 | |
ec6a6fbe | 16596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16597 | (exit $ac_status); } >/dev/null && { |
16598 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16599 | test ! -s conftest.err | |
16600 | }; then | |
ad6254c5 AK |
16601 | ac_header_preproc=yes |
16602 | else | |
ec6a6fbe | 16603 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16604 | sed 's/^/| /' conftest.$ac_ext >&5 |
16605 | ||
16606 | ac_header_preproc=no | |
16607 | fi | |
7a197a62 | 16608 | |
ad6254c5 | 16609 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16610 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16611 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16612 | |
16613 | # So? What about this header? | |
8a2fc586 AK |
16614 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16615 | yes:no: ) | |
ec6a6fbe AK |
16616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16617 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16619 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16620 | ac_header_preproc=yes |
ad6254c5 | 16621 | ;; |
8a2fc586 | 16622 | no:yes:* ) |
ec6a6fbe AK |
16623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16624 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16625 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16626 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16627 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16628 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16629 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16630 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16631 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16632 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16634 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16635 | |
ad6254c5 AK |
16636 | ;; |
16637 | esac | |
ec6a6fbe AK |
16638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16639 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16641 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16642 | else |
8a2fc586 | 16643 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16644 | fi |
ec6a6fbe AK |
16645 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16646 | $as_echo "$as_val"'` | |
16647 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16648 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16649 | |
795ca3e5 | 16650 | fi |
ec6a6fbe AK |
16651 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16652 | $as_echo "$as_val"'` | |
16653 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16654 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16655 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16656 | _ACEOF |
16657 | ||
795ca3e5 AK |
16658 | fi |
16659 | ||
ad6254c5 AK |
16660 | done |
16661 | ||
ec6a6fbe AK |
16662 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16663 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16664 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16665 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16666 | else |
ad6254c5 | 16667 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16668 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16669 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
16670 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16671 | /* confdefs.h. */ |
16672 | _ACEOF | |
16673 | cat confdefs.h >>conftest.$ac_ext | |
16674 | cat >>conftest.$ac_ext <<_ACEOF | |
16675 | /* end confdefs.h. */ | |
16676 | $ac_includes_default | |
25fbec5b | 16677 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16678 | # include <sys/select.h> |
16679 | #endif | |
25fbec5b | 16680 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16681 | # include <sys/socket.h> |
16682 | #endif | |
16683 | ||
16684 | int | |
16685 | main () | |
16686 | { | |
16687 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16688 | $ac_arg234, $ac_arg234, $ac_arg234, |
16689 | $ac_arg5); | |
ad6254c5 AK |
16690 | ; |
16691 | return 0; | |
16692 | } | |
16693 | _ACEOF | |
16694 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16695 | if { (ac_try="$ac_compile" |
16696 | case "(($ac_try" in | |
16697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16698 | *) ac_try_echo=$ac_try;; | |
16699 | esac | |
ec6a6fbe AK |
16700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16701 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16702 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16703 | ac_status=$? |
8a2fc586 AK |
16704 | grep -v '^ *+' conftest.er1 >conftest.err |
16705 | rm -f conftest.er1 | |
16706 | cat conftest.err >&5 | |
ec6a6fbe | 16707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16708 | (exit $ac_status); } && { |
16709 | test -z "$ac_c_werror_flag" || | |
16710 | test ! -s conftest.err | |
16711 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16712 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
16713 | else | |
ec6a6fbe | 16714 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16715 | sed 's/^/| /' conftest.$ac_ext >&5 |
16716 | ||
7a197a62 | 16717 | |
ad6254c5 | 16718 | fi |
7a197a62 AK |
16719 | |
16720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
16721 | done |
16722 | done | |
16723 | done | |
16724 | # Provide a safe default value. | |
16725 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
16726 | ||
26e7f2e0 | 16727 | fi |
ec6a6fbe AK |
16728 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
16729 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
16730 | ac_save_IFS=$IFS; IFS=',' |
16731 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
16732 | IFS=$ac_save_IFS | |
16733 | shift | |
16734 | ||
16735 | cat >>confdefs.h <<_ACEOF | |
16736 | #define SELECT_TYPE_ARG1 $1 | |
16737 | _ACEOF | |
16738 | ||
16739 | ||
16740 | cat >>confdefs.h <<_ACEOF | |
16741 | #define SELECT_TYPE_ARG234 ($2) | |
16742 | _ACEOF | |
16743 | ||
16744 | ||
16745 | cat >>confdefs.h <<_ACEOF | |
16746 | #define SELECT_TYPE_ARG5 ($3) | |
16747 | _ACEOF | |
16748 | ||
80992638 | 16749 | rm -f conftest* |
80992638 | 16750 | |
8106cdd5 | 16751 | fi |
ad6254c5 | 16752 | |
ad6254c5 AK |
16753 | if test x$CLUSTER != xnone; then |
16754 | ||
16755 | ||
16756 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 16757 | do |
ec6a6fbe | 16758 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16759 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16760 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16761 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16763 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16764 | fi |
ec6a6fbe AK |
16765 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16766 | $as_echo "$as_val"'` | |
16767 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16768 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16769 | else |
16770 | # Is the header compilable? | |
ec6a6fbe AK |
16771 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16772 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
16780 | #include <$ac_header> | |
16781 | _ACEOF | |
16782 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16783 | if { (ac_try="$ac_compile" |
16784 | case "(($ac_try" in | |
16785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16786 | *) ac_try_echo=$ac_try;; | |
16787 | esac | |
ec6a6fbe AK |
16788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16789 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16790 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16791 | ac_status=$? |
8a2fc586 AK |
16792 | grep -v '^ *+' conftest.er1 >conftest.err |
16793 | rm -f conftest.er1 | |
16794 | cat conftest.err >&5 | |
ec6a6fbe | 16795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16796 | (exit $ac_status); } && { |
16797 | test -z "$ac_c_werror_flag" || | |
16798 | test ! -s conftest.err | |
16799 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16800 | ac_header_compiler=yes |
16801 | else | |
ec6a6fbe | 16802 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16803 | sed 's/^/| /' conftest.$ac_ext >&5 |
16804 | ||
7a197a62 | 16805 | ac_header_compiler=no |
ad6254c5 | 16806 | fi |
7a197a62 AK |
16807 | |
16808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16809 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16810 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16811 | |
16812 | # Is the header present? | |
ec6a6fbe AK |
16813 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16814 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16815 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16816 | /* confdefs.h. */ |
16817 | _ACEOF | |
16818 | cat confdefs.h >>conftest.$ac_ext | |
16819 | cat >>conftest.$ac_ext <<_ACEOF | |
16820 | /* end confdefs.h. */ | |
16821 | #include <$ac_header> | |
16822 | _ACEOF | |
7a197a62 AK |
16823 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16824 | case "(($ac_try" in | |
16825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16826 | *) ac_try_echo=$ac_try;; | |
16827 | esac | |
ec6a6fbe AK |
16828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16829 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16831 | ac_status=$? |
16832 | grep -v '^ *+' conftest.er1 >conftest.err | |
16833 | rm -f conftest.er1 | |
16834 | cat conftest.err >&5 | |
ec6a6fbe | 16835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16836 | (exit $ac_status); } >/dev/null && { |
16837 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16838 | test ! -s conftest.err | |
16839 | }; then | |
ad6254c5 AK |
16840 | ac_header_preproc=yes |
16841 | else | |
ec6a6fbe | 16842 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16843 | sed 's/^/| /' conftest.$ac_ext >&5 |
16844 | ||
16845 | ac_header_preproc=no | |
16846 | fi | |
7a197a62 | 16847 | |
ad6254c5 | 16848 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16849 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16850 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16851 | |
16852 | # So? What about this header? | |
8a2fc586 AK |
16853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16854 | yes:no: ) | |
ec6a6fbe AK |
16855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16856 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16858 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16859 | ac_header_preproc=yes |
ad6254c5 | 16860 | ;; |
8a2fc586 | 16861 | no:yes:* ) |
ec6a6fbe AK |
16862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16863 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16865 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16866 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16867 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16869 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16871 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16873 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16874 | |
ad6254c5 AK |
16875 | ;; |
16876 | esac | |
ec6a6fbe AK |
16877 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16878 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16880 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16881 | else |
8a2fc586 | 16882 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 16883 | fi |
ec6a6fbe AK |
16884 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16885 | $as_echo "$as_val"'` | |
16886 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16887 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16888 | |
16889 | fi | |
ec6a6fbe AK |
16890 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16891 | $as_echo "$as_val"'` | |
16892 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16893 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16894 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16895 | _ACEOF |
16896 | ||
80992638 | 16897 | else |
ec6a6fbe AK |
16898 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16899 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16900 | { (exit 1); exit 1; }; } |
b896caa1 | 16901 | fi |
ad6254c5 | 16902 | |
b896caa1 AK |
16903 | done |
16904 | ||
16905 | ||
ad6254c5 AK |
16906 | for ac_func in socket |
16907 | do | |
ec6a6fbe AK |
16908 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16909 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16910 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16911 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16912 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16913 | else |
ad6254c5 | 16914 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16915 | /* confdefs.h. */ |
16916 | _ACEOF | |
16917 | cat confdefs.h >>conftest.$ac_ext | |
16918 | cat >>conftest.$ac_ext <<_ACEOF | |
16919 | /* end confdefs.h. */ | |
8a2fc586 AK |
16920 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16921 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16922 | #define $ac_func innocuous_$ac_func | |
16923 | ||
ad6254c5 AK |
16924 | /* System header to define __stub macros and hopefully few prototypes, |
16925 | which can conflict with char $ac_func (); below. | |
16926 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16927 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16928 | |
ad6254c5 AK |
16929 | #ifdef __STDC__ |
16930 | # include <limits.h> | |
16931 | #else | |
16932 | # include <assert.h> | |
16933 | #endif | |
8a2fc586 AK |
16934 | |
16935 | #undef $ac_func | |
16936 | ||
7a197a62 AK |
16937 | /* Override any GCC internal prototype to avoid an error. |
16938 | Use char because int might match the return type of a GCC | |
16939 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16940 | #ifdef __cplusplus |
16941 | extern "C" | |
ad6254c5 | 16942 | #endif |
ad6254c5 AK |
16943 | char $ac_func (); |
16944 | /* The GNU C library defines this for functions which it implements | |
16945 | to always fail with ENOSYS. Some functions are actually named | |
16946 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16947 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 16948 | choke me |
ad6254c5 AK |
16949 | #endif |
16950 | ||
16951 | int | |
16952 | main () | |
16953 | { | |
7a197a62 | 16954 | return $ac_func (); |
ad6254c5 AK |
16955 | ; |
16956 | return 0; | |
16957 | } | |
16958 | _ACEOF | |
16959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16960 | if { (ac_try="$ac_link" |
16961 | case "(($ac_try" in | |
16962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16963 | *) ac_try_echo=$ac_try;; | |
16964 | esac | |
ec6a6fbe AK |
16965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16966 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16967 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16968 | ac_status=$? |
8a2fc586 AK |
16969 | grep -v '^ *+' conftest.er1 >conftest.err |
16970 | rm -f conftest.er1 | |
16971 | cat conftest.err >&5 | |
ec6a6fbe | 16972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16973 | (exit $ac_status); } && { |
16974 | test -z "$ac_c_werror_flag" || | |
16975 | test ! -s conftest.err | |
ec6a6fbe AK |
16976 | } && test -s conftest$ac_exeext && { |
16977 | test "$cross_compiling" = yes || | |
16978 | $as_test_x conftest$ac_exeext | |
16979 | }; then | |
ad6254c5 AK |
16980 | eval "$as_ac_var=yes" |
16981 | else | |
ec6a6fbe | 16982 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16983 | sed 's/^/| /' conftest.$ac_ext >&5 |
16984 | ||
7a197a62 | 16985 | eval "$as_ac_var=no" |
ad6254c5 | 16986 | fi |
7a197a62 | 16987 | |
ec6a6fbe | 16988 | rm -rf conftest.dSYM |
25fbec5b | 16989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16990 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 16991 | fi |
ec6a6fbe AK |
16992 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16993 | $as_echo "$as_val"'` | |
16994 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16995 | $as_echo "$ac_res" >&6; } | |
16996 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16997 | $as_echo "$as_val"'` | |
16998 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16999 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17000 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
17001 | _ACEOF |
17002 | ||
17003 | else | |
ec6a6fbe AK |
17004 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17005 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
17006 | { (exit 1); exit 1; }; } |
17007 | fi | |
17008 | done | |
17009 | ||
17010 | fi | |
17011 | ||
d911ec67 AK |
17012 | if test x$DMEVENTD = xyes; then |
17013 | ||
17014 | for ac_header in arpa/inet.h | |
17015 | do | |
17016 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17017 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17018 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17019 | $as_echo_n "checking for $ac_header... " >&6; } | |
17020 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17021 | $as_echo_n "(cached) " >&6 | |
17022 | fi | |
17023 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17024 | $as_echo "$as_val"'` | |
17025 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17026 | $as_echo "$ac_res" >&6; } | |
17027 | else | |
17028 | # Is the header compilable? | |
17029 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17030 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
17038 | #include <$ac_header> | |
17039 | _ACEOF | |
17040 | rm -f conftest.$ac_objext | |
17041 | if { (ac_try="$ac_compile" | |
17042 | case "(($ac_try" in | |
17043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17044 | *) ac_try_echo=$ac_try;; | |
17045 | esac | |
17046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17047 | $as_echo "$ac_try_echo") >&5 | |
17048 | (eval "$ac_compile") 2>conftest.er1 | |
17049 | ac_status=$? | |
17050 | grep -v '^ *+' conftest.er1 >conftest.err | |
17051 | rm -f conftest.er1 | |
17052 | cat conftest.err >&5 | |
17053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17054 | (exit $ac_status); } && { | |
17055 | test -z "$ac_c_werror_flag" || | |
17056 | test ! -s conftest.err | |
17057 | } && test -s conftest.$ac_objext; then | |
17058 | ac_header_compiler=yes | |
17059 | else | |
17060 | $as_echo "$as_me: failed program was:" >&5 | |
17061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17062 | ||
17063 | ac_header_compiler=no | |
17064 | fi | |
17065 | ||
17066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17067 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17068 | $as_echo "$ac_header_compiler" >&6; } | |
17069 | ||
17070 | # Is the header present? | |
17071 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17072 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17073 | cat >conftest.$ac_ext <<_ACEOF | |
17074 | /* confdefs.h. */ | |
17075 | _ACEOF | |
17076 | cat confdefs.h >>conftest.$ac_ext | |
17077 | cat >>conftest.$ac_ext <<_ACEOF | |
17078 | /* end confdefs.h. */ | |
17079 | #include <$ac_header> | |
17080 | _ACEOF | |
17081 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17082 | case "(($ac_try" in | |
17083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17084 | *) ac_try_echo=$ac_try;; | |
17085 | esac | |
17086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17087 | $as_echo "$ac_try_echo") >&5 | |
17088 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17089 | ac_status=$? | |
17090 | grep -v '^ *+' conftest.er1 >conftest.err | |
17091 | rm -f conftest.er1 | |
17092 | cat conftest.err >&5 | |
17093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17094 | (exit $ac_status); } >/dev/null && { | |
17095 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17096 | test ! -s conftest.err | |
17097 | }; then | |
17098 | ac_header_preproc=yes | |
17099 | else | |
17100 | $as_echo "$as_me: failed program was:" >&5 | |
17101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17102 | ||
17103 | ac_header_preproc=no | |
17104 | fi | |
17105 | ||
17106 | rm -f conftest.err conftest.$ac_ext | |
17107 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17108 | $as_echo "$ac_header_preproc" >&6; } | |
17109 | ||
17110 | # So? What about this header? | |
17111 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17112 | yes:no: ) | |
17113 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17114 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17115 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17116 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17117 | ac_header_preproc=yes | |
17118 | ;; | |
17119 | no:yes:* ) | |
17120 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17121 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17123 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17125 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17126 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17127 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17128 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17129 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17130 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17131 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17132 | ||
17133 | ;; | |
17134 | esac | |
17135 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17136 | $as_echo_n "checking for $ac_header... " >&6; } | |
17137 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17138 | $as_echo_n "(cached) " >&6 | |
17139 | else | |
17140 | eval "$as_ac_Header=\$ac_header_preproc" | |
17141 | fi | |
17142 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17143 | $as_echo "$as_val"'` | |
17144 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17145 | $as_echo "$ac_res" >&6; } | |
17146 | ||
17147 | fi | |
17148 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17149 | $as_echo "$as_val"'` | |
17150 | if test "x$as_val" = x""yes; then | |
17151 | cat >>confdefs.h <<_ACEOF | |
17152 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17153 | _ACEOF | |
17154 | ||
17155 | else | |
17156 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17157 | $as_echo "$as_me: error: bailing out" >&2;} | |
17158 | { (exit 1); exit 1; }; } | |
17159 | fi | |
17160 | ||
17161 | done | |
17162 | ||
17163 | fi | |
17164 | ||
ad6254c5 AK |
17165 | if test x$HAVE_LIBDL = xyes; then |
17166 | ||
17167 | for ac_header in dlfcn.h | |
17168 | do | |
ec6a6fbe | 17169 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17170 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17171 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17172 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17174 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17175 | fi |
ec6a6fbe AK |
17176 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17177 | $as_echo "$as_val"'` | |
17178 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17179 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17180 | else |
17181 | # Is the header compilable? | |
ec6a6fbe AK |
17182 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17183 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
17191 | #include <$ac_header> | |
17192 | _ACEOF | |
17193 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17194 | if { (ac_try="$ac_compile" |
17195 | case "(($ac_try" in | |
17196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17197 | *) ac_try_echo=$ac_try;; | |
17198 | esac | |
ec6a6fbe AK |
17199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17200 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17201 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17202 | ac_status=$? |
8a2fc586 AK |
17203 | grep -v '^ *+' conftest.er1 >conftest.err |
17204 | rm -f conftest.er1 | |
17205 | cat conftest.err >&5 | |
ec6a6fbe | 17206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17207 | (exit $ac_status); } && { |
17208 | test -z "$ac_c_werror_flag" || | |
17209 | test ! -s conftest.err | |
17210 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17211 | ac_header_compiler=yes |
17212 | else | |
ec6a6fbe | 17213 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17214 | sed 's/^/| /' conftest.$ac_ext >&5 |
17215 | ||
7a197a62 | 17216 | ac_header_compiler=no |
ad6254c5 | 17217 | fi |
7a197a62 AK |
17218 | |
17219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17220 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17221 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17222 | |
17223 | # Is the header present? | |
ec6a6fbe AK |
17224 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17225 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17226 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17227 | /* confdefs.h. */ |
17228 | _ACEOF | |
17229 | cat confdefs.h >>conftest.$ac_ext | |
17230 | cat >>conftest.$ac_ext <<_ACEOF | |
17231 | /* end confdefs.h. */ | |
17232 | #include <$ac_header> | |
17233 | _ACEOF | |
7a197a62 AK |
17234 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17235 | case "(($ac_try" in | |
17236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17237 | *) ac_try_echo=$ac_try;; | |
17238 | esac | |
ec6a6fbe AK |
17239 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17240 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17241 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17242 | ac_status=$? |
17243 | grep -v '^ *+' conftest.er1 >conftest.err | |
17244 | rm -f conftest.er1 | |
17245 | cat conftest.err >&5 | |
ec6a6fbe | 17246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17247 | (exit $ac_status); } >/dev/null && { |
17248 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17249 | test ! -s conftest.err | |
17250 | }; then | |
ad6254c5 AK |
17251 | ac_header_preproc=yes |
17252 | else | |
ec6a6fbe | 17253 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17254 | sed 's/^/| /' conftest.$ac_ext >&5 |
17255 | ||
17256 | ac_header_preproc=no | |
17257 | fi | |
7a197a62 | 17258 | |
ad6254c5 | 17259 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17260 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17261 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17262 | |
17263 | # So? What about this header? | |
8a2fc586 AK |
17264 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17265 | yes:no: ) | |
ec6a6fbe AK |
17266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17267 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17269 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17270 | ac_header_preproc=yes |
ad6254c5 | 17271 | ;; |
8a2fc586 | 17272 | no:yes:* ) |
ec6a6fbe AK |
17273 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17274 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17275 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17276 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17277 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17278 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17280 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17281 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17282 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17284 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17285 | |
ad6254c5 AK |
17286 | ;; |
17287 | esac | |
ec6a6fbe AK |
17288 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17289 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17290 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17291 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17292 | else |
8a2fc586 | 17293 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17294 | fi |
ec6a6fbe AK |
17295 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17296 | $as_echo "$as_val"'` | |
17297 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17298 | $as_echo "$ac_res" >&6; } | |
80992638 | 17299 | |
8106cdd5 | 17300 | fi |
ec6a6fbe AK |
17301 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17302 | $as_echo "$as_val"'` | |
17303 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17304 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17305 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17306 | _ACEOF |
795ca3e5 AK |
17307 | |
17308 | else | |
ec6a6fbe AK |
17309 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17310 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17311 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17312 | fi |
17313 | ||
ad6254c5 | 17314 | done |
80992638 | 17315 | |
ad6254c5 | 17316 | fi |
80992638 | 17317 | |
ad6254c5 | 17318 | if test x$INTL = xyes; then |
83912faa | 17319 | |
ad6254c5 AK |
17320 | for ac_header in libintl.h |
17321 | do | |
ec6a6fbe | 17322 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17324 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17325 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17327 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17328 | fi |
ec6a6fbe AK |
17329 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17330 | $as_echo "$as_val"'` | |
17331 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17332 | $as_echo "$ac_res" >&6; } | |
83912faa | 17333 | else |
ad6254c5 | 17334 | # Is the header compilable? |
ec6a6fbe AK |
17335 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17336 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
17344 | #include <$ac_header> | |
17345 | _ACEOF | |
17346 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17347 | if { (ac_try="$ac_compile" |
17348 | case "(($ac_try" in | |
17349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17350 | *) ac_try_echo=$ac_try;; | |
17351 | esac | |
ec6a6fbe AK |
17352 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17353 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17354 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17355 | ac_status=$? |
8a2fc586 AK |
17356 | grep -v '^ *+' conftest.er1 >conftest.err |
17357 | rm -f conftest.er1 | |
17358 | cat conftest.err >&5 | |
ec6a6fbe | 17359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17360 | (exit $ac_status); } && { |
17361 | test -z "$ac_c_werror_flag" || | |
17362 | test ! -s conftest.err | |
17363 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17364 | ac_header_compiler=yes |
17365 | else | |
ec6a6fbe | 17366 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17367 | sed 's/^/| /' conftest.$ac_ext >&5 |
17368 | ||
7a197a62 | 17369 | ac_header_compiler=no |
ad6254c5 | 17370 | fi |
7a197a62 AK |
17371 | |
17372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17373 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17374 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17375 | |
17376 | # Is the header present? | |
ec6a6fbe AK |
17377 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17378 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17379 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17380 | /* confdefs.h. */ |
17381 | _ACEOF | |
17382 | cat confdefs.h >>conftest.$ac_ext | |
17383 | cat >>conftest.$ac_ext <<_ACEOF | |
17384 | /* end confdefs.h. */ | |
17385 | #include <$ac_header> | |
17386 | _ACEOF | |
7a197a62 AK |
17387 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17388 | case "(($ac_try" in | |
17389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17390 | *) ac_try_echo=$ac_try;; | |
17391 | esac | |
ec6a6fbe AK |
17392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17393 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17394 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17395 | ac_status=$? |
17396 | grep -v '^ *+' conftest.er1 >conftest.err | |
17397 | rm -f conftest.er1 | |
17398 | cat conftest.err >&5 | |
ec6a6fbe | 17399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17400 | (exit $ac_status); } >/dev/null && { |
17401 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17402 | test ! -s conftest.err | |
17403 | }; then | |
ad6254c5 AK |
17404 | ac_header_preproc=yes |
17405 | else | |
ec6a6fbe | 17406 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17407 | sed 's/^/| /' conftest.$ac_ext >&5 |
17408 | ||
17409 | ac_header_preproc=no | |
17410 | fi | |
7a197a62 | 17411 | |
ad6254c5 | 17412 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17413 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17414 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17415 | |
17416 | # So? What about this header? | |
8a2fc586 AK |
17417 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17418 | yes:no: ) | |
ec6a6fbe AK |
17419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17420 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17422 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17423 | ac_header_preproc=yes |
ad6254c5 | 17424 | ;; |
8a2fc586 | 17425 | no:yes:* ) |
ec6a6fbe AK |
17426 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17427 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17428 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17429 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17430 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17431 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17432 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17433 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17434 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17435 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17436 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17437 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17438 | |
ad6254c5 AK |
17439 | ;; |
17440 | esac | |
ec6a6fbe AK |
17441 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17442 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17443 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17444 | $as_echo_n "(cached) " >&6 |
80992638 | 17445 | else |
8a2fc586 | 17446 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17447 | fi |
ec6a6fbe AK |
17448 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17449 | $as_echo "$as_val"'` | |
17450 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17451 | $as_echo "$ac_res" >&6; } | |
83912faa | 17452 | |
69792976 | 17453 | fi |
ec6a6fbe AK |
17454 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17455 | $as_echo "$as_val"'` | |
17456 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17457 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17458 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17459 | _ACEOF |
69792976 | 17460 | |
69792976 | 17461 | else |
ec6a6fbe AK |
17462 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17463 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17464 | { (exit 1); exit 1; }; } |
80992638 AK |
17465 | fi |
17466 | ||
ad6254c5 | 17467 | done |
69792976 | 17468 | |
ad6254c5 AK |
17469 | fi |
17470 | ||
a5f46f6a AK |
17471 | if test x$UDEV_SYNC = xyes; then |
17472 | ||
17473 | ||
17474 | for ac_header in sys/ipc.h sys/sem.h | |
17475 | do | |
17476 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17477 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17478 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17479 | $as_echo_n "checking for $ac_header... " >&6; } | |
17480 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17481 | $as_echo_n "(cached) " >&6 | |
17482 | fi | |
17483 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17484 | $as_echo "$as_val"'` | |
17485 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17486 | $as_echo "$ac_res" >&6; } | |
17487 | else | |
17488 | # Is the header compilable? | |
17489 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17490 | $as_echo_n "checking $ac_header usability... " >&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 | $ac_includes_default | |
17498 | #include <$ac_header> | |
17499 | _ACEOF | |
17500 | rm -f conftest.$ac_objext | |
17501 | if { (ac_try="$ac_compile" | |
17502 | case "(($ac_try" in | |
17503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17504 | *) ac_try_echo=$ac_try;; | |
17505 | esac | |
17506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17507 | $as_echo "$ac_try_echo") >&5 | |
17508 | (eval "$ac_compile") 2>conftest.er1 | |
17509 | ac_status=$? | |
17510 | grep -v '^ *+' conftest.er1 >conftest.err | |
17511 | rm -f conftest.er1 | |
17512 | cat conftest.err >&5 | |
17513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17514 | (exit $ac_status); } && { | |
17515 | test -z "$ac_c_werror_flag" || | |
17516 | test ! -s conftest.err | |
17517 | } && test -s conftest.$ac_objext; then | |
17518 | ac_header_compiler=yes | |
17519 | else | |
17520 | $as_echo "$as_me: failed program was:" >&5 | |
17521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17522 | ||
17523 | ac_header_compiler=no | |
17524 | fi | |
17525 | ||
17526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17527 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17528 | $as_echo "$ac_header_compiler" >&6; } | |
17529 | ||
17530 | # Is the header present? | |
17531 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17532 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17533 | cat >conftest.$ac_ext <<_ACEOF | |
17534 | /* confdefs.h. */ | |
17535 | _ACEOF | |
17536 | cat confdefs.h >>conftest.$ac_ext | |
17537 | cat >>conftest.$ac_ext <<_ACEOF | |
17538 | /* end confdefs.h. */ | |
17539 | #include <$ac_header> | |
17540 | _ACEOF | |
17541 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17542 | case "(($ac_try" in | |
17543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17544 | *) ac_try_echo=$ac_try;; | |
17545 | esac | |
17546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17547 | $as_echo "$ac_try_echo") >&5 | |
17548 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17549 | ac_status=$? | |
17550 | grep -v '^ *+' conftest.er1 >conftest.err | |
17551 | rm -f conftest.er1 | |
17552 | cat conftest.err >&5 | |
17553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17554 | (exit $ac_status); } >/dev/null && { | |
17555 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17556 | test ! -s conftest.err | |
17557 | }; then | |
17558 | ac_header_preproc=yes | |
17559 | else | |
17560 | $as_echo "$as_me: failed program was:" >&5 | |
17561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17562 | ||
17563 | ac_header_preproc=no | |
17564 | fi | |
17565 | ||
17566 | rm -f conftest.err conftest.$ac_ext | |
17567 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17568 | $as_echo "$ac_header_preproc" >&6; } | |
17569 | ||
17570 | # So? What about this header? | |
17571 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17572 | yes:no: ) | |
17573 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17574 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17575 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17576 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17577 | ac_header_preproc=yes | |
17578 | ;; | |
17579 | no:yes:* ) | |
17580 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17581 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17582 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17583 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17584 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17585 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17586 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17587 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17588 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17589 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17590 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17591 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17592 | ||
17593 | ;; | |
17594 | esac | |
17595 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17596 | $as_echo_n "checking for $ac_header... " >&6; } | |
17597 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17598 | $as_echo_n "(cached) " >&6 | |
17599 | else | |
17600 | eval "$as_ac_Header=\$ac_header_preproc" | |
17601 | fi | |
17602 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17603 | $as_echo "$as_val"'` | |
17604 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17605 | $as_echo "$ac_res" >&6; } | |
17606 | ||
17607 | fi | |
17608 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17609 | $as_echo "$as_val"'` | |
17610 | if test "x$as_val" = x""yes; then | |
17611 | cat >>confdefs.h <<_ACEOF | |
17612 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17613 | _ACEOF | |
17614 | ||
17615 | else | |
17616 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17617 | $as_echo "$as_me: error: bailing out" >&2;} | |
17618 | { (exit 1); exit 1; }; } | |
17619 | fi | |
17620 | ||
17621 | done | |
17622 | ||
17623 | fi | |
17624 | ||
a653923f AK |
17625 | ################################################################################ |
17626 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17627 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17628 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17629 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17630 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17631 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17632 | else |
17633 | case $MODPROBE_CMD in | |
17634 | [\\/]* | ?:[\\/]*) | |
17635 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17636 | ;; | |
17637 | *) | |
17638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17639 | for as_dir in $PATH | |
17640 | do | |
17641 | IFS=$as_save_IFS | |
17642 | test -z "$as_dir" && as_dir=. | |
17643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17645 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17646 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17647 | break 2 |
17648 | fi | |
17649 | done | |
17650 | done | |
7a197a62 | 17651 | IFS=$as_save_IFS |
72b2cb61 AK |
17652 | |
17653 | ;; | |
17654 | esac | |
17655 | fi | |
17656 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17657 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17658 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17659 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17660 | else |
ec6a6fbe AK |
17661 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17662 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17663 | fi |
17664 | ||
a653923f | 17665 | |
7a197a62 | 17666 | |
a653923f | 17667 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17668 | |
17669 | cat >>confdefs.h <<_ACEOF | |
17670 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17671 | _ACEOF | |
17672 | ||
a653923f AK |
17673 | fi |
17674 | ||
b5c2529b | 17675 | |
a9b601e2 ZK |
17676 | lvm_exec_prefix=$exec_prefix |
17677 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17678 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17679 | ||
b5c2529b | 17680 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17681 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17682 | _ACEOF |
17683 | ||
17684 | ||
17685 | if test "$CLVMD" != none; then | |
17686 | clvmd_prefix=$ac_default_prefix | |
17687 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17688 | ||
17689 | cat >>confdefs.h <<_ACEOF | |
17690 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17691 | _ACEOF | |
17692 | ||
17693 | fi | |
17694 | ||
80992638 | 17695 | ################################################################################ |
93bd259b AK |
17696 | if test "$BUILD_DMEVENTD" = yes; then |
17697 | ||
17698 | # Check whether --with-dmeventd-pidfile was given. | |
17699 | if test "${with_dmeventd_pidfile+set}" = set; then | |
71082be4 | 17700 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 17701 | else |
71082be4 | 17702 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
17703 | fi |
17704 | ||
93bd259b | 17705 | |
71082be4 ZK |
17706 | cat >>confdefs.h <<_ACEOF |
17707 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
17708 | _ACEOF | |
93bd259b | 17709 | |
71082be4 | 17710 | fi |
93bd259b AK |
17711 | |
17712 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
17713 | |
17714 | # Check whether --with-dmeventd-path was given. | |
17715 | if test "${with_dmeventd_path+set}" = set; then | |
71082be4 | 17716 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 17717 | else |
71082be4 | 17718 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
17719 | fi |
17720 | ||
93bd259b | 17721 | |
71082be4 ZK |
17722 | cat >>confdefs.h <<_ACEOF |
17723 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
17724 | _ACEOF | |
3399ae32 | 17725 | |
71082be4 | 17726 | fi |
3399ae32 | 17727 | |
71082be4 | 17728 | ################################################################################ |
3399ae32 AK |
17729 | |
17730 | # Check whether --with-default-system-dir was given. | |
17731 | if test "${with_default_system_dir+set}" = set; then | |
71082be4 | 17732 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 17733 | else |
71082be4 | 17734 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
17735 | fi |
17736 | ||
71082be4 | 17737 | |
3399ae32 AK |
17738 | cat >>confdefs.h <<_ACEOF |
17739 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
17740 | _ACEOF | |
17741 | ||
17742 | ||
17743 | ||
3399ae32 AK |
17744 | # Check whether --with-default-archive-subdir was given. |
17745 | if test "${with_default_archive_subdir+set}" = set; then | |
71082be4 | 17746 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 17747 | else |
71082be4 | 17748 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
17749 | fi |
17750 | ||
71082be4 | 17751 | |
3399ae32 AK |
17752 | cat >>confdefs.h <<_ACEOF |
17753 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
17754 | _ACEOF | |
17755 | ||
17756 | ||
17757 | ||
3399ae32 AK |
17758 | # Check whether --with-default-backup-subdir was given. |
17759 | if test "${with_default_backup_subdir+set}" = set; then | |
71082be4 | 17760 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 17761 | else |
71082be4 | 17762 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
17763 | fi |
17764 | ||
71082be4 | 17765 | |
3399ae32 AK |
17766 | cat >>confdefs.h <<_ACEOF |
17767 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
17768 | _ACEOF | |
17769 | ||
17770 | ||
17771 | ||
3399ae32 AK |
17772 | # Check whether --with-default-cache-subdir was given. |
17773 | if test "${with_default_cache_subdir+set}" = set; then | |
71082be4 | 17774 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 17775 | else |
71082be4 | 17776 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
17777 | fi |
17778 | ||
71082be4 | 17779 | |
3399ae32 AK |
17780 | cat >>confdefs.h <<_ACEOF |
17781 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
17782 | _ACEOF | |
17783 | ||
17784 | ||
17785 | ||
3399ae32 AK |
17786 | # Check whether --with-default-locking-dir was given. |
17787 | if test "${with_default_locking_dir+set}" = set; then | |
71082be4 | 17788 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 17789 | else |
71082be4 | 17790 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
17791 | fi |
17792 | ||
71082be4 | 17793 | |
3399ae32 AK |
17794 | cat >>confdefs.h <<_ACEOF |
17795 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
17796 | _ACEOF | |
17797 | ||
17798 | ||
93bd259b | 17799 | ################################################################################ |
ec6a6fbe AK |
17800 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
17801 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
17802 | |
17803 | # Check whether --with-interface was given. | |
17804 | if test "${with_interface+set}" = set; then | |
71082be4 | 17805 | withval=$with_interface; interface=$withval |
93bd259b | 17806 | else |
71082be4 | 17807 | interface=ioctl |
93bd259b AK |
17808 | fi |
17809 | ||
17810 | if [ "x$interface" != xioctl ]; | |
17811 | then | |
ec6a6fbe AK |
17812 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
17813 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
17814 | { (exit 1); exit 1; }; } |
17815 | fi | |
ec6a6fbe AK |
17816 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
17817 | $as_echo "$interface" >&6; } | |
93bd259b AK |
17818 | |
17819 | ################################################################################ | |
db8b5af9 | 17820 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
17821 | |
17822 | cat >>confdefs.h <<_ACEOF | |
17823 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
17824 | _ACEOF | |
17825 | ||
17826 | ||
db8b5af9 | 17827 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 17828 | |
db8b5af9 | 17829 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 17830 | |
db8b5af9 | 17831 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 17832 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
17833 | VER=`echo "$VER" | $AWK '{print $1}'` |
17834 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
17835 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
17836 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
17837 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
17838 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
17839 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 17840 | |
80992638 | 17841 | ################################################################################ |
fae0c576 | 17842 | |
83912faa | 17843 | |
795ca3e5 AK |
17844 | |
17845 | ||
17846 | ||
17847 | ||
17848 | ||
17849 | ||
5a52dca9 | 17850 | |
8ef2b021 | 17851 | |
199e490e | 17852 | |
69792976 AK |
17853 | |
17854 | ||
17855 | ||
d0191583 | 17856 | |
69792976 | 17857 | |
8106cdd5 AK |
17858 | |
17859 | ||
17860 | ||
17861 | ||
17862 | ||
d68a82ec | 17863 | |
036f273a | 17864 | |
7d1552c9 | 17865 | |
8106cdd5 | 17866 | |
0a62c911 | 17867 | |
8106cdd5 | 17868 | |
4a7f3eb2 | 17869 | |
4922197a AK |
17870 | |
17871 | ||
d8ac0fbc | 17872 | |
1a9ea74d | 17873 | |
8a2fc586 AK |
17874 | |
17875 | ||
d0191583 | 17876 | |
93bd259b AK |
17877 | |
17878 | ||
17879 | ||
17880 | ||
17881 | ||
d0191583 JM |
17882 | |
17883 | ||
17884 | ||
17885 | ||
17886 | ||
8a2fc586 | 17887 | |
19a2c6e0 | 17888 | |
f7f0854e ZK |
17889 | |
17890 | ||
3ceb7608 | 17891 | |
8ce0cbda | 17892 | |
8b1a3214 | 17893 | |
ec6a6fbe AK |
17894 | |
17895 | ||
17896 | ||
17897 | ||
e2997b73 AK |
17898 | |
17899 | ||
17900 | ||
17901 | ||
17902 | ||
17903 | ||
a946372e AK |
17904 | |
17905 | ||
17906 | ||
17907 | ||
17908 | ||
17909 | ||
17910 | ||
17911 | ||
17912 | ||
17913 | ||
17914 | ||
ec6a6fbe | 17915 | |
33f732c5 | 17916 | |
66e941e8 | 17917 | |
d3c8211f | 17918 | |
7e3fe830 | 17919 | |
a5f46f6a AK |
17920 | |
17921 | ||
17922 | ||
572fefeb | 17923 | |
90c80887 | 17924 | |
3399ae32 AK |
17925 | |
17926 | ||
17927 | ||
17928 | ||
17929 | ||
90c80887 | 17930 | |
bf456146 | 17931 | |
e1b8a236 | 17932 | |
0878503f | 17933 | |
8fea97b7 | 17934 | |
68f2de6d AK |
17935 | |
17936 | ||
80992638 | 17937 | ################################################################################ |
8fea97b7 | 17938 | 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 | 17939 | |
ad6254c5 | 17940 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
17941 | # This file is a shell script that caches the results of configure |
17942 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
17943 | # scripts and configure runs, see configure's option --config-cache. |
17944 | # It is not useful on other systems. If it contains results you don't | |
17945 | # want to keep, you may remove or edit it. | |
795ca3e5 | 17946 | # |
ad6254c5 AK |
17947 | # config.status only pays attention to the cache file if you give it |
17948 | # the --recheck option to rerun configure. | |
795ca3e5 | 17949 | # |
ad6254c5 AK |
17950 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17951 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17952 | # following values. | |
17953 | ||
17954 | _ACEOF | |
17955 | ||
795ca3e5 AK |
17956 | # The following way of writing the cache mishandles newlines in values, |
17957 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 17958 | # So, we kill variables containing newlines. |
795ca3e5 AK |
17959 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17960 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
17961 | ( |
17962 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17963 | eval ac_val=\$$ac_var | |
17964 | case $ac_val in #( | |
17965 | *${as_nl}*) | |
17966 | case $ac_var in #( | |
ec6a6fbe AK |
17967 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
17968 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
17969 | esac |
17970 | case $ac_var in #( | |
17971 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 17972 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
17973 | *) $as_unset $ac_var ;; |
17974 | esac ;; | |
17975 | esac | |
17976 | done | |
17977 | ||
ad6254c5 | 17978 | (set) 2>&1 | |
7a197a62 AK |
17979 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17980 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
17981 | # `set' does not quote correctly, so add quotes (double-quote |
17982 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17983 | sed -n \ | |
8a2fc586 AK |
17984 | "s/'/'\\\\''/g; |
17985 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 17986 | ;; #( |
ad6254c5 AK |
17987 | *) |
17988 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 17989 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 17990 | ;; |
7a197a62 AK |
17991 | esac | |
17992 | sort | |
17993 | ) | | |
ad6254c5 | 17994 | sed ' |
7a197a62 | 17995 | /^ac_cv_env_/b end |
ad6254c5 | 17996 | t clear |
7a197a62 | 17997 | :clear |
ad6254c5 AK |
17998 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17999 | t end | |
7a197a62 AK |
18000 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18001 | :end' >>confcache | |
18002 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18003 | if test -w "$cache_file"; then | |
18004 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
18005 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
18006 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 18007 | cat confcache >$cache_file |
795ca3e5 | 18008 | else |
ec6a6fbe AK |
18009 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
18010 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
18011 | fi |
18012 | fi | |
18013 | rm -f confcache | |
18014 | ||
795ca3e5 AK |
18015 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18016 | # Let make expand exec_prefix. | |
18017 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18018 | ||
72b2cb61 | 18019 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
18020 | |
18021 | ac_libobjs= | |
18022 | ac_ltlibobjs= | |
18023 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18024 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 18025 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 18026 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
18027 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18028 | # will be set to the directory where LIBOBJS objects are built. | |
18029 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18030 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18031 | done |
18032 | LIBOBJS=$ac_libobjs | |
80992638 | 18033 | |
ad6254c5 AK |
18034 | LTLIBOBJS=$ac_ltlibobjs |
18035 | ||
18036 | ||
18037 | ||
18038 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18039 | ac_write_fail=0 |
ad6254c5 AK |
18040 | ac_clean_files_save=$ac_clean_files |
18041 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18042 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18043 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18044 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18045 | #! $SHELL |
18046 | # Generated by $as_me. | |
795ca3e5 | 18047 | # Run this file to recreate the current configuration. |
795ca3e5 | 18048 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18049 | # configure, is in config.log if it exists. |
18050 | ||
18051 | debug=false | |
18052 | ac_cs_recheck=false | |
18053 | ac_cs_silent=false | |
18054 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18055 | _ACEOF | |
18056 | ||
ec6a6fbe | 18057 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18058 | ## --------------------- ## |
18059 | ## M4sh Initialization. ## | |
18060 | ## --------------------- ## | |
18061 | ||
25fbec5b AK |
18062 | # Be more Bourne compatible |
18063 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18064 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18065 | emulate sh | |
18066 | NULLCMD=: | |
ec6a6fbe | 18067 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18068 | # is contrary to our usage. Disable this feature. |
18069 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18070 | setopt NO_GLOB_SUBST |
18071 | else | |
25fbec5b AK |
18072 | case `(set -o) 2>/dev/null` in |
18073 | *posix*) set -o posix ;; | |
18074 | esac | |
18075 | ||
7a197a62 | 18076 | fi |
25fbec5b AK |
18077 | |
18078 | ||
7a197a62 AK |
18079 | |
18080 | ||
18081 | # PATH needs CR | |
18082 | # Avoid depending upon Character Ranges. | |
18083 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18084 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18085 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18086 | as_cr_digits='0123456789' | |
18087 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18088 | ||
ec6a6fbe AK |
18089 | as_nl=' |
18090 | ' | |
18091 | export as_nl | |
18092 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18093 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18094 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18095 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18096 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18097 | as_echo='printf %s\n' | |
18098 | as_echo_n='printf %s' | |
18099 | else | |
18100 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18101 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18102 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18103 | else |
ec6a6fbe AK |
18104 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18105 | as_echo_n_body='eval | |
18106 | arg=$1; | |
18107 | case $arg in | |
18108 | *"$as_nl"*) | |
18109 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18110 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18111 | esac; | |
18112 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18113 | ' | |
18114 | export as_echo_n_body | |
18115 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18116 | fi |
ec6a6fbe AK |
18117 | export as_echo_body |
18118 | as_echo='sh -c $as_echo_body as_echo' | |
18119 | fi | |
18120 | ||
18121 | # The user is always right. | |
18122 | if test "${PATH_SEPARATOR+set}" != set; then | |
18123 | PATH_SEPARATOR=: | |
18124 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18125 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18126 | PATH_SEPARATOR=';' | |
18127 | } | |
ad6254c5 AK |
18128 | fi |
18129 | ||
18130 | # Support unset when possible. | |
8a2fc586 | 18131 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18132 | as_unset=unset |
18133 | else | |
18134 | as_unset=false | |
18135 | fi | |
8106cdd5 | 18136 | |
ad6254c5 | 18137 | |
7a197a62 AK |
18138 | # IFS |
18139 | # We need space, tab and new line, in precisely that order. Quoting is | |
18140 | # there to prevent editors from complaining about space-tab. | |
18141 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18142 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18143 | IFS=" "" $as_nl" |
18144 | ||
18145 | # Find who we are. Look in the path if we contain no directory separator. | |
18146 | case $0 in | |
18147 | *[\\/]* ) as_myself=$0 ;; | |
18148 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18149 | for as_dir in $PATH | |
18150 | do | |
18151 | IFS=$as_save_IFS | |
18152 | test -z "$as_dir" && as_dir=. | |
18153 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18154 | done | |
18155 | IFS=$as_save_IFS | |
18156 | ||
18157 | ;; | |
18158 | esac | |
18159 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18160 | # in which case we are not to be found in the path. | |
18161 | if test "x$as_myself" = x; then | |
18162 | as_myself=$0 | |
18163 | fi | |
18164 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18165 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18166 | { (exit 1); exit 1; } |
18167 | fi | |
18168 | ||
ad6254c5 | 18169 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18170 | for as_var in ENV MAIL MAILPATH |
18171 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18172 | done | |
ad6254c5 AK |
18173 | PS1='$ ' |
18174 | PS2='> ' | |
18175 | PS4='+ ' | |
18176 | ||
18177 | # NLS nuisances. | |
ec6a6fbe AK |
18178 | LC_ALL=C |
18179 | export LC_ALL | |
18180 | LANGUAGE=C | |
18181 | export LANGUAGE | |
8106cdd5 | 18182 | |
ad6254c5 | 18183 | # Required to use basename. |
7a197a62 AK |
18184 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18185 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18186 | as_expr=expr |
18187 | else | |
18188 | as_expr=false | |
18189 | fi | |
8106cdd5 | 18190 | |
7a197a62 | 18191 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18192 | as_basename=basename |
18193 | else | |
18194 | as_basename=false | |
18195 | fi | |
18196 | ||
18197 | ||
18198 | # Name of the executable. | |
7a197a62 | 18199 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18200 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18201 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18202 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18203 | $as_echo X/"$0" | |
7a197a62 AK |
18204 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18205 | s//\1/ | |
18206 | q | |
18207 | } | |
18208 | /^X\/\(\/\/\)$/{ | |
18209 | s//\1/ | |
18210 | q | |
18211 | } | |
18212 | /^X\/\(\/\).*/{ | |
18213 | s//\1/ | |
18214 | q | |
18215 | } | |
18216 | s/.*/./; q'` | |
ad6254c5 | 18217 | |
7a197a62 AK |
18218 | # CDPATH. |
18219 | $as_unset CDPATH | |
ad6254c5 AK |
18220 | |
18221 | ||
ad6254c5 | 18222 | |
ad6254c5 AK |
18223 | as_lineno_1=$LINENO |
18224 | as_lineno_2=$LINENO | |
ad6254c5 | 18225 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18226 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18227 | |
ad6254c5 AK |
18228 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18229 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18230 | # line-number line after each line using $LINENO; the second 'sed' |
18231 | # does the real work. The second script uses 'N' to pair each | |
18232 | # line-number line with the line containing $LINENO, and appends | |
18233 | # trailing '-' during substitution so that $LINENO is not a special | |
18234 | # case at line end. | |
ad6254c5 | 18235 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18236 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18237 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18238 | sed -n ' | |
18239 | p | |
18240 | /[$]LINENO/= | |
18241 | ' <$as_myself | | |
ad6254c5 | 18242 | sed ' |
7a197a62 AK |
18243 | s/[$]LINENO.*/&-/ |
18244 | t lineno | |
18245 | b | |
18246 | :lineno | |
ad6254c5 | 18247 | N |
7a197a62 AK |
18248 | :loop |
18249 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18250 | t loop |
7a197a62 | 18251 | s/-\n.*// |
ad6254c5 | 18252 | ' >$as_me.lineno && |
7a197a62 | 18253 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18254 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18255 | { (exit 1); exit 1; }; } |
18256 | ||
18257 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18258 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18259 | # original and so on. Autoconf is especially sensitive to this). |
18260 | . "./$as_me.lineno" | |
ad6254c5 AK |
18261 | # Exit status is that of the last command. |
18262 | exit | |
18263 | } | |
18264 | ||
18265 | ||
7a197a62 AK |
18266 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18267 | as_dirname=dirname | |
18268 | else | |
18269 | as_dirname=false | |
18270 | fi | |
18271 | ||
18272 | ECHO_C= ECHO_N= ECHO_T= | |
18273 | case `echo -n x` in | |
18274 | -n*) | |
18275 | case `echo 'x\c'` in | |
18276 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18277 | *) ECHO_C='\c';; | |
18278 | esac;; | |
18279 | *) | |
18280 | ECHO_N='-n';; | |
ad6254c5 | 18281 | esac |
7a197a62 AK |
18282 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18283 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18284 | as_expr=expr |
18285 | else | |
18286 | as_expr=false | |
18287 | fi | |
80992638 | 18288 | |
ad6254c5 | 18289 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18290 | if test -d conf$$.dir; then |
18291 | rm -f conf$$.dir/conf$$.file | |
18292 | else | |
18293 | rm -f conf$$.dir | |
ec6a6fbe AK |
18294 | mkdir conf$$.dir 2>/dev/null |
18295 | fi | |
18296 | if (echo >conf$$.file) 2>/dev/null; then | |
18297 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18298 | as_ln_s='ln -s' | |
18299 | # ... but there are two gotchas: | |
18300 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18301 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18302 | # In both cases, we have to default to `cp -p'. | |
18303 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18304 | as_ln_s='cp -p' | |
18305 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18306 | as_ln_s=ln | |
18307 | else | |
ad6254c5 | 18308 | as_ln_s='cp -p' |
ec6a6fbe | 18309 | fi |
ad6254c5 AK |
18310 | else |
18311 | as_ln_s='cp -p' | |
18312 | fi | |
7a197a62 AK |
18313 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18314 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18315 | |
ad6254c5 AK |
18316 | if mkdir -p . 2>/dev/null; then |
18317 | as_mkdir_p=: | |
18318 | else | |
8a2fc586 | 18319 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18320 | as_mkdir_p=false |
18321 | fi | |
18322 | ||
25fbec5b AK |
18323 | if test -x / >/dev/null 2>&1; then |
18324 | as_test_x='test -x' | |
7a197a62 | 18325 | else |
25fbec5b AK |
18326 | if ls -dL / >/dev/null 2>&1; then |
18327 | as_ls_L_option=L | |
18328 | else | |
18329 | as_ls_L_option= | |
18330 | fi | |
18331 | as_test_x=' | |
18332 | eval sh -c '\'' | |
18333 | if test -d "$1"; then | |
ec6a6fbe | 18334 | test -d "$1/."; |
25fbec5b AK |
18335 | else |
18336 | case $1 in | |
ec6a6fbe | 18337 | -*)set "./$1";; |
25fbec5b AK |
18338 | esac; |
18339 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18340 | ???[sx]*):;;*)false;;esac;fi | |
18341 | '\'' sh | |
18342 | ' | |
7a197a62 | 18343 | fi |
25fbec5b | 18344 | as_executable_p=$as_test_x |
ad6254c5 AK |
18345 | |
18346 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18347 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18348 | |
18349 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18350 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18351 | |
18352 | ||
ad6254c5 AK |
18353 | exec 6>&1 |
18354 | ||
7a197a62 | 18355 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18356 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18357 | # values after options handling. |
18358 | ac_log=" | |
ad6254c5 | 18359 | This file was extended by $as_me, which was |
ec6a6fbe | 18360 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18361 | |
18362 | CONFIG_FILES = $CONFIG_FILES | |
18363 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18364 | CONFIG_LINKS = $CONFIG_LINKS | |
18365 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18366 | $ $0 $@ | |
18367 | ||
7a197a62 AK |
18368 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18369 | " | |
18370 | ||
ad6254c5 AK |
18371 | _ACEOF |
18372 | ||
ec6a6fbe AK |
18373 | case $ac_config_files in *" |
18374 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18375 | esac | |
18376 | ||
18377 | case $ac_config_headers in *" | |
18378 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18379 | esac | |
18380 | ||
18381 | ||
18382 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18383 | # Files that config.status was made for. |
68f2de6d AK |
18384 | config_files="$ac_config_files" |
18385 | config_headers="$ac_config_headers" | |
ad6254c5 | 18386 | |
7a197a62 | 18387 | _ACEOF |
ad6254c5 | 18388 | |
ec6a6fbe | 18389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18390 | ac_cs_usage="\ |
18391 | \`$as_me' instantiates files from templates according to the | |
18392 | current configuration. | |
18393 | ||
ec6a6fbe | 18394 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18395 | |
18396 | -h, --help print this help, then exit | |
25fbec5b | 18397 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18398 | -q, --quiet, --silent |
18399 | do not print progress messages | |
ad6254c5 AK |
18400 | -d, --debug don't remove temporary files |
18401 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18402 | --file=FILE[:TEMPLATE] |
18403 | instantiate the configuration file FILE | |
18404 | --header=FILE[:TEMPLATE] | |
18405 | instantiate the configuration header FILE | |
ad6254c5 AK |
18406 | |
18407 | Configuration files: | |
18408 | $config_files | |
18409 | ||
72b2cb61 AK |
18410 | Configuration headers: |
18411 | $config_headers | |
18412 | ||
ad6254c5 | 18413 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18414 | |
7a197a62 | 18415 | _ACEOF |
ec6a6fbe | 18416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18417 | ac_cs_version="\\ |
18418 | config.status | |
ec6a6fbe AK |
18419 | configured by $0, generated by GNU Autoconf 2.63, |
18420 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18421 | |
ec6a6fbe | 18422 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18423 | This config.status script is free software; the Free Software Foundation |
18424 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18425 | |
18426 | ac_pwd='$ac_pwd' | |
18427 | srcdir='$srcdir' | |
18428 | INSTALL='$INSTALL' | |
fddafd51 | 18429 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18430 | AWK='$AWK' |
18431 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18432 | _ACEOF |
18433 | ||
ec6a6fbe AK |
18434 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18435 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18436 | ac_need_defaults=: |
18437 | while test $# != 0 | |
18438 | do | |
18439 | case $1 in | |
18440 | --*=*) | |
7a197a62 AK |
18441 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18442 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18443 | ac_shift=: |
18444 | ;; | |
7a197a62 | 18445 | *) |
ad6254c5 AK |
18446 | ac_option=$1 |
18447 | ac_optarg=$2 | |
18448 | ac_shift=shift | |
18449 | ;; | |
ad6254c5 AK |
18450 | esac |
18451 | ||
18452 | case $ac_option in | |
18453 | # Handling of the options. | |
ad6254c5 AK |
18454 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18455 | ac_cs_recheck=: ;; | |
7a197a62 | 18456 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18457 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18458 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18459 | debug=: ;; |
18460 | --file | --fil | --fi | --f ) | |
18461 | $ac_shift | |
ec6a6fbe AK |
18462 | case $ac_optarg in |
18463 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18464 | esac | |
18465 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18466 | ac_need_defaults=false;; |
18467 | --header | --heade | --head | --hea ) | |
18468 | $ac_shift | |
ec6a6fbe AK |
18469 | case $ac_optarg in |
18470 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18471 | esac | |
18472 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18473 | ac_need_defaults=false;; |
7a197a62 AK |
18474 | --he | --h) |
18475 | # Conflict between --help and --header | |
ec6a6fbe | 18476 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18477 | Try \`$0 --help' for more information." >&2 |
18478 | { (exit 1); exit 1; }; };; | |
18479 | --help | --hel | -h ) | |
ec6a6fbe | 18480 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18481 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18482 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18483 | ac_cs_silent=: ;; | |
18484 | ||
18485 | # This is an error. | |
ec6a6fbe | 18486 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18487 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18488 | { (exit 1); exit 1; }; } ;; |
18489 | ||
7a197a62 AK |
18490 | *) ac_config_targets="$ac_config_targets $1" |
18491 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18492 | |
18493 | esac | |
18494 | shift | |
18495 | done | |
18496 | ||
18497 | ac_configure_extra_args= | |
18498 | ||
18499 | if $ac_cs_silent; then | |
18500 | exec 6>/dev/null | |
18501 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18502 | fi | |
18503 | ||
18504 | _ACEOF | |
ec6a6fbe | 18505 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18506 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18507 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18508 | shift | |
18509 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18510 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18511 | export CONFIG_SHELL |
ec6a6fbe | 18512 | exec "\$@" |
ad6254c5 AK |
18513 | fi |
18514 | ||
18515 | _ACEOF | |
ec6a6fbe | 18516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18517 | exec 5>>config.log |
18518 | { | |
18519 | echo | |
18520 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18521 | ## Running $as_me. ## | |
18522 | _ASBOX | |
ec6a6fbe | 18523 | $as_echo "$ac_log" |
7a197a62 | 18524 | } >&5 |
ad6254c5 | 18525 | |
7a197a62 | 18526 | _ACEOF |
ec6a6fbe | 18527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18528 | _ACEOF |
ad6254c5 | 18529 | |
ec6a6fbe | 18530 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18531 | |
18532 | # Handling of arguments. | |
ad6254c5 AK |
18533 | for ac_config_target in $ac_config_targets |
18534 | do | |
7a197a62 AK |
18535 | case $ac_config_target in |
18536 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18537 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18538 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18539 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18540 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18541 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18542 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18543 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18544 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18545 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18546 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18547 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18548 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18549 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18550 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18551 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18552 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18553 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18554 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18555 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18556 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18557 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18558 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18559 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18560 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18561 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18562 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18563 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18564 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18565 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18566 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18567 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18568 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18569 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18570 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18571 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18572 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18573 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 18574 | |
ec6a6fbe AK |
18575 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18576 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18577 | { (exit 1); exit 1; }; };; |
80992638 | 18578 | esac |
ad6254c5 AK |
18579 | done |
18580 | ||
7a197a62 | 18581 | |
ad6254c5 AK |
18582 | # If the user did not use the arguments to specify the items to instantiate, |
18583 | # then the envvar interface is used. Set only those that are not. | |
18584 | # We use the long form for the default assignment because of an extremely | |
18585 | # bizarre bug on SunOS 4.1.3. | |
18586 | if $ac_need_defaults; then | |
18587 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18588 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18589 | fi |
18590 | ||
18591 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18592 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18593 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18594 | # Hook for its removal unless debugging. |
18595 | # Note that there is a small window in which the directory will not be cleaned: | |
18596 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18597 | $debug || |
18598 | { | |
7a197a62 AK |
18599 | tmp= |
18600 | trap 'exit_status=$? | |
18601 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18602 | ' 0 | |
ad6254c5 AK |
18603 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18604 | } | |
ad6254c5 AK |
18605 | # Create a (secure) tmp directory for tmp files. |
18606 | ||
18607 | { | |
7a197a62 | 18608 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18609 | test -n "$tmp" && test -d "$tmp" |
18610 | } || | |
18611 | { | |
7a197a62 AK |
18612 | tmp=./conf$$-$RANDOM |
18613 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18614 | } || |
18615 | { | |
ec6a6fbe | 18616 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18617 | { (exit 1); exit 1; } |
18618 | } | |
18619 | ||
ec6a6fbe AK |
18620 | # Set up the scripts for CONFIG_FILES section. |
18621 | # No need to generate them if there are no CONFIG_FILES. | |
18622 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18623 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18624 | |
68f2de6d | 18625 | |
ec6a6fbe AK |
18626 | ac_cr='\r' |
18627 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18628 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18629 | ac_cs_awk_cr='\\r' | |
18630 | else | |
18631 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18632 | fi |
7a197a62 | 18633 | |
ec6a6fbe | 18634 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18635 | _ACEOF |
7a197a62 | 18636 | |
8106cdd5 | 18637 | |
ec6a6fbe AK |
18638 | { |
18639 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18640 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18641 | echo "_ACEOF" | |
18642 | } >conf$$subs.sh || | |
18643 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18644 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18645 | { (exit 1); exit 1; }; } | |
18646 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18647 | ac_delim='%!_!# ' |
18648 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18649 | . ./conf$$subs.sh || |
18650 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18651 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18652 | { (exit 1); exit 1; }; } | |
18653 | ||
18654 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18655 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18656 | break |
18657 | elif $ac_last_try; then | |
ec6a6fbe AK |
18658 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18659 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18660 | { (exit 1); exit 1; }; } |
18661 | else | |
18662 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18663 | fi | |
18664 | done | |
ec6a6fbe AK |
18665 | rm -f conf$$subs.sh |
18666 | ||
18667 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18668 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18669 | _ACEOF | |
18670 | sed -n ' | |
18671 | h | |
18672 | s/^/S["/; s/!.*/"]=/ | |
18673 | p | |
18674 | g | |
18675 | s/^[^!]*!// | |
18676 | :repl | |
18677 | t repl | |
18678 | s/'"$ac_delim"'$// | |
18679 | t delim | |
18680 | :nl | |
18681 | h | |
18682 | s/\(.\{148\}\).*/\1/ | |
18683 | t more1 | |
18684 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18685 | p | |
18686 | n | |
18687 | b repl | |
18688 | :more1 | |
18689 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18690 | p | |
18691 | g | |
18692 | s/.\{148\}// | |
18693 | t nl | |
18694 | :delim | |
18695 | h | |
18696 | s/\(.\{148\}\).*/\1/ | |
18697 | t more2 | |
18698 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18699 | p | |
18700 | b | |
18701 | :more2 | |
18702 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18703 | p | |
18704 | g | |
18705 | s/.\{148\}// | |
18706 | t delim | |
18707 | ' <conf$$subs.awk | sed ' | |
18708 | /^[^""]/{ | |
18709 | N | |
18710 | s/\n// | |
18711 | } | |
18712 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18713 | rm -f conf$$subs.awk | |
18714 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18715 | _ACAWK | |
18716 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18717 | for (key in S) S_is_set[key] = 1 | |
18718 | FS = "\a" | |
7a197a62 | 18719 | |
ec6a6fbe AK |
18720 | } |
18721 | { | |
18722 | line = $ 0 | |
18723 | nfields = split(line, field, "@") | |
18724 | substed = 0 | |
18725 | len = length(field[1]) | |
18726 | for (i = 2; i < nfields; i++) { | |
18727 | key = field[i] | |
18728 | keylen = length(key) | |
18729 | if (S_is_set[key]) { | |
18730 | value = S[key] | |
18731 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18732 | len += length(value) + length(field[++i]) | |
18733 | substed = 1 | |
18734 | } else | |
18735 | len += 1 + keylen | |
18736 | } | |
18737 | ||
18738 | print line | |
18739 | } | |
fddafd51 | 18740 | |
ec6a6fbe | 18741 | _ACAWK |
1995c9ff | 18742 | _ACEOF |
ec6a6fbe AK |
18743 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18744 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18745 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18746 | else | |
18747 | cat | |
18748 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18749 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
18750 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
18751 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
18752 | _ACEOF |
18753 | ||
7a197a62 AK |
18754 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18755 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18756 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18757 | # (actually we leave an empty line to preserve line numbers). | |
18758 | if test "x$srcdir" = x.; then | |
18759 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18760 | s/:*\$(srcdir):*/:/ | |
18761 | s/:*\${srcdir}:*/:/ | |
18762 | s/:*@srcdir@:*/:/ | |
18763 | s/^\([^=]*=[ ]*\):*/\1/ | |
18764 | s/:*$// | |
18765 | s/^[^=]*=[ ]*$// | |
18766 | }' | |
18767 | fi | |
18768 | ||
ec6a6fbe | 18769 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18770 | fi # test -n "$CONFIG_FILES" |
18771 | ||
ec6a6fbe AK |
18772 | # Set up the scripts for CONFIG_HEADERS section. |
18773 | # No need to generate them if there are no CONFIG_HEADERS. | |
18774 | # This happens for instance with `./config.status Makefile'. | |
18775 | if test -n "$CONFIG_HEADERS"; then | |
18776 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18777 | BEGIN { | |
18778 | _ACEOF | |
18779 | ||
18780 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18781 | # here-document in config.status, that substitutes the proper values into | |
18782 | # config.h.in to produce config.h. | |
18783 | ||
18784 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18785 | # handling of long lines. | |
18786 | ac_delim='%!_!# ' | |
18787 | for ac_last_try in false false :; do | |
18788 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18789 | if test -z "$ac_t"; then | |
18790 | break | |
18791 | elif $ac_last_try; then | |
18792 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
18793 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
18794 | { (exit 1); exit 1; }; } | |
18795 | else | |
18796 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18797 | fi | |
18798 | done | |
18799 | ||
18800 | # For the awk script, D is an array of macro values keyed by name, | |
18801 | # likewise P contains macro parameters if any. Preserve backslash | |
18802 | # newline sequences. | |
18803 | ||
18804 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18805 | sed -n ' | |
18806 | s/.\{148\}/&'"$ac_delim"'/g | |
18807 | t rset | |
18808 | :rset | |
18809 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18810 | t def | |
18811 | d | |
18812 | :def | |
18813 | s/\\$// | |
18814 | t bsnl | |
18815 | s/["\\]/\\&/g | |
18816 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18817 | D["\1"]=" \3"/p | |
18818 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18819 | d | |
18820 | :bsnl | |
18821 | s/["\\]/\\&/g | |
18822 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18823 | D["\1"]=" \3\\\\\\n"\\/p | |
18824 | t cont | |
18825 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18826 | t cont | |
18827 | d | |
18828 | :cont | |
18829 | n | |
18830 | s/.\{148\}/&'"$ac_delim"'/g | |
18831 | t clear | |
18832 | :clear | |
18833 | s/\\$// | |
18834 | t bsnlc | |
18835 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18836 | d | |
18837 | :bsnlc | |
18838 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18839 | b cont | |
18840 | ' <confdefs.h | sed ' | |
18841 | s/'"$ac_delim"'/"\\\ | |
18842 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18843 | ||
18844 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18845 | for (key in D) D_is_set[key] = 1 | |
18846 | FS = "\a" | |
18847 | } | |
18848 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18849 | line = \$ 0 | |
18850 | split(line, arg, " ") | |
18851 | if (arg[1] == "#") { | |
18852 | defundef = arg[2] | |
18853 | mac1 = arg[3] | |
18854 | } else { | |
18855 | defundef = substr(arg[1], 2) | |
18856 | mac1 = arg[2] | |
18857 | } | |
18858 | split(mac1, mac2, "(") #) | |
18859 | macro = mac2[1] | |
18860 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18861 | if (D_is_set[macro]) { | |
18862 | # Preserve the white space surrounding the "#". | |
18863 | print prefix "define", macro P[macro] D[macro] | |
18864 | next | |
18865 | } else { | |
18866 | # Replace #undef with comments. This is necessary, for example, | |
18867 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18868 | # on some systems where configure will not decide to define it. | |
18869 | if (defundef == "undef") { | |
18870 | print "/*", prefix defundef, macro, "*/" | |
18871 | next | |
18872 | } | |
18873 | } | |
18874 | } | |
18875 | { print } | |
18876 | _ACAWK | |
18877 | _ACEOF | |
18878 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18879 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
18880 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
18881 | { (exit 1); exit 1; }; } | |
18882 | fi # test -n "$CONFIG_HEADERS" | |
18883 | ||
7a197a62 | 18884 | |
ec6a6fbe AK |
18885 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
18886 | shift | |
18887 | for ac_tag | |
7a197a62 AK |
18888 | do |
18889 | case $ac_tag in | |
18890 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18891 | esac | |
18892 | case $ac_mode$ac_tag in | |
18893 | :[FHL]*:*);; | |
ec6a6fbe AK |
18894 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
18895 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
18896 | { (exit 1); exit 1; }; };; |
18897 | :[FH]-) ac_tag=-:-;; | |
18898 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18899 | esac | |
18900 | ac_save_IFS=$IFS | |
18901 | IFS=: | |
18902 | set x $ac_tag | |
18903 | IFS=$ac_save_IFS | |
18904 | shift | |
18905 | ac_file=$1 | |
18906 | shift | |
18907 | ||
18908 | case $ac_mode in | |
18909 | :L) ac_source=$1;; | |
18910 | :[FH]) | |
18911 | ac_file_inputs= | |
18912 | for ac_f | |
18913 | do | |
18914 | case $ac_f in | |
18915 | -) ac_f="$tmp/stdin";; | |
18916 | *) # Look for the file first in the build tree, then in the source tree | |
18917 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18918 | # because $ac_f cannot contain `:'. | |
18919 | test -f "$ac_f" || | |
18920 | case $ac_f in | |
18921 | [\\/$]*) false;; | |
18922 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18923 | esac || | |
ec6a6fbe AK |
18924 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
18925 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
18926 | { (exit 1); exit 1; }; };; |
18927 | esac | |
ec6a6fbe AK |
18928 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
18929 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
18930 | done |
18931 | ||
18932 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18933 | # use $as_me), people would be surprised to read: | |
18934 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
18935 | configure_input='Generated from '` |
18936 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18937 | `' by configure.' | |
7a197a62 AK |
18938 | if test x"$ac_file" != x-; then |
18939 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
18940 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
18941 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 18942 | fi |
ec6a6fbe AK |
18943 | # Neutralize special characters interpreted by sed in replacement strings. |
18944 | case $configure_input in #( | |
18945 | *\&* | *\|* | *\\* ) | |
18946 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18947 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18948 | *) ac_sed_conf_input=$configure_input;; | |
18949 | esac | |
7a197a62 AK |
18950 | |
18951 | case $ac_tag in | |
ec6a6fbe AK |
18952 | *:-:* | *:-) cat >"$tmp/stdin" \ |
18953 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18954 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18955 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
18956 | esac |
18957 | ;; | |
80992638 | 18958 | esac |
8106cdd5 | 18959 | |
7a197a62 | 18960 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 18961 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
18962 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18963 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 18964 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18965 | $as_echo X"$ac_file" | |
7a197a62 AK |
18966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18967 | s//\1/ | |
18968 | q | |
18969 | } | |
18970 | /^X\(\/\/\)[^/].*/{ | |
18971 | s//\1/ | |
18972 | q | |
18973 | } | |
18974 | /^X\(\/\/\)$/{ | |
18975 | s//\1/ | |
18976 | q | |
18977 | } | |
18978 | /^X\(\/\).*/{ | |
18979 | s//\1/ | |
18980 | q | |
18981 | } | |
18982 | s/.*/./; q'` | |
18983 | { as_dir="$ac_dir" | |
18984 | case $as_dir in #( | |
18985 | -*) as_dir=./$as_dir;; | |
18986 | esac | |
18987 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 18988 | as_dirs= |
7a197a62 AK |
18989 | while :; do |
18990 | case $as_dir in #( | |
ec6a6fbe | 18991 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
18992 | *) as_qdir=$as_dir;; |
18993 | esac | |
18994 | as_dirs="'$as_qdir' $as_dirs" | |
18995 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 18996 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
18997 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
18998 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 18999 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19000 | $as_echo X"$as_dir" | |
7a197a62 AK |
19001 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19002 | s//\1/ | |
19003 | q | |
19004 | } | |
19005 | /^X\(\/\/\)[^/].*/{ | |
19006 | s//\1/ | |
19007 | q | |
19008 | } | |
19009 | /^X\(\/\/\)$/{ | |
19010 | s//\1/ | |
19011 | q | |
19012 | } | |
19013 | /^X\(\/\).*/{ | |
19014 | s//\1/ | |
19015 | q | |
19016 | } | |
19017 | s/.*/./; q'` | |
19018 | test -d "$as_dir" && break | |
ad6254c5 | 19019 | done |
7a197a62 | 19020 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
19021 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
19022 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 19023 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
19024 | ac_builddir=. |
19025 | ||
7a197a62 AK |
19026 | case "$ac_dir" in |
19027 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19028 | *) | |
ec6a6fbe | 19029 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 19030 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19031 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19032 | case $ac_top_builddir_sub in |
19033 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19034 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19035 | esac ;; | |
19036 | esac | |
19037 | ac_abs_top_builddir=$ac_pwd | |
19038 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19039 | # for backward compatibility: | |
19040 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19041 | |
19042 | case $srcdir in | |
7a197a62 | 19043 | .) # We are building in place. |
ad6254c5 | 19044 | ac_srcdir=. |
7a197a62 AK |
19045 | ac_top_srcdir=$ac_top_builddir_sub |
19046 | ac_abs_top_srcdir=$ac_pwd ;; | |
19047 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19048 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19049 | ac_top_srcdir=$srcdir |
19050 | ac_abs_top_srcdir=$srcdir ;; | |
19051 | *) # Relative name. | |
19052 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19053 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19054 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19055 | esac |
7a197a62 | 19056 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19057 | |
ad6254c5 | 19058 | |
7a197a62 AK |
19059 | case $ac_mode in |
19060 | :F) | |
19061 | # | |
19062 | # CONFIG_FILE | |
19063 | # | |
ad6254c5 AK |
19064 | |
19065 | case $INSTALL in | |
19066 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19067 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19068 | esac |
fddafd51 ZK |
19069 | ac_MKDIR_P=$MKDIR_P |
19070 | case $MKDIR_P in | |
19071 | [\\/$]* | ?:[\\/]* ) ;; | |
19072 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19073 | esac | |
7a197a62 | 19074 | _ACEOF |
795ca3e5 | 19075 | |
ec6a6fbe | 19076 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19077 | # If the template does not know about datarootdir, expand it. |
19078 | # FIXME: This hack should be removed a few years after 2.60. | |
19079 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19080 | ||
ec6a6fbe AK |
19081 | ac_sed_dataroot=' |
19082 | /datarootdir/ { | |
7a197a62 AK |
19083 | p |
19084 | q | |
19085 | } | |
19086 | /@datadir@/p | |
19087 | /@docdir@/p | |
19088 | /@infodir@/p | |
19089 | /@localedir@/p | |
19090 | /@mandir@/p | |
ec6a6fbe AK |
19091 | ' |
19092 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19093 | *datarootdir*) ac_datarootdir_seen=yes;; |
19094 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19096 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19097 | _ACEOF |
ec6a6fbe | 19098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19099 | ac_datarootdir_hack=' |
19100 | s&@datadir@&$datadir&g | |
19101 | s&@docdir@&$docdir&g | |
19102 | s&@infodir@&$infodir&g | |
19103 | s&@localedir@&$localedir&g | |
19104 | s&@mandir@&$mandir&g | |
19105 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19106 | esac | |
19107 | _ACEOF | |
19108 | ||
19109 | # Neutralize VPATH when `$srcdir' = `.'. | |
19110 | # Shell code in configure.ac might set extrasub. | |
19111 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19112 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19113 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19114 | $extrasub |
19115 | _ACEOF | |
ec6a6fbe | 19116 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19117 | :t |
19118 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19119 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19120 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19121 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19122 | s&@srcdir@&$ac_srcdir&;t t |
19123 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19124 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19125 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19126 | s&@builddir@&$ac_builddir&;t t | |
19127 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19128 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19129 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19130 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19131 | $ac_datarootdir_hack |
ec6a6fbe AK |
19132 | " |
19133 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19134 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19135 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19136 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19137 | |
19138 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19139 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19140 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19142 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19143 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19144 | which seems to be undefined. Please make sure it is defined." >&2;} |
19145 | ||
19146 | rm -f "$tmp/stdin" | |
72b2cb61 | 19147 | case $ac_file in |
ec6a6fbe AK |
19148 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19149 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19150 | esac \ | |
19151 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19152 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19153 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19154 | ;; |
19155 | :H) | |
19156 | # | |
19157 | # CONFIG_HEADER | |
19158 | # | |
72b2cb61 | 19159 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19160 | { |
19161 | $as_echo "/* $configure_input */" \ | |
19162 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19163 | } >"$tmp/config.h" \ | |
19164 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19165 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19166 | { (exit 1); exit 1; }; } | |
19167 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19168 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19169 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19170 | else |
ec6a6fbe AK |
19171 | rm -f "$ac_file" |
19172 | mv "$tmp/config.h" "$ac_file" \ | |
19173 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19174 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19175 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19176 | fi |
19177 | else | |
ec6a6fbe AK |
19178 | $as_echo "/* $configure_input */" \ |
19179 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19180 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19181 | $as_echo "$as_me: error: could not create -" >&2;} | |
19182 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19183 | fi |
7a197a62 AK |
19184 | ;; |
19185 | ||
19186 | ||
19187 | esac | |
19188 | ||
19189 | done # for ac_tag | |
795ca3e5 | 19190 | |
795ca3e5 | 19191 | |
ad6254c5 AK |
19192 | { (exit 0); exit 0; } |
19193 | _ACEOF | |
795ca3e5 | 19194 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19195 | ac_clean_files=$ac_clean_files_save |
19196 | ||
ec6a6fbe AK |
19197 | test $ac_write_fail = 0 || |
19198 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19199 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19200 | { (exit 1); exit 1; }; } | |
19201 | ||
ad6254c5 AK |
19202 | |
19203 | # configure is writing to config.log, and then calls config.status. | |
19204 | # config.status does its own redirection, appending to config.log. | |
19205 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19206 | # by configure, so config.status won't be able to write to it; its | |
19207 | # output is simply discarded. So we exec the FD to /dev/null, | |
19208 | # effectively closing config.log, so it can be properly (re)opened and | |
19209 | # appended to by config.status. When coming back to configure, we | |
19210 | # need to make the FD available again. | |
19211 | if test "$no_create" != yes; then | |
19212 | ac_cs_success=: | |
19213 | ac_config_status_args= | |
19214 | test "$silent" = yes && | |
19215 | ac_config_status_args="$ac_config_status_args --quiet" | |
19216 | exec 5>/dev/null | |
19217 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19218 | exec 5>>config.log | |
19219 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19220 | # would make configure fail if this is the last instruction. | |
19221 | $ac_cs_success || { (exit 1); exit 1; } | |
19222 | fi | |
ec6a6fbe AK |
19223 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19224 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19225 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19226 | fi | |
795ca3e5 | 19227 | |
2dc95e1c AK |
19228 | |
19229 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19230 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19231 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19232 | fi |