]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
649 | LIB_PTHREAD | |
a5f46f6a | 650 | UDEV_RULES |
ec6a6fbe AK |
651 | STATIC_LINK |
652 | STATICDIR | |
653 | SNAPSHOTS | |
654 | POOL | |
655 | PKGCONFIG | |
656 | OWNER | |
657 | MIRRORS | |
658 | LVM_RELEASE_DATE | |
659 | LVM_RELEASE | |
660 | LVM_PATCHLEVEL | |
661 | LVM_MINOR | |
662 | LVM_MAJOR | |
bf456146 | 663 | LVM_LIBAPI |
ec6a6fbe | 664 | LVM_VERSION |
ec6a6fbe AK |
665 | LVM1_FALLBACK |
666 | LVM1 | |
667 | LOCALEDIR | |
668 | LIB_SUFFIX | |
669 | LDDEPS | |
670 | JOBS | |
671 | INTL_PACKAGE | |
672 | INTL | |
673 | HAVE_SELINUX | |
674 | HAVE_REALTIME | |
675 | HAVE_LIBDL | |
676 | GROUP | |
677 | FSADM | |
678 | DM_LIB_PATCHLEVEL | |
679 | DM_LIB_VERSION | |
680 | DM_IOCTLS | |
681 | DM_DEVICE_UID | |
682 | DM_DEVICE_MODE | |
683 | DM_DEVICE_GID | |
684 | DM_COMPAT | |
685 | DMEVENTD | |
686 | DEVMAPPER | |
687 | DEBUG | |
688 | COPTIMISE_FLAG | |
e2997b73 | 689 | CONFDIR |
ec6a6fbe AK |
690 | CMDLIB |
691 | CLVMD | |
692 | CLUSTER | |
693 | CLDWHOLEARCHIVE | |
694 | CLDNOWHOLEARCHIVE | |
695 | CLDFLAGS | |
696 | BUILD_DMEVENTD | |
66fd4529 | 697 | BUILD_CMIRRORD |
572fefeb | 698 | APPLIB |
ec6a6fbe AK |
699 | MODPROBE_CMD |
700 | MSGFMT | |
701 | LVM2CMD_LIB | |
572fefeb | 702 | LVM2APP_LIB |
ec6a6fbe AK |
703 | GENHTML |
704 | LCOV | |
90c80887 AK |
705 | SACKPT_LIBS |
706 | SACKPT_CFLAGS | |
a946372e AK |
707 | DLM_LIBS |
708 | DLM_CFLAGS | |
e2997b73 AK |
709 | CPG_LIBS |
710 | CPG_CFLAGS | |
711 | CONFDB_LIBS | |
712 | CONFDB_CFLAGS | |
a946372e AK |
713 | SALCK_LIBS |
714 | SALCK_CFLAGS | |
e2997b73 AK |
715 | QUORUM_LIBS |
716 | QUORUM_CFLAGS | |
a946372e AK |
717 | COROSYNC_LIBS |
718 | COROSYNC_CFLAGS | |
719 | CMAN_LIBS | |
720 | CMAN_CFLAGS | |
721 | GULM_LIBS | |
722 | GULM_CFLAGS | |
723 | CCS_LIBS | |
724 | CCS_CFLAGS | |
725 | PKGCONFIGINIT_LIBS | |
726 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 727 | PKG_CONFIG |
ec6a6fbe AK |
728 | POW_LIB |
729 | LIBOBJS | |
730 | ALLOCA | |
731 | CSCOPE_CMD | |
732 | CFLOW_CMD | |
733 | RANLIB | |
734 | MKDIR_P | |
735 | SET_MAKE | |
736 | LN_S | |
737 | INSTALL_DATA | |
738 | INSTALL_SCRIPT | |
739 | INSTALL_PROGRAM | |
740 | EGREP | |
741 | GREP | |
742 | CPP | |
743 | OBJEXT | |
744 | EXEEXT | |
745 | ac_ct_CC | |
746 | CPPFLAGS | |
747 | LDFLAGS | |
748 | CFLAGS | |
749 | CC | |
750 | AWK | |
751 | SED | |
752 | target_os | |
753 | target_vendor | |
754 | target_cpu | |
755 | target | |
756 | host_os | |
757 | host_vendor | |
758 | host_cpu | |
759 | host | |
760 | build_os | |
761 | build_vendor | |
762 | build_cpu | |
763 | build | |
764 | target_alias | |
765 | host_alias | |
766 | build_alias | |
767 | LIBS | |
768 | ECHO_T | |
769 | ECHO_N | |
770 | ECHO_C | |
771 | DEFS | |
772 | mandir | |
773 | localedir | |
774 | libdir | |
775 | psdir | |
776 | pdfdir | |
777 | dvidir | |
778 | htmldir | |
779 | infodir | |
780 | docdir | |
781 | oldincludedir | |
782 | includedir | |
783 | localstatedir | |
784 | sharedstatedir | |
785 | sysconfdir | |
786 | datadir | |
787 | datarootdir | |
788 | libexecdir | |
789 | sbindir | |
790 | bindir | |
791 | program_transform_name | |
792 | prefix | |
793 | exec_prefix | |
794 | PACKAGE_BUGREPORT | |
795 | PACKAGE_STRING | |
796 | PACKAGE_VERSION | |
797 | PACKAGE_TARNAME | |
798 | PACKAGE_NAME | |
799 | PATH_SEPARATOR | |
800 | SHELL' | |
ad6254c5 | 801 | ac_subst_files='' |
ec6a6fbe AK |
802 | ac_user_opts=' |
803 | enable_option_checking | |
804 | enable_static_link | |
805 | with_user | |
806 | with_group | |
807 | with_device_uid | |
808 | with_device_gid | |
809 | with_device_mode | |
810 | enable_lvm1_fallback | |
811 | with_lvm1 | |
812 | with_pool | |
813 | with_cluster | |
814 | with_snapshots | |
815 | with_mirrors | |
816 | enable_readline | |
817 | enable_realtime | |
818 | with_clvmd | |
66fd4529 AK |
819 | enable_cmirrord |
820 | with_cmirrord_pidfile | |
ec6a6fbe AK |
821 | enable_debug |
822 | with_optimisation | |
823 | enable_profiling | |
824 | enable_devmapper | |
a5f46f6a AK |
825 | enable_udev_sync |
826 | enable_udev_rules | |
ec6a6fbe AK |
827 | enable_compat |
828 | enable_ioctl | |
829 | enable_o_direct | |
572fefeb | 830 | enable_applib |
ec6a6fbe AK |
831 | enable_cmdlib |
832 | enable_pkgconfig | |
833 | enable_fsadm | |
834 | enable_dmeventd | |
835 | enable_selinux | |
836 | enable_nls | |
837 | with_localedir | |
838 | with_confdir | |
839 | with_staticdir | |
840 | with_usrlibdir | |
841 | with_usrsbindir | |
a5f46f6a | 842 | with_udev_prefix |
78ce7acc | 843 | with_udevdir |
ec6a6fbe AK |
844 | with_dmeventd_pidfile |
845 | with_dmeventd_path | |
846 | with_interface | |
847 | ' | |
7a197a62 AK |
848 | ac_precious_vars='build_alias |
849 | host_alias | |
850 | target_alias | |
851 | CC | |
852 | CFLAGS | |
853 | LDFLAGS | |
25fbec5b | 854 | LIBS |
7a197a62 | 855 | CPPFLAGS |
e2997b73 AK |
856 | CPP |
857 | PKG_CONFIG | |
a946372e AK |
858 | PKGCONFIGINIT_CFLAGS |
859 | PKGCONFIGINIT_LIBS | |
860 | CCS_CFLAGS | |
861 | CCS_LIBS | |
862 | GULM_CFLAGS | |
863 | GULM_LIBS | |
864 | CMAN_CFLAGS | |
865 | CMAN_LIBS | |
866 | COROSYNC_CFLAGS | |
867 | COROSYNC_LIBS | |
e2997b73 AK |
868 | QUORUM_CFLAGS |
869 | QUORUM_LIBS | |
a946372e AK |
870 | SALCK_CFLAGS |
871 | SALCK_LIBS | |
e2997b73 AK |
872 | CONFDB_CFLAGS |
873 | CONFDB_LIBS | |
874 | CPG_CFLAGS | |
a946372e AK |
875 | CPG_LIBS |
876 | DLM_CFLAGS | |
90c80887 AK |
877 | DLM_LIBS |
878 | SACKPT_CFLAGS | |
879 | SACKPT_LIBS' | |
7a197a62 | 880 | |
795ca3e5 AK |
881 | |
882 | # Initialize some variables set by options. | |
ad6254c5 AK |
883 | ac_init_help= |
884 | ac_init_version=false | |
ec6a6fbe AK |
885 | ac_unrecognized_opts= |
886 | ac_unrecognized_sep= | |
795ca3e5 AK |
887 | # The variables have the same names as the options, with |
888 | # dashes changed to underlines. | |
ad6254c5 | 889 | cache_file=/dev/null |
795ca3e5 | 890 | exec_prefix=NONE |
795ca3e5 | 891 | no_create= |
795ca3e5 AK |
892 | no_recursion= |
893 | prefix=NONE | |
894 | program_prefix=NONE | |
895 | program_suffix=NONE | |
896 | program_transform_name=s,x,x, | |
897 | silent= | |
898 | site= | |
899 | srcdir= | |
795ca3e5 AK |
900 | verbose= |
901 | x_includes=NONE | |
902 | x_libraries=NONE | |
ad6254c5 AK |
903 | |
904 | # Installation directory options. | |
905 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
906 | # and all the variables that are supposed to be based on exec_prefix | |
907 | # by default will actually change. | |
908 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 909 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
910 | bindir='${exec_prefix}/bin' |
911 | sbindir='${exec_prefix}/sbin' | |
912 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
913 | datarootdir='${prefix}/share' |
914 | datadir='${datarootdir}' | |
795ca3e5 AK |
915 | sysconfdir='${prefix}/etc' |
916 | sharedstatedir='${prefix}/com' | |
917 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
918 | includedir='${prefix}/include' |
919 | oldincludedir='/usr/include' | |
7a197a62 AK |
920 | docdir='${datarootdir}/doc/${PACKAGE}' |
921 | infodir='${datarootdir}/info' | |
922 | htmldir='${docdir}' | |
923 | dvidir='${docdir}' | |
924 | pdfdir='${docdir}' | |
925 | psdir='${docdir}' | |
926 | libdir='${exec_prefix}/lib' | |
927 | localedir='${datarootdir}/locale' | |
928 | mandir='${datarootdir}/man' | |
795ca3e5 | 929 | |
795ca3e5 | 930 | ac_prev= |
7a197a62 | 931 | ac_dashdash= |
795ca3e5 AK |
932 | for ac_option |
933 | do | |
795ca3e5 AK |
934 | # If the previous option needs an argument, assign it. |
935 | if test -n "$ac_prev"; then | |
7a197a62 | 936 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
937 | ac_prev= |
938 | continue | |
939 | fi | |
940 | ||
7a197a62 AK |
941 | case $ac_option in |
942 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
943 | *) ac_optarg=yes ;; | |
944 | esac | |
795ca3e5 AK |
945 | |
946 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
947 | ||
7a197a62 AK |
948 | case $ac_dashdash$ac_option in |
949 | --) | |
950 | ac_dashdash=yes ;; | |
795ca3e5 AK |
951 | |
952 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
953 | ac_prev=bindir ;; | |
954 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 955 | bindir=$ac_optarg ;; |
795ca3e5 AK |
956 | |
957 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 958 | ac_prev=build_alias ;; |
795ca3e5 | 959 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 960 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
961 | |
962 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
963 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
964 | ac_prev=cache_file ;; | |
965 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
966 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
967 | cache_file=$ac_optarg ;; |
968 | ||
969 | --config-cache | -C) | |
970 | cache_file=config.cache ;; | |
795ca3e5 | 971 | |
7a197a62 | 972 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 973 | ac_prev=datadir ;; |
7a197a62 | 974 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 975 | datadir=$ac_optarg ;; |
795ca3e5 | 976 | |
7a197a62 AK |
977 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
978 | | --dataroo | --dataro | --datar) | |
979 | ac_prev=datarootdir ;; | |
980 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
981 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
982 | datarootdir=$ac_optarg ;; | |
983 | ||
795ca3e5 | 984 | -disable-* | --disable-*) |
ec6a6fbe | 985 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 986 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
987 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
988 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 989 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
990 | ac_useropt_orig=$ac_useropt |
991 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
992 | case $ac_user_opts in | |
993 | *" | |
994 | "enable_$ac_useropt" | |
995 | "*) ;; | |
996 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
997 | ac_unrecognized_sep=', ';; | |
998 | esac | |
999 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1000 | |
1001 | -docdir | --docdir | --docdi | --doc | --do) | |
1002 | ac_prev=docdir ;; | |
1003 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1004 | docdir=$ac_optarg ;; | |
1005 | ||
1006 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1007 | ac_prev=dvidir ;; | |
1008 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1009 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1010 | |
1011 | -enable-* | --enable-*) | |
ec6a6fbe | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1013 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1015 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1016 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1017 | ac_useropt_orig=$ac_useropt |
1018 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1019 | case $ac_user_opts in | |
1020 | *" | |
1021 | "enable_$ac_useropt" | |
1022 | "*) ;; | |
1023 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1024 | ac_unrecognized_sep=', ';; | |
1025 | esac | |
1026 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1027 | |
1028 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1029 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1030 | | --exec | --exe | --ex) | |
1031 | ac_prev=exec_prefix ;; | |
1032 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1033 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1034 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1035 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1036 | |
1037 | -gas | --gas | --ga | --g) | |
1038 | # Obsolete; use --with-gas. | |
1039 | with_gas=yes ;; | |
1040 | ||
ad6254c5 AK |
1041 | -help | --help | --hel | --he | -h) |
1042 | ac_init_help=long ;; | |
1043 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1044 | ac_init_help=recursive ;; | |
1045 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1046 | ac_init_help=short ;; | |
795ca3e5 AK |
1047 | |
1048 | -host | --host | --hos | --ho) | |
ad6254c5 | 1049 | ac_prev=host_alias ;; |
795ca3e5 | 1050 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1051 | host_alias=$ac_optarg ;; |
795ca3e5 | 1052 | |
7a197a62 AK |
1053 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1054 | ac_prev=htmldir ;; | |
1055 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1056 | | --ht=*) | |
1057 | htmldir=$ac_optarg ;; | |
1058 | ||
795ca3e5 AK |
1059 | -includedir | --includedir | --includedi | --included | --include \ |
1060 | | --includ | --inclu | --incl | --inc) | |
1061 | ac_prev=includedir ;; | |
1062 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1063 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1064 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1065 | |
1066 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1067 | ac_prev=infodir ;; | |
1068 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1069 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1070 | |
1071 | -libdir | --libdir | --libdi | --libd) | |
1072 | ac_prev=libdir ;; | |
1073 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1074 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1075 | |
1076 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1077 | | --libexe | --libex | --libe) | |
1078 | ac_prev=libexecdir ;; | |
1079 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1080 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1081 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1082 | |
7a197a62 AK |
1083 | -localedir | --localedir | --localedi | --localed | --locale) |
1084 | ac_prev=localedir ;; | |
1085 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1086 | localedir=$ac_optarg ;; | |
1087 | ||
795ca3e5 | 1088 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1089 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1090 | ac_prev=localstatedir ;; |
1091 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1092 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1093 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1094 | |
1095 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1096 | ac_prev=mandir ;; | |
1097 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1098 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1099 | |
1100 | -nfp | --nfp | --nf) | |
1101 | # Obsolete; use --without-fp. | |
1102 | with_fp=no ;; | |
1103 | ||
1104 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1105 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1106 | no_create=yes ;; |
1107 | ||
1108 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1109 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1110 | no_recursion=yes ;; | |
1111 | ||
1112 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1113 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1114 | | --oldin | --oldi | --old | --ol | --o) | |
1115 | ac_prev=oldincludedir ;; | |
1116 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1117 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1118 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1119 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1120 | |
1121 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1122 | ac_prev=prefix ;; | |
1123 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1124 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1125 | |
1126 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1127 | | --program-pre | --program-pr | --program-p) | |
1128 | ac_prev=program_prefix ;; | |
1129 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1130 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1131 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1132 | |
1133 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1134 | | --program-suf | --program-su | --program-s) | |
1135 | ac_prev=program_suffix ;; | |
1136 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1137 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1138 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1139 | |
1140 | -program-transform-name | --program-transform-name \ | |
1141 | | --program-transform-nam | --program-transform-na \ | |
1142 | | --program-transform-n | --program-transform- \ | |
1143 | | --program-transform | --program-transfor \ | |
1144 | | --program-transfo | --program-transf \ | |
1145 | | --program-trans | --program-tran \ | |
1146 | | --progr-tra | --program-tr | --program-t) | |
1147 | ac_prev=program_transform_name ;; | |
1148 | -program-transform-name=* | --program-transform-name=* \ | |
1149 | | --program-transform-nam=* | --program-transform-na=* \ | |
1150 | | --program-transform-n=* | --program-transform-=* \ | |
1151 | | --program-transform=* | --program-transfor=* \ | |
1152 | | --program-transfo=* | --program-transf=* \ | |
1153 | | --program-trans=* | --program-tran=* \ | |
1154 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1155 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1156 | |
7a197a62 AK |
1157 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1158 | ac_prev=pdfdir ;; | |
1159 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1160 | pdfdir=$ac_optarg ;; | |
1161 | ||
1162 | -psdir | --psdir | --psdi | --psd | --ps) | |
1163 | ac_prev=psdir ;; | |
1164 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1165 | psdir=$ac_optarg ;; | |
1166 | ||
795ca3e5 AK |
1167 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1168 | | -silent | --silent | --silen | --sile | --sil) | |
1169 | silent=yes ;; | |
1170 | ||
1171 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1172 | ac_prev=sbindir ;; | |
1173 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1174 | | --sbi=* | --sb=*) | |
ad6254c5 | 1175 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1176 | |
1177 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1178 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1179 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1180 | | --sha | --sh) | |
1181 | ac_prev=sharedstatedir ;; | |
1182 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1183 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1184 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1185 | | --sha=* | --sh=*) | |
ad6254c5 | 1186 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1187 | |
1188 | -site | --site | --sit) | |
1189 | ac_prev=site ;; | |
1190 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1191 | site=$ac_optarg ;; |
795ca3e5 AK |
1192 | |
1193 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1194 | ac_prev=srcdir ;; | |
1195 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1196 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1197 | |
1198 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1199 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1200 | ac_prev=sysconfdir ;; | |
1201 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1202 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1203 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1204 | |
1205 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1206 | ac_prev=target_alias ;; |
795ca3e5 | 1207 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1208 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1209 | |
1210 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1211 | verbose=yes ;; | |
1212 | ||
ad6254c5 AK |
1213 | -version | --version | --versio | --versi | --vers | -V) |
1214 | ac_init_version=: ;; | |
795ca3e5 AK |
1215 | |
1216 | -with-* | --with-*) | |
ec6a6fbe | 1217 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1218 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1219 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1220 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1221 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1222 | ac_useropt_orig=$ac_useropt |
1223 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1224 | case $ac_user_opts in | |
1225 | *" | |
1226 | "with_$ac_useropt" | |
1227 | "*) ;; | |
1228 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1229 | ac_unrecognized_sep=', ';; | |
1230 | esac | |
1231 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1232 | |
1233 | -without-* | --without-*) | |
ec6a6fbe | 1234 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1235 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1236 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1237 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1238 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1239 | ac_useropt_orig=$ac_useropt |
1240 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1241 | case $ac_user_opts in | |
1242 | *" | |
1243 | "with_$ac_useropt" | |
1244 | "*) ;; | |
1245 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1246 | ac_unrecognized_sep=', ';; | |
1247 | esac | |
1248 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1249 | |
1250 | --x) | |
1251 | # Obsolete; use --with-x. | |
1252 | with_x=yes ;; | |
1253 | ||
1254 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1255 | | --x-incl | --x-inc | --x-in | --x-i) | |
1256 | ac_prev=x_includes ;; | |
1257 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1258 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1259 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1260 | |
1261 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1262 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1263 | ac_prev=x_libraries ;; | |
1264 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1265 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1266 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1267 | |
ec6a6fbe | 1268 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1269 | Try \`$0 --help' for more information." >&2 |
1270 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1271 | ;; |
1272 | ||
ad6254c5 AK |
1273 | *=*) |
1274 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1275 | # Reject names that are not valid shell variable names. | |
1276 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1277 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1278 | { (exit 1); exit 1; }; } |
7a197a62 | 1279 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1280 | export $ac_envvar ;; |
1281 | ||
795ca3e5 | 1282 | *) |
ad6254c5 | 1283 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1284 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1285 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1286 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1287 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1288 | ;; |
1289 | ||
1290 | esac | |
1291 | done | |
1292 | ||
1293 | if test -n "$ac_prev"; then | |
ad6254c5 | 1294 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1295 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1296 | { (exit 1); exit 1; }; } |
795ca3e5 | 1297 | fi |
795ca3e5 | 1298 | |
ec6a6fbe AK |
1299 | if test -n "$ac_unrecognized_opts"; then |
1300 | case $enable_option_checking in | |
1301 | no) ;; | |
1302 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1303 | { (exit 1); exit 1; }; } ;; | |
1304 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1305 | esac | |
1306 | fi | |
1307 | ||
1308 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1309 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1310 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1311 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1312 | libdir localedir mandir | |
795ca3e5 | 1313 | do |
7a197a62 | 1314 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1315 | # Remove trailing slashes. |
1316 | case $ac_val in | |
1317 | */ ) | |
1318 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1319 | eval $ac_var=\$ac_val;; | |
1320 | esac | |
1321 | # Be sure to have absolute directory names. | |
ad6254c5 | 1322 | case $ac_val in |
7a197a62 AK |
1323 | [\\/$]* | ?:[\\/]* ) continue;; |
1324 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1325 | esac |
ec6a6fbe | 1326 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1327 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1328 | done |
1329 | ||
ad6254c5 AK |
1330 | # There might be people who depend on the old broken behavior: `$host' |
1331 | # used to hold the argument of --host etc. | |
1332 | # FIXME: To remove some day. | |
1333 | build=$build_alias | |
1334 | host=$host_alias | |
1335 | target=$target_alias | |
1336 | ||
1337 | # FIXME: To remove some day. | |
1338 | if test "x$host_alias" != x; then | |
1339 | if test "x$build_alias" = x; then | |
1340 | cross_compiling=maybe | |
ec6a6fbe | 1341 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1342 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1343 | elif test "x$build_alias" != "x$host_alias"; then | |
1344 | cross_compiling=yes | |
1345 | fi | |
1346 | fi | |
8106cdd5 | 1347 | |
ad6254c5 AK |
1348 | ac_tool_prefix= |
1349 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1350 | ||
1351 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1352 | |
795ca3e5 | 1353 | |
7a197a62 AK |
1354 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1355 | ac_ls_di=`ls -di .` && | |
1356 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1357 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1358 | { (exit 1); exit 1; }; } |
1359 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1360 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1361 | { (exit 1); exit 1; }; } |
1362 | ||
1363 | ||
795ca3e5 AK |
1364 | # Find the source files, if location was not specified. |
1365 | if test -z "$srcdir"; then | |
1366 | ac_srcdir_defaulted=yes | |
7a197a62 | 1367 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1368 | ac_confdir=`$as_dirname -- "$as_myself" || |
1369 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1370 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1371 | X"$as_myself" : 'X\(//\)$' \| \ | |
1372 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1373 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1374 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | /^X\(\/\/\)[^/].*/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\/\)$/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | /^X\(\/\).*/{ | |
1387 | s//\1/ | |
1388 | q | |
1389 | } | |
1390 | s/.*/./; q'` | |
795ca3e5 | 1391 | srcdir=$ac_confdir |
7a197a62 | 1392 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1393 | srcdir=.. |
1394 | fi | |
1395 | else | |
1396 | ac_srcdir_defaulted=no | |
1397 | fi | |
7a197a62 AK |
1398 | if test ! -r "$srcdir/$ac_unique_file"; then |
1399 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1400 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1401 | { (exit 1); exit 1; }; } |
795ca3e5 | 1402 | fi |
7a197a62 AK |
1403 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1404 | ac_abs_confdir=`( | |
ec6a6fbe | 1405 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1406 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1407 | pwd)` |
1408 | # When building in place, set srcdir=. | |
1409 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1410 | srcdir=. | |
1411 | fi | |
1412 | # Remove unnecessary trailing slashes from srcdir. | |
1413 | # Double slashes in file names in object file debugging info | |
1414 | # mess up M-x gdb in Emacs. | |
1415 | case $srcdir in | |
1416 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1417 | esac | |
1418 | for ac_var in $ac_precious_vars; do | |
1419 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1420 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1421 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1422 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1423 | done | |
ad6254c5 AK |
1424 | |
1425 | # | |
1426 | # Report the --help message. | |
1427 | # | |
1428 | if test "$ac_init_help" = "long"; then | |
1429 | # Omit some internal or obsolete options to make the list less imposing. | |
1430 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1431 | cat <<_ACEOF | |
1432 | \`configure' configures this package to adapt to many kinds of systems. | |
1433 | ||
1434 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1435 | ||
1436 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1437 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1438 | ||
1439 | Defaults for the options are specified in brackets. | |
1440 | ||
1441 | Configuration: | |
1442 | -h, --help display this help and exit | |
1443 | --help=short display options specific to this package | |
1444 | --help=recursive display the short help of all the included packages | |
1445 | -V, --version display version information and exit | |
1446 | -q, --quiet, --silent do not print \`checking...' messages | |
1447 | --cache-file=FILE cache test results in FILE [disabled] | |
1448 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1449 | -n, --no-create do not create output files | |
1450 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1451 | ||
ad6254c5 AK |
1452 | Installation directories: |
1453 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1454 | [$ac_default_prefix] |
ad6254c5 | 1455 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1456 | [PREFIX] |
ad6254c5 AK |
1457 | |
1458 | By default, \`make install' will install all the files in | |
1459 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1460 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1461 | for instance \`--prefix=\$HOME'. | |
1462 | ||
1463 | For better control, use the options below. | |
1464 | ||
1465 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1466 | --bindir=DIR user executables [EPREFIX/bin] |
1467 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1468 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1469 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1470 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1471 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1472 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1473 | --includedir=DIR C header files [PREFIX/include] | |
1474 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1475 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1476 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1477 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1478 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1479 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1480 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1481 | --htmldir=DIR html documentation [DOCDIR] | |
1482 | --dvidir=DIR dvi documentation [DOCDIR] | |
1483 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1484 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1485 | _ACEOF |
1486 | ||
1487 | cat <<\_ACEOF | |
1488 | ||
1489 | System types: | |
1490 | --build=BUILD configure for building on BUILD [guessed] | |
1491 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1492 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1493 | _ACEOF | |
1494 | fi | |
1495 | ||
1496 | if test -n "$ac_init_help"; then | |
1497 | ||
1498 | cat <<\_ACEOF | |
1499 | ||
1500 | Optional Features: | |
ec6a6fbe | 1501 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1502 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1503 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1504 | --enable-static_link Use this to link the tools to their libraries |
1505 | statically. Default is dynamic linking | |
ad6254c5 AK |
1506 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1507 | device-mapper is missing from the kernel | |
1b523347 | 1508 | --disable-readline Disable readline support |
3d978351 | 1509 | --disable-realtime Disable realtime clock support |
66fd4529 | 1510 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1511 | --enable-debug Enable debugging |
5556819a | 1512 | --enable-profiling Gather gcov profiling data |
93bd259b | 1513 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1514 | --enable-udev_sync Enable synchronisation with udev processing |
1515 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b AK |
1516 | --enable-compat Enable support for old device-mapper versions |
1517 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 | 1518 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1519 | --enable-applib Build application library |
ad6254c5 | 1520 | --enable-cmdlib Build shared command library |
93bd259b | 1521 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1522 | --enable-fsadm Enable fsadm |
15d91f5a | 1523 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1524 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1525 | --enable-nls Enable Native Language Support |
1526 | ||
1527 | Optional Packages: | |
1528 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1529 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1530 | --with-user=USER Set the owner of installed files [USER=root] |
1531 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
24bbc4d7 AK |
1532 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1533 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1534 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1535 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1536 | TYPE=internal | |
1537 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1538 | TYPE=internal | |
1539 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1540 | TYPE=internal | |
1541 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1542 | TYPE=internal | |
1543 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1544 | TYPE=internal | |
a946372e | 1545 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1546 | The following cluster manager combinations are valid: |
a946372e AK |
1547 | * cman,gulm (RHEL4 or equivalent) |
1548 | * cman (RHEL5 or equivalent) | |
1549 | * cman,corosync,openais (or selection of them) | |
1550 | * all (autodetect) | |
1551 | * none (disable build) | |
a266258f | 1552 | TYPE=none |
66fd4529 | 1553 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1554 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1555 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1556 | --with-confdir=DIR Configuration files in DIR [/etc] |
1557 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1558 | --with-usrlibdir=DIR |
1559 | --with-usrsbindir=DIR | |
a5f46f6a | 1560 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1561 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1562 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1563 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1564 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1565 | |
1566 | Some influential environment variables: | |
1567 | CC C compiler command | |
1568 | CFLAGS C compiler flags | |
1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1570 | nonstandard directory <lib dir> | |
25fbec5b | 1571 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1572 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1573 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1574 | CPP C preprocessor |
e2997b73 | 1575 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1576 | PKGCONFIGINIT_CFLAGS |
1577 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1578 | PKGCONFIGINIT_LIBS | |
1579 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1580 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1581 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1582 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1583 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1584 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1585 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1586 | COROSYNC_CFLAGS | |
1587 | C compiler flags for COROSYNC, overriding pkg-config | |
1588 | COROSYNC_LIBS | |
1589 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1590 | QUORUM_CFLAGS |
1591 | C compiler flags for QUORUM, overriding pkg-config | |
1592 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1593 | SALCK_CFLAGS |
1594 | C compiler flags for SALCK, overriding pkg-config | |
1595 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1596 | CONFDB_CFLAGS |
1597 | C compiler flags for CONFDB, overriding pkg-config | |
1598 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1599 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1600 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1601 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1602 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1603 | SACKPT_CFLAGS |
1604 | C compiler flags for SACKPT, overriding pkg-config | |
1605 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1606 | |
1607 | Use these variables to override the choices made by `configure' or to help | |
1608 | it to find libraries and programs with nonstandard names/locations. | |
1609 | ||
1610 | _ACEOF | |
7a197a62 | 1611 | ac_status=$? |
ad6254c5 AK |
1612 | fi |
1613 | ||
1614 | if test "$ac_init_help" = "recursive"; then | |
1615 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1616 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1617 | test -d "$ac_dir" || |
1618 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1619 | continue | |
ad6254c5 AK |
1620 | ac_builddir=. |
1621 | ||
7a197a62 AK |
1622 | case "$ac_dir" in |
1623 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1624 | *) | |
ec6a6fbe | 1625 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1626 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1627 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1628 | case $ac_top_builddir_sub in |
1629 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1630 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1631 | esac ;; | |
1632 | esac | |
1633 | ac_abs_top_builddir=$ac_pwd | |
1634 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1635 | # for backward compatibility: | |
1636 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1637 | |
1638 | case $srcdir in | |
7a197a62 | 1639 | .) # We are building in place. |
ad6254c5 | 1640 | ac_srcdir=. |
7a197a62 AK |
1641 | ac_top_srcdir=$ac_top_builddir_sub |
1642 | ac_abs_top_srcdir=$ac_pwd ;; | |
1643 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1644 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1645 | ac_top_srcdir=$srcdir |
1646 | ac_abs_top_srcdir=$srcdir ;; | |
1647 | *) # Relative name. | |
1648 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1649 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1650 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1651 | esac |
7a197a62 AK |
1652 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1653 | ||
1654 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1655 | # Check for guested configure. | |
1656 | if test -f "$ac_srcdir/configure.gnu"; then | |
1657 | echo && | |
1658 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1659 | elif test -f "$ac_srcdir/configure"; then | |
1660 | echo && | |
1661 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1662 | else |
ec6a6fbe | 1663 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1664 | fi || ac_status=$? |
1665 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1666 | done |
1667 | fi | |
1668 | ||
7a197a62 | 1669 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1670 | if $ac_init_version; then |
1671 | cat <<\_ACEOF | |
7a197a62 | 1672 | configure |
ec6a6fbe | 1673 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1674 | |
7a197a62 | 1675 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1676 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1677 | This configure script is free software; the Free Software Foundation |
1678 | gives unlimited permission to copy, distribute and modify it. | |
1679 | _ACEOF | |
7a197a62 | 1680 | exit |
ad6254c5 | 1681 | fi |
7a197a62 | 1682 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1683 | This file contains any messages produced by compilers while |
1684 | running configure, to aid debugging if configure makes a mistake. | |
1685 | ||
1686 | It was created by $as_me, which was | |
ec6a6fbe | 1687 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1688 | |
1689 | $ $0 $@ | |
1690 | ||
1691 | _ACEOF | |
7a197a62 | 1692 | exec 5>>config.log |
ad6254c5 AK |
1693 | { |
1694 | cat <<_ASUNAME | |
1695 | ## --------- ## | |
1696 | ## Platform. ## | |
1697 | ## --------- ## | |
1698 | ||
1699 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1700 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1701 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1702 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1703 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1704 | ||
1705 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1706 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1707 | ||
1708 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1709 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1710 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1711 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1712 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1713 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1714 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1715 | ||
1716 | _ASUNAME | |
1717 | ||
1718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1719 | for as_dir in $PATH | |
1720 | do | |
1721 | IFS=$as_save_IFS | |
1722 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1723 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1724 | done |
7a197a62 | 1725 | IFS=$as_save_IFS |
ad6254c5 AK |
1726 | |
1727 | } >&5 | |
1728 | ||
1729 | cat >&5 <<_ACEOF | |
1730 | ||
1731 | ||
1732 | ## ----------- ## | |
1733 | ## Core tests. ## | |
1734 | ## ----------- ## | |
1735 | ||
1736 | _ACEOF | |
1737 | ||
1738 | ||
1739 | # Keep a trace of the command line. | |
1740 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1741 | # Strip out --silent because we don't want to record it for future runs. | |
1742 | # Also quote any args containing shell meta-characters. | |
1743 | # Make two passes to allow for proper duplicate-argument suppression. | |
1744 | ac_configure_args= | |
1745 | ac_configure_args0= | |
1746 | ac_configure_args1= | |
ad6254c5 AK |
1747 | ac_must_keep_next=false |
1748 | for ac_pass in 1 2 | |
1749 | do | |
1750 | for ac_arg | |
1751 | do | |
1752 | case $ac_arg in | |
1753 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1754 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1755 | | -silent | --silent | --silen | --sile | --sil) | |
1756 | continue ;; | |
7a197a62 | 1757 | *\'*) |
ec6a6fbe | 1758 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1759 | esac |
1760 | case $ac_pass in | |
1761 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1762 | 2) | |
1763 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1764 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1765 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1766 | else |
8a2fc586 AK |
1767 | case $ac_arg in |
1768 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1769 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1770 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1771 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1772 | case "$ac_configure_args0 " in | |
1773 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1774 | esac | |
1775 | ;; | |
1776 | -* ) ac_must_keep_next=true ;; | |
1777 | esac | |
ad6254c5 | 1778 | fi |
7a197a62 | 1779 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1780 | ;; |
1781 | esac | |
1782 | done | |
1783 | done | |
1784 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1785 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1786 | ||
1787 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1788 | # config.log. We remove comments because anyway the quotes in there | |
1789 | # would cause problems or look ugly. | |
7a197a62 AK |
1790 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1791 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1792 | trap 'exit_status=$? |
1793 | # Save into config.log some information that might help in debugging. | |
1794 | { | |
1795 | echo | |
1796 | ||
1797 | cat <<\_ASBOX | |
1798 | ## ---------------- ## | |
1799 | ## Cache variables. ## | |
1800 | ## ---------------- ## | |
1801 | _ASBOX | |
1802 | echo | |
1803 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1804 | ( |
1805 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1806 | eval ac_val=\$$ac_var | |
1807 | case $ac_val in #( | |
1808 | *${as_nl}*) | |
1809 | case $ac_var in #( | |
ec6a6fbe AK |
1810 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1811 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1812 | esac |
1813 | case $ac_var in #( | |
1814 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1815 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1816 | *) $as_unset $ac_var ;; |
1817 | esac ;; | |
1818 | esac | |
1819 | done | |
ad6254c5 | 1820 | (set) 2>&1 | |
7a197a62 AK |
1821 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1822 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1823 | sed -n \ |
7a197a62 AK |
1824 | "s/'\''/'\''\\\\'\'''\''/g; |
1825 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1826 | ;; #( | |
ad6254c5 | 1827 | *) |
7a197a62 | 1828 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1829 | ;; |
7a197a62 AK |
1830 | esac | |
1831 | sort | |
1832 | ) | |
ad6254c5 AK |
1833 | echo |
1834 | ||
1835 | cat <<\_ASBOX | |
1836 | ## ----------------- ## | |
1837 | ## Output variables. ## | |
1838 | ## ----------------- ## | |
1839 | _ASBOX | |
1840 | echo | |
1841 | for ac_var in $ac_subst_vars | |
1842 | do | |
7a197a62 AK |
1843 | eval ac_val=\$$ac_var |
1844 | case $ac_val in | |
ec6a6fbe | 1845 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1846 | esac |
ec6a6fbe | 1847 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1848 | done | sort |
1849 | echo | |
1850 | ||
1851 | if test -n "$ac_subst_files"; then | |
1852 | cat <<\_ASBOX | |
7a197a62 AK |
1853 | ## ------------------- ## |
1854 | ## File substitutions. ## | |
1855 | ## ------------------- ## | |
ad6254c5 AK |
1856 | _ASBOX |
1857 | echo | |
1858 | for ac_var in $ac_subst_files | |
1859 | do | |
7a197a62 AK |
1860 | eval ac_val=\$$ac_var |
1861 | case $ac_val in | |
ec6a6fbe | 1862 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1863 | esac |
ec6a6fbe | 1864 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1865 | done | sort |
1866 | echo | |
1867 | fi | |
1868 | ||
1869 | if test -s confdefs.h; then | |
1870 | cat <<\_ASBOX | |
1871 | ## ----------- ## | |
1872 | ## confdefs.h. ## | |
1873 | ## ----------- ## | |
1874 | _ASBOX | |
1875 | echo | |
7a197a62 | 1876 | cat confdefs.h |
ad6254c5 AK |
1877 | echo |
1878 | fi | |
1879 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1880 | $as_echo "$as_me: caught signal $ac_signal" |
1881 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1882 | } >&5 |
7a197a62 AK |
1883 | rm -f core *.core core.conftest.* && |
1884 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1885 | exit $exit_status |
7a197a62 | 1886 | ' 0 |
ad6254c5 AK |
1887 | for ac_signal in 1 2 13 15; do |
1888 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1889 | done | |
1890 | ac_signal=0 | |
1891 | ||
1892 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1893 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1894 | |
1895 | # Predefined preprocessor variables. | |
1896 | ||
1897 | cat >>confdefs.h <<_ACEOF | |
1898 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1899 | _ACEOF | |
1900 | ||
1901 | ||
1902 | cat >>confdefs.h <<_ACEOF | |
1903 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1904 | _ACEOF | |
1905 | ||
1906 | ||
1907 | cat >>confdefs.h <<_ACEOF | |
1908 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1909 | _ACEOF | |
8106cdd5 | 1910 | |
ad6254c5 AK |
1911 | |
1912 | cat >>confdefs.h <<_ACEOF | |
1913 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1914 | _ACEOF | |
1915 | ||
1916 | ||
1917 | cat >>confdefs.h <<_ACEOF | |
1918 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1919 | _ACEOF | |
1920 | ||
1921 | ||
1922 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1923 | # Prefer an explicitly selected file to automatically selected ones. |
1924 | ac_site_file1=NONE | |
1925 | ac_site_file2=NONE | |
7a197a62 | 1926 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1927 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1928 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1929 | ac_site_file1=$prefix/share/config.site |
1930 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1931 | else |
ec6a6fbe AK |
1932 | ac_site_file1=$ac_default_prefix/share/config.site |
1933 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1934 | fi |
ec6a6fbe | 1935 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1936 | do |
ec6a6fbe | 1937 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1938 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1939 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1940 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1941 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1942 | . "$ac_site_file" |
1943 | fi | |
1944 | done | |
1945 | ||
1946 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1947 | # Some versions of bash will fail to source /dev/null (special |
1948 | # files actually), so we avoid doing that. | |
1949 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1950 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1951 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1952 | case $cache_file in |
7a197a62 AK |
1953 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1954 | *) . "./$cache_file";; | |
ad6254c5 AK |
1955 | esac |
1956 | fi | |
795ca3e5 | 1957 | else |
ec6a6fbe AK |
1958 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1959 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1960 | >$cache_file |
1961 | fi | |
1962 | ||
1963 | # Check that the precious variables saved in the cache have kept the same | |
1964 | # value. | |
1965 | ac_cache_corrupted=false | |
7a197a62 | 1966 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1967 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1968 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1969 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1970 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1971 | case $ac_old_set,$ac_new_set in |
1972 | set,) | |
ec6a6fbe AK |
1973 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1974 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1975 | ac_cache_corrupted=: ;; |
1976 | ,set) | |
ec6a6fbe AK |
1977 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1978 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1979 | ac_cache_corrupted=: ;; |
1980 | ,);; | |
1981 | *) | |
1982 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1983 | # differences in whitespace do not lead to failure. |
1984 | ac_old_val_w=`echo x $ac_old_val` | |
1985 | ac_new_val_w=`echo x $ac_new_val` | |
1986 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1987 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1988 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1989 | ac_cache_corrupted=: | |
1990 | else | |
1991 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1992 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1993 | eval $ac_var=\$ac_old_val | |
1994 | fi | |
1995 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1996 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1997 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1998 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
1999 | fi;; |
2000 | esac | |
2001 | # Pass precious variables to config.status. | |
2002 | if test "$ac_new_set" = set; then | |
2003 | case $ac_new_val in | |
ec6a6fbe | 2004 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2005 | *) ac_arg=$ac_var=$ac_new_val ;; |
2006 | esac | |
2007 | case " $ac_configure_args " in | |
2008 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2009 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2010 | esac | |
2011 | fi | |
2012 | done | |
2013 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2014 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2015 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2016 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2017 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2018 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2019 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2020 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2021 | fi |
2022 | ||
ad6254c5 AK |
2023 | |
2024 | ||
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | ||
7a197a62 AK |
2039 | ac_ext=c |
2040 | ac_cpp='$CPP $CPPFLAGS' | |
2041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2044 | |
795ca3e5 AK |
2045 | |
2046 | ||
7a197a62 | 2047 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2048 | |
2049 | ||
80992638 | 2050 | ################################################################################ |
795ca3e5 | 2051 | ac_aux_dir= |
7a197a62 AK |
2052 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2053 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2054 | ac_aux_dir=$ac_dir |
2055 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2056 | break | |
7a197a62 | 2057 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2058 | ac_aux_dir=$ac_dir |
2059 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2060 | break | |
7a197a62 | 2061 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2062 | ac_aux_dir=$ac_dir |
2063 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2064 | break | |
795ca3e5 AK |
2065 | fi |
2066 | done | |
2067 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2068 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2069 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2070 | { (exit 1); exit 1; }; } |
795ca3e5 | 2071 | fi |
7a197a62 AK |
2072 | |
2073 | # These three variables are undocumented and unsupported, | |
2074 | # and are intended to be withdrawn in a future Autoconf release. | |
2075 | # They can cause serious problems if a builder's source tree is in a directory | |
2076 | # whose full name contains unusual characters. | |
2077 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2078 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2079 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2080 | ||
8ce0cbda AK |
2081 | |
2082 | ||
ad6254c5 | 2083 | ################################################################################ |
8ce0cbda | 2084 | # Make sure we can run config.sub. |
7a197a62 | 2085 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2086 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2087 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2088 | { (exit 1); exit 1; }; } |
2089 | ||
ec6a6fbe AK |
2090 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2091 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2092 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2093 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2094 | else |
7a197a62 AK |
2095 | ac_build_alias=$build_alias |
2096 | test "x$ac_build_alias" = x && | |
2097 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2098 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2099 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2100 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2101 | { (exit 1); exit 1; }; } |
7a197a62 | 2102 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2103 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2104 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2105 | { (exit 1); exit 1; }; } |
2106 | ||
2107 | fi | |
ec6a6fbe AK |
2108 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2109 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2110 | case $ac_cv_build in |
2111 | *-*-*) ;; | |
ec6a6fbe AK |
2112 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2113 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2114 | { (exit 1); exit 1; }; };; |
2115 | esac | |
ad6254c5 | 2116 | build=$ac_cv_build |
7a197a62 AK |
2117 | ac_save_IFS=$IFS; IFS='-' |
2118 | set x $ac_cv_build | |
2119 | shift | |
2120 | build_cpu=$1 | |
2121 | build_vendor=$2 | |
2122 | shift; shift | |
2123 | # Remember, the first character of IFS is used to create $*, | |
2124 | # except with old shells: | |
2125 | build_os=$* | |
2126 | IFS=$ac_save_IFS | |
2127 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2128 | |
2129 | ||
ec6a6fbe AK |
2130 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2131 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2132 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2133 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2134 | else |
7a197a62 AK |
2135 | if test "x$host_alias" = x; then |
2136 | ac_cv_host=$ac_cv_build | |
2137 | else | |
2138 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2139 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2140 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2141 | { (exit 1); exit 1; }; } |
7a197a62 | 2142 | fi |
ad6254c5 AK |
2143 | |
2144 | fi | |
ec6a6fbe AK |
2145 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2146 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2147 | case $ac_cv_host in |
2148 | *-*-*) ;; | |
ec6a6fbe AK |
2149 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2150 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2151 | { (exit 1); exit 1; }; };; |
2152 | esac | |
ad6254c5 | 2153 | host=$ac_cv_host |
7a197a62 AK |
2154 | ac_save_IFS=$IFS; IFS='-' |
2155 | set x $ac_cv_host | |
2156 | shift | |
2157 | host_cpu=$1 | |
2158 | host_vendor=$2 | |
2159 | shift; shift | |
2160 | # Remember, the first character of IFS is used to create $*, | |
2161 | # except with old shells: | |
2162 | host_os=$* | |
2163 | IFS=$ac_save_IFS | |
2164 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2165 | |
2166 | ||
ec6a6fbe AK |
2167 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2168 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2169 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2170 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2171 | else |
7a197a62 AK |
2172 | if test "x$target_alias" = x; then |
2173 | ac_cv_target=$ac_cv_host | |
2174 | else | |
2175 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2176 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2177 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2178 | { (exit 1); exit 1; }; } |
7a197a62 | 2179 | fi |
8ce0cbda | 2180 | |
ad6254c5 | 2181 | fi |
ec6a6fbe AK |
2182 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2183 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2184 | case $ac_cv_target in |
2185 | *-*-*) ;; | |
ec6a6fbe AK |
2186 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2187 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2188 | { (exit 1); exit 1; }; };; |
2189 | esac | |
ad6254c5 | 2190 | target=$ac_cv_target |
7a197a62 AK |
2191 | ac_save_IFS=$IFS; IFS='-' |
2192 | set x $ac_cv_target | |
2193 | shift | |
2194 | target_cpu=$1 | |
2195 | target_vendor=$2 | |
2196 | shift; shift | |
2197 | # Remember, the first character of IFS is used to create $*, | |
2198 | # except with old shells: | |
2199 | target_os=$* | |
2200 | IFS=$ac_save_IFS | |
2201 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2202 | |
8ce0cbda | 2203 | |
ad6254c5 AK |
2204 | # The aliases save the names the user supplied, while $host etc. |
2205 | # will get canonicalized. | |
2206 | test -n "$target_alias" && | |
8ce0cbda AK |
2207 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2208 | NONENONEs,x,x, && | |
2209 | program_prefix=${target_alias}- | |
2210 | ||
8ce0cbda AK |
2211 | case "$host_os" in |
2212 | linux*) | |
7f54ef36 | 2213 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2214 | COPTIMISE_FLAG="-O2" |
2215 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2216 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2217 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2218 | LDDEPS="$LDDEPS .export.sym" | |
2219 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2220 | LIB_SUFFIX=so |
8ce0cbda AK |
2221 | DEVMAPPER=yes |
2222 | ODIRECT=yes | |
d0191583 | 2223 | DM_IOCTLS=yes |
8ce0cbda | 2224 | SELINUX=yes |
8b1a3214 | 2225 | REALTIME=yes |
8ce0cbda | 2226 | CLUSTER=internal |
93bd259b | 2227 | FSADM=yes |
d0191583 | 2228 | ;; |
8ce0cbda AK |
2229 | darwin*) |
2230 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2231 | COPTIMISE_FLAG="-O2" | |
2232 | CLDFLAGS="$CLDFLAGS" | |
2233 | CLDWHOLEARCHIVE="-all_load" | |
2234 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2235 | LIB_SUFFIX=dylib |
a653923f | 2236 | DEVMAPPER=yes |
8ce0cbda | 2237 | ODIRECT=no |
d0191583 | 2238 | DM_IOCTLS=no |
8ce0cbda | 2239 | SELINUX=no |
8b1a3214 | 2240 | REALTIME=no |
8ce0cbda | 2241 | CLUSTER=none |
d0191583 JM |
2242 | FSADM=no |
2243 | ;; | |
8ce0cbda AK |
2244 | esac |
2245 | ||
80992638 | 2246 | ################################################################################ |
ec6a6fbe AK |
2247 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2248 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2249 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2250 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2251 | else |
2252 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2253 | for ac_i in 1 2 3 4 5 6 7; do | |
2254 | ac_script="$ac_script$as_nl$ac_script" | |
2255 | done | |
ec6a6fbe | 2256 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2257 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2258 | if test -z "$SED"; then |
5951ef33 | 2259 | ac_path_SED_found=false |
ec6a6fbe AK |
2260 | # Loop through the user's path and test for each of PROGNAME-LIST |
2261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2262 | for as_dir in $PATH |
2263 | do | |
2264 | IFS=$as_save_IFS | |
2265 | test -z "$as_dir" && as_dir=. | |
2266 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2267 | for ac_exec_ext in '' $ac_executable_extensions; do |
2268 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2269 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2270 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2271 | # Check for GNU $ac_path_SED |
2272 | case `"$ac_path_SED" --version 2>&1` in | |
2273 | *GNU*) | |
2274 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2275 | *) | |
2276 | ac_count=0 | |
ec6a6fbe | 2277 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2278 | while : |
2279 | do | |
2280 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2281 | mv "conftest.tmp" "conftest.in" | |
2282 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2283 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2284 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2285 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2286 | ac_count=`expr $ac_count + 1` | |
2287 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2288 | # Best one so far, save it but keep looking for a better one | |
2289 | ac_cv_path_SED="$ac_path_SED" | |
2290 | ac_path_SED_max=$ac_count | |
2291 | fi | |
2292 | # 10*(2^10) chars as input seems more than enough | |
2293 | test $ac_count -gt 10 && break | |
2294 | done | |
2295 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2296 | esac | |
2297 | ||
ec6a6fbe AK |
2298 | $ac_path_SED_found && break 3 |
2299 | done | |
5951ef33 AK |
2300 | done |
2301 | done | |
5951ef33 | 2302 | IFS=$as_save_IFS |
ec6a6fbe AK |
2303 | if test -z "$ac_cv_path_SED"; then |
2304 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2305 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2306 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2307 | fi |
5951ef33 AK |
2308 | else |
2309 | ac_cv_path_SED=$SED | |
2310 | fi | |
2311 | ||
2312 | fi | |
ec6a6fbe AK |
2313 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2314 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2315 | SED="$ac_cv_path_SED" |
2316 | rm -f conftest.sed | |
2317 | ||
ad6254c5 | 2318 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2319 | do |
ad6254c5 | 2320 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2321 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2322 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2323 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2324 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2325 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2326 | else |
2327 | if test -n "$AWK"; then | |
2328 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2329 | else | |
ad6254c5 AK |
2330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2331 | for as_dir in $PATH | |
2332 | do | |
2333 | IFS=$as_save_IFS | |
2334 | test -z "$as_dir" && as_dir=. | |
2335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2337 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2338 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2339 | break 2 |
2340 | fi | |
2341 | done | |
2342 | done | |
7a197a62 | 2343 | IFS=$as_save_IFS |
ad6254c5 | 2344 | |
795ca3e5 AK |
2345 | fi |
2346 | fi | |
ad6254c5 | 2347 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2348 | if test -n "$AWK"; then |
ec6a6fbe AK |
2349 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2350 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2351 | else |
ec6a6fbe AK |
2352 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2353 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2354 | fi |
2355 | ||
7a197a62 | 2356 | |
ad6254c5 AK |
2357 | test -n "$AWK" && break |
2358 | done | |
2359 | ||
2360 | ac_ext=c | |
2361 | ac_cpp='$CPP $CPPFLAGS' | |
2362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2365 | if test -n "$ac_tool_prefix"; then | |
2366 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2367 | set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then |
ec6a6fbe | 2371 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2372 | else |
2373 | if test -n "$CC"; then | |
2374 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2375 | else | |
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_CC="${ac_tool_prefix}gcc" |
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 | |
8106cdd5 | 2388 | done |
7a197a62 | 2389 | IFS=$as_save_IFS |
8106cdd5 | 2390 | |
ad6254c5 AK |
2391 | fi |
2392 | fi | |
2393 | CC=$ac_cv_prog_CC | |
2394 | if test -n "$CC"; then | |
ec6a6fbe AK |
2395 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2396 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2397 | else |
ec6a6fbe AK |
2398 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2399 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2400 | fi |
2401 | ||
7a197a62 | 2402 | |
ad6254c5 AK |
2403 | fi |
2404 | if test -z "$ac_cv_prog_CC"; then | |
2405 | ac_ct_CC=$CC | |
2406 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2407 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2408 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2409 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2410 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2411 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2412 | else |
2413 | if test -n "$ac_ct_CC"; then | |
2414 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2415 | else | |
2416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2417 | for as_dir in $PATH | |
2418 | do | |
2419 | IFS=$as_save_IFS | |
2420 | test -z "$as_dir" && as_dir=. | |
2421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2422 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2423 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2424 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2425 | break 2 |
2426 | fi | |
2427 | done | |
2428 | done | |
7a197a62 | 2429 | IFS=$as_save_IFS |
ad6254c5 AK |
2430 | |
2431 | fi | |
2432 | fi | |
2433 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2434 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2435 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2436 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2437 | else |
ec6a6fbe AK |
2438 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2439 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2440 | fi |
2441 | ||
7a197a62 AK |
2442 | if test "x$ac_ct_CC" = x; then |
2443 | CC="" | |
2444 | else | |
2445 | case $cross_compiling:$ac_tool_warned in | |
2446 | yes:) | |
ec6a6fbe AK |
2447 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2448 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2449 | ac_tool_warned=yes ;; |
2450 | esac | |
2451 | CC=$ac_ct_CC | |
2452 | fi | |
ad6254c5 AK |
2453 | else |
2454 | CC="$ac_cv_prog_CC" | |
2455 | fi | |
2456 | ||
2457 | if test -z "$CC"; then | |
7a197a62 AK |
2458 | if test -n "$ac_tool_prefix"; then |
2459 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2460 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2461 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2462 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2463 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2464 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2465 | else |
2466 | if test -n "$CC"; then | |
2467 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2468 | else | |
ad6254c5 AK |
2469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2470 | for as_dir in $PATH | |
2471 | do | |
2472 | IFS=$as_save_IFS | |
2473 | test -z "$as_dir" && as_dir=. | |
2474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2476 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2477 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2478 | break 2 |
2479 | fi | |
2480 | done | |
2481 | done | |
7a197a62 | 2482 | IFS=$as_save_IFS |
ad6254c5 | 2483 | |
8106cdd5 AK |
2484 | fi |
2485 | fi | |
ad6254c5 | 2486 | CC=$ac_cv_prog_CC |
8106cdd5 | 2487 | if test -n "$CC"; then |
ec6a6fbe AK |
2488 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2489 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2490 | else |
ec6a6fbe AK |
2491 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2492 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2493 | fi |
2494 | ||
8106cdd5 | 2495 | |
7a197a62 | 2496 | fi |
ad6254c5 | 2497 | fi |
795ca3e5 AK |
2498 | if test -z "$CC"; then |
2499 | # Extract the first word of "cc", so it can be a program name with args. | |
2500 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2501 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2502 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2503 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2504 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2505 | else |
2506 | if test -n "$CC"; then | |
2507 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2508 | else | |
795ca3e5 | 2509 | ac_prog_rejected=no |
ad6254c5 AK |
2510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2511 | for as_dir in $PATH | |
2512 | do | |
2513 | IFS=$as_save_IFS | |
2514 | test -z "$as_dir" && as_dir=. | |
2515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2517 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2518 | ac_prog_rejected=yes | |
2519 | continue | |
2520 | fi | |
2521 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2522 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2523 | break 2 |
2524 | fi | |
2525 | done | |
2526 | done | |
7a197a62 | 2527 | IFS=$as_save_IFS |
ad6254c5 | 2528 | |
795ca3e5 AK |
2529 | if test $ac_prog_rejected = yes; then |
2530 | # We found a bogon in the path, so make sure we never use it. | |
2531 | set dummy $ac_cv_prog_CC | |
2532 | shift | |
ad6254c5 | 2533 | if test $# != 0; then |
795ca3e5 AK |
2534 | # We chose a different compiler from the bogus one. |
2535 | # However, it has the same basename, so the bogon will be chosen | |
2536 | # first if we set CC to just the basename; use the full file name. | |
2537 | shift | |
ad6254c5 | 2538 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2539 | fi |
2540 | fi | |
2541 | fi | |
2542 | fi | |
ad6254c5 | 2543 | CC=$ac_cv_prog_CC |
795ca3e5 | 2544 | if test -n "$CC"; then |
ec6a6fbe AK |
2545 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2546 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2547 | else |
ec6a6fbe AK |
2548 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2549 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2550 | fi |
2551 | ||
7a197a62 | 2552 | |
ad6254c5 AK |
2553 | fi |
2554 | if test -z "$CC"; then | |
2555 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2556 | for ac_prog in cl.exe |
ad6254c5 AK |
2557 | do |
2558 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2559 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2560 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2561 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2562 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2563 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2564 | else |
2565 | if test -n "$CC"; then | |
2566 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2567 | else | |
ad6254c5 AK |
2568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2569 | for as_dir in $PATH | |
2570 | do | |
2571 | IFS=$as_save_IFS | |
2572 | test -z "$as_dir" && as_dir=. | |
2573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2575 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2576 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2577 | break 2 |
2578 | fi | |
2579 | done | |
2580 | done | |
7a197a62 | 2581 | IFS=$as_save_IFS |
ad6254c5 | 2582 | |
795ca3e5 AK |
2583 | fi |
2584 | fi | |
ad6254c5 | 2585 | CC=$ac_cv_prog_CC |
795ca3e5 | 2586 | if test -n "$CC"; then |
ec6a6fbe AK |
2587 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2588 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2589 | else |
ec6a6fbe AK |
2590 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2591 | $as_echo "no" >&6; } | |
795ca3e5 | 2592 | fi |
ad6254c5 | 2593 | |
7a197a62 | 2594 | |
ad6254c5 AK |
2595 | test -n "$CC" && break |
2596 | done | |
2597 | fi | |
2598 | if test -z "$CC"; then | |
2599 | ac_ct_CC=$CC | |
7a197a62 | 2600 | for ac_prog in cl.exe |
ad6254c5 AK |
2601 | do |
2602 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2603 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2604 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2605 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2606 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2607 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2608 | else |
2609 | if test -n "$ac_ct_CC"; then | |
2610 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2611 | else | |
2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2613 | for as_dir in $PATH | |
2614 | do | |
2615 | IFS=$as_save_IFS | |
2616 | test -z "$as_dir" && as_dir=. | |
2617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2619 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2620 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2621 | break 2 |
795ca3e5 | 2622 | fi |
ad6254c5 AK |
2623 | done |
2624 | done | |
7a197a62 | 2625 | IFS=$as_save_IFS |
ad6254c5 AK |
2626 | |
2627 | fi | |
2628 | fi | |
2629 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2630 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2631 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2632 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2633 | else |
ec6a6fbe AK |
2634 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2635 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2636 | fi |
2637 | ||
7a197a62 | 2638 | |
ad6254c5 AK |
2639 | test -n "$ac_ct_CC" && break |
2640 | done | |
795ca3e5 | 2641 | |
7a197a62 AK |
2642 | if test "x$ac_ct_CC" = x; then |
2643 | CC="" | |
2644 | else | |
2645 | case $cross_compiling:$ac_tool_warned in | |
2646 | yes:) | |
ec6a6fbe AK |
2647 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2649 | ac_tool_warned=yes ;; |
2650 | esac | |
2651 | CC=$ac_ct_CC | |
2652 | fi | |
ad6254c5 AK |
2653 | fi |
2654 | ||
2655 | fi | |
2656 | ||
2657 | ||
ec6a6fbe AK |
2658 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2660 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2661 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2662 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2663 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2664 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2665 | |
2666 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2667 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2668 | set X $ac_compile | |
2669 | ac_compiler=$2 | |
7a197a62 AK |
2670 | { (ac_try="$ac_compiler --version >&5" |
2671 | case "(($ac_try" in | |
2672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2673 | *) ac_try_echo=$ac_try;; | |
2674 | esac | |
ec6a6fbe AK |
2675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2676 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2677 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2678 | ac_status=$? |
ec6a6fbe | 2679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2680 | (exit $ac_status); } |
7a197a62 AK |
2681 | { (ac_try="$ac_compiler -v >&5" |
2682 | case "(($ac_try" in | |
2683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2684 | *) ac_try_echo=$ac_try;; | |
2685 | esac | |
ec6a6fbe AK |
2686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2687 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2688 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2689 | ac_status=$? |
ec6a6fbe | 2690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2691 | (exit $ac_status); } |
7a197a62 AK |
2692 | { (ac_try="$ac_compiler -V >&5" |
2693 | case "(($ac_try" in | |
2694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2695 | *) ac_try_echo=$ac_try;; | |
2696 | esac | |
ec6a6fbe AK |
2697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2698 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2699 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2700 | ac_status=$? |
ec6a6fbe | 2701 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2702 | (exit $ac_status); } |
2703 | ||
2704 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2705 | /* confdefs.h. */ |
2706 | _ACEOF | |
2707 | cat confdefs.h >>conftest.$ac_ext | |
2708 | cat >>conftest.$ac_ext <<_ACEOF | |
2709 | /* end confdefs.h. */ | |
2710 | ||
2711 | int | |
2712 | main () | |
2713 | { | |
2714 | ||
2715 | ; | |
2716 | return 0; | |
2717 | } | |
2718 | _ACEOF | |
2719 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2720 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2721 | # Try to create an executable without -o first, disregard a.out. |
2722 | # It will help us diagnose broken compilers, and finding out an intuition | |
2723 | # of exeext. | |
ec6a6fbe AK |
2724 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2725 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2726 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2727 | ||
2728 | # The possible output files: | |
2729 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2730 | ||
7a197a62 AK |
2731 | ac_rmfiles= |
2732 | for ac_file in $ac_files | |
2733 | do | |
2734 | case $ac_file in | |
ec6a6fbe | 2735 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2736 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2737 | esac | |
2738 | done | |
2739 | rm -f $ac_rmfiles | |
2740 | ||
2741 | if { (ac_try="$ac_link_default" | |
2742 | case "(($ac_try" in | |
2743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2744 | *) ac_try_echo=$ac_try;; | |
2745 | esac | |
ec6a6fbe AK |
2746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2747 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2748 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2749 | ac_status=$? |
ec6a6fbe | 2750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2751 | (exit $ac_status); }; then |
7a197a62 AK |
2752 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2753 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2754 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2755 | # so that the user can short-circuit this test for compilers unknown to | |
2756 | # Autoconf. | |
25fbec5b | 2757 | for ac_file in $ac_files '' |
ad6254c5 AK |
2758 | do |
2759 | test -f "$ac_file" || continue | |
2760 | case $ac_file in | |
ec6a6fbe | 2761 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2762 | ;; |
ad6254c5 | 2763 | [ab].out ) |
8a2fc586 AK |
2764 | # We found the default executable, but exeext='' is most |
2765 | # certainly right. | |
2766 | break;; | |
ad6254c5 | 2767 | *.* ) |
7a197a62 AK |
2768 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2769 | then :; else | |
2770 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2771 | fi | |
2772 | # We set ac_cv_exeext here because the later test for it is not | |
2773 | # safe: cross compilers may not add the suffix if given an `-o' | |
2774 | # argument, so we may need to know it at that point already. | |
2775 | # Even if this section looks crufty: it has the advantage of | |
2776 | # actually working. | |
8a2fc586 | 2777 | break;; |
ad6254c5 | 2778 | * ) |
8a2fc586 | 2779 | break;; |
ad6254c5 AK |
2780 | esac |
2781 | done | |
7a197a62 AK |
2782 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2783 | ||
ad6254c5 | 2784 | else |
25fbec5b AK |
2785 | ac_file='' |
2786 | fi | |
2787 | ||
ec6a6fbe AK |
2788 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2789 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2790 | if test -z "$ac_file"; then |
ec6a6fbe | 2791 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2792 | sed 's/^/| /' conftest.$ac_ext >&5 |
2793 | ||
ec6a6fbe AK |
2794 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2796 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2797 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2798 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2799 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2800 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2801 | fi |
2802 | ||
2803 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2804 | |
7a197a62 | 2805 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2806 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2807 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2808 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2809 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2810 | # If not cross compiling, check that we can run a simple program. | |
2811 | if test "$cross_compiling" != yes; then | |
2812 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2813 | { (case "(($ac_try" in |
2814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2815 | *) ac_try_echo=$ac_try;; | |
2816 | esac | |
ec6a6fbe AK |
2817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2818 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2819 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2820 | ac_status=$? |
ec6a6fbe | 2821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2822 | (exit $ac_status); }; }; then |
2823 | cross_compiling=no | |
795ca3e5 | 2824 | else |
ad6254c5 AK |
2825 | if test "$cross_compiling" = maybe; then |
2826 | cross_compiling=yes | |
2827 | else | |
ec6a6fbe AK |
2828 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2829 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2830 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2831 | If you meant to cross compile, use \`--host'. |
2832 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2833 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2834 | If you meant to cross compile, use \`--host'. |
2835 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2836 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2837 | fi |
795ca3e5 | 2838 | fi |
80992638 | 2839 | fi |
ec6a6fbe AK |
2840 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2841 | $as_echo "yes" >&6; } | |
ad6254c5 | 2842 | |
ec6a6fbe | 2843 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2844 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2845 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2846 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2847 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2848 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2849 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2850 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2851 | |
ec6a6fbe AK |
2852 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2853 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2854 | if { (ac_try="$ac_link" |
2855 | case "(($ac_try" in | |
2856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2857 | *) ac_try_echo=$ac_try;; | |
2858 | esac | |
ec6a6fbe AK |
2859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2860 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2861 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2862 | ac_status=$? |
ec6a6fbe | 2863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2864 | (exit $ac_status); }; then |
2865 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2866 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2867 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2868 | # `rm'. | |
2869 | for ac_file in conftest.exe conftest conftest.*; do | |
2870 | test -f "$ac_file" || continue | |
2871 | case $ac_file in | |
ec6a6fbe | 2872 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2873 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2874 | break;; |
ad6254c5 AK |
2875 | * ) break;; |
2876 | esac | |
2877 | done | |
80992638 | 2878 | else |
ec6a6fbe AK |
2879 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2880 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2881 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2882 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2883 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2884 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2885 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2886 | fi |
2887 | ||
2888 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2889 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2890 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2891 | |
2892 | rm -f conftest.$ac_ext | |
2893 | EXEEXT=$ac_cv_exeext | |
2894 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2895 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2896 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2897 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2898 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2899 | else |
ad6254c5 | 2900 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2901 | /* confdefs.h. */ |
2902 | _ACEOF | |
2903 | cat confdefs.h >>conftest.$ac_ext | |
2904 | cat >>conftest.$ac_ext <<_ACEOF | |
2905 | /* end confdefs.h. */ | |
2906 | ||
2907 | int | |
2908 | main () | |
2909 | { | |
2910 | ||
2911 | ; | |
2912 | return 0; | |
2913 | } | |
2914 | _ACEOF | |
2915 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2916 | if { (ac_try="$ac_compile" |
2917 | case "(($ac_try" in | |
2918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2919 | *) ac_try_echo=$ac_try;; | |
2920 | esac | |
ec6a6fbe AK |
2921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2922 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2923 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2924 | ac_status=$? |
ec6a6fbe | 2925 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2926 | (exit $ac_status); }; then |
7a197a62 AK |
2927 | for ac_file in conftest.o conftest.obj conftest.*; do |
2928 | test -f "$ac_file" || continue; | |
ad6254c5 | 2929 | case $ac_file in |
ec6a6fbe | 2930 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2931 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2932 | break;; | |
2933 | esac | |
2934 | done | |
2935 | else | |
ec6a6fbe | 2936 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2937 | sed 's/^/| /' conftest.$ac_ext >&5 |
2938 | ||
ec6a6fbe AK |
2939 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2940 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2941 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2942 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2943 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2944 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2945 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2946 | fi |
2947 | ||
2948 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2949 | fi | |
ec6a6fbe AK |
2950 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2951 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2952 | OBJEXT=$ac_cv_objext |
2953 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2954 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2955 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2956 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2957 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2958 | else |
2959 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2960 | /* confdefs.h. */ |
2961 | _ACEOF | |
2962 | cat confdefs.h >>conftest.$ac_ext | |
2963 | cat >>conftest.$ac_ext <<_ACEOF | |
2964 | /* end confdefs.h. */ | |
2965 | ||
2966 | int | |
2967 | main () | |
2968 | { | |
2969 | #ifndef __GNUC__ | |
2970 | choke me | |
2971 | #endif | |
80992638 | 2972 | |
ad6254c5 AK |
2973 | ; |
2974 | return 0; | |
2975 | } | |
2976 | _ACEOF | |
2977 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2978 | if { (ac_try="$ac_compile" |
2979 | case "(($ac_try" in | |
2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2981 | *) ac_try_echo=$ac_try;; | |
2982 | esac | |
ec6a6fbe AK |
2983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2984 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2985 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2986 | ac_status=$? |
8a2fc586 AK |
2987 | grep -v '^ *+' conftest.er1 >conftest.err |
2988 | rm -f conftest.er1 | |
2989 | cat conftest.err >&5 | |
ec6a6fbe | 2990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2991 | (exit $ac_status); } && { |
2992 | test -z "$ac_c_werror_flag" || | |
2993 | test ! -s conftest.err | |
2994 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2995 | ac_compiler_gnu=yes |
80992638 | 2996 | else |
ec6a6fbe | 2997 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2998 | sed 's/^/| /' conftest.$ac_ext >&5 |
2999 | ||
7a197a62 | 3000 | ac_compiler_gnu=no |
8106cdd5 | 3001 | fi |
7a197a62 AK |
3002 | |
3003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3004 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3005 | |
ad6254c5 | 3006 | fi |
ec6a6fbe AK |
3007 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3008 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3009 | if test $ac_compiler_gnu = yes; then | |
3010 | GCC=yes | |
3011 | else | |
3012 | GCC= | |
3013 | fi | |
ad6254c5 AK |
3014 | ac_test_CFLAGS=${CFLAGS+set} |
3015 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3016 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3017 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3018 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3019 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3020 | else |
7a197a62 AK |
3021 | ac_save_c_werror_flag=$ac_c_werror_flag |
3022 | ac_c_werror_flag=yes | |
3023 | ac_cv_prog_cc_g=no | |
3024 | CFLAGS="-g" | |
3025 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3026 | /* confdefs.h. */ |
3027 | _ACEOF | |
3028 | cat confdefs.h >>conftest.$ac_ext | |
3029 | cat >>conftest.$ac_ext <<_ACEOF | |
3030 | /* end confdefs.h. */ | |
3031 | ||
3032 | int | |
3033 | main () | |
3034 | { | |
3035 | ||
3036 | ; | |
3037 | return 0; | |
3038 | } | |
3039 | _ACEOF | |
3040 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3041 | if { (ac_try="$ac_compile" |
3042 | case "(($ac_try" in | |
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3044 | *) ac_try_echo=$ac_try;; | |
3045 | esac | |
ec6a6fbe AK |
3046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3047 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3048 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3049 | ac_status=$? |
8a2fc586 AK |
3050 | grep -v '^ *+' conftest.er1 >conftest.err |
3051 | rm -f conftest.er1 | |
3052 | cat conftest.err >&5 | |
ec6a6fbe | 3053 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3054 | (exit $ac_status); } && { |
3055 | test -z "$ac_c_werror_flag" || | |
3056 | test ! -s conftest.err | |
3057 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3058 | ac_cv_prog_cc_g=yes |
3059 | else | |
ec6a6fbe | 3060 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3061 | sed 's/^/| /' conftest.$ac_ext >&5 |
3062 | ||
3063 | CFLAGS="" | |
3064 | cat >conftest.$ac_ext <<_ACEOF | |
3065 | /* confdefs.h. */ | |
3066 | _ACEOF | |
3067 | cat confdefs.h >>conftest.$ac_ext | |
3068 | cat >>conftest.$ac_ext <<_ACEOF | |
3069 | /* end confdefs.h. */ | |
3070 | ||
3071 | int | |
3072 | main () | |
3073 | { | |
3074 | ||
3075 | ; | |
3076 | return 0; | |
3077 | } | |
3078 | _ACEOF | |
3079 | rm -f conftest.$ac_objext | |
3080 | if { (ac_try="$ac_compile" | |
3081 | case "(($ac_try" in | |
3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3083 | *) ac_try_echo=$ac_try;; | |
3084 | esac | |
ec6a6fbe AK |
3085 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3086 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3087 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3088 | ac_status=$? |
7a197a62 AK |
3089 | grep -v '^ *+' conftest.er1 >conftest.err |
3090 | rm -f conftest.er1 | |
3091 | cat conftest.err >&5 | |
ec6a6fbe | 3092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3093 | (exit $ac_status); } && { |
3094 | test -z "$ac_c_werror_flag" || | |
3095 | test ! -s conftest.err | |
3096 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3097 | : |
3098 | else | |
ec6a6fbe | 3099 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3100 | sed 's/^/| /' conftest.$ac_ext >&5 |
3101 | ||
3102 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3103 | CFLAGS="-g" | |
3104 | cat >conftest.$ac_ext <<_ACEOF | |
3105 | /* confdefs.h. */ | |
3106 | _ACEOF | |
3107 | cat confdefs.h >>conftest.$ac_ext | |
3108 | cat >>conftest.$ac_ext <<_ACEOF | |
3109 | /* end confdefs.h. */ | |
3110 | ||
3111 | int | |
3112 | main () | |
3113 | { | |
3114 | ||
3115 | ; | |
3116 | return 0; | |
3117 | } | |
3118 | _ACEOF | |
3119 | rm -f conftest.$ac_objext | |
3120 | if { (ac_try="$ac_compile" | |
3121 | case "(($ac_try" in | |
3122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3123 | *) ac_try_echo=$ac_try;; | |
3124 | esac | |
ec6a6fbe AK |
3125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3126 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3127 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3128 | ac_status=$? |
7a197a62 AK |
3129 | grep -v '^ *+' conftest.er1 >conftest.err |
3130 | rm -f conftest.er1 | |
3131 | cat conftest.err >&5 | |
ec6a6fbe | 3132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3133 | (exit $ac_status); } && { |
3134 | test -z "$ac_c_werror_flag" || | |
3135 | test ! -s conftest.err | |
3136 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3137 | ac_cv_prog_cc_g=yes |
3138 | else | |
ec6a6fbe | 3139 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3140 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3141 | |
7a197a62 AK |
3142 | |
3143 | fi | |
3144 | ||
3145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3146 | fi | |
3147 | ||
3148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3149 | fi |
7a197a62 AK |
3150 | |
3151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3152 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3153 | fi |
ec6a6fbe AK |
3154 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3155 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3156 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3157 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3158 | elif test $ac_cv_prog_cc_g = yes; then |
3159 | if test "$GCC" = yes; then | |
3160 | CFLAGS="-g -O2" | |
3161 | else | |
3162 | CFLAGS="-g" | |
3163 | fi | |
3164 | else | |
3165 | if test "$GCC" = yes; then | |
3166 | CFLAGS="-O2" | |
3167 | else | |
3168 | CFLAGS= | |
3169 | fi | |
3170 | fi | |
ec6a6fbe AK |
3171 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3172 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3173 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3174 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3175 | else |
7a197a62 | 3176 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3177 | ac_save_CC=$CC |
3178 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3179 | /* confdefs.h. */ |
3180 | _ACEOF | |
3181 | cat confdefs.h >>conftest.$ac_ext | |
3182 | cat >>conftest.$ac_ext <<_ACEOF | |
3183 | /* end confdefs.h. */ | |
3184 | #include <stdarg.h> | |
3185 | #include <stdio.h> | |
3186 | #include <sys/types.h> | |
3187 | #include <sys/stat.h> | |
3188 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3189 | struct buf { int x; }; | |
3190 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3191 | static char *e (p, i) | |
3192 | char **p; | |
3193 | int i; | |
3194 | { | |
3195 | return p[i]; | |
3196 | } | |
3197 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3198 | { | |
3199 | char *s; | |
3200 | va_list v; | |
3201 | va_start (v,p); | |
3202 | s = g (p, va_arg (v,int)); | |
3203 | va_end (v); | |
3204 | return s; | |
3205 | } | |
8a2fc586 AK |
3206 | |
3207 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3208 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3209 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3210 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3211 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3212 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3213 | that's true only with -std. */ |
8a2fc586 AK |
3214 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3215 | ||
7a197a62 AK |
3216 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3217 | inside strings and character constants. */ | |
3218 | #define FOO(x) 'x' | |
3219 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3220 | ||
ad6254c5 AK |
3221 | int test (int i, double x); |
3222 | struct s1 {int (*f) (int a);}; | |
3223 | struct s2 {int (*f) (double a);}; | |
3224 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3225 | int argc; | |
3226 | char **argv; | |
3227 | int | |
3228 | main () | |
3229 | { | |
3230 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3231 | ; | |
3232 | return 0; | |
3233 | } | |
3234 | _ACEOF | |
7a197a62 AK |
3235 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3236 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3237 | do |
3238 | CC="$ac_save_CC $ac_arg" | |
3239 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3240 | if { (ac_try="$ac_compile" |
3241 | case "(($ac_try" in | |
3242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3243 | *) ac_try_echo=$ac_try;; | |
3244 | esac | |
ec6a6fbe AK |
3245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3246 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3247 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3248 | ac_status=$? |
8a2fc586 AK |
3249 | grep -v '^ *+' conftest.er1 >conftest.err |
3250 | rm -f conftest.er1 | |
3251 | cat conftest.err >&5 | |
ec6a6fbe | 3252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3253 | (exit $ac_status); } && { |
3254 | test -z "$ac_c_werror_flag" || | |
3255 | test ! -s conftest.err | |
3256 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3257 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3258 | else |
ec6a6fbe | 3259 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
3261 | ||
7a197a62 | 3262 | |
ad6254c5 | 3263 | fi |
7a197a62 AK |
3264 | |
3265 | rm -f core conftest.err conftest.$ac_objext | |
3266 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3267 | done |
7a197a62 | 3268 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3269 | CC=$ac_save_CC |
3270 | ||
3271 | fi | |
7a197a62 AK |
3272 | # AC_CACHE_VAL |
3273 | case "x$ac_cv_prog_cc_c89" in | |
3274 | x) | |
ec6a6fbe AK |
3275 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3276 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3277 | xno) |
ec6a6fbe AK |
3278 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3279 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3280 | *) |
7a197a62 | 3281 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3282 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3283 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3284 | esac |
3285 | ||
ad6254c5 | 3286 | |
ad6254c5 AK |
3287 | ac_ext=c |
3288 | ac_cpp='$CPP $CPPFLAGS' | |
3289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3292 | |
d0191583 JM |
3293 | |
3294 | ||
3295 | ac_ext=c | |
3296 | ac_cpp='$CPP $CPPFLAGS' | |
3297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3300 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3301 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3302 | # On Suns, sometimes $CPP names a directory. |
3303 | if test -n "$CPP" && test -d "$CPP"; then | |
3304 | CPP= | |
3305 | fi | |
3306 | if test -z "$CPP"; then | |
3307 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3308 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3309 | else |
d0191583 JM |
3310 | # Double quotes because CPP needs to be expanded |
3311 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3312 | do | |
3313 | ac_preproc_ok=false | |
3314 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3315 | do |
d0191583 JM |
3316 | # Use a header file that comes with gcc, so configuring glibc |
3317 | # with a fresh cross-compiler works. | |
3318 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3319 | # <limits.h> exists even on freestanding compilers. | |
3320 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3321 | # not just through cpp. "Syntax error" is here to catch this case. | |
3322 | cat >conftest.$ac_ext <<_ACEOF | |
3323 | /* confdefs.h. */ | |
3324 | _ACEOF | |
3325 | cat confdefs.h >>conftest.$ac_ext | |
3326 | cat >>conftest.$ac_ext <<_ACEOF | |
3327 | /* end confdefs.h. */ | |
3328 | #ifdef __STDC__ | |
3329 | # include <limits.h> | |
3330 | #else | |
3331 | # include <assert.h> | |
3332 | #endif | |
3333 | Syntax error | |
3334 | _ACEOF | |
3335 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3336 | case "(($ac_try" in | |
3337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3338 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3339 | esac |
ec6a6fbe AK |
3340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3341 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3342 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3343 | ac_status=$? | |
3344 | grep -v '^ *+' conftest.er1 >conftest.err | |
3345 | rm -f conftest.er1 | |
3346 | cat conftest.err >&5 | |
ec6a6fbe | 3347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3348 | (exit $ac_status); } >/dev/null && { |
3349 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3350 | test ! -s conftest.err | |
3351 | }; then | |
3352 | : | |
3353 | else | |
ec6a6fbe | 3354 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3355 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3356 | |
d0191583 JM |
3357 | # Broken: fails on valid input. |
3358 | continue | |
795ca3e5 | 3359 | fi |
795ca3e5 | 3360 | |
d0191583 | 3361 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3362 | |
d0191583 JM |
3363 | # OK, works on sane cases. Now check whether nonexistent headers |
3364 | # can be detected and how. | |
3365 | cat >conftest.$ac_ext <<_ACEOF | |
3366 | /* confdefs.h. */ | |
3367 | _ACEOF | |
3368 | cat confdefs.h >>conftest.$ac_ext | |
3369 | cat >>conftest.$ac_ext <<_ACEOF | |
3370 | /* end confdefs.h. */ | |
3371 | #include <ac_nonexistent.h> | |
3372 | _ACEOF | |
3373 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3374 | case "(($ac_try" in | |
3375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3376 | *) ac_try_echo=$ac_try;; | |
3377 | esac | |
ec6a6fbe AK |
3378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3379 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3380 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3381 | ac_status=$? | |
3382 | grep -v '^ *+' conftest.er1 >conftest.err | |
3383 | rm -f conftest.er1 | |
3384 | cat conftest.err >&5 | |
ec6a6fbe | 3385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3386 | (exit $ac_status); } >/dev/null && { |
3387 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3388 | test ! -s conftest.err | |
3389 | }; then | |
3390 | # Broken: success on invalid input. | |
3391 | continue | |
3392 | else | |
ec6a6fbe | 3393 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3394 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3395 | |
d0191583 JM |
3396 | # Passes both tests. |
3397 | ac_preproc_ok=: | |
3398 | break | |
3399 | fi | |
795ca3e5 | 3400 | |
d0191583 JM |
3401 | rm -f conftest.err conftest.$ac_ext |
3402 | ||
3403 | done | |
3404 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3405 | rm -f conftest.err conftest.$ac_ext | |
3406 | if $ac_preproc_ok; then | |
3407 | break | |
795ca3e5 AK |
3408 | fi |
3409 | ||
d0191583 JM |
3410 | done |
3411 | ac_cv_prog_CPP=$CPP | |
3412 | ||
3413 | fi | |
3414 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3415 | else |
d0191583 JM |
3416 | ac_cv_prog_CPP=$CPP |
3417 | fi | |
ec6a6fbe AK |
3418 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3419 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3420 | ac_preproc_ok=false |
3421 | for ac_c_preproc_warn_flag in '' yes | |
3422 | do | |
3423 | # Use a header file that comes with gcc, so configuring glibc | |
3424 | # with a fresh cross-compiler works. | |
3425 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3426 | # <limits.h> exists even on freestanding compilers. | |
3427 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3428 | # not just through cpp. "Syntax error" is here to catch this case. | |
3429 | cat >conftest.$ac_ext <<_ACEOF | |
3430 | /* confdefs.h. */ | |
ad6254c5 | 3431 | _ACEOF |
d0191583 JM |
3432 | cat confdefs.h >>conftest.$ac_ext |
3433 | cat >>conftest.$ac_ext <<_ACEOF | |
3434 | /* end confdefs.h. */ | |
3435 | #ifdef __STDC__ | |
3436 | # include <limits.h> | |
3437 | #else | |
3438 | # include <assert.h> | |
3439 | #endif | |
3440 | Syntax error | |
3441 | _ACEOF | |
3442 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3443 | case "(($ac_try" in | |
3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3445 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3446 | esac |
ec6a6fbe AK |
3447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3448 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3450 | ac_status=$? | |
3451 | grep -v '^ *+' conftest.er1 >conftest.err | |
3452 | rm -f conftest.er1 | |
3453 | cat conftest.err >&5 | |
ec6a6fbe | 3454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3455 | (exit $ac_status); } >/dev/null && { |
3456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3457 | test ! -s conftest.err | |
3458 | }; then | |
3459 | : | |
795ca3e5 | 3460 | else |
ec6a6fbe | 3461 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3462 | sed 's/^/| /' conftest.$ac_ext >&5 |
3463 | ||
3464 | # Broken: fails on valid input. | |
3465 | continue | |
795ca3e5 AK |
3466 | fi |
3467 | ||
d0191583 JM |
3468 | rm -f conftest.err conftest.$ac_ext |
3469 | ||
3470 | # OK, works on sane cases. Now check whether nonexistent headers | |
3471 | # can be detected and how. | |
3472 | cat >conftest.$ac_ext <<_ACEOF | |
3473 | /* confdefs.h. */ | |
3474 | _ACEOF | |
3475 | cat confdefs.h >>conftest.$ac_ext | |
3476 | cat >>conftest.$ac_ext <<_ACEOF | |
3477 | /* end confdefs.h. */ | |
3478 | #include <ac_nonexistent.h> | |
3479 | _ACEOF | |
3480 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3481 | case "(($ac_try" in | |
3482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3483 | *) ac_try_echo=$ac_try;; | |
3484 | esac | |
ec6a6fbe AK |
3485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3486 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3487 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3488 | ac_status=$? | |
3489 | grep -v '^ *+' conftest.er1 >conftest.err | |
3490 | rm -f conftest.er1 | |
3491 | cat conftest.err >&5 | |
ec6a6fbe | 3492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3493 | (exit $ac_status); } >/dev/null && { |
3494 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3495 | test ! -s conftest.err | |
3496 | }; then | |
3497 | # Broken: success on invalid input. | |
3498 | continue | |
795ca3e5 | 3499 | else |
ec6a6fbe | 3500 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3501 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3502 | |
d0191583 JM |
3503 | # Passes both tests. |
3504 | ac_preproc_ok=: | |
3505 | break | |
795ca3e5 | 3506 | fi |
d0191583 JM |
3507 | |
3508 | rm -f conftest.err conftest.$ac_ext | |
3509 | ||
3510 | done | |
3511 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3512 | rm -f conftest.err conftest.$ac_ext | |
3513 | if $ac_preproc_ok; then | |
3514 | : | |
8106cdd5 | 3515 | else |
ec6a6fbe AK |
3516 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3517 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3518 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3519 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3520 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3521 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3522 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3523 | fi |
3524 | ||
d0191583 JM |
3525 | ac_ext=c |
3526 | ac_cpp='$CPP $CPPFLAGS' | |
3527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3530 | ||
7a197a62 | 3531 | |
ec6a6fbe AK |
3532 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3533 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3534 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3535 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3536 | else |
ec6a6fbe | 3537 | if test -z "$GREP"; then |
d0191583 | 3538 | ac_path_GREP_found=false |
ec6a6fbe AK |
3539 | # Loop through the user's path and test for each of PROGNAME-LIST |
3540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3541 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3542 | do |
3543 | IFS=$as_save_IFS | |
3544 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3545 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3546 | for ac_exec_ext in '' $ac_executable_extensions; do |
3547 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3548 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3549 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3550 | # Check for GNU $ac_path_GREP |
3551 | case `"$ac_path_GREP" --version 2>&1` in | |
3552 | *GNU*) | |
3553 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3554 | *) | |
3555 | ac_count=0 | |
ec6a6fbe | 3556 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3557 | while : |
3558 | do | |
3559 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3560 | mv "conftest.tmp" "conftest.in" | |
3561 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3562 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3563 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3564 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3565 | ac_count=`expr $ac_count + 1` | |
3566 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3567 | # Best one so far, save it but keep looking for a better one | |
3568 | ac_cv_path_GREP="$ac_path_GREP" | |
3569 | ac_path_GREP_max=$ac_count | |
3570 | fi | |
3571 | # 10*(2^10) chars as input seems more than enough | |
3572 | test $ac_count -gt 10 && break | |
3573 | done | |
3574 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3575 | esac | |
3576 | ||
ec6a6fbe AK |
3577 | $ac_path_GREP_found && break 3 |
3578 | done | |
d0191583 | 3579 | done |
ad6254c5 | 3580 | done |
7a197a62 | 3581 | IFS=$as_save_IFS |
ec6a6fbe AK |
3582 | if test -z "$ac_cv_path_GREP"; then |
3583 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3584 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3585 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3586 | fi |
80992638 | 3587 | else |
d0191583 | 3588 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3589 | fi |
8106cdd5 | 3590 | |
80992638 | 3591 | fi |
ec6a6fbe AK |
3592 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3593 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3594 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3595 | |
d0191583 | 3596 | |
ec6a6fbe AK |
3597 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3598 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3599 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3600 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3601 | else |
d0191583 JM |
3602 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3603 | then ac_cv_path_EGREP="$GREP -E" | |
3604 | else | |
ec6a6fbe | 3605 | if test -z "$EGREP"; then |
d0191583 | 3606 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3607 | # Loop through the user's path and test for each of PROGNAME-LIST |
3608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3609 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3610 | do |
3611 | IFS=$as_save_IFS | |
3612 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3613 | for ac_prog in egrep; do |
ec6a6fbe AK |
3614 | for ac_exec_ext in '' $ac_executable_extensions; do |
3615 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3616 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3617 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3618 | # Check for GNU $ac_path_EGREP |
3619 | case `"$ac_path_EGREP" --version 2>&1` in | |
3620 | *GNU*) | |
3621 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3622 | *) | |
3623 | ac_count=0 | |
ec6a6fbe | 3624 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3625 | while : |
3626 | do | |
3627 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3628 | mv "conftest.tmp" "conftest.in" | |
3629 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3630 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3631 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3632 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3633 | ac_count=`expr $ac_count + 1` | |
3634 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3635 | # Best one so far, save it but keep looking for a better one | |
3636 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3637 | ac_path_EGREP_max=$ac_count | |
3638 | fi | |
3639 | # 10*(2^10) chars as input seems more than enough | |
3640 | test $ac_count -gt 10 && break | |
3641 | done | |
3642 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3643 | esac |
8a2fc586 | 3644 | |
ec6a6fbe AK |
3645 | $ac_path_EGREP_found && break 3 |
3646 | done | |
d0191583 | 3647 | done |
8a2fc586 | 3648 | done |
7a197a62 | 3649 | IFS=$as_save_IFS |
ec6a6fbe AK |
3650 | if test -z "$ac_cv_path_EGREP"; then |
3651 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3652 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3653 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3654 | fi |
d0191583 JM |
3655 | else |
3656 | ac_cv_path_EGREP=$EGREP | |
3657 | fi | |
ad6254c5 | 3658 | |
d0191583 JM |
3659 | fi |
3660 | fi | |
ec6a6fbe AK |
3661 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3662 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3663 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3664 | |
3665 | ||
d0191583 | 3666 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3667 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3668 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3669 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3670 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3671 | else |
d0191583 | 3672 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3673 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3674 | /* confdefs.h. */ |
3675 | _ACEOF | |
3676 | cat confdefs.h >>conftest.$ac_ext | |
3677 | cat >>conftest.$ac_ext <<_ACEOF | |
3678 | /* end confdefs.h. */ | |
d0191583 JM |
3679 | #include <sgtty.h> |
3680 | Autoconf TIOCGETP | |
ad6254c5 | 3681 | _ACEOF |
d0191583 JM |
3682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3683 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3684 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3685 | else |
d0191583 | 3686 | ac_cv_prog_gcc_traditional=no |
80992638 | 3687 | fi |
d0191583 | 3688 | rm -f conftest* |
ad6254c5 | 3689 | |
8106cdd5 | 3690 | |
d0191583 JM |
3691 | if test $ac_cv_prog_gcc_traditional = no; then |
3692 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3693 | /* confdefs.h. */ |
3694 | _ACEOF | |
3695 | cat confdefs.h >>conftest.$ac_ext | |
3696 | cat >>conftest.$ac_ext <<_ACEOF | |
3697 | /* end confdefs.h. */ | |
d0191583 JM |
3698 | #include <termio.h> |
3699 | Autoconf TCGETA | |
ad6254c5 | 3700 | _ACEOF |
d0191583 JM |
3701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3702 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3703 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3704 | fi |
d0191583 | 3705 | rm -f conftest* |
795ca3e5 | 3706 | |
d0191583 | 3707 | fi |
795ca3e5 | 3708 | fi |
ec6a6fbe AK |
3709 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3710 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3711 | if test $ac_cv_prog_gcc_traditional = yes; then |
3712 | CC="$CC -traditional" | |
3713 | fi | |
795ca3e5 AK |
3714 | fi |
3715 | ||
d0191583 JM |
3716 | # Find a good install program. We prefer a C program (faster), |
3717 | # so one script is as good as another. But avoid the broken or | |
3718 | # incompatible versions: | |
3719 | # SysV /etc/install, /usr/sbin/install | |
3720 | # SunOS /usr/etc/install | |
3721 | # IRIX /sbin/install | |
3722 | # AIX /bin/install | |
3723 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3724 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3725 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3726 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3727 | # OS/2's system install, which has a completely different semantic | |
3728 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3729 | # Reject install programs that cannot install multiple files. |
3730 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3731 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3732 | if test -z "$INSTALL"; then |
3733 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3734 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3735 | else |
d0191583 JM |
3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3737 | for as_dir in $PATH | |
3738 | do | |
3739 | IFS=$as_save_IFS | |
3740 | test -z "$as_dir" && as_dir=. | |
3741 | # Account for people who put trailing slashes in PATH elements. | |
3742 | case $as_dir/ in | |
3743 | ./ | .// | /cC/* | \ | |
3744 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3745 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3746 | /usr/ucb/* ) ;; | |
3747 | *) | |
3748 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3749 | # Don't use installbsd from OSF since it installs stuff as root | |
3750 | # by default. | |
3751 | for ac_prog in ginstall scoinst install; do | |
3752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3753 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3754 | if test $ac_prog = install && | |
3755 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3756 | # AIX install. It has an incompatible calling convention. | |
3757 | : | |
3758 | elif test $ac_prog = install && | |
3759 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3760 | # program-specific install script used by HP pwplus--don't use. | |
3761 | : | |
3762 | else | |
ec6a6fbe AK |
3763 | rm -rf conftest.one conftest.two conftest.dir |
3764 | echo one > conftest.one | |
3765 | echo two > conftest.two | |
3766 | mkdir conftest.dir | |
3767 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3768 | test -s conftest.one && test -s conftest.two && | |
3769 | test -s conftest.dir/conftest.one && | |
3770 | test -s conftest.dir/conftest.two | |
3771 | then | |
3772 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3773 | break 3 | |
3774 | fi | |
d0191583 JM |
3775 | fi |
3776 | fi | |
3777 | done | |
3778 | done | |
3779 | ;; | |
3780 | esac | |
ec6a6fbe | 3781 | |
d0191583 JM |
3782 | done |
3783 | IFS=$as_save_IFS | |
80992638 | 3784 | |
ec6a6fbe | 3785 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3786 | |
3787 | fi | |
3788 | if test "${ac_cv_path_install+set}" = set; then | |
3789 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3790 | else |
d0191583 JM |
3791 | # As a last resort, use the slow shell script. Don't cache a |
3792 | # value for INSTALL within a source directory, because that will | |
3793 | # break other packages using the cache if that directory is | |
3794 | # removed, or if the value is a relative name. | |
3795 | INSTALL=$ac_install_sh | |
7a197a62 | 3796 | fi |
d0191583 | 3797 | fi |
ec6a6fbe AK |
3798 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3799 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3800 | |
d0191583 JM |
3801 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3802 | # It thinks the first close brace ends the variable substitution. | |
3803 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3804 | |
d0191583 | 3805 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3806 | |
d0191583 JM |
3807 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3808 | ||
ec6a6fbe AK |
3809 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3810 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3811 | LN_S=$as_ln_s |
3812 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3813 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3814 | $as_echo "yes" >&6; } | |
d0191583 | 3815 | else |
ec6a6fbe AK |
3816 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3817 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3818 | fi |
d0191583 | 3819 | |
ec6a6fbe AK |
3820 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3821 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3822 | set x ${MAKE-make} | |
3823 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3824 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3825 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3826 | else |
d0191583 JM |
3827 | cat >conftest.make <<\_ACEOF |
3828 | SHELL = /bin/sh | |
3829 | all: | |
3830 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3831 | _ACEOF | |
3832 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3833 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3834 | *@@@%%%=?*=@@@%%%*) | |
3835 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3836 | *) | |
3837 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3838 | esac | |
3839 | rm -f conftest.make | |
ad6254c5 | 3840 | fi |
d0191583 | 3841 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3842 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3843 | $as_echo "yes" >&6; } | |
d0191583 JM |
3844 | SET_MAKE= |
3845 | else | |
ec6a6fbe AK |
3846 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3847 | $as_echo "no" >&6; } | |
d0191583 | 3848 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3849 | fi |
8106cdd5 | 3850 | |
ec6a6fbe AK |
3851 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3852 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3853 | if test -z "$MKDIR_P"; then |
3854 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3855 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3856 | else |
3857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3858 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3859 | do | |
3860 | IFS=$as_save_IFS | |
3861 | test -z "$as_dir" && as_dir=. | |
3862 | for ac_prog in mkdir gmkdir; do | |
3863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3864 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3865 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3866 | 'mkdir (GNU coreutils) '* | \ | |
3867 | 'mkdir (coreutils) '* | \ | |
3868 | 'mkdir (fileutils) '4.1*) | |
3869 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3870 | break 3;; | |
3871 | esac | |
3872 | done | |
3873 | done | |
3874 | done | |
3875 | IFS=$as_save_IFS | |
3876 | ||
3877 | fi | |
3878 | ||
3879 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3880 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3881 | else | |
3882 | # As a last resort, use the slow shell script. Don't cache a | |
3883 | # value for MKDIR_P within a source directory, because that will | |
3884 | # break other packages using the cache if that directory is | |
3885 | # removed, or if the value is a relative name. | |
3886 | test -d ./--version && rmdir ./--version | |
3887 | MKDIR_P="$ac_install_sh -d" | |
3888 | fi | |
3889 | fi | |
ec6a6fbe AK |
3890 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3891 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3892 | |
d0191583 JM |
3893 | if test -n "$ac_tool_prefix"; then |
3894 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3895 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3896 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3897 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3898 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3899 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3900 | else |
3901 | if test -n "$RANLIB"; then | |
3902 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3903 | else | |
3904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3905 | for as_dir in $PATH | |
3906 | do | |
3907 | IFS=$as_save_IFS | |
3908 | test -z "$as_dir" && as_dir=. | |
3909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3911 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3912 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3913 | break 2 |
3914 | fi | |
3915 | done | |
3916 | done | |
3917 | IFS=$as_save_IFS | |
8106cdd5 | 3918 | |
795ca3e5 | 3919 | fi |
d0191583 JM |
3920 | fi |
3921 | RANLIB=$ac_cv_prog_RANLIB | |
3922 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3923 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3924 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3925 | else |
ec6a6fbe AK |
3926 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3927 | $as_echo "no" >&6; } | |
d0191583 JM |
3928 | fi |
3929 | ||
8106cdd5 | 3930 | |
ad6254c5 | 3931 | fi |
d0191583 JM |
3932 | if test -z "$ac_cv_prog_RANLIB"; then |
3933 | ac_ct_RANLIB=$RANLIB | |
3934 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3935 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3936 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3937 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3938 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3939 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3940 | else |
d0191583 JM |
3941 | if test -n "$ac_ct_RANLIB"; then |
3942 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3943 | else | |
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 | for as_dir in $PATH | |
8106cdd5 | 3946 | do |
d0191583 JM |
3947 | IFS=$as_save_IFS |
3948 | test -z "$as_dir" && as_dir=. | |
3949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3951 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3952 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3953 | break 2 |
3954 | fi | |
3955 | done | |
3956 | done | |
3957 | IFS=$as_save_IFS | |
3958 | ||
3959 | fi | |
3960 | fi | |
3961 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3962 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3963 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3964 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3965 | else |
ec6a6fbe AK |
3966 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3967 | $as_echo "no" >&6; } | |
d0191583 | 3968 | fi |
ad6254c5 | 3969 | |
d0191583 JM |
3970 | if test "x$ac_ct_RANLIB" = x; then |
3971 | RANLIB=":" | |
3972 | else | |
3973 | case $cross_compiling:$ac_tool_warned in | |
3974 | yes:) | |
ec6a6fbe AK |
3975 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3976 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3977 | ac_tool_warned=yes ;; |
3978 | esac | |
3979 | RANLIB=$ac_ct_RANLIB | |
3980 | fi | |
3981 | else | |
3982 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3983 | fi |
7a197a62 | 3984 | |
d0191583 JM |
3985 | # Extract the first word of "cflow", so it can be a program name with args. |
3986 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3987 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3988 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3989 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3990 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3991 | else |
3992 | case $CFLOW_CMD in | |
3993 | [\\/]* | ?:[\\/]*) | |
3994 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3995 | ;; | |
3996 | *) | |
3997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3998 | for as_dir in $PATH | |
3999 | do | |
4000 | IFS=$as_save_IFS | |
4001 | test -z "$as_dir" && as_dir=. | |
4002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4004 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4005 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4006 | break 2 |
4007 | fi | |
4008 | done | |
4009 | done | |
4010 | IFS=$as_save_IFS | |
ad6254c5 | 4011 | |
d0191583 | 4012 | ;; |
7a197a62 | 4013 | esac |
d0191583 JM |
4014 | fi |
4015 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4016 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4017 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4018 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4019 | else |
ec6a6fbe AK |
4020 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4021 | $as_echo "no" >&6; } | |
795ca3e5 | 4022 | fi |
7a197a62 | 4023 | |
ad6254c5 | 4024 | |
d0191583 JM |
4025 | # Extract the first word of "cscope", so it can be a program name with args. |
4026 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4027 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4028 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4029 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4030 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4031 | else |
4032 | case $CSCOPE_CMD in | |
4033 | [\\/]* | ?:[\\/]*) | |
4034 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4035 | ;; | |
4036 | *) | |
4037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4038 | for as_dir in $PATH | |
4039 | do | |
4040 | IFS=$as_save_IFS | |
4041 | test -z "$as_dir" && as_dir=. | |
4042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4044 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4045 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4046 | break 2 |
4047 | fi | |
795ca3e5 | 4048 | done |
d0191583 JM |
4049 | done |
4050 | IFS=$as_save_IFS | |
795ca3e5 | 4051 | |
d0191583 JM |
4052 | ;; |
4053 | esac | |
ad6254c5 | 4054 | fi |
d0191583 JM |
4055 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4056 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4057 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4058 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4059 | else |
ec6a6fbe AK |
4060 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4061 | $as_echo "no" >&6; } | |
795ca3e5 | 4062 | fi |
ad6254c5 | 4063 | |
7a197a62 | 4064 | |
ad6254c5 | 4065 | |
d0191583 JM |
4066 | ################################################################################ |
4067 | ||
4068 | ||
4069 | ||
4070 | ||
4071 | ||
4072 | ac_header_dirent=no | |
4073 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4074 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4075 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4076 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4078 | $as_echo_n "(cached) " >&6 |
d0191583 | 4079 | else |
ad6254c5 | 4080 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4081 | /* confdefs.h. */ |
4082 | _ACEOF | |
4083 | cat confdefs.h >>conftest.$ac_ext | |
4084 | cat >>conftest.$ac_ext <<_ACEOF | |
4085 | /* end confdefs.h. */ | |
d0191583 JM |
4086 | #include <sys/types.h> |
4087 | #include <$ac_hdr> | |
4088 | ||
4089 | int | |
4090 | main () | |
4091 | { | |
4092 | if ((DIR *) 0) | |
4093 | return 0; | |
4094 | ; | |
4095 | return 0; | |
4096 | } | |
ad6254c5 | 4097 | _ACEOF |
d0191583 JM |
4098 | rm -f conftest.$ac_objext |
4099 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4100 | case "(($ac_try" in |
4101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4102 | *) ac_try_echo=$ac_try;; | |
4103 | esac | |
ec6a6fbe AK |
4104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4105 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4106 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4107 | ac_status=$? |
4108 | grep -v '^ *+' conftest.er1 >conftest.err | |
4109 | rm -f conftest.er1 | |
4110 | cat conftest.err >&5 | |
ec6a6fbe | 4111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4112 | (exit $ac_status); } && { |
4113 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4114 | test ! -s conftest.err |
d0191583 JM |
4115 | } && test -s conftest.$ac_objext; then |
4116 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4117 | else |
ec6a6fbe | 4118 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4119 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4120 | |
d0191583 | 4121 | eval "$as_ac_Header=no" |
795ca3e5 | 4122 | fi |
7a197a62 | 4123 | |
d0191583 | 4124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4125 | fi |
ec6a6fbe AK |
4126 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4127 | $as_echo "$as_val"'` | |
4128 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4129 | $as_echo "$ac_res" >&6; } | |
4130 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4131 | $as_echo "$as_val"'` | |
4132 | if test "x$as_val" = x""yes; then | |
d0191583 | 4133 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4134 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4135 | _ACEOF |
795ca3e5 | 4136 | |
d0191583 JM |
4137 | ac_header_dirent=$ac_hdr; break |
4138 | fi | |
ad6254c5 | 4139 | |
d0191583 JM |
4140 | done |
4141 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4142 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4143 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4144 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4145 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4146 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4147 | else |
d0191583 JM |
4148 | ac_func_search_save_LIBS=$LIBS |
4149 | cat >conftest.$ac_ext <<_ACEOF | |
4150 | /* confdefs.h. */ | |
4151 | _ACEOF | |
4152 | cat confdefs.h >>conftest.$ac_ext | |
4153 | cat >>conftest.$ac_ext <<_ACEOF | |
4154 | /* end confdefs.h. */ | |
ad6254c5 | 4155 | |
d0191583 JM |
4156 | /* Override any GCC internal prototype to avoid an error. |
4157 | Use char because int might match the return type of a GCC | |
4158 | builtin and then its argument prototype would still apply. */ | |
4159 | #ifdef __cplusplus | |
4160 | extern "C" | |
4161 | #endif | |
4162 | char opendir (); | |
4163 | int | |
4164 | main () | |
4165 | { | |
4166 | return opendir (); | |
4167 | ; | |
4168 | return 0; | |
4169 | } | |
4170 | _ACEOF | |
4171 | for ac_lib in '' dir; do | |
4172 | if test -z "$ac_lib"; then | |
4173 | ac_res="none required" | |
4174 | else | |
4175 | ac_res=-l$ac_lib | |
4176 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4177 | fi | |
4178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4179 | if { (ac_try="$ac_link" | |
4180 | case "(($ac_try" in | |
4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4182 | *) ac_try_echo=$ac_try;; | |
4183 | esac | |
ec6a6fbe AK |
4184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4185 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4186 | (eval "$ac_link") 2>conftest.er1 |
4187 | ac_status=$? | |
4188 | grep -v '^ *+' conftest.er1 >conftest.err | |
4189 | rm -f conftest.er1 | |
4190 | cat conftest.err >&5 | |
ec6a6fbe | 4191 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4192 | (exit $ac_status); } && { |
4193 | test -z "$ac_c_werror_flag" || | |
4194 | test ! -s conftest.err | |
ec6a6fbe AK |
4195 | } && test -s conftest$ac_exeext && { |
4196 | test "$cross_compiling" = yes || | |
4197 | $as_test_x conftest$ac_exeext | |
4198 | }; then | |
d0191583 JM |
4199 | ac_cv_search_opendir=$ac_res |
4200 | else | |
ec6a6fbe | 4201 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4202 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4203 | |
ad6254c5 | 4204 | |
795ca3e5 | 4205 | fi |
ad6254c5 | 4206 | |
ec6a6fbe | 4207 | rm -rf conftest.dSYM |
d0191583 JM |
4208 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4209 | conftest$ac_exeext | |
4210 | if test "${ac_cv_search_opendir+set}" = set; then | |
4211 | break | |
7a197a62 | 4212 | fi |
d0191583 JM |
4213 | done |
4214 | if test "${ac_cv_search_opendir+set}" = set; then | |
4215 | : | |
7a197a62 | 4216 | else |
d0191583 | 4217 | ac_cv_search_opendir=no |
7a197a62 | 4218 | fi |
d0191583 JM |
4219 | rm conftest.$ac_ext |
4220 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4221 | fi |
ec6a6fbe AK |
4222 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4223 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4224 | ac_res=$ac_cv_search_opendir |
4225 | if test "$ac_res" != no; then | |
4226 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4227 | |
d0191583 | 4228 | fi |
7a197a62 | 4229 | |
7a197a62 | 4230 | else |
ec6a6fbe AK |
4231 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4232 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4233 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4234 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4235 | else |
d0191583 JM |
4236 | ac_func_search_save_LIBS=$LIBS |
4237 | cat >conftest.$ac_ext <<_ACEOF | |
4238 | /* confdefs.h. */ | |
4239 | _ACEOF | |
4240 | cat confdefs.h >>conftest.$ac_ext | |
4241 | cat >>conftest.$ac_ext <<_ACEOF | |
4242 | /* end confdefs.h. */ | |
7a197a62 | 4243 | |
d0191583 JM |
4244 | /* Override any GCC internal prototype to avoid an error. |
4245 | Use char because int might match the return type of a GCC | |
4246 | builtin and then its argument prototype would still apply. */ | |
4247 | #ifdef __cplusplus | |
4248 | extern "C" | |
4249 | #endif | |
4250 | char opendir (); | |
4251 | int | |
4252 | main () | |
4253 | { | |
4254 | return opendir (); | |
4255 | ; | |
4256 | return 0; | |
4257 | } | |
4258 | _ACEOF | |
4259 | for ac_lib in '' x; do | |
4260 | if test -z "$ac_lib"; then | |
4261 | ac_res="none required" | |
4262 | else | |
4263 | ac_res=-l$ac_lib | |
4264 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4265 | fi | |
4266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4267 | if { (ac_try="$ac_link" | |
4268 | case "(($ac_try" in | |
4269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4270 | *) ac_try_echo=$ac_try;; | |
4271 | esac | |
ec6a6fbe AK |
4272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4273 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4274 | (eval "$ac_link") 2>conftest.er1 |
4275 | ac_status=$? | |
4276 | grep -v '^ *+' conftest.er1 >conftest.err | |
4277 | rm -f conftest.er1 | |
4278 | cat conftest.err >&5 | |
ec6a6fbe | 4279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4280 | (exit $ac_status); } && { |
4281 | test -z "$ac_c_werror_flag" || | |
4282 | test ! -s conftest.err | |
ec6a6fbe AK |
4283 | } && test -s conftest$ac_exeext && { |
4284 | test "$cross_compiling" = yes || | |
4285 | $as_test_x conftest$ac_exeext | |
4286 | }; then | |
d0191583 JM |
4287 | ac_cv_search_opendir=$ac_res |
4288 | else | |
ec6a6fbe | 4289 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4290 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4291 | |
4292 | ||
4293 | fi | |
4294 | ||
ec6a6fbe | 4295 | rm -rf conftest.dSYM |
d0191583 JM |
4296 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4297 | conftest$ac_exeext | |
4298 | if test "${ac_cv_search_opendir+set}" = set; then | |
4299 | break | |
7a197a62 | 4300 | fi |
d0191583 JM |
4301 | done |
4302 | if test "${ac_cv_search_opendir+set}" = set; then | |
4303 | : | |
7a197a62 | 4304 | else |
d0191583 | 4305 | ac_cv_search_opendir=no |
7a197a62 | 4306 | fi |
d0191583 JM |
4307 | rm conftest.$ac_ext |
4308 | LIBS=$ac_func_search_save_LIBS | |
4309 | fi | |
ec6a6fbe AK |
4310 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4311 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4312 | ac_res=$ac_cv_search_opendir |
4313 | if test "$ac_res" != no; then | |
4314 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4315 | |
7a197a62 | 4316 | fi |
7a197a62 | 4317 | |
d0191583 | 4318 | fi |
7a197a62 | 4319 | |
ec6a6fbe AK |
4320 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4321 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4322 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4323 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4324 | else |
4325 | cat >conftest.$ac_ext <<_ACEOF | |
4326 | /* confdefs.h. */ | |
4327 | _ACEOF | |
4328 | cat confdefs.h >>conftest.$ac_ext | |
4329 | cat >>conftest.$ac_ext <<_ACEOF | |
4330 | /* end confdefs.h. */ | |
4331 | #include <stdlib.h> | |
4332 | #include <stdarg.h> | |
4333 | #include <string.h> | |
4334 | #include <float.h> | |
4335 | ||
4336 | int | |
4337 | main () | |
4338 | { | |
4339 | ||
4340 | ; | |
4341 | return 0; | |
4342 | } | |
4343 | _ACEOF | |
4344 | rm -f conftest.$ac_objext | |
4345 | if { (ac_try="$ac_compile" | |
4346 | case "(($ac_try" in | |
4347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4348 | *) ac_try_echo=$ac_try;; | |
4349 | esac | |
ec6a6fbe AK |
4350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4351 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4352 | (eval "$ac_compile") 2>conftest.er1 |
4353 | ac_status=$? | |
4354 | grep -v '^ *+' conftest.er1 >conftest.err | |
4355 | rm -f conftest.er1 | |
4356 | cat conftest.err >&5 | |
ec6a6fbe | 4357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4358 | (exit $ac_status); } && { |
4359 | test -z "$ac_c_werror_flag" || | |
4360 | test ! -s conftest.err | |
4361 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4362 | ac_cv_header_stdc=yes |
4363 | else | |
ec6a6fbe | 4364 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4365 | sed 's/^/| /' conftest.$ac_ext >&5 |
4366 | ||
4367 | ac_cv_header_stdc=no | |
4368 | fi | |
4369 | ||
4370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4371 | ||
4372 | if test $ac_cv_header_stdc = yes; then | |
4373 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4374 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4375 | /* confdefs.h. */ |
4376 | _ACEOF | |
4377 | cat confdefs.h >>conftest.$ac_ext | |
4378 | cat >>conftest.$ac_ext <<_ACEOF | |
4379 | /* end confdefs.h. */ | |
4380 | #include <string.h> | |
8106cdd5 | 4381 | |
ad6254c5 AK |
4382 | _ACEOF |
4383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4384 | $EGREP "memchr" >/dev/null 2>&1; then | |
4385 | : | |
4386 | else | |
4387 | ac_cv_header_stdc=no | |
80992638 | 4388 | fi |
ad6254c5 | 4389 | rm -f conftest* |
795ca3e5 AK |
4390 | |
4391 | fi | |
4392 | ||
ad6254c5 AK |
4393 | if test $ac_cv_header_stdc = yes; then |
4394 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4395 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4396 | /* confdefs.h. */ |
4397 | _ACEOF | |
4398 | cat confdefs.h >>conftest.$ac_ext | |
4399 | cat >>conftest.$ac_ext <<_ACEOF | |
4400 | /* end confdefs.h. */ | |
80992638 | 4401 | #include <stdlib.h> |
ad6254c5 AK |
4402 | |
4403 | _ACEOF | |
80992638 | 4404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4405 | $EGREP "free" >/dev/null 2>&1; then |
4406 | : | |
795ca3e5 | 4407 | else |
ad6254c5 | 4408 | ac_cv_header_stdc=no |
795ca3e5 | 4409 | fi |
80992638 | 4410 | rm -f conftest* |
8106cdd5 | 4411 | |
795ca3e5 AK |
4412 | fi |
4413 | ||
ad6254c5 AK |
4414 | if test $ac_cv_header_stdc = yes; then |
4415 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4416 | if test "$cross_compiling" = yes; then | |
4417 | : | |
795ca3e5 | 4418 | else |
ad6254c5 | 4419 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4420 | /* confdefs.h. */ |
4421 | _ACEOF | |
4422 | cat confdefs.h >>conftest.$ac_ext | |
4423 | cat >>conftest.$ac_ext <<_ACEOF | |
4424 | /* end confdefs.h. */ | |
4425 | #include <ctype.h> | |
7a197a62 | 4426 | #include <stdlib.h> |
ad6254c5 AK |
4427 | #if ((' ' & 0x0FF) == 0x020) |
4428 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4429 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4430 | #else | |
4431 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4432 | (('a' <= (c) && (c) <= 'i') \ |
4433 | || ('j' <= (c) && (c) <= 'r') \ | |
4434 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4435 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4436 | #endif |
ad6254c5 AK |
4437 | |
4438 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4439 | int | |
4440 | main () | |
4441 | { | |
4442 | int i; | |
4443 | for (i = 0; i < 256; i++) | |
4444 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4445 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4446 | return 2; |
4447 | return 0; | |
ad6254c5 AK |
4448 | } |
4449 | _ACEOF | |
4450 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4451 | if { (ac_try="$ac_link" |
4452 | case "(($ac_try" in | |
4453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4454 | *) ac_try_echo=$ac_try;; | |
4455 | esac | |
ec6a6fbe AK |
4456 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4457 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4458 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4459 | ac_status=$? |
ec6a6fbe | 4460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4461 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4462 | { (case "(($ac_try" in |
4463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4464 | *) ac_try_echo=$ac_try;; | |
4465 | esac | |
ec6a6fbe AK |
4466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4467 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4468 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4469 | ac_status=$? |
ec6a6fbe | 4470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4471 | (exit $ac_status); }; }; then |
4472 | : | |
795ca3e5 | 4473 | else |
ec6a6fbe AK |
4474 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4475 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4476 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4477 | |
ad6254c5 AK |
4478 | ( exit $ac_status ) |
4479 | ac_cv_header_stdc=no | |
80992638 | 4480 | fi |
ec6a6fbe | 4481 | rm -rf conftest.dSYM |
7a197a62 | 4482 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4483 | fi |
7a197a62 AK |
4484 | |
4485 | ||
ad6254c5 AK |
4486 | fi |
4487 | fi | |
ec6a6fbe AK |
4488 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4489 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4490 | if test $ac_cv_header_stdc = yes; then |
4491 | ||
4492 | cat >>confdefs.h <<\_ACEOF | |
4493 | #define STDC_HEADERS 1 | |
4494 | _ACEOF | |
795ca3e5 AK |
4495 | |
4496 | fi | |
4497 | ||
ec6a6fbe AK |
4498 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4499 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4500 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4501 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4502 | else |
ad6254c5 | 4503 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4504 | /* confdefs.h. */ |
4505 | _ACEOF | |
4506 | cat confdefs.h >>conftest.$ac_ext | |
4507 | cat >>conftest.$ac_ext <<_ACEOF | |
4508 | /* end confdefs.h. */ | |
80992638 | 4509 | #include <sys/types.h> |
ad6254c5 AK |
4510 | #include <sys/wait.h> |
4511 | #ifndef WEXITSTATUS | |
7a197a62 | 4512 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4513 | #endif |
4514 | #ifndef WIFEXITED | |
4515 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4516 | #endif | |
4517 | ||
4518 | int | |
4519 | main () | |
4520 | { | |
4521 | int s; | |
4522 | wait (&s); | |
4523 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4524 | ; | |
4525 | return 0; | |
4526 | } | |
4527 | _ACEOF | |
4528 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4529 | if { (ac_try="$ac_compile" |
4530 | case "(($ac_try" in | |
4531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4532 | *) ac_try_echo=$ac_try;; | |
4533 | esac | |
ec6a6fbe AK |
4534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4535 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4536 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4537 | ac_status=$? |
8a2fc586 AK |
4538 | grep -v '^ *+' conftest.er1 >conftest.err |
4539 | rm -f conftest.er1 | |
4540 | cat conftest.err >&5 | |
ec6a6fbe | 4541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4542 | (exit $ac_status); } && { |
4543 | test -z "$ac_c_werror_flag" || | |
4544 | test ! -s conftest.err | |
4545 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4546 | ac_cv_header_sys_wait_h=yes |
4547 | else | |
ec6a6fbe | 4548 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4549 | sed 's/^/| /' conftest.$ac_ext >&5 |
4550 | ||
7a197a62 | 4551 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4552 | fi |
7a197a62 AK |
4553 | |
4554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4555 | fi |
ec6a6fbe AK |
4556 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4557 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4558 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4559 | |
ad6254c5 AK |
4560 | cat >>confdefs.h <<\_ACEOF |
4561 | #define HAVE_SYS_WAIT_H 1 | |
4562 | _ACEOF | |
795ca3e5 AK |
4563 | |
4564 | fi | |
4565 | ||
ec6a6fbe AK |
4566 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4567 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4568 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4569 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4570 | else |
ad6254c5 | 4571 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4572 | /* confdefs.h. */ |
4573 | _ACEOF | |
4574 | cat confdefs.h >>conftest.$ac_ext | |
4575 | cat >>conftest.$ac_ext <<_ACEOF | |
4576 | /* end confdefs.h. */ | |
795ca3e5 AK |
4577 | #include <sys/types.h> |
4578 | #include <sys/time.h> | |
4579 | #include <time.h> | |
ad6254c5 AK |
4580 | |
4581 | int | |
4582 | main () | |
4583 | { | |
4584 | if ((struct tm *) 0) | |
4585 | return 0; | |
4586 | ; | |
4587 | return 0; | |
4588 | } | |
4589 | _ACEOF | |
4590 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4591 | if { (ac_try="$ac_compile" |
4592 | case "(($ac_try" in | |
4593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4594 | *) ac_try_echo=$ac_try;; | |
4595 | esac | |
ec6a6fbe AK |
4596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4597 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4598 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4599 | ac_status=$? |
8a2fc586 AK |
4600 | grep -v '^ *+' conftest.er1 >conftest.err |
4601 | rm -f conftest.er1 | |
4602 | cat conftest.err >&5 | |
ec6a6fbe | 4603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4604 | (exit $ac_status); } && { |
4605 | test -z "$ac_c_werror_flag" || | |
4606 | test ! -s conftest.err | |
4607 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4608 | ac_cv_header_time=yes |
4609 | else | |
ec6a6fbe | 4610 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4611 | sed 's/^/| /' conftest.$ac_ext >&5 |
4612 | ||
7a197a62 | 4613 | ac_cv_header_time=no |
795ca3e5 | 4614 | fi |
7a197a62 AK |
4615 | |
4616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4617 | fi |
ec6a6fbe AK |
4618 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4619 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4620 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4621 | |
4622 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4623 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4624 | _ACEOF |
b896caa1 | 4625 | |
8106cdd5 | 4626 | fi |
b896caa1 | 4627 | |
b896caa1 | 4628 | |
d0191583 JM |
4629 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4640 | inttypes.h stdint.h unistd.h | |
4641 | do | |
ec6a6fbe AK |
4642 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4643 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4644 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4646 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4647 | else |
4648 | cat >conftest.$ac_ext <<_ACEOF | |
4649 | /* confdefs.h. */ | |
4650 | _ACEOF | |
4651 | cat confdefs.h >>conftest.$ac_ext | |
4652 | cat >>conftest.$ac_ext <<_ACEOF | |
4653 | /* end confdefs.h. */ | |
4654 | $ac_includes_default | |
4655 | ||
4656 | #include <$ac_header> | |
4657 | _ACEOF | |
4658 | rm -f conftest.$ac_objext | |
4659 | if { (ac_try="$ac_compile" | |
4660 | case "(($ac_try" in | |
4661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4662 | *) ac_try_echo=$ac_try;; | |
4663 | esac | |
ec6a6fbe AK |
4664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4665 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4666 | (eval "$ac_compile") 2>conftest.er1 |
4667 | ac_status=$? | |
4668 | grep -v '^ *+' conftest.er1 >conftest.err | |
4669 | rm -f conftest.er1 | |
4670 | cat conftest.err >&5 | |
ec6a6fbe | 4671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4672 | (exit $ac_status); } && { |
4673 | test -z "$ac_c_werror_flag" || | |
4674 | test ! -s conftest.err | |
4675 | } && test -s conftest.$ac_objext; then | |
4676 | eval "$as_ac_Header=yes" | |
4677 | else | |
ec6a6fbe | 4678 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4679 | sed 's/^/| /' conftest.$ac_ext >&5 |
4680 | ||
4681 | eval "$as_ac_Header=no" | |
4682 | fi | |
4683 | ||
4684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4685 | fi | |
ec6a6fbe AK |
4686 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4687 | $as_echo "$as_val"'` | |
4688 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4689 | $as_echo "$ac_res" >&6; } | |
4690 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4691 | $as_echo "$as_val"'` | |
4692 | if test "x$as_val" = x""yes; then | |
d0191583 | 4693 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4694 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4695 | _ACEOF |
4696 | ||
4697 | fi | |
4698 | ||
4699 | done | |
4700 | ||
b896caa1 | 4701 | |
b896caa1 AK |
4702 | |
4703 | ||
795ca3e5 | 4704 | |
8106cdd5 | 4705 | |
80992638 | 4706 | |
795ca3e5 | 4707 | |
a38df97f | 4708 | |
80992638 | 4709 | |
d0191583 JM |
4710 | |
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4716 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4717 | do |
ec6a6fbe | 4718 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4719 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4720 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4721 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4723 | $as_echo_n "(cached) " >&6 |
d0191583 | 4724 | fi |
ec6a6fbe AK |
4725 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4726 | $as_echo "$as_val"'` | |
4727 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4728 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4729 | else |
d0191583 | 4730 | # Is the header compilable? |
ec6a6fbe AK |
4731 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4732 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4733 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4734 | /* confdefs.h. */ |
4735 | _ACEOF | |
4736 | cat confdefs.h >>conftest.$ac_ext | |
4737 | cat >>conftest.$ac_ext <<_ACEOF | |
4738 | /* end confdefs.h. */ | |
4739 | $ac_includes_default | |
ad6254c5 AK |
4740 | #include <$ac_header> |
4741 | _ACEOF | |
4742 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4743 | if { (ac_try="$ac_compile" |
4744 | case "(($ac_try" in | |
4745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4746 | *) ac_try_echo=$ac_try;; | |
4747 | esac | |
ec6a6fbe AK |
4748 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4749 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4750 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4751 | ac_status=$? |
8a2fc586 AK |
4752 | grep -v '^ *+' conftest.er1 >conftest.err |
4753 | rm -f conftest.er1 | |
4754 | cat conftest.err >&5 | |
ec6a6fbe | 4755 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4756 | (exit $ac_status); } && { |
4757 | test -z "$ac_c_werror_flag" || | |
4758 | test ! -s conftest.err | |
4759 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4760 | ac_header_compiler=yes |
ad6254c5 | 4761 | else |
ec6a6fbe | 4762 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4763 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4764 | |
d0191583 | 4765 | ac_header_compiler=no |
ad6254c5 | 4766 | fi |
7a197a62 AK |
4767 | |
4768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4769 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4770 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4771 | |
4772 | # Is the header present? | |
ec6a6fbe AK |
4773 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4774 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4775 | cat >conftest.$ac_ext <<_ACEOF |
4776 | /* confdefs.h. */ | |
4777 | _ACEOF | |
4778 | cat confdefs.h >>conftest.$ac_ext | |
4779 | cat >>conftest.$ac_ext <<_ACEOF | |
4780 | /* end confdefs.h. */ | |
4781 | #include <$ac_header> | |
4782 | _ACEOF | |
4783 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4784 | case "(($ac_try" in | |
4785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4786 | *) ac_try_echo=$ac_try;; | |
4787 | esac | |
ec6a6fbe AK |
4788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4789 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4790 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4791 | ac_status=$? | |
4792 | grep -v '^ *+' conftest.er1 >conftest.err | |
4793 | rm -f conftest.er1 | |
4794 | cat conftest.err >&5 | |
ec6a6fbe | 4795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4796 | (exit $ac_status); } >/dev/null && { |
4797 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4798 | test ! -s conftest.err | |
4799 | }; then | |
4800 | ac_header_preproc=yes | |
4801 | else | |
ec6a6fbe | 4802 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4803 | sed 's/^/| /' conftest.$ac_ext >&5 |
4804 | ||
4805 | ac_header_preproc=no | |
4806 | fi | |
4807 | ||
4808 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4809 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4810 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4811 | |
4812 | # So? What about this header? | |
4813 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4814 | yes:no: ) | |
ec6a6fbe AK |
4815 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4816 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4817 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4818 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4819 | ac_header_preproc=yes |
4820 | ;; | |
4821 | no:yes:* ) | |
ec6a6fbe AK |
4822 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4823 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4824 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4825 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4826 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4827 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4828 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4829 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4831 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4833 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4834 | |
4835 | ;; | |
4836 | esac | |
ec6a6fbe AK |
4837 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4838 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4839 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4840 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4841 | else |
4842 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4843 | fi |
ec6a6fbe AK |
4844 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4845 | $as_echo "$as_val"'` | |
4846 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4847 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4848 | |
4849 | fi | |
ec6a6fbe AK |
4850 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4851 | $as_echo "$as_val"'` | |
4852 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4853 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4854 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4855 | _ACEOF |
a38df97f | 4856 | |
d0191583 | 4857 | else |
ec6a6fbe AK |
4858 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4859 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4860 | { (exit 1); exit 1; }; } |
80992638 AK |
4861 | fi |
4862 | ||
ad6254c5 AK |
4863 | done |
4864 | ||
7d1552c9 | 4865 | |
d0191583 JM |
4866 | case "$host_os" in |
4867 | linux*) | |
7d1552c9 | 4868 | |
80992638 | 4869 | |
5a52dca9 | 4870 | |
d0191583 | 4871 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4872 | do |
ec6a6fbe | 4873 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4875 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4876 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4878 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4879 | fi |
ec6a6fbe AK |
4880 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4881 | $as_echo "$as_val"'` | |
4882 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4883 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4884 | else |
4885 | # Is the header compilable? | |
ec6a6fbe AK |
4886 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4887 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4888 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4889 | /* confdefs.h. */ |
4890 | _ACEOF | |
4891 | cat confdefs.h >>conftest.$ac_ext | |
4892 | cat >>conftest.$ac_ext <<_ACEOF | |
4893 | /* end confdefs.h. */ | |
4894 | $ac_includes_default | |
4895 | #include <$ac_header> | |
4896 | _ACEOF | |
4897 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4898 | if { (ac_try="$ac_compile" |
4899 | case "(($ac_try" in | |
4900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4901 | *) ac_try_echo=$ac_try;; | |
4902 | esac | |
ec6a6fbe AK |
4903 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4904 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4905 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4906 | ac_status=$? |
8a2fc586 AK |
4907 | grep -v '^ *+' conftest.er1 >conftest.err |
4908 | rm -f conftest.er1 | |
4909 | cat conftest.err >&5 | |
ec6a6fbe | 4910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4911 | (exit $ac_status); } && { |
4912 | test -z "$ac_c_werror_flag" || | |
4913 | test ! -s conftest.err | |
4914 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4915 | ac_header_compiler=yes |
4916 | else | |
ec6a6fbe | 4917 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4918 | sed 's/^/| /' conftest.$ac_ext >&5 |
4919 | ||
4920 | ac_header_compiler=no | |
4921 | fi | |
4922 | ||
4923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4924 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4925 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4926 | |
4927 | # Is the header present? | |
ec6a6fbe AK |
4928 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4929 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4930 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4931 | /* confdefs.h. */ |
4932 | _ACEOF | |
4933 | cat confdefs.h >>conftest.$ac_ext | |
4934 | cat >>conftest.$ac_ext <<_ACEOF | |
4935 | /* end confdefs.h. */ | |
4936 | #include <$ac_header> | |
4937 | _ACEOF | |
7a197a62 AK |
4938 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4939 | case "(($ac_try" in | |
4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4941 | *) ac_try_echo=$ac_try;; | |
4942 | esac | |
ec6a6fbe AK |
4943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4944 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4945 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4946 | ac_status=$? |
4947 | grep -v '^ *+' conftest.er1 >conftest.err | |
4948 | rm -f conftest.er1 | |
4949 | cat conftest.err >&5 | |
ec6a6fbe | 4950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4951 | (exit $ac_status); } >/dev/null && { |
4952 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4953 | test ! -s conftest.err | |
4954 | }; then | |
ad6254c5 AK |
4955 | ac_header_preproc=yes |
4956 | else | |
ec6a6fbe | 4957 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4958 | sed 's/^/| /' conftest.$ac_ext >&5 |
4959 | ||
4960 | ac_header_preproc=no | |
4961 | fi | |
7a197a62 | 4962 | |
ad6254c5 | 4963 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4964 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4965 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4966 | |
4967 | # So? What about this header? | |
8a2fc586 AK |
4968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4969 | yes:no: ) | |
ec6a6fbe AK |
4970 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4971 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4972 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4973 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4974 | ac_header_preproc=yes |
ad6254c5 | 4975 | ;; |
8a2fc586 | 4976 | no:yes:* ) |
ec6a6fbe AK |
4977 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4978 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4979 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4980 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4981 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4982 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4983 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4984 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4986 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4988 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4989 | |
ad6254c5 AK |
4990 | ;; |
4991 | esac | |
ec6a6fbe AK |
4992 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4993 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4994 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4995 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4996 | else |
8a2fc586 | 4997 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4998 | fi |
ec6a6fbe AK |
4999 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5000 | $as_echo "$as_val"'` | |
5001 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5002 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5003 | |
5004 | fi | |
ec6a6fbe AK |
5005 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5006 | $as_echo "$as_val"'` | |
5007 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5008 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5009 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5010 | _ACEOF |
b896caa1 | 5011 | |
d8ac0fbc | 5012 | else |
ec6a6fbe AK |
5013 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5014 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5015 | { (exit 1); exit 1; }; } |
80992638 AK |
5016 | fi |
5017 | ||
ad6254c5 | 5018 | done |
d0191583 JM |
5019 | ;; |
5020 | darwin*) | |
d8ac0fbc | 5021 | |
d8ac0fbc | 5022 | |
d0191583 | 5023 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5024 | do |
ec6a6fbe | 5025 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5027 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5028 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5030 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5031 | fi |
ec6a6fbe AK |
5032 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5033 | $as_echo "$as_val"'` | |
5034 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5035 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5036 | else |
5037 | # Is the header compilable? | |
ec6a6fbe AK |
5038 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5039 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5040 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5041 | /* confdefs.h. */ |
5042 | _ACEOF | |
5043 | cat confdefs.h >>conftest.$ac_ext | |
5044 | cat >>conftest.$ac_ext <<_ACEOF | |
5045 | /* end confdefs.h. */ | |
5046 | $ac_includes_default | |
5047 | #include <$ac_header> | |
5048 | _ACEOF | |
5049 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5050 | if { (ac_try="$ac_compile" |
5051 | case "(($ac_try" in | |
5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5053 | *) ac_try_echo=$ac_try;; | |
5054 | esac | |
ec6a6fbe AK |
5055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5056 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5057 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5058 | ac_status=$? |
8a2fc586 AK |
5059 | grep -v '^ *+' conftest.er1 >conftest.err |
5060 | rm -f conftest.er1 | |
5061 | cat conftest.err >&5 | |
ec6a6fbe | 5062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5063 | (exit $ac_status); } && { |
5064 | test -z "$ac_c_werror_flag" || | |
5065 | test ! -s conftest.err | |
5066 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5067 | ac_header_compiler=yes |
5068 | else | |
ec6a6fbe | 5069 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5070 | sed 's/^/| /' conftest.$ac_ext >&5 |
5071 | ||
7a197a62 | 5072 | ac_header_compiler=no |
ad6254c5 | 5073 | fi |
7a197a62 AK |
5074 | |
5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5076 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5077 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5078 | |
5079 | # Is the header present? | |
ec6a6fbe AK |
5080 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5081 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5082 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5083 | /* confdefs.h. */ |
5084 | _ACEOF | |
5085 | cat confdefs.h >>conftest.$ac_ext | |
5086 | cat >>conftest.$ac_ext <<_ACEOF | |
5087 | /* end confdefs.h. */ | |
5088 | #include <$ac_header> | |
5089 | _ACEOF | |
7a197a62 AK |
5090 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5091 | case "(($ac_try" in | |
5092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5093 | *) ac_try_echo=$ac_try;; | |
5094 | esac | |
ec6a6fbe AK |
5095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5096 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5098 | ac_status=$? |
5099 | grep -v '^ *+' conftest.er1 >conftest.err | |
5100 | rm -f conftest.er1 | |
5101 | cat conftest.err >&5 | |
ec6a6fbe | 5102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5103 | (exit $ac_status); } >/dev/null && { |
5104 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5105 | test ! -s conftest.err | |
5106 | }; then | |
ad6254c5 AK |
5107 | ac_header_preproc=yes |
5108 | else | |
ec6a6fbe | 5109 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5110 | sed 's/^/| /' conftest.$ac_ext >&5 |
5111 | ||
5112 | ac_header_preproc=no | |
5113 | fi | |
7a197a62 | 5114 | |
ad6254c5 | 5115 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5116 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5117 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5118 | |
5119 | # So? What about this header? | |
8a2fc586 AK |
5120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5121 | yes:no: ) | |
ec6a6fbe AK |
5122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5123 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5125 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5126 | ac_header_preproc=yes |
ad6254c5 | 5127 | ;; |
8a2fc586 | 5128 | no:yes:* ) |
ec6a6fbe AK |
5129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5130 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5132 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5134 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5136 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5138 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5140 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5141 | |
ad6254c5 AK |
5142 | ;; |
5143 | esac | |
ec6a6fbe AK |
5144 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5145 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5147 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5148 | else |
8a2fc586 | 5149 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5150 | fi |
ec6a6fbe AK |
5151 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5152 | $as_echo "$as_val"'` | |
5153 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5154 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5155 | |
5156 | fi | |
ec6a6fbe AK |
5157 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5158 | $as_echo "$as_val"'` | |
5159 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5160 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5161 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5162 | _ACEOF |
4922197a | 5163 | |
4922197a | 5164 | else |
ec6a6fbe AK |
5165 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5166 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5167 | { (exit 1); exit 1; }; } |
80992638 AK |
5168 | fi |
5169 | ||
ad6254c5 | 5170 | done |
d0191583 JM |
5171 | ;; |
5172 | esac | |
4922197a | 5173 | |
4922197a | 5174 | |
4922197a | 5175 | |
ad6254c5 AK |
5176 | |
5177 | ||
d0191583 JM |
5178 | |
5179 | ||
5180 | ||
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5191 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5192 | sys/types.h unistd.h | |
ad6254c5 | 5193 | do |
ec6a6fbe | 5194 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5196 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5197 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5199 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5200 | fi |
ec6a6fbe AK |
5201 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5202 | $as_echo "$as_val"'` | |
5203 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5204 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5205 | else |
ad6254c5 | 5206 | # Is the header compilable? |
ec6a6fbe AK |
5207 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5208 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5209 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5210 | /* confdefs.h. */ |
5211 | _ACEOF | |
5212 | cat confdefs.h >>conftest.$ac_ext | |
5213 | cat >>conftest.$ac_ext <<_ACEOF | |
5214 | /* end confdefs.h. */ | |
5215 | $ac_includes_default | |
5216 | #include <$ac_header> | |
5217 | _ACEOF | |
5218 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5219 | if { (ac_try="$ac_compile" |
5220 | case "(($ac_try" in | |
5221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5222 | *) ac_try_echo=$ac_try;; | |
5223 | esac | |
ec6a6fbe AK |
5224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5225 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5226 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5227 | ac_status=$? |
8a2fc586 AK |
5228 | grep -v '^ *+' conftest.er1 >conftest.err |
5229 | rm -f conftest.er1 | |
5230 | cat conftest.err >&5 | |
ec6a6fbe | 5231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5232 | (exit $ac_status); } && { |
5233 | test -z "$ac_c_werror_flag" || | |
5234 | test ! -s conftest.err | |
5235 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5236 | ac_header_compiler=yes |
5237 | else | |
ec6a6fbe | 5238 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5239 | sed 's/^/| /' conftest.$ac_ext >&5 |
5240 | ||
7a197a62 | 5241 | ac_header_compiler=no |
ad6254c5 | 5242 | fi |
7a197a62 AK |
5243 | |
5244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5245 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5246 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5247 | |
5248 | # Is the header present? | |
ec6a6fbe AK |
5249 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5250 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5251 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5252 | /* confdefs.h. */ |
5253 | _ACEOF | |
5254 | cat confdefs.h >>conftest.$ac_ext | |
5255 | cat >>conftest.$ac_ext <<_ACEOF | |
5256 | /* end confdefs.h. */ | |
5257 | #include <$ac_header> | |
5258 | _ACEOF | |
7a197a62 AK |
5259 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5260 | case "(($ac_try" in | |
5261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5262 | *) ac_try_echo=$ac_try;; | |
5263 | esac | |
ec6a6fbe AK |
5264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5265 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5266 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5267 | ac_status=$? |
5268 | grep -v '^ *+' conftest.er1 >conftest.err | |
5269 | rm -f conftest.er1 | |
5270 | cat conftest.err >&5 | |
ec6a6fbe | 5271 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5272 | (exit $ac_status); } >/dev/null && { |
5273 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5274 | test ! -s conftest.err | |
5275 | }; then | |
ad6254c5 AK |
5276 | ac_header_preproc=yes |
5277 | else | |
ec6a6fbe | 5278 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5279 | sed 's/^/| /' conftest.$ac_ext >&5 |
5280 | ||
5281 | ac_header_preproc=no | |
5282 | fi | |
7a197a62 | 5283 | |
ad6254c5 | 5284 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5285 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5286 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5287 | |
5288 | # So? What about this header? | |
8a2fc586 AK |
5289 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5290 | yes:no: ) | |
ec6a6fbe AK |
5291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5292 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5293 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5294 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5295 | ac_header_preproc=yes |
ad6254c5 | 5296 | ;; |
8a2fc586 | 5297 | no:yes:* ) |
ec6a6fbe AK |
5298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5299 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5301 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5303 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5305 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5307 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5309 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5310 | |
ad6254c5 AK |
5311 | ;; |
5312 | esac | |
ec6a6fbe AK |
5313 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5314 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5315 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5316 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5317 | else |
8a2fc586 | 5318 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5319 | fi |
ec6a6fbe AK |
5320 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5321 | $as_echo "$as_val"'` | |
5322 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5323 | $as_echo "$ac_res" >&6; } | |
80992638 | 5324 | |
ad6254c5 | 5325 | fi |
ec6a6fbe AK |
5326 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5327 | $as_echo "$as_val"'` | |
5328 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5329 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5330 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5331 | _ACEOF |
795ca3e5 | 5332 | |
795ca3e5 | 5333 | else |
ec6a6fbe AK |
5334 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5335 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5336 | { (exit 1); exit 1; }; } |
80992638 AK |
5337 | fi |
5338 | ||
ad6254c5 | 5339 | done |
ad6254c5 | 5340 | |
795ca3e5 | 5341 | |
d0191583 JM |
5342 | |
5343 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5344 | do |
ec6a6fbe | 5345 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5346 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5347 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5348 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5349 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5350 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5351 | fi |
ec6a6fbe AK |
5352 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5353 | $as_echo "$as_val"'` | |
5354 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5355 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5356 | else |
5357 | # Is the header compilable? | |
ec6a6fbe AK |
5358 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5359 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5360 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5361 | /* confdefs.h. */ |
5362 | _ACEOF | |
5363 | cat confdefs.h >>conftest.$ac_ext | |
5364 | cat >>conftest.$ac_ext <<_ACEOF | |
5365 | /* end confdefs.h. */ | |
5366 | $ac_includes_default | |
5367 | #include <$ac_header> | |
5368 | _ACEOF | |
5369 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5370 | if { (ac_try="$ac_compile" |
5371 | case "(($ac_try" in | |
5372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5373 | *) ac_try_echo=$ac_try;; | |
5374 | esac | |
ec6a6fbe AK |
5375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5376 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5377 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5378 | ac_status=$? |
8a2fc586 AK |
5379 | grep -v '^ *+' conftest.er1 >conftest.err |
5380 | rm -f conftest.er1 | |
5381 | cat conftest.err >&5 | |
ec6a6fbe | 5382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5383 | (exit $ac_status); } && { |
5384 | test -z "$ac_c_werror_flag" || | |
5385 | test ! -s conftest.err | |
5386 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5387 | ac_header_compiler=yes |
5388 | else | |
ec6a6fbe | 5389 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
5391 | ||
7a197a62 | 5392 | ac_header_compiler=no |
ad6254c5 | 5393 | fi |
7a197a62 AK |
5394 | |
5395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5396 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5397 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5398 | |
5399 | # Is the header present? | |
ec6a6fbe AK |
5400 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5401 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5402 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5403 | /* confdefs.h. */ |
5404 | _ACEOF | |
5405 | cat confdefs.h >>conftest.$ac_ext | |
5406 | cat >>conftest.$ac_ext <<_ACEOF | |
5407 | /* end confdefs.h. */ | |
5408 | #include <$ac_header> | |
5409 | _ACEOF | |
7a197a62 AK |
5410 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5411 | case "(($ac_try" in | |
5412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5413 | *) ac_try_echo=$ac_try;; | |
5414 | esac | |
ec6a6fbe AK |
5415 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5416 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5417 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5418 | ac_status=$? |
5419 | grep -v '^ *+' conftest.er1 >conftest.err | |
5420 | rm -f conftest.er1 | |
5421 | cat conftest.err >&5 | |
ec6a6fbe | 5422 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5423 | (exit $ac_status); } >/dev/null && { |
5424 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5425 | test ! -s conftest.err | |
5426 | }; then | |
ad6254c5 AK |
5427 | ac_header_preproc=yes |
5428 | else | |
ec6a6fbe | 5429 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5430 | sed 's/^/| /' conftest.$ac_ext >&5 |
5431 | ||
5432 | ac_header_preproc=no | |
5433 | fi | |
7a197a62 | 5434 | |
ad6254c5 | 5435 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5436 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5437 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5438 | |
5439 | # So? What about this header? | |
8a2fc586 AK |
5440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5441 | yes:no: ) | |
ec6a6fbe AK |
5442 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5443 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5445 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5446 | ac_header_preproc=yes |
ad6254c5 | 5447 | ;; |
8a2fc586 | 5448 | no:yes:* ) |
ec6a6fbe AK |
5449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5450 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5452 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5454 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5456 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5458 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5460 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5461 | |
ad6254c5 AK |
5462 | ;; |
5463 | esac | |
ec6a6fbe AK |
5464 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5465 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5466 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5467 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5468 | else |
8a2fc586 | 5469 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5470 | fi |
ec6a6fbe AK |
5471 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5472 | $as_echo "$as_val"'` | |
5473 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5474 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5475 | |
ad6254c5 | 5476 | fi |
ec6a6fbe AK |
5477 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5478 | $as_echo "$as_val"'` | |
5479 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5480 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5481 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5482 | _ACEOF |
5483 | ||
80992638 AK |
5484 | fi |
5485 | ||
ad6254c5 | 5486 | done |
d0191583 | 5487 | |
d3c8211f | 5488 | |
80992638 | 5489 | ################################################################################ |
ec6a6fbe AK |
5490 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5491 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5492 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5493 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5494 | else |
ad6254c5 | 5495 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5496 | /* confdefs.h. */ |
5497 | _ACEOF | |
5498 | cat confdefs.h >>conftest.$ac_ext | |
5499 | cat >>conftest.$ac_ext <<_ACEOF | |
5500 | /* end confdefs.h. */ | |
5501 | ||
5502 | int | |
5503 | main () | |
5504 | { | |
5505 | /* FIXME: Include the comments suggested by Paul. */ | |
5506 | #ifndef __cplusplus | |
5507 | /* Ultrix mips cc rejects this. */ | |
5508 | typedef int charset[2]; | |
25fbec5b | 5509 | const charset cs; |
ad6254c5 | 5510 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5511 | char const *const *pcpcc; |
5512 | char **ppc; | |
ad6254c5 AK |
5513 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5514 | struct point {int x, y;}; | |
5515 | static struct point const zero = {0,0}; | |
5516 | /* AIX XL C 1.02.0.0 rejects this. | |
5517 | It does not let you subtract one const X* pointer from another in | |
5518 | an arm of an if-expression whose if-part is not a constant | |
5519 | expression */ | |
5520 | const char *g = "string"; | |
25fbec5b | 5521 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5522 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5523 | ++pcpcc; |
5524 | ppc = (char**) pcpcc; | |
5525 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5526 | { /* SCO 3.2v4 cc rejects this. */ |
5527 | char *t; | |
5528 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5529 | ||
5530 | *t++ = 0; | |
7a197a62 | 5531 | if (s) return 0; |
ad6254c5 AK |
5532 | } |
5533 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5534 | int x[] = {25, 17}; | |
5535 | const int *foo = &x[0]; | |
5536 | ++foo; | |
5537 | } | |
5538 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5539 | typedef const int *iptr; | |
5540 | iptr p = 0; | |
5541 | ++p; | |
5542 | } | |
5543 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5544 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5545 | struct s { int j; const int *ap[3]; }; | |
5546 | struct s *b; b->j = 5; | |
5547 | } | |
5548 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5549 | const int foo = 10; | |
7a197a62 | 5550 | if (!foo) return 0; |
ad6254c5 | 5551 | } |
25fbec5b | 5552 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5553 | #endif |
5554 | ||
5555 | ; | |
5556 | return 0; | |
5557 | } | |
5558 | _ACEOF | |
5559 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5560 | if { (ac_try="$ac_compile" |
5561 | case "(($ac_try" in | |
5562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5563 | *) ac_try_echo=$ac_try;; | |
5564 | esac | |
ec6a6fbe AK |
5565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5566 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5567 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5568 | ac_status=$? |
8a2fc586 AK |
5569 | grep -v '^ *+' conftest.er1 >conftest.err |
5570 | rm -f conftest.er1 | |
5571 | cat conftest.err >&5 | |
ec6a6fbe | 5572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5573 | (exit $ac_status); } && { |
5574 | test -z "$ac_c_werror_flag" || | |
5575 | test ! -s conftest.err | |
5576 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5577 | ac_cv_c_const=yes |
5578 | else | |
ec6a6fbe | 5579 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5580 | sed 's/^/| /' conftest.$ac_ext >&5 |
5581 | ||
7a197a62 | 5582 | ac_cv_c_const=no |
ad6254c5 | 5583 | fi |
7a197a62 AK |
5584 | |
5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5586 | fi |
ec6a6fbe AK |
5587 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5588 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5589 | if test $ac_cv_c_const = no; then |
80992638 | 5590 | |
ad6254c5 | 5591 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5592 | #define const /**/ |
ad6254c5 | 5593 | _ACEOF |
80992638 | 5594 | |
d3c8211f | 5595 | fi |
d3c8211f | 5596 | |
ec6a6fbe AK |
5597 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5598 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5599 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5600 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5601 | else |
ad6254c5 AK |
5602 | ac_cv_c_inline=no |
5603 | for ac_kw in inline __inline__ __inline; do | |
5604 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5605 | /* confdefs.h. */ |
5606 | _ACEOF | |
5607 | cat confdefs.h >>conftest.$ac_ext | |
5608 | cat >>conftest.$ac_ext <<_ACEOF | |
5609 | /* end confdefs.h. */ | |
5610 | #ifndef __cplusplus | |
5611 | typedef int foo_t; | |
5612 | static $ac_kw foo_t static_foo () {return 0; } | |
5613 | $ac_kw foo_t foo () {return 0; } | |
5614 | #endif | |
80992638 | 5615 | |
ad6254c5 AK |
5616 | _ACEOF |
5617 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5618 | if { (ac_try="$ac_compile" |
5619 | case "(($ac_try" in | |
5620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5621 | *) ac_try_echo=$ac_try;; | |
5622 | esac | |
ec6a6fbe AK |
5623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5624 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5625 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5626 | ac_status=$? |
8a2fc586 AK |
5627 | grep -v '^ *+' conftest.er1 >conftest.err |
5628 | rm -f conftest.er1 | |
5629 | cat conftest.err >&5 | |
ec6a6fbe | 5630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5631 | (exit $ac_status); } && { |
5632 | test -z "$ac_c_werror_flag" || | |
5633 | test ! -s conftest.err | |
5634 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5635 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5636 | else |
ec6a6fbe | 5637 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5638 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5639 | |
7a197a62 | 5640 | |
8ce0cbda | 5641 | fi |
7a197a62 AK |
5642 | |
5643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5644 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5645 | done |
8ce0cbda | 5646 | |
8ce0cbda | 5647 | fi |
ec6a6fbe AK |
5648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5649 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5650 | |
5651 | ||
ad6254c5 AK |
5652 | case $ac_cv_c_inline in |
5653 | inline | yes) ;; | |
8a2fc586 AK |
5654 | *) |
5655 | case $ac_cv_c_inline in | |
5656 | no) ac_val=;; | |
5657 | *) ac_val=$ac_cv_c_inline;; | |
5658 | esac | |
5659 | cat >>confdefs.h <<_ACEOF | |
5660 | #ifndef __cplusplus | |
5661 | #define inline $ac_val | |
5662 | #endif | |
c1c065a3 | 5663 | _ACEOF |
d0191583 JM |
5664 | ;; |
5665 | esac | |
5666 | ||
ec6a6fbe AK |
5667 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5668 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5669 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5670 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5671 | else |
5672 | cat >conftest.$ac_ext <<_ACEOF | |
5673 | /* confdefs.h. */ | |
5674 | _ACEOF | |
5675 | cat confdefs.h >>conftest.$ac_ext | |
5676 | cat >>conftest.$ac_ext <<_ACEOF | |
5677 | /* end confdefs.h. */ | |
5678 | $ac_includes_default | |
5679 | int | |
5680 | main () | |
5681 | { | |
5682 | static struct stat ac_aggr; | |
5683 | if (ac_aggr.st_rdev) | |
5684 | return 0; | |
5685 | ; | |
5686 | return 0; | |
5687 | } | |
5688 | _ACEOF | |
5689 | rm -f conftest.$ac_objext | |
5690 | if { (ac_try="$ac_compile" | |
5691 | case "(($ac_try" in | |
5692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5693 | *) ac_try_echo=$ac_try;; | |
5694 | esac | |
ec6a6fbe AK |
5695 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5696 | $as_echo "$ac_try_echo") >&5 | |
5697 | (eval "$ac_compile") 2>conftest.er1 | |
5698 | ac_status=$? | |
5699 | grep -v '^ *+' conftest.er1 >conftest.err | |
5700 | rm -f conftest.er1 | |
5701 | cat conftest.err >&5 | |
5702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5703 | (exit $ac_status); } && { | |
5704 | test -z "$ac_c_werror_flag" || | |
5705 | test ! -s conftest.err | |
5706 | } && test -s conftest.$ac_objext; then | |
5707 | ac_cv_member_struct_stat_st_rdev=yes | |
5708 | else | |
5709 | $as_echo "$as_me: failed program was:" >&5 | |
5710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5711 | ||
5712 | cat >conftest.$ac_ext <<_ACEOF | |
5713 | /* confdefs.h. */ | |
5714 | _ACEOF | |
5715 | cat confdefs.h >>conftest.$ac_ext | |
5716 | cat >>conftest.$ac_ext <<_ACEOF | |
5717 | /* end confdefs.h. */ | |
5718 | $ac_includes_default | |
5719 | int | |
5720 | main () | |
5721 | { | |
5722 | static struct stat ac_aggr; | |
5723 | if (sizeof ac_aggr.st_rdev) | |
5724 | return 0; | |
5725 | ; | |
5726 | return 0; | |
5727 | } | |
5728 | _ACEOF | |
5729 | rm -f conftest.$ac_objext | |
5730 | if { (ac_try="$ac_compile" | |
5731 | case "(($ac_try" in | |
5732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5733 | *) ac_try_echo=$ac_try;; | |
5734 | esac | |
5735 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5736 | $as_echo "$ac_try_echo") >&5 | |
5737 | (eval "$ac_compile") 2>conftest.er1 | |
5738 | ac_status=$? | |
5739 | grep -v '^ *+' conftest.er1 >conftest.err | |
5740 | rm -f conftest.er1 | |
5741 | cat conftest.err >&5 | |
5742 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5743 | (exit $ac_status); } && { | |
5744 | test -z "$ac_c_werror_flag" || | |
5745 | test ! -s conftest.err | |
5746 | } && test -s conftest.$ac_objext; then | |
5747 | ac_cv_member_struct_stat_st_rdev=yes | |
5748 | else | |
5749 | $as_echo "$as_me: failed program was:" >&5 | |
5750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5751 | ||
5752 | ac_cv_member_struct_stat_st_rdev=no | |
5753 | fi | |
5754 | ||
5755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5756 | fi | |
5757 | ||
5758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5759 | fi | |
5760 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5761 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5762 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5763 | ||
5764 | cat >>confdefs.h <<_ACEOF | |
5765 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5766 | _ACEOF | |
5767 | ||
5768 | ||
5769 | fi | |
5770 | ||
5771 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5772 | $as_echo_n "checking for off_t... " >&6; } | |
5773 | if test "${ac_cv_type_off_t+set}" = set; then | |
5774 | $as_echo_n "(cached) " >&6 | |
5775 | else | |
5776 | ac_cv_type_off_t=no | |
5777 | cat >conftest.$ac_ext <<_ACEOF | |
5778 | /* confdefs.h. */ | |
5779 | _ACEOF | |
5780 | cat confdefs.h >>conftest.$ac_ext | |
5781 | cat >>conftest.$ac_ext <<_ACEOF | |
5782 | /* end confdefs.h. */ | |
5783 | $ac_includes_default | |
5784 | int | |
5785 | main () | |
5786 | { | |
5787 | if (sizeof (off_t)) | |
5788 | return 0; | |
5789 | ; | |
5790 | return 0; | |
5791 | } | |
5792 | _ACEOF | |
5793 | rm -f conftest.$ac_objext | |
5794 | if { (ac_try="$ac_compile" | |
5795 | case "(($ac_try" in | |
5796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5797 | *) ac_try_echo=$ac_try;; | |
5798 | esac | |
5799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5800 | $as_echo "$ac_try_echo") >&5 | |
5801 | (eval "$ac_compile") 2>conftest.er1 | |
5802 | ac_status=$? | |
5803 | grep -v '^ *+' conftest.er1 >conftest.err | |
5804 | rm -f conftest.er1 | |
5805 | cat conftest.err >&5 | |
5806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5807 | (exit $ac_status); } && { | |
5808 | test -z "$ac_c_werror_flag" || | |
5809 | test ! -s conftest.err | |
5810 | } && test -s conftest.$ac_objext; then | |
5811 | cat >conftest.$ac_ext <<_ACEOF | |
5812 | /* confdefs.h. */ | |
5813 | _ACEOF | |
5814 | cat confdefs.h >>conftest.$ac_ext | |
5815 | cat >>conftest.$ac_ext <<_ACEOF | |
5816 | /* end confdefs.h. */ | |
5817 | $ac_includes_default | |
5818 | int | |
5819 | main () | |
5820 | { | |
5821 | if (sizeof ((off_t))) | |
5822 | return 0; | |
5823 | ; | |
5824 | return 0; | |
5825 | } | |
5826 | _ACEOF | |
5827 | rm -f conftest.$ac_objext | |
5828 | if { (ac_try="$ac_compile" | |
5829 | case "(($ac_try" in | |
5830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5831 | *) ac_try_echo=$ac_try;; | |
5832 | esac | |
5833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5834 | $as_echo "$ac_try_echo") >&5 | |
5835 | (eval "$ac_compile") 2>conftest.er1 | |
5836 | ac_status=$? | |
5837 | grep -v '^ *+' conftest.er1 >conftest.err | |
5838 | rm -f conftest.er1 | |
5839 | cat conftest.err >&5 | |
5840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5841 | (exit $ac_status); } && { | |
5842 | test -z "$ac_c_werror_flag" || | |
5843 | test ! -s conftest.err | |
5844 | } && test -s conftest.$ac_objext; then | |
5845 | : | |
5846 | else | |
5847 | $as_echo "$as_me: failed program was:" >&5 | |
5848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5849 | ||
5850 | ac_cv_type_off_t=yes | |
5851 | fi | |
5852 | ||
5853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5854 | else | |
5855 | $as_echo "$as_me: failed program was:" >&5 | |
5856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5857 | ||
5858 | ||
5859 | fi | |
5860 | ||
5861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5862 | fi | |
5863 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5864 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5865 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5866 | : | |
5867 | else | |
5868 | ||
5869 | cat >>confdefs.h <<_ACEOF | |
5870 | #define off_t long int | |
5871 | _ACEOF | |
5872 | ||
5873 | fi | |
5874 | ||
5875 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5876 | $as_echo_n "checking for pid_t... " >&6; } | |
5877 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5878 | $as_echo_n "(cached) " >&6 | |
5879 | else | |
5880 | ac_cv_type_pid_t=no | |
5881 | cat >conftest.$ac_ext <<_ACEOF | |
5882 | /* confdefs.h. */ | |
5883 | _ACEOF | |
5884 | cat confdefs.h >>conftest.$ac_ext | |
5885 | cat >>conftest.$ac_ext <<_ACEOF | |
5886 | /* end confdefs.h. */ | |
5887 | $ac_includes_default | |
5888 | int | |
5889 | main () | |
5890 | { | |
5891 | if (sizeof (pid_t)) | |
5892 | return 0; | |
5893 | ; | |
5894 | return 0; | |
5895 | } | |
5896 | _ACEOF | |
5897 | rm -f conftest.$ac_objext | |
5898 | if { (ac_try="$ac_compile" | |
5899 | case "(($ac_try" in | |
5900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5901 | *) ac_try_echo=$ac_try;; | |
5902 | esac | |
5903 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5904 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5905 | (eval "$ac_compile") 2>conftest.er1 |
5906 | ac_status=$? | |
5907 | grep -v '^ *+' conftest.er1 >conftest.err | |
5908 | rm -f conftest.er1 | |
5909 | cat conftest.err >&5 | |
ec6a6fbe | 5910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5911 | (exit $ac_status); } && { |
5912 | test -z "$ac_c_werror_flag" || | |
5913 | test ! -s conftest.err | |
5914 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5915 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5916 | /* confdefs.h. */ |
5917 | _ACEOF | |
5918 | cat confdefs.h >>conftest.$ac_ext | |
5919 | cat >>conftest.$ac_ext <<_ACEOF | |
5920 | /* end confdefs.h. */ | |
5921 | $ac_includes_default | |
5922 | int | |
5923 | main () | |
5924 | { | |
ec6a6fbe AK |
5925 | if (sizeof ((pid_t))) |
5926 | return 0; | |
d0191583 JM |
5927 | ; |
5928 | return 0; | |
5929 | } | |
5930 | _ACEOF | |
5931 | rm -f conftest.$ac_objext | |
5932 | if { (ac_try="$ac_compile" | |
5933 | case "(($ac_try" in | |
5934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5935 | *) ac_try_echo=$ac_try;; | |
5936 | esac | |
ec6a6fbe AK |
5937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5938 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5939 | (eval "$ac_compile") 2>conftest.er1 |
5940 | ac_status=$? | |
5941 | grep -v '^ *+' conftest.er1 >conftest.err | |
5942 | rm -f conftest.er1 | |
5943 | cat conftest.err >&5 | |
ec6a6fbe | 5944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5945 | (exit $ac_status); } && { |
5946 | test -z "$ac_c_werror_flag" || | |
5947 | test ! -s conftest.err | |
5948 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5949 | : |
d0191583 | 5950 | else |
ec6a6fbe | 5951 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5952 | sed 's/^/| /' conftest.$ac_ext >&5 |
5953 | ||
ec6a6fbe | 5954 | ac_cv_type_pid_t=yes |
d0191583 JM |
5955 | fi |
5956 | ||
5957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5958 | else |
5959 | $as_echo "$as_me: failed program was:" >&5 | |
5960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5961 | ||
5962 | ||
d0191583 JM |
5963 | fi |
5964 | ||
5965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5966 | fi | |
ec6a6fbe AK |
5967 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5968 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5969 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5970 | : | |
5971 | else | |
d0191583 JM |
5972 | |
5973 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5974 | #define pid_t int |
d0191583 JM |
5975 | _ACEOF |
5976 | ||
d0191583 | 5977 | fi |
8ce0cbda | 5978 | |
ec6a6fbe AK |
5979 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5980 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5981 | if test "${ac_cv_type_signal+set}" = set; then | |
5982 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5983 | else |
b145d876 ZK |
5984 | cat >conftest.$ac_ext <<_ACEOF |
5985 | /* confdefs.h. */ | |
5986 | _ACEOF | |
5987 | cat confdefs.h >>conftest.$ac_ext | |
5988 | cat >>conftest.$ac_ext <<_ACEOF | |
5989 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5990 | #include <sys/types.h> |
5991 | #include <signal.h> | |
5992 | ||
b145d876 ZK |
5993 | int |
5994 | main () | |
5995 | { | |
ec6a6fbe | 5996 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
5997 | ; |
5998 | return 0; | |
5999 | } | |
6000 | _ACEOF | |
6001 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6002 | if { (ac_try="$ac_compile" |
6003 | case "(($ac_try" in | |
6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6005 | *) ac_try_echo=$ac_try;; | |
6006 | esac | |
ec6a6fbe AK |
6007 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6008 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6009 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6010 | ac_status=$? |
8a2fc586 AK |
6011 | grep -v '^ *+' conftest.er1 >conftest.err |
6012 | rm -f conftest.er1 | |
6013 | cat conftest.err >&5 | |
ec6a6fbe | 6014 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6015 | (exit $ac_status); } && { |
6016 | test -z "$ac_c_werror_flag" || | |
6017 | test ! -s conftest.err | |
6018 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6019 | ac_cv_type_signal=int |
b145d876 | 6020 | else |
ec6a6fbe | 6021 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
6023 | ||
ec6a6fbe | 6024 | ac_cv_type_signal=void |
ad6254c5 | 6025 | fi |
b145d876 ZK |
6026 | |
6027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6028 | fi | |
ec6a6fbe AK |
6029 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6030 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6031 | |
ad6254c5 | 6032 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6033 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6034 | _ACEOF |
199e490e | 6035 | |
b896caa1 | 6036 | |
ec6a6fbe AK |
6037 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6038 | $as_echo_n "checking for size_t... " >&6; } | |
6039 | if test "${ac_cv_type_size_t+set}" = set; then | |
6040 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6041 | else |
ec6a6fbe AK |
6042 | ac_cv_type_size_t=no |
6043 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6044 | /* confdefs.h. */ |
6045 | _ACEOF | |
6046 | cat confdefs.h >>conftest.$ac_ext | |
6047 | cat >>conftest.$ac_ext <<_ACEOF | |
6048 | /* end confdefs.h. */ | |
6049 | $ac_includes_default | |
6050 | int | |
6051 | main () | |
6052 | { | |
ec6a6fbe AK |
6053 | if (sizeof (size_t)) |
6054 | return 0; | |
ad6254c5 AK |
6055 | ; |
6056 | return 0; | |
6057 | } | |
6058 | _ACEOF | |
6059 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6060 | if { (ac_try="$ac_compile" |
6061 | case "(($ac_try" in | |
6062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6063 | *) ac_try_echo=$ac_try;; | |
6064 | esac | |
ec6a6fbe AK |
6065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6066 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6067 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6068 | ac_status=$? |
8a2fc586 AK |
6069 | grep -v '^ *+' conftest.er1 >conftest.err |
6070 | rm -f conftest.er1 | |
6071 | cat conftest.err >&5 | |
ec6a6fbe | 6072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6073 | (exit $ac_status); } && { |
6074 | test -z "$ac_c_werror_flag" || | |
6075 | test ! -s conftest.err | |
6076 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6077 | cat >conftest.$ac_ext <<_ACEOF |
6078 | /* confdefs.h. */ | |
6079 | _ACEOF | |
6080 | cat confdefs.h >>conftest.$ac_ext | |
6081 | cat >>conftest.$ac_ext <<_ACEOF | |
6082 | /* end confdefs.h. */ | |
ec6a6fbe | 6083 | $ac_includes_default |
d0191583 JM |
6084 | int |
6085 | main () | |
6086 | { | |
ec6a6fbe AK |
6087 | if (sizeof ((size_t))) |
6088 | return 0; | |
d0191583 JM |
6089 | ; |
6090 | return 0; | |
6091 | } | |
6092 | _ACEOF | |
6093 | rm -f conftest.$ac_objext | |
6094 | if { (ac_try="$ac_compile" | |
6095 | case "(($ac_try" in | |
6096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6097 | *) ac_try_echo=$ac_try;; | |
6098 | esac | |
ec6a6fbe AK |
6099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6100 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6101 | (eval "$ac_compile") 2>conftest.er1 |
6102 | ac_status=$? | |
6103 | grep -v '^ *+' conftest.er1 >conftest.err | |
6104 | rm -f conftest.er1 | |
6105 | cat conftest.err >&5 | |
ec6a6fbe | 6106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6107 | (exit $ac_status); } && { |
6108 | test -z "$ac_c_werror_flag" || | |
6109 | test ! -s conftest.err | |
6110 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6111 | : |
d0191583 | 6112 | else |
ec6a6fbe | 6113 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6114 | sed 's/^/| /' conftest.$ac_ext >&5 |
6115 | ||
ec6a6fbe AK |
6116 | ac_cv_type_size_t=yes |
6117 | fi | |
6118 | ||
6119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6120 | else | |
6121 | $as_echo "$as_me: failed program was:" >&5 | |
6122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6123 | ||
6124 | ||
d0191583 JM |
6125 | fi |
6126 | ||
6127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6128 | fi | |
ec6a6fbe AK |
6129 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6130 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6131 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6132 | : | |
6133 | else | |
d0191583 JM |
6134 | |
6135 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6136 | #define size_t unsigned int |
d0191583 JM |
6137 | _ACEOF |
6138 | ||
ec6a6fbe | 6139 | fi |
d0191583 | 6140 | |
ec6a6fbe AK |
6141 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6142 | $as_echo_n "checking for mode_t... " >&6; } | |
6143 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6144 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6145 | else |
ec6a6fbe AK |
6146 | ac_cv_type_mode_t=no |
6147 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6148 | /* confdefs.h. */ |
6149 | _ACEOF | |
6150 | cat confdefs.h >>conftest.$ac_ext | |
6151 | cat >>conftest.$ac_ext <<_ACEOF | |
6152 | /* end confdefs.h. */ | |
6153 | $ac_includes_default | |
6154 | int | |
6155 | main () | |
6156 | { | |
ec6a6fbe AK |
6157 | if (sizeof (mode_t)) |
6158 | return 0; | |
ad6254c5 AK |
6159 | ; |
6160 | return 0; | |
6161 | } | |
6162 | _ACEOF | |
6163 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6164 | if { (ac_try="$ac_compile" |
6165 | case "(($ac_try" in | |
6166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6167 | *) ac_try_echo=$ac_try;; | |
6168 | esac | |
ec6a6fbe AK |
6169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6170 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6171 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6172 | ac_status=$? |
8a2fc586 AK |
6173 | grep -v '^ *+' conftest.er1 >conftest.err |
6174 | rm -f conftest.er1 | |
6175 | cat conftest.err >&5 | |
ec6a6fbe | 6176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6177 | (exit $ac_status); } && { |
6178 | test -z "$ac_c_werror_flag" || | |
6179 | test ! -s conftest.err | |
6180 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6181 | cat >conftest.$ac_ext <<_ACEOF |
6182 | /* confdefs.h. */ | |
6183 | _ACEOF | |
6184 | cat confdefs.h >>conftest.$ac_ext | |
6185 | cat >>conftest.$ac_ext <<_ACEOF | |
6186 | /* end confdefs.h. */ | |
6187 | $ac_includes_default | |
6188 | int | |
6189 | main () | |
6190 | { | |
ec6a6fbe AK |
6191 | if (sizeof ((mode_t))) |
6192 | return 0; | |
ad6254c5 AK |
6193 | ; |
6194 | return 0; | |
6195 | } | |
6196 | _ACEOF | |
6197 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6198 | if { (ac_try="$ac_compile" |
6199 | case "(($ac_try" in | |
6200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6201 | *) ac_try_echo=$ac_try;; | |
6202 | esac | |
ec6a6fbe AK |
6203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6204 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6205 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6206 | ac_status=$? |
8a2fc586 AK |
6207 | grep -v '^ *+' conftest.er1 >conftest.err |
6208 | rm -f conftest.er1 | |
6209 | cat conftest.err >&5 | |
ec6a6fbe | 6210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6211 | (exit $ac_status); } && { |
6212 | test -z "$ac_c_werror_flag" || | |
6213 | test ! -s conftest.err | |
6214 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6215 | : |
6216 | else | |
6217 | $as_echo "$as_me: failed program was:" >&5 | |
6218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6219 | ||
6220 | ac_cv_type_mode_t=yes | |
6221 | fi | |
6222 | ||
6223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6224 | else |
ec6a6fbe | 6225 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6226 | sed 's/^/| /' conftest.$ac_ext >&5 |
6227 | ||
ec6a6fbe | 6228 | |
80992638 | 6229 | fi |
7a197a62 AK |
6230 | |
6231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6232 | fi |
ec6a6fbe AK |
6233 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6234 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6235 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6236 | : |
6237 | else | |
80992638 | 6238 | |
ad6254c5 AK |
6239 | cat >>confdefs.h <<_ACEOF |
6240 | #define mode_t int | |
6241 | _ACEOF | |
6242 | ||
6243 | fi | |
6244 | ||
ec6a6fbe AK |
6245 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6246 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6247 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6248 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6249 | else |
6250 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6251 | /* confdefs.h. */ |
6252 | _ACEOF | |
6253 | cat confdefs.h >>conftest.$ac_ext | |
6254 | cat >>conftest.$ac_ext <<_ACEOF | |
6255 | /* end confdefs.h. */ | |
6256 | $ac_includes_default | |
6257 | int | |
6258 | main () | |
6259 | { | |
6260 | static struct stat ac_aggr; | |
6261 | if (ac_aggr.st_rdev) | |
6262 | return 0; | |
6263 | ; | |
6264 | return 0; | |
6265 | } | |
6266 | _ACEOF | |
6267 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6268 | if { (ac_try="$ac_compile" |
6269 | case "(($ac_try" in | |
6270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6271 | *) ac_try_echo=$ac_try;; | |
6272 | esac | |
ec6a6fbe AK |
6273 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6274 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6275 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6276 | ac_status=$? |
8a2fc586 AK |
6277 | grep -v '^ *+' conftest.er1 >conftest.err |
6278 | rm -f conftest.er1 | |
6279 | cat conftest.err >&5 | |
ec6a6fbe | 6280 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6281 | (exit $ac_status); } && { |
6282 | test -z "$ac_c_werror_flag" || | |
6283 | test ! -s conftest.err | |
6284 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6285 | ac_cv_member_struct_stat_st_rdev=yes |
6286 | else | |
ec6a6fbe | 6287 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6288 | sed 's/^/| /' conftest.$ac_ext >&5 |
6289 | ||
7a197a62 | 6290 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6291 | /* confdefs.h. */ |
6292 | _ACEOF | |
6293 | cat confdefs.h >>conftest.$ac_ext | |
6294 | cat >>conftest.$ac_ext <<_ACEOF | |
6295 | /* end confdefs.h. */ | |
6296 | $ac_includes_default | |
6297 | int | |
6298 | main () | |
6299 | { | |
6300 | static struct stat ac_aggr; | |
6301 | if (sizeof ac_aggr.st_rdev) | |
6302 | return 0; | |
6303 | ; | |
6304 | return 0; | |
6305 | } | |
6306 | _ACEOF | |
6307 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6308 | if { (ac_try="$ac_compile" |
6309 | case "(($ac_try" in | |
6310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6311 | *) ac_try_echo=$ac_try;; | |
6312 | esac | |
ec6a6fbe AK |
6313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6314 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6315 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6316 | ac_status=$? |
8a2fc586 AK |
6317 | grep -v '^ *+' conftest.er1 >conftest.err |
6318 | rm -f conftest.er1 | |
6319 | cat conftest.err >&5 | |
ec6a6fbe | 6320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6321 | (exit $ac_status); } && { |
6322 | test -z "$ac_c_werror_flag" || | |
6323 | test ! -s conftest.err | |
6324 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6325 | ac_cv_member_struct_stat_st_rdev=yes |
6326 | else | |
ec6a6fbe | 6327 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6328 | sed 's/^/| /' conftest.$ac_ext >&5 |
6329 | ||
7a197a62 | 6330 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6331 | fi |
7a197a62 AK |
6332 | |
6333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6334 | fi |
7a197a62 AK |
6335 | |
6336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6337 | fi |
ec6a6fbe AK |
6338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6339 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6340 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6341 | |
6342 | cat >>confdefs.h <<_ACEOF | |
6343 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6344 | _ACEOF | |
6345 | ||
6346 | ||
ad6254c5 AK |
6347 | fi |
6348 | ||
ec6a6fbe AK |
6349 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6350 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6351 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6352 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6353 | else |
6354 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6355 | /* confdefs.h. */ |
6356 | _ACEOF | |
6357 | cat confdefs.h >>conftest.$ac_ext | |
6358 | cat >>conftest.$ac_ext <<_ACEOF | |
6359 | /* end confdefs.h. */ | |
6360 | #include <sys/types.h> | |
6361 | #include <time.h> | |
6362 | ||
6363 | int | |
6364 | main () | |
6365 | { | |
25fbec5b AK |
6366 | struct tm tm; |
6367 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6368 | return !p; |
ad6254c5 AK |
6369 | ; |
6370 | return 0; | |
6371 | } | |
6372 | _ACEOF | |
6373 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6374 | if { (ac_try="$ac_compile" |
6375 | case "(($ac_try" in | |
6376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6377 | *) ac_try_echo=$ac_try;; | |
6378 | esac | |
ec6a6fbe AK |
6379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6380 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6381 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6382 | ac_status=$? |
8a2fc586 AK |
6383 | grep -v '^ *+' conftest.er1 >conftest.err |
6384 | rm -f conftest.er1 | |
6385 | cat conftest.err >&5 | |
ec6a6fbe | 6386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6387 | (exit $ac_status); } && { |
6388 | test -z "$ac_c_werror_flag" || | |
6389 | test ! -s conftest.err | |
6390 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6391 | ac_cv_struct_tm=time.h |
6392 | else | |
ec6a6fbe | 6393 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6394 | sed 's/^/| /' conftest.$ac_ext >&5 |
6395 | ||
7a197a62 | 6396 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6397 | fi |
7a197a62 AK |
6398 | |
6399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6400 | fi |
ec6a6fbe AK |
6401 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6402 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6403 | if test $ac_cv_struct_tm = sys/time.h; then |
6404 | ||
6405 | cat >>confdefs.h <<\_ACEOF | |
6406 | #define TM_IN_SYS_TIME 1 | |
6407 | _ACEOF | |
6408 | ||
6409 | fi | |
809fae91 | 6410 | |
795ca3e5 | 6411 | |
80992638 | 6412 | ################################################################################ |
ad6254c5 AK |
6413 | |
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
d0191583 JM |
6427 | |
6428 | ||
6429 | ||
6430 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6431 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6432 | uname | |
ad6254c5 | 6433 | do |
ec6a6fbe AK |
6434 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6435 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6436 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6437 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6438 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6439 | else |
ad6254c5 | 6440 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6441 | /* confdefs.h. */ |
6442 | _ACEOF | |
6443 | cat confdefs.h >>conftest.$ac_ext | |
6444 | cat >>conftest.$ac_ext <<_ACEOF | |
6445 | /* end confdefs.h. */ | |
8a2fc586 AK |
6446 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6447 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6448 | #define $ac_func innocuous_$ac_func | |
6449 | ||
ad6254c5 AK |
6450 | /* System header to define __stub macros and hopefully few prototypes, |
6451 | which can conflict with char $ac_func (); below. | |
6452 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6453 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6454 | |
ad6254c5 AK |
6455 | #ifdef __STDC__ |
6456 | # include <limits.h> | |
6457 | #else | |
6458 | # include <assert.h> | |
6459 | #endif | |
8a2fc586 AK |
6460 | |
6461 | #undef $ac_func | |
6462 | ||
7a197a62 AK |
6463 | /* Override any GCC internal prototype to avoid an error. |
6464 | Use char because int might match the return type of a GCC | |
6465 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6466 | #ifdef __cplusplus |
6467 | extern "C" | |
ad6254c5 | 6468 | #endif |
ad6254c5 AK |
6469 | char $ac_func (); |
6470 | /* The GNU C library defines this for functions which it implements | |
6471 | to always fail with ENOSYS. Some functions are actually named | |
6472 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6473 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6474 | choke me |
ad6254c5 AK |
6475 | #endif |
6476 | ||
6477 | int | |
6478 | main () | |
6479 | { | |
7a197a62 | 6480 | return $ac_func (); |
ad6254c5 AK |
6481 | ; |
6482 | return 0; | |
6483 | } | |
6484 | _ACEOF | |
6485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6486 | if { (ac_try="$ac_link" |
6487 | case "(($ac_try" in | |
6488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6489 | *) ac_try_echo=$ac_try;; | |
6490 | esac | |
ec6a6fbe AK |
6491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6492 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6493 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6494 | ac_status=$? |
8a2fc586 AK |
6495 | grep -v '^ *+' conftest.er1 >conftest.err |
6496 | rm -f conftest.er1 | |
6497 | cat conftest.err >&5 | |
ec6a6fbe | 6498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6499 | (exit $ac_status); } && { |
6500 | test -z "$ac_c_werror_flag" || | |
6501 | test ! -s conftest.err | |
ec6a6fbe AK |
6502 | } && test -s conftest$ac_exeext && { |
6503 | test "$cross_compiling" = yes || | |
6504 | $as_test_x conftest$ac_exeext | |
6505 | }; then | |
fc54be10 AK |
6506 | eval "$as_ac_var=yes" |
6507 | else | |
ec6a6fbe | 6508 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6509 | sed 's/^/| /' conftest.$ac_ext >&5 |
6510 | ||
6511 | eval "$as_ac_var=no" | |
6512 | fi | |
6513 | ||
ec6a6fbe | 6514 | rm -rf conftest.dSYM |
25fbec5b | 6515 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6516 | conftest$ac_exeext conftest.$ac_ext |
6517 | fi | |
ec6a6fbe AK |
6518 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6519 | $as_echo "$as_val"'` | |
6520 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6521 | $as_echo "$ac_res" >&6; } | |
6522 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6523 | $as_echo "$as_val"'` | |
6524 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6525 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6526 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6527 | _ACEOF |
6528 | ||
6529 | else | |
ec6a6fbe AK |
6530 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6531 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6532 | { (exit 1); exit 1; }; } |
6533 | fi | |
6534 | done | |
795ca3e5 | 6535 | |
ad6254c5 AK |
6536 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6537 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6538 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6539 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6540 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6541 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6542 | else |
6543 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6544 | /* confdefs.h. */ |
6545 | _ACEOF | |
6546 | cat confdefs.h >>conftest.$ac_ext | |
6547 | cat >>conftest.$ac_ext <<_ACEOF | |
6548 | /* end confdefs.h. */ | |
6549 | #include <alloca.h> | |
6550 | int | |
6551 | main () | |
6552 | { | |
6553 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6554 | if (p) return 0; |
ad6254c5 AK |
6555 | ; |
6556 | return 0; | |
6557 | } | |
6558 | _ACEOF | |
6559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6560 | if { (ac_try="$ac_link" |
6561 | case "(($ac_try" in | |
6562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6563 | *) ac_try_echo=$ac_try;; | |
6564 | esac | |
ec6a6fbe AK |
6565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6566 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6567 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6568 | ac_status=$? |
8a2fc586 AK |
6569 | grep -v '^ *+' conftest.er1 >conftest.err |
6570 | rm -f conftest.er1 | |
6571 | cat conftest.err >&5 | |
ec6a6fbe | 6572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6573 | (exit $ac_status); } && { |
6574 | test -z "$ac_c_werror_flag" || | |
6575 | test ! -s conftest.err | |
ec6a6fbe AK |
6576 | } && test -s conftest$ac_exeext && { |
6577 | test "$cross_compiling" = yes || | |
6578 | $as_test_x conftest$ac_exeext | |
6579 | }; then | |
ad6254c5 AK |
6580 | ac_cv_working_alloca_h=yes |
6581 | else | |
ec6a6fbe | 6582 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6583 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6584 | |
7a197a62 | 6585 | ac_cv_working_alloca_h=no |
ad6254c5 | 6586 | fi |
7a197a62 | 6587 | |
ec6a6fbe | 6588 | rm -rf conftest.dSYM |
25fbec5b | 6589 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6590 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6591 | fi |
ec6a6fbe AK |
6592 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6593 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6594 | if test $ac_cv_working_alloca_h = yes; then |
6595 | ||
6596 | cat >>confdefs.h <<\_ACEOF | |
6597 | #define HAVE_ALLOCA_H 1 | |
6598 | _ACEOF | |
6599 | ||
6600 | fi | |
6601 | ||
ec6a6fbe AK |
6602 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6603 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6604 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6605 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6606 | else |
6607 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6608 | /* confdefs.h. */ |
6609 | _ACEOF | |
6610 | cat confdefs.h >>conftest.$ac_ext | |
6611 | cat >>conftest.$ac_ext <<_ACEOF | |
6612 | /* end confdefs.h. */ | |
6613 | #ifdef __GNUC__ | |
6614 | # define alloca __builtin_alloca | |
6615 | #else | |
6616 | # ifdef _MSC_VER | |
6617 | # include <malloc.h> | |
6618 | # define alloca _alloca | |
6619 | # else | |
25fbec5b | 6620 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6621 | # include <alloca.h> |
6622 | # else | |
6623 | # ifdef _AIX | |
6624 | #pragma alloca | |
6625 | # else | |
6626 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6627 | char *alloca (); | |
6628 | # endif | |
6629 | # endif | |
6630 | # endif | |
6631 | # endif | |
6632 | #endif | |
6633 | ||
6634 | int | |
6635 | main () | |
6636 | { | |
6637 | char *p = (char *) alloca (1); | |
7a197a62 | 6638 | if (p) return 0; |
ad6254c5 AK |
6639 | ; |
6640 | return 0; | |
6641 | } | |
6642 | _ACEOF | |
6643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6644 | if { (ac_try="$ac_link" |
6645 | case "(($ac_try" in | |
6646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6647 | *) ac_try_echo=$ac_try;; | |
6648 | esac | |
ec6a6fbe AK |
6649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6650 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6651 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6652 | ac_status=$? |
8a2fc586 AK |
6653 | grep -v '^ *+' conftest.er1 >conftest.err |
6654 | rm -f conftest.er1 | |
6655 | cat conftest.err >&5 | |
ec6a6fbe | 6656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6657 | (exit $ac_status); } && { |
6658 | test -z "$ac_c_werror_flag" || | |
6659 | test ! -s conftest.err | |
ec6a6fbe AK |
6660 | } && test -s conftest$ac_exeext && { |
6661 | test "$cross_compiling" = yes || | |
6662 | $as_test_x conftest$ac_exeext | |
6663 | }; then | |
ad6254c5 AK |
6664 | ac_cv_func_alloca_works=yes |
6665 | else | |
ec6a6fbe | 6666 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6667 | sed 's/^/| /' conftest.$ac_ext >&5 |
6668 | ||
7a197a62 | 6669 | ac_cv_func_alloca_works=no |
ad6254c5 | 6670 | fi |
7a197a62 | 6671 | |
ec6a6fbe | 6672 | rm -rf conftest.dSYM |
25fbec5b | 6673 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6674 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6675 | fi |
ec6a6fbe AK |
6676 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6677 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6678 | |
6679 | if test $ac_cv_func_alloca_works = yes; then | |
6680 | ||
6681 | cat >>confdefs.h <<\_ACEOF | |
6682 | #define HAVE_ALLOCA 1 | |
6683 | _ACEOF | |
6684 | ||
6685 | else | |
6686 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6687 | # that cause trouble. Some versions do not even contain alloca or | |
6688 | # contain a buggy version. If you still want to use their alloca, | |
6689 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6690 | ||
7a197a62 | 6691 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6692 | |
6693 | cat >>confdefs.h <<\_ACEOF | |
6694 | #define C_ALLOCA 1 | |
6695 | _ACEOF | |
6696 | ||
6697 | ||
ec6a6fbe AK |
6698 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6699 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6700 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6701 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6702 | else |
6703 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6704 | /* confdefs.h. */ |
6705 | _ACEOF | |
6706 | cat confdefs.h >>conftest.$ac_ext | |
6707 | cat >>conftest.$ac_ext <<_ACEOF | |
6708 | /* end confdefs.h. */ | |
7a197a62 | 6709 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6710 | webecray |
6711 | #else | |
6712 | wenotbecray | |
6713 | #endif | |
6714 | ||
6715 | _ACEOF | |
795ca3e5 | 6716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6717 | $EGREP "webecray" >/dev/null 2>&1; then |
6718 | ac_cv_os_cray=yes | |
6719 | else | |
6720 | ac_cv_os_cray=no | |
795ca3e5 AK |
6721 | fi |
6722 | rm -f conftest* | |
6723 | ||
795ca3e5 | 6724 | fi |
ec6a6fbe AK |
6725 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6726 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6727 | if test $ac_cv_os_cray = yes; then |
6728 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6729 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6730 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6731 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6732 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6733 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6734 | else |
6735 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6736 | /* confdefs.h. */ |
6737 | _ACEOF | |
6738 | cat confdefs.h >>conftest.$ac_ext | |
6739 | cat >>conftest.$ac_ext <<_ACEOF | |
6740 | /* end confdefs.h. */ | |
8a2fc586 AK |
6741 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6742 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6743 | #define $ac_func innocuous_$ac_func | |
6744 | ||
ad6254c5 AK |
6745 | /* System header to define __stub macros and hopefully few prototypes, |
6746 | which can conflict with char $ac_func (); below. | |
6747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6748 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6749 | |
ad6254c5 AK |
6750 | #ifdef __STDC__ |
6751 | # include <limits.h> | |
6752 | #else | |
6753 | # include <assert.h> | |
6754 | #endif | |
8a2fc586 AK |
6755 | |
6756 | #undef $ac_func | |
6757 | ||
7a197a62 AK |
6758 | /* Override any GCC internal prototype to avoid an error. |
6759 | Use char because int might match the return type of a GCC | |
6760 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6761 | #ifdef __cplusplus |
6762 | extern "C" | |
ad6254c5 | 6763 | #endif |
ad6254c5 AK |
6764 | char $ac_func (); |
6765 | /* The GNU C library defines this for functions which it implements | |
6766 | to always fail with ENOSYS. Some functions are actually named | |
6767 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6768 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6769 | choke me |
ad6254c5 AK |
6770 | #endif |
6771 | ||
6772 | int | |
6773 | main () | |
6774 | { | |
7a197a62 | 6775 | return $ac_func (); |
ad6254c5 AK |
6776 | ; |
6777 | return 0; | |
6778 | } | |
6779 | _ACEOF | |
6780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6781 | if { (ac_try="$ac_link" |
6782 | case "(($ac_try" in | |
6783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6784 | *) ac_try_echo=$ac_try;; | |
6785 | esac | |
ec6a6fbe AK |
6786 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6787 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6788 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6789 | ac_status=$? |
8a2fc586 AK |
6790 | grep -v '^ *+' conftest.er1 >conftest.err |
6791 | rm -f conftest.er1 | |
6792 | cat conftest.err >&5 | |
ec6a6fbe | 6793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6794 | (exit $ac_status); } && { |
6795 | test -z "$ac_c_werror_flag" || | |
6796 | test ! -s conftest.err | |
ec6a6fbe AK |
6797 | } && test -s conftest$ac_exeext && { |
6798 | test "$cross_compiling" = yes || | |
6799 | $as_test_x conftest$ac_exeext | |
6800 | }; then | |
ad6254c5 AK |
6801 | eval "$as_ac_var=yes" |
6802 | else | |
ec6a6fbe | 6803 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6804 | sed 's/^/| /' conftest.$ac_ext >&5 |
6805 | ||
7a197a62 | 6806 | eval "$as_ac_var=no" |
ad6254c5 | 6807 | fi |
7a197a62 | 6808 | |
ec6a6fbe | 6809 | rm -rf conftest.dSYM |
25fbec5b | 6810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6811 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6812 | fi |
ec6a6fbe AK |
6813 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6814 | $as_echo "$as_val"'` | |
6815 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6816 | $as_echo "$ac_res" >&6; } | |
6817 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6818 | $as_echo "$as_val"'` | |
6819 | if test "x$as_val" = x""yes; then | |
80992638 | 6820 | |
ad6254c5 AK |
6821 | cat >>confdefs.h <<_ACEOF |
6822 | #define CRAY_STACKSEG_END $ac_func | |
6823 | _ACEOF | |
6824 | ||
6825 | break | |
6826 | fi | |
6827 | ||
6828 | done | |
6829 | fi | |
6830 | ||
ec6a6fbe AK |
6831 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6832 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6833 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6834 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6835 | else |
6836 | if test "$cross_compiling" = yes; then | |
6837 | ac_cv_c_stack_direction=0 | |
6838 | else | |
6839 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6840 | /* confdefs.h. */ |
6841 | _ACEOF | |
6842 | cat confdefs.h >>conftest.$ac_ext | |
6843 | cat >>conftest.$ac_ext <<_ACEOF | |
6844 | /* end confdefs.h. */ | |
7a197a62 | 6845 | $ac_includes_default |
ad6254c5 AK |
6846 | int |
6847 | find_stack_direction () | |
6848 | { | |
6849 | static char *addr = 0; | |
6850 | auto char dummy; | |
6851 | if (addr == 0) | |
6852 | { | |
6853 | addr = &dummy; | |
6854 | return find_stack_direction (); | |
6855 | } | |
6856 | else | |
6857 | return (&dummy > addr) ? 1 : -1; | |
6858 | } | |
6859 | ||
6860 | int | |
6861 | main () | |
6862 | { | |
7a197a62 | 6863 | return find_stack_direction () < 0; |
ad6254c5 AK |
6864 | } |
6865 | _ACEOF | |
6866 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6867 | if { (ac_try="$ac_link" |
6868 | case "(($ac_try" in | |
6869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6870 | *) ac_try_echo=$ac_try;; | |
6871 | esac | |
ec6a6fbe AK |
6872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6873 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6874 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6875 | ac_status=$? |
ec6a6fbe | 6876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6877 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6878 | { (case "(($ac_try" in |
6879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6880 | *) ac_try_echo=$ac_try;; | |
6881 | esac | |
ec6a6fbe AK |
6882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6883 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6884 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6885 | ac_status=$? |
ec6a6fbe | 6886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6887 | (exit $ac_status); }; }; then |
6888 | ac_cv_c_stack_direction=1 | |
6889 | else | |
ec6a6fbe AK |
6890 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6891 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6892 | sed 's/^/| /' conftest.$ac_ext >&5 |
6893 | ||
6894 | ( exit $ac_status ) | |
6895 | ac_cv_c_stack_direction=-1 | |
6896 | fi | |
ec6a6fbe | 6897 | rm -rf conftest.dSYM |
7a197a62 | 6898 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6899 | fi |
7a197a62 AK |
6900 | |
6901 | ||
ad6254c5 | 6902 | fi |
ec6a6fbe AK |
6903 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6904 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6905 | |
6906 | cat >>confdefs.h <<_ACEOF | |
6907 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6908 | _ACEOF | |
6909 | ||
6910 | ||
6911 | fi | |
6912 | ||
ec6a6fbe AK |
6913 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6914 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 6915 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 6916 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6917 | else |
6918 | if test "$cross_compiling" = yes; then | |
6919 | ac_cv_func_closedir_void=yes | |
6920 | else | |
6921 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6922 | /* confdefs.h. */ |
6923 | _ACEOF | |
6924 | cat confdefs.h >>conftest.$ac_ext | |
6925 | cat >>conftest.$ac_ext <<_ACEOF | |
6926 | /* end confdefs.h. */ | |
6927 | $ac_includes_default | |
6928 | #include <$ac_header_dirent> | |
6929 | #ifndef __cplusplus | |
6930 | int closedir (); | |
6931 | #endif | |
6932 | ||
6933 | int | |
6934 | main () | |
6935 | { | |
7a197a62 | 6936 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6937 | ; |
6938 | return 0; | |
6939 | } | |
6940 | _ACEOF | |
6941 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6942 | if { (ac_try="$ac_link" |
6943 | case "(($ac_try" in | |
6944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6945 | *) ac_try_echo=$ac_try;; | |
6946 | esac | |
ec6a6fbe AK |
6947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6948 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6949 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6950 | ac_status=$? |
ec6a6fbe | 6951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6952 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6953 | { (case "(($ac_try" in |
6954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6955 | *) ac_try_echo=$ac_try;; | |
6956 | esac | |
ec6a6fbe AK |
6957 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6958 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6959 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6960 | ac_status=$? |
ec6a6fbe | 6961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6962 | (exit $ac_status); }; }; then |
6963 | ac_cv_func_closedir_void=no | |
6964 | else | |
ec6a6fbe AK |
6965 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6966 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6967 | sed 's/^/| /' conftest.$ac_ext >&5 |
6968 | ||
6969 | ( exit $ac_status ) | |
6970 | ac_cv_func_closedir_void=yes | |
6971 | fi | |
ec6a6fbe | 6972 | rm -rf conftest.dSYM |
7a197a62 | 6973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6974 | fi |
7a197a62 AK |
6975 | |
6976 | ||
ad6254c5 | 6977 | fi |
ec6a6fbe AK |
6978 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6979 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6980 | if test $ac_cv_func_closedir_void = yes; then |
6981 | ||
6982 | cat >>confdefs.h <<\_ACEOF | |
6983 | #define CLOSEDIR_VOID 1 | |
6984 | _ACEOF | |
6985 | ||
6986 | fi | |
6987 | ||
6988 | ||
7a197a62 | 6989 | for ac_header in vfork.h |
ad6254c5 | 6990 | do |
ec6a6fbe | 6991 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
6993 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6994 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 6995 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6996 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6997 | fi |
ec6a6fbe AK |
6998 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
6999 | $as_echo "$as_val"'` | |
7000 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7001 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7002 | else |
7003 | # Is the header compilable? | |
ec6a6fbe AK |
7004 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7005 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7006 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7007 | /* confdefs.h. */ |
7008 | _ACEOF | |
7009 | cat confdefs.h >>conftest.$ac_ext | |
7010 | cat >>conftest.$ac_ext <<_ACEOF | |
7011 | /* end confdefs.h. */ | |
7012 | $ac_includes_default | |
7013 | #include <$ac_header> | |
7014 | _ACEOF | |
7015 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7016 | if { (ac_try="$ac_compile" |
7017 | case "(($ac_try" in | |
7018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7019 | *) ac_try_echo=$ac_try;; | |
7020 | esac | |
ec6a6fbe AK |
7021 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7022 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7023 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7024 | ac_status=$? |
8a2fc586 AK |
7025 | grep -v '^ *+' conftest.er1 >conftest.err |
7026 | rm -f conftest.er1 | |
7027 | cat conftest.err >&5 | |
ec6a6fbe | 7028 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7029 | (exit $ac_status); } && { |
7030 | test -z "$ac_c_werror_flag" || | |
7031 | test ! -s conftest.err | |
7032 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7033 | ac_header_compiler=yes |
7034 | else | |
ec6a6fbe | 7035 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7036 | sed 's/^/| /' conftest.$ac_ext >&5 |
7037 | ||
7a197a62 | 7038 | ac_header_compiler=no |
ad6254c5 | 7039 | fi |
7a197a62 AK |
7040 | |
7041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7042 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7043 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7044 | |
7045 | # Is the header present? | |
ec6a6fbe AK |
7046 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7047 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7048 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7049 | /* confdefs.h. */ |
7050 | _ACEOF | |
7051 | cat confdefs.h >>conftest.$ac_ext | |
7052 | cat >>conftest.$ac_ext <<_ACEOF | |
7053 | /* end confdefs.h. */ | |
7054 | #include <$ac_header> | |
7055 | _ACEOF | |
7a197a62 AK |
7056 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7057 | case "(($ac_try" in | |
7058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7059 | *) ac_try_echo=$ac_try;; | |
7060 | esac | |
ec6a6fbe AK |
7061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7062 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7063 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7064 | ac_status=$? |
7065 | grep -v '^ *+' conftest.er1 >conftest.err | |
7066 | rm -f conftest.er1 | |
7067 | cat conftest.err >&5 | |
ec6a6fbe | 7068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7069 | (exit $ac_status); } >/dev/null && { |
7070 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7071 | test ! -s conftest.err | |
7072 | }; then | |
ad6254c5 AK |
7073 | ac_header_preproc=yes |
7074 | else | |
ec6a6fbe | 7075 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7076 | sed 's/^/| /' conftest.$ac_ext >&5 |
7077 | ||
7078 | ac_header_preproc=no | |
7079 | fi | |
7a197a62 | 7080 | |
ad6254c5 | 7081 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7082 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7083 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7084 | |
7085 | # So? What about this header? | |
8a2fc586 AK |
7086 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7087 | yes:no: ) | |
ec6a6fbe AK |
7088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7089 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7091 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7092 | ac_header_preproc=yes |
ad6254c5 | 7093 | ;; |
8a2fc586 | 7094 | no:yes:* ) |
ec6a6fbe AK |
7095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7096 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7098 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7100 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7102 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7104 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7106 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7107 | |
ad6254c5 AK |
7108 | ;; |
7109 | esac | |
ec6a6fbe AK |
7110 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7111 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7112 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7113 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7114 | else |
8a2fc586 | 7115 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7116 | fi |
ec6a6fbe AK |
7117 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7118 | $as_echo "$as_val"'` | |
7119 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7120 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7121 | |
795ca3e5 | 7122 | fi |
ec6a6fbe AK |
7123 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7124 | $as_echo "$as_val"'` | |
7125 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7126 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7127 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7128 | _ACEOF |
7129 | ||
7130 | fi | |
7131 | ||
7132 | done | |
795ca3e5 | 7133 | |
ad6254c5 AK |
7134 | |
7135 | ||
7136 | for ac_func in fork vfork | |
7137 | do | |
ec6a6fbe AK |
7138 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7139 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7140 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7141 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7142 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7143 | else |
ad6254c5 | 7144 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7145 | /* confdefs.h. */ |
7146 | _ACEOF | |
7147 | cat confdefs.h >>conftest.$ac_ext | |
7148 | cat >>conftest.$ac_ext <<_ACEOF | |
7149 | /* end confdefs.h. */ | |
8a2fc586 AK |
7150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7152 | #define $ac_func innocuous_$ac_func | |
7153 | ||
ad6254c5 AK |
7154 | /* System header to define __stub macros and hopefully few prototypes, |
7155 | which can conflict with char $ac_func (); below. | |
7156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7157 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7158 | |
ad6254c5 AK |
7159 | #ifdef __STDC__ |
7160 | # include <limits.h> | |
7161 | #else | |
7162 | # include <assert.h> | |
795ca3e5 | 7163 | #endif |
8a2fc586 AK |
7164 | |
7165 | #undef $ac_func | |
7166 | ||
7a197a62 AK |
7167 | /* Override any GCC internal prototype to avoid an error. |
7168 | Use char because int might match the return type of a GCC | |
7169 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7170 | #ifdef __cplusplus |
ad6254c5 | 7171 | extern "C" |
ad6254c5 | 7172 | #endif |
ad6254c5 AK |
7173 | char $ac_func (); |
7174 | /* The GNU C library defines this for functions which it implements | |
7175 | to always fail with ENOSYS. Some functions are actually named | |
7176 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7177 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7178 | choke me |
795ca3e5 AK |
7179 | #endif |
7180 | ||
ad6254c5 AK |
7181 | int |
7182 | main () | |
7183 | { | |
7a197a62 | 7184 | return $ac_func (); |
ad6254c5 AK |
7185 | ; |
7186 | return 0; | |
7187 | } | |
7188 | _ACEOF | |
7189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7190 | if { (ac_try="$ac_link" |
7191 | case "(($ac_try" in | |
7192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7193 | *) ac_try_echo=$ac_try;; | |
7194 | esac | |
ec6a6fbe AK |
7195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7196 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7197 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7198 | ac_status=$? |
8a2fc586 AK |
7199 | grep -v '^ *+' conftest.er1 >conftest.err |
7200 | rm -f conftest.er1 | |
7201 | cat conftest.err >&5 | |
ec6a6fbe | 7202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7203 | (exit $ac_status); } && { |
7204 | test -z "$ac_c_werror_flag" || | |
7205 | test ! -s conftest.err | |
ec6a6fbe AK |
7206 | } && test -s conftest$ac_exeext && { |
7207 | test "$cross_compiling" = yes || | |
7208 | $as_test_x conftest$ac_exeext | |
7209 | }; then | |
ad6254c5 | 7210 | eval "$as_ac_var=yes" |
795ca3e5 | 7211 | else |
ec6a6fbe | 7212 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7213 | sed 's/^/| /' conftest.$ac_ext >&5 |
7214 | ||
7a197a62 | 7215 | eval "$as_ac_var=no" |
795ca3e5 | 7216 | fi |
7a197a62 | 7217 | |
ec6a6fbe | 7218 | rm -rf conftest.dSYM |
25fbec5b | 7219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7220 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7221 | fi |
ec6a6fbe AK |
7222 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7223 | $as_echo "$as_val"'` | |
7224 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7225 | $as_echo "$ac_res" >&6; } | |
7226 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7227 | $as_echo "$as_val"'` | |
7228 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7229 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7230 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7231 | _ACEOF |
7232 | ||
7233 | fi | |
7234 | done | |
7235 | ||
7236 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7237 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7238 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7239 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7240 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7241 | else |
7242 | if test "$cross_compiling" = yes; then | |
7243 | ac_cv_func_fork_works=cross | |
7244 | else | |
7245 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7246 | /* confdefs.h. */ |
7247 | _ACEOF | |
7248 | cat confdefs.h >>conftest.$ac_ext | |
7249 | cat >>conftest.$ac_ext <<_ACEOF | |
7250 | /* end confdefs.h. */ | |
7251 | $ac_includes_default | |
7252 | int | |
7253 | main () | |
7254 | { | |
7255 | ||
7256 | /* By Ruediger Kuhlmann. */ | |
7257 | return fork () < 0; | |
7258 | ||
7259 | ; | |
7260 | return 0; | |
7261 | } | |
ad6254c5 AK |
7262 | _ACEOF |
7263 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7264 | if { (ac_try="$ac_link" |
7265 | case "(($ac_try" in | |
7266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7267 | *) ac_try_echo=$ac_try;; | |
7268 | esac | |
ec6a6fbe AK |
7269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7270 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7271 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7272 | ac_status=$? |
ec6a6fbe | 7273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7275 | { (case "(($ac_try" in |
7276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7277 | *) ac_try_echo=$ac_try;; | |
7278 | esac | |
ec6a6fbe AK |
7279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7280 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7281 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7282 | ac_status=$? |
ec6a6fbe | 7283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7284 | (exit $ac_status); }; }; then |
7285 | ac_cv_func_fork_works=yes | |
7286 | else | |
ec6a6fbe AK |
7287 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7288 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7289 | sed 's/^/| /' conftest.$ac_ext >&5 |
7290 | ||
7291 | ( exit $ac_status ) | |
7292 | ac_cv_func_fork_works=no | |
7293 | fi | |
ec6a6fbe | 7294 | rm -rf conftest.dSYM |
7a197a62 | 7295 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7296 | fi |
7a197a62 AK |
7297 | |
7298 | ||
ad6254c5 | 7299 | fi |
ec6a6fbe AK |
7300 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7301 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7302 | |
7303 | else | |
7304 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7305 | fi | |
7306 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7307 | case $host in | |
7308 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7309 | # Override, as these systems have only a dummy fork() stub | |
7310 | ac_cv_func_fork_works=no | |
7311 | ;; | |
7312 | *) | |
7313 | ac_cv_func_fork_works=yes | |
7314 | ;; | |
7315 | esac | |
ec6a6fbe AK |
7316 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7317 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7318 | fi |
7319 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7320 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7321 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7322 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7323 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7324 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7325 | else |
7326 | if test "$cross_compiling" = yes; then | |
7327 | ac_cv_func_vfork_works=cross | |
7328 | else | |
7329 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7330 | /* confdefs.h. */ |
7331 | _ACEOF | |
7332 | cat confdefs.h >>conftest.$ac_ext | |
7333 | cat >>conftest.$ac_ext <<_ACEOF | |
7334 | /* end confdefs.h. */ | |
7335 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7336 | $ac_includes_default |
ad6254c5 | 7337 | #include <sys/wait.h> |
25fbec5b | 7338 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7339 | # include <vfork.h> |
7340 | #endif | |
7341 | /* On some sparc systems, changes by the child to local and incoming | |
7342 | argument registers are propagated back to the parent. The compiler | |
7343 | is told about this with #include <vfork.h>, but some compilers | |
7344 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7345 | static variable whose address is put into a register that is | |
7346 | clobbered by the vfork. */ | |
7347 | static void | |
7348 | #ifdef __cplusplus | |
7349 | sparc_address_test (int arg) | |
7350 | # else | |
7351 | sparc_address_test (arg) int arg; | |
7352 | #endif | |
7353 | { | |
7354 | static pid_t child; | |
7355 | if (!child) { | |
7356 | child = vfork (); | |
7357 | if (child < 0) { | |
7358 | perror ("vfork"); | |
7359 | _exit(2); | |
7360 | } | |
7361 | if (!child) { | |
7362 | arg = getpid(); | |
7363 | write(-1, "", 0); | |
7364 | _exit (arg); | |
7365 | } | |
7366 | } | |
7367 | } | |
7368 | ||
7369 | int | |
7370 | main () | |
7371 | { | |
7372 | pid_t parent = getpid (); | |
7373 | pid_t child; | |
7374 | ||
7375 | sparc_address_test (0); | |
7376 | ||
7377 | child = vfork (); | |
7378 | ||
7379 | if (child == 0) { | |
7380 | /* Here is another test for sparc vfork register problems. This | |
7381 | test uses lots of local variables, at least as many local | |
7382 | variables as main has allocated so far including compiler | |
7383 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7384 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7385 | reuse the register of parent for one of the local variables, | |
7386 | since it will think that parent can't possibly be used any more | |
7387 | in this routine. Assigning to the local variable will thus | |
7388 | munge parent in the parent process. */ | |
7389 | pid_t | |
7390 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7391 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7392 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7393 | use the same hardware register for all 8 local variables. */ | |
7394 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7395 | || p != p5 || p != p6 || p != p7) | |
7396 | _exit(1); | |
7397 | ||
7398 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7399 | from child file descriptors. If the child closes a descriptor | |
7400 | before it execs or exits, this munges the parent's descriptor | |
7401 | as well. Test for this by closing stdout in the child. */ | |
7402 | _exit(close(fileno(stdout)) != 0); | |
7403 | } else { | |
7404 | int status; | |
7405 | struct stat st; | |
7406 | ||
7407 | while (wait(&status) != child) | |
7408 | ; | |
7a197a62 | 7409 | return ( |
ad6254c5 AK |
7410 | /* Was there some problem with vforking? */ |
7411 | child < 0 | |
7412 | ||
7413 | /* Did the child fail? (This shouldn't happen.) */ | |
7414 | || status | |
7415 | ||
7416 | /* Did the vfork/compiler bug occur? */ | |
7417 | || parent != getpid() | |
7418 | ||
7419 | /* Did the file descriptor bug occur? */ | |
7420 | || fstat(fileno(stdout), &st) != 0 | |
7421 | ); | |
7422 | } | |
7423 | } | |
7424 | _ACEOF | |
7425 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7426 | if { (ac_try="$ac_link" |
7427 | case "(($ac_try" in | |
7428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7429 | *) ac_try_echo=$ac_try;; | |
7430 | esac | |
ec6a6fbe AK |
7431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7432 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7433 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7434 | ac_status=$? |
ec6a6fbe | 7435 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7437 | { (case "(($ac_try" in |
7438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7439 | *) ac_try_echo=$ac_try;; | |
7440 | esac | |
ec6a6fbe AK |
7441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7442 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7443 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7444 | ac_status=$? |
ec6a6fbe | 7445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7446 | (exit $ac_status); }; }; then |
7447 | ac_cv_func_vfork_works=yes | |
7448 | else | |
ec6a6fbe AK |
7449 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7450 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7451 | sed 's/^/| /' conftest.$ac_ext >&5 |
7452 | ||
7453 | ( exit $ac_status ) | |
7454 | ac_cv_func_vfork_works=no | |
7455 | fi | |
ec6a6fbe | 7456 | rm -rf conftest.dSYM |
7a197a62 | 7457 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7458 | fi |
7a197a62 AK |
7459 | |
7460 | ||
ad6254c5 | 7461 | fi |
ec6a6fbe AK |
7462 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7463 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7464 | |
7465 | fi; | |
7466 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7467 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7468 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7469 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7470 | fi |
7471 | ||
7472 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7473 | ||
7474 | cat >>confdefs.h <<\_ACEOF | |
7475 | #define HAVE_WORKING_VFORK 1 | |
7476 | _ACEOF | |
7477 | ||
7478 | else | |
7479 | ||
7480 | cat >>confdefs.h <<\_ACEOF | |
7481 | #define vfork fork | |
7482 | _ACEOF | |
7483 | ||
7484 | fi | |
7485 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7486 | ||
7487 | cat >>confdefs.h <<\_ACEOF | |
7488 | #define HAVE_WORKING_FORK 1 | |
7489 | _ACEOF | |
7490 | ||
7491 | fi | |
7492 | ||
ec6a6fbe AK |
7493 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7494 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7495 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7496 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7497 | else |
7498 | rm -f conftest.sym conftest.file | |
7499 | echo >conftest.file | |
7500 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7501 | if test "$cross_compiling" = yes; then | |
7502 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7503 | else | |
7504 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7505 | /* confdefs.h. */ |
7506 | _ACEOF | |
7507 | cat confdefs.h >>conftest.$ac_ext | |
7508 | cat >>conftest.$ac_ext <<_ACEOF | |
7509 | /* end confdefs.h. */ | |
7510 | $ac_includes_default | |
7511 | int | |
7512 | main () | |
7513 | { | |
7514 | struct stat sbuf; | |
7515 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7516 | That is better in the sense that it means we will not |
7517 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7518 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7519 | ; |
7520 | return 0; | |
7521 | } | |
7522 | _ACEOF | |
7523 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7524 | if { (ac_try="$ac_link" |
7525 | case "(($ac_try" in | |
7526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7527 | *) ac_try_echo=$ac_try;; | |
7528 | esac | |
ec6a6fbe AK |
7529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7530 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7531 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7532 | ac_status=$? |
ec6a6fbe | 7533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7535 | { (case "(($ac_try" in |
7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7537 | *) ac_try_echo=$ac_try;; | |
7538 | esac | |
ec6a6fbe AK |
7539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7540 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7541 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7542 | ac_status=$? |
ec6a6fbe | 7543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7544 | (exit $ac_status); }; }; then |
7545 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7546 | else | |
ec6a6fbe AK |
7547 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7548 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7549 | sed 's/^/| /' conftest.$ac_ext >&5 |
7550 | ||
7551 | ( exit $ac_status ) | |
7552 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7553 | fi | |
ec6a6fbe | 7554 | rm -rf conftest.dSYM |
7a197a62 | 7555 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7556 | fi |
7a197a62 AK |
7557 | |
7558 | ||
ad6254c5 AK |
7559 | else |
7560 | # If the `ln -s' command failed, then we probably don't even | |
7561 | # have an lstat function. | |
7562 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7563 | fi | |
7564 | rm -f conftest.sym conftest.file | |
7565 | ||
7566 | fi | |
ec6a6fbe AK |
7567 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7568 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7569 | |
7570 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7571 | ||
7572 | cat >>confdefs.h <<_ACEOF | |
7573 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7574 | _ACEOF | |
7575 | ||
7576 | ||
7577 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7578 | case " $LIBOBJS " in |
8a2fc586 | 7579 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7580 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7581 | ;; | |
8a2fc586 AK |
7582 | esac |
7583 | ||
ad6254c5 AK |
7584 | fi |
7585 | ||
ec6a6fbe AK |
7586 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7587 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7588 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7589 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7590 | else |
7591 | if test "$cross_compiling" = yes; then | |
7592 | ac_cv_func_lstat_empty_string_bug=yes | |
7593 | else | |
7594 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7595 | /* confdefs.h. */ |
7596 | _ACEOF | |
7597 | cat confdefs.h >>conftest.$ac_ext | |
7598 | cat >>conftest.$ac_ext <<_ACEOF | |
7599 | /* end confdefs.h. */ | |
7600 | $ac_includes_default | |
7601 | int | |
7602 | main () | |
7603 | { | |
7604 | struct stat sbuf; | |
7a197a62 | 7605 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7606 | ; |
7607 | return 0; | |
7608 | } | |
7609 | _ACEOF | |
7610 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7611 | if { (ac_try="$ac_link" |
7612 | case "(($ac_try" in | |
7613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7614 | *) ac_try_echo=$ac_try;; | |
7615 | esac | |
ec6a6fbe AK |
7616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7617 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7618 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7619 | ac_status=$? |
ec6a6fbe | 7620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7622 | { (case "(($ac_try" in |
7623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7624 | *) ac_try_echo=$ac_try;; | |
7625 | esac | |
ec6a6fbe AK |
7626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7627 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7628 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7629 | ac_status=$? |
ec6a6fbe | 7630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7631 | (exit $ac_status); }; }; then |
7a197a62 | 7632 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7633 | else |
ec6a6fbe AK |
7634 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7635 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7636 | sed 's/^/| /' conftest.$ac_ext >&5 |
7637 | ||
7638 | ( exit $ac_status ) | |
7a197a62 | 7639 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7640 | fi |
ec6a6fbe | 7641 | rm -rf conftest.dSYM |
7a197a62 | 7642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7643 | fi |
7a197a62 AK |
7644 | |
7645 | ||
ad6254c5 | 7646 | fi |
ec6a6fbe AK |
7647 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7648 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7649 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7650 | case " $LIBOBJS " in |
8a2fc586 | 7651 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7652 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7653 | ;; | |
8a2fc586 AK |
7654 | esac |
7655 | ||
ad6254c5 AK |
7656 | |
7657 | cat >>confdefs.h <<_ACEOF | |
7658 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7659 | _ACEOF | |
7660 | ||
7661 | fi | |
7662 | ||
7663 | ||
7664 | for ac_header in stdlib.h | |
7665 | do | |
ec6a6fbe | 7666 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7668 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7669 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7671 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7672 | fi |
ec6a6fbe AK |
7673 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7674 | $as_echo "$as_val"'` | |
7675 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7676 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7677 | else |
7678 | # Is the header compilable? | |
ec6a6fbe AK |
7679 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7680 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7681 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7682 | /* confdefs.h. */ |
7683 | _ACEOF | |
7684 | cat confdefs.h >>conftest.$ac_ext | |
7685 | cat >>conftest.$ac_ext <<_ACEOF | |
7686 | /* end confdefs.h. */ | |
7687 | $ac_includes_default | |
7688 | #include <$ac_header> | |
7689 | _ACEOF | |
7690 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7691 | if { (ac_try="$ac_compile" |
7692 | case "(($ac_try" in | |
7693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7694 | *) ac_try_echo=$ac_try;; | |
7695 | esac | |
ec6a6fbe AK |
7696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7697 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7698 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7699 | ac_status=$? |
8a2fc586 AK |
7700 | grep -v '^ *+' conftest.er1 >conftest.err |
7701 | rm -f conftest.er1 | |
7702 | cat conftest.err >&5 | |
ec6a6fbe | 7703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7704 | (exit $ac_status); } && { |
7705 | test -z "$ac_c_werror_flag" || | |
7706 | test ! -s conftest.err | |
7707 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7708 | ac_header_compiler=yes |
7709 | else | |
ec6a6fbe | 7710 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7711 | sed 's/^/| /' conftest.$ac_ext >&5 |
7712 | ||
7a197a62 | 7713 | ac_header_compiler=no |
ad6254c5 | 7714 | fi |
7a197a62 AK |
7715 | |
7716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7717 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7718 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7719 | |
7720 | # Is the header present? | |
ec6a6fbe AK |
7721 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7722 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7723 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7724 | /* confdefs.h. */ |
7725 | _ACEOF | |
7726 | cat confdefs.h >>conftest.$ac_ext | |
7727 | cat >>conftest.$ac_ext <<_ACEOF | |
7728 | /* end confdefs.h. */ | |
7729 | #include <$ac_header> | |
7730 | _ACEOF | |
7a197a62 AK |
7731 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7732 | case "(($ac_try" in | |
7733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7734 | *) ac_try_echo=$ac_try;; | |
7735 | esac | |
ec6a6fbe AK |
7736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7737 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7739 | ac_status=$? |
7740 | grep -v '^ *+' conftest.er1 >conftest.err | |
7741 | rm -f conftest.er1 | |
7742 | cat conftest.err >&5 | |
ec6a6fbe | 7743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7744 | (exit $ac_status); } >/dev/null && { |
7745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7746 | test ! -s conftest.err | |
7747 | }; then | |
ad6254c5 AK |
7748 | ac_header_preproc=yes |
7749 | else | |
ec6a6fbe | 7750 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7751 | sed 's/^/| /' conftest.$ac_ext >&5 |
7752 | ||
7753 | ac_header_preproc=no | |
7754 | fi | |
7a197a62 | 7755 | |
ad6254c5 | 7756 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7757 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7758 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7759 | |
7760 | # So? What about this header? | |
8a2fc586 AK |
7761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7762 | yes:no: ) | |
ec6a6fbe AK |
7763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7764 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7766 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7767 | ac_header_preproc=yes |
ad6254c5 | 7768 | ;; |
8a2fc586 | 7769 | no:yes:* ) |
ec6a6fbe AK |
7770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7771 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7773 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7775 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7777 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7781 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7782 | |
ad6254c5 AK |
7783 | ;; |
7784 | esac | |
ec6a6fbe AK |
7785 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7786 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7788 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7789 | else |
8a2fc586 | 7790 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7791 | fi |
ec6a6fbe AK |
7792 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7793 | $as_echo "$as_val"'` | |
7794 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7795 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7796 | |
7797 | fi | |
ec6a6fbe AK |
7798 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7799 | $as_echo "$as_val"'` | |
7800 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7801 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7802 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7803 | _ACEOF |
7804 | ||
7805 | fi | |
7806 | ||
7807 | done | |
7808 | ||
ec6a6fbe AK |
7809 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7810 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7811 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7812 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7813 | else |
7814 | if test "$cross_compiling" = yes; then | |
7815 | ac_cv_func_malloc_0_nonnull=no | |
7816 | else | |
7817 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7818 | /* confdefs.h. */ |
7819 | _ACEOF | |
7820 | cat confdefs.h >>conftest.$ac_ext | |
7821 | cat >>conftest.$ac_ext <<_ACEOF | |
7822 | /* end confdefs.h. */ | |
25fbec5b | 7823 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7824 | # include <stdlib.h> |
7825 | #else | |
7826 | char *malloc (); | |
7827 | #endif | |
7828 | ||
7829 | int | |
7830 | main () | |
7831 | { | |
7a197a62 | 7832 | return ! malloc (0); |
ad6254c5 AK |
7833 | ; |
7834 | return 0; | |
7835 | } | |
7836 | _ACEOF | |
7837 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7838 | if { (ac_try="$ac_link" |
7839 | case "(($ac_try" in | |
7840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7841 | *) ac_try_echo=$ac_try;; | |
7842 | esac | |
ec6a6fbe AK |
7843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7844 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7845 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7846 | ac_status=$? |
ec6a6fbe | 7847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7848 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7849 | { (case "(($ac_try" in |
7850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7851 | *) ac_try_echo=$ac_try;; | |
7852 | esac | |
ec6a6fbe AK |
7853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7854 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7855 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7856 | ac_status=$? |
ec6a6fbe | 7857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7858 | (exit $ac_status); }; }; then |
7859 | ac_cv_func_malloc_0_nonnull=yes | |
7860 | else | |
ec6a6fbe AK |
7861 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7862 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7863 | sed 's/^/| /' conftest.$ac_ext >&5 |
7864 | ||
7865 | ( exit $ac_status ) | |
7866 | ac_cv_func_malloc_0_nonnull=no | |
7867 | fi | |
ec6a6fbe | 7868 | rm -rf conftest.dSYM |
7a197a62 | 7869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7870 | fi |
7a197a62 AK |
7871 | |
7872 | ||
ad6254c5 | 7873 | fi |
ec6a6fbe AK |
7874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7875 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7876 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7877 | ||
7878 | cat >>confdefs.h <<\_ACEOF | |
7879 | #define HAVE_MALLOC 1 | |
7880 | _ACEOF | |
7881 | ||
7882 | else | |
7883 | cat >>confdefs.h <<\_ACEOF | |
7884 | #define HAVE_MALLOC 0 | |
7885 | _ACEOF | |
7886 | ||
7a197a62 | 7887 | case " $LIBOBJS " in |
8a2fc586 | 7888 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7889 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7890 | ;; | |
8a2fc586 AK |
7891 | esac |
7892 | ||
ad6254c5 AK |
7893 | |
7894 | cat >>confdefs.h <<\_ACEOF | |
7895 | #define malloc rpl_malloc | |
7896 | _ACEOF | |
7897 | ||
7898 | fi | |
7899 | ||
7900 | ||
7901 | ||
ec6a6fbe AK |
7902 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7903 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 7904 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 7905 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7906 | else |
7907 | if test "$cross_compiling" = yes; then | |
7908 | ac_cv_func_memcmp_working=no | |
7909 | else | |
7910 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7911 | /* confdefs.h. */ |
7912 | _ACEOF | |
7913 | cat confdefs.h >>conftest.$ac_ext | |
7914 | cat >>conftest.$ac_ext <<_ACEOF | |
7915 | /* end confdefs.h. */ | |
8a2fc586 | 7916 | $ac_includes_default |
ad6254c5 AK |
7917 | int |
7918 | main () | |
7919 | { | |
7920 | ||
7921 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7922 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7923 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7924 | return 1; |
ad6254c5 AK |
7925 | |
7926 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7927 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7928 | William Lewis provided this test program. */ | |
7929 | { | |
7930 | char foo[21]; | |
7931 | char bar[21]; | |
7932 | int i; | |
7933 | for (i = 0; i < 4; i++) | |
7934 | { | |
8a2fc586 AK |
7935 | char *a = foo + i; |
7936 | char *b = bar + i; | |
7937 | strcpy (a, "--------01111111"); | |
7938 | strcpy (b, "--------10000000"); | |
7939 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7940 | return 1; |
ad6254c5 | 7941 | } |
7a197a62 | 7942 | return 0; |
ad6254c5 AK |
7943 | } |
7944 | ||
7945 | ; | |
7946 | return 0; | |
7947 | } | |
7948 | _ACEOF | |
7949 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7950 | if { (ac_try="$ac_link" |
7951 | case "(($ac_try" in | |
7952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7953 | *) ac_try_echo=$ac_try;; | |
7954 | esac | |
ec6a6fbe AK |
7955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7956 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7957 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7958 | ac_status=$? |
ec6a6fbe | 7959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7960 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7961 | { (case "(($ac_try" in |
7962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7963 | *) ac_try_echo=$ac_try;; | |
7964 | esac | |
ec6a6fbe AK |
7965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7966 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7967 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7968 | ac_status=$? |
ec6a6fbe | 7969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7970 | (exit $ac_status); }; }; then |
7971 | ac_cv_func_memcmp_working=yes | |
7972 | else | |
ec6a6fbe AK |
7973 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7974 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7975 | sed 's/^/| /' conftest.$ac_ext >&5 |
7976 | ||
7977 | ( exit $ac_status ) | |
7978 | ac_cv_func_memcmp_working=no | |
7979 | fi | |
ec6a6fbe | 7980 | rm -rf conftest.dSYM |
7a197a62 | 7981 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7982 | fi |
7a197a62 AK |
7983 | |
7984 | ||
ad6254c5 | 7985 | fi |
ec6a6fbe AK |
7986 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7987 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7988 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7989 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7990 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7991 | ;; | |
8a2fc586 AK |
7992 | esac |
7993 | ||
ad6254c5 AK |
7994 | |
7995 | ||
7996 | ||
7997 | for ac_header in stdlib.h unistd.h | |
7998 | do | |
ec6a6fbe | 7999 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8000 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8001 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8002 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8003 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8004 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8005 | fi |
ec6a6fbe AK |
8006 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8007 | $as_echo "$as_val"'` | |
8008 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8009 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8010 | else |
8011 | # Is the header compilable? | |
ec6a6fbe AK |
8012 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8013 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8014 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8015 | /* confdefs.h. */ |
8016 | _ACEOF | |
8017 | cat confdefs.h >>conftest.$ac_ext | |
8018 | cat >>conftest.$ac_ext <<_ACEOF | |
8019 | /* end confdefs.h. */ | |
8020 | $ac_includes_default | |
8021 | #include <$ac_header> | |
8022 | _ACEOF | |
8023 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8024 | if { (ac_try="$ac_compile" |
8025 | case "(($ac_try" in | |
8026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8027 | *) ac_try_echo=$ac_try;; | |
8028 | esac | |
ec6a6fbe AK |
8029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8030 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8031 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8032 | ac_status=$? |
8a2fc586 AK |
8033 | grep -v '^ *+' conftest.er1 >conftest.err |
8034 | rm -f conftest.er1 | |
8035 | cat conftest.err >&5 | |
ec6a6fbe | 8036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8037 | (exit $ac_status); } && { |
8038 | test -z "$ac_c_werror_flag" || | |
8039 | test ! -s conftest.err | |
8040 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8041 | ac_header_compiler=yes |
8042 | else | |
ec6a6fbe | 8043 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8044 | sed 's/^/| /' conftest.$ac_ext >&5 |
8045 | ||
7a197a62 | 8046 | ac_header_compiler=no |
ad6254c5 | 8047 | fi |
7a197a62 AK |
8048 | |
8049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8050 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8051 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8052 | |
8053 | # Is the header present? | |
ec6a6fbe AK |
8054 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8055 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8056 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8057 | /* confdefs.h. */ |
8058 | _ACEOF | |
8059 | cat confdefs.h >>conftest.$ac_ext | |
8060 | cat >>conftest.$ac_ext <<_ACEOF | |
8061 | /* end confdefs.h. */ | |
8062 | #include <$ac_header> | |
8063 | _ACEOF | |
7a197a62 AK |
8064 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8065 | case "(($ac_try" in | |
8066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8067 | *) ac_try_echo=$ac_try;; | |
8068 | esac | |
ec6a6fbe AK |
8069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8070 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8071 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8072 | ac_status=$? |
8073 | grep -v '^ *+' conftest.er1 >conftest.err | |
8074 | rm -f conftest.er1 | |
8075 | cat conftest.err >&5 | |
ec6a6fbe | 8076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8077 | (exit $ac_status); } >/dev/null && { |
8078 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8079 | test ! -s conftest.err | |
8080 | }; then | |
ad6254c5 AK |
8081 | ac_header_preproc=yes |
8082 | else | |
ec6a6fbe | 8083 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8084 | sed 's/^/| /' conftest.$ac_ext >&5 |
8085 | ||
8086 | ac_header_preproc=no | |
8087 | fi | |
7a197a62 | 8088 | |
ad6254c5 | 8089 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8090 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8091 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8092 | |
8093 | # So? What about this header? | |
8a2fc586 AK |
8094 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8095 | yes:no: ) | |
ec6a6fbe AK |
8096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8097 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8099 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8100 | ac_header_preproc=yes |
ad6254c5 | 8101 | ;; |
8a2fc586 | 8102 | no:yes:* ) |
ec6a6fbe AK |
8103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8104 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8106 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8107 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8108 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8109 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8110 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8111 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8112 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8113 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8114 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8115 | |
ad6254c5 AK |
8116 | ;; |
8117 | esac | |
ec6a6fbe AK |
8118 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8119 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8120 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8121 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8122 | else |
8a2fc586 | 8123 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8124 | fi |
ec6a6fbe AK |
8125 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8126 | $as_echo "$as_val"'` | |
8127 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8128 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8129 | |
8130 | fi | |
ec6a6fbe AK |
8131 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8132 | $as_echo "$as_val"'` | |
8133 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8134 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8135 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8136 | _ACEOF |
8137 | ||
8138 | fi | |
8139 | ||
8140 | done | |
8141 | ||
8142 | ||
8143 | for ac_func in getpagesize | |
8144 | do | |
ec6a6fbe AK |
8145 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8146 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8147 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8148 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8149 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8150 | else |
8151 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8152 | /* confdefs.h. */ |
8153 | _ACEOF | |
8154 | cat confdefs.h >>conftest.$ac_ext | |
8155 | cat >>conftest.$ac_ext <<_ACEOF | |
8156 | /* end confdefs.h. */ | |
8a2fc586 AK |
8157 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8158 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8159 | #define $ac_func innocuous_$ac_func | |
8160 | ||
ad6254c5 AK |
8161 | /* System header to define __stub macros and hopefully few prototypes, |
8162 | which can conflict with char $ac_func (); below. | |
8163 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8164 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8165 | |
ad6254c5 AK |
8166 | #ifdef __STDC__ |
8167 | # include <limits.h> | |
8168 | #else | |
8169 | # include <assert.h> | |
8170 | #endif | |
8a2fc586 AK |
8171 | |
8172 | #undef $ac_func | |
8173 | ||
7a197a62 AK |
8174 | /* Override any GCC internal prototype to avoid an error. |
8175 | Use char because int might match the return type of a GCC | |
8176 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8177 | #ifdef __cplusplus |
8178 | extern "C" | |
ad6254c5 | 8179 | #endif |
ad6254c5 AK |
8180 | char $ac_func (); |
8181 | /* The GNU C library defines this for functions which it implements | |
8182 | to always fail with ENOSYS. Some functions are actually named | |
8183 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8184 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8185 | choke me |
ad6254c5 AK |
8186 | #endif |
8187 | ||
8188 | int | |
8189 | main () | |
8190 | { | |
7a197a62 | 8191 | return $ac_func (); |
ad6254c5 AK |
8192 | ; |
8193 | return 0; | |
8194 | } | |
8195 | _ACEOF | |
8196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8197 | if { (ac_try="$ac_link" |
8198 | case "(($ac_try" in | |
8199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8200 | *) ac_try_echo=$ac_try;; | |
8201 | esac | |
ec6a6fbe AK |
8202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8203 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8204 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8205 | ac_status=$? |
8a2fc586 AK |
8206 | grep -v '^ *+' conftest.er1 >conftest.err |
8207 | rm -f conftest.er1 | |
8208 | cat conftest.err >&5 | |
ec6a6fbe | 8209 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8210 | (exit $ac_status); } && { |
8211 | test -z "$ac_c_werror_flag" || | |
8212 | test ! -s conftest.err | |
ec6a6fbe AK |
8213 | } && test -s conftest$ac_exeext && { |
8214 | test "$cross_compiling" = yes || | |
8215 | $as_test_x conftest$ac_exeext | |
8216 | }; then | |
ad6254c5 AK |
8217 | eval "$as_ac_var=yes" |
8218 | else | |
ec6a6fbe | 8219 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8220 | sed 's/^/| /' conftest.$ac_ext >&5 |
8221 | ||
7a197a62 | 8222 | eval "$as_ac_var=no" |
ad6254c5 | 8223 | fi |
7a197a62 | 8224 | |
ec6a6fbe | 8225 | rm -rf conftest.dSYM |
25fbec5b | 8226 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8227 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8228 | fi |
ec6a6fbe AK |
8229 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8230 | $as_echo "$as_val"'` | |
8231 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8232 | $as_echo "$ac_res" >&6; } | |
8233 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8234 | $as_echo "$as_val"'` | |
8235 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8236 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8237 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8238 | _ACEOF |
8239 | ||
8240 | fi | |
8241 | done | |
8242 | ||
ec6a6fbe AK |
8243 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8244 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8245 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8246 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8247 | else |
8248 | if test "$cross_compiling" = yes; then | |
8249 | ac_cv_func_mmap_fixed_mapped=no | |
8250 | else | |
8251 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8252 | /* confdefs.h. */ |
8253 | _ACEOF | |
8254 | cat confdefs.h >>conftest.$ac_ext | |
8255 | cat >>conftest.$ac_ext <<_ACEOF | |
8256 | /* end confdefs.h. */ | |
8257 | $ac_includes_default | |
8258 | /* malloc might have been renamed as rpl_malloc. */ | |
8259 | #undef malloc | |
8260 | ||
8261 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8262 | Here is a matrix of mmap possibilities: | |
8263 | mmap private not fixed | |
8264 | mmap private fixed at somewhere currently unmapped | |
8265 | mmap private fixed at somewhere already mapped | |
8266 | mmap shared not fixed | |
8267 | mmap shared fixed at somewhere currently unmapped | |
8268 | mmap shared fixed at somewhere already mapped | |
8269 | For private mappings, we should verify that changes cannot be read() | |
8270 | back from the file, nor mmap's back from the file at a different | |
8271 | address. (There have been systems where private was not correctly | |
8272 | implemented like the infamous i386 svr4.0, and systems where the | |
8273 | VM page cache was not coherent with the file system buffer cache | |
8274 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8275 | For shared mappings, we should conversely verify that changes get | |
8276 | propagated back to all the places they're supposed to be. | |
8277 | ||
8278 | Grep wants private fixed already mapped. | |
8279 | The main things grep needs to know about mmap are: | |
8280 | * does it exist and is it safe to write into the mmap'd area | |
8281 | * how to use it (BSD variants) */ | |
8282 | ||
8283 | #include <fcntl.h> | |
8284 | #include <sys/mman.h> | |
8285 | ||
25fbec5b | 8286 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8287 | char *malloc (); |
8288 | #endif | |
8289 | ||
8290 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8291 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8292 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8293 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8294 | # define HAVE_SYS_PARAM_H 1 |
8295 | # endif | |
8296 | ||
8297 | # ifdef _SC_PAGESIZE | |
8298 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8299 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8300 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8301 | # include <sys/param.h> |
8302 | # ifdef EXEC_PAGESIZE | |
8303 | # define getpagesize() EXEC_PAGESIZE | |
8304 | # else /* no EXEC_PAGESIZE */ | |
8305 | # ifdef NBPG | |
8306 | # define getpagesize() NBPG * CLSIZE | |
8307 | # ifndef CLSIZE | |
8308 | # define CLSIZE 1 | |
8309 | # endif /* no CLSIZE */ | |
8310 | # else /* no NBPG */ | |
8311 | # ifdef NBPC | |
8312 | # define getpagesize() NBPC | |
8313 | # else /* no NBPC */ | |
8314 | # ifdef PAGESIZE | |
8315 | # define getpagesize() PAGESIZE | |
8316 | # endif /* PAGESIZE */ | |
8317 | # endif /* no NBPC */ | |
8318 | # endif /* no NBPG */ | |
8319 | # endif /* no EXEC_PAGESIZE */ | |
8320 | # else /* no HAVE_SYS_PARAM_H */ | |
8321 | # define getpagesize() 8192 /* punt totally */ | |
8322 | # endif /* no HAVE_SYS_PARAM_H */ | |
8323 | # endif /* no _SC_PAGESIZE */ | |
8324 | ||
8325 | #endif /* no HAVE_GETPAGESIZE */ | |
8326 | ||
8327 | int | |
8328 | main () | |
8329 | { | |
8330 | char *data, *data2, *data3; | |
8331 | int i, pagesize; | |
8332 | int fd; | |
8333 | ||
8334 | pagesize = getpagesize (); | |
8335 | ||
8336 | /* First, make a file with some known garbage in it. */ | |
8337 | data = (char *) malloc (pagesize); | |
8338 | if (!data) | |
7a197a62 | 8339 | return 1; |
ad6254c5 AK |
8340 | for (i = 0; i < pagesize; ++i) |
8341 | *(data + i) = rand (); | |
8342 | umask (0); | |
8343 | fd = creat ("conftest.mmap", 0600); | |
8344 | if (fd < 0) | |
7a197a62 | 8345 | return 1; |
ad6254c5 | 8346 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8347 | return 1; |
ad6254c5 AK |
8348 | close (fd); |
8349 | ||
8350 | /* Next, try to mmap the file at a fixed address which already has | |
8351 | something else allocated at it. If we can, also make sure that | |
8352 | we see the same garbage. */ | |
8353 | fd = open ("conftest.mmap", O_RDWR); | |
8354 | if (fd < 0) | |
7a197a62 | 8355 | return 1; |
ad6254c5 AK |
8356 | data2 = (char *) malloc (2 * pagesize); |
8357 | if (!data2) | |
7a197a62 AK |
8358 | return 1; |
8359 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8360 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8361 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8362 | return 1; |
ad6254c5 AK |
8363 | for (i = 0; i < pagesize; ++i) |
8364 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8365 | return 1; |
ad6254c5 AK |
8366 | |
8367 | /* Finally, make sure that changes to the mapped area do not | |
8368 | percolate back to the file as seen by read(). (This is a bug on | |
8369 | some variants of i386 svr4.0.) */ | |
8370 | for (i = 0; i < pagesize; ++i) | |
8371 | *(data2 + i) = *(data2 + i) + 1; | |
8372 | data3 = (char *) malloc (pagesize); | |
8373 | if (!data3) | |
7a197a62 | 8374 | return 1; |
ad6254c5 | 8375 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8376 | return 1; |
ad6254c5 AK |
8377 | for (i = 0; i < pagesize; ++i) |
8378 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8379 | return 1; |
ad6254c5 | 8380 | close (fd); |
7a197a62 | 8381 | return 0; |
ad6254c5 AK |
8382 | } |
8383 | _ACEOF | |
8384 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8385 | if { (ac_try="$ac_link" |
8386 | case "(($ac_try" in | |
8387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8388 | *) ac_try_echo=$ac_try;; | |
8389 | esac | |
ec6a6fbe AK |
8390 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8391 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8392 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8393 | ac_status=$? |
ec6a6fbe | 8394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8395 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8396 | { (case "(($ac_try" in |
8397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8398 | *) ac_try_echo=$ac_try;; | |
8399 | esac | |
ec6a6fbe AK |
8400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8401 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8402 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8403 | ac_status=$? |
ec6a6fbe | 8404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8405 | (exit $ac_status); }; }; then |
8406 | ac_cv_func_mmap_fixed_mapped=yes | |
8407 | else | |
ec6a6fbe AK |
8408 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8409 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8410 | sed 's/^/| /' conftest.$ac_ext >&5 |
8411 | ||
8412 | ( exit $ac_status ) | |
8413 | ac_cv_func_mmap_fixed_mapped=no | |
8414 | fi | |
ec6a6fbe | 8415 | rm -rf conftest.dSYM |
7a197a62 | 8416 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8417 | fi |
7a197a62 AK |
8418 | |
8419 | ||
ad6254c5 | 8420 | fi |
ec6a6fbe AK |
8421 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8422 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8423 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8424 | ||
8425 | cat >>confdefs.h <<\_ACEOF | |
8426 | #define HAVE_MMAP 1 | |
8427 | _ACEOF | |
8428 | ||
8429 | fi | |
8430 | rm -f conftest.mmap | |
8431 | ||
ec6a6fbe AK |
8432 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8433 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8434 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8435 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8436 | else |
8437 | if test "$cross_compiling" = yes; then | |
8438 | ac_cv_func_stat_empty_string_bug=yes | |
8439 | else | |
8440 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8441 | /* confdefs.h. */ |
8442 | _ACEOF | |
8443 | cat confdefs.h >>conftest.$ac_ext | |
8444 | cat >>conftest.$ac_ext <<_ACEOF | |
8445 | /* end confdefs.h. */ | |
8446 | $ac_includes_default | |
8447 | int | |
8448 | main () | |
8449 | { | |
8450 | struct stat sbuf; | |
7a197a62 | 8451 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8452 | ; |
8453 | return 0; | |
8454 | } | |
8455 | _ACEOF | |
8456 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8457 | if { (ac_try="$ac_link" |
8458 | case "(($ac_try" in | |
8459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8460 | *) ac_try_echo=$ac_try;; | |
8461 | esac | |
ec6a6fbe AK |
8462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8463 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8464 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8465 | ac_status=$? |
ec6a6fbe | 8466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8467 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8468 | { (case "(($ac_try" in |
8469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8470 | *) ac_try_echo=$ac_try;; | |
8471 | esac | |
ec6a6fbe AK |
8472 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8473 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8474 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8475 | ac_status=$? |
ec6a6fbe | 8476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8477 | (exit $ac_status); }; }; then |
7a197a62 | 8478 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8479 | else |
ec6a6fbe AK |
8480 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8481 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8482 | sed 's/^/| /' conftest.$ac_ext >&5 |
8483 | ||
8484 | ( exit $ac_status ) | |
7a197a62 | 8485 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8486 | fi |
ec6a6fbe | 8487 | rm -rf conftest.dSYM |
7a197a62 | 8488 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8489 | fi |
7a197a62 AK |
8490 | |
8491 | ||
ad6254c5 | 8492 | fi |
ec6a6fbe AK |
8493 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8494 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8495 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8496 | case " $LIBOBJS " in |
8a2fc586 | 8497 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8498 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8499 | ;; | |
8a2fc586 AK |
8500 | esac |
8501 | ||
ad6254c5 AK |
8502 | |
8503 | cat >>confdefs.h <<_ACEOF | |
8504 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8505 | _ACEOF | |
8506 | ||
8507 | fi | |
8508 | ||
ec6a6fbe AK |
8509 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8510 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8511 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8512 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8513 | else |
8514 | if test "$cross_compiling" = yes; then | |
8515 | ac_cv_func_strtod=no | |
8516 | else | |
8517 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8518 | /* confdefs.h. */ |
8519 | _ACEOF | |
8520 | cat confdefs.h >>conftest.$ac_ext | |
8521 | cat >>conftest.$ac_ext <<_ACEOF | |
8522 | /* end confdefs.h. */ | |
8523 | ||
7a197a62 AK |
8524 | $ac_includes_default |
8525 | #ifndef strtod | |
ad6254c5 | 8526 | double strtod (); |
7a197a62 | 8527 | #endif |
ad6254c5 AK |
8528 | int |
8529 | main() | |
8530 | { | |
8531 | { | |
8532 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8533 | char *string = " +69"; | |
8534 | char *term; | |
8535 | double value; | |
8536 | value = strtod (string, &term); | |
8537 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8538 | return 1; |
ad6254c5 AK |
8539 | } |
8540 | ||
8541 | { | |
8542 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8543 | terminating character under some conditions. */ | |
8544 | char *string = "NaN"; | |
8545 | char *term; | |
8546 | strtod (string, &term); | |
8547 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8548 | return 1; |
ad6254c5 | 8549 | } |
7a197a62 | 8550 | return 0; |
ad6254c5 AK |
8551 | } |
8552 | ||
8553 | _ACEOF | |
8554 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8555 | if { (ac_try="$ac_link" |
8556 | case "(($ac_try" in | |
8557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8558 | *) ac_try_echo=$ac_try;; | |
8559 | esac | |
ec6a6fbe AK |
8560 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8561 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8562 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8563 | ac_status=$? |
ec6a6fbe | 8564 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8565 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8566 | { (case "(($ac_try" in |
8567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8568 | *) ac_try_echo=$ac_try;; | |
8569 | esac | |
ec6a6fbe AK |
8570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8571 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8572 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8573 | ac_status=$? |
ec6a6fbe | 8574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8575 | (exit $ac_status); }; }; then |
8576 | ac_cv_func_strtod=yes | |
8577 | else | |
ec6a6fbe AK |
8578 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8579 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8580 | sed 's/^/| /' conftest.$ac_ext >&5 |
8581 | ||
8582 | ( exit $ac_status ) | |
8583 | ac_cv_func_strtod=no | |
8584 | fi | |
ec6a6fbe | 8585 | rm -rf conftest.dSYM |
7a197a62 | 8586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8587 | fi |
7a197a62 AK |
8588 | |
8589 | ||
ad6254c5 | 8590 | fi |
ec6a6fbe AK |
8591 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8592 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8593 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8594 | case " $LIBOBJS " in |
8a2fc586 | 8595 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8596 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8597 | ;; | |
8a2fc586 AK |
8598 | esac |
8599 | ||
ec6a6fbe AK |
8600 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8601 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8602 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8603 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8604 | else |
8605 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8606 | /* confdefs.h. */ |
8607 | _ACEOF | |
8608 | cat confdefs.h >>conftest.$ac_ext | |
8609 | cat >>conftest.$ac_ext <<_ACEOF | |
8610 | /* end confdefs.h. */ | |
8a2fc586 AK |
8611 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8612 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8613 | #define pow innocuous_pow | |
8614 | ||
ad6254c5 AK |
8615 | /* System header to define __stub macros and hopefully few prototypes, |
8616 | which can conflict with char pow (); below. | |
8617 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8618 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8619 | |
ad6254c5 AK |
8620 | #ifdef __STDC__ |
8621 | # include <limits.h> | |
8622 | #else | |
8623 | # include <assert.h> | |
8624 | #endif | |
8a2fc586 AK |
8625 | |
8626 | #undef pow | |
8627 | ||
7a197a62 AK |
8628 | /* Override any GCC internal prototype to avoid an error. |
8629 | Use char because int might match the return type of a GCC | |
8630 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8631 | #ifdef __cplusplus |
8632 | extern "C" | |
ad6254c5 | 8633 | #endif |
ad6254c5 AK |
8634 | char pow (); |
8635 | /* The GNU C library defines this for functions which it implements | |
8636 | to always fail with ENOSYS. Some functions are actually named | |
8637 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8638 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8639 | choke me |
ad6254c5 AK |
8640 | #endif |
8641 | ||
8642 | int | |
8643 | main () | |
8644 | { | |
7a197a62 | 8645 | return pow (); |
ad6254c5 AK |
8646 | ; |
8647 | return 0; | |
8648 | } | |
8649 | _ACEOF | |
8650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8651 | if { (ac_try="$ac_link" |
8652 | case "(($ac_try" in | |
8653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8654 | *) ac_try_echo=$ac_try;; | |
8655 | esac | |
ec6a6fbe AK |
8656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8657 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8658 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8659 | ac_status=$? |
8a2fc586 AK |
8660 | grep -v '^ *+' conftest.er1 >conftest.err |
8661 | rm -f conftest.er1 | |
8662 | cat conftest.err >&5 | |
ec6a6fbe | 8663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8664 | (exit $ac_status); } && { |
8665 | test -z "$ac_c_werror_flag" || | |
8666 | test ! -s conftest.err | |
ec6a6fbe AK |
8667 | } && test -s conftest$ac_exeext && { |
8668 | test "$cross_compiling" = yes || | |
8669 | $as_test_x conftest$ac_exeext | |
8670 | }; then | |
ad6254c5 AK |
8671 | ac_cv_func_pow=yes |
8672 | else | |
ec6a6fbe | 8673 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8674 | sed 's/^/| /' conftest.$ac_ext >&5 |
8675 | ||
7a197a62 | 8676 | ac_cv_func_pow=no |
ad6254c5 | 8677 | fi |
7a197a62 | 8678 | |
ec6a6fbe | 8679 | rm -rf conftest.dSYM |
25fbec5b | 8680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8681 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8682 | fi |
ec6a6fbe AK |
8683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8684 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8685 | |
8686 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8687 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8688 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8689 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8690 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8691 | else |
8692 | ac_check_lib_save_LIBS=$LIBS | |
8693 | LIBS="-lm $LIBS" | |
8694 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8695 | /* confdefs.h. */ |
8696 | _ACEOF | |
8697 | cat confdefs.h >>conftest.$ac_ext | |
8698 | cat >>conftest.$ac_ext <<_ACEOF | |
8699 | /* end confdefs.h. */ | |
8700 | ||
7a197a62 AK |
8701 | /* Override any GCC internal prototype to avoid an error. |
8702 | Use char because int might match the return type of a GCC | |
8703 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8704 | #ifdef __cplusplus |
8705 | extern "C" | |
8706 | #endif | |
ad6254c5 AK |
8707 | char pow (); |
8708 | int | |
8709 | main () | |
8710 | { | |
7a197a62 | 8711 | return pow (); |
ad6254c5 AK |
8712 | ; |
8713 | return 0; | |
8714 | } | |
8715 | _ACEOF | |
8716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8717 | if { (ac_try="$ac_link" |
8718 | case "(($ac_try" in | |
8719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8720 | *) ac_try_echo=$ac_try;; | |
8721 | esac | |
ec6a6fbe AK |
8722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8723 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8724 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8725 | ac_status=$? |
8a2fc586 AK |
8726 | grep -v '^ *+' conftest.er1 >conftest.err |
8727 | rm -f conftest.er1 | |
8728 | cat conftest.err >&5 | |
ec6a6fbe | 8729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8730 | (exit $ac_status); } && { |
8731 | test -z "$ac_c_werror_flag" || | |
8732 | test ! -s conftest.err | |
ec6a6fbe AK |
8733 | } && test -s conftest$ac_exeext && { |
8734 | test "$cross_compiling" = yes || | |
8735 | $as_test_x conftest$ac_exeext | |
8736 | }; then | |
ad6254c5 AK |
8737 | ac_cv_lib_m_pow=yes |
8738 | else | |
ec6a6fbe | 8739 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8740 | sed 's/^/| /' conftest.$ac_ext >&5 |
8741 | ||
7a197a62 | 8742 | ac_cv_lib_m_pow=no |
ad6254c5 | 8743 | fi |
7a197a62 | 8744 | |
ec6a6fbe | 8745 | rm -rf conftest.dSYM |
25fbec5b | 8746 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8747 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8748 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8749 | fi |
ec6a6fbe AK |
8750 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8751 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8752 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8753 | POW_LIB=-lm |
8754 | else | |
ec6a6fbe AK |
8755 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8756 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8757 | fi |
72b2cb61 | 8758 | |
d0191583 | 8759 | fi |
72b2cb61 | 8760 | |
ad6254c5 AK |
8761 | fi |
8762 | ||
ad6254c5 | 8763 | |
d0191583 JM |
8764 | for ac_func in vprintf |
8765 | do | |
ec6a6fbe AK |
8766 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8767 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8768 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8769 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8770 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8771 | else |
d0191583 JM |
8772 | cat >conftest.$ac_ext <<_ACEOF |
8773 | /* confdefs.h. */ | |
8774 | _ACEOF | |
8775 | cat confdefs.h >>conftest.$ac_ext | |
8776 | cat >>conftest.$ac_ext <<_ACEOF | |
8777 | /* end confdefs.h. */ | |
8778 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8779 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8780 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8781 | |
d0191583 JM |
8782 | /* System header to define __stub macros and hopefully few prototypes, |
8783 | which can conflict with char $ac_func (); below. | |
8784 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8785 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8786 | |
d0191583 JM |
8787 | #ifdef __STDC__ |
8788 | # include <limits.h> | |
8789 | #else | |
8790 | # include <assert.h> | |
8791 | #endif | |
ad6254c5 | 8792 | |
d0191583 | 8793 | #undef $ac_func |
72b2cb61 | 8794 | |
d0191583 JM |
8795 | /* Override any GCC internal prototype to avoid an error. |
8796 | Use char because int might match the return type of a GCC | |
8797 | builtin and then its argument prototype would still apply. */ | |
8798 | #ifdef __cplusplus | |
8799 | extern "C" | |
8800 | #endif | |
8801 | char $ac_func (); | |
8802 | /* The GNU C library defines this for functions which it implements | |
8803 | to always fail with ENOSYS. Some functions are actually named | |
8804 | something starting with __ and the normal name is an alias. */ | |
8805 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8806 | choke me | |
8807 | #endif | |
8808 | ||
8809 | int | |
8810 | main () | |
8811 | { | |
8812 | return $ac_func (); | |
8813 | ; | |
8814 | return 0; | |
8815 | } | |
72b2cb61 | 8816 | _ACEOF |
d0191583 JM |
8817 | rm -f conftest.$ac_objext conftest$ac_exeext |
8818 | if { (ac_try="$ac_link" | |
8819 | case "(($ac_try" in | |
8820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8821 | *) ac_try_echo=$ac_try;; | |
8822 | esac | |
ec6a6fbe AK |
8823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8824 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8825 | (eval "$ac_link") 2>conftest.er1 |
8826 | ac_status=$? | |
8827 | grep -v '^ *+' conftest.er1 >conftest.err | |
8828 | rm -f conftest.er1 | |
8829 | cat conftest.err >&5 | |
ec6a6fbe | 8830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8831 | (exit $ac_status); } && { |
8832 | test -z "$ac_c_werror_flag" || | |
8833 | test ! -s conftest.err | |
ec6a6fbe AK |
8834 | } && test -s conftest$ac_exeext && { |
8835 | test "$cross_compiling" = yes || | |
8836 | $as_test_x conftest$ac_exeext | |
8837 | }; then | |
d0191583 JM |
8838 | eval "$as_ac_var=yes" |
8839 | else | |
ec6a6fbe | 8840 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8841 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8842 | |
d0191583 | 8843 | eval "$as_ac_var=no" |
ad6254c5 AK |
8844 | fi |
8845 | ||
ec6a6fbe | 8846 | rm -rf conftest.dSYM |
d0191583 JM |
8847 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8848 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8849 | fi |
ec6a6fbe AK |
8850 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8851 | $as_echo "$as_val"'` | |
8852 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8853 | $as_echo "$ac_res" >&6; } | |
8854 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8855 | $as_echo "$as_val"'` | |
8856 | if test "x$as_val" = x""yes; then | |
d0191583 | 8857 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8858 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8859 | _ACEOF |
7a197a62 | 8860 | |
ec6a6fbe AK |
8861 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8862 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8863 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8864 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8865 | else |
d0191583 JM |
8866 | cat >conftest.$ac_ext <<_ACEOF |
8867 | /* confdefs.h. */ | |
8868 | _ACEOF | |
8869 | cat confdefs.h >>conftest.$ac_ext | |
8870 | cat >>conftest.$ac_ext <<_ACEOF | |
8871 | /* end confdefs.h. */ | |
8872 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8873 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8874 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8875 | |
d0191583 JM |
8876 | /* System header to define __stub macros and hopefully few prototypes, |
8877 | which can conflict with char _doprnt (); below. | |
8878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8879 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8880 | |
d0191583 JM |
8881 | #ifdef __STDC__ |
8882 | # include <limits.h> | |
8883 | #else | |
8884 | # include <assert.h> | |
8885 | #endif | |
72b2cb61 | 8886 | |
d0191583 JM |
8887 | #undef _doprnt |
8888 | ||
8889 | /* Override any GCC internal prototype to avoid an error. | |
8890 | Use char because int might match the return type of a GCC | |
8891 | builtin and then its argument prototype would still apply. */ | |
8892 | #ifdef __cplusplus | |
8893 | extern "C" | |
8894 | #endif | |
8895 | char _doprnt (); | |
8896 | /* The GNU C library defines this for functions which it implements | |
8897 | to always fail with ENOSYS. Some functions are actually named | |
8898 | something starting with __ and the normal name is an alias. */ | |
8899 | #if defined __stub__doprnt || defined __stub____doprnt | |
8900 | choke me | |
8901 | #endif | |
8902 | ||
8903 | int | |
8904 | main () | |
8905 | { | |
8906 | return _doprnt (); | |
8907 | ; | |
8908 | return 0; | |
8909 | } | |
72b2cb61 | 8910 | _ACEOF |
d0191583 JM |
8911 | rm -f conftest.$ac_objext conftest$ac_exeext |
8912 | if { (ac_try="$ac_link" | |
8913 | case "(($ac_try" in | |
8914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8915 | *) ac_try_echo=$ac_try;; | |
8916 | esac | |
ec6a6fbe AK |
8917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8918 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8919 | (eval "$ac_link") 2>conftest.er1 |
8920 | ac_status=$? | |
8921 | grep -v '^ *+' conftest.er1 >conftest.err | |
8922 | rm -f conftest.er1 | |
8923 | cat conftest.err >&5 | |
ec6a6fbe | 8924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8925 | (exit $ac_status); } && { |
8926 | test -z "$ac_c_werror_flag" || | |
8927 | test ! -s conftest.err | |
ec6a6fbe AK |
8928 | } && test -s conftest$ac_exeext && { |
8929 | test "$cross_compiling" = yes || | |
8930 | $as_test_x conftest$ac_exeext | |
8931 | }; then | |
d0191583 JM |
8932 | ac_cv_func__doprnt=yes |
8933 | else | |
ec6a6fbe | 8934 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8935 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8936 | |
d0191583 | 8937 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8938 | fi |
8939 | ||
ec6a6fbe | 8940 | rm -rf conftest.dSYM |
d0191583 JM |
8941 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8942 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8943 | fi |
ec6a6fbe AK |
8944 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8945 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
8946 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 8947 | |
d0191583 JM |
8948 | cat >>confdefs.h <<\_ACEOF |
8949 | #define HAVE_DOPRNT 1 | |
8950 | _ACEOF | |
ad6254c5 | 8951 | |
7a197a62 AK |
8952 | fi |
8953 | ||
d0191583 JM |
8954 | fi |
8955 | done | |
8b1a3214 | 8956 | |
ad6254c5 | 8957 | |
7a197a62 | 8958 | |
9c961554 | 8959 | ################################################################################ |
ec6a6fbe AK |
8960 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8961 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
8962 | # Check whether --enable-static_link was given. |
8963 | if test "${enable_static_link+set}" = set; then | |
8964 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8965 | else | |
8966 | STATIC_LINK=no | |
8967 | fi | |
8968 | ||
ec6a6fbe AK |
8969 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8970 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 8971 | |
d0191583 | 8972 | ################################################################################ |
ad6254c5 | 8973 | |
ad6254c5 AK |
8974 | |
8975 | ################################################################################ | |
ec6a6fbe AK |
8976 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
8977 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
8978 | OWNER="root" |
8979 | ||
8980 | ||
8981 | # Check whether --with-user was given. | |
8982 | if test "${with_user+set}" = set; then | |
8983 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8984 | fi |
8985 | ||
ec6a6fbe AK |
8986 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
8987 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 8988 | |
d0191583 JM |
8989 | if test x$OWNER != x; then |
8990 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8991 | fi |
8992 | ||
8993 | ################################################################################ | |
ec6a6fbe AK |
8994 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
8995 | $as_echo_n "checking group owner... " >&6; } | |
d0191583 | 8996 | GROUP="root" |
ad6254c5 | 8997 | |
d0191583 JM |
8998 | # Check whether --with-group was given. |
8999 | if test "${with_group+set}" = set; then | |
9000 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
9001 | fi |
9002 | ||
ec6a6fbe AK |
9003 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
9004 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
9005 | |
9006 | if test x$GROUP != x; then | |
9007 | GROUP="-g $GROUP" | |
9008 | fi | |
ad6254c5 | 9009 | |
24bbc4d7 | 9010 | ################################################################################ |
ec6a6fbe AK |
9011 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9012 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9013 | |
9014 | ||
9015 | # Check whether --with-device-uid was given. | |
9016 | if test "${with_device_uid+set}" = set; then | |
9017 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9018 | else | |
9019 | DM_DEVICE_UID="0" | |
9020 | fi | |
9021 | ||
ec6a6fbe AK |
9022 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9023 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9024 | |
9025 | ################################################################################ | |
ec6a6fbe AK |
9026 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9027 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9028 | |
9029 | ||
9030 | # Check whether --with-device-gid was given. | |
9031 | if test "${with_device_gid+set}" = set; then | |
9032 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9033 | else | |
9034 | DM_DEVICE_GID="0" | |
9035 | fi | |
9036 | ||
ec6a6fbe AK |
9037 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9038 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9039 | |
93bd259b | 9040 | ################################################################################ |
ec6a6fbe AK |
9041 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9042 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9043 | |
9044 | ||
9045 | # Check whether --with-device-mode was given. | |
9046 | if test "${with_device_mode+set}" = set; then | |
9047 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9048 | else | |
9049 | DM_DEVICE_MODE="0600" | |
9050 | fi | |
9051 | ||
ec6a6fbe AK |
9052 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9053 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9054 | |
ad6254c5 | 9055 | ################################################################################ |
ec6a6fbe AK |
9056 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9057 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9058 | # Check whether --enable-lvm1_fallback was given. |
9059 | if test "${enable_lvm1_fallback+set}" = set; then | |
9060 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9061 | else | |
9062 | LVM1_FALLBACK=no | |
7a197a62 AK |
9063 | fi |
9064 | ||
ec6a6fbe AK |
9065 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9066 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9067 | |
d0191583 | 9068 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9069 | |
9070 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9071 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9072 | _ACEOF |
9073 | ||
ad6254c5 AK |
9074 | fi |
9075 | ||
9076 | ################################################################################ | |
ec6a6fbe AK |
9077 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9078 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9079 | |
9080 | # Check whether --with-lvm1 was given. | |
9081 | if test "${with_lvm1+set}" = set; then | |
9082 | withval=$with_lvm1; LVM1="$withval" | |
9083 | else | |
9084 | LVM1="internal" | |
7a197a62 AK |
9085 | fi |
9086 | ||
ec6a6fbe AK |
9087 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9088 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9089 | |
d0191583 | 9090 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9091 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9092 | " >&5 |
ec6a6fbe | 9093 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9094 | " >&2;} |
9095 | { (exit 1); exit 1; }; } | |
9096 | fi; | |
9097 | ||
9098 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9099 | |
9100 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9101 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9102 | _ACEOF |
9103 | ||
ad6254c5 AK |
9104 | fi |
9105 | ||
9106 | ################################################################################ | |
ec6a6fbe AK |
9107 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9108 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9109 | |
9110 | # Check whether --with-pool was given. | |
9111 | if test "${with_pool+set}" = set; then | |
9112 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9113 | else |
d0191583 | 9114 | POOL="internal" |
7a197a62 AK |
9115 | fi |
9116 | ||
ec6a6fbe AK |
9117 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9118 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9119 | |
d0191583 | 9120 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9121 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9122 | " >&5 |
ec6a6fbe | 9123 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9124 | " >&2;} |
9125 | { (exit 1); exit 1; }; } | |
9126 | fi; | |
7a197a62 | 9127 | |
d0191583 JM |
9128 | if test x$POOL = xinternal; then |
9129 | ||
9130 | cat >>confdefs.h <<\_ACEOF | |
9131 | #define POOL_INTERNAL 1 | |
9132 | _ACEOF | |
9133 | ||
9134 | fi | |
ad6254c5 | 9135 | |
06f62ad1 | 9136 | ################################################################################ |
ec6a6fbe AK |
9137 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9138 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9139 | |
9140 | # Check whether --with-cluster was given. | |
9141 | if test "${with_cluster+set}" = set; then | |
9142 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9143 | fi |
9144 | ||
ec6a6fbe AK |
9145 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9146 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9147 | |
d0191583 | 9148 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9149 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9150 | " >&5 |
ec6a6fbe | 9151 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9152 | " >&2;} |
9153 | { (exit 1); exit 1; }; } | |
d0191583 | 9154 | fi; |
06f62ad1 | 9155 | |
d0191583 | 9156 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9157 | |
9158 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9159 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9160 | _ACEOF |
9161 | ||
15d91f5a | 9162 | fi |
ad6254c5 AK |
9163 | |
9164 | ################################################################################ | |
ec6a6fbe AK |
9165 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9166 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9167 | |
d0191583 JM |
9168 | # Check whether --with-snapshots was given. |
9169 | if test "${with_snapshots+set}" = set; then | |
9170 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9171 | else | |
9172 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9173 | fi |
9174 | ||
ec6a6fbe AK |
9175 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9176 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9177 | |
d0191583 | 9178 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9179 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9180 | " >&5 |
ec6a6fbe | 9181 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9182 | " >&2;} |
9183 | { (exit 1); exit 1; }; } | |
9184 | fi; | |
9185 | ||
9186 | if test x$SNAPSHOTS = xinternal; then | |
9187 | ||
9188 | cat >>confdefs.h <<\_ACEOF | |
9189 | #define SNAPSHOT_INTERNAL 1 | |
9190 | _ACEOF | |
ad6254c5 | 9191 | |
ad6254c5 | 9192 | fi |
7a197a62 | 9193 | |
d0191583 | 9194 | ################################################################################ |
ec6a6fbe AK |
9195 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9196 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9197 | |
9198 | # Check whether --with-mirrors was given. | |
9199 | if test "${with_mirrors+set}" = set; then | |
9200 | withval=$with_mirrors; MIRRORS="$withval" | |
9201 | else | |
9202 | MIRRORS="internal" | |
ad6254c5 | 9203 | fi |
ad6254c5 | 9204 | |
ec6a6fbe AK |
9205 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9206 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9207 | |
d0191583 | 9208 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9209 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9210 | " >&5 |
ec6a6fbe | 9211 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9212 | " >&2;} |
9213 | { (exit 1); exit 1; }; } | |
9214 | fi; | |
ad6254c5 | 9215 | |
d0191583 | 9216 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9217 | |
d0191583 JM |
9218 | cat >>confdefs.h <<\_ACEOF |
9219 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9220 | _ACEOF |
8a2fc586 | 9221 | |
d0191583 | 9222 | fi |
8a2fc586 | 9223 | |
d0191583 | 9224 | ################################################################################ |
ec6a6fbe AK |
9225 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9226 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9227 | # Check whether --enable-readline was given. |
9228 | if test "${enable_readline+set}" = set; then | |
9229 | enableval=$enable_readline; READLINE=$enableval | |
9230 | else | |
06e459df | 9231 | READLINE=maybe |
d0191583 | 9232 | fi |
8a2fc586 | 9233 | |
ec6a6fbe AK |
9234 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9235 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9236 | |
d0191583 | 9237 | ################################################################################ |
ec6a6fbe AK |
9238 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9239 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9240 | # Check whether --enable-realtime was given. |
9241 | if test "${enable_realtime+set}" = set; then | |
9242 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9243 | fi |
ad6254c5 | 9244 | |
ec6a6fbe AK |
9245 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9246 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9247 | |
9248 | ################################################################################ | |
90c80887 | 9249 | pkg_config_init() { |
e2997b73 AK |
9250 | |
9251 | ||
9252 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9253 | if test -n "$ac_tool_prefix"; then | |
9254 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9255 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9256 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9257 | $as_echo_n "checking for $ac_word... " >&6; } | |
9258 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9259 | $as_echo_n "(cached) " >&6 | |
9260 | else | |
9261 | case $PKG_CONFIG in | |
9262 | [\\/]* | ?:[\\/]*) | |
9263 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9264 | ;; | |
9265 | *) | |
9266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9267 | for as_dir in $PATH | |
9268 | do | |
9269 | IFS=$as_save_IFS | |
9270 | test -z "$as_dir" && as_dir=. | |
9271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9273 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9274 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9275 | break 2 | |
9276 | fi | |
9277 | done | |
9278 | done | |
9279 | IFS=$as_save_IFS | |
9280 | ||
9281 | ;; | |
9282 | esac | |
9283 | fi | |
9284 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9285 | if test -n "$PKG_CONFIG"; then | |
9286 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9287 | $as_echo "$PKG_CONFIG" >&6; } | |
9288 | else | |
9289 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9290 | $as_echo "no" >&6; } | |
9291 | fi | |
9292 | ||
9293 | ||
9294 | fi | |
9295 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9296 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9297 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9298 | set dummy pkg-config; ac_word=$2 | |
9299 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9300 | $as_echo_n "checking for $ac_word... " >&6; } | |
9301 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9302 | $as_echo_n "(cached) " >&6 | |
9303 | else | |
9304 | case $ac_pt_PKG_CONFIG in | |
9305 | [\\/]* | ?:[\\/]*) | |
9306 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9307 | ;; | |
9308 | *) | |
9309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9310 | for as_dir in $PATH | |
9311 | do | |
9312 | IFS=$as_save_IFS | |
9313 | test -z "$as_dir" && as_dir=. | |
9314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9316 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9317 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9318 | break 2 | |
9319 | fi | |
9320 | done | |
9321 | done | |
9322 | IFS=$as_save_IFS | |
9323 | ||
9324 | ;; | |
9325 | esac | |
9326 | fi | |
9327 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9328 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9329 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9330 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9331 | else | |
9332 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9333 | $as_echo "no" >&6; } | |
9334 | fi | |
9335 | ||
9336 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9337 | PKG_CONFIG="" | |
9338 | else | |
9339 | case $cross_compiling:$ac_tool_warned in | |
9340 | yes:) | |
9341 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9343 | ac_tool_warned=yes ;; | |
9344 | esac | |
9345 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9346 | fi | |
9347 | else | |
9348 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9349 | fi | |
9350 | ||
9351 | fi | |
9352 | if test -n "$PKG_CONFIG"; then | |
9353 | _pkg_min_version=0.9.0 | |
9354 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9355 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9356 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9357 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9358 | $as_echo "yes" >&6; } | |
9359 | else | |
9360 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9361 | $as_echo "no" >&6; } | |
9362 | PKG_CONFIG="" | |
9363 | fi | |
9364 | ||
9365 | fi | |
9366 | ||
9367 | pkg_failed=no | |
a946372e AK |
9368 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9369 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9370 | |
a946372e AK |
9371 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9372 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9373 | elif test -n "$PKG_CONFIG"; then |
9374 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9375 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9376 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9377 | ac_status=$? |
9378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9379 | (exit $ac_status); }; then | |
a946372e | 9380 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9381 | else |
9382 | pkg_failed=yes | |
9383 | fi | |
9384 | else | |
9385 | pkg_failed=untried | |
9386 | fi | |
a946372e AK |
9387 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9388 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9389 | elif test -n "$PKG_CONFIG"; then |
9390 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9391 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9392 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9393 | ac_status=$? |
9394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9395 | (exit $ac_status); }; then | |
a946372e | 9396 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9397 | else |
9398 | pkg_failed=yes | |
9399 | fi | |
9400 | else | |
9401 | pkg_failed=untried | |
9402 | fi | |
9403 | ||
9404 | ||
9405 | ||
9406 | if test $pkg_failed = yes; then | |
9407 | ||
9408 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9409 | _pkg_short_errors_supported=yes | |
9410 | else | |
9411 | _pkg_short_errors_supported=no | |
9412 | fi | |
9413 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9414 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9415 | else |
a946372e | 9416 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9417 | fi |
9418 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9419 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 AK |
9420 | |
9421 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9422 | $as_echo "no" >&6; } | |
a946372e AK |
9423 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9424 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9425 | elif test $pkg_failed = untried; then |
a946372e AK |
9426 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9427 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9428 | else |
a946372e AK |
9429 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9430 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9431 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9432 | $as_echo "yes" >&6; } | |
9433 | : | |
9434 | fi | |
90c80887 AK |
9435 | PKGCONFIG_INIT=1 |
9436 | } | |
9437 | ||
9438 | ################################################################################ | |
9439 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
9440 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
9441 | ||
9442 | # Check whether --with-clvmd was given. | |
9443 | if test "${with_clvmd+set}" = set; then | |
9444 | withval=$with_clvmd; CLVMD="$withval" | |
9445 | else | |
9446 | CLVMD="none" | |
9447 | fi | |
9448 | ||
9449 | if test x$CLVMD = xyes; then | |
9450 | CLVMD=all | |
9451 | fi | |
9452 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
9453 | $as_echo "$CLVMD" >&6; } | |
9454 | ||
9455 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
9456 | CLUSTER=internal | |
9457 | fi | |
9458 | ||
9459 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
9460 | pkg_config_init | |
9461 | fi | |
9462 | ||
9463 | ||
9464 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
9465 | BUILDGULM=yes | |
9466 | fi | |
9467 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9468 | BUILDCOROSYNC=yes | |
9469 | fi | |
9470 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9471 | BUILDOPENAIS=yes | |
9472 | fi | |
9473 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9474 | BUILDCMAN=yes | |
9475 | fi | |
9476 | ||
9477 | if test x$BUILDGULM = xyes; then | |
9478 | if test x$BUILDCOROSYNC = xyes || \ | |
9479 | test x$BUILDOPENAIS = xyes; then | |
9480 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9481 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9482 | { (exit 1); exit 1; }; } | |
9483 | fi | |
a946372e | 9484 | fi |
e2997b73 | 9485 | |
a946372e AK |
9486 | soft_bailout() { |
9487 | NOTFOUND=1 | |
9488 | } | |
e2997b73 | 9489 | |
a946372e AK |
9490 | hard_bailout() { |
9491 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9492 | $as_echo "$as_me: error: bailing out" >&2;} | |
9493 | { (exit 1); exit 1; }; } | |
9494 | } | |
9495 | ||
9496 | if test x$CLVMD = xall; then | |
9497 | bailout=soft_bailout | |
9498 | BUILDGULM=yes | |
9499 | BUILDCMAN=yes | |
9500 | BUILDCOROSYNC=yes | |
9501 | BUILDOPENAIS=yes | |
e2997b73 | 9502 | else |
a946372e | 9503 | bailout=hard_bailout |
e2997b73 | 9504 | fi |
a946372e AK |
9505 | |
9506 | check_lib_no_libs() { | |
9507 | lib_no_libs_arg1=$1 | |
9508 | shift | |
9509 | lib_no_libs_arg2=$1 | |
9510 | shift | |
9511 | lib_no_libs_args=$@ | |
9512 | ||
9513 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9514 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9515 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9516 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9517 | $as_echo_n "(cached) " >&6 | |
9518 | else | |
9519 | ac_check_lib_save_LIBS=$LIBS | |
9520 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9521 | cat >conftest.$ac_ext <<_ACEOF | |
9522 | /* confdefs.h. */ | |
9523 | _ACEOF | |
9524 | cat confdefs.h >>conftest.$ac_ext | |
9525 | cat >>conftest.$ac_ext <<_ACEOF | |
9526 | /* end confdefs.h. */ | |
9527 | ||
9528 | /* Override any GCC internal prototype to avoid an error. | |
9529 | Use char because int might match the return type of a GCC | |
9530 | builtin and then its argument prototype would still apply. */ | |
9531 | #ifdef __cplusplus | |
9532 | extern "C" | |
9533 | #endif | |
9534 | char $lib_no_libs_arg2 (); | |
9535 | int | |
9536 | main () | |
9537 | { | |
9538 | return $lib_no_libs_arg2 (); | |
9539 | ; | |
9540 | return 0; | |
9541 | } | |
9542 | _ACEOF | |
9543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9544 | if { (ac_try="$ac_link" | |
9545 | case "(($ac_try" in | |
9546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9547 | *) ac_try_echo=$ac_try;; | |
9548 | esac | |
9549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9550 | $as_echo "$ac_try_echo") >&5 | |
9551 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9552 | ac_status=$? |
a946372e AK |
9553 | grep -v '^ *+' conftest.er1 >conftest.err |
9554 | rm -f conftest.er1 | |
9555 | cat conftest.err >&5 | |
e2997b73 | 9556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9557 | (exit $ac_status); } && { |
9558 | test -z "$ac_c_werror_flag" || | |
9559 | test ! -s conftest.err | |
9560 | } && test -s conftest$ac_exeext && { | |
9561 | test "$cross_compiling" = yes || | |
9562 | $as_test_x conftest$ac_exeext | |
9563 | }; then | |
9564 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9565 | else |
a946372e AK |
9566 | $as_echo "$as_me: failed program was:" >&5 |
9567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9568 | |
a946372e AK |
9569 | eval "$as_ac_Lib=no" |
9570 | fi | |
e2997b73 | 9571 | |
a946372e AK |
9572 | rm -rf conftest.dSYM |
9573 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9574 | conftest$ac_exeext conftest.$ac_ext | |
9575 | LIBS=$ac_check_lib_save_LIBS | |
9576 | fi | |
9577 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9578 | $as_echo "$as_val"'` | |
9579 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9580 | $as_echo "$ac_res" >&6; } | |
9581 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9582 | $as_echo "$as_val"'` | |
9583 | if test "x$as_val" = x""yes; then | |
9584 | cat >>confdefs.h <<_ACEOF | |
9585 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9586 | _ACEOF | |
e2997b73 | 9587 | |
a946372e | 9588 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9589 | |
e2997b73 | 9590 | else |
a946372e | 9591 | $bailout |
e2997b73 | 9592 | fi |
e2997b73 | 9593 | |
a946372e AK |
9594 | LIBS=$ac_check_lib_save_LIBS |
9595 | } | |
9596 | ||
9597 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9598 | |
9599 | pkg_failed=no | |
a946372e AK |
9600 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9601 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9602 | |
a946372e AK |
9603 | if test -n "$CCS_CFLAGS"; then |
9604 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9605 | elif test -n "$PKG_CONFIG"; then |
9606 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9607 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9608 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9609 | ac_status=$? |
9610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9611 | (exit $ac_status); }; then | |
a946372e | 9612 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9613 | else |
9614 | pkg_failed=yes | |
9615 | fi | |
9616 | else | |
9617 | pkg_failed=untried | |
9618 | fi | |
a946372e AK |
9619 | if test -n "$CCS_LIBS"; then |
9620 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9621 | elif test -n "$PKG_CONFIG"; then |
9622 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9623 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9624 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9625 | ac_status=$? |
9626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9627 | (exit $ac_status); }; then | |
a946372e | 9628 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9629 | else |
9630 | pkg_failed=yes | |
9631 | fi | |
9632 | else | |
9633 | pkg_failed=untried | |
9634 | fi | |
9635 | ||
9636 | ||
9637 | ||
9638 | if test $pkg_failed = yes; then | |
9639 | ||
9640 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9641 | _pkg_short_errors_supported=yes | |
9642 | else | |
9643 | _pkg_short_errors_supported=no | |
9644 | fi | |
9645 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9646 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9647 | else |
a946372e | 9648 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9649 | fi |
9650 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9651 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 AK |
9652 | |
9653 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9654 | $as_echo "no" >&6; } | |
a946372e | 9655 | NOTFOUND=0 |
e2997b73 | 9656 | |
a946372e AK |
9657 | for ac_header in ccs.h |
9658 | do | |
9659 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9660 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9661 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9662 | $as_echo_n "checking for $ac_header... " >&6; } | |
9663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9664 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9665 | fi |
a946372e AK |
9666 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9667 | $as_echo "$as_val"'` | |
9668 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9669 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9670 | else |
a946372e AK |
9671 | # Is the header compilable? |
9672 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9673 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9674 | cat >conftest.$ac_ext <<_ACEOF | |
9675 | /* confdefs.h. */ | |
9676 | _ACEOF | |
9677 | cat confdefs.h >>conftest.$ac_ext | |
9678 | cat >>conftest.$ac_ext <<_ACEOF | |
9679 | /* end confdefs.h. */ | |
9680 | $ac_includes_default | |
9681 | #include <$ac_header> | |
9682 | _ACEOF | |
9683 | rm -f conftest.$ac_objext | |
9684 | if { (ac_try="$ac_compile" | |
9685 | case "(($ac_try" in | |
9686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9687 | *) ac_try_echo=$ac_try;; | |
9688 | esac | |
9689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9690 | $as_echo "$ac_try_echo") >&5 | |
9691 | (eval "$ac_compile") 2>conftest.er1 | |
9692 | ac_status=$? | |
9693 | grep -v '^ *+' conftest.er1 >conftest.err | |
9694 | rm -f conftest.er1 | |
9695 | cat conftest.err >&5 | |
9696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9697 | (exit $ac_status); } && { | |
9698 | test -z "$ac_c_werror_flag" || | |
9699 | test ! -s conftest.err | |
9700 | } && test -s conftest.$ac_objext; then | |
9701 | ac_header_compiler=yes | |
9702 | else | |
9703 | $as_echo "$as_me: failed program was:" >&5 | |
9704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9705 | |
a946372e | 9706 | ac_header_compiler=no |
d0191583 JM |
9707 | fi |
9708 | ||
a946372e AK |
9709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9710 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9711 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9712 | |
a946372e AK |
9713 | # Is the header present? |
9714 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9715 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9716 | cat >conftest.$ac_ext <<_ACEOF | |
9717 | /* confdefs.h. */ | |
9718 | _ACEOF | |
9719 | cat confdefs.h >>conftest.$ac_ext | |
9720 | cat >>conftest.$ac_ext <<_ACEOF | |
9721 | /* end confdefs.h. */ | |
9722 | #include <$ac_header> | |
9723 | _ACEOF | |
9724 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9725 | case "(($ac_try" in | |
9726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9727 | *) ac_try_echo=$ac_try;; | |
9728 | esac | |
9729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9730 | $as_echo "$ac_try_echo") >&5 | |
9731 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9732 | ac_status=$? | |
9733 | grep -v '^ *+' conftest.er1 >conftest.err | |
9734 | rm -f conftest.er1 | |
9735 | cat conftest.err >&5 | |
9736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9737 | (exit $ac_status); } >/dev/null && { | |
9738 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9739 | test ! -s conftest.err | |
9740 | }; then | |
9741 | ac_header_preproc=yes | |
9742 | else | |
9743 | $as_echo "$as_me: failed program was:" >&5 | |
9744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9745 | ||
9746 | ac_header_preproc=no | |
9747 | fi | |
9748 | ||
9749 | rm -f conftest.err conftest.$ac_ext | |
9750 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9751 | $as_echo "$ac_header_preproc" >&6; } | |
9752 | ||
9753 | # So? What about this header? | |
9754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9755 | yes:no: ) | |
9756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9757 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9759 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9760 | ac_header_preproc=yes | |
9761 | ;; | |
9762 | no:yes:* ) | |
9763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9764 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9766 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9768 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9770 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9772 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9774 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9775 | ||
9776 | ;; | |
9777 | esac | |
9778 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9779 | $as_echo_n "checking for $ac_header... " >&6; } | |
9780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9781 | $as_echo_n "(cached) " >&6 | |
9782 | else | |
9783 | eval "$as_ac_Header=\$ac_header_preproc" | |
9784 | fi | |
9785 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9786 | $as_echo "$as_val"'` | |
9787 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9788 | $as_echo "$ac_res" >&6; } | |
9789 | ||
9790 | fi | |
9791 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9792 | $as_echo "$as_val"'` | |
9793 | if test "x$as_val" = x""yes; then | |
9794 | cat >>confdefs.h <<_ACEOF | |
9795 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9796 | _ACEOF | |
9797 | ||
9798 | else | |
9799 | $bailout | |
9800 | fi | |
9801 | ||
9802 | done | |
9803 | ||
9804 | check_lib_no_libs ccs ccs_connect | |
9805 | if test $NOTFOUND = 0; then | |
9806 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9807 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9808 | CCS_LIBS="-lccs" | |
9809 | HAVE_CCS=yes | |
9810 | fi | |
9811 | elif test $pkg_failed = untried; then | |
9812 | NOTFOUND=0 | |
9813 | ||
9814 | for ac_header in ccs.h | |
9815 | do | |
9816 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9818 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9819 | $as_echo_n "checking for $ac_header... " >&6; } | |
9820 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9821 | $as_echo_n "(cached) " >&6 | |
9822 | fi | |
9823 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9824 | $as_echo "$as_val"'` | |
9825 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9826 | $as_echo "$ac_res" >&6; } | |
9827 | else | |
9828 | # Is the header compilable? | |
9829 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9830 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9831 | cat >conftest.$ac_ext <<_ACEOF | |
9832 | /* confdefs.h. */ | |
9833 | _ACEOF | |
9834 | cat confdefs.h >>conftest.$ac_ext | |
9835 | cat >>conftest.$ac_ext <<_ACEOF | |
9836 | /* end confdefs.h. */ | |
9837 | $ac_includes_default | |
9838 | #include <$ac_header> | |
9839 | _ACEOF | |
9840 | rm -f conftest.$ac_objext | |
9841 | if { (ac_try="$ac_compile" | |
9842 | case "(($ac_try" in | |
9843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9844 | *) ac_try_echo=$ac_try;; | |
9845 | esac | |
9846 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9847 | $as_echo "$ac_try_echo") >&5 | |
9848 | (eval "$ac_compile") 2>conftest.er1 | |
9849 | ac_status=$? | |
9850 | grep -v '^ *+' conftest.er1 >conftest.err | |
9851 | rm -f conftest.er1 | |
9852 | cat conftest.err >&5 | |
9853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9854 | (exit $ac_status); } && { | |
9855 | test -z "$ac_c_werror_flag" || | |
9856 | test ! -s conftest.err | |
9857 | } && test -s conftest.$ac_objext; then | |
9858 | ac_header_compiler=yes | |
9859 | else | |
9860 | $as_echo "$as_me: failed program was:" >&5 | |
9861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9862 | ||
9863 | ac_header_compiler=no | |
9864 | fi | |
9865 | ||
9866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9867 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9868 | $as_echo "$ac_header_compiler" >&6; } | |
9869 | ||
9870 | # Is the header present? | |
9871 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9872 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9873 | cat >conftest.$ac_ext <<_ACEOF | |
9874 | /* confdefs.h. */ | |
9875 | _ACEOF | |
9876 | cat confdefs.h >>conftest.$ac_ext | |
9877 | cat >>conftest.$ac_ext <<_ACEOF | |
9878 | /* end confdefs.h. */ | |
9879 | #include <$ac_header> | |
9880 | _ACEOF | |
9881 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9882 | case "(($ac_try" in | |
9883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9884 | *) ac_try_echo=$ac_try;; | |
9885 | esac | |
9886 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9887 | $as_echo "$ac_try_echo") >&5 | |
9888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9889 | ac_status=$? | |
9890 | grep -v '^ *+' conftest.er1 >conftest.err | |
9891 | rm -f conftest.er1 | |
9892 | cat conftest.err >&5 | |
9893 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9894 | (exit $ac_status); } >/dev/null && { | |
9895 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9896 | test ! -s conftest.err | |
9897 | }; then | |
9898 | ac_header_preproc=yes | |
9899 | else | |
9900 | $as_echo "$as_me: failed program was:" >&5 | |
9901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9902 | ||
9903 | ac_header_preproc=no | |
9904 | fi | |
9905 | ||
9906 | rm -f conftest.err conftest.$ac_ext | |
9907 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9908 | $as_echo "$ac_header_preproc" >&6; } | |
9909 | ||
9910 | # So? What about this header? | |
9911 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9912 | yes:no: ) | |
9913 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9914 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9916 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9917 | ac_header_preproc=yes | |
9918 | ;; | |
9919 | no:yes:* ) | |
9920 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9921 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9922 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9923 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9924 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9925 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9926 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9927 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9928 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9929 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9930 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9931 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9932 | ||
9933 | ;; | |
9934 | esac | |
9935 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9936 | $as_echo_n "checking for $ac_header... " >&6; } | |
9937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9938 | $as_echo_n "(cached) " >&6 | |
9939 | else | |
9940 | eval "$as_ac_Header=\$ac_header_preproc" | |
9941 | fi | |
9942 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9943 | $as_echo "$as_val"'` | |
9944 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9945 | $as_echo "$ac_res" >&6; } | |
9946 | ||
9947 | fi | |
9948 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9949 | $as_echo "$as_val"'` | |
9950 | if test "x$as_val" = x""yes; then | |
9951 | cat >>confdefs.h <<_ACEOF | |
9952 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9953 | _ACEOF | |
9954 | ||
9955 | else | |
9956 | $bailout | |
9957 | fi | |
9958 | ||
9959 | done | |
9960 | ||
9961 | check_lib_no_libs ccs ccs_connect | |
9962 | if test $NOTFOUND = 0; then | |
9963 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9964 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9965 | CCS_LIBS="-lccs" | |
9966 | HAVE_CCS=yes | |
9967 | fi | |
9968 | else | |
9969 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
9970 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
9971 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9972 | $as_echo "yes" >&6; } | |
9973 | HAVE_CCS=yes | |
9974 | fi | |
9975 | ||
9976 | pkg_failed=no | |
9977 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
9978 | $as_echo_n "checking for GULM... " >&6; } | |
9979 | ||
9980 | if test -n "$GULM_CFLAGS"; then | |
9981 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
9982 | elif test -n "$PKG_CONFIG"; then | |
9983 | if test -n "$PKG_CONFIG" && \ | |
9984 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
9985 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
9986 | ac_status=$? | |
9987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9988 | (exit $ac_status); }; then | |
9989 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
9990 | else | |
9991 | pkg_failed=yes | |
9992 | fi | |
9993 | else | |
9994 | pkg_failed=untried | |
9995 | fi | |
9996 | if test -n "$GULM_LIBS"; then | |
9997 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
9998 | elif test -n "$PKG_CONFIG"; then | |
9999 | if test -n "$PKG_CONFIG" && \ | |
10000 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10001 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10002 | ac_status=$? | |
10003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10004 | (exit $ac_status); }; then | |
10005 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
10006 | else | |
10007 | pkg_failed=yes | |
10008 | fi | |
10009 | else | |
10010 | pkg_failed=untried | |
10011 | fi | |
10012 | ||
10013 | ||
10014 | ||
10015 | if test $pkg_failed = yes; then | |
10016 | ||
10017 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10018 | _pkg_short_errors_supported=yes | |
10019 | else | |
10020 | _pkg_short_errors_supported=no | |
10021 | fi | |
10022 | if test $_pkg_short_errors_supported = yes; then | |
10023 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10024 | else | |
10025 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10026 | fi | |
10027 | # Put the nasty error message in config.log where it belongs | |
10028 | echo "$GULM_PKG_ERRORS" >&5 | |
10029 | ||
10030 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10031 | $as_echo "no" >&6; } | |
10032 | NOTFOUND=0 | |
10033 | ||
10034 | for ac_header in libgulm.h | |
10035 | do | |
10036 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10037 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10038 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10039 | $as_echo_n "checking for $ac_header... " >&6; } | |
10040 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10041 | $as_echo_n "(cached) " >&6 | |
10042 | fi | |
10043 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10044 | $as_echo "$as_val"'` | |
10045 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10046 | $as_echo "$ac_res" >&6; } | |
10047 | else | |
10048 | # Is the header compilable? | |
10049 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10050 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10051 | cat >conftest.$ac_ext <<_ACEOF | |
10052 | /* confdefs.h. */ | |
10053 | _ACEOF | |
10054 | cat confdefs.h >>conftest.$ac_ext | |
10055 | cat >>conftest.$ac_ext <<_ACEOF | |
10056 | /* end confdefs.h. */ | |
10057 | $ac_includes_default | |
10058 | #include <$ac_header> | |
10059 | _ACEOF | |
10060 | rm -f conftest.$ac_objext | |
10061 | if { (ac_try="$ac_compile" | |
10062 | case "(($ac_try" in | |
10063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10064 | *) ac_try_echo=$ac_try;; | |
10065 | esac | |
10066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10067 | $as_echo "$ac_try_echo") >&5 | |
10068 | (eval "$ac_compile") 2>conftest.er1 | |
10069 | ac_status=$? | |
10070 | grep -v '^ *+' conftest.er1 >conftest.err | |
10071 | rm -f conftest.er1 | |
10072 | cat conftest.err >&5 | |
10073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10074 | (exit $ac_status); } && { | |
10075 | test -z "$ac_c_werror_flag" || | |
10076 | test ! -s conftest.err | |
10077 | } && test -s conftest.$ac_objext; then | |
10078 | ac_header_compiler=yes | |
10079 | else | |
10080 | $as_echo "$as_me: failed program was:" >&5 | |
10081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10082 | ||
10083 | ac_header_compiler=no | |
10084 | fi | |
10085 | ||
10086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10087 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10088 | $as_echo "$ac_header_compiler" >&6; } | |
10089 | ||
10090 | # Is the header present? | |
10091 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10092 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10093 | cat >conftest.$ac_ext <<_ACEOF | |
10094 | /* confdefs.h. */ | |
10095 | _ACEOF | |
10096 | cat confdefs.h >>conftest.$ac_ext | |
10097 | cat >>conftest.$ac_ext <<_ACEOF | |
10098 | /* end confdefs.h. */ | |
10099 | #include <$ac_header> | |
10100 | _ACEOF | |
10101 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10102 | case "(($ac_try" in | |
10103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10104 | *) ac_try_echo=$ac_try;; | |
10105 | esac | |
10106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10107 | $as_echo "$ac_try_echo") >&5 | |
10108 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10109 | ac_status=$? | |
10110 | grep -v '^ *+' conftest.er1 >conftest.err | |
10111 | rm -f conftest.er1 | |
10112 | cat conftest.err >&5 | |
10113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10114 | (exit $ac_status); } >/dev/null && { | |
10115 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10116 | test ! -s conftest.err | |
10117 | }; then | |
10118 | ac_header_preproc=yes | |
10119 | else | |
10120 | $as_echo "$as_me: failed program was:" >&5 | |
10121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10122 | ||
10123 | ac_header_preproc=no | |
10124 | fi | |
10125 | ||
10126 | rm -f conftest.err conftest.$ac_ext | |
10127 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10128 | $as_echo "$ac_header_preproc" >&6; } | |
10129 | ||
10130 | # So? What about this header? | |
10131 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10132 | yes:no: ) | |
10133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10134 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10136 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10137 | ac_header_preproc=yes | |
10138 | ;; | |
10139 | no:yes:* ) | |
10140 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10141 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10142 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10143 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10145 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10146 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10147 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10148 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10149 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10150 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10151 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10152 | ||
10153 | ;; | |
10154 | esac | |
10155 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10156 | $as_echo_n "checking for $ac_header... " >&6; } | |
10157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10158 | $as_echo_n "(cached) " >&6 | |
10159 | else | |
10160 | eval "$as_ac_Header=\$ac_header_preproc" | |
10161 | fi | |
10162 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10163 | $as_echo "$as_val"'` | |
10164 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10165 | $as_echo "$ac_res" >&6; } | |
10166 | ||
10167 | fi | |
10168 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10169 | $as_echo "$as_val"'` | |
10170 | if test "x$as_val" = x""yes; then | |
10171 | cat >>confdefs.h <<_ACEOF | |
10172 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10173 | _ACEOF | |
10174 | ||
10175 | else | |
10176 | $bailout | |
10177 | fi | |
10178 | ||
10179 | done | |
10180 | ||
10181 | check_lib_no_libs gulm lg_core_login | |
10182 | if test $NOTFOUND = 0; then | |
10183 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10184 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10185 | GULM_LIBS="-lgulm" | |
10186 | HAVE_GULM=yes | |
10187 | fi | |
10188 | elif test $pkg_failed = untried; then | |
10189 | NOTFOUND=0 | |
10190 | ||
10191 | for ac_header in libgulm.h | |
10192 | do | |
10193 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10195 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10196 | $as_echo_n "checking for $ac_header... " >&6; } | |
10197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10198 | $as_echo_n "(cached) " >&6 | |
10199 | fi | |
10200 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10201 | $as_echo "$as_val"'` | |
10202 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10203 | $as_echo "$ac_res" >&6; } | |
10204 | else | |
10205 | # Is the header compilable? | |
10206 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10207 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10208 | cat >conftest.$ac_ext <<_ACEOF | |
10209 | /* confdefs.h. */ | |
10210 | _ACEOF | |
10211 | cat confdefs.h >>conftest.$ac_ext | |
10212 | cat >>conftest.$ac_ext <<_ACEOF | |
10213 | /* end confdefs.h. */ | |
10214 | $ac_includes_default | |
10215 | #include <$ac_header> | |
10216 | _ACEOF | |
10217 | rm -f conftest.$ac_objext | |
10218 | if { (ac_try="$ac_compile" | |
10219 | case "(($ac_try" in | |
10220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10221 | *) ac_try_echo=$ac_try;; | |
10222 | esac | |
10223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10224 | $as_echo "$ac_try_echo") >&5 | |
10225 | (eval "$ac_compile") 2>conftest.er1 | |
10226 | ac_status=$? | |
10227 | grep -v '^ *+' conftest.er1 >conftest.err | |
10228 | rm -f conftest.er1 | |
10229 | cat conftest.err >&5 | |
10230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10231 | (exit $ac_status); } && { | |
10232 | test -z "$ac_c_werror_flag" || | |
10233 | test ! -s conftest.err | |
10234 | } && test -s conftest.$ac_objext; then | |
10235 | ac_header_compiler=yes | |
10236 | else | |
10237 | $as_echo "$as_me: failed program was:" >&5 | |
10238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10239 | ||
10240 | ac_header_compiler=no | |
10241 | fi | |
10242 | ||
10243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10244 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10245 | $as_echo "$ac_header_compiler" >&6; } | |
10246 | ||
10247 | # Is the header present? | |
10248 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10249 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10250 | cat >conftest.$ac_ext <<_ACEOF | |
10251 | /* confdefs.h. */ | |
10252 | _ACEOF | |
10253 | cat confdefs.h >>conftest.$ac_ext | |
10254 | cat >>conftest.$ac_ext <<_ACEOF | |
10255 | /* end confdefs.h. */ | |
10256 | #include <$ac_header> | |
10257 | _ACEOF | |
10258 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10259 | case "(($ac_try" in | |
10260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10261 | *) ac_try_echo=$ac_try;; | |
10262 | esac | |
10263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10264 | $as_echo "$ac_try_echo") >&5 | |
10265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10266 | ac_status=$? | |
10267 | grep -v '^ *+' conftest.er1 >conftest.err | |
10268 | rm -f conftest.er1 | |
10269 | cat conftest.err >&5 | |
10270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10271 | (exit $ac_status); } >/dev/null && { | |
10272 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10273 | test ! -s conftest.err | |
10274 | }; then | |
10275 | ac_header_preproc=yes | |
10276 | else | |
10277 | $as_echo "$as_me: failed program was:" >&5 | |
10278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10279 | ||
10280 | ac_header_preproc=no | |
10281 | fi | |
10282 | ||
10283 | rm -f conftest.err conftest.$ac_ext | |
10284 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10285 | $as_echo "$ac_header_preproc" >&6; } | |
10286 | ||
10287 | # So? What about this header? | |
10288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10289 | yes:no: ) | |
10290 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10291 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10292 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10293 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10294 | ac_header_preproc=yes | |
10295 | ;; | |
10296 | no:yes:* ) | |
10297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10298 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10300 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10302 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10304 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10306 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10308 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10309 | ||
10310 | ;; | |
10311 | esac | |
10312 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10313 | $as_echo_n "checking for $ac_header... " >&6; } | |
10314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10315 | $as_echo_n "(cached) " >&6 | |
10316 | else | |
10317 | eval "$as_ac_Header=\$ac_header_preproc" | |
10318 | fi | |
10319 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10320 | $as_echo "$as_val"'` | |
10321 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10322 | $as_echo "$ac_res" >&6; } | |
10323 | ||
10324 | fi | |
10325 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10326 | $as_echo "$as_val"'` | |
10327 | if test "x$as_val" = x""yes; then | |
10328 | cat >>confdefs.h <<_ACEOF | |
10329 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10330 | _ACEOF | |
10331 | ||
10332 | else | |
10333 | $bailout | |
10334 | fi | |
10335 | ||
10336 | done | |
10337 | ||
10338 | check_lib_no_libs gulm lg_core_login | |
10339 | if test $NOTFOUND = 0; then | |
10340 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10341 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10342 | GULM_LIBS="-lgulm" | |
10343 | HAVE_GULM=yes | |
10344 | fi | |
10345 | else | |
10346 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10347 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10348 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10349 | $as_echo "yes" >&6; } | |
10350 | HAVE_GULM=yes | |
10351 | fi | |
10352 | fi | |
10353 | ||
10354 | if test x$BUILDCMAN = xyes; then | |
10355 | ||
10356 | pkg_failed=no | |
10357 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10358 | $as_echo_n "checking for CMAN... " >&6; } | |
10359 | ||
10360 | if test -n "$CMAN_CFLAGS"; then | |
10361 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10362 | elif test -n "$PKG_CONFIG"; then | |
10363 | if test -n "$PKG_CONFIG" && \ | |
10364 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10365 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10366 | ac_status=$? | |
10367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10368 | (exit $ac_status); }; then | |
10369 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10370 | else | |
10371 | pkg_failed=yes | |
10372 | fi | |
10373 | else | |
10374 | pkg_failed=untried | |
10375 | fi | |
10376 | if test -n "$CMAN_LIBS"; then | |
10377 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10378 | elif test -n "$PKG_CONFIG"; then | |
10379 | if test -n "$PKG_CONFIG" && \ | |
10380 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10381 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10382 | ac_status=$? | |
10383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10384 | (exit $ac_status); }; then | |
10385 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10386 | else | |
10387 | pkg_failed=yes | |
10388 | fi | |
10389 | else | |
10390 | pkg_failed=untried | |
10391 | fi | |
10392 | ||
10393 | ||
10394 | ||
10395 | if test $pkg_failed = yes; then | |
10396 | ||
10397 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10398 | _pkg_short_errors_supported=yes | |
10399 | else | |
10400 | _pkg_short_errors_supported=no | |
10401 | fi | |
10402 | if test $_pkg_short_errors_supported = yes; then | |
10403 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10404 | else | |
10405 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10406 | fi | |
10407 | # Put the nasty error message in config.log where it belongs | |
10408 | echo "$CMAN_PKG_ERRORS" >&5 | |
10409 | ||
10410 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10411 | $as_echo "no" >&6; } | |
10412 | NOTFOUND=0 | |
10413 | ||
10414 | for ac_header in libcman.h | |
10415 | do | |
10416 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10417 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10418 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10419 | $as_echo_n "checking for $ac_header... " >&6; } | |
10420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10421 | $as_echo_n "(cached) " >&6 | |
10422 | fi | |
10423 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10424 | $as_echo "$as_val"'` | |
10425 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10426 | $as_echo "$ac_res" >&6; } | |
10427 | else | |
10428 | # Is the header compilable? | |
10429 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10430 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10431 | cat >conftest.$ac_ext <<_ACEOF | |
10432 | /* confdefs.h. */ | |
10433 | _ACEOF | |
10434 | cat confdefs.h >>conftest.$ac_ext | |
10435 | cat >>conftest.$ac_ext <<_ACEOF | |
10436 | /* end confdefs.h. */ | |
10437 | $ac_includes_default | |
10438 | #include <$ac_header> | |
10439 | _ACEOF | |
10440 | rm -f conftest.$ac_objext | |
10441 | if { (ac_try="$ac_compile" | |
10442 | case "(($ac_try" in | |
10443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10444 | *) ac_try_echo=$ac_try;; | |
10445 | esac | |
10446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10447 | $as_echo "$ac_try_echo") >&5 | |
10448 | (eval "$ac_compile") 2>conftest.er1 | |
10449 | ac_status=$? | |
10450 | grep -v '^ *+' conftest.er1 >conftest.err | |
10451 | rm -f conftest.er1 | |
10452 | cat conftest.err >&5 | |
10453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10454 | (exit $ac_status); } && { | |
10455 | test -z "$ac_c_werror_flag" || | |
10456 | test ! -s conftest.err | |
10457 | } && test -s conftest.$ac_objext; then | |
10458 | ac_header_compiler=yes | |
10459 | else | |
10460 | $as_echo "$as_me: failed program was:" >&5 | |
10461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10462 | ||
10463 | ac_header_compiler=no | |
10464 | fi | |
10465 | ||
10466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10467 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10468 | $as_echo "$ac_header_compiler" >&6; } | |
10469 | ||
10470 | # Is the header present? | |
10471 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10472 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10473 | cat >conftest.$ac_ext <<_ACEOF | |
10474 | /* confdefs.h. */ | |
10475 | _ACEOF | |
10476 | cat confdefs.h >>conftest.$ac_ext | |
10477 | cat >>conftest.$ac_ext <<_ACEOF | |
10478 | /* end confdefs.h. */ | |
10479 | #include <$ac_header> | |
10480 | _ACEOF | |
10481 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10482 | case "(($ac_try" in | |
10483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10484 | *) ac_try_echo=$ac_try;; | |
10485 | esac | |
10486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10487 | $as_echo "$ac_try_echo") >&5 | |
10488 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10489 | ac_status=$? | |
10490 | grep -v '^ *+' conftest.er1 >conftest.err | |
10491 | rm -f conftest.er1 | |
10492 | cat conftest.err >&5 | |
10493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10494 | (exit $ac_status); } >/dev/null && { | |
10495 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10496 | test ! -s conftest.err | |
10497 | }; then | |
10498 | ac_header_preproc=yes | |
10499 | else | |
10500 | $as_echo "$as_me: failed program was:" >&5 | |
10501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10502 | ||
10503 | ac_header_preproc=no | |
10504 | fi | |
10505 | ||
10506 | rm -f conftest.err conftest.$ac_ext | |
10507 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10508 | $as_echo "$ac_header_preproc" >&6; } | |
10509 | ||
10510 | # So? What about this header? | |
10511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10512 | yes:no: ) | |
10513 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10514 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10515 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10516 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10517 | ac_header_preproc=yes | |
10518 | ;; | |
10519 | no:yes:* ) | |
10520 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10521 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10522 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10523 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10525 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10527 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10528 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10529 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10530 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10531 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10532 | ||
10533 | ;; | |
10534 | esac | |
10535 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10536 | $as_echo_n "checking for $ac_header... " >&6; } | |
10537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10538 | $as_echo_n "(cached) " >&6 | |
10539 | else | |
10540 | eval "$as_ac_Header=\$ac_header_preproc" | |
10541 | fi | |
10542 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10543 | $as_echo "$as_val"'` | |
10544 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10545 | $as_echo "$ac_res" >&6; } | |
10546 | ||
10547 | fi | |
10548 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10549 | $as_echo "$as_val"'` | |
10550 | if test "x$as_val" = x""yes; then | |
10551 | cat >>confdefs.h <<_ACEOF | |
10552 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10553 | _ACEOF | |
10554 | ||
10555 | else | |
10556 | $bailout | |
10557 | fi | |
10558 | ||
10559 | done | |
10560 | ||
10561 | check_lib_no_libs cman cman_init | |
10562 | if test $NOTFOUND = 0; then | |
10563 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10564 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10565 | CMAN_LIBS="-lcman" | |
10566 | HAVE_CMAN=yes | |
10567 | fi | |
10568 | elif test $pkg_failed = untried; then | |
10569 | NOTFOUND=0 | |
10570 | ||
10571 | for ac_header in libcman.h | |
10572 | do | |
10573 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10575 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10576 | $as_echo_n "checking for $ac_header... " >&6; } | |
10577 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10578 | $as_echo_n "(cached) " >&6 | |
10579 | fi | |
10580 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10581 | $as_echo "$as_val"'` | |
10582 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10583 | $as_echo "$ac_res" >&6; } | |
10584 | else | |
10585 | # Is the header compilable? | |
10586 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10587 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10588 | cat >conftest.$ac_ext <<_ACEOF | |
10589 | /* confdefs.h. */ | |
10590 | _ACEOF | |
10591 | cat confdefs.h >>conftest.$ac_ext | |
10592 | cat >>conftest.$ac_ext <<_ACEOF | |
10593 | /* end confdefs.h. */ | |
10594 | $ac_includes_default | |
10595 | #include <$ac_header> | |
10596 | _ACEOF | |
10597 | rm -f conftest.$ac_objext | |
10598 | if { (ac_try="$ac_compile" | |
10599 | case "(($ac_try" in | |
10600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10601 | *) ac_try_echo=$ac_try;; | |
10602 | esac | |
10603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10604 | $as_echo "$ac_try_echo") >&5 | |
10605 | (eval "$ac_compile") 2>conftest.er1 | |
10606 | ac_status=$? | |
10607 | grep -v '^ *+' conftest.er1 >conftest.err | |
10608 | rm -f conftest.er1 | |
10609 | cat conftest.err >&5 | |
10610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10611 | (exit $ac_status); } && { | |
10612 | test -z "$ac_c_werror_flag" || | |
10613 | test ! -s conftest.err | |
10614 | } && test -s conftest.$ac_objext; then | |
10615 | ac_header_compiler=yes | |
10616 | else | |
10617 | $as_echo "$as_me: failed program was:" >&5 | |
10618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10619 | ||
10620 | ac_header_compiler=no | |
10621 | fi | |
10622 | ||
10623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10624 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10625 | $as_echo "$ac_header_compiler" >&6; } | |
10626 | ||
10627 | # Is the header present? | |
10628 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10629 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10630 | cat >conftest.$ac_ext <<_ACEOF | |
10631 | /* confdefs.h. */ | |
10632 | _ACEOF | |
10633 | cat confdefs.h >>conftest.$ac_ext | |
10634 | cat >>conftest.$ac_ext <<_ACEOF | |
10635 | /* end confdefs.h. */ | |
10636 | #include <$ac_header> | |
10637 | _ACEOF | |
10638 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10639 | case "(($ac_try" in | |
10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10641 | *) ac_try_echo=$ac_try;; | |
10642 | esac | |
10643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10644 | $as_echo "$ac_try_echo") >&5 | |
10645 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10646 | ac_status=$? | |
10647 | grep -v '^ *+' conftest.er1 >conftest.err | |
10648 | rm -f conftest.er1 | |
10649 | cat conftest.err >&5 | |
10650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10651 | (exit $ac_status); } >/dev/null && { | |
10652 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10653 | test ! -s conftest.err | |
10654 | }; then | |
10655 | ac_header_preproc=yes | |
10656 | else | |
10657 | $as_echo "$as_me: failed program was:" >&5 | |
10658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10659 | ||
10660 | ac_header_preproc=no | |
10661 | fi | |
10662 | ||
10663 | rm -f conftest.err conftest.$ac_ext | |
10664 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10665 | $as_echo "$ac_header_preproc" >&6; } | |
10666 | ||
10667 | # So? What about this header? | |
10668 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10669 | yes:no: ) | |
10670 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10671 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10672 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10673 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10674 | ac_header_preproc=yes | |
10675 | ;; | |
10676 | no:yes:* ) | |
10677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10678 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10680 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10682 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10684 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10686 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10688 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10689 | ||
10690 | ;; | |
10691 | esac | |
10692 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10693 | $as_echo_n "checking for $ac_header... " >&6; } | |
10694 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10695 | $as_echo_n "(cached) " >&6 | |
10696 | else | |
10697 | eval "$as_ac_Header=\$ac_header_preproc" | |
10698 | fi | |
10699 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10700 | $as_echo "$as_val"'` | |
10701 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10702 | $as_echo "$ac_res" >&6; } | |
10703 | ||
10704 | fi | |
10705 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10706 | $as_echo "$as_val"'` | |
10707 | if test "x$as_val" = x""yes; then | |
10708 | cat >>confdefs.h <<_ACEOF | |
10709 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10710 | _ACEOF | |
10711 | ||
10712 | else | |
10713 | $bailout | |
10714 | fi | |
10715 | ||
10716 | done | |
10717 | ||
10718 | check_lib_no_libs cman cman_init | |
10719 | if test $NOTFOUND = 0; then | |
10720 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10721 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10722 | CMAN_LIBS="-lcman" | |
10723 | HAVE_CMAN=yes | |
10724 | fi | |
10725 | else | |
10726 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10727 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10728 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10729 | $as_echo "yes" >&6; } | |
10730 | HAVE_CMAN=yes | |
10731 | fi | |
10732 | CHECKCONFDB=yes | |
10733 | CHECKDLM=yes | |
10734 | fi | |
10735 | ||
10736 | if test x$BUILDCOROSYNC = xyes || \ | |
10737 | test x$BUILDOPENAIS = xyes; then | |
10738 | ||
10739 | pkg_failed=no | |
10740 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10741 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10742 | ||
10743 | if test -n "$COROSYNC_CFLAGS"; then | |
10744 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10745 | elif test -n "$PKG_CONFIG"; then | |
10746 | if test -n "$PKG_CONFIG" && \ | |
10747 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10748 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10749 | ac_status=$? | |
10750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10751 | (exit $ac_status); }; then | |
10752 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10753 | else | |
10754 | pkg_failed=yes | |
10755 | fi | |
10756 | else | |
10757 | pkg_failed=untried | |
10758 | fi | |
10759 | if test -n "$COROSYNC_LIBS"; then | |
10760 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10761 | elif test -n "$PKG_CONFIG"; then | |
10762 | if test -n "$PKG_CONFIG" && \ | |
10763 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10764 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10765 | ac_status=$? | |
10766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10767 | (exit $ac_status); }; then | |
10768 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10769 | else | |
10770 | pkg_failed=yes | |
10771 | fi | |
10772 | else | |
10773 | pkg_failed=untried | |
10774 | fi | |
10775 | ||
10776 | ||
10777 | ||
10778 | if test $pkg_failed = yes; then | |
10779 | ||
10780 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10781 | _pkg_short_errors_supported=yes | |
10782 | else | |
10783 | _pkg_short_errors_supported=no | |
10784 | fi | |
10785 | if test $_pkg_short_errors_supported = yes; then | |
10786 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10787 | else | |
10788 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10789 | fi | |
10790 | # Put the nasty error message in config.log where it belongs | |
10791 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10792 | ||
10793 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10794 | $as_echo "no" >&6; } | |
10795 | $bailout | |
10796 | elif test $pkg_failed = untried; then | |
10797 | $bailout | |
10798 | else | |
10799 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10800 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10801 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10802 | $as_echo "yes" >&6; } | |
10803 | HAVE_COROSYNC=yes | |
10804 | fi | |
10805 | CHECKCONFDB=yes | |
10806 | fi | |
10807 | ||
10808 | if test x$BUILDCOROSYNC = xyes; then | |
10809 | ||
10810 | pkg_failed=no | |
10811 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10812 | $as_echo_n "checking for QUORUM... " >&6; } | |
10813 | ||
10814 | if test -n "$QUORUM_CFLAGS"; then | |
10815 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10816 | elif test -n "$PKG_CONFIG"; then | |
10817 | if test -n "$PKG_CONFIG" && \ | |
10818 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10819 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10820 | ac_status=$? | |
10821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10822 | (exit $ac_status); }; then | |
10823 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10824 | else | |
10825 | pkg_failed=yes | |
10826 | fi | |
10827 | else | |
10828 | pkg_failed=untried | |
10829 | fi | |
10830 | if test -n "$QUORUM_LIBS"; then | |
10831 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
10832 | elif test -n "$PKG_CONFIG"; then | |
10833 | if test -n "$PKG_CONFIG" && \ | |
10834 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10835 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10836 | ac_status=$? | |
10837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10838 | (exit $ac_status); }; then | |
10839 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
10840 | else | |
10841 | pkg_failed=yes | |
10842 | fi | |
10843 | else | |
10844 | pkg_failed=untried | |
10845 | fi | |
10846 | ||
10847 | ||
10848 | ||
10849 | if test $pkg_failed = yes; then | |
10850 | ||
10851 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10852 | _pkg_short_errors_supported=yes | |
10853 | else | |
10854 | _pkg_short_errors_supported=no | |
10855 | fi | |
10856 | if test $_pkg_short_errors_supported = yes; then | |
10857 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
10858 | else | |
10859 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
10860 | fi | |
10861 | # Put the nasty error message in config.log where it belongs | |
10862 | echo "$QUORUM_PKG_ERRORS" >&5 | |
10863 | ||
10864 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10865 | $as_echo "no" >&6; } | |
10866 | $bailout | |
10867 | elif test $pkg_failed = untried; then | |
10868 | $bailout | |
10869 | else | |
10870 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
10871 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
10872 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10873 | $as_echo "yes" >&6; } | |
10874 | HAVE_QUORUM=yes | |
10875 | fi | |
10876 | CHECKCPG=yes | |
10877 | CHECKDLM=yes | |
10878 | fi | |
10879 | ||
10880 | if test x$BUILDOPENAIS = xyes; then | |
10881 | ||
10882 | pkg_failed=no | |
10883 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
10884 | $as_echo_n "checking for SALCK... " >&6; } | |
10885 | ||
10886 | if test -n "$SALCK_CFLAGS"; then | |
10887 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
10888 | elif test -n "$PKG_CONFIG"; then | |
10889 | if test -n "$PKG_CONFIG" && \ | |
10890 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10891 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10892 | ac_status=$? | |
10893 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10894 | (exit $ac_status); }; then | |
10895 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
10896 | else | |
10897 | pkg_failed=yes | |
10898 | fi | |
10899 | else | |
10900 | pkg_failed=untried | |
10901 | fi | |
10902 | if test -n "$SALCK_LIBS"; then | |
10903 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
10904 | elif test -n "$PKG_CONFIG"; then | |
10905 | if test -n "$PKG_CONFIG" && \ | |
10906 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10907 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10908 | ac_status=$? | |
10909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10910 | (exit $ac_status); }; then | |
10911 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
10912 | else | |
10913 | pkg_failed=yes | |
10914 | fi | |
10915 | else | |
10916 | pkg_failed=untried | |
10917 | fi | |
10918 | ||
10919 | ||
10920 | ||
10921 | if test $pkg_failed = yes; then | |
10922 | ||
10923 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10924 | _pkg_short_errors_supported=yes | |
10925 | else | |
10926 | _pkg_short_errors_supported=no | |
10927 | fi | |
10928 | if test $_pkg_short_errors_supported = yes; then | |
10929 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
10930 | else | |
10931 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
10932 | fi | |
10933 | # Put the nasty error message in config.log where it belongs | |
10934 | echo "$SALCK_PKG_ERRORS" >&5 | |
10935 | ||
10936 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10937 | $as_echo "no" >&6; } | |
10938 | $bailout | |
10939 | elif test $pkg_failed = untried; then | |
10940 | $bailout | |
10941 | else | |
10942 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
10943 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
10944 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10945 | $as_echo "yes" >&6; } | |
10946 | HAVE_SALCK=yes | |
10947 | fi | |
10948 | CHECKCPG=yes | |
10949 | fi | |
10950 | ||
10951 | ||
10952 | ||
10953 | if test x$CHECKCONFDB = xyes; then | |
10954 | ||
10955 | pkg_failed=no | |
10956 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
10957 | $as_echo_n "checking for CONFDB... " >&6; } | |
10958 | ||
10959 | if test -n "$CONFDB_CFLAGS"; then | |
10960 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
10961 | elif test -n "$PKG_CONFIG"; then | |
10962 | if test -n "$PKG_CONFIG" && \ | |
10963 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
10964 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
10965 | ac_status=$? | |
10966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10967 | (exit $ac_status); }; then | |
10968 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
10969 | else | |
10970 | pkg_failed=yes | |
10971 | fi | |
10972 | else | |
10973 | pkg_failed=untried | |
10974 | fi | |
10975 | if test -n "$CONFDB_LIBS"; then | |
10976 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
10977 | elif test -n "$PKG_CONFIG"; then | |
10978 | if test -n "$PKG_CONFIG" && \ | |
10979 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
10980 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
10981 | ac_status=$? | |
10982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 | (exit $ac_status); }; then | |
10984 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
10985 | else | |
10986 | pkg_failed=yes | |
10987 | fi | |
10988 | else | |
10989 | pkg_failed=untried | |
10990 | fi | |
10991 | ||
10992 | ||
10993 | ||
10994 | if test $pkg_failed = yes; then | |
10995 | ||
10996 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10997 | _pkg_short_errors_supported=yes | |
10998 | else | |
10999 | _pkg_short_errors_supported=no | |
11000 | fi | |
11001 | if test $_pkg_short_errors_supported = yes; then | |
11002 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
11003 | else | |
11004 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
11005 | fi | |
11006 | # Put the nasty error message in config.log where it belongs | |
11007 | echo "$CONFDB_PKG_ERRORS" >&5 | |
11008 | ||
11009 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11010 | $as_echo "no" >&6; } | |
11011 | HAVE_CONFDB=no | |
11012 | elif test $pkg_failed = untried; then | |
11013 | HAVE_CONFDB=no | |
11014 | else | |
11015 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11016 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11017 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11018 | $as_echo "yes" >&6; } | |
11019 | HAVE_CONFDB=yes | |
11020 | fi | |
11021 | ||
11022 | ||
11023 | for ac_header in corosync/confdb.h | |
11024 | do | |
11025 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11027 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11028 | $as_echo_n "checking for $ac_header... " >&6; } | |
11029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11030 | $as_echo_n "(cached) " >&6 | |
11031 | fi | |
11032 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11033 | $as_echo "$as_val"'` | |
11034 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11035 | $as_echo "$ac_res" >&6; } | |
11036 | else | |
11037 | # Is the header compilable? | |
11038 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11039 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11040 | cat >conftest.$ac_ext <<_ACEOF | |
11041 | /* confdefs.h. */ | |
11042 | _ACEOF | |
11043 | cat confdefs.h >>conftest.$ac_ext | |
11044 | cat >>conftest.$ac_ext <<_ACEOF | |
11045 | /* end confdefs.h. */ | |
11046 | $ac_includes_default | |
11047 | #include <$ac_header> | |
11048 | _ACEOF | |
11049 | rm -f conftest.$ac_objext | |
11050 | if { (ac_try="$ac_compile" | |
11051 | case "(($ac_try" in | |
11052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11053 | *) ac_try_echo=$ac_try;; | |
11054 | esac | |
11055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11056 | $as_echo "$ac_try_echo") >&5 | |
11057 | (eval "$ac_compile") 2>conftest.er1 | |
11058 | ac_status=$? | |
11059 | grep -v '^ *+' conftest.er1 >conftest.err | |
11060 | rm -f conftest.er1 | |
11061 | cat conftest.err >&5 | |
11062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11063 | (exit $ac_status); } && { | |
11064 | test -z "$ac_c_werror_flag" || | |
11065 | test ! -s conftest.err | |
11066 | } && test -s conftest.$ac_objext; then | |
11067 | ac_header_compiler=yes | |
11068 | else | |
11069 | $as_echo "$as_me: failed program was:" >&5 | |
11070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11071 | ||
11072 | ac_header_compiler=no | |
11073 | fi | |
11074 | ||
11075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11076 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11077 | $as_echo "$ac_header_compiler" >&6; } | |
11078 | ||
11079 | # Is the header present? | |
11080 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11081 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11082 | cat >conftest.$ac_ext <<_ACEOF | |
11083 | /* confdefs.h. */ | |
11084 | _ACEOF | |
11085 | cat confdefs.h >>conftest.$ac_ext | |
11086 | cat >>conftest.$ac_ext <<_ACEOF | |
11087 | /* end confdefs.h. */ | |
11088 | #include <$ac_header> | |
11089 | _ACEOF | |
11090 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11091 | case "(($ac_try" in | |
11092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11093 | *) ac_try_echo=$ac_try;; | |
11094 | esac | |
11095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11096 | $as_echo "$ac_try_echo") >&5 | |
11097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11098 | ac_status=$? | |
11099 | grep -v '^ *+' conftest.er1 >conftest.err | |
11100 | rm -f conftest.er1 | |
11101 | cat conftest.err >&5 | |
11102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11103 | (exit $ac_status); } >/dev/null && { | |
11104 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11105 | test ! -s conftest.err | |
11106 | }; then | |
11107 | ac_header_preproc=yes | |
11108 | else | |
11109 | $as_echo "$as_me: failed program was:" >&5 | |
11110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11111 | ||
11112 | ac_header_preproc=no | |
11113 | fi | |
11114 | ||
11115 | rm -f conftest.err conftest.$ac_ext | |
11116 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11117 | $as_echo "$ac_header_preproc" >&6; } | |
11118 | ||
11119 | # So? What about this header? | |
11120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11121 | yes:no: ) | |
11122 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11123 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11124 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11125 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11126 | ac_header_preproc=yes | |
11127 | ;; | |
11128 | no:yes:* ) | |
11129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11130 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11131 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11132 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11133 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11134 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11136 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11138 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11140 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11141 | ||
11142 | ;; | |
11143 | esac | |
11144 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11145 | $as_echo_n "checking for $ac_header... " >&6; } | |
11146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11147 | $as_echo_n "(cached) " >&6 | |
11148 | else | |
11149 | eval "$as_ac_Header=\$ac_header_preproc" | |
11150 | fi | |
11151 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11152 | $as_echo "$as_val"'` | |
11153 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11154 | $as_echo "$ac_res" >&6; } | |
11155 | ||
11156 | fi | |
11157 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11158 | $as_echo "$as_val"'` | |
11159 | if test "x$as_val" = x""yes; then | |
11160 | cat >>confdefs.h <<_ACEOF | |
11161 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11162 | _ACEOF | |
11163 | HAVE_CONFDB_H=yes | |
11164 | else | |
11165 | HAVE_CONFDB_H=no | |
11166 | fi | |
11167 | ||
11168 | done | |
11169 | ||
11170 | ||
11171 | if test x$HAVE_CONFDB != xyes && \ | |
11172 | test x$HAVE_CONFDB_H = xyes; then | |
11173 | check_lib_no_libs confdb confdb_initialize | |
11174 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11175 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11176 | CONFDB_LIBS="-lconfdb" | |
11177 | HAVE_CONFDB=yes | |
11178 | fi | |
11179 | ||
11180 | if test x$BUILDCOROSYNC = xyes && \ | |
11181 | test x$HAVE_CONFDB != xyes && | |
11182 | test x$CLVMD != xall; then | |
11183 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11184 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11185 | { (exit 1); exit 1; }; } | |
11186 | fi | |
11187 | fi | |
11188 | ||
11189 | if test x$CHECKCPG = xyes; then | |
11190 | ||
11191 | pkg_failed=no | |
11192 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11193 | $as_echo_n "checking for CPG... " >&6; } | |
11194 | ||
11195 | if test -n "$CPG_CFLAGS"; then | |
11196 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11197 | elif test -n "$PKG_CONFIG"; then | |
11198 | if test -n "$PKG_CONFIG" && \ | |
11199 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11200 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11201 | ac_status=$? | |
11202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11203 | (exit $ac_status); }; then | |
11204 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11205 | else | |
11206 | pkg_failed=yes | |
11207 | fi | |
11208 | else | |
11209 | pkg_failed=untried | |
11210 | fi | |
11211 | if test -n "$CPG_LIBS"; then | |
11212 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11213 | elif test -n "$PKG_CONFIG"; then | |
11214 | if test -n "$PKG_CONFIG" && \ | |
11215 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11216 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11217 | ac_status=$? | |
11218 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11219 | (exit $ac_status); }; then | |
11220 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11221 | else | |
11222 | pkg_failed=yes | |
11223 | fi | |
11224 | else | |
11225 | pkg_failed=untried | |
11226 | fi | |
11227 | ||
11228 | ||
11229 | ||
11230 | if test $pkg_failed = yes; then | |
11231 | ||
11232 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11233 | _pkg_short_errors_supported=yes | |
11234 | else | |
11235 | _pkg_short_errors_supported=no | |
11236 | fi | |
11237 | if test $_pkg_short_errors_supported = yes; then | |
11238 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11239 | else | |
11240 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11241 | fi | |
11242 | # Put the nasty error message in config.log where it belongs | |
11243 | echo "$CPG_PKG_ERRORS" >&5 | |
11244 | ||
11245 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11246 | $as_echo "no" >&6; } | |
11247 | $bailout | |
11248 | elif test $pkg_failed = untried; then | |
11249 | $bailout | |
11250 | else | |
11251 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11252 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11253 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11254 | $as_echo "yes" >&6; } | |
11255 | HAVE_CPG=yes | |
11256 | fi | |
11257 | fi | |
11258 | ||
11259 | if test x$CHECKDLM = xyes; then | |
11260 | ||
11261 | pkg_failed=no | |
11262 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11263 | $as_echo_n "checking for DLM... " >&6; } | |
11264 | ||
11265 | if test -n "$DLM_CFLAGS"; then | |
11266 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11267 | elif test -n "$PKG_CONFIG"; then | |
11268 | if test -n "$PKG_CONFIG" && \ | |
11269 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11270 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11271 | ac_status=$? | |
11272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11273 | (exit $ac_status); }; then | |
11274 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11275 | else | |
11276 | pkg_failed=yes | |
11277 | fi | |
11278 | else | |
11279 | pkg_failed=untried | |
11280 | fi | |
11281 | if test -n "$DLM_LIBS"; then | |
11282 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11283 | elif test -n "$PKG_CONFIG"; then | |
11284 | if test -n "$PKG_CONFIG" && \ | |
11285 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11286 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11287 | ac_status=$? | |
11288 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11289 | (exit $ac_status); }; then | |
11290 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11291 | else | |
11292 | pkg_failed=yes | |
11293 | fi | |
11294 | else | |
11295 | pkg_failed=untried | |
11296 | fi | |
11297 | ||
11298 | ||
11299 | ||
11300 | if test $pkg_failed = yes; then | |
11301 | ||
11302 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11303 | _pkg_short_errors_supported=yes | |
11304 | else | |
11305 | _pkg_short_errors_supported=no | |
11306 | fi | |
11307 | if test $_pkg_short_errors_supported = yes; then | |
11308 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11309 | else | |
11310 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11311 | fi | |
11312 | # Put the nasty error message in config.log where it belongs | |
11313 | echo "$DLM_PKG_ERRORS" >&5 | |
11314 | ||
11315 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11316 | $as_echo "no" >&6; } | |
11317 | NOTFOUND=0 | |
11318 | ||
11319 | for ac_header in libdlm.h | |
11320 | do | |
11321 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11323 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11324 | $as_echo_n "checking for $ac_header... " >&6; } | |
11325 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11326 | $as_echo_n "(cached) " >&6 | |
11327 | fi | |
11328 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11329 | $as_echo "$as_val"'` | |
11330 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11331 | $as_echo "$ac_res" >&6; } | |
11332 | else | |
11333 | # Is the header compilable? | |
11334 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11335 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11336 | cat >conftest.$ac_ext <<_ACEOF | |
11337 | /* confdefs.h. */ | |
11338 | _ACEOF | |
11339 | cat confdefs.h >>conftest.$ac_ext | |
11340 | cat >>conftest.$ac_ext <<_ACEOF | |
11341 | /* end confdefs.h. */ | |
11342 | $ac_includes_default | |
11343 | #include <$ac_header> | |
11344 | _ACEOF | |
11345 | rm -f conftest.$ac_objext | |
11346 | if { (ac_try="$ac_compile" | |
11347 | case "(($ac_try" in | |
11348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11349 | *) ac_try_echo=$ac_try;; | |
11350 | esac | |
11351 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11352 | $as_echo "$ac_try_echo") >&5 | |
11353 | (eval "$ac_compile") 2>conftest.er1 | |
11354 | ac_status=$? | |
11355 | grep -v '^ *+' conftest.er1 >conftest.err | |
11356 | rm -f conftest.er1 | |
11357 | cat conftest.err >&5 | |
11358 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11359 | (exit $ac_status); } && { | |
11360 | test -z "$ac_c_werror_flag" || | |
11361 | test ! -s conftest.err | |
11362 | } && test -s conftest.$ac_objext; then | |
11363 | ac_header_compiler=yes | |
11364 | else | |
11365 | $as_echo "$as_me: failed program was:" >&5 | |
11366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11367 | ||
11368 | ac_header_compiler=no | |
11369 | fi | |
11370 | ||
11371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11372 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11373 | $as_echo "$ac_header_compiler" >&6; } | |
11374 | ||
11375 | # Is the header present? | |
11376 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11377 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11378 | cat >conftest.$ac_ext <<_ACEOF | |
11379 | /* confdefs.h. */ | |
11380 | _ACEOF | |
11381 | cat confdefs.h >>conftest.$ac_ext | |
11382 | cat >>conftest.$ac_ext <<_ACEOF | |
11383 | /* end confdefs.h. */ | |
11384 | #include <$ac_header> | |
11385 | _ACEOF | |
11386 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11387 | case "(($ac_try" in | |
11388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11389 | *) ac_try_echo=$ac_try;; | |
11390 | esac | |
11391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11392 | $as_echo "$ac_try_echo") >&5 | |
11393 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11394 | ac_status=$? | |
11395 | grep -v '^ *+' conftest.er1 >conftest.err | |
11396 | rm -f conftest.er1 | |
11397 | cat conftest.err >&5 | |
11398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11399 | (exit $ac_status); } >/dev/null && { | |
11400 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11401 | test ! -s conftest.err | |
11402 | }; then | |
11403 | ac_header_preproc=yes | |
11404 | else | |
11405 | $as_echo "$as_me: failed program was:" >&5 | |
11406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11407 | ||
11408 | ac_header_preproc=no | |
11409 | fi | |
11410 | ||
11411 | rm -f conftest.err conftest.$ac_ext | |
11412 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11413 | $as_echo "$ac_header_preproc" >&6; } | |
11414 | ||
11415 | # So? What about this header? | |
11416 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11417 | yes:no: ) | |
11418 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11419 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11420 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11421 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11422 | ac_header_preproc=yes | |
11423 | ;; | |
11424 | no:yes:* ) | |
11425 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11426 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11427 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11428 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11430 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11432 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11433 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11434 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11435 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11436 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11437 | ||
11438 | ;; | |
11439 | esac | |
11440 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11441 | $as_echo_n "checking for $ac_header... " >&6; } | |
11442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11443 | $as_echo_n "(cached) " >&6 | |
11444 | else | |
11445 | eval "$as_ac_Header=\$ac_header_preproc" | |
11446 | fi | |
11447 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11448 | $as_echo "$as_val"'` | |
11449 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11450 | $as_echo "$ac_res" >&6; } | |
11451 | ||
11452 | fi | |
11453 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11454 | $as_echo "$as_val"'` | |
11455 | if test "x$as_val" = x""yes; then | |
11456 | cat >>confdefs.h <<_ACEOF | |
11457 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11458 | _ACEOF | |
11459 | ||
11460 | else | |
11461 | $bailout | |
11462 | fi | |
11463 | ||
11464 | done | |
11465 | ||
11466 | check_lib_no_libs dlm dlm_lock -lpthread | |
11467 | if test $NOTFOUND = 0; then | |
11468 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11469 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11470 | DLM_LIBS="-ldlm -lpthread" | |
11471 | HAVE_DLM=yes | |
11472 | fi | |
11473 | elif test $pkg_failed = untried; then | |
11474 | NOTFOUND=0 | |
11475 | ||
11476 | for ac_header in libdlm.h | |
11477 | do | |
11478 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11479 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11480 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11481 | $as_echo_n "checking for $ac_header... " >&6; } | |
11482 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11483 | $as_echo_n "(cached) " >&6 | |
11484 | fi | |
11485 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11486 | $as_echo "$as_val"'` | |
11487 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11488 | $as_echo "$ac_res" >&6; } | |
11489 | else | |
11490 | # Is the header compilable? | |
11491 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11492 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11493 | cat >conftest.$ac_ext <<_ACEOF | |
11494 | /* confdefs.h. */ | |
11495 | _ACEOF | |
11496 | cat confdefs.h >>conftest.$ac_ext | |
11497 | cat >>conftest.$ac_ext <<_ACEOF | |
11498 | /* end confdefs.h. */ | |
11499 | $ac_includes_default | |
11500 | #include <$ac_header> | |
11501 | _ACEOF | |
11502 | rm -f conftest.$ac_objext | |
11503 | if { (ac_try="$ac_compile" | |
11504 | case "(($ac_try" in | |
11505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11506 | *) ac_try_echo=$ac_try;; | |
11507 | esac | |
11508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11509 | $as_echo "$ac_try_echo") >&5 | |
11510 | (eval "$ac_compile") 2>conftest.er1 | |
11511 | ac_status=$? | |
11512 | grep -v '^ *+' conftest.er1 >conftest.err | |
11513 | rm -f conftest.er1 | |
11514 | cat conftest.err >&5 | |
11515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11516 | (exit $ac_status); } && { | |
11517 | test -z "$ac_c_werror_flag" || | |
11518 | test ! -s conftest.err | |
11519 | } && test -s conftest.$ac_objext; then | |
11520 | ac_header_compiler=yes | |
11521 | else | |
11522 | $as_echo "$as_me: failed program was:" >&5 | |
11523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11524 | ||
11525 | ac_header_compiler=no | |
11526 | fi | |
11527 | ||
11528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11529 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11530 | $as_echo "$ac_header_compiler" >&6; } | |
11531 | ||
11532 | # Is the header present? | |
11533 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11534 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11535 | cat >conftest.$ac_ext <<_ACEOF | |
11536 | /* confdefs.h. */ | |
11537 | _ACEOF | |
11538 | cat confdefs.h >>conftest.$ac_ext | |
11539 | cat >>conftest.$ac_ext <<_ACEOF | |
11540 | /* end confdefs.h. */ | |
11541 | #include <$ac_header> | |
11542 | _ACEOF | |
11543 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11544 | case "(($ac_try" in | |
11545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11546 | *) ac_try_echo=$ac_try;; | |
11547 | esac | |
11548 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11549 | $as_echo "$ac_try_echo") >&5 | |
11550 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11551 | ac_status=$? | |
11552 | grep -v '^ *+' conftest.er1 >conftest.err | |
11553 | rm -f conftest.er1 | |
11554 | cat conftest.err >&5 | |
11555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11556 | (exit $ac_status); } >/dev/null && { | |
11557 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11558 | test ! -s conftest.err | |
11559 | }; then | |
11560 | ac_header_preproc=yes | |
11561 | else | |
11562 | $as_echo "$as_me: failed program was:" >&5 | |
11563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11564 | ||
11565 | ac_header_preproc=no | |
11566 | fi | |
11567 | ||
11568 | rm -f conftest.err conftest.$ac_ext | |
11569 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11570 | $as_echo "$ac_header_preproc" >&6; } | |
11571 | ||
11572 | # So? What about this header? | |
11573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11574 | yes:no: ) | |
11575 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11576 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11577 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11578 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11579 | ac_header_preproc=yes | |
11580 | ;; | |
11581 | no:yes:* ) | |
11582 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11583 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11584 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11585 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11586 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11587 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11588 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11589 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11590 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11591 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11592 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11593 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11594 | ||
11595 | ;; | |
11596 | esac | |
11597 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11598 | $as_echo_n "checking for $ac_header... " >&6; } | |
11599 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11600 | $as_echo_n "(cached) " >&6 | |
11601 | else | |
11602 | eval "$as_ac_Header=\$ac_header_preproc" | |
11603 | fi | |
11604 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11605 | $as_echo "$as_val"'` | |
11606 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11607 | $as_echo "$ac_res" >&6; } | |
11608 | ||
11609 | fi | |
11610 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11611 | $as_echo "$as_val"'` | |
11612 | if test "x$as_val" = x""yes; then | |
11613 | cat >>confdefs.h <<_ACEOF | |
11614 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11615 | _ACEOF | |
11616 | ||
11617 | else | |
11618 | $bailout | |
11619 | fi | |
11620 | ||
11621 | done | |
11622 | ||
11623 | check_lib_no_libs dlm dlm_lock -lpthread | |
11624 | if test $NOTFOUND = 0; then | |
11625 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11626 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11627 | DLM_LIBS="-ldlm -lpthread" | |
11628 | HAVE_DLM=yes | |
11629 | fi | |
11630 | else | |
11631 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11632 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11633 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11634 | $as_echo "yes" >&6; } | |
11635 | HAVE_DLM=yes | |
11636 | fi | |
11637 | fi | |
11638 | ||
11639 | if test x$CLVMD = xall; then | |
8c222979 | 11640 | CLVMD=none |
a946372e AK |
11641 | if test x$HAVE_CCS = xyes && \ |
11642 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
11643 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
11644 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
11645 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
11646 | fi |
11647 | if test x$HAVE_CMAN = xyes && \ | |
11648 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
11649 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
11650 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
11651 | CLVMD="$CLVMD,cman" | |
a946372e AK |
11652 | fi |
11653 | if test x$HAVE_COROSYNC = xyes && \ | |
11654 | test x$HAVE_QUORUM = xyes && \ | |
11655 | test x$HAVE_CPG = xyes && \ | |
11656 | test x$HAVE_DLM = xyes && \ | |
11657 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
11658 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
11659 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
11660 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
11661 | fi |
11662 | if test x$HAVE_COROSYNC = xyes && \ | |
11663 | test x$HAVE_CPG = xyes && \ | |
11664 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
11665 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
11666 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
11667 | CLVMD="$CLVMD,openais" | |
11668 | fi | |
11669 | if test x$CLVMD = xnone; then | |
11670 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
11671 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 11672 | fi |
a946372e AK |
11673 | fi |
11674 | ||
11675 | ################################################################################ | |
66fd4529 AK |
11676 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11677 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11678 | # Check whether --enable-cmirrord was given. | |
11679 | if test "${enable_cmirrord+set}" = set; then | |
11680 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11681 | else | |
11682 | CMIRRORD=no | |
11683 | fi | |
11684 | ||
11685 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11686 | $as_echo "$CMIRRORD" >&6; } | |
11687 | ||
11688 | BUILD_CMIRRORD=$CMIRRORD | |
11689 | ||
11690 | ################################################################################ | |
11691 | ||
11692 | ||
11693 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11694 | ||
11695 | # Check whether --with-cmirrord-pidfile was given. | |
11696 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11697 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11698 | #define CMIRRORD_PIDFILE "$withval" | |
11699 | _ACEOF | |
11700 | ||
11701 | else | |
11702 | cat >>confdefs.h <<_ACEOF | |
11703 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11704 | _ACEOF | |
11705 | ||
a946372e AK |
11706 | fi |
11707 | ||
66fd4529 | 11708 | fi |
a946372e | 11709 | |
66fd4529 AK |
11710 | ################################################################################ |
11711 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
11712 | if test x$PKGCONFIG_INIT != x1; then |
11713 | pkg_config_init | |
11714 | fi | |
11715 | ||
11716 | pkg_failed=no | |
11717 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
11718 | $as_echo_n "checking for SACKPT... " >&6; } | |
11719 | ||
11720 | if test -n "$SACKPT_CFLAGS"; then | |
11721 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
11722 | elif test -n "$PKG_CONFIG"; then | |
11723 | if test -n "$PKG_CONFIG" && \ | |
11724 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11725 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11726 | ac_status=$? | |
11727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11728 | (exit $ac_status); }; then | |
11729 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
11730 | else | |
11731 | pkg_failed=yes | |
11732 | fi | |
11733 | else | |
11734 | pkg_failed=untried | |
11735 | fi | |
11736 | if test -n "$SACKPT_LIBS"; then | |
11737 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
11738 | elif test -n "$PKG_CONFIG"; then | |
11739 | if test -n "$PKG_CONFIG" && \ | |
11740 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11741 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11742 | ac_status=$? | |
11743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11744 | (exit $ac_status); }; then | |
11745 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
11746 | else | |
11747 | pkg_failed=yes | |
11748 | fi | |
11749 | else | |
11750 | pkg_failed=untried | |
11751 | fi | |
11752 | ||
11753 | ||
11754 | ||
11755 | if test $pkg_failed = yes; then | |
11756 | ||
11757 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11758 | _pkg_short_errors_supported=yes | |
11759 | else | |
11760 | _pkg_short_errors_supported=no | |
11761 | fi | |
11762 | if test $_pkg_short_errors_supported = yes; then | |
11763 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
11764 | else | |
11765 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
11766 | fi | |
11767 | # Put the nasty error message in config.log where it belongs | |
11768 | echo "$SACKPT_PKG_ERRORS" >&5 | |
11769 | ||
11770 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
11771 | ||
11772 | $SACKPT_PKG_ERRORS | |
11773 | ||
11774 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11775 | installed software in a non-standard prefix. | |
11776 | ||
11777 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11778 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11779 | See the pkg-config man page for more details. | |
11780 | " >&5 | |
11781 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: | |
11782 | ||
11783 | $SACKPT_PKG_ERRORS | |
11784 | ||
11785 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11786 | installed software in a non-standard prefix. | |
11787 | ||
11788 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11789 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11790 | See the pkg-config man page for more details. | |
11791 | " >&2;} | |
11792 | { (exit 1); exit 1; }; } | |
11793 | elif test $pkg_failed = untried; then | |
11794 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11796 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11797 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11798 | path to pkg-config. | |
11799 | ||
11800 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11801 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11802 | See the pkg-config man page for more details. | |
11803 | ||
11804 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11805 | See \`config.log' for more details." >&5 | |
11806 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11807 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11808 | path to pkg-config. | |
11809 | ||
11810 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11811 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11812 | See the pkg-config man page for more details. | |
11813 | ||
11814 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11815 | See \`config.log' for more details." >&2;} | |
11816 | { (exit 1); exit 1; }; }; } | |
11817 | else | |
11818 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
11819 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
11820 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11821 | $as_echo "yes" >&6; } | |
11822 | : | |
11823 | fi | |
11824 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
11825 | |
11826 | pkg_failed=no | |
11827 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11828 | $as_echo_n "checking for CPG... " >&6; } | |
11829 | ||
11830 | if test -n "$CPG_CFLAGS"; then | |
11831 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11832 | elif test -n "$PKG_CONFIG"; then | |
11833 | if test -n "$PKG_CONFIG" && \ | |
11834 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11835 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11836 | ac_status=$? | |
11837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11838 | (exit $ac_status); }; then | |
11839 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11840 | else | |
11841 | pkg_failed=yes | |
11842 | fi | |
11843 | else | |
11844 | pkg_failed=untried | |
11845 | fi | |
11846 | if test -n "$CPG_LIBS"; then | |
11847 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11848 | elif test -n "$PKG_CONFIG"; then | |
11849 | if test -n "$PKG_CONFIG" && \ | |
11850 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11851 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11852 | ac_status=$? | |
11853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11854 | (exit $ac_status); }; then | |
11855 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11856 | else | |
11857 | pkg_failed=yes | |
11858 | fi | |
11859 | else | |
11860 | pkg_failed=untried | |
11861 | fi | |
11862 | ||
11863 | ||
11864 | ||
11865 | if test $pkg_failed = yes; then | |
11866 | ||
11867 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11868 | _pkg_short_errors_supported=yes | |
11869 | else | |
11870 | _pkg_short_errors_supported=no | |
11871 | fi | |
11872 | if test $_pkg_short_errors_supported = yes; then | |
11873 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11874 | else | |
11875 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11876 | fi | |
11877 | # Put the nasty error message in config.log where it belongs | |
11878 | echo "$CPG_PKG_ERRORS" >&5 | |
11879 | ||
90c80887 AK |
11880 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
11881 | ||
11882 | $CPG_PKG_ERRORS | |
11883 | ||
11884 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11885 | installed software in a non-standard prefix. | |
11886 | ||
11887 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11888 | and CPG_LIBS to avoid the need to call pkg-config. | |
11889 | See the pkg-config man page for more details. | |
11890 | " >&5 | |
11891 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: | |
11892 | ||
11893 | $CPG_PKG_ERRORS | |
11894 | ||
11895 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11896 | installed software in a non-standard prefix. | |
11897 | ||
11898 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11899 | and CPG_LIBS to avoid the need to call pkg-config. | |
11900 | See the pkg-config man page for more details. | |
11901 | " >&2;} | |
11902 | { (exit 1); exit 1; }; } | |
a946372e | 11903 | elif test $pkg_failed = untried; then |
90c80887 AK |
11904 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
11905 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11906 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11907 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11908 | path to pkg-config. | |
11909 | ||
11910 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11911 | and CPG_LIBS to avoid the need to call pkg-config. | |
11912 | See the pkg-config man page for more details. | |
11913 | ||
11914 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11915 | See \`config.log' for more details." >&5 | |
11916 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11917 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11918 | path to pkg-config. | |
11919 | ||
11920 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11921 | and CPG_LIBS to avoid the need to call pkg-config. | |
11922 | See the pkg-config man page for more details. | |
11923 | ||
11924 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11925 | See \`config.log' for more details." >&2;} | |
11926 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
11927 | else |
11928 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11929 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11930 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11931 | $as_echo "yes" >&6; } | |
11932 | : | |
11933 | fi | |
90c80887 | 11934 | fi |
a946372e AK |
11935 | fi |
11936 | ||
11937 | ################################################################################ | |
11938 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
11939 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
11940 | # Check whether --enable-debug was given. | |
11941 | if test "${enable_debug+set}" = set; then | |
11942 | enableval=$enable_debug; DEBUG=$enableval | |
11943 | else | |
11944 | DEBUG=no | |
11945 | fi | |
11946 | ||
11947 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
11948 | $as_echo "$DEBUG" >&6; } | |
11949 | ||
11950 | if test x$DEBUG = xyes; then | |
11951 | COPTIMISE_FLAG= | |
11952 | else | |
11953 | CSCOPE_CMD= | |
11954 | fi | |
11955 | ||
11956 | ################################################################################ | |
11957 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
11958 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
11959 | ||
11960 | # Check whether --with-optimisation was given. | |
11961 | if test "${with_optimisation+set}" = set; then | |
11962 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
11963 | fi | |
11964 | ||
11965 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
11966 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
11967 | ||
11968 | ################################################################################ | |
11969 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
11970 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
11971 | # Check whether --enable-profiling was given. | |
11972 | if test "${enable_profiling+set}" = set; then | |
5556819a | 11973 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 11974 | else |
5556819a | 11975 | PROFILING=no |
fddafd51 ZK |
11976 | fi |
11977 | ||
ec6a6fbe AK |
11978 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
11979 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
11980 | |
11981 | if test "x$PROFILING" = xyes; then | |
11982 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
11983 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 11984 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
11985 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11986 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 11987 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 11988 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
11989 | else |
11990 | case $LCOV in | |
11991 | [\\/]* | ?:[\\/]*) | |
11992 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
11993 | ;; | |
11994 | *) | |
11995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11996 | for as_dir in $PATH | |
11997 | do | |
11998 | IFS=$as_save_IFS | |
11999 | test -z "$as_dir" && as_dir=. | |
12000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12002 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12003 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12004 | break 2 |
12005 | fi | |
12006 | done | |
12007 | done | |
12008 | IFS=$as_save_IFS | |
12009 | ||
b145d876 | 12010 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
12011 | ;; |
12012 | esac | |
12013 | fi | |
12014 | LCOV=$ac_cv_path_LCOV | |
12015 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
12016 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
12017 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 12018 | else |
ec6a6fbe AK |
12019 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12020 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12021 | fi |
12022 | ||
12023 | ||
5556819a | 12024 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 12025 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
12026 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12027 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12028 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 12029 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12030 | else |
12031 | case $GENHTML in | |
12032 | [\\/]* | ?:[\\/]*) | |
12033 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
12034 | ;; | |
12035 | *) | |
12036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12037 | for as_dir in $PATH | |
12038 | do | |
12039 | IFS=$as_save_IFS | |
12040 | test -z "$as_dir" && as_dir=. | |
12041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12043 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12044 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12045 | break 2 |
12046 | fi | |
12047 | done | |
12048 | done | |
12049 | IFS=$as_save_IFS | |
12050 | ||
b145d876 | 12051 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
12052 | ;; |
12053 | esac | |
12054 | fi | |
12055 | GENHTML=$ac_cv_path_GENHTML | |
12056 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
12057 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
12058 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 12059 | else |
ec6a6fbe AK |
12060 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12061 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12062 | fi |
12063 | ||
12064 | ||
b145d876 | 12065 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
12066 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
12067 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
12068 | { (exit 1); exit 1; }; } |
12069 | fi | |
5556819a | 12070 | fi |
d0191583 JM |
12071 | |
12072 | ################################################################################ | |
ec6a6fbe AK |
12073 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
12074 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
12075 | # Check whether --enable-devmapper was given. |
12076 | if test "${enable_devmapper+set}" = set; then | |
12077 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
12078 | fi |
12079 | ||
ec6a6fbe AK |
12080 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
12081 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
12082 | |
12083 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
12084 | |
12085 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 12086 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
12087 | _ACEOF |
12088 | ||
12089 | fi | |
12090 | ||
a5f46f6a AK |
12091 | ################################################################################ |
12092 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
12093 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
12094 | # Check whether --enable-udev_sync was given. | |
12095 | if test "${enable_udev_sync+set}" = set; then | |
12096 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
12097 | else | |
12098 | UDEV_SYNC=no | |
12099 | fi | |
12100 | ||
12101 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
12102 | $as_echo "$UDEV_SYNC" >&6; } | |
12103 | ||
12104 | if test x$UDEV_SYNC = xyes; then | |
12105 | ||
12106 | cat >>confdefs.h <<\_ACEOF | |
12107 | #define UDEV_SYNC_SUPPORT 1 | |
12108 | _ACEOF | |
12109 | ||
12110 | fi | |
12111 | ||
12112 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
12113 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
12114 | # Check whether --enable-udev_rules was given. | |
12115 | if test "${enable_udev_rules+set}" = set; then | |
12116 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
12117 | else | |
12118 | UDEV_RULES=$UDEV_SYNC | |
12119 | fi | |
12120 | ||
12121 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
12122 | $as_echo "$UDEV_RULES" >&6; } | |
12123 | ||
90c80887 AK |
12124 | ################################################################################ |
12125 | ||
12126 | if test x$UDEV_SYNC = xyes; then | |
12127 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
12128 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
12129 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
12130 | $as_echo_n "(cached) " >&6 | |
12131 | else | |
12132 | ac_check_lib_save_LIBS=$LIBS | |
12133 | LIBS="-ludev $LIBS" | |
12134 | cat >conftest.$ac_ext <<_ACEOF | |
12135 | /* confdefs.h. */ | |
12136 | _ACEOF | |
12137 | cat confdefs.h >>conftest.$ac_ext | |
12138 | cat >>conftest.$ac_ext <<_ACEOF | |
12139 | /* end confdefs.h. */ | |
12140 | ||
12141 | /* Override any GCC internal prototype to avoid an error. | |
12142 | Use char because int might match the return type of a GCC | |
12143 | builtin and then its argument prototype would still apply. */ | |
12144 | #ifdef __cplusplus | |
12145 | extern "C" | |
12146 | #endif | |
12147 | char udev_queue_get_udev_is_active (); | |
12148 | int | |
12149 | main () | |
12150 | { | |
12151 | return udev_queue_get_udev_is_active (); | |
12152 | ; | |
12153 | return 0; | |
12154 | } | |
12155 | _ACEOF | |
12156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12157 | if { (ac_try="$ac_link" | |
12158 | case "(($ac_try" in | |
12159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12160 | *) ac_try_echo=$ac_try;; | |
12161 | esac | |
12162 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12163 | $as_echo "$ac_try_echo") >&5 | |
12164 | (eval "$ac_link") 2>conftest.er1 | |
12165 | ac_status=$? | |
12166 | grep -v '^ *+' conftest.er1 >conftest.err | |
12167 | rm -f conftest.er1 | |
12168 | cat conftest.err >&5 | |
12169 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12170 | (exit $ac_status); } && { | |
12171 | test -z "$ac_c_werror_flag" || | |
12172 | test ! -s conftest.err | |
12173 | } && test -s conftest$ac_exeext && { | |
12174 | test "$cross_compiling" = yes || | |
12175 | $as_test_x conftest$ac_exeext | |
12176 | }; then | |
12177 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
12178 | else | |
12179 | $as_echo "$as_me: failed program was:" >&5 | |
12180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12181 | ||
12182 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
12183 | fi | |
12184 | ||
12185 | rm -rf conftest.dSYM | |
12186 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12187 | conftest$ac_exeext conftest.$ac_ext | |
12188 | LIBS=$ac_check_lib_save_LIBS | |
12189 | fi | |
12190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
12191 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
12192 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
12193 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes | |
12194 | else | |
12195 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no | |
12196 | fi | |
12197 | ||
12198 | ||
12199 | if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then | |
12200 | ||
12201 | cat >>confdefs.h <<\_ACEOF | |
12202 | #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1 | |
12203 | _ACEOF | |
12204 | ||
12205 | LIBS="-ludev $LIBS" | |
12206 | fi | |
12207 | fi | |
12208 | ||
93bd259b AK |
12209 | ################################################################################ |
12210 | # Check whether --enable-compat was given. | |
12211 | if test "${enable_compat+set}" = set; then | |
12212 | enableval=$enable_compat; DM_COMPAT=$enableval | |
12213 | else | |
12214 | DM_COMPAT=no | |
12215 | fi | |
12216 | ||
12217 | ||
12218 | ################################################################################ | |
12219 | # Check whether --enable-ioctl was given. | |
12220 | if test "${enable_ioctl+set}" = set; then | |
12221 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
12222 | fi | |
12223 | ||
12224 | ||
d0191583 | 12225 | ################################################################################ |
ec6a6fbe AK |
12226 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
12227 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
12228 | # Check whether --enable-o_direct was given. |
12229 | if test "${enable_o_direct+set}" = set; then | |
12230 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 12231 | fi |
ad6254c5 | 12232 | |
ec6a6fbe AK |
12233 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
12234 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 12235 | |
d0191583 | 12236 | if test x$ODIRECT = xyes; then |
ad6254c5 | 12237 | |
d0191583 JM |
12238 | cat >>confdefs.h <<\_ACEOF |
12239 | #define O_DIRECT_SUPPORT 1 | |
12240 | _ACEOF | |
ad6254c5 | 12241 | |
d0191583 | 12242 | fi |
ad6254c5 | 12243 | |
572fefeb AK |
12244 | ################################################################################ |
12245 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
12246 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
12247 | # Check whether --enable-applib was given. | |
12248 | if test "${enable_applib+set}" = set; then | |
12249 | enableval=$enable_applib; APPLIB=$enableval | |
12250 | else | |
12251 | APPLIB=no | |
12252 | fi | |
12253 | ||
12254 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12255 | $as_echo "$APPLIB" >&6; } | |
12256 | ||
12257 | test x$APPLIB = xyes \ | |
12258 | && LVM2APP_LIB=-llvm2app \ | |
12259 | || LVM2APP_LIB= | |
12260 | ||
d0191583 | 12261 | ################################################################################ |
ec6a6fbe AK |
12262 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12263 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12264 | # Check whether --enable-cmdlib was given. |
12265 | if test "${enable_cmdlib+set}" = set; then | |
12266 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12267 | else |
d0191583 JM |
12268 | CMDLIB=no |
12269 | fi | |
8a2fc586 | 12270 | |
ec6a6fbe AK |
12271 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12272 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12273 | |
2a9a80c9 | 12274 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12275 | && LVM2CMD_LIB=-llvm2cmd \ |
12276 | || LVM2CMD_LIB= | |
12277 | ||
93bd259b AK |
12278 | ################################################################################ |
12279 | # Check whether --enable-pkgconfig was given. | |
12280 | if test "${enable_pkgconfig+set}" = set; then | |
12281 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12282 | else | |
12283 | PKGCONFIG=no | |
12284 | fi | |
12285 | ||
2a9a80c9 | 12286 | |
d0191583 | 12287 | ################################################################################ |
ec6a6fbe AK |
12288 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12289 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12290 | # Check whether --enable-fsadm was given. |
12291 | if test "${enable_fsadm+set}" = set; then | |
12292 | enableval=$enable_fsadm; FSADM=$enableval | |
12293 | fi | |
8a2fc586 | 12294 | |
ec6a6fbe AK |
12295 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12296 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12297 | |
d0191583 | 12298 | ################################################################################ |
ec6a6fbe AK |
12299 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12300 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12301 | # Check whether --enable-dmeventd was given. |
12302 | if test "${enable_dmeventd+set}" = set; then | |
12303 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12304 | fi | |
ad6254c5 | 12305 | |
ec6a6fbe AK |
12306 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12307 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12308 | |
93bd259b AK |
12309 | BUILD_DMEVENTD=$DMEVENTD |
12310 | ||
2a9a80c9 PR |
12311 | if test x$DMEVENTD = xyes; then |
12312 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12313 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12314 | " >&5 |
ec6a6fbe | 12315 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12316 | " >&2;} |
d0191583 | 12317 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12318 | fi |
12319 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12320 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12321 | " >&5 |
ec6a6fbe | 12322 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12323 | " >&2;} |
12324 | { (exit 1); exit 1; }; } | |
12325 | fi | |
ad6254c5 | 12326 | fi |
7a197a62 | 12327 | |
d0191583 JM |
12328 | if test x$DMEVENTD = xyes; then |
12329 | ||
12330 | cat >>confdefs.h <<\_ACEOF | |
12331 | #define DMEVENTD 1 | |
ad6254c5 AK |
12332 | _ACEOF |
12333 | ||
ad6254c5 | 12334 | fi |
93bd259b AK |
12335 | |
12336 | ################################################################################ | |
12337 | ||
ec6a6fbe AK |
12338 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12339 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12340 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12341 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12342 | else |
12343 | ac_check_lib_save_LIBS=$LIBS | |
12344 | LIBS="-lc $LIBS" | |
12345 | cat >conftest.$ac_ext <<_ACEOF | |
12346 | /* confdefs.h. */ | |
12347 | _ACEOF | |
12348 | cat confdefs.h >>conftest.$ac_ext | |
12349 | cat >>conftest.$ac_ext <<_ACEOF | |
12350 | /* end confdefs.h. */ | |
12351 | ||
12352 | /* Override any GCC internal prototype to avoid an error. | |
12353 | Use char because int might match the return type of a GCC | |
12354 | builtin and then its argument prototype would still apply. */ | |
12355 | #ifdef __cplusplus | |
12356 | extern "C" | |
12357 | #endif | |
12358 | char getline (); | |
12359 | int | |
12360 | main () | |
12361 | { | |
12362 | return getline (); | |
12363 | ; | |
12364 | return 0; | |
12365 | } | |
12366 | _ACEOF | |
12367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12368 | if { (ac_try="$ac_link" | |
12369 | case "(($ac_try" in | |
12370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12371 | *) ac_try_echo=$ac_try;; | |
12372 | esac | |
ec6a6fbe AK |
12373 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12374 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12375 | (eval "$ac_link") 2>conftest.er1 |
12376 | ac_status=$? | |
12377 | grep -v '^ *+' conftest.er1 >conftest.err | |
12378 | rm -f conftest.er1 | |
12379 | cat conftest.err >&5 | |
ec6a6fbe | 12380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12381 | (exit $ac_status); } && { |
12382 | test -z "$ac_c_werror_flag" || | |
12383 | test ! -s conftest.err | |
ec6a6fbe AK |
12384 | } && test -s conftest$ac_exeext && { |
12385 | test "$cross_compiling" = yes || | |
12386 | $as_test_x conftest$ac_exeext | |
12387 | }; then | |
93bd259b AK |
12388 | ac_cv_lib_c_getline=yes |
12389 | else | |
ec6a6fbe | 12390 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12391 | sed 's/^/| /' conftest.$ac_ext >&5 |
12392 | ||
12393 | ac_cv_lib_c_getline=no | |
12394 | fi | |
12395 | ||
ec6a6fbe | 12396 | rm -rf conftest.dSYM |
93bd259b AK |
12397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12398 | conftest$ac_exeext conftest.$ac_ext | |
12399 | LIBS=$ac_check_lib_save_LIBS | |
12400 | fi | |
ec6a6fbe AK |
12401 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12402 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12403 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12404 | |
12405 | cat >>confdefs.h <<\_ACEOF | |
12406 | #define HAVE_GETLINE 1 | |
12407 | _ACEOF | |
12408 | ||
12409 | fi | |
12410 | ||
12411 | ||
12412 | ################################################################################ | |
12413 | ||
ec6a6fbe AK |
12414 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12415 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12416 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12417 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12418 | else |
12419 | ac_check_lib_save_LIBS=$LIBS | |
12420 | LIBS="-lc $LIBS" | |
12421 | cat >conftest.$ac_ext <<_ACEOF | |
12422 | /* confdefs.h. */ | |
12423 | _ACEOF | |
12424 | cat confdefs.h >>conftest.$ac_ext | |
12425 | cat >>conftest.$ac_ext <<_ACEOF | |
12426 | /* end confdefs.h. */ | |
12427 | ||
12428 | /* Override any GCC internal prototype to avoid an error. | |
12429 | Use char because int might match the return type of a GCC | |
12430 | builtin and then its argument prototype would still apply. */ | |
12431 | #ifdef __cplusplus | |
12432 | extern "C" | |
12433 | #endif | |
12434 | char canonicalize_file_name (); | |
12435 | int | |
12436 | main () | |
12437 | { | |
12438 | return canonicalize_file_name (); | |
12439 | ; | |
12440 | return 0; | |
12441 | } | |
12442 | _ACEOF | |
12443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12444 | if { (ac_try="$ac_link" | |
12445 | case "(($ac_try" in | |
12446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12447 | *) ac_try_echo=$ac_try;; | |
12448 | esac | |
ec6a6fbe AK |
12449 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12450 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12451 | (eval "$ac_link") 2>conftest.er1 |
12452 | ac_status=$? | |
12453 | grep -v '^ *+' conftest.er1 >conftest.err | |
12454 | rm -f conftest.er1 | |
12455 | cat conftest.err >&5 | |
ec6a6fbe | 12456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12457 | (exit $ac_status); } && { |
12458 | test -z "$ac_c_werror_flag" || | |
12459 | test ! -s conftest.err | |
ec6a6fbe AK |
12460 | } && test -s conftest$ac_exeext && { |
12461 | test "$cross_compiling" = yes || | |
12462 | $as_test_x conftest$ac_exeext | |
12463 | }; then | |
93bd259b AK |
12464 | ac_cv_lib_c_canonicalize_file_name=yes |
12465 | else | |
ec6a6fbe | 12466 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12467 | sed 's/^/| /' conftest.$ac_ext >&5 |
12468 | ||
12469 | ac_cv_lib_c_canonicalize_file_name=no | |
12470 | fi | |
12471 | ||
ec6a6fbe | 12472 | rm -rf conftest.dSYM |
93bd259b AK |
12473 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12474 | conftest$ac_exeext conftest.$ac_ext | |
12475 | LIBS=$ac_check_lib_save_LIBS | |
12476 | fi | |
ec6a6fbe AK |
12477 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12478 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12479 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12480 | |
12481 | cat >>confdefs.h <<\_ACEOF | |
12482 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12483 | _ACEOF | |
12484 | ||
12485 | fi | |
12486 | ||
12487 | ||
d0191583 JM |
12488 | ################################################################################ |
12489 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12490 | then exec_prefix=""; | |
12491 | fi; | |
ad6254c5 AK |
12492 | |
12493 | ################################################################################ | |
06e459df | 12494 | if test x$READLINE != xno; then |
ec6a6fbe AK |
12495 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
12496 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
ad6254c5 | 12497 | if test "${ac_cv_search_tgetent+set}" = set; then |
ec6a6fbe | 12498 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12499 | else |
12500 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 12501 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12502 | /* confdefs.h. */ |
12503 | _ACEOF | |
12504 | cat confdefs.h >>conftest.$ac_ext | |
12505 | cat >>conftest.$ac_ext <<_ACEOF | |
12506 | /* end confdefs.h. */ | |
12507 | ||
7a197a62 AK |
12508 | /* Override any GCC internal prototype to avoid an error. |
12509 | Use char because int might match the return type of a GCC | |
12510 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12511 | #ifdef __cplusplus |
12512 | extern "C" | |
12513 | #endif | |
ad6254c5 AK |
12514 | char tgetent (); |
12515 | int | |
12516 | main () | |
12517 | { | |
7a197a62 | 12518 | return tgetent (); |
ad6254c5 AK |
12519 | ; |
12520 | return 0; | |
12521 | } | |
12522 | _ACEOF | |
18dcfb69 | 12523 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
7a197a62 AK |
12524 | if test -z "$ac_lib"; then |
12525 | ac_res="none required" | |
12526 | else | |
12527 | ac_res=-l$ac_lib | |
12528 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12529 | fi | |
12530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12531 | if { (ac_try="$ac_link" | |
12532 | case "(($ac_try" in | |
12533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12534 | *) ac_try_echo=$ac_try;; | |
12535 | esac | |
ec6a6fbe AK |
12536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12537 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12538 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12539 | ac_status=$? |
8a2fc586 AK |
12540 | grep -v '^ *+' conftest.er1 >conftest.err |
12541 | rm -f conftest.er1 | |
12542 | cat conftest.err >&5 | |
ec6a6fbe | 12543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12544 | (exit $ac_status); } && { |
12545 | test -z "$ac_c_werror_flag" || | |
12546 | test ! -s conftest.err | |
ec6a6fbe AK |
12547 | } && test -s conftest$ac_exeext && { |
12548 | test "$cross_compiling" = yes || | |
12549 | $as_test_x conftest$ac_exeext | |
12550 | }; then | |
7a197a62 | 12551 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 12552 | else |
ec6a6fbe | 12553 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12554 | sed 's/^/| /' conftest.$ac_ext >&5 |
12555 | ||
ad6254c5 | 12556 | |
7a197a62 | 12557 | fi |
ad6254c5 | 12558 | |
ec6a6fbe | 12559 | rm -rf conftest.dSYM |
25fbec5b | 12560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
12561 | conftest$ac_exeext |
12562 | if test "${ac_cv_search_tgetent+set}" = set; then | |
12563 | break | |
ad6254c5 | 12564 | fi |
7a197a62 AK |
12565 | done |
12566 | if test "${ac_cv_search_tgetent+set}" = set; then | |
12567 | : | |
12568 | else | |
12569 | ac_cv_search_tgetent=no | |
ad6254c5 | 12570 | fi |
7a197a62 | 12571 | rm conftest.$ac_ext |
ad6254c5 AK |
12572 | LIBS=$ac_func_search_save_LIBS |
12573 | fi | |
ec6a6fbe AK |
12574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
12575 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
12576 | ac_res=$ac_cv_search_tgetent |
12577 | if test "$ac_res" != no; then | |
12578 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 12579 | tg_found=yes |
ad6254c5 | 12580 | else |
06e459df JM |
12581 | tg_found=no |
12582 | fi | |
12583 | ||
12584 | test x$READLINE:$tg_found = xyes:no && | |
ec6a6fbe | 12585 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
12586 | --enable-readline option (which is enabled by default). Either disable readline |
12587 | support with --disable-readline or download and install termcap from: | |
12588 | ftp.gnu.org/gnu/termcap | |
12589 | Note: if you are using precompiled packages you will also need the development | |
12590 | package as well (which may be called termcap-devel or something similar). | |
12591 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
12592 | not found either - but you could try installing that as well. | |
12593 | " >&5 | |
ec6a6fbe | 12594 | $as_echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
12595 | --enable-readline option (which is enabled by default). Either disable readline |
12596 | support with --disable-readline or download and install termcap from: | |
12597 | ftp.gnu.org/gnu/termcap | |
12598 | Note: if you are using precompiled packages you will also need the development | |
12599 | package as well (which may be called termcap-devel or something similar). | |
12600 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
12601 | not found either - but you could try installing that as well. | |
12602 | " >&2;} | |
12603 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
12604 | fi |
12605 | ||
12606 | ################################################################################ | |
ec6a6fbe AK |
12607 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12608 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12609 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12610 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12611 | else |
12612 | ac_check_lib_save_LIBS=$LIBS | |
12613 | LIBS="-ldl $LIBS" | |
12614 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12615 | /* confdefs.h. */ |
12616 | _ACEOF | |
12617 | cat confdefs.h >>conftest.$ac_ext | |
12618 | cat >>conftest.$ac_ext <<_ACEOF | |
12619 | /* end confdefs.h. */ | |
12620 | ||
7a197a62 AK |
12621 | /* Override any GCC internal prototype to avoid an error. |
12622 | Use char because int might match the return type of a GCC | |
12623 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12624 | #ifdef __cplusplus |
12625 | extern "C" | |
12626 | #endif | |
ad6254c5 AK |
12627 | char dlopen (); |
12628 | int | |
12629 | main () | |
12630 | { | |
7a197a62 | 12631 | return dlopen (); |
ad6254c5 AK |
12632 | ; |
12633 | return 0; | |
12634 | } | |
12635 | _ACEOF | |
12636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12637 | if { (ac_try="$ac_link" |
12638 | case "(($ac_try" in | |
12639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12640 | *) ac_try_echo=$ac_try;; | |
12641 | esac | |
ec6a6fbe AK |
12642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12643 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12644 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12645 | ac_status=$? |
8a2fc586 AK |
12646 | grep -v '^ *+' conftest.er1 >conftest.err |
12647 | rm -f conftest.er1 | |
12648 | cat conftest.err >&5 | |
ec6a6fbe | 12649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12650 | (exit $ac_status); } && { |
12651 | test -z "$ac_c_werror_flag" || | |
12652 | test ! -s conftest.err | |
ec6a6fbe AK |
12653 | } && test -s conftest$ac_exeext && { |
12654 | test "$cross_compiling" = yes || | |
12655 | $as_test_x conftest$ac_exeext | |
12656 | }; then | |
ad6254c5 AK |
12657 | ac_cv_lib_dl_dlopen=yes |
12658 | else | |
ec6a6fbe | 12659 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12660 | sed 's/^/| /' conftest.$ac_ext >&5 |
12661 | ||
7a197a62 | 12662 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12663 | fi |
7a197a62 | 12664 | |
ec6a6fbe | 12665 | rm -rf conftest.dSYM |
25fbec5b | 12666 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12667 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12668 | LIBS=$ac_check_lib_save_LIBS |
12669 | fi | |
ec6a6fbe AK |
12670 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12671 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12672 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 AK |
12673 | HAVE_LIBDL=yes |
12674 | else | |
12675 | HAVE_LIBDL=no | |
12676 | fi | |
12677 | ||
12678 | ||
7e9e9502 | 12679 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
12680 | |
12681 | cat >>confdefs.h <<\_ACEOF | |
12682 | #define HAVE_LIBDL 1 | |
12683 | _ACEOF | |
12684 | ||
ad6254c5 AK |
12685 | LIBS="-ldl $LIBS" |
12686 | else | |
12687 | HAVE_LIBDL=no | |
12688 | fi | |
12689 | ||
12690 | ################################################################################ | |
12691 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12692 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12693 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12694 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12695 | " >&5 |
ec6a6fbe | 12696 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12697 | " >&2;} |
12698 | { (exit 1); exit 1; }; } | |
12699 | fi | |
12700 | ||
d0191583 | 12701 | ################################################################################ |
ec6a6fbe AK |
12702 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12703 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12704 | # Check whether --enable-selinux was given. |
12705 | if test "${enable_selinux+set}" = set; then | |
12706 | enableval=$enable_selinux; SELINUX=$enableval | |
12707 | fi | |
12708 | ||
ec6a6fbe AK |
12709 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12710 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12711 | |
ad6254c5 AK |
12712 | ################################################################################ |
12713 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12714 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12715 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12716 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12717 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12718 | else |
12719 | ac_check_lib_save_LIBS=$LIBS | |
12720 | LIBS="-lsepol $LIBS" | |
12721 | cat >conftest.$ac_ext <<_ACEOF | |
12722 | /* confdefs.h. */ | |
12723 | _ACEOF | |
12724 | cat confdefs.h >>conftest.$ac_ext | |
12725 | cat >>conftest.$ac_ext <<_ACEOF | |
12726 | /* end confdefs.h. */ | |
12727 | ||
7a197a62 AK |
12728 | /* Override any GCC internal prototype to avoid an error. |
12729 | Use char because int might match the return type of a GCC | |
12730 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12731 | #ifdef __cplusplus |
12732 | extern "C" | |
12733 | #endif | |
8a2fc586 AK |
12734 | char sepol_check_context (); |
12735 | int | |
12736 | main () | |
12737 | { | |
7a197a62 | 12738 | return sepol_check_context (); |
8a2fc586 AK |
12739 | ; |
12740 | return 0; | |
12741 | } | |
12742 | _ACEOF | |
12743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12744 | if { (ac_try="$ac_link" |
12745 | case "(($ac_try" in | |
12746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12747 | *) ac_try_echo=$ac_try;; | |
12748 | esac | |
ec6a6fbe AK |
12749 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12750 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12751 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12752 | ac_status=$? |
12753 | grep -v '^ *+' conftest.er1 >conftest.err | |
12754 | rm -f conftest.er1 | |
12755 | cat conftest.err >&5 | |
ec6a6fbe | 12756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12757 | (exit $ac_status); } && { |
12758 | test -z "$ac_c_werror_flag" || | |
12759 | test ! -s conftest.err | |
ec6a6fbe AK |
12760 | } && test -s conftest$ac_exeext && { |
12761 | test "$cross_compiling" = yes || | |
12762 | $as_test_x conftest$ac_exeext | |
12763 | }; then | |
8a2fc586 AK |
12764 | ac_cv_lib_sepol_sepol_check_context=yes |
12765 | else | |
ec6a6fbe | 12766 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12767 | sed 's/^/| /' conftest.$ac_ext >&5 |
12768 | ||
7a197a62 | 12769 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12770 | fi |
7a197a62 | 12771 | |
ec6a6fbe | 12772 | rm -rf conftest.dSYM |
25fbec5b | 12773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12774 | conftest$ac_exeext conftest.$ac_ext |
12775 | LIBS=$ac_check_lib_save_LIBS | |
12776 | fi | |
ec6a6fbe AK |
12777 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12778 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12779 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 AK |
12780 | HAVE_SEPOL=yes |
12781 | else | |
12782 | HAVE_SEPOL=no | |
12783 | fi | |
12784 | ||
8a2fc586 AK |
12785 | |
12786 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
12787 | |
12788 | cat >>confdefs.h <<\_ACEOF | |
12789 | #define HAVE_SEPOL 1 | |
12790 | _ACEOF | |
12791 | ||
8a2fc586 AK |
12792 | LIBS="-lsepol $LIBS" |
12793 | fi | |
12794 | ||
ec6a6fbe AK |
12795 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12796 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12797 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12798 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12799 | else |
12800 | ac_check_lib_save_LIBS=$LIBS | |
12801 | LIBS="-lselinux $LIBS" | |
12802 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12803 | /* confdefs.h. */ |
12804 | _ACEOF | |
12805 | cat confdefs.h >>conftest.$ac_ext | |
12806 | cat >>conftest.$ac_ext <<_ACEOF | |
12807 | /* end confdefs.h. */ | |
12808 | ||
7a197a62 AK |
12809 | /* Override any GCC internal prototype to avoid an error. |
12810 | Use char because int might match the return type of a GCC | |
12811 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12812 | #ifdef __cplusplus |
12813 | extern "C" | |
12814 | #endif | |
ad6254c5 AK |
12815 | char is_selinux_enabled (); |
12816 | int | |
12817 | main () | |
12818 | { | |
7a197a62 | 12819 | return is_selinux_enabled (); |
ad6254c5 AK |
12820 | ; |
12821 | return 0; | |
12822 | } | |
12823 | _ACEOF | |
12824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12825 | if { (ac_try="$ac_link" |
12826 | case "(($ac_try" in | |
12827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12828 | *) ac_try_echo=$ac_try;; | |
12829 | esac | |
ec6a6fbe AK |
12830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12831 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12832 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12833 | ac_status=$? |
8a2fc586 AK |
12834 | grep -v '^ *+' conftest.er1 >conftest.err |
12835 | rm -f conftest.er1 | |
12836 | cat conftest.err >&5 | |
ec6a6fbe | 12837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12838 | (exit $ac_status); } && { |
12839 | test -z "$ac_c_werror_flag" || | |
12840 | test ! -s conftest.err | |
ec6a6fbe AK |
12841 | } && test -s conftest$ac_exeext && { |
12842 | test "$cross_compiling" = yes || | |
12843 | $as_test_x conftest$ac_exeext | |
12844 | }; then | |
ad6254c5 AK |
12845 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12846 | else | |
ec6a6fbe | 12847 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12848 | sed 's/^/| /' conftest.$ac_ext >&5 |
12849 | ||
7a197a62 | 12850 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12851 | fi |
7a197a62 | 12852 | |
ec6a6fbe | 12853 | rm -rf conftest.dSYM |
25fbec5b | 12854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12855 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12856 | LIBS=$ac_check_lib_save_LIBS |
12857 | fi | |
ec6a6fbe AK |
12858 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12859 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12860 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 AK |
12861 | HAVE_SELINUX=yes |
12862 | else | |
12863 | HAVE_SELINUX=no | |
12864 | fi | |
12865 | ||
ad6254c5 AK |
12866 | |
12867 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
12868 | |
12869 | cat >>confdefs.h <<\_ACEOF | |
12870 | #define HAVE_SELINUX 1 | |
12871 | _ACEOF | |
12872 | ||
ad6254c5 AK |
12873 | LIBS="-lselinux $LIBS" |
12874 | else | |
ec6a6fbe AK |
12875 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
12876 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
12877 | fi |
12878 | ||
d0191583 | 12879 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
12880 | # fails on at least Debian unstable due to unsatisfied references |
12881 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
12882 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
12883 | lvm_saved_libs=$LIBS | |
12884 | LIBS="$LIBS -static" | |
ec6a6fbe AK |
12885 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
12886 | $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; } | |
66e941e8 | 12887 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
ec6a6fbe | 12888 | $as_echo_n "(cached) " >&6 |
66e941e8 JM |
12889 | else |
12890 | ac_func_search_save_LIBS=$LIBS | |
12891 | cat >conftest.$ac_ext <<_ACEOF | |
12892 | /* confdefs.h. */ | |
12893 | _ACEOF | |
12894 | cat confdefs.h >>conftest.$ac_ext | |
12895 | cat >>conftest.$ac_ext <<_ACEOF | |
12896 | /* end confdefs.h. */ | |
12897 | ||
12898 | /* Override any GCC internal prototype to avoid an error. | |
12899 | Use char because int might match the return type of a GCC | |
12900 | builtin and then its argument prototype would still apply. */ | |
12901 | #ifdef __cplusplus | |
12902 | extern "C" | |
12903 | #endif | |
12904 | char pthread_mutex_lock (); | |
12905 | int | |
12906 | main () | |
12907 | { | |
12908 | return pthread_mutex_lock (); | |
12909 | ; | |
12910 | return 0; | |
12911 | } | |
12912 | _ACEOF | |
12913 | for ac_lib in '' pthread; do | |
12914 | if test -z "$ac_lib"; then | |
12915 | ac_res="none required" | |
12916 | else | |
12917 | ac_res=-l$ac_lib | |
12918 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12919 | fi | |
12920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12921 | if { (ac_try="$ac_link" | |
12922 | case "(($ac_try" in | |
12923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12924 | *) ac_try_echo=$ac_try;; | |
12925 | esac | |
ec6a6fbe AK |
12926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12927 | $as_echo "$ac_try_echo") >&5 | |
66e941e8 JM |
12928 | (eval "$ac_link") 2>conftest.er1 |
12929 | ac_status=$? | |
12930 | grep -v '^ *+' conftest.er1 >conftest.err | |
12931 | rm -f conftest.er1 | |
12932 | cat conftest.err >&5 | |
ec6a6fbe | 12933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12934 | (exit $ac_status); } && { |
12935 | test -z "$ac_c_werror_flag" || | |
12936 | test ! -s conftest.err | |
ec6a6fbe AK |
12937 | } && test -s conftest$ac_exeext && { |
12938 | test "$cross_compiling" = yes || | |
12939 | $as_test_x conftest$ac_exeext | |
12940 | }; then | |
66e941e8 JM |
12941 | ac_cv_search_pthread_mutex_lock=$ac_res |
12942 | else | |
ec6a6fbe | 12943 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
12944 | sed 's/^/| /' conftest.$ac_ext >&5 |
12945 | ||
12946 | ||
12947 | fi | |
12948 | ||
ec6a6fbe | 12949 | rm -rf conftest.dSYM |
25fbec5b | 12950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
12951 | conftest$ac_exeext |
12952 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
12953 | break | |
12954 | fi | |
12955 | done | |
12956 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
12957 | : | |
12958 | else | |
12959 | ac_cv_search_pthread_mutex_lock=no | |
12960 | fi | |
12961 | rm conftest.$ac_ext | |
12962 | LIBS=$ac_func_search_save_LIBS | |
12963 | fi | |
ec6a6fbe AK |
12964 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
12965 | $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
12966 | ac_res=$ac_cv_search_pthread_mutex_lock |
12967 | if test "$ac_res" != no; then | |
12968 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12969 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
12970 | LIB_PTHREAD=-lpthread | |
12971 | fi | |
12972 | ||
12973 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
12974 | fi |
12975 | fi | |
12976 | ||
8b1a3214 AK |
12977 | ################################################################################ |
12978 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
12979 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
12980 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 12981 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 12982 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
12983 | else |
12984 | ac_check_lib_save_LIBS=$LIBS | |
12985 | LIBS="-lrt $LIBS" | |
12986 | cat >conftest.$ac_ext <<_ACEOF | |
12987 | /* confdefs.h. */ | |
12988 | _ACEOF | |
12989 | cat confdefs.h >>conftest.$ac_ext | |
12990 | cat >>conftest.$ac_ext <<_ACEOF | |
12991 | /* end confdefs.h. */ | |
12992 | ||
7a197a62 AK |
12993 | /* Override any GCC internal prototype to avoid an error. |
12994 | Use char because int might match the return type of a GCC | |
12995 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
12996 | #ifdef __cplusplus |
12997 | extern "C" | |
12998 | #endif | |
8b1a3214 AK |
12999 | char clock_gettime (); |
13000 | int | |
13001 | main () | |
13002 | { | |
7a197a62 | 13003 | return clock_gettime (); |
8b1a3214 AK |
13004 | ; |
13005 | return 0; | |
13006 | } | |
13007 | _ACEOF | |
13008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13009 | if { (ac_try="$ac_link" |
13010 | case "(($ac_try" in | |
13011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13012 | *) ac_try_echo=$ac_try;; | |
13013 | esac | |
ec6a6fbe AK |
13014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13015 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13016 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13017 | ac_status=$? |
13018 | grep -v '^ *+' conftest.er1 >conftest.err | |
13019 | rm -f conftest.er1 | |
13020 | cat conftest.err >&5 | |
ec6a6fbe | 13021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13022 | (exit $ac_status); } && { |
13023 | test -z "$ac_c_werror_flag" || | |
13024 | test ! -s conftest.err | |
ec6a6fbe AK |
13025 | } && test -s conftest$ac_exeext && { |
13026 | test "$cross_compiling" = yes || | |
13027 | $as_test_x conftest$ac_exeext | |
13028 | }; then | |
8b1a3214 AK |
13029 | ac_cv_lib_rt_clock_gettime=yes |
13030 | else | |
ec6a6fbe | 13031 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13032 | sed 's/^/| /' conftest.$ac_ext >&5 |
13033 | ||
7a197a62 | 13034 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13035 | fi |
7a197a62 | 13036 | |
ec6a6fbe | 13037 | rm -rf conftest.dSYM |
25fbec5b | 13038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13039 | conftest$ac_exeext conftest.$ac_ext |
13040 | LIBS=$ac_check_lib_save_LIBS | |
13041 | fi | |
ec6a6fbe AK |
13042 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13043 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13044 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13045 | HAVE_REALTIME=yes |
13046 | else | |
13047 | HAVE_REALTIME=no | |
13048 | fi | |
13049 | ||
8b1a3214 AK |
13050 | |
13051 | if test x$HAVE_REALTIME = xyes; then | |
13052 | ||
13053 | cat >>confdefs.h <<\_ACEOF | |
13054 | #define HAVE_REALTIME 1 | |
13055 | _ACEOF | |
13056 | ||
13057 | LIBS="-lrt $LIBS" | |
13058 | else | |
ec6a6fbe AK |
13059 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13060 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13061 | fi |
13062 | fi | |
13063 | ||
ad6254c5 AK |
13064 | ################################################################################ |
13065 | ||
13066 | for ac_header in getopt.h | |
13067 | do | |
ec6a6fbe | 13068 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13069 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13070 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13071 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13072 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13073 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13074 | fi |
ec6a6fbe AK |
13075 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13076 | $as_echo "$as_val"'` | |
13077 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13078 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13079 | else |
13080 | # Is the header compilable? | |
ec6a6fbe AK |
13081 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13082 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13083 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13084 | /* confdefs.h. */ |
13085 | _ACEOF | |
13086 | cat confdefs.h >>conftest.$ac_ext | |
13087 | cat >>conftest.$ac_ext <<_ACEOF | |
13088 | /* end confdefs.h. */ | |
13089 | $ac_includes_default | |
13090 | #include <$ac_header> | |
13091 | _ACEOF | |
13092 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13093 | if { (ac_try="$ac_compile" |
13094 | case "(($ac_try" in | |
13095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13096 | *) ac_try_echo=$ac_try;; | |
13097 | esac | |
ec6a6fbe AK |
13098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13099 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13100 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13101 | ac_status=$? |
8a2fc586 AK |
13102 | grep -v '^ *+' conftest.er1 >conftest.err |
13103 | rm -f conftest.er1 | |
13104 | cat conftest.err >&5 | |
ec6a6fbe | 13105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13106 | (exit $ac_status); } && { |
13107 | test -z "$ac_c_werror_flag" || | |
13108 | test ! -s conftest.err | |
13109 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13110 | ac_header_compiler=yes |
13111 | else | |
ec6a6fbe | 13112 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13113 | sed 's/^/| /' conftest.$ac_ext >&5 |
13114 | ||
7a197a62 | 13115 | ac_header_compiler=no |
ad6254c5 | 13116 | fi |
7a197a62 AK |
13117 | |
13118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13119 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13120 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13121 | |
13122 | # Is the header present? | |
ec6a6fbe AK |
13123 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13124 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13125 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13126 | /* confdefs.h. */ |
13127 | _ACEOF | |
13128 | cat confdefs.h >>conftest.$ac_ext | |
13129 | cat >>conftest.$ac_ext <<_ACEOF | |
13130 | /* end confdefs.h. */ | |
13131 | #include <$ac_header> | |
13132 | _ACEOF | |
7a197a62 AK |
13133 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13134 | case "(($ac_try" in | |
13135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13136 | *) ac_try_echo=$ac_try;; | |
13137 | esac | |
ec6a6fbe AK |
13138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13139 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13140 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13141 | ac_status=$? |
13142 | grep -v '^ *+' conftest.er1 >conftest.err | |
13143 | rm -f conftest.er1 | |
13144 | cat conftest.err >&5 | |
ec6a6fbe | 13145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13146 | (exit $ac_status); } >/dev/null && { |
13147 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13148 | test ! -s conftest.err | |
13149 | }; then | |
ad6254c5 AK |
13150 | ac_header_preproc=yes |
13151 | else | |
ec6a6fbe | 13152 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13153 | sed 's/^/| /' conftest.$ac_ext >&5 |
13154 | ||
13155 | ac_header_preproc=no | |
13156 | fi | |
7a197a62 | 13157 | |
ad6254c5 | 13158 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13159 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13160 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13161 | |
13162 | # So? What about this header? | |
8a2fc586 AK |
13163 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13164 | yes:no: ) | |
ec6a6fbe AK |
13165 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13166 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13167 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13168 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13169 | ac_header_preproc=yes |
ad6254c5 | 13170 | ;; |
8a2fc586 | 13171 | no:yes:* ) |
ec6a6fbe AK |
13172 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13173 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13174 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13175 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13177 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13179 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13181 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13183 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13184 | |
ad6254c5 AK |
13185 | ;; |
13186 | esac | |
ec6a6fbe AK |
13187 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13188 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13189 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13190 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13191 | else |
8a2fc586 | 13192 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13193 | fi |
ec6a6fbe AK |
13194 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13195 | $as_echo "$as_val"'` | |
13196 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13197 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13198 | |
13199 | fi | |
ec6a6fbe AK |
13200 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13201 | $as_echo "$as_val"'` | |
13202 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13203 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13204 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13205 | _ACEOF |
72b2cb61 AK |
13206 | |
13207 | cat >>confdefs.h <<\_ACEOF | |
13208 | #define HAVE_GETOPTLONG 1 | |
13209 | _ACEOF | |
13210 | ||
ad6254c5 AK |
13211 | fi |
13212 | ||
13213 | done | |
13214 | ||
13215 | ||
13216 | ################################################################################ | |
06e459df | 13217 | if test x$READLINE != xno; then |
bc1024f8 JM |
13218 | rl_found=yes |
13219 | ||
ec6a6fbe AK |
13220 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
13221 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
ad6254c5 | 13222 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13223 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13224 | else |
13225 | ac_check_lib_save_LIBS=$LIBS | |
13226 | LIBS="-lreadline $LIBS" | |
13227 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13228 | /* confdefs.h. */ |
13229 | _ACEOF | |
13230 | cat confdefs.h >>conftest.$ac_ext | |
13231 | cat >>conftest.$ac_ext <<_ACEOF | |
13232 | /* end confdefs.h. */ | |
13233 | ||
7a197a62 AK |
13234 | /* Override any GCC internal prototype to avoid an error. |
13235 | Use char because int might match the return type of a GCC | |
13236 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13237 | #ifdef __cplusplus |
13238 | extern "C" | |
13239 | #endif | |
ad6254c5 AK |
13240 | char readline (); |
13241 | int | |
13242 | main () | |
13243 | { | |
7a197a62 | 13244 | return readline (); |
ad6254c5 AK |
13245 | ; |
13246 | return 0; | |
13247 | } | |
13248 | _ACEOF | |
13249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13250 | if { (ac_try="$ac_link" |
13251 | case "(($ac_try" in | |
13252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13253 | *) ac_try_echo=$ac_try;; | |
13254 | esac | |
ec6a6fbe AK |
13255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13256 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13257 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13258 | ac_status=$? |
8a2fc586 AK |
13259 | grep -v '^ *+' conftest.er1 >conftest.err |
13260 | rm -f conftest.er1 | |
13261 | cat conftest.err >&5 | |
ec6a6fbe | 13262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13263 | (exit $ac_status); } && { |
13264 | test -z "$ac_c_werror_flag" || | |
13265 | test ! -s conftest.err | |
ec6a6fbe AK |
13266 | } && test -s conftest$ac_exeext && { |
13267 | test "$cross_compiling" = yes || | |
13268 | $as_test_x conftest$ac_exeext | |
13269 | }; then | |
ad6254c5 AK |
13270 | ac_cv_lib_readline_readline=yes |
13271 | else | |
ec6a6fbe | 13272 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13273 | sed 's/^/| /' conftest.$ac_ext >&5 |
13274 | ||
7a197a62 | 13275 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13276 | fi |
7a197a62 | 13277 | |
ec6a6fbe | 13278 | rm -rf conftest.dSYM |
25fbec5b | 13279 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13280 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13281 | LIBS=$ac_check_lib_save_LIBS |
13282 | fi | |
ec6a6fbe AK |
13283 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13284 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13285 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
bc1024f8 JM |
13286 | cat >>confdefs.h <<_ACEOF |
13287 | #define HAVE_LIBREADLINE 1 | |
13288 | _ACEOF | |
13289 | ||
13290 | LIBS="-lreadline $LIBS" | |
13291 | ||
ad6254c5 | 13292 | else |
06e459df JM |
13293 | rl_found=no |
13294 | fi | |
13295 | ||
13296 | test x$READLINE:$rl_found = xyes:no && | |
ec6a6fbe | 13297 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13298 | --enable-readline option (which is enabled by default). Either disable readline |
13299 | support with --disable-readline or download and install readline from: | |
13300 | ftp.gnu.org/gnu/readline | |
13301 | Note: if you are using precompiled packages you will also need the development | |
13302 | package as well (which may be called readline-devel or something similar). | |
13303 | " >&5 | |
ec6a6fbe | 13304 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13305 | --enable-readline option (which is enabled by default). Either disable readline |
13306 | support with --disable-readline or download and install readline from: | |
13307 | ftp.gnu.org/gnu/readline | |
13308 | Note: if you are using precompiled packages you will also need the development | |
13309 | package as well (which may be called readline-devel or something similar). | |
13310 | " >&2;} | |
13311 | { (exit 1); exit 1; }; } | |
06e459df | 13312 | if test $rl_found = yes; then |
bc1024f8 JM |
13313 | |
13314 | for ac_func in rl_completion_matches | |
13315 | do | |
ec6a6fbe AK |
13316 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13317 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13318 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13319 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13320 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13321 | else |
13322 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13323 | /* confdefs.h. */ |
13324 | _ACEOF | |
13325 | cat confdefs.h >>conftest.$ac_ext | |
13326 | cat >>conftest.$ac_ext <<_ACEOF | |
13327 | /* end confdefs.h. */ | |
bc1024f8 | 13328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13330 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13331 | |
ad6254c5 | 13332 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13333 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13335 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13336 | |
ad6254c5 AK |
13337 | #ifdef __STDC__ |
13338 | # include <limits.h> | |
13339 | #else | |
13340 | # include <assert.h> | |
13341 | #endif | |
8a2fc586 | 13342 | |
bc1024f8 | 13343 | #undef $ac_func |
8a2fc586 | 13344 | |
7a197a62 AK |
13345 | /* Override any GCC internal prototype to avoid an error. |
13346 | Use char because int might match the return type of a GCC | |
13347 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13348 | #ifdef __cplusplus |
13349 | extern "C" | |
ad6254c5 | 13350 | #endif |
bc1024f8 | 13351 | char $ac_func (); |
ad6254c5 AK |
13352 | /* The GNU C library defines this for functions which it implements |
13353 | to always fail with ENOSYS. Some functions are actually named | |
13354 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13355 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13356 | choke me |
ad6254c5 AK |
13357 | #endif |
13358 | ||
13359 | int | |
13360 | main () | |
13361 | { | |
bc1024f8 | 13362 | return $ac_func (); |
ad6254c5 AK |
13363 | ; |
13364 | return 0; | |
13365 | } | |
13366 | _ACEOF | |
13367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13368 | if { (ac_try="$ac_link" |
13369 | case "(($ac_try" in | |
13370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13371 | *) ac_try_echo=$ac_try;; | |
13372 | esac | |
ec6a6fbe AK |
13373 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13374 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13375 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13376 | ac_status=$? |
8a2fc586 AK |
13377 | grep -v '^ *+' conftest.er1 >conftest.err |
13378 | rm -f conftest.er1 | |
13379 | cat conftest.err >&5 | |
ec6a6fbe | 13380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13381 | (exit $ac_status); } && { |
13382 | test -z "$ac_c_werror_flag" || | |
13383 | test ! -s conftest.err | |
ec6a6fbe AK |
13384 | } && test -s conftest$ac_exeext && { |
13385 | test "$cross_compiling" = yes || | |
13386 | $as_test_x conftest$ac_exeext | |
13387 | }; then | |
bc1024f8 | 13388 | eval "$as_ac_var=yes" |
ad6254c5 | 13389 | else |
ec6a6fbe | 13390 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13391 | sed 's/^/| /' conftest.$ac_ext >&5 |
13392 | ||
bc1024f8 | 13393 | eval "$as_ac_var=no" |
ad6254c5 | 13394 | fi |
7a197a62 | 13395 | |
ec6a6fbe | 13396 | rm -rf conftest.dSYM |
25fbec5b | 13397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13398 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13399 | fi |
ec6a6fbe AK |
13400 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13401 | $as_echo "$as_val"'` | |
13402 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13403 | $as_echo "$ac_res" >&6; } | |
13404 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13405 | $as_echo "$as_val"'` | |
13406 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13407 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13408 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13409 | _ACEOF |
13410 | ||
13411 | fi | |
bc1024f8 | 13412 | done |
ad6254c5 | 13413 | |
d179cc7a JM |
13414 | |
13415 | cat >>confdefs.h <<\_ACEOF | |
13416 | #define READLINE_SUPPORT 1 | |
13417 | _ACEOF | |
13418 | ||
06e459df | 13419 | fi |
ad6254c5 AK |
13420 | fi |
13421 | ||
13422 | ################################################################################ | |
ec6a6fbe AK |
13423 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13424 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13425 | # Check whether --enable-nls was given. |
ad6254c5 | 13426 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13427 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13428 | else |
13429 | INTL=no | |
7a197a62 AK |
13430 | fi |
13431 | ||
ec6a6fbe AK |
13432 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13433 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13434 | |
13435 | if test x$INTL = xyes; then | |
93bd259b | 13436 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13437 | INTL_PACKAGE="lvm2" |
13438 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13439 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13440 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13441 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13442 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13443 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13444 | else |
13445 | case $MSGFMT in | |
13446 | [\\/]* | ?:[\\/]*) | |
13447 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13448 | ;; | |
13449 | *) | |
13450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13451 | for as_dir in $PATH | |
13452 | do | |
13453 | IFS=$as_save_IFS | |
13454 | test -z "$as_dir" && as_dir=. | |
13455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13457 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13458 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13459 | break 2 |
13460 | fi | |
13461 | done | |
13462 | done | |
7a197a62 | 13463 | IFS=$as_save_IFS |
ad6254c5 AK |
13464 | |
13465 | ;; | |
13466 | esac | |
13467 | fi | |
13468 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13469 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13470 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13471 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13472 | else |
ec6a6fbe AK |
13473 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13474 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13475 | fi |
13476 | ||
7a197a62 | 13477 | |
ad6254c5 | 13478 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13479 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13480 | " >&5 |
ec6a6fbe | 13481 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13482 | " >&2;} |
13483 | { (exit 1); exit 1; }; } | |
13484 | fi; | |
13485 | ||
13486 | ||
7a197a62 | 13487 | # Check whether --with-localedir was given. |
ad6254c5 | 13488 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13489 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13490 | else |
13491 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13492 | fi |
13493 | ||
ad6254c5 AK |
13494 | fi |
13495 | ||
13496 | ################################################################################ | |
13497 | ||
7a197a62 | 13498 | # Check whether --with-confdir was given. |
ad6254c5 | 13499 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13500 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13501 | else |
13502 | CONFDIR='/etc' | |
7a197a62 AK |
13503 | fi |
13504 | ||
ad6254c5 AK |
13505 | |
13506 | ||
7a197a62 | 13507 | # Check whether --with-staticdir was given. |
ad6254c5 | 13508 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13509 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13510 | else |
13511 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13512 | fi |
ad6254c5 | 13513 | |
33f732c5 | 13514 | |
7a197a62 | 13515 | |
68f2de6d AK |
13516 | # Check whether --with-usrlibdir was given. |
13517 | if test "${with_usrlibdir+set}" = set; then | |
13518 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13519 | else | |
13520 | usrlibdir='${prefix}/lib' | |
13521 | fi | |
13522 | ||
13523 | ||
13524 | ||
13525 | # Check whether --with-usrsbindir was given. | |
13526 | if test "${with_usrsbindir+set}" = set; then | |
13527 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13528 | else | |
13529 | usrsbindir='${prefix}/sbin' | |
13530 | fi | |
13531 | ||
13532 | ||
a5f46f6a AK |
13533 | ################################################################################ |
13534 | ||
13535 | # Check whether --with-udev_prefix was given. | |
13536 | if test "${with_udev_prefix+set}" = set; then | |
13537 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13538 | else | |
13539 | udev_prefix='${exec_prefix}' | |
13540 | fi | |
13541 | ||
13542 | ||
78ce7acc AK |
13543 | |
13544 | # Check whether --with-udevdir was given. | |
13545 | if test "${with_udevdir+set}" = set; then | |
13546 | withval=$with_udevdir; udevdir="$withval" | |
13547 | else | |
13548 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13549 | fi | |
13550 | ||
a5f46f6a | 13551 | |
ad6254c5 AK |
13552 | ################################################################################ |
13553 | if test x$READLINE = xyes; then | |
13554 | ||
13555 | ||
13556 | for ac_header in readline/readline.h readline/history.h | |
13557 | do | |
ec6a6fbe | 13558 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13559 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13560 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13561 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13563 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13564 | fi |
ec6a6fbe AK |
13565 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13566 | $as_echo "$as_val"'` | |
13567 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13568 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13569 | else |
13570 | # Is the header compilable? | |
ec6a6fbe AK |
13571 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13572 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13573 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13574 | /* confdefs.h. */ |
13575 | _ACEOF | |
13576 | cat confdefs.h >>conftest.$ac_ext | |
13577 | cat >>conftest.$ac_ext <<_ACEOF | |
13578 | /* end confdefs.h. */ | |
13579 | $ac_includes_default | |
13580 | #include <$ac_header> | |
13581 | _ACEOF | |
13582 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13583 | if { (ac_try="$ac_compile" |
13584 | case "(($ac_try" in | |
13585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13586 | *) ac_try_echo=$ac_try;; | |
13587 | esac | |
ec6a6fbe AK |
13588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13589 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13590 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13591 | ac_status=$? |
8a2fc586 AK |
13592 | grep -v '^ *+' conftest.er1 >conftest.err |
13593 | rm -f conftest.er1 | |
13594 | cat conftest.err >&5 | |
ec6a6fbe | 13595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13596 | (exit $ac_status); } && { |
13597 | test -z "$ac_c_werror_flag" || | |
13598 | test ! -s conftest.err | |
13599 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13600 | ac_header_compiler=yes |
13601 | else | |
ec6a6fbe | 13602 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13603 | sed 's/^/| /' conftest.$ac_ext >&5 |
13604 | ||
7a197a62 | 13605 | ac_header_compiler=no |
ad6254c5 | 13606 | fi |
7a197a62 AK |
13607 | |
13608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13609 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13610 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13611 | |
13612 | # Is the header present? | |
ec6a6fbe AK |
13613 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13614 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13615 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13616 | /* confdefs.h. */ |
13617 | _ACEOF | |
13618 | cat confdefs.h >>conftest.$ac_ext | |
13619 | cat >>conftest.$ac_ext <<_ACEOF | |
13620 | /* end confdefs.h. */ | |
13621 | #include <$ac_header> | |
13622 | _ACEOF | |
7a197a62 AK |
13623 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13624 | case "(($ac_try" in | |
13625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13626 | *) ac_try_echo=$ac_try;; | |
13627 | esac | |
ec6a6fbe AK |
13628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13629 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13631 | ac_status=$? |
13632 | grep -v '^ *+' conftest.er1 >conftest.err | |
13633 | rm -f conftest.er1 | |
13634 | cat conftest.err >&5 | |
ec6a6fbe | 13635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13636 | (exit $ac_status); } >/dev/null && { |
13637 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13638 | test ! -s conftest.err | |
13639 | }; then | |
ad6254c5 AK |
13640 | ac_header_preproc=yes |
13641 | else | |
ec6a6fbe | 13642 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13643 | sed 's/^/| /' conftest.$ac_ext >&5 |
13644 | ||
13645 | ac_header_preproc=no | |
13646 | fi | |
7a197a62 | 13647 | |
ad6254c5 | 13648 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13649 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13650 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13651 | |
13652 | # So? What about this header? | |
8a2fc586 AK |
13653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13654 | yes:no: ) | |
ec6a6fbe AK |
13655 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13656 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13657 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13658 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13659 | ac_header_preproc=yes |
ad6254c5 | 13660 | ;; |
8a2fc586 | 13661 | no:yes:* ) |
ec6a6fbe AK |
13662 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13663 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13664 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13665 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13666 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13667 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13668 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13669 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13670 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13671 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13672 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13673 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13674 | |
ad6254c5 AK |
13675 | ;; |
13676 | esac | |
ec6a6fbe AK |
13677 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13678 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13680 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13681 | else |
8a2fc586 | 13682 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13683 | fi |
ec6a6fbe AK |
13684 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13685 | $as_echo "$as_val"'` | |
13686 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13687 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13688 | |
13689 | fi | |
ec6a6fbe AK |
13690 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13691 | $as_echo "$as_val"'` | |
13692 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13693 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13694 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13695 | _ACEOF |
13696 | ||
13697 | else | |
ec6a6fbe AK |
13698 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13699 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
13700 | { (exit 1); exit 1; }; } |
13701 | fi | |
13702 | ||
13703 | done | |
13704 | ||
13705 | fi | |
13706 | ||
5c7fc7c4 | 13707 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
13708 | |
13709 | ||
13710 | ||
13711 | ||
13712 | ||
13713 | ||
13714 | ||
13715 | ||
13716 | ||
13717 | ||
13718 | 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 | |
13719 | do | |
ec6a6fbe | 13720 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13722 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13723 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13724 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13725 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13726 | fi |
ec6a6fbe AK |
13727 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13728 | $as_echo "$as_val"'` | |
13729 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13730 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13731 | else |
13732 | # Is the header compilable? | |
ec6a6fbe AK |
13733 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13734 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13735 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13736 | /* confdefs.h. */ |
13737 | _ACEOF | |
13738 | cat confdefs.h >>conftest.$ac_ext | |
13739 | cat >>conftest.$ac_ext <<_ACEOF | |
13740 | /* end confdefs.h. */ | |
13741 | $ac_includes_default | |
13742 | #include <$ac_header> | |
13743 | _ACEOF | |
13744 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13745 | if { (ac_try="$ac_compile" |
13746 | case "(($ac_try" in | |
13747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13748 | *) ac_try_echo=$ac_try;; | |
13749 | esac | |
ec6a6fbe AK |
13750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13751 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13752 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13753 | ac_status=$? |
8a2fc586 AK |
13754 | grep -v '^ *+' conftest.er1 >conftest.err |
13755 | rm -f conftest.er1 | |
13756 | cat conftest.err >&5 | |
ec6a6fbe | 13757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13758 | (exit $ac_status); } && { |
13759 | test -z "$ac_c_werror_flag" || | |
13760 | test ! -s conftest.err | |
13761 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13762 | ac_header_compiler=yes |
13763 | else | |
ec6a6fbe | 13764 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13765 | sed 's/^/| /' conftest.$ac_ext >&5 |
13766 | ||
7a197a62 | 13767 | ac_header_compiler=no |
ad6254c5 | 13768 | fi |
7a197a62 AK |
13769 | |
13770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13771 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13772 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13773 | |
13774 | # Is the header present? | |
ec6a6fbe AK |
13775 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13776 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13777 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13778 | /* confdefs.h. */ |
13779 | _ACEOF | |
13780 | cat confdefs.h >>conftest.$ac_ext | |
13781 | cat >>conftest.$ac_ext <<_ACEOF | |
13782 | /* end confdefs.h. */ | |
13783 | #include <$ac_header> | |
13784 | _ACEOF | |
7a197a62 AK |
13785 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13786 | case "(($ac_try" in | |
13787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13788 | *) ac_try_echo=$ac_try;; | |
13789 | esac | |
ec6a6fbe AK |
13790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13791 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13793 | ac_status=$? |
13794 | grep -v '^ *+' conftest.er1 >conftest.err | |
13795 | rm -f conftest.er1 | |
13796 | cat conftest.err >&5 | |
ec6a6fbe | 13797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13798 | (exit $ac_status); } >/dev/null && { |
13799 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13800 | test ! -s conftest.err | |
13801 | }; then | |
ad6254c5 AK |
13802 | ac_header_preproc=yes |
13803 | else | |
ec6a6fbe | 13804 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13805 | sed 's/^/| /' conftest.$ac_ext >&5 |
13806 | ||
13807 | ac_header_preproc=no | |
13808 | fi | |
7a197a62 | 13809 | |
ad6254c5 | 13810 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13811 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13812 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13813 | |
13814 | # So? What about this header? | |
8a2fc586 AK |
13815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13816 | yes:no: ) | |
ec6a6fbe AK |
13817 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13818 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13819 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13820 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13821 | ac_header_preproc=yes |
ad6254c5 | 13822 | ;; |
8a2fc586 | 13823 | no:yes:* ) |
ec6a6fbe AK |
13824 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13825 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13826 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13827 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13828 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13829 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13830 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13831 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13833 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13835 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13836 | |
ad6254c5 AK |
13837 | ;; |
13838 | esac | |
ec6a6fbe AK |
13839 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13840 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13841 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13842 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13843 | else |
8a2fc586 | 13844 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13845 | fi |
ec6a6fbe AK |
13846 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13847 | $as_echo "$as_val"'` | |
13848 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13849 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13850 | |
13851 | fi | |
ec6a6fbe AK |
13852 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13853 | $as_echo "$as_val"'` | |
13854 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13855 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13856 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
13857 | _ACEOF |
13858 | ||
13859 | else | |
ec6a6fbe AK |
13860 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13861 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 13862 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
13863 | fi |
13864 | ||
ad6254c5 AK |
13865 | done |
13866 | ||
13867 | ||
795ca3e5 | 13868 | |
8106cdd5 | 13869 | |
ad6254c5 AK |
13870 | |
13871 | ||
13872 | for ac_func in dup2 getmntent memmove select socket | |
13873 | do | |
ec6a6fbe AK |
13874 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13875 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13876 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 13877 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13878 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 13879 | else |
ad6254c5 | 13880 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13881 | /* confdefs.h. */ |
13882 | _ACEOF | |
13883 | cat confdefs.h >>conftest.$ac_ext | |
13884 | cat >>conftest.$ac_ext <<_ACEOF | |
13885 | /* end confdefs.h. */ | |
8a2fc586 AK |
13886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13888 | #define $ac_func innocuous_$ac_func | |
13889 | ||
795ca3e5 | 13890 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
13891 | which can conflict with char $ac_func (); below. |
13892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13893 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13894 | |
ad6254c5 AK |
13895 | #ifdef __STDC__ |
13896 | # include <limits.h> | |
13897 | #else | |
13898 | # include <assert.h> | |
13899 | #endif | |
8a2fc586 AK |
13900 | |
13901 | #undef $ac_func | |
13902 | ||
7a197a62 AK |
13903 | /* Override any GCC internal prototype to avoid an error. |
13904 | Use char because int might match the return type of a GCC | |
13905 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13906 | #ifdef __cplusplus |
13907 | extern "C" | |
ad6254c5 | 13908 | #endif |
ad6254c5 | 13909 | char $ac_func (); |
795ca3e5 AK |
13910 | /* The GNU C library defines this for functions which it implements |
13911 | to always fail with ENOSYS. Some functions are actually named | |
13912 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 13913 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 13914 | choke me |
795ca3e5 AK |
13915 | #endif |
13916 | ||
ad6254c5 AK |
13917 | int |
13918 | main () | |
13919 | { | |
7a197a62 | 13920 | return $ac_func (); |
ad6254c5 AK |
13921 | ; |
13922 | return 0; | |
13923 | } | |
13924 | _ACEOF | |
13925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13926 | if { (ac_try="$ac_link" |
13927 | case "(($ac_try" in | |
13928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13929 | *) ac_try_echo=$ac_try;; | |
13930 | esac | |
ec6a6fbe AK |
13931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13932 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13933 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13934 | ac_status=$? |
8a2fc586 AK |
13935 | grep -v '^ *+' conftest.er1 >conftest.err |
13936 | rm -f conftest.er1 | |
13937 | cat conftest.err >&5 | |
ec6a6fbe | 13938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13939 | (exit $ac_status); } && { |
13940 | test -z "$ac_c_werror_flag" || | |
13941 | test ! -s conftest.err | |
ec6a6fbe AK |
13942 | } && test -s conftest$ac_exeext && { |
13943 | test "$cross_compiling" = yes || | |
13944 | $as_test_x conftest$ac_exeext | |
13945 | }; then | |
ad6254c5 | 13946 | eval "$as_ac_var=yes" |
795ca3e5 | 13947 | else |
ec6a6fbe | 13948 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13949 | sed 's/^/| /' conftest.$ac_ext >&5 |
13950 | ||
7a197a62 | 13951 | eval "$as_ac_var=no" |
80992638 | 13952 | fi |
7a197a62 | 13953 | |
ec6a6fbe | 13954 | rm -rf conftest.dSYM |
25fbec5b | 13955 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13956 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 13957 | fi |
ec6a6fbe AK |
13958 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13959 | $as_echo "$as_val"'` | |
13960 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13961 | $as_echo "$ac_res" >&6; } | |
13962 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13963 | $as_echo "$as_val"'` | |
13964 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13965 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13966 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 13967 | _ACEOF |
80992638 AK |
13968 | |
13969 | else | |
ec6a6fbe AK |
13970 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
13971 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 13972 | { (exit 1); exit 1; }; } |
8106cdd5 | 13973 | fi |
ad6254c5 | 13974 | done |
795ca3e5 | 13975 | |
25fbec5b AK |
13976 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
13977 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
13978 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
13979 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 13980 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 13981 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
13982 | else |
13983 | ac_func_search_save_LIBS=$LIBS | |
13984 | cat >conftest.$ac_ext <<_ACEOF | |
13985 | /* confdefs.h. */ | |
13986 | _ACEOF | |
13987 | cat confdefs.h >>conftest.$ac_ext | |
13988 | cat >>conftest.$ac_ext <<_ACEOF | |
13989 | /* end confdefs.h. */ | |
80992638 | 13990 | |
7a197a62 AK |
13991 | /* Override any GCC internal prototype to avoid an error. |
13992 | Use char because int might match the return type of a GCC | |
ad6254c5 | 13993 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
13994 | #ifdef __cplusplus |
13995 | extern "C" | |
13996 | #endif | |
25fbec5b | 13997 | char getmntent (); |
ad6254c5 AK |
13998 | int |
13999 | main () | |
14000 | { | |
25fbec5b | 14001 | return getmntent (); |
ad6254c5 AK |
14002 | ; |
14003 | return 0; | |
14004 | } | |
14005 | _ACEOF | |
25fbec5b AK |
14006 | for ac_lib in '' sun seq gen; do |
14007 | if test -z "$ac_lib"; then | |
14008 | ac_res="none required" | |
14009 | else | |
14010 | ac_res=-l$ac_lib | |
14011 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14012 | fi | |
14013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14014 | if { (ac_try="$ac_link" |
14015 | case "(($ac_try" in | |
14016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14017 | *) ac_try_echo=$ac_try;; | |
14018 | esac | |
ec6a6fbe AK |
14019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14020 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14021 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14022 | ac_status=$? |
8a2fc586 AK |
14023 | grep -v '^ *+' conftest.er1 >conftest.err |
14024 | rm -f conftest.er1 | |
14025 | cat conftest.err >&5 | |
ec6a6fbe | 14026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14027 | (exit $ac_status); } && { |
14028 | test -z "$ac_c_werror_flag" || | |
14029 | test ! -s conftest.err | |
ec6a6fbe AK |
14030 | } && test -s conftest$ac_exeext && { |
14031 | test "$cross_compiling" = yes || | |
14032 | $as_test_x conftest$ac_exeext | |
14033 | }; then | |
25fbec5b | 14034 | ac_cv_search_getmntent=$ac_res |
80992638 | 14035 | else |
ec6a6fbe | 14036 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14037 | sed 's/^/| /' conftest.$ac_ext >&5 |
14038 | ||
25fbec5b | 14039 | |
795ca3e5 AK |
14040 | fi |
14041 | ||
ec6a6fbe | 14042 | rm -rf conftest.dSYM |
25fbec5b AK |
14043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14044 | conftest$ac_exeext | |
14045 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14046 | break | |
795ca3e5 | 14047 | fi |
25fbec5b AK |
14048 | done |
14049 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14050 | : | |
14051 | else | |
14052 | ac_cv_search_getmntent=no | |
14053 | fi | |
14054 | rm conftest.$ac_ext | |
14055 | LIBS=$ac_func_search_save_LIBS | |
14056 | fi | |
ec6a6fbe AK |
14057 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14058 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14059 | ac_res=$ac_cv_search_getmntent |
14060 | if test "$ac_res" != no; then | |
14061 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14062 | ac_cv_func_getmntent=yes | |
14063 | ||
14064 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14065 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14066 | _ACEOF |
795ca3e5 | 14067 | |
25fbec5b AK |
14068 | else |
14069 | ac_cv_func_getmntent=no | |
795ca3e5 | 14070 | fi |
795ca3e5 AK |
14071 | |
14072 | ||
ad6254c5 AK |
14073 | # AC_FUNC_REALLOC |
14074 | ||
14075 | ||
14076 | for ac_header in sys/select.h sys/socket.h | |
14077 | do | |
ec6a6fbe | 14078 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14079 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14080 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14081 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14082 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14083 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14084 | fi |
ec6a6fbe AK |
14085 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14086 | $as_echo "$as_val"'` | |
14087 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14088 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14089 | else |
ad6254c5 | 14090 | # Is the header compilable? |
ec6a6fbe AK |
14091 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14092 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14093 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14094 | /* confdefs.h. */ |
14095 | _ACEOF | |
14096 | cat confdefs.h >>conftest.$ac_ext | |
14097 | cat >>conftest.$ac_ext <<_ACEOF | |
14098 | /* end confdefs.h. */ | |
14099 | $ac_includes_default | |
14100 | #include <$ac_header> | |
14101 | _ACEOF | |
14102 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14103 | if { (ac_try="$ac_compile" |
14104 | case "(($ac_try" in | |
14105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14106 | *) ac_try_echo=$ac_try;; | |
14107 | esac | |
ec6a6fbe AK |
14108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14109 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14110 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14111 | ac_status=$? |
8a2fc586 AK |
14112 | grep -v '^ *+' conftest.er1 >conftest.err |
14113 | rm -f conftest.er1 | |
14114 | cat conftest.err >&5 | |
ec6a6fbe | 14115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14116 | (exit $ac_status); } && { |
14117 | test -z "$ac_c_werror_flag" || | |
14118 | test ! -s conftest.err | |
14119 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14120 | ac_header_compiler=yes |
80992638 | 14121 | else |
ec6a6fbe | 14122 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14123 | sed 's/^/| /' conftest.$ac_ext >&5 |
14124 | ||
7a197a62 | 14125 | ac_header_compiler=no |
ad6254c5 | 14126 | fi |
7a197a62 AK |
14127 | |
14128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14129 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14130 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14131 | |
14132 | # Is the header present? | |
ec6a6fbe AK |
14133 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14134 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14135 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14136 | /* confdefs.h. */ |
14137 | _ACEOF | |
14138 | cat confdefs.h >>conftest.$ac_ext | |
14139 | cat >>conftest.$ac_ext <<_ACEOF | |
14140 | /* end confdefs.h. */ | |
14141 | #include <$ac_header> | |
14142 | _ACEOF | |
7a197a62 AK |
14143 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14144 | case "(($ac_try" in | |
14145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14146 | *) ac_try_echo=$ac_try;; | |
14147 | esac | |
ec6a6fbe AK |
14148 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14149 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14150 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14151 | ac_status=$? |
14152 | grep -v '^ *+' conftest.er1 >conftest.err | |
14153 | rm -f conftest.er1 | |
14154 | cat conftest.err >&5 | |
ec6a6fbe | 14155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14156 | (exit $ac_status); } >/dev/null && { |
14157 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14158 | test ! -s conftest.err | |
14159 | }; then | |
ad6254c5 AK |
14160 | ac_header_preproc=yes |
14161 | else | |
ec6a6fbe | 14162 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14163 | sed 's/^/| /' conftest.$ac_ext >&5 |
14164 | ||
14165 | ac_header_preproc=no | |
14166 | fi | |
7a197a62 | 14167 | |
ad6254c5 | 14168 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14169 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14170 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14171 | |
14172 | # So? What about this header? | |
8a2fc586 AK |
14173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14174 | yes:no: ) | |
ec6a6fbe AK |
14175 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14176 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14177 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14178 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14179 | ac_header_preproc=yes |
ad6254c5 | 14180 | ;; |
8a2fc586 | 14181 | no:yes:* ) |
ec6a6fbe AK |
14182 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14183 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14184 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14185 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14186 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14187 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14188 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14189 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14190 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14191 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14192 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14193 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14194 | |
ad6254c5 AK |
14195 | ;; |
14196 | esac | |
ec6a6fbe AK |
14197 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14198 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14200 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14201 | else |
8a2fc586 | 14202 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14203 | fi |
ec6a6fbe AK |
14204 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14205 | $as_echo "$as_val"'` | |
14206 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14207 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14208 | |
795ca3e5 | 14209 | fi |
ec6a6fbe AK |
14210 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14211 | $as_echo "$as_val"'` | |
14212 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14213 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14214 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14215 | _ACEOF |
14216 | ||
795ca3e5 AK |
14217 | fi |
14218 | ||
ad6254c5 AK |
14219 | done |
14220 | ||
ec6a6fbe AK |
14221 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14222 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14223 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14224 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14225 | else |
ad6254c5 | 14226 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14227 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14228 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14229 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14230 | /* confdefs.h. */ |
14231 | _ACEOF | |
14232 | cat confdefs.h >>conftest.$ac_ext | |
14233 | cat >>conftest.$ac_ext <<_ACEOF | |
14234 | /* end confdefs.h. */ | |
14235 | $ac_includes_default | |
25fbec5b | 14236 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14237 | # include <sys/select.h> |
14238 | #endif | |
25fbec5b | 14239 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14240 | # include <sys/socket.h> |
14241 | #endif | |
14242 | ||
14243 | int | |
14244 | main () | |
14245 | { | |
14246 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14247 | $ac_arg234, $ac_arg234, $ac_arg234, |
14248 | $ac_arg5); | |
ad6254c5 AK |
14249 | ; |
14250 | return 0; | |
14251 | } | |
14252 | _ACEOF | |
14253 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14254 | if { (ac_try="$ac_compile" |
14255 | case "(($ac_try" in | |
14256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14257 | *) ac_try_echo=$ac_try;; | |
14258 | esac | |
ec6a6fbe AK |
14259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14260 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14261 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14262 | ac_status=$? |
8a2fc586 AK |
14263 | grep -v '^ *+' conftest.er1 >conftest.err |
14264 | rm -f conftest.er1 | |
14265 | cat conftest.err >&5 | |
ec6a6fbe | 14266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14267 | (exit $ac_status); } && { |
14268 | test -z "$ac_c_werror_flag" || | |
14269 | test ! -s conftest.err | |
14270 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14271 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14272 | else | |
ec6a6fbe | 14273 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14274 | sed 's/^/| /' conftest.$ac_ext >&5 |
14275 | ||
7a197a62 | 14276 | |
ad6254c5 | 14277 | fi |
7a197a62 AK |
14278 | |
14279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14280 | done |
14281 | done | |
14282 | done | |
14283 | # Provide a safe default value. | |
14284 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14285 | ||
26e7f2e0 | 14286 | fi |
ec6a6fbe AK |
14287 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14288 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14289 | ac_save_IFS=$IFS; IFS=',' |
14290 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14291 | IFS=$ac_save_IFS | |
14292 | shift | |
14293 | ||
14294 | cat >>confdefs.h <<_ACEOF | |
14295 | #define SELECT_TYPE_ARG1 $1 | |
14296 | _ACEOF | |
14297 | ||
14298 | ||
14299 | cat >>confdefs.h <<_ACEOF | |
14300 | #define SELECT_TYPE_ARG234 ($2) | |
14301 | _ACEOF | |
14302 | ||
14303 | ||
14304 | cat >>confdefs.h <<_ACEOF | |
14305 | #define SELECT_TYPE_ARG5 ($3) | |
14306 | _ACEOF | |
14307 | ||
80992638 | 14308 | rm -f conftest* |
80992638 | 14309 | |
8106cdd5 | 14310 | fi |
ad6254c5 | 14311 | |
ad6254c5 AK |
14312 | if test x$CLUSTER != xnone; then |
14313 | ||
14314 | ||
14315 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14316 | do |
ec6a6fbe | 14317 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14318 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14319 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14320 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14322 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14323 | fi |
ec6a6fbe AK |
14324 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14325 | $as_echo "$as_val"'` | |
14326 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14327 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14328 | else |
14329 | # Is the header compilable? | |
ec6a6fbe AK |
14330 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14331 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14332 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14333 | /* confdefs.h. */ |
14334 | _ACEOF | |
14335 | cat confdefs.h >>conftest.$ac_ext | |
14336 | cat >>conftest.$ac_ext <<_ACEOF | |
14337 | /* end confdefs.h. */ | |
14338 | $ac_includes_default | |
14339 | #include <$ac_header> | |
14340 | _ACEOF | |
14341 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14342 | if { (ac_try="$ac_compile" |
14343 | case "(($ac_try" in | |
14344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14345 | *) ac_try_echo=$ac_try;; | |
14346 | esac | |
ec6a6fbe AK |
14347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14348 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14349 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14350 | ac_status=$? |
8a2fc586 AK |
14351 | grep -v '^ *+' conftest.er1 >conftest.err |
14352 | rm -f conftest.er1 | |
14353 | cat conftest.err >&5 | |
ec6a6fbe | 14354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14355 | (exit $ac_status); } && { |
14356 | test -z "$ac_c_werror_flag" || | |
14357 | test ! -s conftest.err | |
14358 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14359 | ac_header_compiler=yes |
14360 | else | |
ec6a6fbe | 14361 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14362 | sed 's/^/| /' conftest.$ac_ext >&5 |
14363 | ||
7a197a62 | 14364 | ac_header_compiler=no |
ad6254c5 | 14365 | fi |
7a197a62 AK |
14366 | |
14367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14368 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14369 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14370 | |
14371 | # Is the header present? | |
ec6a6fbe AK |
14372 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14373 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14374 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14375 | /* confdefs.h. */ |
14376 | _ACEOF | |
14377 | cat confdefs.h >>conftest.$ac_ext | |
14378 | cat >>conftest.$ac_ext <<_ACEOF | |
14379 | /* end confdefs.h. */ | |
14380 | #include <$ac_header> | |
14381 | _ACEOF | |
7a197a62 AK |
14382 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14383 | case "(($ac_try" in | |
14384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14385 | *) ac_try_echo=$ac_try;; | |
14386 | esac | |
ec6a6fbe AK |
14387 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14388 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14389 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14390 | ac_status=$? |
14391 | grep -v '^ *+' conftest.er1 >conftest.err | |
14392 | rm -f conftest.er1 | |
14393 | cat conftest.err >&5 | |
ec6a6fbe | 14394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14395 | (exit $ac_status); } >/dev/null && { |
14396 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14397 | test ! -s conftest.err | |
14398 | }; then | |
ad6254c5 AK |
14399 | ac_header_preproc=yes |
14400 | else | |
ec6a6fbe | 14401 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14402 | sed 's/^/| /' conftest.$ac_ext >&5 |
14403 | ||
14404 | ac_header_preproc=no | |
14405 | fi | |
7a197a62 | 14406 | |
ad6254c5 | 14407 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14408 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14409 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14410 | |
14411 | # So? What about this header? | |
8a2fc586 AK |
14412 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14413 | yes:no: ) | |
ec6a6fbe AK |
14414 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14415 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14416 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14417 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14418 | ac_header_preproc=yes |
ad6254c5 | 14419 | ;; |
8a2fc586 | 14420 | no:yes:* ) |
ec6a6fbe AK |
14421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14422 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14423 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14424 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14425 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14426 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14427 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14428 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14430 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14432 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14433 | |
ad6254c5 AK |
14434 | ;; |
14435 | esac | |
ec6a6fbe AK |
14436 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14437 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14439 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14440 | else |
8a2fc586 | 14441 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14442 | fi |
ec6a6fbe AK |
14443 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14444 | $as_echo "$as_val"'` | |
14445 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14446 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14447 | |
14448 | fi | |
ec6a6fbe AK |
14449 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14450 | $as_echo "$as_val"'` | |
14451 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14452 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14453 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14454 | _ACEOF |
14455 | ||
80992638 | 14456 | else |
ec6a6fbe AK |
14457 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14458 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14459 | { (exit 1); exit 1; }; } |
b896caa1 | 14460 | fi |
ad6254c5 | 14461 | |
b896caa1 AK |
14462 | done |
14463 | ||
14464 | ||
ad6254c5 AK |
14465 | for ac_func in socket |
14466 | do | |
ec6a6fbe AK |
14467 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14468 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14469 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14470 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14471 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14472 | else |
ad6254c5 | 14473 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14474 | /* confdefs.h. */ |
14475 | _ACEOF | |
14476 | cat confdefs.h >>conftest.$ac_ext | |
14477 | cat >>conftest.$ac_ext <<_ACEOF | |
14478 | /* end confdefs.h. */ | |
8a2fc586 AK |
14479 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14481 | #define $ac_func innocuous_$ac_func | |
14482 | ||
ad6254c5 AK |
14483 | /* System header to define __stub macros and hopefully few prototypes, |
14484 | which can conflict with char $ac_func (); below. | |
14485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14486 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14487 | |
ad6254c5 AK |
14488 | #ifdef __STDC__ |
14489 | # include <limits.h> | |
14490 | #else | |
14491 | # include <assert.h> | |
14492 | #endif | |
8a2fc586 AK |
14493 | |
14494 | #undef $ac_func | |
14495 | ||
7a197a62 AK |
14496 | /* Override any GCC internal prototype to avoid an error. |
14497 | Use char because int might match the return type of a GCC | |
14498 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14499 | #ifdef __cplusplus |
14500 | extern "C" | |
ad6254c5 | 14501 | #endif |
ad6254c5 AK |
14502 | char $ac_func (); |
14503 | /* The GNU C library defines this for functions which it implements | |
14504 | to always fail with ENOSYS. Some functions are actually named | |
14505 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14506 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14507 | choke me |
ad6254c5 AK |
14508 | #endif |
14509 | ||
14510 | int | |
14511 | main () | |
14512 | { | |
7a197a62 | 14513 | return $ac_func (); |
ad6254c5 AK |
14514 | ; |
14515 | return 0; | |
14516 | } | |
14517 | _ACEOF | |
14518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14519 | if { (ac_try="$ac_link" |
14520 | case "(($ac_try" in | |
14521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14522 | *) ac_try_echo=$ac_try;; | |
14523 | esac | |
ec6a6fbe AK |
14524 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14525 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14526 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14527 | ac_status=$? |
8a2fc586 AK |
14528 | grep -v '^ *+' conftest.er1 >conftest.err |
14529 | rm -f conftest.er1 | |
14530 | cat conftest.err >&5 | |
ec6a6fbe | 14531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14532 | (exit $ac_status); } && { |
14533 | test -z "$ac_c_werror_flag" || | |
14534 | test ! -s conftest.err | |
ec6a6fbe AK |
14535 | } && test -s conftest$ac_exeext && { |
14536 | test "$cross_compiling" = yes || | |
14537 | $as_test_x conftest$ac_exeext | |
14538 | }; then | |
ad6254c5 AK |
14539 | eval "$as_ac_var=yes" |
14540 | else | |
ec6a6fbe | 14541 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14542 | sed 's/^/| /' conftest.$ac_ext >&5 |
14543 | ||
7a197a62 | 14544 | eval "$as_ac_var=no" |
ad6254c5 | 14545 | fi |
7a197a62 | 14546 | |
ec6a6fbe | 14547 | rm -rf conftest.dSYM |
25fbec5b | 14548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14549 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14550 | fi |
ec6a6fbe AK |
14551 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14552 | $as_echo "$as_val"'` | |
14553 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14554 | $as_echo "$ac_res" >&6; } | |
14555 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14556 | $as_echo "$as_val"'` | |
14557 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14558 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14559 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14560 | _ACEOF |
14561 | ||
14562 | else | |
ec6a6fbe AK |
14563 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14564 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14565 | { (exit 1); exit 1; }; } |
14566 | fi | |
14567 | done | |
14568 | ||
14569 | fi | |
14570 | ||
14571 | if test x$HAVE_LIBDL = xyes; then | |
14572 | ||
14573 | for ac_header in dlfcn.h | |
14574 | do | |
ec6a6fbe | 14575 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14577 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14578 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14579 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14580 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14581 | fi |
ec6a6fbe AK |
14582 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14583 | $as_echo "$as_val"'` | |
14584 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14585 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14586 | else |
14587 | # Is the header compilable? | |
ec6a6fbe AK |
14588 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14589 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14590 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14591 | /* confdefs.h. */ |
14592 | _ACEOF | |
14593 | cat confdefs.h >>conftest.$ac_ext | |
14594 | cat >>conftest.$ac_ext <<_ACEOF | |
14595 | /* end confdefs.h. */ | |
14596 | $ac_includes_default | |
14597 | #include <$ac_header> | |
14598 | _ACEOF | |
14599 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14600 | if { (ac_try="$ac_compile" |
14601 | case "(($ac_try" in | |
14602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14603 | *) ac_try_echo=$ac_try;; | |
14604 | esac | |
ec6a6fbe AK |
14605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14606 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14607 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14608 | ac_status=$? |
8a2fc586 AK |
14609 | grep -v '^ *+' conftest.er1 >conftest.err |
14610 | rm -f conftest.er1 | |
14611 | cat conftest.err >&5 | |
ec6a6fbe | 14612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14613 | (exit $ac_status); } && { |
14614 | test -z "$ac_c_werror_flag" || | |
14615 | test ! -s conftest.err | |
14616 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14617 | ac_header_compiler=yes |
14618 | else | |
ec6a6fbe | 14619 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14620 | sed 's/^/| /' conftest.$ac_ext >&5 |
14621 | ||
7a197a62 | 14622 | ac_header_compiler=no |
ad6254c5 | 14623 | fi |
7a197a62 AK |
14624 | |
14625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14626 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14627 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14628 | |
14629 | # Is the header present? | |
ec6a6fbe AK |
14630 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14631 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14632 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14633 | /* confdefs.h. */ |
14634 | _ACEOF | |
14635 | cat confdefs.h >>conftest.$ac_ext | |
14636 | cat >>conftest.$ac_ext <<_ACEOF | |
14637 | /* end confdefs.h. */ | |
14638 | #include <$ac_header> | |
14639 | _ACEOF | |
7a197a62 AK |
14640 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14641 | case "(($ac_try" in | |
14642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14643 | *) ac_try_echo=$ac_try;; | |
14644 | esac | |
ec6a6fbe AK |
14645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14646 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14647 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14648 | ac_status=$? |
14649 | grep -v '^ *+' conftest.er1 >conftest.err | |
14650 | rm -f conftest.er1 | |
14651 | cat conftest.err >&5 | |
ec6a6fbe | 14652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14653 | (exit $ac_status); } >/dev/null && { |
14654 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14655 | test ! -s conftest.err | |
14656 | }; then | |
ad6254c5 AK |
14657 | ac_header_preproc=yes |
14658 | else | |
ec6a6fbe | 14659 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14660 | sed 's/^/| /' conftest.$ac_ext >&5 |
14661 | ||
14662 | ac_header_preproc=no | |
14663 | fi | |
7a197a62 | 14664 | |
ad6254c5 | 14665 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14666 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14667 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14668 | |
14669 | # So? What about this header? | |
8a2fc586 AK |
14670 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14671 | yes:no: ) | |
ec6a6fbe AK |
14672 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14673 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14674 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14675 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14676 | ac_header_preproc=yes |
ad6254c5 | 14677 | ;; |
8a2fc586 | 14678 | no:yes:* ) |
ec6a6fbe AK |
14679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14680 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14682 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14684 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14686 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14688 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14690 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14691 | |
ad6254c5 AK |
14692 | ;; |
14693 | esac | |
ec6a6fbe AK |
14694 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14695 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14696 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14697 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14698 | else |
8a2fc586 | 14699 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 14700 | fi |
ec6a6fbe AK |
14701 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14702 | $as_echo "$as_val"'` | |
14703 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14704 | $as_echo "$ac_res" >&6; } | |
80992638 | 14705 | |
8106cdd5 | 14706 | fi |
ec6a6fbe AK |
14707 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14708 | $as_echo "$as_val"'` | |
14709 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14710 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14711 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14712 | _ACEOF |
795ca3e5 AK |
14713 | |
14714 | else | |
ec6a6fbe AK |
14715 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14716 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14717 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14718 | fi |
14719 | ||
ad6254c5 | 14720 | done |
80992638 | 14721 | |
ad6254c5 | 14722 | fi |
80992638 | 14723 | |
ad6254c5 | 14724 | if test x$INTL = xyes; then |
83912faa | 14725 | |
ad6254c5 AK |
14726 | for ac_header in libintl.h |
14727 | do | |
ec6a6fbe | 14728 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14730 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14731 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14732 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14733 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14734 | fi |
ec6a6fbe AK |
14735 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14736 | $as_echo "$as_val"'` | |
14737 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14738 | $as_echo "$ac_res" >&6; } | |
83912faa | 14739 | else |
ad6254c5 | 14740 | # Is the header compilable? |
ec6a6fbe AK |
14741 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14742 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14743 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14744 | /* confdefs.h. */ |
14745 | _ACEOF | |
14746 | cat confdefs.h >>conftest.$ac_ext | |
14747 | cat >>conftest.$ac_ext <<_ACEOF | |
14748 | /* end confdefs.h. */ | |
14749 | $ac_includes_default | |
14750 | #include <$ac_header> | |
14751 | _ACEOF | |
14752 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14753 | if { (ac_try="$ac_compile" |
14754 | case "(($ac_try" in | |
14755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14756 | *) ac_try_echo=$ac_try;; | |
14757 | esac | |
ec6a6fbe AK |
14758 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14759 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14760 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14761 | ac_status=$? |
8a2fc586 AK |
14762 | grep -v '^ *+' conftest.er1 >conftest.err |
14763 | rm -f conftest.er1 | |
14764 | cat conftest.err >&5 | |
ec6a6fbe | 14765 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14766 | (exit $ac_status); } && { |
14767 | test -z "$ac_c_werror_flag" || | |
14768 | test ! -s conftest.err | |
14769 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14770 | ac_header_compiler=yes |
14771 | else | |
ec6a6fbe | 14772 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14773 | sed 's/^/| /' conftest.$ac_ext >&5 |
14774 | ||
7a197a62 | 14775 | ac_header_compiler=no |
ad6254c5 | 14776 | fi |
7a197a62 AK |
14777 | |
14778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14779 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14780 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14781 | |
14782 | # Is the header present? | |
ec6a6fbe AK |
14783 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14784 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14785 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14786 | /* confdefs.h. */ |
14787 | _ACEOF | |
14788 | cat confdefs.h >>conftest.$ac_ext | |
14789 | cat >>conftest.$ac_ext <<_ACEOF | |
14790 | /* end confdefs.h. */ | |
14791 | #include <$ac_header> | |
14792 | _ACEOF | |
7a197a62 AK |
14793 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14794 | case "(($ac_try" in | |
14795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14796 | *) ac_try_echo=$ac_try;; | |
14797 | esac | |
ec6a6fbe AK |
14798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14799 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14801 | ac_status=$? |
14802 | grep -v '^ *+' conftest.er1 >conftest.err | |
14803 | rm -f conftest.er1 | |
14804 | cat conftest.err >&5 | |
ec6a6fbe | 14805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14806 | (exit $ac_status); } >/dev/null && { |
14807 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14808 | test ! -s conftest.err | |
14809 | }; then | |
ad6254c5 AK |
14810 | ac_header_preproc=yes |
14811 | else | |
ec6a6fbe | 14812 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14813 | sed 's/^/| /' conftest.$ac_ext >&5 |
14814 | ||
14815 | ac_header_preproc=no | |
14816 | fi | |
7a197a62 | 14817 | |
ad6254c5 | 14818 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14819 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14820 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14821 | |
14822 | # So? What about this header? | |
8a2fc586 AK |
14823 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14824 | yes:no: ) | |
ec6a6fbe AK |
14825 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14826 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14827 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14828 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14829 | ac_header_preproc=yes |
ad6254c5 | 14830 | ;; |
8a2fc586 | 14831 | no:yes:* ) |
ec6a6fbe AK |
14832 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14833 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14834 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14835 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14837 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14839 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14841 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14842 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14843 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14844 | |
ad6254c5 AK |
14845 | ;; |
14846 | esac | |
ec6a6fbe AK |
14847 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14848 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14850 | $as_echo_n "(cached) " >&6 |
80992638 | 14851 | else |
8a2fc586 | 14852 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 14853 | fi |
ec6a6fbe AK |
14854 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14855 | $as_echo "$as_val"'` | |
14856 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14857 | $as_echo "$ac_res" >&6; } | |
83912faa | 14858 | |
69792976 | 14859 | fi |
ec6a6fbe AK |
14860 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14861 | $as_echo "$as_val"'` | |
14862 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14863 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14864 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 14865 | _ACEOF |
69792976 | 14866 | |
69792976 | 14867 | else |
ec6a6fbe AK |
14868 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14869 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14870 | { (exit 1); exit 1; }; } |
80992638 AK |
14871 | fi |
14872 | ||
ad6254c5 | 14873 | done |
69792976 | 14874 | |
ad6254c5 AK |
14875 | fi |
14876 | ||
ad6254c5 AK |
14877 | if test x$HAVE_SELINUX = xyes; then |
14878 | ||
14879 | for ac_header in selinux/selinux.h | |
14880 | do | |
ec6a6fbe | 14881 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14883 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14884 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14885 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14886 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14887 | fi |
ec6a6fbe AK |
14888 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14889 | $as_echo "$as_val"'` | |
14890 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14891 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 14892 | else |
ad6254c5 | 14893 | # Is the header compilable? |
ec6a6fbe AK |
14894 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14895 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14896 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14897 | /* confdefs.h. */ |
14898 | _ACEOF | |
14899 | cat confdefs.h >>conftest.$ac_ext | |
14900 | cat >>conftest.$ac_ext <<_ACEOF | |
14901 | /* end confdefs.h. */ | |
14902 | $ac_includes_default | |
14903 | #include <$ac_header> | |
14904 | _ACEOF | |
14905 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14906 | if { (ac_try="$ac_compile" |
14907 | case "(($ac_try" in | |
14908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14909 | *) ac_try_echo=$ac_try;; | |
14910 | esac | |
ec6a6fbe AK |
14911 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14912 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14913 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14914 | ac_status=$? |
8a2fc586 AK |
14915 | grep -v '^ *+' conftest.er1 >conftest.err |
14916 | rm -f conftest.er1 | |
14917 | cat conftest.err >&5 | |
ec6a6fbe | 14918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14919 | (exit $ac_status); } && { |
14920 | test -z "$ac_c_werror_flag" || | |
14921 | test ! -s conftest.err | |
14922 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14923 | ac_header_compiler=yes |
14924 | else | |
ec6a6fbe | 14925 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14926 | sed 's/^/| /' conftest.$ac_ext >&5 |
14927 | ||
7a197a62 | 14928 | ac_header_compiler=no |
ad6254c5 | 14929 | fi |
7a197a62 AK |
14930 | |
14931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14932 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14933 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14934 | |
14935 | # Is the header present? | |
ec6a6fbe AK |
14936 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14937 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14938 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14939 | /* confdefs.h. */ |
14940 | _ACEOF | |
14941 | cat confdefs.h >>conftest.$ac_ext | |
14942 | cat >>conftest.$ac_ext <<_ACEOF | |
14943 | /* end confdefs.h. */ | |
14944 | #include <$ac_header> | |
14945 | _ACEOF | |
7a197a62 AK |
14946 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14947 | case "(($ac_try" in | |
14948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14949 | *) ac_try_echo=$ac_try;; | |
14950 | esac | |
ec6a6fbe AK |
14951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14952 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14953 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14954 | ac_status=$? |
14955 | grep -v '^ *+' conftest.er1 >conftest.err | |
14956 | rm -f conftest.er1 | |
14957 | cat conftest.err >&5 | |
ec6a6fbe | 14958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14959 | (exit $ac_status); } >/dev/null && { |
14960 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14961 | test ! -s conftest.err | |
14962 | }; then | |
ad6254c5 AK |
14963 | ac_header_preproc=yes |
14964 | else | |
ec6a6fbe | 14965 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14966 | sed 's/^/| /' conftest.$ac_ext >&5 |
14967 | ||
14968 | ac_header_preproc=no | |
14969 | fi | |
7a197a62 | 14970 | |
ad6254c5 | 14971 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14972 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14973 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14974 | |
14975 | # So? What about this header? | |
8a2fc586 AK |
14976 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14977 | yes:no: ) | |
ec6a6fbe AK |
14978 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14979 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14980 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14981 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14982 | ac_header_preproc=yes |
ad6254c5 | 14983 | ;; |
8a2fc586 | 14984 | no:yes:* ) |
ec6a6fbe AK |
14985 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14986 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14988 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14990 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14992 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14994 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14996 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14997 | |
ad6254c5 AK |
14998 | ;; |
14999 | esac | |
ec6a6fbe AK |
15000 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15001 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15003 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15004 | else |
8a2fc586 | 15005 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 15006 | fi |
ec6a6fbe AK |
15007 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15008 | $as_echo "$as_val"'` | |
15009 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15010 | $as_echo "$ac_res" >&6; } | |
4a7f3eb2 | 15011 | |
ad6254c5 | 15012 | fi |
ec6a6fbe AK |
15013 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15014 | $as_echo "$as_val"'` | |
15015 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15016 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15017 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15018 | _ACEOF |
0a62c911 | 15019 | |
0a62c911 | 15020 | else |
ec6a6fbe AK |
15021 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15022 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15023 | { (exit 1); exit 1; }; } |
80992638 AK |
15024 | fi |
15025 | ||
ad6254c5 | 15026 | done |
0a62c911 | 15027 | |
ad6254c5 | 15028 | fi |
0a62c911 | 15029 | |
a5f46f6a AK |
15030 | if test x$UDEV_SYNC = xyes; then |
15031 | ||
15032 | ||
15033 | for ac_header in sys/ipc.h sys/sem.h | |
15034 | do | |
15035 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15036 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15037 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15038 | $as_echo_n "checking for $ac_header... " >&6; } | |
15039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15040 | $as_echo_n "(cached) " >&6 | |
15041 | fi | |
15042 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15043 | $as_echo "$as_val"'` | |
15044 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15045 | $as_echo "$ac_res" >&6; } | |
15046 | else | |
15047 | # Is the header compilable? | |
15048 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15049 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15050 | cat >conftest.$ac_ext <<_ACEOF | |
15051 | /* confdefs.h. */ | |
15052 | _ACEOF | |
15053 | cat confdefs.h >>conftest.$ac_ext | |
15054 | cat >>conftest.$ac_ext <<_ACEOF | |
15055 | /* end confdefs.h. */ | |
15056 | $ac_includes_default | |
15057 | #include <$ac_header> | |
15058 | _ACEOF | |
15059 | rm -f conftest.$ac_objext | |
15060 | if { (ac_try="$ac_compile" | |
15061 | case "(($ac_try" in | |
15062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15063 | *) ac_try_echo=$ac_try;; | |
15064 | esac | |
15065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15066 | $as_echo "$ac_try_echo") >&5 | |
15067 | (eval "$ac_compile") 2>conftest.er1 | |
15068 | ac_status=$? | |
15069 | grep -v '^ *+' conftest.er1 >conftest.err | |
15070 | rm -f conftest.er1 | |
15071 | cat conftest.err >&5 | |
15072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15073 | (exit $ac_status); } && { | |
15074 | test -z "$ac_c_werror_flag" || | |
15075 | test ! -s conftest.err | |
15076 | } && test -s conftest.$ac_objext; then | |
15077 | ac_header_compiler=yes | |
15078 | else | |
15079 | $as_echo "$as_me: failed program was:" >&5 | |
15080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15081 | ||
15082 | ac_header_compiler=no | |
15083 | fi | |
15084 | ||
15085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15086 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15087 | $as_echo "$ac_header_compiler" >&6; } | |
15088 | ||
15089 | # Is the header present? | |
15090 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15091 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15092 | cat >conftest.$ac_ext <<_ACEOF | |
15093 | /* confdefs.h. */ | |
15094 | _ACEOF | |
15095 | cat confdefs.h >>conftest.$ac_ext | |
15096 | cat >>conftest.$ac_ext <<_ACEOF | |
15097 | /* end confdefs.h. */ | |
15098 | #include <$ac_header> | |
15099 | _ACEOF | |
15100 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15101 | case "(($ac_try" in | |
15102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15103 | *) ac_try_echo=$ac_try;; | |
15104 | esac | |
15105 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15106 | $as_echo "$ac_try_echo") >&5 | |
15107 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15108 | ac_status=$? | |
15109 | grep -v '^ *+' conftest.er1 >conftest.err | |
15110 | rm -f conftest.er1 | |
15111 | cat conftest.err >&5 | |
15112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15113 | (exit $ac_status); } >/dev/null && { | |
15114 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15115 | test ! -s conftest.err | |
15116 | }; then | |
15117 | ac_header_preproc=yes | |
15118 | else | |
15119 | $as_echo "$as_me: failed program was:" >&5 | |
15120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15121 | ||
15122 | ac_header_preproc=no | |
15123 | fi | |
15124 | ||
15125 | rm -f conftest.err conftest.$ac_ext | |
15126 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15127 | $as_echo "$ac_header_preproc" >&6; } | |
15128 | ||
15129 | # So? What about this header? | |
15130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15131 | yes:no: ) | |
15132 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15133 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15135 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15136 | ac_header_preproc=yes | |
15137 | ;; | |
15138 | no:yes:* ) | |
15139 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15140 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15141 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15142 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15143 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15144 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15145 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15146 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15147 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15148 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15149 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15150 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15151 | ||
15152 | ;; | |
15153 | esac | |
15154 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15155 | $as_echo_n "checking for $ac_header... " >&6; } | |
15156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15157 | $as_echo_n "(cached) " >&6 | |
15158 | else | |
15159 | eval "$as_ac_Header=\$ac_header_preproc" | |
15160 | fi | |
15161 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15162 | $as_echo "$as_val"'` | |
15163 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15164 | $as_echo "$ac_res" >&6; } | |
15165 | ||
15166 | fi | |
15167 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15168 | $as_echo "$as_val"'` | |
15169 | if test "x$as_val" = x""yes; then | |
15170 | cat >>confdefs.h <<_ACEOF | |
15171 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15172 | _ACEOF | |
15173 | ||
15174 | else | |
15175 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15176 | $as_echo "$as_me: error: bailing out" >&2;} | |
15177 | { (exit 1); exit 1; }; } | |
15178 | fi | |
15179 | ||
15180 | done | |
15181 | ||
15182 | fi | |
15183 | ||
a653923f AK |
15184 | ################################################################################ |
15185 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15186 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15187 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15188 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15189 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15190 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15191 | else |
15192 | case $MODPROBE_CMD in | |
15193 | [\\/]* | ?:[\\/]*) | |
15194 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15195 | ;; | |
15196 | *) | |
15197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15198 | for as_dir in $PATH | |
15199 | do | |
15200 | IFS=$as_save_IFS | |
15201 | test -z "$as_dir" && as_dir=. | |
15202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15204 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15205 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15206 | break 2 |
15207 | fi | |
15208 | done | |
15209 | done | |
7a197a62 | 15210 | IFS=$as_save_IFS |
72b2cb61 AK |
15211 | |
15212 | ;; | |
15213 | esac | |
15214 | fi | |
15215 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15216 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15217 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15218 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15219 | else |
ec6a6fbe AK |
15220 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15221 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15222 | fi |
15223 | ||
a653923f | 15224 | |
7a197a62 | 15225 | |
a653923f | 15226 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15227 | |
15228 | cat >>confdefs.h <<_ACEOF | |
15229 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15230 | _ACEOF | |
15231 | ||
a653923f AK |
15232 | fi |
15233 | ||
80992638 | 15234 | ################################################################################ |
93bd259b AK |
15235 | |
15236 | ||
15237 | if test "$BUILD_DMEVENTD" = yes; then | |
15238 | ||
15239 | # Check whether --with-dmeventd-pidfile was given. | |
15240 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15241 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15242 | #define DMEVENTD_PIDFILE "$withval" | |
15243 | _ACEOF | |
15244 | ||
15245 | else | |
15246 | cat >>confdefs.h <<_ACEOF | |
15247 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15248 | _ACEOF | |
15249 | ||
15250 | fi | |
15251 | ||
15252 | fi | |
15253 | ||
15254 | ||
15255 | ||
15256 | if test "$BUILD_DMEVENTD" = yes; then | |
15257 | dmeventd_prefix="$exec_prefix" | |
15258 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15259 | dmeventd_prefix="$prefix" | |
15260 | fi | |
15261 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15262 | dmeventd_prefix="" | |
15263 | fi | |
15264 | ||
15265 | # Check whether --with-dmeventd-path was given. | |
15266 | if test "${with_dmeventd_path+set}" = set; then | |
15267 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15268 | #define DMEVENTD_PATH "$withval" | |
15269 | _ACEOF | |
15270 | ||
15271 | else | |
15272 | cat >>confdefs.h <<_ACEOF | |
15273 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15274 | _ACEOF | |
15275 | ||
15276 | fi | |
15277 | ||
15278 | fi | |
15279 | ||
15280 | ################################################################################ | |
ec6a6fbe AK |
15281 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15282 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15283 | |
15284 | # Check whether --with-interface was given. | |
15285 | if test "${with_interface+set}" = set; then | |
15286 | withval=$with_interface; interface="$withval" | |
15287 | else | |
15288 | interface=ioctl | |
15289 | fi | |
15290 | ||
15291 | if [ "x$interface" != xioctl ]; | |
15292 | then | |
ec6a6fbe AK |
15293 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15294 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15295 | { (exit 1); exit 1; }; } |
15296 | fi | |
ec6a6fbe AK |
15297 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15298 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15299 | |
15300 | ################################################################################ | |
2c44337b | 15301 | DM_LIB_VERSION="\"`cat VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15302 | |
15303 | cat >>confdefs.h <<_ACEOF | |
15304 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15305 | _ACEOF | |
15306 | ||
15307 | ||
ec6a6fbe | 15308 | DM_LIB_PATCHLEVEL=`cat VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15309 | |
d0191583 | 15310 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15311 | |
ec6a6fbe | 15312 | VER=`cat VERSION` |
bf456146 | 15313 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15314 | VER=`echo "$VER" | $AWK '{print $1}'` |
15315 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15316 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15317 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15318 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15319 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15320 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15321 | |
80992638 | 15322 | ################################################################################ |
fae0c576 | 15323 | |
83912faa | 15324 | |
795ca3e5 AK |
15325 | |
15326 | ||
15327 | ||
15328 | ||
15329 | ||
15330 | ||
5a52dca9 | 15331 | |
8ef2b021 | 15332 | |
199e490e | 15333 | |
69792976 AK |
15334 | |
15335 | ||
15336 | ||
d0191583 | 15337 | |
69792976 | 15338 | |
8106cdd5 AK |
15339 | |
15340 | ||
15341 | ||
15342 | ||
15343 | ||
d68a82ec | 15344 | |
036f273a | 15345 | |
7d1552c9 | 15346 | |
8106cdd5 | 15347 | |
0a62c911 | 15348 | |
8106cdd5 | 15349 | |
4a7f3eb2 | 15350 | |
4922197a AK |
15351 | |
15352 | ||
d8ac0fbc | 15353 | |
1a9ea74d | 15354 | |
8a2fc586 AK |
15355 | |
15356 | ||
d0191583 | 15357 | |
93bd259b AK |
15358 | |
15359 | ||
15360 | ||
15361 | ||
15362 | ||
d0191583 JM |
15363 | |
15364 | ||
15365 | ||
15366 | ||
15367 | ||
8a2fc586 | 15368 | |
8ce0cbda | 15369 | |
8b1a3214 | 15370 | |
ec6a6fbe AK |
15371 | |
15372 | ||
15373 | ||
15374 | ||
e2997b73 AK |
15375 | |
15376 | ||
15377 | ||
15378 | ||
15379 | ||
15380 | ||
a946372e AK |
15381 | |
15382 | ||
15383 | ||
15384 | ||
15385 | ||
15386 | ||
15387 | ||
15388 | ||
15389 | ||
15390 | ||
15391 | ||
ec6a6fbe | 15392 | |
33f732c5 | 15393 | |
66e941e8 | 15394 | |
d3c8211f | 15395 | |
7e3fe830 | 15396 | |
a5f46f6a AK |
15397 | |
15398 | ||
15399 | ||
572fefeb | 15400 | |
90c80887 AK |
15401 | |
15402 | ||
bf456146 | 15403 | |
68f2de6d AK |
15404 | |
15405 | ||
80992638 | 15406 | ################################################################################ |
595eaf92 | 15407 | 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/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 15408 | |
ad6254c5 | 15409 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15410 | # This file is a shell script that caches the results of configure |
15411 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15412 | # scripts and configure runs, see configure's option --config-cache. |
15413 | # It is not useful on other systems. If it contains results you don't | |
15414 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15415 | # |
ad6254c5 AK |
15416 | # config.status only pays attention to the cache file if you give it |
15417 | # the --recheck option to rerun configure. | |
795ca3e5 | 15418 | # |
ad6254c5 AK |
15419 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15420 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15421 | # following values. | |
15422 | ||
15423 | _ACEOF | |
15424 | ||
795ca3e5 AK |
15425 | # The following way of writing the cache mishandles newlines in values, |
15426 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15427 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15428 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15429 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15430 | ( |
15431 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15432 | eval ac_val=\$$ac_var | |
15433 | case $ac_val in #( | |
15434 | *${as_nl}*) | |
15435 | case $ac_var in #( | |
ec6a6fbe AK |
15436 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15437 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15438 | esac |
15439 | case $ac_var in #( | |
15440 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15441 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15442 | *) $as_unset $ac_var ;; |
15443 | esac ;; | |
15444 | esac | |
15445 | done | |
15446 | ||
ad6254c5 | 15447 | (set) 2>&1 | |
7a197a62 AK |
15448 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15449 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15450 | # `set' does not quote correctly, so add quotes (double-quote |
15451 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15452 | sed -n \ | |
8a2fc586 AK |
15453 | "s/'/'\\\\''/g; |
15454 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15455 | ;; #( |
ad6254c5 AK |
15456 | *) |
15457 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15458 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15459 | ;; |
7a197a62 AK |
15460 | esac | |
15461 | sort | |
15462 | ) | | |
ad6254c5 | 15463 | sed ' |
7a197a62 | 15464 | /^ac_cv_env_/b end |
ad6254c5 | 15465 | t clear |
7a197a62 | 15466 | :clear |
ad6254c5 AK |
15467 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15468 | t end | |
7a197a62 AK |
15469 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15470 | :end' >>confcache | |
15471 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15472 | if test -w "$cache_file"; then | |
15473 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15474 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15475 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15476 | cat confcache >$cache_file |
795ca3e5 | 15477 | else |
ec6a6fbe AK |
15478 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15479 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15480 | fi |
15481 | fi | |
15482 | rm -f confcache | |
15483 | ||
795ca3e5 AK |
15484 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15485 | # Let make expand exec_prefix. | |
15486 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15487 | ||
72b2cb61 | 15488 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15489 | |
15490 | ac_libobjs= | |
15491 | ac_ltlibobjs= | |
15492 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15493 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15494 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15495 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15496 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15497 | # will be set to the directory where LIBOBJS objects are built. | |
15498 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15499 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15500 | done |
15501 | LIBOBJS=$ac_libobjs | |
80992638 | 15502 | |
ad6254c5 AK |
15503 | LTLIBOBJS=$ac_ltlibobjs |
15504 | ||
15505 | ||
15506 | ||
15507 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15508 | ac_write_fail=0 |
ad6254c5 AK |
15509 | ac_clean_files_save=$ac_clean_files |
15510 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15511 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15512 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15513 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15514 | #! $SHELL |
15515 | # Generated by $as_me. | |
795ca3e5 | 15516 | # Run this file to recreate the current configuration. |
795ca3e5 | 15517 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15518 | # configure, is in config.log if it exists. |
15519 | ||
15520 | debug=false | |
15521 | ac_cs_recheck=false | |
15522 | ac_cs_silent=false | |
15523 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15524 | _ACEOF | |
15525 | ||
ec6a6fbe | 15526 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15527 | ## --------------------- ## |
15528 | ## M4sh Initialization. ## | |
15529 | ## --------------------- ## | |
15530 | ||
25fbec5b AK |
15531 | # Be more Bourne compatible |
15532 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15533 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15534 | emulate sh | |
15535 | NULLCMD=: | |
ec6a6fbe | 15536 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15537 | # is contrary to our usage. Disable this feature. |
15538 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15539 | setopt NO_GLOB_SUBST |
15540 | else | |
25fbec5b AK |
15541 | case `(set -o) 2>/dev/null` in |
15542 | *posix*) set -o posix ;; | |
15543 | esac | |
15544 | ||
7a197a62 | 15545 | fi |
25fbec5b AK |
15546 | |
15547 | ||
7a197a62 AK |
15548 | |
15549 | ||
15550 | # PATH needs CR | |
15551 | # Avoid depending upon Character Ranges. | |
15552 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15553 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15554 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15555 | as_cr_digits='0123456789' | |
15556 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15557 | ||
ec6a6fbe AK |
15558 | as_nl=' |
15559 | ' | |
15560 | export as_nl | |
15561 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15562 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15563 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15564 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15565 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15566 | as_echo='printf %s\n' | |
15567 | as_echo_n='printf %s' | |
15568 | else | |
15569 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15570 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15571 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15572 | else |
ec6a6fbe AK |
15573 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15574 | as_echo_n_body='eval | |
15575 | arg=$1; | |
15576 | case $arg in | |
15577 | *"$as_nl"*) | |
15578 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15579 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15580 | esac; | |
15581 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15582 | ' | |
15583 | export as_echo_n_body | |
15584 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15585 | fi |
ec6a6fbe AK |
15586 | export as_echo_body |
15587 | as_echo='sh -c $as_echo_body as_echo' | |
15588 | fi | |
15589 | ||
15590 | # The user is always right. | |
15591 | if test "${PATH_SEPARATOR+set}" != set; then | |
15592 | PATH_SEPARATOR=: | |
15593 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15594 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15595 | PATH_SEPARATOR=';' | |
15596 | } | |
ad6254c5 AK |
15597 | fi |
15598 | ||
15599 | # Support unset when possible. | |
8a2fc586 | 15600 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15601 | as_unset=unset |
15602 | else | |
15603 | as_unset=false | |
15604 | fi | |
8106cdd5 | 15605 | |
ad6254c5 | 15606 | |
7a197a62 AK |
15607 | # IFS |
15608 | # We need space, tab and new line, in precisely that order. Quoting is | |
15609 | # there to prevent editors from complaining about space-tab. | |
15610 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15611 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15612 | IFS=" "" $as_nl" |
15613 | ||
15614 | # Find who we are. Look in the path if we contain no directory separator. | |
15615 | case $0 in | |
15616 | *[\\/]* ) as_myself=$0 ;; | |
15617 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15618 | for as_dir in $PATH | |
15619 | do | |
15620 | IFS=$as_save_IFS | |
15621 | test -z "$as_dir" && as_dir=. | |
15622 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15623 | done | |
15624 | IFS=$as_save_IFS | |
15625 | ||
15626 | ;; | |
15627 | esac | |
15628 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15629 | # in which case we are not to be found in the path. | |
15630 | if test "x$as_myself" = x; then | |
15631 | as_myself=$0 | |
15632 | fi | |
15633 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15634 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15635 | { (exit 1); exit 1; } |
15636 | fi | |
15637 | ||
ad6254c5 | 15638 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15639 | for as_var in ENV MAIL MAILPATH |
15640 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15641 | done | |
ad6254c5 AK |
15642 | PS1='$ ' |
15643 | PS2='> ' | |
15644 | PS4='+ ' | |
15645 | ||
15646 | # NLS nuisances. | |
ec6a6fbe AK |
15647 | LC_ALL=C |
15648 | export LC_ALL | |
15649 | LANGUAGE=C | |
15650 | export LANGUAGE | |
8106cdd5 | 15651 | |
ad6254c5 | 15652 | # Required to use basename. |
7a197a62 AK |
15653 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15654 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15655 | as_expr=expr |
15656 | else | |
15657 | as_expr=false | |
15658 | fi | |
8106cdd5 | 15659 | |
7a197a62 | 15660 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15661 | as_basename=basename |
15662 | else | |
15663 | as_basename=false | |
15664 | fi | |
15665 | ||
15666 | ||
15667 | # Name of the executable. | |
7a197a62 | 15668 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15669 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15670 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15671 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15672 | $as_echo X/"$0" | |
7a197a62 AK |
15673 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15674 | s//\1/ | |
15675 | q | |
15676 | } | |
15677 | /^X\/\(\/\/\)$/{ | |
15678 | s//\1/ | |
15679 | q | |
15680 | } | |
15681 | /^X\/\(\/\).*/{ | |
15682 | s//\1/ | |
15683 | q | |
15684 | } | |
15685 | s/.*/./; q'` | |
ad6254c5 | 15686 | |
7a197a62 AK |
15687 | # CDPATH. |
15688 | $as_unset CDPATH | |
ad6254c5 AK |
15689 | |
15690 | ||
ad6254c5 | 15691 | |
ad6254c5 AK |
15692 | as_lineno_1=$LINENO |
15693 | as_lineno_2=$LINENO | |
ad6254c5 | 15694 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15695 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15696 | |
ad6254c5 AK |
15697 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15698 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15699 | # line-number line after each line using $LINENO; the second 'sed' |
15700 | # does the real work. The second script uses 'N' to pair each | |
15701 | # line-number line with the line containing $LINENO, and appends | |
15702 | # trailing '-' during substitution so that $LINENO is not a special | |
15703 | # case at line end. | |
ad6254c5 | 15704 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15705 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15706 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15707 | sed -n ' | |
15708 | p | |
15709 | /[$]LINENO/= | |
15710 | ' <$as_myself | | |
ad6254c5 | 15711 | sed ' |
7a197a62 AK |
15712 | s/[$]LINENO.*/&-/ |
15713 | t lineno | |
15714 | b | |
15715 | :lineno | |
ad6254c5 | 15716 | N |
7a197a62 AK |
15717 | :loop |
15718 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15719 | t loop |
7a197a62 | 15720 | s/-\n.*// |
ad6254c5 | 15721 | ' >$as_me.lineno && |
7a197a62 | 15722 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15723 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15724 | { (exit 1); exit 1; }; } |
15725 | ||
15726 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15727 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15728 | # original and so on. Autoconf is especially sensitive to this). |
15729 | . "./$as_me.lineno" | |
ad6254c5 AK |
15730 | # Exit status is that of the last command. |
15731 | exit | |
15732 | } | |
15733 | ||
15734 | ||
7a197a62 AK |
15735 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15736 | as_dirname=dirname | |
15737 | else | |
15738 | as_dirname=false | |
15739 | fi | |
15740 | ||
15741 | ECHO_C= ECHO_N= ECHO_T= | |
15742 | case `echo -n x` in | |
15743 | -n*) | |
15744 | case `echo 'x\c'` in | |
15745 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15746 | *) ECHO_C='\c';; | |
15747 | esac;; | |
15748 | *) | |
15749 | ECHO_N='-n';; | |
ad6254c5 | 15750 | esac |
7a197a62 AK |
15751 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15752 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15753 | as_expr=expr |
15754 | else | |
15755 | as_expr=false | |
15756 | fi | |
80992638 | 15757 | |
ad6254c5 | 15758 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15759 | if test -d conf$$.dir; then |
15760 | rm -f conf$$.dir/conf$$.file | |
15761 | else | |
15762 | rm -f conf$$.dir | |
ec6a6fbe AK |
15763 | mkdir conf$$.dir 2>/dev/null |
15764 | fi | |
15765 | if (echo >conf$$.file) 2>/dev/null; then | |
15766 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15767 | as_ln_s='ln -s' | |
15768 | # ... but there are two gotchas: | |
15769 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15770 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15771 | # In both cases, we have to default to `cp -p'. | |
15772 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15773 | as_ln_s='cp -p' | |
15774 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15775 | as_ln_s=ln | |
15776 | else | |
ad6254c5 | 15777 | as_ln_s='cp -p' |
ec6a6fbe | 15778 | fi |
ad6254c5 AK |
15779 | else |
15780 | as_ln_s='cp -p' | |
15781 | fi | |
7a197a62 AK |
15782 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15783 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15784 | |
ad6254c5 AK |
15785 | if mkdir -p . 2>/dev/null; then |
15786 | as_mkdir_p=: | |
15787 | else | |
8a2fc586 | 15788 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
15789 | as_mkdir_p=false |
15790 | fi | |
15791 | ||
25fbec5b AK |
15792 | if test -x / >/dev/null 2>&1; then |
15793 | as_test_x='test -x' | |
7a197a62 | 15794 | else |
25fbec5b AK |
15795 | if ls -dL / >/dev/null 2>&1; then |
15796 | as_ls_L_option=L | |
15797 | else | |
15798 | as_ls_L_option= | |
15799 | fi | |
15800 | as_test_x=' | |
15801 | eval sh -c '\'' | |
15802 | if test -d "$1"; then | |
ec6a6fbe | 15803 | test -d "$1/."; |
25fbec5b AK |
15804 | else |
15805 | case $1 in | |
ec6a6fbe | 15806 | -*)set "./$1";; |
25fbec5b AK |
15807 | esac; |
15808 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
15809 | ???[sx]*):;;*)false;;esac;fi | |
15810 | '\'' sh | |
15811 | ' | |
7a197a62 | 15812 | fi |
25fbec5b | 15813 | as_executable_p=$as_test_x |
ad6254c5 AK |
15814 | |
15815 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 15816 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15817 | |
15818 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 15819 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15820 | |
15821 | ||
ad6254c5 AK |
15822 | exec 6>&1 |
15823 | ||
7a197a62 | 15824 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 15825 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
15826 | # values after options handling. |
15827 | ac_log=" | |
ad6254c5 | 15828 | This file was extended by $as_me, which was |
ec6a6fbe | 15829 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
15830 | |
15831 | CONFIG_FILES = $CONFIG_FILES | |
15832 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15833 | CONFIG_LINKS = $CONFIG_LINKS | |
15834 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15835 | $ $0 $@ | |
15836 | ||
7a197a62 AK |
15837 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15838 | " | |
15839 | ||
ad6254c5 AK |
15840 | _ACEOF |
15841 | ||
ec6a6fbe AK |
15842 | case $ac_config_files in *" |
15843 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15844 | esac | |
15845 | ||
15846 | case $ac_config_headers in *" | |
15847 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15848 | esac | |
15849 | ||
15850 | ||
15851 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 15852 | # Files that config.status was made for. |
68f2de6d AK |
15853 | config_files="$ac_config_files" |
15854 | config_headers="$ac_config_headers" | |
ad6254c5 | 15855 | |
7a197a62 | 15856 | _ACEOF |
ad6254c5 | 15857 | |
ec6a6fbe | 15858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15859 | ac_cs_usage="\ |
15860 | \`$as_me' instantiates files from templates according to the | |
15861 | current configuration. | |
15862 | ||
ec6a6fbe | 15863 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
15864 | |
15865 | -h, --help print this help, then exit | |
25fbec5b | 15866 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
15867 | -q, --quiet, --silent |
15868 | do not print progress messages | |
ad6254c5 AK |
15869 | -d, --debug don't remove temporary files |
15870 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
15871 | --file=FILE[:TEMPLATE] |
15872 | instantiate the configuration file FILE | |
15873 | --header=FILE[:TEMPLATE] | |
15874 | instantiate the configuration header FILE | |
ad6254c5 AK |
15875 | |
15876 | Configuration files: | |
15877 | $config_files | |
15878 | ||
72b2cb61 AK |
15879 | Configuration headers: |
15880 | $config_headers | |
15881 | ||
ad6254c5 | 15882 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 15883 | |
7a197a62 | 15884 | _ACEOF |
ec6a6fbe | 15885 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15886 | ac_cs_version="\\ |
15887 | config.status | |
ec6a6fbe AK |
15888 | configured by $0, generated by GNU Autoconf 2.63, |
15889 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 15890 | |
ec6a6fbe | 15891 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
15892 | This config.status script is free software; the Free Software Foundation |
15893 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
15894 | |
15895 | ac_pwd='$ac_pwd' | |
15896 | srcdir='$srcdir' | |
15897 | INSTALL='$INSTALL' | |
fddafd51 | 15898 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
15899 | AWK='$AWK' |
15900 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
15901 | _ACEOF |
15902 | ||
ec6a6fbe AK |
15903 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15904 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
15905 | ac_need_defaults=: |
15906 | while test $# != 0 | |
15907 | do | |
15908 | case $1 in | |
15909 | --*=*) | |
7a197a62 AK |
15910 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15911 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
15912 | ac_shift=: |
15913 | ;; | |
7a197a62 | 15914 | *) |
ad6254c5 AK |
15915 | ac_option=$1 |
15916 | ac_optarg=$2 | |
15917 | ac_shift=shift | |
15918 | ;; | |
ad6254c5 AK |
15919 | esac |
15920 | ||
15921 | case $ac_option in | |
15922 | # Handling of the options. | |
ad6254c5 AK |
15923 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15924 | ac_cs_recheck=: ;; | |
7a197a62 | 15925 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 15926 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 15927 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
15928 | debug=: ;; |
15929 | --file | --fil | --fi | --f ) | |
15930 | $ac_shift | |
ec6a6fbe AK |
15931 | case $ac_optarg in |
15932 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15933 | esac | |
15934 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
15935 | ac_need_defaults=false;; |
15936 | --header | --heade | --head | --hea ) | |
15937 | $ac_shift | |
ec6a6fbe AK |
15938 | case $ac_optarg in |
15939 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15940 | esac | |
15941 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 15942 | ac_need_defaults=false;; |
7a197a62 AK |
15943 | --he | --h) |
15944 | # Conflict between --help and --header | |
ec6a6fbe | 15945 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
15946 | Try \`$0 --help' for more information." >&2 |
15947 | { (exit 1); exit 1; }; };; | |
15948 | --help | --hel | -h ) | |
ec6a6fbe | 15949 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
15950 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15951 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15952 | ac_cs_silent=: ;; | |
15953 | ||
15954 | # This is an error. | |
ec6a6fbe | 15955 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 15956 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
15957 | { (exit 1); exit 1; }; } ;; |
15958 | ||
7a197a62 AK |
15959 | *) ac_config_targets="$ac_config_targets $1" |
15960 | ac_need_defaults=false ;; | |
ad6254c5 AK |
15961 | |
15962 | esac | |
15963 | shift | |
15964 | done | |
15965 | ||
15966 | ac_configure_extra_args= | |
15967 | ||
15968 | if $ac_cs_silent; then | |
15969 | exec 6>/dev/null | |
15970 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15971 | fi | |
15972 | ||
15973 | _ACEOF | |
ec6a6fbe | 15974 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 15975 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
15976 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15977 | shift | |
15978 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15979 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 15980 | export CONFIG_SHELL |
ec6a6fbe | 15981 | exec "\$@" |
ad6254c5 AK |
15982 | fi |
15983 | ||
15984 | _ACEOF | |
ec6a6fbe | 15985 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
15986 | exec 5>>config.log |
15987 | { | |
15988 | echo | |
15989 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15990 | ## Running $as_me. ## | |
15991 | _ASBOX | |
ec6a6fbe | 15992 | $as_echo "$ac_log" |
7a197a62 | 15993 | } >&5 |
ad6254c5 | 15994 | |
7a197a62 | 15995 | _ACEOF |
ec6a6fbe | 15996 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 15997 | _ACEOF |
ad6254c5 | 15998 | |
ec6a6fbe | 15999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16000 | |
16001 | # Handling of arguments. | |
ad6254c5 AK |
16002 | for ac_config_target in $ac_config_targets |
16003 | do | |
7a197a62 AK |
16004 | case $ac_config_target in |
16005 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16006 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16007 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16008 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16009 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16010 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16011 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16012 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16013 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
16014 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16015 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16016 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
16017 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16018 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16019 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16020 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16021 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16022 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 16023 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16024 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16025 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16026 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16027 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16028 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16029 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16030 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16031 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
595eaf92 | 16032 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16033 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16034 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16035 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16036 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16037 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16038 | |
ec6a6fbe AK |
16039 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16040 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16041 | { (exit 1); exit 1; }; };; |
80992638 | 16042 | esac |
ad6254c5 AK |
16043 | done |
16044 | ||
7a197a62 | 16045 | |
ad6254c5 AK |
16046 | # If the user did not use the arguments to specify the items to instantiate, |
16047 | # then the envvar interface is used. Set only those that are not. | |
16048 | # We use the long form for the default assignment because of an extremely | |
16049 | # bizarre bug on SunOS 4.1.3. | |
16050 | if $ac_need_defaults; then | |
16051 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16052 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16053 | fi |
16054 | ||
16055 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16056 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16057 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16058 | # Hook for its removal unless debugging. |
16059 | # Note that there is a small window in which the directory will not be cleaned: | |
16060 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16061 | $debug || |
16062 | { | |
7a197a62 AK |
16063 | tmp= |
16064 | trap 'exit_status=$? | |
16065 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16066 | ' 0 | |
ad6254c5 AK |
16067 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16068 | } | |
ad6254c5 AK |
16069 | # Create a (secure) tmp directory for tmp files. |
16070 | ||
16071 | { | |
7a197a62 | 16072 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16073 | test -n "$tmp" && test -d "$tmp" |
16074 | } || | |
16075 | { | |
7a197a62 AK |
16076 | tmp=./conf$$-$RANDOM |
16077 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16078 | } || |
16079 | { | |
ec6a6fbe | 16080 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16081 | { (exit 1); exit 1; } |
16082 | } | |
16083 | ||
ec6a6fbe AK |
16084 | # Set up the scripts for CONFIG_FILES section. |
16085 | # No need to generate them if there are no CONFIG_FILES. | |
16086 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16087 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16088 | |
68f2de6d | 16089 | |
ec6a6fbe AK |
16090 | ac_cr='\r' |
16091 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16092 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16093 | ac_cs_awk_cr='\\r' | |
16094 | else | |
16095 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16096 | fi |
7a197a62 | 16097 | |
ec6a6fbe | 16098 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16099 | _ACEOF |
7a197a62 | 16100 | |
8106cdd5 | 16101 | |
ec6a6fbe AK |
16102 | { |
16103 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16104 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16105 | echo "_ACEOF" | |
16106 | } >conf$$subs.sh || | |
16107 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16108 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16109 | { (exit 1); exit 1; }; } | |
16110 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16111 | ac_delim='%!_!# ' |
16112 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16113 | . ./conf$$subs.sh || |
16114 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16115 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16116 | { (exit 1); exit 1; }; } | |
16117 | ||
16118 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16119 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16120 | break |
16121 | elif $ac_last_try; then | |
ec6a6fbe AK |
16122 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16123 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16124 | { (exit 1); exit 1; }; } |
16125 | else | |
16126 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16127 | fi | |
16128 | done | |
ec6a6fbe AK |
16129 | rm -f conf$$subs.sh |
16130 | ||
16131 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16132 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16133 | _ACEOF | |
16134 | sed -n ' | |
16135 | h | |
16136 | s/^/S["/; s/!.*/"]=/ | |
16137 | p | |
16138 | g | |
16139 | s/^[^!]*!// | |
16140 | :repl | |
16141 | t repl | |
16142 | s/'"$ac_delim"'$// | |
16143 | t delim | |
16144 | :nl | |
16145 | h | |
16146 | s/\(.\{148\}\).*/\1/ | |
16147 | t more1 | |
16148 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16149 | p | |
16150 | n | |
16151 | b repl | |
16152 | :more1 | |
16153 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16154 | p | |
16155 | g | |
16156 | s/.\{148\}// | |
16157 | t nl | |
16158 | :delim | |
16159 | h | |
16160 | s/\(.\{148\}\).*/\1/ | |
16161 | t more2 | |
16162 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16163 | p | |
16164 | b | |
16165 | :more2 | |
16166 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16167 | p | |
16168 | g | |
16169 | s/.\{148\}// | |
16170 | t delim | |
16171 | ' <conf$$subs.awk | sed ' | |
16172 | /^[^""]/{ | |
16173 | N | |
16174 | s/\n// | |
16175 | } | |
16176 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16177 | rm -f conf$$subs.awk | |
16178 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16179 | _ACAWK | |
16180 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16181 | for (key in S) S_is_set[key] = 1 | |
16182 | FS = "\a" | |
7a197a62 | 16183 | |
ec6a6fbe AK |
16184 | } |
16185 | { | |
16186 | line = $ 0 | |
16187 | nfields = split(line, field, "@") | |
16188 | substed = 0 | |
16189 | len = length(field[1]) | |
16190 | for (i = 2; i < nfields; i++) { | |
16191 | key = field[i] | |
16192 | keylen = length(key) | |
16193 | if (S_is_set[key]) { | |
16194 | value = S[key] | |
16195 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16196 | len += length(value) + length(field[++i]) | |
16197 | substed = 1 | |
16198 | } else | |
16199 | len += 1 + keylen | |
16200 | } | |
16201 | ||
16202 | print line | |
16203 | } | |
fddafd51 | 16204 | |
ec6a6fbe | 16205 | _ACAWK |
1995c9ff | 16206 | _ACEOF |
ec6a6fbe AK |
16207 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16208 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16209 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16210 | else | |
16211 | cat | |
16212 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16213 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16214 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16215 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16216 | _ACEOF |
16217 | ||
7a197a62 AK |
16218 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16219 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16220 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16221 | # (actually we leave an empty line to preserve line numbers). | |
16222 | if test "x$srcdir" = x.; then | |
16223 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16224 | s/:*\$(srcdir):*/:/ | |
16225 | s/:*\${srcdir}:*/:/ | |
16226 | s/:*@srcdir@:*/:/ | |
16227 | s/^\([^=]*=[ ]*\):*/\1/ | |
16228 | s/:*$// | |
16229 | s/^[^=]*=[ ]*$// | |
16230 | }' | |
16231 | fi | |
16232 | ||
ec6a6fbe | 16233 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16234 | fi # test -n "$CONFIG_FILES" |
16235 | ||
ec6a6fbe AK |
16236 | # Set up the scripts for CONFIG_HEADERS section. |
16237 | # No need to generate them if there are no CONFIG_HEADERS. | |
16238 | # This happens for instance with `./config.status Makefile'. | |
16239 | if test -n "$CONFIG_HEADERS"; then | |
16240 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16241 | BEGIN { | |
16242 | _ACEOF | |
16243 | ||
16244 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16245 | # here-document in config.status, that substitutes the proper values into | |
16246 | # config.h.in to produce config.h. | |
16247 | ||
16248 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16249 | # handling of long lines. | |
16250 | ac_delim='%!_!# ' | |
16251 | for ac_last_try in false false :; do | |
16252 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16253 | if test -z "$ac_t"; then | |
16254 | break | |
16255 | elif $ac_last_try; then | |
16256 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16257 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16258 | { (exit 1); exit 1; }; } | |
16259 | else | |
16260 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16261 | fi | |
16262 | done | |
16263 | ||
16264 | # For the awk script, D is an array of macro values keyed by name, | |
16265 | # likewise P contains macro parameters if any. Preserve backslash | |
16266 | # newline sequences. | |
16267 | ||
16268 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16269 | sed -n ' | |
16270 | s/.\{148\}/&'"$ac_delim"'/g | |
16271 | t rset | |
16272 | :rset | |
16273 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16274 | t def | |
16275 | d | |
16276 | :def | |
16277 | s/\\$// | |
16278 | t bsnl | |
16279 | s/["\\]/\\&/g | |
16280 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16281 | D["\1"]=" \3"/p | |
16282 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16283 | d | |
16284 | :bsnl | |
16285 | s/["\\]/\\&/g | |
16286 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16287 | D["\1"]=" \3\\\\\\n"\\/p | |
16288 | t cont | |
16289 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16290 | t cont | |
16291 | d | |
16292 | :cont | |
16293 | n | |
16294 | s/.\{148\}/&'"$ac_delim"'/g | |
16295 | t clear | |
16296 | :clear | |
16297 | s/\\$// | |
16298 | t bsnlc | |
16299 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16300 | d | |
16301 | :bsnlc | |
16302 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16303 | b cont | |
16304 | ' <confdefs.h | sed ' | |
16305 | s/'"$ac_delim"'/"\\\ | |
16306 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16307 | ||
16308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16309 | for (key in D) D_is_set[key] = 1 | |
16310 | FS = "\a" | |
16311 | } | |
16312 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16313 | line = \$ 0 | |
16314 | split(line, arg, " ") | |
16315 | if (arg[1] == "#") { | |
16316 | defundef = arg[2] | |
16317 | mac1 = arg[3] | |
16318 | } else { | |
16319 | defundef = substr(arg[1], 2) | |
16320 | mac1 = arg[2] | |
16321 | } | |
16322 | split(mac1, mac2, "(") #) | |
16323 | macro = mac2[1] | |
16324 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16325 | if (D_is_set[macro]) { | |
16326 | # Preserve the white space surrounding the "#". | |
16327 | print prefix "define", macro P[macro] D[macro] | |
16328 | next | |
16329 | } else { | |
16330 | # Replace #undef with comments. This is necessary, for example, | |
16331 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16332 | # on some systems where configure will not decide to define it. | |
16333 | if (defundef == "undef") { | |
16334 | print "/*", prefix defundef, macro, "*/" | |
16335 | next | |
16336 | } | |
16337 | } | |
16338 | } | |
16339 | { print } | |
16340 | _ACAWK | |
16341 | _ACEOF | |
16342 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16343 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16344 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16345 | { (exit 1); exit 1; }; } | |
16346 | fi # test -n "$CONFIG_HEADERS" | |
16347 | ||
7a197a62 | 16348 | |
ec6a6fbe AK |
16349 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16350 | shift | |
16351 | for ac_tag | |
7a197a62 AK |
16352 | do |
16353 | case $ac_tag in | |
16354 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16355 | esac | |
16356 | case $ac_mode$ac_tag in | |
16357 | :[FHL]*:*);; | |
ec6a6fbe AK |
16358 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16359 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16360 | { (exit 1); exit 1; }; };; |
16361 | :[FH]-) ac_tag=-:-;; | |
16362 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16363 | esac | |
16364 | ac_save_IFS=$IFS | |
16365 | IFS=: | |
16366 | set x $ac_tag | |
16367 | IFS=$ac_save_IFS | |
16368 | shift | |
16369 | ac_file=$1 | |
16370 | shift | |
16371 | ||
16372 | case $ac_mode in | |
16373 | :L) ac_source=$1;; | |
16374 | :[FH]) | |
16375 | ac_file_inputs= | |
16376 | for ac_f | |
16377 | do | |
16378 | case $ac_f in | |
16379 | -) ac_f="$tmp/stdin";; | |
16380 | *) # Look for the file first in the build tree, then in the source tree | |
16381 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16382 | # because $ac_f cannot contain `:'. | |
16383 | test -f "$ac_f" || | |
16384 | case $ac_f in | |
16385 | [\\/$]*) false;; | |
16386 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16387 | esac || | |
ec6a6fbe AK |
16388 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16389 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16390 | { (exit 1); exit 1; }; };; |
16391 | esac | |
ec6a6fbe AK |
16392 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16393 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16394 | done |
16395 | ||
16396 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16397 | # use $as_me), people would be surprised to read: | |
16398 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16399 | configure_input='Generated from '` |
16400 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16401 | `' by configure.' | |
7a197a62 AK |
16402 | if test x"$ac_file" != x-; then |
16403 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16404 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16405 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16406 | fi |
ec6a6fbe AK |
16407 | # Neutralize special characters interpreted by sed in replacement strings. |
16408 | case $configure_input in #( | |
16409 | *\&* | *\|* | *\\* ) | |
16410 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16411 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16412 | *) ac_sed_conf_input=$configure_input;; | |
16413 | esac | |
7a197a62 AK |
16414 | |
16415 | case $ac_tag in | |
ec6a6fbe AK |
16416 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16417 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16418 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16419 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16420 | esac |
16421 | ;; | |
80992638 | 16422 | esac |
8106cdd5 | 16423 | |
7a197a62 | 16424 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16425 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16426 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16427 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16428 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16429 | $as_echo X"$ac_file" | |
7a197a62 AK |
16430 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16431 | s//\1/ | |
16432 | q | |
16433 | } | |
16434 | /^X\(\/\/\)[^/].*/{ | |
16435 | s//\1/ | |
16436 | q | |
16437 | } | |
16438 | /^X\(\/\/\)$/{ | |
16439 | s//\1/ | |
16440 | q | |
16441 | } | |
16442 | /^X\(\/\).*/{ | |
16443 | s//\1/ | |
16444 | q | |
16445 | } | |
16446 | s/.*/./; q'` | |
16447 | { as_dir="$ac_dir" | |
16448 | case $as_dir in #( | |
16449 | -*) as_dir=./$as_dir;; | |
16450 | esac | |
16451 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16452 | as_dirs= |
7a197a62 AK |
16453 | while :; do |
16454 | case $as_dir in #( | |
ec6a6fbe | 16455 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16456 | *) as_qdir=$as_dir;; |
16457 | esac | |
16458 | as_dirs="'$as_qdir' $as_dirs" | |
16459 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16460 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16461 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16462 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16463 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16464 | $as_echo X"$as_dir" | |
7a197a62 AK |
16465 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16466 | s//\1/ | |
16467 | q | |
16468 | } | |
16469 | /^X\(\/\/\)[^/].*/{ | |
16470 | s//\1/ | |
16471 | q | |
16472 | } | |
16473 | /^X\(\/\/\)$/{ | |
16474 | s//\1/ | |
16475 | q | |
16476 | } | |
16477 | /^X\(\/\).*/{ | |
16478 | s//\1/ | |
16479 | q | |
16480 | } | |
16481 | s/.*/./; q'` | |
16482 | test -d "$as_dir" && break | |
ad6254c5 | 16483 | done |
7a197a62 | 16484 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16485 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16486 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16487 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16488 | ac_builddir=. |
16489 | ||
7a197a62 AK |
16490 | case "$ac_dir" in |
16491 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16492 | *) | |
ec6a6fbe | 16493 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16494 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16495 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16496 | case $ac_top_builddir_sub in |
16497 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16498 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16499 | esac ;; | |
16500 | esac | |
16501 | ac_abs_top_builddir=$ac_pwd | |
16502 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16503 | # for backward compatibility: | |
16504 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16505 | |
16506 | case $srcdir in | |
7a197a62 | 16507 | .) # We are building in place. |
ad6254c5 | 16508 | ac_srcdir=. |
7a197a62 AK |
16509 | ac_top_srcdir=$ac_top_builddir_sub |
16510 | ac_abs_top_srcdir=$ac_pwd ;; | |
16511 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16512 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16513 | ac_top_srcdir=$srcdir |
16514 | ac_abs_top_srcdir=$srcdir ;; | |
16515 | *) # Relative name. | |
16516 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16517 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16518 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16519 | esac |
7a197a62 | 16520 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16521 | |
ad6254c5 | 16522 | |
7a197a62 AK |
16523 | case $ac_mode in |
16524 | :F) | |
16525 | # | |
16526 | # CONFIG_FILE | |
16527 | # | |
ad6254c5 AK |
16528 | |
16529 | case $INSTALL in | |
16530 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16531 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16532 | esac |
fddafd51 ZK |
16533 | ac_MKDIR_P=$MKDIR_P |
16534 | case $MKDIR_P in | |
16535 | [\\/$]* | ?:[\\/]* ) ;; | |
16536 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16537 | esac | |
7a197a62 | 16538 | _ACEOF |
795ca3e5 | 16539 | |
ec6a6fbe | 16540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16541 | # If the template does not know about datarootdir, expand it. |
16542 | # FIXME: This hack should be removed a few years after 2.60. | |
16543 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16544 | ||
ec6a6fbe AK |
16545 | ac_sed_dataroot=' |
16546 | /datarootdir/ { | |
7a197a62 AK |
16547 | p |
16548 | q | |
16549 | } | |
16550 | /@datadir@/p | |
16551 | /@docdir@/p | |
16552 | /@infodir@/p | |
16553 | /@localedir@/p | |
16554 | /@mandir@/p | |
ec6a6fbe AK |
16555 | ' |
16556 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16557 | *datarootdir*) ac_datarootdir_seen=yes;; |
16558 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16559 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16560 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16561 | _ACEOF |
ec6a6fbe | 16562 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16563 | ac_datarootdir_hack=' |
16564 | s&@datadir@&$datadir&g | |
16565 | s&@docdir@&$docdir&g | |
16566 | s&@infodir@&$infodir&g | |
16567 | s&@localedir@&$localedir&g | |
16568 | s&@mandir@&$mandir&g | |
16569 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16570 | esac | |
16571 | _ACEOF | |
16572 | ||
16573 | # Neutralize VPATH when `$srcdir' = `.'. | |
16574 | # Shell code in configure.ac might set extrasub. | |
16575 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16577 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16578 | $extrasub |
16579 | _ACEOF | |
ec6a6fbe | 16580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16581 | :t |
16582 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16583 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16584 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16585 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16586 | s&@srcdir@&$ac_srcdir&;t t |
16587 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16588 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16589 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16590 | s&@builddir@&$ac_builddir&;t t | |
16591 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16592 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16593 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16594 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16595 | $ac_datarootdir_hack |
ec6a6fbe AK |
16596 | " |
16597 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16598 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16599 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16600 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16601 | |
16602 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16603 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16604 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16605 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16606 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16607 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16608 | which seems to be undefined. Please make sure it is defined." >&2;} |
16609 | ||
16610 | rm -f "$tmp/stdin" | |
72b2cb61 | 16611 | case $ac_file in |
ec6a6fbe AK |
16612 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16613 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16614 | esac \ | |
16615 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16616 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16617 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16618 | ;; |
16619 | :H) | |
16620 | # | |
16621 | # CONFIG_HEADER | |
16622 | # | |
72b2cb61 | 16623 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16624 | { |
16625 | $as_echo "/* $configure_input */" \ | |
16626 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16627 | } >"$tmp/config.h" \ | |
16628 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16629 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16630 | { (exit 1); exit 1; }; } | |
16631 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16632 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16633 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16634 | else |
ec6a6fbe AK |
16635 | rm -f "$ac_file" |
16636 | mv "$tmp/config.h" "$ac_file" \ | |
16637 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16638 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16639 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16640 | fi |
16641 | else | |
ec6a6fbe AK |
16642 | $as_echo "/* $configure_input */" \ |
16643 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16644 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16645 | $as_echo "$as_me: error: could not create -" >&2;} | |
16646 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16647 | fi |
7a197a62 AK |
16648 | ;; |
16649 | ||
16650 | ||
16651 | esac | |
16652 | ||
16653 | done # for ac_tag | |
795ca3e5 | 16654 | |
795ca3e5 | 16655 | |
ad6254c5 AK |
16656 | { (exit 0); exit 0; } |
16657 | _ACEOF | |
795ca3e5 | 16658 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16659 | ac_clean_files=$ac_clean_files_save |
16660 | ||
ec6a6fbe AK |
16661 | test $ac_write_fail = 0 || |
16662 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16663 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16664 | { (exit 1); exit 1; }; } | |
16665 | ||
ad6254c5 AK |
16666 | |
16667 | # configure is writing to config.log, and then calls config.status. | |
16668 | # config.status does its own redirection, appending to config.log. | |
16669 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16670 | # by configure, so config.status won't be able to write to it; its | |
16671 | # output is simply discarded. So we exec the FD to /dev/null, | |
16672 | # effectively closing config.log, so it can be properly (re)opened and | |
16673 | # appended to by config.status. When coming back to configure, we | |
16674 | # need to make the FD available again. | |
16675 | if test "$no_create" != yes; then | |
16676 | ac_cs_success=: | |
16677 | ac_config_status_args= | |
16678 | test "$silent" = yes && | |
16679 | ac_config_status_args="$ac_config_status_args --quiet" | |
16680 | exec 5>/dev/null | |
16681 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16682 | exec 5>>config.log | |
16683 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16684 | # would make configure fail if this is the last instruction. | |
16685 | $ac_cs_success || { (exit 1); exit 1; } | |
16686 | fi | |
ec6a6fbe AK |
16687 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16688 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16689 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16690 | fi | |
795ca3e5 | 16691 | |
2dc95e1c AK |
16692 | |
16693 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16694 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16695 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16696 | fi |