]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
23b059e7 | 649 | WRITE_INSTALL |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
f7f0854e | 652 | UDEV_PC |
db724a44 | 653 | UDEV_LIBS |
54b362f9 | 654 | TESTING |
ec6a6fbe AK |
655 | STATIC_LINK |
656 | STATICDIR | |
657 | SNAPSHOTS | |
f7f0854e | 658 | SELINUX_PC |
e1b8a236 | 659 | SELINUX_LIBS |
539f4a77 | 660 | READLINE_LIBS |
f30875db | 661 | PTHREAD_LIBS |
ec6a6fbe AK |
662 | POOL |
663 | PKGCONFIG | |
8fea97b7 | 664 | REPLICATORS |
ec6a6fbe AK |
665 | MIRRORS |
666 | LVM_RELEASE_DATE | |
667 | LVM_RELEASE | |
668 | LVM_PATCHLEVEL | |
669 | LVM_MINOR | |
670 | LVM_MAJOR | |
bf456146 | 671 | LVM_LIBAPI |
ec6a6fbe | 672 | LVM_VERSION |
ec6a6fbe AK |
673 | LVM1_FALLBACK |
674 | LVM1 | |
675 | LOCALEDIR | |
676 | LIB_SUFFIX | |
677 | LDDEPS | |
678 | JOBS | |
679 | INTL_PACKAGE | |
680 | INTL | |
ec6a6fbe AK |
681 | HAVE_REALTIME |
682 | HAVE_LIBDL | |
ec6a6fbe AK |
683 | FSADM |
684 | DM_LIB_PATCHLEVEL | |
685 | DM_LIB_VERSION | |
686 | DM_IOCTLS | |
687 | DM_DEVICE_UID | |
688 | DM_DEVICE_MODE | |
689 | DM_DEVICE_GID | |
690 | DM_COMPAT | |
d1e8046f | 691 | DMEVENTD_PATH |
ec6a6fbe | 692 | DMEVENTD |
19a2c6e0 | 693 | DL_LIBS |
ec6a6fbe | 694 | DEVMAPPER |
b1f08e51 | 695 | DEFAULT_RUN_DIR |
3399ae32 | 696 | DEFAULT_LOCK_DIR |
fea55602 | 697 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
698 | DEFAULT_CACHE_SUBDIR |
699 | DEFAULT_BACKUP_SUBDIR | |
700 | DEFAULT_ARCHIVE_SUBDIR | |
701 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
702 | DEBUG |
703 | COPTIMISE_FLAG | |
e2997b73 | 704 | CONFDIR |
ec6a6fbe | 705 | CMDLIB |
c89bc357 | 706 | CLVMD_CMANAGERS |
ec6a6fbe AK |
707 | CLVMD |
708 | CLUSTER | |
709 | CLDWHOLEARCHIVE | |
710 | CLDNOWHOLEARCHIVE | |
711 | CLDFLAGS | |
712 | BUILD_DMEVENTD | |
66fd4529 | 713 | BUILD_CMIRRORD |
572fefeb | 714 | APPLIB |
ec6a6fbe AK |
715 | MODPROBE_CMD |
716 | MSGFMT | |
717 | LVM2CMD_LIB | |
572fefeb | 718 | LVM2APP_LIB |
54b362f9 AK |
719 | VALGRIND |
720 | RUBY19 | |
fd4728e1 | 721 | GENPNG |
ec6a6fbe AK |
722 | GENHTML |
723 | LCOV | |
90c80887 AK |
724 | SACKPT_LIBS |
725 | SACKPT_CFLAGS | |
a946372e AK |
726 | DLM_LIBS |
727 | DLM_CFLAGS | |
e2997b73 AK |
728 | CPG_LIBS |
729 | CPG_CFLAGS | |
730 | CONFDB_LIBS | |
731 | CONFDB_CFLAGS | |
a946372e AK |
732 | SALCK_LIBS |
733 | SALCK_CFLAGS | |
e2997b73 AK |
734 | QUORUM_LIBS |
735 | QUORUM_CFLAGS | |
a946372e AK |
736 | COROSYNC_LIBS |
737 | COROSYNC_CFLAGS | |
738 | CMAN_LIBS | |
739 | CMAN_CFLAGS | |
740 | GULM_LIBS | |
741 | GULM_CFLAGS | |
742 | CCS_LIBS | |
743 | CCS_CFLAGS | |
744 | PKGCONFIGINIT_LIBS | |
745 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 746 | PKG_CONFIG |
ec6a6fbe AK |
747 | POW_LIB |
748 | LIBOBJS | |
749 | ALLOCA | |
750 | CSCOPE_CMD | |
751 | CFLOW_CMD | |
752 | RANLIB | |
753 | MKDIR_P | |
754 | SET_MAKE | |
755 | LN_S | |
756 | INSTALL_DATA | |
757 | INSTALL_SCRIPT | |
758 | INSTALL_PROGRAM | |
759 | EGREP | |
760 | GREP | |
761 | CPP | |
762 | OBJEXT | |
763 | EXEEXT | |
764 | ac_ct_CC | |
765 | CPPFLAGS | |
766 | LDFLAGS | |
767 | CFLAGS | |
768 | CC | |
769 | AWK | |
770 | SED | |
771 | target_os | |
772 | target_vendor | |
773 | target_cpu | |
774 | target | |
775 | host_os | |
776 | host_vendor | |
777 | host_cpu | |
778 | host | |
779 | build_os | |
780 | build_vendor | |
781 | build_cpu | |
782 | build | |
783 | target_alias | |
784 | host_alias | |
785 | build_alias | |
786 | LIBS | |
787 | ECHO_T | |
788 | ECHO_N | |
789 | ECHO_C | |
790 | DEFS | |
791 | mandir | |
792 | localedir | |
793 | libdir | |
794 | psdir | |
795 | pdfdir | |
796 | dvidir | |
797 | htmldir | |
798 | infodir | |
799 | docdir | |
800 | oldincludedir | |
801 | includedir | |
802 | localstatedir | |
803 | sharedstatedir | |
804 | sysconfdir | |
805 | datadir | |
806 | datarootdir | |
807 | libexecdir | |
808 | sbindir | |
809 | bindir | |
810 | program_transform_name | |
811 | prefix | |
812 | exec_prefix | |
813 | PACKAGE_BUGREPORT | |
814 | PACKAGE_STRING | |
815 | PACKAGE_VERSION | |
816 | PACKAGE_TARNAME | |
817 | PACKAGE_NAME | |
818 | PATH_SEPARATOR | |
819 | SHELL' | |
ad6254c5 | 820 | ac_subst_files='' |
ec6a6fbe AK |
821 | ac_user_opts=' |
822 | enable_option_checking | |
823 | enable_static_link | |
824 | with_user | |
825 | with_group | |
826 | with_device_uid | |
827 | with_device_gid | |
828 | with_device_mode | |
829 | enable_lvm1_fallback | |
830 | with_lvm1 | |
831 | with_pool | |
832 | with_cluster | |
833 | with_snapshots | |
834 | with_mirrors | |
8fea97b7 | 835 | with_replicators |
ec6a6fbe AK |
836 | enable_readline |
837 | enable_realtime | |
838 | with_clvmd | |
8c4e8a18 | 839 | with_clvmd_pidfile |
66fd4529 AK |
840 | enable_cmirrord |
841 | with_cmirrord_pidfile | |
ec6a6fbe AK |
842 | enable_debug |
843 | with_optimisation | |
844 | enable_profiling | |
54b362f9 | 845 | enable_testing |
d1e8046f | 846 | enable_valgrind_pool |
ec6a6fbe | 847 | enable_devmapper |
a5f46f6a AK |
848 | enable_udev_sync |
849 | enable_udev_rules | |
ec6a6fbe | 850 | enable_compat |
95eaa683 | 851 | enable_units_compat |
ec6a6fbe AK |
852 | enable_ioctl |
853 | enable_o_direct | |
572fefeb | 854 | enable_applib |
ec6a6fbe AK |
855 | enable_cmdlib |
856 | enable_pkgconfig | |
23b059e7 | 857 | enable_write_install |
ec6a6fbe AK |
858 | enable_fsadm |
859 | enable_dmeventd | |
860 | enable_selinux | |
861 | enable_nls | |
862 | with_localedir | |
863 | with_confdir | |
864 | with_staticdir | |
865 | with_usrlibdir | |
866 | with_usrsbindir | |
a5f46f6a | 867 | with_udev_prefix |
78ce7acc | 868 | with_udevdir |
ec6a6fbe AK |
869 | with_dmeventd_pidfile |
870 | with_dmeventd_path | |
8bae0a1e | 871 | with_default_run_dir |
3399ae32 AK |
872 | with_default_system_dir |
873 | with_default_archive_subdir | |
874 | with_default_backup_subdir | |
875 | with_default_cache_subdir | |
876 | with_default_locking_dir | |
fea55602 | 877 | with_default_data_alignment |
ec6a6fbe AK |
878 | with_interface |
879 | ' | |
7a197a62 AK |
880 | ac_precious_vars='build_alias |
881 | host_alias | |
882 | target_alias | |
883 | CC | |
884 | CFLAGS | |
885 | LDFLAGS | |
25fbec5b | 886 | LIBS |
7a197a62 | 887 | CPPFLAGS |
e2997b73 AK |
888 | CPP |
889 | PKG_CONFIG | |
a946372e AK |
890 | PKGCONFIGINIT_CFLAGS |
891 | PKGCONFIGINIT_LIBS | |
892 | CCS_CFLAGS | |
893 | CCS_LIBS | |
894 | GULM_CFLAGS | |
895 | GULM_LIBS | |
896 | CMAN_CFLAGS | |
897 | CMAN_LIBS | |
898 | COROSYNC_CFLAGS | |
899 | COROSYNC_LIBS | |
e2997b73 AK |
900 | QUORUM_CFLAGS |
901 | QUORUM_LIBS | |
a946372e AK |
902 | SALCK_CFLAGS |
903 | SALCK_LIBS | |
e2997b73 AK |
904 | CONFDB_CFLAGS |
905 | CONFDB_LIBS | |
906 | CPG_CFLAGS | |
a946372e AK |
907 | CPG_LIBS |
908 | DLM_CFLAGS | |
90c80887 AK |
909 | DLM_LIBS |
910 | SACKPT_CFLAGS | |
911 | SACKPT_LIBS' | |
7a197a62 | 912 | |
795ca3e5 AK |
913 | |
914 | # Initialize some variables set by options. | |
ad6254c5 AK |
915 | ac_init_help= |
916 | ac_init_version=false | |
ec6a6fbe AK |
917 | ac_unrecognized_opts= |
918 | ac_unrecognized_sep= | |
795ca3e5 AK |
919 | # The variables have the same names as the options, with |
920 | # dashes changed to underlines. | |
ad6254c5 | 921 | cache_file=/dev/null |
795ca3e5 | 922 | exec_prefix=NONE |
795ca3e5 | 923 | no_create= |
795ca3e5 AK |
924 | no_recursion= |
925 | prefix=NONE | |
926 | program_prefix=NONE | |
927 | program_suffix=NONE | |
928 | program_transform_name=s,x,x, | |
929 | silent= | |
930 | site= | |
931 | srcdir= | |
795ca3e5 AK |
932 | verbose= |
933 | x_includes=NONE | |
934 | x_libraries=NONE | |
ad6254c5 AK |
935 | |
936 | # Installation directory options. | |
937 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
938 | # and all the variables that are supposed to be based on exec_prefix | |
939 | # by default will actually change. | |
940 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 941 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
942 | bindir='${exec_prefix}/bin' |
943 | sbindir='${exec_prefix}/sbin' | |
944 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
945 | datarootdir='${prefix}/share' |
946 | datadir='${datarootdir}' | |
795ca3e5 AK |
947 | sysconfdir='${prefix}/etc' |
948 | sharedstatedir='${prefix}/com' | |
949 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
950 | includedir='${prefix}/include' |
951 | oldincludedir='/usr/include' | |
7a197a62 AK |
952 | docdir='${datarootdir}/doc/${PACKAGE}' |
953 | infodir='${datarootdir}/info' | |
954 | htmldir='${docdir}' | |
955 | dvidir='${docdir}' | |
956 | pdfdir='${docdir}' | |
957 | psdir='${docdir}' | |
958 | libdir='${exec_prefix}/lib' | |
959 | localedir='${datarootdir}/locale' | |
960 | mandir='${datarootdir}/man' | |
795ca3e5 | 961 | |
795ca3e5 | 962 | ac_prev= |
7a197a62 | 963 | ac_dashdash= |
795ca3e5 AK |
964 | for ac_option |
965 | do | |
795ca3e5 AK |
966 | # If the previous option needs an argument, assign it. |
967 | if test -n "$ac_prev"; then | |
7a197a62 | 968 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
969 | ac_prev= |
970 | continue | |
971 | fi | |
972 | ||
7a197a62 AK |
973 | case $ac_option in |
974 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
975 | *) ac_optarg=yes ;; | |
976 | esac | |
795ca3e5 AK |
977 | |
978 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
979 | ||
7a197a62 AK |
980 | case $ac_dashdash$ac_option in |
981 | --) | |
982 | ac_dashdash=yes ;; | |
795ca3e5 AK |
983 | |
984 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
985 | ac_prev=bindir ;; | |
986 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 987 | bindir=$ac_optarg ;; |
795ca3e5 AK |
988 | |
989 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 990 | ac_prev=build_alias ;; |
795ca3e5 | 991 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 992 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
993 | |
994 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
995 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
996 | ac_prev=cache_file ;; | |
997 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
998 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
999 | cache_file=$ac_optarg ;; |
1000 | ||
1001 | --config-cache | -C) | |
1002 | cache_file=config.cache ;; | |
795ca3e5 | 1003 | |
7a197a62 | 1004 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 1005 | ac_prev=datadir ;; |
7a197a62 | 1006 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1007 | datadir=$ac_optarg ;; |
795ca3e5 | 1008 | |
7a197a62 AK |
1009 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1010 | | --dataroo | --dataro | --datar) | |
1011 | ac_prev=datarootdir ;; | |
1012 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1013 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1014 | datarootdir=$ac_optarg ;; | |
1015 | ||
795ca3e5 | 1016 | -disable-* | --disable-*) |
ec6a6fbe | 1017 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1018 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1019 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1020 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1021 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1022 | ac_useropt_orig=$ac_useropt |
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1024 | case $ac_user_opts in | |
1025 | *" | |
1026 | "enable_$ac_useropt" | |
1027 | "*) ;; | |
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
1030 | esac | |
1031 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1032 | |
1033 | -docdir | --docdir | --docdi | --doc | --do) | |
1034 | ac_prev=docdir ;; | |
1035 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1036 | docdir=$ac_optarg ;; | |
1037 | ||
1038 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1039 | ac_prev=dvidir ;; | |
1040 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1041 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1042 | |
1043 | -enable-* | --enable-*) | |
ec6a6fbe | 1044 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1045 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1046 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1047 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1048 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1049 | ac_useropt_orig=$ac_useropt |
1050 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1051 | case $ac_user_opts in | |
1052 | *" | |
1053 | "enable_$ac_useropt" | |
1054 | "*) ;; | |
1055 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1056 | ac_unrecognized_sep=', ';; | |
1057 | esac | |
1058 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1059 | |
1060 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1061 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1062 | | --exec | --exe | --ex) | |
1063 | ac_prev=exec_prefix ;; | |
1064 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1065 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1066 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1067 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1068 | |
1069 | -gas | --gas | --ga | --g) | |
1070 | # Obsolete; use --with-gas. | |
1071 | with_gas=yes ;; | |
1072 | ||
ad6254c5 AK |
1073 | -help | --help | --hel | --he | -h) |
1074 | ac_init_help=long ;; | |
1075 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1076 | ac_init_help=recursive ;; | |
1077 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1078 | ac_init_help=short ;; | |
795ca3e5 AK |
1079 | |
1080 | -host | --host | --hos | --ho) | |
ad6254c5 | 1081 | ac_prev=host_alias ;; |
795ca3e5 | 1082 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1083 | host_alias=$ac_optarg ;; |
795ca3e5 | 1084 | |
7a197a62 AK |
1085 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1086 | ac_prev=htmldir ;; | |
1087 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1088 | | --ht=*) | |
1089 | htmldir=$ac_optarg ;; | |
1090 | ||
795ca3e5 AK |
1091 | -includedir | --includedir | --includedi | --included | --include \ |
1092 | | --includ | --inclu | --incl | --inc) | |
1093 | ac_prev=includedir ;; | |
1094 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1095 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1096 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1097 | |
1098 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1099 | ac_prev=infodir ;; | |
1100 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1101 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1102 | |
1103 | -libdir | --libdir | --libdi | --libd) | |
1104 | ac_prev=libdir ;; | |
1105 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1106 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1107 | |
1108 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1109 | | --libexe | --libex | --libe) | |
1110 | ac_prev=libexecdir ;; | |
1111 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1112 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1113 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1114 | |
7a197a62 AK |
1115 | -localedir | --localedir | --localedi | --localed | --locale) |
1116 | ac_prev=localedir ;; | |
1117 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1118 | localedir=$ac_optarg ;; | |
1119 | ||
795ca3e5 | 1120 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1121 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1122 | ac_prev=localstatedir ;; |
1123 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1124 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1125 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1126 | |
1127 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1128 | ac_prev=mandir ;; | |
1129 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1130 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1131 | |
1132 | -nfp | --nfp | --nf) | |
1133 | # Obsolete; use --without-fp. | |
1134 | with_fp=no ;; | |
1135 | ||
1136 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1137 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1138 | no_create=yes ;; |
1139 | ||
1140 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1141 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1142 | no_recursion=yes ;; | |
1143 | ||
1144 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1145 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1146 | | --oldin | --oldi | --old | --ol | --o) | |
1147 | ac_prev=oldincludedir ;; | |
1148 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1149 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1150 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1151 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1152 | |
1153 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1154 | ac_prev=prefix ;; | |
1155 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1156 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1157 | |
1158 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1159 | | --program-pre | --program-pr | --program-p) | |
1160 | ac_prev=program_prefix ;; | |
1161 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1162 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1163 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1164 | |
1165 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1166 | | --program-suf | --program-su | --program-s) | |
1167 | ac_prev=program_suffix ;; | |
1168 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1169 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1170 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1171 | |
1172 | -program-transform-name | --program-transform-name \ | |
1173 | | --program-transform-nam | --program-transform-na \ | |
1174 | | --program-transform-n | --program-transform- \ | |
1175 | | --program-transform | --program-transfor \ | |
1176 | | --program-transfo | --program-transf \ | |
1177 | | --program-trans | --program-tran \ | |
1178 | | --progr-tra | --program-tr | --program-t) | |
1179 | ac_prev=program_transform_name ;; | |
1180 | -program-transform-name=* | --program-transform-name=* \ | |
1181 | | --program-transform-nam=* | --program-transform-na=* \ | |
1182 | | --program-transform-n=* | --program-transform-=* \ | |
1183 | | --program-transform=* | --program-transfor=* \ | |
1184 | | --program-transfo=* | --program-transf=* \ | |
1185 | | --program-trans=* | --program-tran=* \ | |
1186 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1187 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1188 | |
7a197a62 AK |
1189 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1190 | ac_prev=pdfdir ;; | |
1191 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1192 | pdfdir=$ac_optarg ;; | |
1193 | ||
1194 | -psdir | --psdir | --psdi | --psd | --ps) | |
1195 | ac_prev=psdir ;; | |
1196 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1197 | psdir=$ac_optarg ;; | |
1198 | ||
795ca3e5 AK |
1199 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1200 | | -silent | --silent | --silen | --sile | --sil) | |
1201 | silent=yes ;; | |
1202 | ||
1203 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1204 | ac_prev=sbindir ;; | |
1205 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1206 | | --sbi=* | --sb=*) | |
ad6254c5 | 1207 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1208 | |
1209 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1210 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1211 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1212 | | --sha | --sh) | |
1213 | ac_prev=sharedstatedir ;; | |
1214 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1215 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1216 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1217 | | --sha=* | --sh=*) | |
ad6254c5 | 1218 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1219 | |
1220 | -site | --site | --sit) | |
1221 | ac_prev=site ;; | |
1222 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1223 | site=$ac_optarg ;; |
795ca3e5 AK |
1224 | |
1225 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1226 | ac_prev=srcdir ;; | |
1227 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1228 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1229 | |
1230 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1231 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1232 | ac_prev=sysconfdir ;; | |
1233 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1234 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1235 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1236 | |
1237 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1238 | ac_prev=target_alias ;; |
795ca3e5 | 1239 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1240 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1241 | |
1242 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1243 | verbose=yes ;; | |
1244 | ||
ad6254c5 AK |
1245 | -version | --version | --versio | --versi | --vers | -V) |
1246 | ac_init_version=: ;; | |
795ca3e5 AK |
1247 | |
1248 | -with-* | --with-*) | |
ec6a6fbe | 1249 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1250 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1251 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1252 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1253 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1254 | ac_useropt_orig=$ac_useropt |
1255 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1256 | case $ac_user_opts in | |
1257 | *" | |
1258 | "with_$ac_useropt" | |
1259 | "*) ;; | |
1260 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1261 | ac_unrecognized_sep=', ';; | |
1262 | esac | |
1263 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1264 | |
1265 | -without-* | --without-*) | |
ec6a6fbe | 1266 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1267 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1268 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1269 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1270 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1271 | ac_useropt_orig=$ac_useropt |
1272 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1273 | case $ac_user_opts in | |
1274 | *" | |
1275 | "with_$ac_useropt" | |
1276 | "*) ;; | |
1277 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1278 | ac_unrecognized_sep=', ';; | |
1279 | esac | |
1280 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1281 | |
1282 | --x) | |
1283 | # Obsolete; use --with-x. | |
1284 | with_x=yes ;; | |
1285 | ||
1286 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1287 | | --x-incl | --x-inc | --x-in | --x-i) | |
1288 | ac_prev=x_includes ;; | |
1289 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1290 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1291 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1292 | |
1293 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1294 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1295 | ac_prev=x_libraries ;; | |
1296 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1297 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1298 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1299 | |
ec6a6fbe | 1300 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1301 | Try \`$0 --help' for more information." >&2 |
1302 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1303 | ;; |
1304 | ||
ad6254c5 AK |
1305 | *=*) |
1306 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1307 | # Reject names that are not valid shell variable names. | |
1308 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1309 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1310 | { (exit 1); exit 1; }; } |
7a197a62 | 1311 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1312 | export $ac_envvar ;; |
1313 | ||
795ca3e5 | 1314 | *) |
ad6254c5 | 1315 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1316 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1317 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1318 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1319 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1320 | ;; |
1321 | ||
1322 | esac | |
1323 | done | |
1324 | ||
1325 | if test -n "$ac_prev"; then | |
ad6254c5 | 1326 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1327 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1328 | { (exit 1); exit 1; }; } |
795ca3e5 | 1329 | fi |
795ca3e5 | 1330 | |
ec6a6fbe AK |
1331 | if test -n "$ac_unrecognized_opts"; then |
1332 | case $enable_option_checking in | |
1333 | no) ;; | |
1334 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1335 | { (exit 1); exit 1; }; } ;; | |
1336 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1337 | esac | |
1338 | fi | |
1339 | ||
1340 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1341 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1342 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1343 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1344 | libdir localedir mandir | |
795ca3e5 | 1345 | do |
7a197a62 | 1346 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1347 | # Remove trailing slashes. |
1348 | case $ac_val in | |
1349 | */ ) | |
1350 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1351 | eval $ac_var=\$ac_val;; | |
1352 | esac | |
1353 | # Be sure to have absolute directory names. | |
ad6254c5 | 1354 | case $ac_val in |
7a197a62 AK |
1355 | [\\/$]* | ?:[\\/]* ) continue;; |
1356 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1357 | esac |
ec6a6fbe | 1358 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1359 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1360 | done |
1361 | ||
ad6254c5 AK |
1362 | # There might be people who depend on the old broken behavior: `$host' |
1363 | # used to hold the argument of --host etc. | |
1364 | # FIXME: To remove some day. | |
1365 | build=$build_alias | |
1366 | host=$host_alias | |
1367 | target=$target_alias | |
1368 | ||
1369 | # FIXME: To remove some day. | |
1370 | if test "x$host_alias" != x; then | |
1371 | if test "x$build_alias" = x; then | |
1372 | cross_compiling=maybe | |
ec6a6fbe | 1373 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1374 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1375 | elif test "x$build_alias" != "x$host_alias"; then | |
1376 | cross_compiling=yes | |
1377 | fi | |
1378 | fi | |
8106cdd5 | 1379 | |
ad6254c5 AK |
1380 | ac_tool_prefix= |
1381 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1382 | ||
1383 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1384 | |
795ca3e5 | 1385 | |
7a197a62 AK |
1386 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1387 | ac_ls_di=`ls -di .` && | |
1388 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1389 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1390 | { (exit 1); exit 1; }; } |
1391 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1392 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1393 | { (exit 1); exit 1; }; } |
1394 | ||
1395 | ||
795ca3e5 AK |
1396 | # Find the source files, if location was not specified. |
1397 | if test -z "$srcdir"; then | |
1398 | ac_srcdir_defaulted=yes | |
7a197a62 | 1399 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1400 | ac_confdir=`$as_dirname -- "$as_myself" || |
1401 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1402 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1403 | X"$as_myself" : 'X\(//\)$' \| \ | |
1404 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1405 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1406 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1407 | s//\1/ | |
1408 | q | |
1409 | } | |
1410 | /^X\(\/\/\)[^/].*/{ | |
1411 | s//\1/ | |
1412 | q | |
1413 | } | |
1414 | /^X\(\/\/\)$/{ | |
1415 | s//\1/ | |
1416 | q | |
1417 | } | |
1418 | /^X\(\/\).*/{ | |
1419 | s//\1/ | |
1420 | q | |
1421 | } | |
1422 | s/.*/./; q'` | |
795ca3e5 | 1423 | srcdir=$ac_confdir |
7a197a62 | 1424 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1425 | srcdir=.. |
1426 | fi | |
1427 | else | |
1428 | ac_srcdir_defaulted=no | |
1429 | fi | |
7a197a62 AK |
1430 | if test ! -r "$srcdir/$ac_unique_file"; then |
1431 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1432 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1433 | { (exit 1); exit 1; }; } |
795ca3e5 | 1434 | fi |
7a197a62 AK |
1435 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1436 | ac_abs_confdir=`( | |
ec6a6fbe | 1437 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1438 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1439 | pwd)` |
1440 | # When building in place, set srcdir=. | |
1441 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1442 | srcdir=. | |
1443 | fi | |
1444 | # Remove unnecessary trailing slashes from srcdir. | |
1445 | # Double slashes in file names in object file debugging info | |
1446 | # mess up M-x gdb in Emacs. | |
1447 | case $srcdir in | |
1448 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1449 | esac | |
1450 | for ac_var in $ac_precious_vars; do | |
1451 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1452 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1453 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1454 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1455 | done | |
ad6254c5 AK |
1456 | |
1457 | # | |
1458 | # Report the --help message. | |
1459 | # | |
1460 | if test "$ac_init_help" = "long"; then | |
1461 | # Omit some internal or obsolete options to make the list less imposing. | |
1462 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1463 | cat <<_ACEOF | |
1464 | \`configure' configures this package to adapt to many kinds of systems. | |
1465 | ||
1466 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1467 | ||
1468 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1469 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1470 | ||
1471 | Defaults for the options are specified in brackets. | |
1472 | ||
1473 | Configuration: | |
1474 | -h, --help display this help and exit | |
1475 | --help=short display options specific to this package | |
1476 | --help=recursive display the short help of all the included packages | |
1477 | -V, --version display version information and exit | |
1478 | -q, --quiet, --silent do not print \`checking...' messages | |
1479 | --cache-file=FILE cache test results in FILE [disabled] | |
1480 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1481 | -n, --no-create do not create output files | |
1482 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1483 | ||
ad6254c5 AK |
1484 | Installation directories: |
1485 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1486 | [$ac_default_prefix] |
ad6254c5 | 1487 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1488 | [PREFIX] |
ad6254c5 AK |
1489 | |
1490 | By default, \`make install' will install all the files in | |
1491 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1492 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1493 | for instance \`--prefix=\$HOME'. | |
1494 | ||
1495 | For better control, use the options below. | |
1496 | ||
1497 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1498 | --bindir=DIR user executables [EPREFIX/bin] |
1499 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1500 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1501 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1502 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1503 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1504 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1505 | --includedir=DIR C header files [PREFIX/include] | |
1506 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1507 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1508 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1509 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1510 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1511 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1512 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1513 | --htmldir=DIR html documentation [DOCDIR] | |
1514 | --dvidir=DIR dvi documentation [DOCDIR] | |
1515 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1516 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1517 | _ACEOF |
1518 | ||
1519 | cat <<\_ACEOF | |
1520 | ||
1521 | System types: | |
1522 | --build=BUILD configure for building on BUILD [guessed] | |
1523 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1524 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1525 | _ACEOF | |
1526 | fi | |
1527 | ||
1528 | if test -n "$ac_init_help"; then | |
1529 | ||
1530 | cat <<\_ACEOF | |
1531 | ||
1532 | Optional Features: | |
ec6a6fbe | 1533 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1534 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1535 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1536 | --enable-static_link use this to link the tools to their libraries |
1537 | statically (default is dynamic linking | |
1538 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1539 | device-mapper is missing from the kernel |
71082be4 ZK |
1540 | --disable-readline disable readline support |
1541 | --enable-realtime enable realtime clock support | |
1542 | --enable-cmirrord enable the cluster mirror log daemon | |
1543 | --enable-debug enable debugging | |
1544 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1545 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1546 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1547 | --disable-devmapper disable LVM2 device-mapper interaction |
1548 | --enable-udev_sync enable synchronisation with udev processing | |
1549 | --enable-udev_rules install rule files needed for udev synchronisation | |
1550 | --enable-compat enable support for old device-mapper versions | |
1551 | --enable-units-compat enable output compatibility with old versions that | |
1552 | that do not use KiB-style unit suffixes | |
1553 | --disable-driver disable calls to device-mapper in the kernel | |
1554 | --disable-o_direct disable O_DIRECT | |
1555 | --enable-applib build application library | |
1556 | --enable-cmdlib build shared command library | |
1557 | --enable-pkgconfig install pkgconfig support | |
1558 | --enable-write_install install user writable files | |
1559 | --disable-fsadm disable fsadm | |
1560 | --enable-dmeventd enable the device-mapper event daemon | |
1561 | --disable-selinux disable selinux support | |
1562 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1563 | |
1564 | Optional Packages: | |
1565 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1566 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
71082be4 ZK |
1567 | --with-user=USER set the owner of installed files [USER=] |
1568 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1569 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1570 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1571 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
ad6254c5 | 1572 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
71082be4 | 1573 | [TYPE=internal] |
ad6254c5 | 1574 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
71082be4 ZK |
1575 | [TYPE=internal] |
1576 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none | |
1577 | [TYPE=internal] | |
1578 | --with-snapshots=TYPE snapshot support: internal/shared/none | |
1579 | [TYPE=internal] | |
1580 | --with-mirrors=TYPE mirror support: internal/shared/none | |
1581 | [TYPE=internal] | |
1582 | --with-replicators=TYPE replicator support: internal/shared/none | |
1583 | [TYPE=none] | |
1584 | --with-clvmd=TYPE build cluster LVM Daemon | |
8c222979 | 1585 | The following cluster manager combinations are valid: |
a946372e AK |
1586 | * cman,gulm (RHEL4 or equivalent) |
1587 | * cman (RHEL5 or equivalent) | |
1588 | * cman,corosync,openais (or selection of them) | |
1091650a | 1589 | * singlenode (localhost only) |
a946372e AK |
1590 | * all (autodetect) |
1591 | * none (disable build) | |
71082be4 | 1592 | [TYPE=none] |
8c4e8a18 FDN |
1593 | --with-clvmd-pidfile=PATH |
1594 | clvmd pidfile [/var/run/clvmd.pid] | |
71082be4 ZK |
1595 | --with-cmirrord-pidfile=PATH |
1596 | cmirrord pidfile [/var/run/cmirrord.pid] | |
d0191583 | 1597 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
71082be4 ZK |
1598 | --with-localedir=DIR translation files in DIR [PREFIX/share/locale] |
1599 | --with-confdir=DIR configuration files in DIR [/etc] | |
1600 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1601 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1602 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1603 | --with-udev-prefix=UPREFIX | |
1604 | install udev rule files in UPREFIX [EPREFIX] | |
78ce7acc | 1605 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
71082be4 ZK |
1606 | --with-dmeventd-pidfile=PATH |
1607 | dmeventd pidfile [/var/run/dmeventd.pid] | |
1608 | --with-dmeventd-path=PATH | |
1609 | dmeventd path [EPREFIX/sbin/dmeventd] | |
8bae0a1e | 1610 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 ZK |
1611 | --with-default-system-dir=DIR |
1612 | default LVM system directory [/etc/lvm] | |
1613 | --with-default-archive-subdir=SUBDIR | |
1614 | default metadata archive subdir [archive] | |
1615 | --with-default-backup-subdir=SUBDIR | |
1616 | default metadata backup subdir [backup] | |
1617 | --with-default-cache-subdir=SUBDIR | |
1618 | default metadata cache subdir [cache] | |
1619 | --with-default-locking-dir=DIR | |
1620 | default locking directory [/var/lock/lvm] | |
fea55602 DW |
1621 | --with-default-data-alignment=NUM |
1622 | set the default data alignment in MiB [1] | |
71082be4 | 1623 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1624 | |
1625 | Some influential environment variables: | |
1626 | CC C compiler command | |
1627 | CFLAGS C compiler flags | |
1628 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1629 | nonstandard directory <lib dir> | |
25fbec5b | 1630 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1631 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1632 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1633 | CPP C preprocessor |
e2997b73 | 1634 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1635 | PKGCONFIGINIT_CFLAGS |
1636 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1637 | PKGCONFIGINIT_LIBS | |
1638 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1639 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1640 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1641 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1642 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1643 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1644 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1645 | COROSYNC_CFLAGS | |
1646 | C compiler flags for COROSYNC, overriding pkg-config | |
1647 | COROSYNC_LIBS | |
1648 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1649 | QUORUM_CFLAGS |
1650 | C compiler flags for QUORUM, overriding pkg-config | |
1651 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1652 | SALCK_CFLAGS |
1653 | C compiler flags for SALCK, overriding pkg-config | |
1654 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1655 | CONFDB_CFLAGS |
1656 | C compiler flags for CONFDB, overriding pkg-config | |
1657 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1658 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1659 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1660 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1661 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1662 | SACKPT_CFLAGS |
1663 | C compiler flags for SACKPT, overriding pkg-config | |
1664 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1665 | |
1666 | Use these variables to override the choices made by `configure' or to help | |
1667 | it to find libraries and programs with nonstandard names/locations. | |
1668 | ||
1669 | _ACEOF | |
7a197a62 | 1670 | ac_status=$? |
ad6254c5 AK |
1671 | fi |
1672 | ||
1673 | if test "$ac_init_help" = "recursive"; then | |
1674 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1675 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1676 | test -d "$ac_dir" || |
1677 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1678 | continue | |
ad6254c5 AK |
1679 | ac_builddir=. |
1680 | ||
7a197a62 AK |
1681 | case "$ac_dir" in |
1682 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1683 | *) | |
ec6a6fbe | 1684 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1685 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1686 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1687 | case $ac_top_builddir_sub in |
1688 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1689 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1690 | esac ;; | |
1691 | esac | |
1692 | ac_abs_top_builddir=$ac_pwd | |
1693 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1694 | # for backward compatibility: | |
1695 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1696 | |
1697 | case $srcdir in | |
7a197a62 | 1698 | .) # We are building in place. |
ad6254c5 | 1699 | ac_srcdir=. |
7a197a62 AK |
1700 | ac_top_srcdir=$ac_top_builddir_sub |
1701 | ac_abs_top_srcdir=$ac_pwd ;; | |
1702 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1703 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1704 | ac_top_srcdir=$srcdir |
1705 | ac_abs_top_srcdir=$srcdir ;; | |
1706 | *) # Relative name. | |
1707 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1708 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1709 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1710 | esac |
7a197a62 AK |
1711 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1712 | ||
1713 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1714 | # Check for guested configure. | |
1715 | if test -f "$ac_srcdir/configure.gnu"; then | |
1716 | echo && | |
1717 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1718 | elif test -f "$ac_srcdir/configure"; then | |
1719 | echo && | |
1720 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1721 | else |
ec6a6fbe | 1722 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1723 | fi || ac_status=$? |
1724 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1725 | done |
1726 | fi | |
1727 | ||
7a197a62 | 1728 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1729 | if $ac_init_version; then |
1730 | cat <<\_ACEOF | |
7a197a62 | 1731 | configure |
ec6a6fbe | 1732 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1733 | |
7a197a62 | 1734 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1735 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1736 | This configure script is free software; the Free Software Foundation |
1737 | gives unlimited permission to copy, distribute and modify it. | |
1738 | _ACEOF | |
7a197a62 | 1739 | exit |
ad6254c5 | 1740 | fi |
7a197a62 | 1741 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1742 | This file contains any messages produced by compilers while |
1743 | running configure, to aid debugging if configure makes a mistake. | |
1744 | ||
1745 | It was created by $as_me, which was | |
ec6a6fbe | 1746 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1747 | |
1748 | $ $0 $@ | |
1749 | ||
1750 | _ACEOF | |
7a197a62 | 1751 | exec 5>>config.log |
ad6254c5 AK |
1752 | { |
1753 | cat <<_ASUNAME | |
1754 | ## --------- ## | |
1755 | ## Platform. ## | |
1756 | ## --------- ## | |
1757 | ||
1758 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1759 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1760 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1761 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1762 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1763 | ||
1764 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1765 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1766 | ||
1767 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1768 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1769 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1770 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1771 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1772 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1773 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1774 | ||
1775 | _ASUNAME | |
1776 | ||
1777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1778 | for as_dir in $PATH | |
1779 | do | |
1780 | IFS=$as_save_IFS | |
1781 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1782 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1783 | done |
7a197a62 | 1784 | IFS=$as_save_IFS |
ad6254c5 AK |
1785 | |
1786 | } >&5 | |
1787 | ||
1788 | cat >&5 <<_ACEOF | |
1789 | ||
1790 | ||
1791 | ## ----------- ## | |
1792 | ## Core tests. ## | |
1793 | ## ----------- ## | |
1794 | ||
1795 | _ACEOF | |
1796 | ||
1797 | ||
1798 | # Keep a trace of the command line. | |
1799 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1800 | # Strip out --silent because we don't want to record it for future runs. | |
1801 | # Also quote any args containing shell meta-characters. | |
1802 | # Make two passes to allow for proper duplicate-argument suppression. | |
1803 | ac_configure_args= | |
1804 | ac_configure_args0= | |
1805 | ac_configure_args1= | |
ad6254c5 AK |
1806 | ac_must_keep_next=false |
1807 | for ac_pass in 1 2 | |
1808 | do | |
1809 | for ac_arg | |
1810 | do | |
1811 | case $ac_arg in | |
1812 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1813 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1814 | | -silent | --silent | --silen | --sile | --sil) | |
1815 | continue ;; | |
7a197a62 | 1816 | *\'*) |
ec6a6fbe | 1817 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1818 | esac |
1819 | case $ac_pass in | |
1820 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1821 | 2) | |
1822 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1823 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1824 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1825 | else |
8a2fc586 AK |
1826 | case $ac_arg in |
1827 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1828 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1829 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1830 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1831 | case "$ac_configure_args0 " in | |
1832 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1833 | esac | |
1834 | ;; | |
1835 | -* ) ac_must_keep_next=true ;; | |
1836 | esac | |
ad6254c5 | 1837 | fi |
7a197a62 | 1838 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1839 | ;; |
1840 | esac | |
1841 | done | |
1842 | done | |
1843 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1844 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1845 | ||
1846 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1847 | # config.log. We remove comments because anyway the quotes in there | |
1848 | # would cause problems or look ugly. | |
7a197a62 AK |
1849 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1850 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1851 | trap 'exit_status=$? |
1852 | # Save into config.log some information that might help in debugging. | |
1853 | { | |
1854 | echo | |
1855 | ||
1856 | cat <<\_ASBOX | |
1857 | ## ---------------- ## | |
1858 | ## Cache variables. ## | |
1859 | ## ---------------- ## | |
1860 | _ASBOX | |
1861 | echo | |
1862 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1863 | ( |
1864 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1865 | eval ac_val=\$$ac_var | |
1866 | case $ac_val in #( | |
1867 | *${as_nl}*) | |
1868 | case $ac_var in #( | |
ec6a6fbe AK |
1869 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1870 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1871 | esac |
1872 | case $ac_var in #( | |
1873 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1874 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1875 | *) $as_unset $ac_var ;; |
1876 | esac ;; | |
1877 | esac | |
1878 | done | |
ad6254c5 | 1879 | (set) 2>&1 | |
7a197a62 AK |
1880 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1881 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1882 | sed -n \ |
7a197a62 AK |
1883 | "s/'\''/'\''\\\\'\'''\''/g; |
1884 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1885 | ;; #( | |
ad6254c5 | 1886 | *) |
7a197a62 | 1887 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1888 | ;; |
7a197a62 AK |
1889 | esac | |
1890 | sort | |
1891 | ) | |
ad6254c5 AK |
1892 | echo |
1893 | ||
1894 | cat <<\_ASBOX | |
1895 | ## ----------------- ## | |
1896 | ## Output variables. ## | |
1897 | ## ----------------- ## | |
1898 | _ASBOX | |
1899 | echo | |
1900 | for ac_var in $ac_subst_vars | |
1901 | do | |
7a197a62 AK |
1902 | eval ac_val=\$$ac_var |
1903 | case $ac_val in | |
ec6a6fbe | 1904 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1905 | esac |
ec6a6fbe | 1906 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1907 | done | sort |
1908 | echo | |
1909 | ||
1910 | if test -n "$ac_subst_files"; then | |
1911 | cat <<\_ASBOX | |
7a197a62 AK |
1912 | ## ------------------- ## |
1913 | ## File substitutions. ## | |
1914 | ## ------------------- ## | |
ad6254c5 AK |
1915 | _ASBOX |
1916 | echo | |
1917 | for ac_var in $ac_subst_files | |
1918 | do | |
7a197a62 AK |
1919 | eval ac_val=\$$ac_var |
1920 | case $ac_val in | |
ec6a6fbe | 1921 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1922 | esac |
ec6a6fbe | 1923 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1924 | done | sort |
1925 | echo | |
1926 | fi | |
1927 | ||
1928 | if test -s confdefs.h; then | |
1929 | cat <<\_ASBOX | |
1930 | ## ----------- ## | |
1931 | ## confdefs.h. ## | |
1932 | ## ----------- ## | |
1933 | _ASBOX | |
1934 | echo | |
7a197a62 | 1935 | cat confdefs.h |
ad6254c5 AK |
1936 | echo |
1937 | fi | |
1938 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1939 | $as_echo "$as_me: caught signal $ac_signal" |
1940 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1941 | } >&5 |
7a197a62 AK |
1942 | rm -f core *.core core.conftest.* && |
1943 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1944 | exit $exit_status |
7a197a62 | 1945 | ' 0 |
ad6254c5 AK |
1946 | for ac_signal in 1 2 13 15; do |
1947 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1948 | done | |
1949 | ac_signal=0 | |
1950 | ||
1951 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1952 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1953 | |
1954 | # Predefined preprocessor variables. | |
1955 | ||
1956 | cat >>confdefs.h <<_ACEOF | |
1957 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1958 | _ACEOF | |
1959 | ||
1960 | ||
1961 | cat >>confdefs.h <<_ACEOF | |
1962 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1963 | _ACEOF | |
1964 | ||
1965 | ||
1966 | cat >>confdefs.h <<_ACEOF | |
1967 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1968 | _ACEOF | |
8106cdd5 | 1969 | |
ad6254c5 AK |
1970 | |
1971 | cat >>confdefs.h <<_ACEOF | |
1972 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1973 | _ACEOF | |
1974 | ||
1975 | ||
1976 | cat >>confdefs.h <<_ACEOF | |
1977 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1978 | _ACEOF | |
1979 | ||
1980 | ||
1981 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1982 | # Prefer an explicitly selected file to automatically selected ones. |
1983 | ac_site_file1=NONE | |
1984 | ac_site_file2=NONE | |
7a197a62 | 1985 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1986 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1987 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1988 | ac_site_file1=$prefix/share/config.site |
1989 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1990 | else |
ec6a6fbe AK |
1991 | ac_site_file1=$ac_default_prefix/share/config.site |
1992 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1993 | fi |
ec6a6fbe | 1994 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1995 | do |
ec6a6fbe | 1996 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1997 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1998 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1999 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 2000 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
2001 | . "$ac_site_file" |
2002 | fi | |
2003 | done | |
2004 | ||
2005 | if test -r "$cache_file"; then | |
ad6254c5 AK |
2006 | # Some versions of bash will fail to source /dev/null (special |
2007 | # files actually), so we avoid doing that. | |
2008 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
2009 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2010 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 2011 | case $cache_file in |
7a197a62 AK |
2012 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2013 | *) . "./$cache_file";; | |
ad6254c5 AK |
2014 | esac |
2015 | fi | |
795ca3e5 | 2016 | else |
ec6a6fbe AK |
2017 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2018 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
2019 | >$cache_file |
2020 | fi | |
2021 | ||
2022 | # Check that the precious variables saved in the cache have kept the same | |
2023 | # value. | |
2024 | ac_cache_corrupted=false | |
7a197a62 | 2025 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2026 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2027 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2028 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2029 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2030 | case $ac_old_set,$ac_new_set in |
2031 | set,) | |
ec6a6fbe AK |
2032 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2033 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2034 | ac_cache_corrupted=: ;; |
2035 | ,set) | |
ec6a6fbe AK |
2036 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2037 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2038 | ac_cache_corrupted=: ;; |
2039 | ,);; | |
2040 | *) | |
2041 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2042 | # differences in whitespace do not lead to failure. |
2043 | ac_old_val_w=`echo x $ac_old_val` | |
2044 | ac_new_val_w=`echo x $ac_new_val` | |
2045 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2046 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2047 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2048 | ac_cache_corrupted=: | |
2049 | else | |
2050 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2051 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2052 | eval $ac_var=\$ac_old_val | |
2053 | fi | |
2054 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2055 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2056 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2057 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2058 | fi;; |
2059 | esac | |
2060 | # Pass precious variables to config.status. | |
2061 | if test "$ac_new_set" = set; then | |
2062 | case $ac_new_val in | |
ec6a6fbe | 2063 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2064 | *) ac_arg=$ac_var=$ac_new_val ;; |
2065 | esac | |
2066 | case " $ac_configure_args " in | |
2067 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2068 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2069 | esac | |
2070 | fi | |
2071 | done | |
2072 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2073 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2074 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2075 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2076 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2077 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2078 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2079 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2080 | fi |
2081 | ||
ad6254c5 AK |
2082 | |
2083 | ||
2084 | ||
2085 | ||
2086 | ||
2087 | ||
2088 | ||
2089 | ||
2090 | ||
2091 | ||
2092 | ||
2093 | ||
2094 | ||
2095 | ||
2096 | ||
2097 | ||
7a197a62 AK |
2098 | ac_ext=c |
2099 | ac_cpp='$CPP $CPPFLAGS' | |
2100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2103 | |
795ca3e5 AK |
2104 | |
2105 | ||
7a197a62 | 2106 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2107 | |
2108 | ||
80992638 | 2109 | ################################################################################ |
795ca3e5 | 2110 | ac_aux_dir= |
7a197a62 AK |
2111 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2112 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2113 | ac_aux_dir=$ac_dir |
2114 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2115 | break | |
7a197a62 | 2116 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2117 | ac_aux_dir=$ac_dir |
2118 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2119 | break | |
7a197a62 | 2120 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2121 | ac_aux_dir=$ac_dir |
2122 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2123 | break | |
795ca3e5 AK |
2124 | fi |
2125 | done | |
2126 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2127 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2128 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2129 | { (exit 1); exit 1; }; } |
795ca3e5 | 2130 | fi |
7a197a62 AK |
2131 | |
2132 | # These three variables are undocumented and unsupported, | |
2133 | # and are intended to be withdrawn in a future Autoconf release. | |
2134 | # They can cause serious problems if a builder's source tree is in a directory | |
2135 | # whose full name contains unusual characters. | |
2136 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2137 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2138 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2139 | ||
8ce0cbda AK |
2140 | |
2141 | ||
ad6254c5 | 2142 | ################################################################################ |
8ce0cbda | 2143 | # Make sure we can run config.sub. |
7a197a62 | 2144 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2145 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2146 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2147 | { (exit 1); exit 1; }; } |
2148 | ||
ec6a6fbe AK |
2149 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2150 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2151 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2152 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2153 | else |
7a197a62 AK |
2154 | ac_build_alias=$build_alias |
2155 | test "x$ac_build_alias" = x && | |
2156 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2157 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2158 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2159 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2160 | { (exit 1); exit 1; }; } |
7a197a62 | 2161 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2162 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2163 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2164 | { (exit 1); exit 1; }; } |
2165 | ||
2166 | fi | |
ec6a6fbe AK |
2167 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2168 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2169 | case $ac_cv_build in |
2170 | *-*-*) ;; | |
ec6a6fbe AK |
2171 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2172 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2173 | { (exit 1); exit 1; }; };; |
2174 | esac | |
ad6254c5 | 2175 | build=$ac_cv_build |
7a197a62 AK |
2176 | ac_save_IFS=$IFS; IFS='-' |
2177 | set x $ac_cv_build | |
2178 | shift | |
2179 | build_cpu=$1 | |
2180 | build_vendor=$2 | |
2181 | shift; shift | |
2182 | # Remember, the first character of IFS is used to create $*, | |
2183 | # except with old shells: | |
2184 | build_os=$* | |
2185 | IFS=$ac_save_IFS | |
2186 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2187 | |
2188 | ||
ec6a6fbe AK |
2189 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2190 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2191 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2192 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2193 | else |
7a197a62 AK |
2194 | if test "x$host_alias" = x; then |
2195 | ac_cv_host=$ac_cv_build | |
2196 | else | |
2197 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2198 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2199 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2200 | { (exit 1); exit 1; }; } |
7a197a62 | 2201 | fi |
ad6254c5 AK |
2202 | |
2203 | fi | |
ec6a6fbe AK |
2204 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2205 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2206 | case $ac_cv_host in |
2207 | *-*-*) ;; | |
ec6a6fbe AK |
2208 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2209 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2210 | { (exit 1); exit 1; }; };; |
2211 | esac | |
ad6254c5 | 2212 | host=$ac_cv_host |
7a197a62 AK |
2213 | ac_save_IFS=$IFS; IFS='-' |
2214 | set x $ac_cv_host | |
2215 | shift | |
2216 | host_cpu=$1 | |
2217 | host_vendor=$2 | |
2218 | shift; shift | |
2219 | # Remember, the first character of IFS is used to create $*, | |
2220 | # except with old shells: | |
2221 | host_os=$* | |
2222 | IFS=$ac_save_IFS | |
2223 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2224 | |
2225 | ||
ec6a6fbe AK |
2226 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2227 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2228 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2229 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2230 | else |
7a197a62 AK |
2231 | if test "x$target_alias" = x; then |
2232 | ac_cv_target=$ac_cv_host | |
2233 | else | |
2234 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2235 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2236 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2237 | { (exit 1); exit 1; }; } |
7a197a62 | 2238 | fi |
8ce0cbda | 2239 | |
ad6254c5 | 2240 | fi |
ec6a6fbe AK |
2241 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2242 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2243 | case $ac_cv_target in |
2244 | *-*-*) ;; | |
ec6a6fbe AK |
2245 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2246 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2247 | { (exit 1); exit 1; }; };; |
2248 | esac | |
ad6254c5 | 2249 | target=$ac_cv_target |
7a197a62 AK |
2250 | ac_save_IFS=$IFS; IFS='-' |
2251 | set x $ac_cv_target | |
2252 | shift | |
2253 | target_cpu=$1 | |
2254 | target_vendor=$2 | |
2255 | shift; shift | |
2256 | # Remember, the first character of IFS is used to create $*, | |
2257 | # except with old shells: | |
2258 | target_os=$* | |
2259 | IFS=$ac_save_IFS | |
2260 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2261 | |
8ce0cbda | 2262 | |
ad6254c5 AK |
2263 | # The aliases save the names the user supplied, while $host etc. |
2264 | # will get canonicalized. | |
2265 | test -n "$target_alias" && | |
8ce0cbda AK |
2266 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2267 | NONENONEs,x,x, && | |
2268 | program_prefix=${target_alias}- | |
2269 | ||
8ce0cbda AK |
2270 | case "$host_os" in |
2271 | linux*) | |
7f54ef36 | 2272 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2273 | COPTIMISE_FLAG="-O2" |
2274 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2275 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2276 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2277 | LDDEPS="$LDDEPS .export.sym" | |
2278 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2279 | LIB_SUFFIX=so |
8ce0cbda AK |
2280 | DEVMAPPER=yes |
2281 | ODIRECT=yes | |
d0191583 | 2282 | DM_IOCTLS=yes |
8ce0cbda AK |
2283 | SELINUX=yes |
2284 | CLUSTER=internal | |
93bd259b | 2285 | FSADM=yes |
d0191583 | 2286 | ;; |
8ce0cbda AK |
2287 | darwin*) |
2288 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2289 | COPTIMISE_FLAG="-O2" | |
2290 | CLDFLAGS="$CLDFLAGS" | |
2291 | CLDWHOLEARCHIVE="-all_load" | |
2292 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2293 | LIB_SUFFIX=dylib |
a653923f | 2294 | DEVMAPPER=yes |
8ce0cbda | 2295 | ODIRECT=no |
d0191583 | 2296 | DM_IOCTLS=no |
8ce0cbda AK |
2297 | SELINUX=no |
2298 | CLUSTER=none | |
d0191583 JM |
2299 | FSADM=no |
2300 | ;; | |
8ce0cbda AK |
2301 | esac |
2302 | ||
80992638 | 2303 | ################################################################################ |
ec6a6fbe AK |
2304 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2305 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2306 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2307 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2308 | else |
2309 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2310 | for ac_i in 1 2 3 4 5 6 7; do | |
2311 | ac_script="$ac_script$as_nl$ac_script" | |
2312 | done | |
ec6a6fbe | 2313 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2314 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2315 | if test -z "$SED"; then |
5951ef33 | 2316 | ac_path_SED_found=false |
ec6a6fbe AK |
2317 | # Loop through the user's path and test for each of PROGNAME-LIST |
2318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2319 | for as_dir in $PATH |
2320 | do | |
2321 | IFS=$as_save_IFS | |
2322 | test -z "$as_dir" && as_dir=. | |
2323 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2324 | for ac_exec_ext in '' $ac_executable_extensions; do |
2325 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2326 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2327 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2328 | # Check for GNU $ac_path_SED |
2329 | case `"$ac_path_SED" --version 2>&1` in | |
2330 | *GNU*) | |
2331 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2332 | *) | |
2333 | ac_count=0 | |
ec6a6fbe | 2334 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2335 | while : |
2336 | do | |
2337 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2338 | mv "conftest.tmp" "conftest.in" | |
2339 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2340 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2341 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2342 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2343 | ac_count=`expr $ac_count + 1` | |
2344 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2345 | # Best one so far, save it but keep looking for a better one | |
2346 | ac_cv_path_SED="$ac_path_SED" | |
2347 | ac_path_SED_max=$ac_count | |
2348 | fi | |
2349 | # 10*(2^10) chars as input seems more than enough | |
2350 | test $ac_count -gt 10 && break | |
2351 | done | |
2352 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2353 | esac | |
2354 | ||
ec6a6fbe AK |
2355 | $ac_path_SED_found && break 3 |
2356 | done | |
5951ef33 AK |
2357 | done |
2358 | done | |
5951ef33 | 2359 | IFS=$as_save_IFS |
ec6a6fbe AK |
2360 | if test -z "$ac_cv_path_SED"; then |
2361 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2362 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2363 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2364 | fi |
5951ef33 AK |
2365 | else |
2366 | ac_cv_path_SED=$SED | |
2367 | fi | |
2368 | ||
2369 | fi | |
ec6a6fbe AK |
2370 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2371 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2372 | SED="$ac_cv_path_SED" |
2373 | rm -f conftest.sed | |
2374 | ||
ad6254c5 | 2375 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2376 | do |
ad6254c5 | 2377 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2378 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2379 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2380 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2381 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2382 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2383 | else |
2384 | if test -n "$AWK"; then | |
2385 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2386 | else | |
ad6254c5 AK |
2387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2388 | for as_dir in $PATH | |
2389 | do | |
2390 | IFS=$as_save_IFS | |
2391 | test -z "$as_dir" && as_dir=. | |
2392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2394 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2395 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2396 | break 2 |
2397 | fi | |
2398 | done | |
2399 | done | |
7a197a62 | 2400 | IFS=$as_save_IFS |
ad6254c5 | 2401 | |
795ca3e5 AK |
2402 | fi |
2403 | fi | |
ad6254c5 | 2404 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2405 | if test -n "$AWK"; then |
ec6a6fbe AK |
2406 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2407 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2408 | else |
ec6a6fbe AK |
2409 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2410 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2411 | fi |
2412 | ||
7a197a62 | 2413 | |
ad6254c5 AK |
2414 | test -n "$AWK" && break |
2415 | done | |
2416 | ||
2417 | ac_ext=c | |
2418 | ac_cpp='$CPP $CPPFLAGS' | |
2419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2422 | if test -n "$ac_tool_prefix"; then | |
2423 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2424 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2425 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2426 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2427 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2428 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2429 | else |
2430 | if test -n "$CC"; then | |
2431 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2432 | else | |
2433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2434 | for as_dir in $PATH | |
2435 | do | |
2436 | IFS=$as_save_IFS | |
2437 | test -z "$as_dir" && as_dir=. | |
2438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2440 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2441 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2442 | break 2 |
2443 | fi | |
2444 | done | |
8106cdd5 | 2445 | done |
7a197a62 | 2446 | IFS=$as_save_IFS |
8106cdd5 | 2447 | |
ad6254c5 AK |
2448 | fi |
2449 | fi | |
2450 | CC=$ac_cv_prog_CC | |
2451 | if test -n "$CC"; then | |
ec6a6fbe AK |
2452 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2453 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2454 | else |
ec6a6fbe AK |
2455 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2456 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2457 | fi |
2458 | ||
7a197a62 | 2459 | |
ad6254c5 AK |
2460 | fi |
2461 | if test -z "$ac_cv_prog_CC"; then | |
2462 | ac_ct_CC=$CC | |
2463 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2464 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2465 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2466 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2467 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2468 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2469 | else |
2470 | if test -n "$ac_ct_CC"; then | |
2471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2472 | else | |
2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2474 | for as_dir in $PATH | |
2475 | do | |
2476 | IFS=$as_save_IFS | |
2477 | test -z "$as_dir" && as_dir=. | |
2478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2480 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2481 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2482 | break 2 |
2483 | fi | |
2484 | done | |
2485 | done | |
7a197a62 | 2486 | IFS=$as_save_IFS |
ad6254c5 AK |
2487 | |
2488 | fi | |
2489 | fi | |
2490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2491 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2492 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2493 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2494 | else |
ec6a6fbe AK |
2495 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2496 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2497 | fi |
2498 | ||
7a197a62 AK |
2499 | if test "x$ac_ct_CC" = x; then |
2500 | CC="" | |
2501 | else | |
2502 | case $cross_compiling:$ac_tool_warned in | |
2503 | yes:) | |
ec6a6fbe AK |
2504 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2505 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2506 | ac_tool_warned=yes ;; |
2507 | esac | |
2508 | CC=$ac_ct_CC | |
2509 | fi | |
ad6254c5 AK |
2510 | else |
2511 | CC="$ac_cv_prog_CC" | |
2512 | fi | |
2513 | ||
2514 | if test -z "$CC"; then | |
7a197a62 AK |
2515 | if test -n "$ac_tool_prefix"; then |
2516 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2517 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2518 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2519 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2520 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2521 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2522 | else |
2523 | if test -n "$CC"; then | |
2524 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2525 | else | |
ad6254c5 AK |
2526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2527 | for as_dir in $PATH | |
2528 | do | |
2529 | IFS=$as_save_IFS | |
2530 | test -z "$as_dir" && as_dir=. | |
2531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2533 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2534 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2535 | break 2 |
2536 | fi | |
2537 | done | |
2538 | done | |
7a197a62 | 2539 | IFS=$as_save_IFS |
ad6254c5 | 2540 | |
8106cdd5 AK |
2541 | fi |
2542 | fi | |
ad6254c5 | 2543 | CC=$ac_cv_prog_CC |
8106cdd5 | 2544 | if test -n "$CC"; then |
ec6a6fbe AK |
2545 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2546 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2547 | else |
ec6a6fbe AK |
2548 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2549 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2550 | fi |
2551 | ||
8106cdd5 | 2552 | |
7a197a62 | 2553 | fi |
ad6254c5 | 2554 | fi |
795ca3e5 AK |
2555 | if test -z "$CC"; then |
2556 | # Extract the first word of "cc", so it can be a program name with args. | |
2557 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2558 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2559 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2560 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2561 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2562 | else |
2563 | if test -n "$CC"; then | |
2564 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2565 | else | |
795ca3e5 | 2566 | ac_prog_rejected=no |
ad6254c5 AK |
2567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2568 | for as_dir in $PATH | |
2569 | do | |
2570 | IFS=$as_save_IFS | |
2571 | test -z "$as_dir" && as_dir=. | |
2572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2574 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2575 | ac_prog_rejected=yes | |
2576 | continue | |
2577 | fi | |
2578 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2579 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2580 | break 2 |
2581 | fi | |
2582 | done | |
2583 | done | |
7a197a62 | 2584 | IFS=$as_save_IFS |
ad6254c5 | 2585 | |
795ca3e5 AK |
2586 | if test $ac_prog_rejected = yes; then |
2587 | # We found a bogon in the path, so make sure we never use it. | |
2588 | set dummy $ac_cv_prog_CC | |
2589 | shift | |
ad6254c5 | 2590 | if test $# != 0; then |
795ca3e5 AK |
2591 | # We chose a different compiler from the bogus one. |
2592 | # However, it has the same basename, so the bogon will be chosen | |
2593 | # first if we set CC to just the basename; use the full file name. | |
2594 | shift | |
ad6254c5 | 2595 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2596 | fi |
2597 | fi | |
2598 | fi | |
2599 | fi | |
ad6254c5 | 2600 | CC=$ac_cv_prog_CC |
795ca3e5 | 2601 | if test -n "$CC"; then |
ec6a6fbe AK |
2602 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2603 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2604 | else |
ec6a6fbe AK |
2605 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2606 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2607 | fi |
2608 | ||
7a197a62 | 2609 | |
ad6254c5 AK |
2610 | fi |
2611 | if test -z "$CC"; then | |
2612 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2613 | for ac_prog in cl.exe |
ad6254c5 AK |
2614 | do |
2615 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2616 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2617 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2618 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2619 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2620 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2621 | else |
2622 | if test -n "$CC"; then | |
2623 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2624 | else | |
ad6254c5 AK |
2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2626 | for as_dir in $PATH | |
2627 | do | |
2628 | IFS=$as_save_IFS | |
2629 | test -z "$as_dir" && as_dir=. | |
2630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2632 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2633 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2634 | break 2 |
2635 | fi | |
2636 | done | |
2637 | done | |
7a197a62 | 2638 | IFS=$as_save_IFS |
ad6254c5 | 2639 | |
795ca3e5 AK |
2640 | fi |
2641 | fi | |
ad6254c5 | 2642 | CC=$ac_cv_prog_CC |
795ca3e5 | 2643 | if test -n "$CC"; then |
ec6a6fbe AK |
2644 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2645 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2646 | else |
ec6a6fbe AK |
2647 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2648 | $as_echo "no" >&6; } | |
795ca3e5 | 2649 | fi |
ad6254c5 | 2650 | |
7a197a62 | 2651 | |
ad6254c5 AK |
2652 | test -n "$CC" && break |
2653 | done | |
2654 | fi | |
2655 | if test -z "$CC"; then | |
2656 | ac_ct_CC=$CC | |
7a197a62 | 2657 | for ac_prog in cl.exe |
ad6254c5 AK |
2658 | do |
2659 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2660 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2661 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2662 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2663 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2664 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2665 | else |
2666 | if test -n "$ac_ct_CC"; then | |
2667 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2668 | else | |
2669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2670 | for as_dir in $PATH | |
2671 | do | |
2672 | IFS=$as_save_IFS | |
2673 | test -z "$as_dir" && as_dir=. | |
2674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2676 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2677 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2678 | break 2 |
795ca3e5 | 2679 | fi |
ad6254c5 AK |
2680 | done |
2681 | done | |
7a197a62 | 2682 | IFS=$as_save_IFS |
ad6254c5 AK |
2683 | |
2684 | fi | |
2685 | fi | |
2686 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2687 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2688 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2689 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2690 | else |
ec6a6fbe AK |
2691 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2692 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2693 | fi |
2694 | ||
7a197a62 | 2695 | |
ad6254c5 AK |
2696 | test -n "$ac_ct_CC" && break |
2697 | done | |
795ca3e5 | 2698 | |
7a197a62 AK |
2699 | if test "x$ac_ct_CC" = x; then |
2700 | CC="" | |
2701 | else | |
2702 | case $cross_compiling:$ac_tool_warned in | |
2703 | yes:) | |
ec6a6fbe AK |
2704 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2705 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2706 | ac_tool_warned=yes ;; |
2707 | esac | |
2708 | CC=$ac_ct_CC | |
2709 | fi | |
ad6254c5 AK |
2710 | fi |
2711 | ||
2712 | fi | |
2713 | ||
2714 | ||
ec6a6fbe AK |
2715 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2716 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2717 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2718 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2719 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2720 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2721 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2722 | |
2723 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2724 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2725 | set X $ac_compile | |
2726 | ac_compiler=$2 | |
7a197a62 AK |
2727 | { (ac_try="$ac_compiler --version >&5" |
2728 | case "(($ac_try" in | |
2729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2730 | *) ac_try_echo=$ac_try;; | |
2731 | esac | |
ec6a6fbe AK |
2732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2733 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2734 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2735 | ac_status=$? |
ec6a6fbe | 2736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2737 | (exit $ac_status); } |
7a197a62 AK |
2738 | { (ac_try="$ac_compiler -v >&5" |
2739 | case "(($ac_try" in | |
2740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2741 | *) ac_try_echo=$ac_try;; | |
2742 | esac | |
ec6a6fbe AK |
2743 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2744 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2745 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2746 | ac_status=$? |
ec6a6fbe | 2747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2748 | (exit $ac_status); } |
7a197a62 AK |
2749 | { (ac_try="$ac_compiler -V >&5" |
2750 | case "(($ac_try" in | |
2751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2752 | *) ac_try_echo=$ac_try;; | |
2753 | esac | |
ec6a6fbe AK |
2754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2755 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2756 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2757 | ac_status=$? |
ec6a6fbe | 2758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2759 | (exit $ac_status); } |
2760 | ||
2761 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2762 | /* confdefs.h. */ |
2763 | _ACEOF | |
2764 | cat confdefs.h >>conftest.$ac_ext | |
2765 | cat >>conftest.$ac_ext <<_ACEOF | |
2766 | /* end confdefs.h. */ | |
2767 | ||
2768 | int | |
2769 | main () | |
2770 | { | |
2771 | ||
2772 | ; | |
2773 | return 0; | |
2774 | } | |
2775 | _ACEOF | |
2776 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2777 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2778 | # Try to create an executable without -o first, disregard a.out. |
2779 | # It will help us diagnose broken compilers, and finding out an intuition | |
2780 | # of exeext. | |
ec6a6fbe AK |
2781 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2782 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2783 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2784 | ||
2785 | # The possible output files: | |
2786 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2787 | ||
7a197a62 AK |
2788 | ac_rmfiles= |
2789 | for ac_file in $ac_files | |
2790 | do | |
2791 | case $ac_file in | |
ec6a6fbe | 2792 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2793 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2794 | esac | |
2795 | done | |
2796 | rm -f $ac_rmfiles | |
2797 | ||
2798 | if { (ac_try="$ac_link_default" | |
2799 | case "(($ac_try" in | |
2800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2801 | *) ac_try_echo=$ac_try;; | |
2802 | esac | |
ec6a6fbe AK |
2803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2804 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2805 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2806 | ac_status=$? |
ec6a6fbe | 2807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2808 | (exit $ac_status); }; then |
7a197a62 AK |
2809 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2810 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2811 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2812 | # so that the user can short-circuit this test for compilers unknown to | |
2813 | # Autoconf. | |
25fbec5b | 2814 | for ac_file in $ac_files '' |
ad6254c5 AK |
2815 | do |
2816 | test -f "$ac_file" || continue | |
2817 | case $ac_file in | |
ec6a6fbe | 2818 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2819 | ;; |
ad6254c5 | 2820 | [ab].out ) |
8a2fc586 AK |
2821 | # We found the default executable, but exeext='' is most |
2822 | # certainly right. | |
2823 | break;; | |
ad6254c5 | 2824 | *.* ) |
7a197a62 AK |
2825 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2826 | then :; else | |
2827 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2828 | fi | |
2829 | # We set ac_cv_exeext here because the later test for it is not | |
2830 | # safe: cross compilers may not add the suffix if given an `-o' | |
2831 | # argument, so we may need to know it at that point already. | |
2832 | # Even if this section looks crufty: it has the advantage of | |
2833 | # actually working. | |
8a2fc586 | 2834 | break;; |
ad6254c5 | 2835 | * ) |
8a2fc586 | 2836 | break;; |
ad6254c5 AK |
2837 | esac |
2838 | done | |
7a197a62 AK |
2839 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2840 | ||
ad6254c5 | 2841 | else |
25fbec5b AK |
2842 | ac_file='' |
2843 | fi | |
2844 | ||
ec6a6fbe AK |
2845 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2846 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2847 | if test -z "$ac_file"; then |
ec6a6fbe | 2848 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2849 | sed 's/^/| /' conftest.$ac_ext >&5 |
2850 | ||
ec6a6fbe AK |
2851 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2852 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2853 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2854 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2855 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2856 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2857 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2858 | fi |
2859 | ||
2860 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2861 | |
7a197a62 | 2862 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2863 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2864 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2865 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2866 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2867 | # If not cross compiling, check that we can run a simple program. | |
2868 | if test "$cross_compiling" != yes; then | |
2869 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2870 | { (case "(($ac_try" in |
2871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2872 | *) ac_try_echo=$ac_try;; | |
2873 | esac | |
ec6a6fbe AK |
2874 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2875 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2876 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2877 | ac_status=$? |
ec6a6fbe | 2878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2879 | (exit $ac_status); }; }; then |
2880 | cross_compiling=no | |
795ca3e5 | 2881 | else |
ad6254c5 AK |
2882 | if test "$cross_compiling" = maybe; then |
2883 | cross_compiling=yes | |
2884 | else | |
ec6a6fbe AK |
2885 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2886 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2887 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2888 | If you meant to cross compile, use \`--host'. |
2889 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2890 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2891 | If you meant to cross compile, use \`--host'. |
2892 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2893 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2894 | fi |
795ca3e5 | 2895 | fi |
80992638 | 2896 | fi |
ec6a6fbe AK |
2897 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2898 | $as_echo "yes" >&6; } | |
ad6254c5 | 2899 | |
ec6a6fbe | 2900 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2901 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2902 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2903 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2904 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2905 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2906 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2907 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2908 | |
ec6a6fbe AK |
2909 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2910 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2911 | if { (ac_try="$ac_link" |
2912 | case "(($ac_try" in | |
2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2914 | *) ac_try_echo=$ac_try;; | |
2915 | esac | |
ec6a6fbe AK |
2916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2917 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2918 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2919 | ac_status=$? |
ec6a6fbe | 2920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2921 | (exit $ac_status); }; then |
2922 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2923 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2924 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2925 | # `rm'. | |
2926 | for ac_file in conftest.exe conftest conftest.*; do | |
2927 | test -f "$ac_file" || continue | |
2928 | case $ac_file in | |
ec6a6fbe | 2929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2930 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2931 | break;; |
ad6254c5 AK |
2932 | * ) break;; |
2933 | esac | |
2934 | done | |
80992638 | 2935 | else |
ec6a6fbe AK |
2936 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2938 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2939 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2940 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2941 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2942 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2943 | fi |
2944 | ||
2945 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2946 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2947 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2948 | |
2949 | rm -f conftest.$ac_ext | |
2950 | EXEEXT=$ac_cv_exeext | |
2951 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2952 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2953 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2954 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2955 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2956 | else |
ad6254c5 | 2957 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2958 | /* confdefs.h. */ |
2959 | _ACEOF | |
2960 | cat confdefs.h >>conftest.$ac_ext | |
2961 | cat >>conftest.$ac_ext <<_ACEOF | |
2962 | /* end confdefs.h. */ | |
2963 | ||
2964 | int | |
2965 | main () | |
2966 | { | |
2967 | ||
2968 | ; | |
2969 | return 0; | |
2970 | } | |
2971 | _ACEOF | |
2972 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2973 | if { (ac_try="$ac_compile" |
2974 | case "(($ac_try" in | |
2975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2976 | *) ac_try_echo=$ac_try;; | |
2977 | esac | |
ec6a6fbe AK |
2978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2979 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2980 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2981 | ac_status=$? |
ec6a6fbe | 2982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2983 | (exit $ac_status); }; then |
7a197a62 AK |
2984 | for ac_file in conftest.o conftest.obj conftest.*; do |
2985 | test -f "$ac_file" || continue; | |
ad6254c5 | 2986 | case $ac_file in |
ec6a6fbe | 2987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2988 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2989 | break;; | |
2990 | esac | |
2991 | done | |
2992 | else | |
ec6a6fbe | 2993 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2994 | sed 's/^/| /' conftest.$ac_ext >&5 |
2995 | ||
ec6a6fbe AK |
2996 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2997 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2998 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2999 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3000 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 3001 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3002 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
3003 | fi |
3004 | ||
3005 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3006 | fi | |
ec6a6fbe AK |
3007 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3008 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
3009 | OBJEXT=$ac_cv_objext |
3010 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
3011 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3012 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 3013 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 3014 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3015 | else |
3016 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3017 | /* confdefs.h. */ |
3018 | _ACEOF | |
3019 | cat confdefs.h >>conftest.$ac_ext | |
3020 | cat >>conftest.$ac_ext <<_ACEOF | |
3021 | /* end confdefs.h. */ | |
3022 | ||
3023 | int | |
3024 | main () | |
3025 | { | |
3026 | #ifndef __GNUC__ | |
3027 | choke me | |
3028 | #endif | |
80992638 | 3029 | |
ad6254c5 AK |
3030 | ; |
3031 | return 0; | |
3032 | } | |
3033 | _ACEOF | |
3034 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3035 | if { (ac_try="$ac_compile" |
3036 | case "(($ac_try" in | |
3037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3038 | *) ac_try_echo=$ac_try;; | |
3039 | esac | |
ec6a6fbe AK |
3040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3041 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3042 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3043 | ac_status=$? |
8a2fc586 AK |
3044 | grep -v '^ *+' conftest.er1 >conftest.err |
3045 | rm -f conftest.er1 | |
3046 | cat conftest.err >&5 | |
ec6a6fbe | 3047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3048 | (exit $ac_status); } && { |
3049 | test -z "$ac_c_werror_flag" || | |
3050 | test ! -s conftest.err | |
3051 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3052 | ac_compiler_gnu=yes |
80992638 | 3053 | else |
ec6a6fbe | 3054 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3055 | sed 's/^/| /' conftest.$ac_ext >&5 |
3056 | ||
7a197a62 | 3057 | ac_compiler_gnu=no |
8106cdd5 | 3058 | fi |
7a197a62 AK |
3059 | |
3060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3061 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3062 | |
ad6254c5 | 3063 | fi |
ec6a6fbe AK |
3064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3065 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3066 | if test $ac_compiler_gnu = yes; then | |
3067 | GCC=yes | |
3068 | else | |
3069 | GCC= | |
3070 | fi | |
ad6254c5 AK |
3071 | ac_test_CFLAGS=${CFLAGS+set} |
3072 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3073 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3074 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3075 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3076 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3077 | else |
7a197a62 AK |
3078 | ac_save_c_werror_flag=$ac_c_werror_flag |
3079 | ac_c_werror_flag=yes | |
3080 | ac_cv_prog_cc_g=no | |
3081 | CFLAGS="-g" | |
3082 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3083 | /* confdefs.h. */ |
3084 | _ACEOF | |
3085 | cat confdefs.h >>conftest.$ac_ext | |
3086 | cat >>conftest.$ac_ext <<_ACEOF | |
3087 | /* end confdefs.h. */ | |
3088 | ||
3089 | int | |
3090 | main () | |
3091 | { | |
3092 | ||
3093 | ; | |
3094 | return 0; | |
3095 | } | |
3096 | _ACEOF | |
3097 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3098 | if { (ac_try="$ac_compile" |
3099 | case "(($ac_try" in | |
3100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3101 | *) ac_try_echo=$ac_try;; | |
3102 | esac | |
ec6a6fbe AK |
3103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3104 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3105 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3106 | ac_status=$? |
8a2fc586 AK |
3107 | grep -v '^ *+' conftest.er1 >conftest.err |
3108 | rm -f conftest.er1 | |
3109 | cat conftest.err >&5 | |
ec6a6fbe | 3110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3111 | (exit $ac_status); } && { |
3112 | test -z "$ac_c_werror_flag" || | |
3113 | test ! -s conftest.err | |
3114 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3115 | ac_cv_prog_cc_g=yes |
3116 | else | |
ec6a6fbe | 3117 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3118 | sed 's/^/| /' conftest.$ac_ext >&5 |
3119 | ||
3120 | CFLAGS="" | |
3121 | cat >conftest.$ac_ext <<_ACEOF | |
3122 | /* confdefs.h. */ | |
3123 | _ACEOF | |
3124 | cat confdefs.h >>conftest.$ac_ext | |
3125 | cat >>conftest.$ac_ext <<_ACEOF | |
3126 | /* end confdefs.h. */ | |
3127 | ||
3128 | int | |
3129 | main () | |
3130 | { | |
3131 | ||
3132 | ; | |
3133 | return 0; | |
3134 | } | |
3135 | _ACEOF | |
3136 | rm -f conftest.$ac_objext | |
3137 | if { (ac_try="$ac_compile" | |
3138 | case "(($ac_try" in | |
3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3140 | *) ac_try_echo=$ac_try;; | |
3141 | esac | |
ec6a6fbe AK |
3142 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3143 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3144 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3145 | ac_status=$? |
7a197a62 AK |
3146 | grep -v '^ *+' conftest.er1 >conftest.err |
3147 | rm -f conftest.er1 | |
3148 | cat conftest.err >&5 | |
ec6a6fbe | 3149 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3150 | (exit $ac_status); } && { |
3151 | test -z "$ac_c_werror_flag" || | |
3152 | test ! -s conftest.err | |
3153 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3154 | : |
3155 | else | |
ec6a6fbe | 3156 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3157 | sed 's/^/| /' conftest.$ac_ext >&5 |
3158 | ||
3159 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3160 | CFLAGS="-g" | |
3161 | cat >conftest.$ac_ext <<_ACEOF | |
3162 | /* confdefs.h. */ | |
3163 | _ACEOF | |
3164 | cat confdefs.h >>conftest.$ac_ext | |
3165 | cat >>conftest.$ac_ext <<_ACEOF | |
3166 | /* end confdefs.h. */ | |
3167 | ||
3168 | int | |
3169 | main () | |
3170 | { | |
3171 | ||
3172 | ; | |
3173 | return 0; | |
3174 | } | |
3175 | _ACEOF | |
3176 | rm -f conftest.$ac_objext | |
3177 | if { (ac_try="$ac_compile" | |
3178 | case "(($ac_try" in | |
3179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3180 | *) ac_try_echo=$ac_try;; | |
3181 | esac | |
ec6a6fbe AK |
3182 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3183 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3184 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3185 | ac_status=$? |
7a197a62 AK |
3186 | grep -v '^ *+' conftest.er1 >conftest.err |
3187 | rm -f conftest.er1 | |
3188 | cat conftest.err >&5 | |
ec6a6fbe | 3189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3190 | (exit $ac_status); } && { |
3191 | test -z "$ac_c_werror_flag" || | |
3192 | test ! -s conftest.err | |
3193 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3194 | ac_cv_prog_cc_g=yes |
3195 | else | |
ec6a6fbe | 3196 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3197 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3198 | |
7a197a62 AK |
3199 | |
3200 | fi | |
3201 | ||
3202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3203 | fi | |
3204 | ||
3205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3206 | fi |
7a197a62 AK |
3207 | |
3208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3209 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3210 | fi |
ec6a6fbe AK |
3211 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3212 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3213 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3214 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3215 | elif test $ac_cv_prog_cc_g = yes; then |
3216 | if test "$GCC" = yes; then | |
3217 | CFLAGS="-g -O2" | |
3218 | else | |
3219 | CFLAGS="-g" | |
3220 | fi | |
3221 | else | |
3222 | if test "$GCC" = yes; then | |
3223 | CFLAGS="-O2" | |
3224 | else | |
3225 | CFLAGS= | |
3226 | fi | |
3227 | fi | |
ec6a6fbe AK |
3228 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3229 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3230 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3231 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3232 | else |
7a197a62 | 3233 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3234 | ac_save_CC=$CC |
3235 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3236 | /* confdefs.h. */ |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
3241 | #include <stdarg.h> | |
3242 | #include <stdio.h> | |
3243 | #include <sys/types.h> | |
3244 | #include <sys/stat.h> | |
3245 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3246 | struct buf { int x; }; | |
3247 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3248 | static char *e (p, i) | |
3249 | char **p; | |
3250 | int i; | |
3251 | { | |
3252 | return p[i]; | |
3253 | } | |
3254 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3255 | { | |
3256 | char *s; | |
3257 | va_list v; | |
3258 | va_start (v,p); | |
3259 | s = g (p, va_arg (v,int)); | |
3260 | va_end (v); | |
3261 | return s; | |
3262 | } | |
8a2fc586 AK |
3263 | |
3264 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3265 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3266 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3267 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3268 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3269 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3270 | that's true only with -std. */ |
8a2fc586 AK |
3271 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3272 | ||
7a197a62 AK |
3273 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3274 | inside strings and character constants. */ | |
3275 | #define FOO(x) 'x' | |
3276 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3277 | ||
ad6254c5 AK |
3278 | int test (int i, double x); |
3279 | struct s1 {int (*f) (int a);}; | |
3280 | struct s2 {int (*f) (double a);}; | |
3281 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3282 | int argc; | |
3283 | char **argv; | |
3284 | int | |
3285 | main () | |
3286 | { | |
3287 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3288 | ; | |
3289 | return 0; | |
3290 | } | |
3291 | _ACEOF | |
7a197a62 AK |
3292 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3293 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3294 | do |
3295 | CC="$ac_save_CC $ac_arg" | |
3296 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3297 | if { (ac_try="$ac_compile" |
3298 | case "(($ac_try" in | |
3299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3300 | *) ac_try_echo=$ac_try;; | |
3301 | esac | |
ec6a6fbe AK |
3302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3303 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3304 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3305 | ac_status=$? |
8a2fc586 AK |
3306 | grep -v '^ *+' conftest.er1 >conftest.err |
3307 | rm -f conftest.er1 | |
3308 | cat conftest.err >&5 | |
ec6a6fbe | 3309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3310 | (exit $ac_status); } && { |
3311 | test -z "$ac_c_werror_flag" || | |
3312 | test ! -s conftest.err | |
3313 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3314 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3315 | else |
ec6a6fbe | 3316 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3317 | sed 's/^/| /' conftest.$ac_ext >&5 |
3318 | ||
7a197a62 | 3319 | |
ad6254c5 | 3320 | fi |
7a197a62 AK |
3321 | |
3322 | rm -f core conftest.err conftest.$ac_objext | |
3323 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3324 | done |
7a197a62 | 3325 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3326 | CC=$ac_save_CC |
3327 | ||
3328 | fi | |
7a197a62 AK |
3329 | # AC_CACHE_VAL |
3330 | case "x$ac_cv_prog_cc_c89" in | |
3331 | x) | |
ec6a6fbe AK |
3332 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3333 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3334 | xno) |
ec6a6fbe AK |
3335 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3336 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3337 | *) |
7a197a62 | 3338 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3339 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3340 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3341 | esac |
3342 | ||
ad6254c5 | 3343 | |
ad6254c5 AK |
3344 | ac_ext=c |
3345 | ac_cpp='$CPP $CPPFLAGS' | |
3346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3349 | |
d0191583 JM |
3350 | |
3351 | ||
3352 | ac_ext=c | |
3353 | ac_cpp='$CPP $CPPFLAGS' | |
3354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3357 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3358 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3359 | # On Suns, sometimes $CPP names a directory. |
3360 | if test -n "$CPP" && test -d "$CPP"; then | |
3361 | CPP= | |
3362 | fi | |
3363 | if test -z "$CPP"; then | |
3364 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3365 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3366 | else |
d0191583 JM |
3367 | # Double quotes because CPP needs to be expanded |
3368 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3369 | do | |
3370 | ac_preproc_ok=false | |
3371 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3372 | do |
d0191583 JM |
3373 | # Use a header file that comes with gcc, so configuring glibc |
3374 | # with a fresh cross-compiler works. | |
3375 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3376 | # <limits.h> exists even on freestanding compilers. | |
3377 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3378 | # not just through cpp. "Syntax error" is here to catch this case. | |
3379 | cat >conftest.$ac_ext <<_ACEOF | |
3380 | /* confdefs.h. */ | |
3381 | _ACEOF | |
3382 | cat confdefs.h >>conftest.$ac_ext | |
3383 | cat >>conftest.$ac_ext <<_ACEOF | |
3384 | /* end confdefs.h. */ | |
3385 | #ifdef __STDC__ | |
3386 | # include <limits.h> | |
3387 | #else | |
3388 | # include <assert.h> | |
3389 | #endif | |
3390 | Syntax error | |
3391 | _ACEOF | |
3392 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3393 | case "(($ac_try" in | |
3394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3395 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3396 | esac |
ec6a6fbe AK |
3397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3398 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3399 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3400 | ac_status=$? | |
3401 | grep -v '^ *+' conftest.er1 >conftest.err | |
3402 | rm -f conftest.er1 | |
3403 | cat conftest.err >&5 | |
ec6a6fbe | 3404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3405 | (exit $ac_status); } >/dev/null && { |
3406 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3407 | test ! -s conftest.err | |
3408 | }; then | |
3409 | : | |
3410 | else | |
ec6a6fbe | 3411 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3412 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3413 | |
d0191583 JM |
3414 | # Broken: fails on valid input. |
3415 | continue | |
795ca3e5 | 3416 | fi |
795ca3e5 | 3417 | |
d0191583 | 3418 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3419 | |
d0191583 JM |
3420 | # OK, works on sane cases. Now check whether nonexistent headers |
3421 | # can be detected and how. | |
3422 | cat >conftest.$ac_ext <<_ACEOF | |
3423 | /* confdefs.h. */ | |
3424 | _ACEOF | |
3425 | cat confdefs.h >>conftest.$ac_ext | |
3426 | cat >>conftest.$ac_ext <<_ACEOF | |
3427 | /* end confdefs.h. */ | |
3428 | #include <ac_nonexistent.h> | |
3429 | _ACEOF | |
3430 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3431 | case "(($ac_try" in | |
3432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3433 | *) ac_try_echo=$ac_try;; | |
3434 | esac | |
ec6a6fbe AK |
3435 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3436 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3437 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3438 | ac_status=$? | |
3439 | grep -v '^ *+' conftest.er1 >conftest.err | |
3440 | rm -f conftest.er1 | |
3441 | cat conftest.err >&5 | |
ec6a6fbe | 3442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3443 | (exit $ac_status); } >/dev/null && { |
3444 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3445 | test ! -s conftest.err | |
3446 | }; then | |
3447 | # Broken: success on invalid input. | |
3448 | continue | |
3449 | else | |
ec6a6fbe | 3450 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3451 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3452 | |
d0191583 JM |
3453 | # Passes both tests. |
3454 | ac_preproc_ok=: | |
3455 | break | |
3456 | fi | |
795ca3e5 | 3457 | |
d0191583 JM |
3458 | rm -f conftest.err conftest.$ac_ext |
3459 | ||
3460 | done | |
3461 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3462 | rm -f conftest.err conftest.$ac_ext | |
3463 | if $ac_preproc_ok; then | |
3464 | break | |
795ca3e5 AK |
3465 | fi |
3466 | ||
d0191583 JM |
3467 | done |
3468 | ac_cv_prog_CPP=$CPP | |
3469 | ||
3470 | fi | |
3471 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3472 | else |
d0191583 JM |
3473 | ac_cv_prog_CPP=$CPP |
3474 | fi | |
ec6a6fbe AK |
3475 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3476 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3477 | ac_preproc_ok=false |
3478 | for ac_c_preproc_warn_flag in '' yes | |
3479 | do | |
3480 | # Use a header file that comes with gcc, so configuring glibc | |
3481 | # with a fresh cross-compiler works. | |
3482 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3483 | # <limits.h> exists even on freestanding compilers. | |
3484 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3485 | # not just through cpp. "Syntax error" is here to catch this case. | |
3486 | cat >conftest.$ac_ext <<_ACEOF | |
3487 | /* confdefs.h. */ | |
ad6254c5 | 3488 | _ACEOF |
d0191583 JM |
3489 | cat confdefs.h >>conftest.$ac_ext |
3490 | cat >>conftest.$ac_ext <<_ACEOF | |
3491 | /* end confdefs.h. */ | |
3492 | #ifdef __STDC__ | |
3493 | # include <limits.h> | |
3494 | #else | |
3495 | # include <assert.h> | |
3496 | #endif | |
3497 | Syntax error | |
3498 | _ACEOF | |
3499 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3500 | case "(($ac_try" in | |
3501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3502 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3503 | esac |
ec6a6fbe AK |
3504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3505 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3507 | ac_status=$? | |
3508 | grep -v '^ *+' conftest.er1 >conftest.err | |
3509 | rm -f conftest.er1 | |
3510 | cat conftest.err >&5 | |
ec6a6fbe | 3511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3512 | (exit $ac_status); } >/dev/null && { |
3513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3514 | test ! -s conftest.err | |
3515 | }; then | |
3516 | : | |
795ca3e5 | 3517 | else |
ec6a6fbe | 3518 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
3520 | ||
3521 | # Broken: fails on valid input. | |
3522 | continue | |
795ca3e5 AK |
3523 | fi |
3524 | ||
d0191583 JM |
3525 | rm -f conftest.err conftest.$ac_ext |
3526 | ||
3527 | # OK, works on sane cases. Now check whether nonexistent headers | |
3528 | # can be detected and how. | |
3529 | cat >conftest.$ac_ext <<_ACEOF | |
3530 | /* confdefs.h. */ | |
3531 | _ACEOF | |
3532 | cat confdefs.h >>conftest.$ac_ext | |
3533 | cat >>conftest.$ac_ext <<_ACEOF | |
3534 | /* end confdefs.h. */ | |
3535 | #include <ac_nonexistent.h> | |
3536 | _ACEOF | |
3537 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3538 | case "(($ac_try" in | |
3539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3540 | *) ac_try_echo=$ac_try;; | |
3541 | esac | |
ec6a6fbe AK |
3542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3543 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3544 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3545 | ac_status=$? | |
3546 | grep -v '^ *+' conftest.er1 >conftest.err | |
3547 | rm -f conftest.er1 | |
3548 | cat conftest.err >&5 | |
ec6a6fbe | 3549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3550 | (exit $ac_status); } >/dev/null && { |
3551 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3552 | test ! -s conftest.err | |
3553 | }; then | |
3554 | # Broken: success on invalid input. | |
3555 | continue | |
795ca3e5 | 3556 | else |
ec6a6fbe | 3557 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3558 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3559 | |
d0191583 JM |
3560 | # Passes both tests. |
3561 | ac_preproc_ok=: | |
3562 | break | |
795ca3e5 | 3563 | fi |
d0191583 JM |
3564 | |
3565 | rm -f conftest.err conftest.$ac_ext | |
3566 | ||
3567 | done | |
3568 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3569 | rm -f conftest.err conftest.$ac_ext | |
3570 | if $ac_preproc_ok; then | |
3571 | : | |
8106cdd5 | 3572 | else |
ec6a6fbe AK |
3573 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3575 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3576 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3577 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3578 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3579 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3580 | fi |
3581 | ||
d0191583 JM |
3582 | ac_ext=c |
3583 | ac_cpp='$CPP $CPPFLAGS' | |
3584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3587 | ||
7a197a62 | 3588 | |
ec6a6fbe AK |
3589 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3590 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3591 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3592 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3593 | else |
ec6a6fbe | 3594 | if test -z "$GREP"; then |
d0191583 | 3595 | ac_path_GREP_found=false |
ec6a6fbe AK |
3596 | # Loop through the user's path and test for each of PROGNAME-LIST |
3597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3598 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3599 | do |
3600 | IFS=$as_save_IFS | |
3601 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3602 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3603 | for ac_exec_ext in '' $ac_executable_extensions; do |
3604 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3605 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3606 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3607 | # Check for GNU $ac_path_GREP |
3608 | case `"$ac_path_GREP" --version 2>&1` in | |
3609 | *GNU*) | |
3610 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3611 | *) | |
3612 | ac_count=0 | |
ec6a6fbe | 3613 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3614 | while : |
3615 | do | |
3616 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3617 | mv "conftest.tmp" "conftest.in" | |
3618 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3619 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3620 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3621 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3622 | ac_count=`expr $ac_count + 1` | |
3623 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3624 | # Best one so far, save it but keep looking for a better one | |
3625 | ac_cv_path_GREP="$ac_path_GREP" | |
3626 | ac_path_GREP_max=$ac_count | |
3627 | fi | |
3628 | # 10*(2^10) chars as input seems more than enough | |
3629 | test $ac_count -gt 10 && break | |
3630 | done | |
3631 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3632 | esac | |
3633 | ||
ec6a6fbe AK |
3634 | $ac_path_GREP_found && break 3 |
3635 | done | |
d0191583 | 3636 | done |
ad6254c5 | 3637 | done |
7a197a62 | 3638 | IFS=$as_save_IFS |
ec6a6fbe AK |
3639 | if test -z "$ac_cv_path_GREP"; then |
3640 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3641 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3642 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3643 | fi |
80992638 | 3644 | else |
d0191583 | 3645 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3646 | fi |
8106cdd5 | 3647 | |
80992638 | 3648 | fi |
ec6a6fbe AK |
3649 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3650 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3651 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3652 | |
d0191583 | 3653 | |
ec6a6fbe AK |
3654 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3655 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3656 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3657 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3658 | else |
d0191583 JM |
3659 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3660 | then ac_cv_path_EGREP="$GREP -E" | |
3661 | else | |
ec6a6fbe | 3662 | if test -z "$EGREP"; then |
d0191583 | 3663 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3664 | # Loop through the user's path and test for each of PROGNAME-LIST |
3665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3666 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3667 | do |
3668 | IFS=$as_save_IFS | |
3669 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3670 | for ac_prog in egrep; do |
ec6a6fbe AK |
3671 | for ac_exec_ext in '' $ac_executable_extensions; do |
3672 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3673 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3674 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3675 | # Check for GNU $ac_path_EGREP |
3676 | case `"$ac_path_EGREP" --version 2>&1` in | |
3677 | *GNU*) | |
3678 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3679 | *) | |
3680 | ac_count=0 | |
ec6a6fbe | 3681 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3682 | while : |
3683 | do | |
3684 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3685 | mv "conftest.tmp" "conftest.in" | |
3686 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3687 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3688 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3689 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3690 | ac_count=`expr $ac_count + 1` | |
3691 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3692 | # Best one so far, save it but keep looking for a better one | |
3693 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3694 | ac_path_EGREP_max=$ac_count | |
3695 | fi | |
3696 | # 10*(2^10) chars as input seems more than enough | |
3697 | test $ac_count -gt 10 && break | |
3698 | done | |
3699 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3700 | esac |
8a2fc586 | 3701 | |
ec6a6fbe AK |
3702 | $ac_path_EGREP_found && break 3 |
3703 | done | |
d0191583 | 3704 | done |
8a2fc586 | 3705 | done |
7a197a62 | 3706 | IFS=$as_save_IFS |
ec6a6fbe AK |
3707 | if test -z "$ac_cv_path_EGREP"; then |
3708 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3709 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3710 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3711 | fi |
d0191583 JM |
3712 | else |
3713 | ac_cv_path_EGREP=$EGREP | |
3714 | fi | |
ad6254c5 | 3715 | |
d0191583 JM |
3716 | fi |
3717 | fi | |
ec6a6fbe AK |
3718 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3719 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3720 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3721 | |
3722 | ||
d0191583 | 3723 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3724 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3725 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3726 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3727 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3728 | else |
d0191583 | 3729 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3730 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3731 | /* confdefs.h. */ |
3732 | _ACEOF | |
3733 | cat confdefs.h >>conftest.$ac_ext | |
3734 | cat >>conftest.$ac_ext <<_ACEOF | |
3735 | /* end confdefs.h. */ | |
d0191583 JM |
3736 | #include <sgtty.h> |
3737 | Autoconf TIOCGETP | |
ad6254c5 | 3738 | _ACEOF |
d0191583 JM |
3739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3740 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3741 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3742 | else |
d0191583 | 3743 | ac_cv_prog_gcc_traditional=no |
80992638 | 3744 | fi |
d0191583 | 3745 | rm -f conftest* |
ad6254c5 | 3746 | |
8106cdd5 | 3747 | |
d0191583 JM |
3748 | if test $ac_cv_prog_gcc_traditional = no; then |
3749 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3750 | /* confdefs.h. */ |
3751 | _ACEOF | |
3752 | cat confdefs.h >>conftest.$ac_ext | |
3753 | cat >>conftest.$ac_ext <<_ACEOF | |
3754 | /* end confdefs.h. */ | |
d0191583 JM |
3755 | #include <termio.h> |
3756 | Autoconf TCGETA | |
ad6254c5 | 3757 | _ACEOF |
d0191583 JM |
3758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3759 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3760 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3761 | fi |
d0191583 | 3762 | rm -f conftest* |
795ca3e5 | 3763 | |
d0191583 | 3764 | fi |
795ca3e5 | 3765 | fi |
ec6a6fbe AK |
3766 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3767 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3768 | if test $ac_cv_prog_gcc_traditional = yes; then |
3769 | CC="$CC -traditional" | |
3770 | fi | |
795ca3e5 AK |
3771 | fi |
3772 | ||
d0191583 JM |
3773 | # Find a good install program. We prefer a C program (faster), |
3774 | # so one script is as good as another. But avoid the broken or | |
3775 | # incompatible versions: | |
3776 | # SysV /etc/install, /usr/sbin/install | |
3777 | # SunOS /usr/etc/install | |
3778 | # IRIX /sbin/install | |
3779 | # AIX /bin/install | |
3780 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3781 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3782 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3783 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3784 | # OS/2's system install, which has a completely different semantic | |
3785 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3786 | # Reject install programs that cannot install multiple files. |
3787 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3788 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3789 | if test -z "$INSTALL"; then |
3790 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3791 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3792 | else |
d0191583 JM |
3793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3794 | for as_dir in $PATH | |
3795 | do | |
3796 | IFS=$as_save_IFS | |
3797 | test -z "$as_dir" && as_dir=. | |
3798 | # Account for people who put trailing slashes in PATH elements. | |
3799 | case $as_dir/ in | |
3800 | ./ | .// | /cC/* | \ | |
3801 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3802 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3803 | /usr/ucb/* ) ;; | |
3804 | *) | |
3805 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3806 | # Don't use installbsd from OSF since it installs stuff as root | |
3807 | # by default. | |
3808 | for ac_prog in ginstall scoinst install; do | |
3809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3810 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3811 | if test $ac_prog = install && | |
3812 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3813 | # AIX install. It has an incompatible calling convention. | |
3814 | : | |
3815 | elif test $ac_prog = install && | |
3816 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3817 | # program-specific install script used by HP pwplus--don't use. | |
3818 | : | |
3819 | else | |
ec6a6fbe AK |
3820 | rm -rf conftest.one conftest.two conftest.dir |
3821 | echo one > conftest.one | |
3822 | echo two > conftest.two | |
3823 | mkdir conftest.dir | |
3824 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3825 | test -s conftest.one && test -s conftest.two && | |
3826 | test -s conftest.dir/conftest.one && | |
3827 | test -s conftest.dir/conftest.two | |
3828 | then | |
3829 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3830 | break 3 | |
3831 | fi | |
d0191583 JM |
3832 | fi |
3833 | fi | |
3834 | done | |
3835 | done | |
3836 | ;; | |
3837 | esac | |
ec6a6fbe | 3838 | |
d0191583 JM |
3839 | done |
3840 | IFS=$as_save_IFS | |
80992638 | 3841 | |
ec6a6fbe | 3842 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3843 | |
3844 | fi | |
3845 | if test "${ac_cv_path_install+set}" = set; then | |
3846 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3847 | else |
d0191583 JM |
3848 | # As a last resort, use the slow shell script. Don't cache a |
3849 | # value for INSTALL within a source directory, because that will | |
3850 | # break other packages using the cache if that directory is | |
3851 | # removed, or if the value is a relative name. | |
3852 | INSTALL=$ac_install_sh | |
7a197a62 | 3853 | fi |
d0191583 | 3854 | fi |
ec6a6fbe AK |
3855 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3856 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3857 | |
d0191583 JM |
3858 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3859 | # It thinks the first close brace ends the variable substitution. | |
3860 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3861 | |
d0191583 | 3862 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3863 | |
d0191583 JM |
3864 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3865 | ||
ec6a6fbe AK |
3866 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3867 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3868 | LN_S=$as_ln_s |
3869 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3870 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3871 | $as_echo "yes" >&6; } | |
d0191583 | 3872 | else |
ec6a6fbe AK |
3873 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3874 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3875 | fi |
d0191583 | 3876 | |
ec6a6fbe AK |
3877 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3878 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3879 | set x ${MAKE-make} | |
3880 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3881 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3882 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3883 | else |
d0191583 JM |
3884 | cat >conftest.make <<\_ACEOF |
3885 | SHELL = /bin/sh | |
3886 | all: | |
3887 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3888 | _ACEOF | |
3889 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3890 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3891 | *@@@%%%=?*=@@@%%%*) | |
3892 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3893 | *) | |
3894 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3895 | esac | |
3896 | rm -f conftest.make | |
ad6254c5 | 3897 | fi |
d0191583 | 3898 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3899 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3900 | $as_echo "yes" >&6; } | |
d0191583 JM |
3901 | SET_MAKE= |
3902 | else | |
ec6a6fbe AK |
3903 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3904 | $as_echo "no" >&6; } | |
d0191583 | 3905 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3906 | fi |
8106cdd5 | 3907 | |
ec6a6fbe AK |
3908 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3909 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3910 | if test -z "$MKDIR_P"; then |
3911 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3912 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3913 | else |
3914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3915 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3916 | do | |
3917 | IFS=$as_save_IFS | |
3918 | test -z "$as_dir" && as_dir=. | |
3919 | for ac_prog in mkdir gmkdir; do | |
3920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3921 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3922 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3923 | 'mkdir (GNU coreutils) '* | \ | |
3924 | 'mkdir (coreutils) '* | \ | |
3925 | 'mkdir (fileutils) '4.1*) | |
3926 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3927 | break 3;; | |
3928 | esac | |
3929 | done | |
3930 | done | |
3931 | done | |
3932 | IFS=$as_save_IFS | |
3933 | ||
3934 | fi | |
3935 | ||
3936 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3937 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3938 | else | |
3939 | # As a last resort, use the slow shell script. Don't cache a | |
3940 | # value for MKDIR_P within a source directory, because that will | |
3941 | # break other packages using the cache if that directory is | |
3942 | # removed, or if the value is a relative name. | |
3943 | test -d ./--version && rmdir ./--version | |
3944 | MKDIR_P="$ac_install_sh -d" | |
3945 | fi | |
3946 | fi | |
ec6a6fbe AK |
3947 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3948 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3949 | |
d0191583 JM |
3950 | if test -n "$ac_tool_prefix"; then |
3951 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3952 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3953 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3954 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3955 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3956 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3957 | else |
3958 | if test -n "$RANLIB"; then | |
3959 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3960 | else | |
3961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3962 | for as_dir in $PATH | |
3963 | do | |
3964 | IFS=$as_save_IFS | |
3965 | test -z "$as_dir" && as_dir=. | |
3966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3968 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3969 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3970 | break 2 |
3971 | fi | |
3972 | done | |
3973 | done | |
3974 | IFS=$as_save_IFS | |
8106cdd5 | 3975 | |
795ca3e5 | 3976 | fi |
d0191583 JM |
3977 | fi |
3978 | RANLIB=$ac_cv_prog_RANLIB | |
3979 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3980 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3981 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3982 | else |
ec6a6fbe AK |
3983 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3984 | $as_echo "no" >&6; } | |
d0191583 JM |
3985 | fi |
3986 | ||
8106cdd5 | 3987 | |
ad6254c5 | 3988 | fi |
d0191583 JM |
3989 | if test -z "$ac_cv_prog_RANLIB"; then |
3990 | ac_ct_RANLIB=$RANLIB | |
3991 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3992 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3993 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3994 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3995 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3996 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3997 | else |
d0191583 JM |
3998 | if test -n "$ac_ct_RANLIB"; then |
3999 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4000 | else | |
4001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4002 | for as_dir in $PATH | |
8106cdd5 | 4003 | do |
d0191583 JM |
4004 | IFS=$as_save_IFS |
4005 | test -z "$as_dir" && as_dir=. | |
4006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4008 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 4009 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4010 | break 2 |
4011 | fi | |
4012 | done | |
4013 | done | |
4014 | IFS=$as_save_IFS | |
4015 | ||
4016 | fi | |
4017 | fi | |
4018 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4019 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
4020 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4021 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4022 | else |
ec6a6fbe AK |
4023 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4024 | $as_echo "no" >&6; } | |
d0191583 | 4025 | fi |
ad6254c5 | 4026 | |
d0191583 JM |
4027 | if test "x$ac_ct_RANLIB" = x; then |
4028 | RANLIB=":" | |
4029 | else | |
4030 | case $cross_compiling:$ac_tool_warned in | |
4031 | yes:) | |
ec6a6fbe AK |
4032 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4034 | ac_tool_warned=yes ;; |
4035 | esac | |
4036 | RANLIB=$ac_ct_RANLIB | |
4037 | fi | |
4038 | else | |
4039 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4040 | fi |
7a197a62 | 4041 | |
d0191583 JM |
4042 | # Extract the first word of "cflow", so it can be a program name with args. |
4043 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4044 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4045 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4046 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4047 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4048 | else |
4049 | case $CFLOW_CMD in | |
4050 | [\\/]* | ?:[\\/]*) | |
4051 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4052 | ;; | |
4053 | *) | |
4054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4055 | for as_dir in $PATH | |
4056 | do | |
4057 | IFS=$as_save_IFS | |
4058 | test -z "$as_dir" && as_dir=. | |
4059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4061 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4062 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4063 | break 2 |
4064 | fi | |
4065 | done | |
4066 | done | |
4067 | IFS=$as_save_IFS | |
ad6254c5 | 4068 | |
d0191583 | 4069 | ;; |
7a197a62 | 4070 | esac |
d0191583 JM |
4071 | fi |
4072 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4073 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4074 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4075 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4076 | else |
ec6a6fbe AK |
4077 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4078 | $as_echo "no" >&6; } | |
795ca3e5 | 4079 | fi |
7a197a62 | 4080 | |
ad6254c5 | 4081 | |
d0191583 JM |
4082 | # Extract the first word of "cscope", so it can be a program name with args. |
4083 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4084 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4085 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4086 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4087 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4088 | else |
4089 | case $CSCOPE_CMD in | |
4090 | [\\/]* | ?:[\\/]*) | |
4091 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4092 | ;; | |
4093 | *) | |
4094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4095 | for as_dir in $PATH | |
4096 | do | |
4097 | IFS=$as_save_IFS | |
4098 | test -z "$as_dir" && as_dir=. | |
4099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4101 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4102 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4103 | break 2 |
4104 | fi | |
795ca3e5 | 4105 | done |
d0191583 JM |
4106 | done |
4107 | IFS=$as_save_IFS | |
795ca3e5 | 4108 | |
d0191583 JM |
4109 | ;; |
4110 | esac | |
ad6254c5 | 4111 | fi |
d0191583 JM |
4112 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4113 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4114 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4115 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4116 | else |
ec6a6fbe AK |
4117 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4118 | $as_echo "no" >&6; } | |
795ca3e5 | 4119 | fi |
ad6254c5 | 4120 | |
7a197a62 | 4121 | |
ad6254c5 | 4122 | |
d0191583 JM |
4123 | ################################################################################ |
4124 | ||
4125 | ||
4126 | ||
4127 | ||
4128 | ||
4129 | ac_header_dirent=no | |
4130 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4131 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4132 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4133 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4134 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4135 | $as_echo_n "(cached) " >&6 |
d0191583 | 4136 | else |
ad6254c5 | 4137 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4138 | /* confdefs.h. */ |
4139 | _ACEOF | |
4140 | cat confdefs.h >>conftest.$ac_ext | |
4141 | cat >>conftest.$ac_ext <<_ACEOF | |
4142 | /* end confdefs.h. */ | |
d0191583 JM |
4143 | #include <sys/types.h> |
4144 | #include <$ac_hdr> | |
4145 | ||
4146 | int | |
4147 | main () | |
4148 | { | |
4149 | if ((DIR *) 0) | |
4150 | return 0; | |
4151 | ; | |
4152 | return 0; | |
4153 | } | |
ad6254c5 | 4154 | _ACEOF |
d0191583 JM |
4155 | rm -f conftest.$ac_objext |
4156 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4157 | case "(($ac_try" in |
4158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4159 | *) ac_try_echo=$ac_try;; | |
4160 | esac | |
ec6a6fbe AK |
4161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4162 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4163 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4164 | ac_status=$? |
4165 | grep -v '^ *+' conftest.er1 >conftest.err | |
4166 | rm -f conftest.er1 | |
4167 | cat conftest.err >&5 | |
ec6a6fbe | 4168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4169 | (exit $ac_status); } && { |
4170 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4171 | test ! -s conftest.err |
d0191583 JM |
4172 | } && test -s conftest.$ac_objext; then |
4173 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4174 | else |
ec6a6fbe | 4175 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4176 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4177 | |
d0191583 | 4178 | eval "$as_ac_Header=no" |
795ca3e5 | 4179 | fi |
7a197a62 | 4180 | |
d0191583 | 4181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4182 | fi |
ec6a6fbe AK |
4183 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4184 | $as_echo "$as_val"'` | |
4185 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4186 | $as_echo "$ac_res" >&6; } | |
4187 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4188 | $as_echo "$as_val"'` | |
4189 | if test "x$as_val" = x""yes; then | |
d0191583 | 4190 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4191 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4192 | _ACEOF |
795ca3e5 | 4193 | |
d0191583 JM |
4194 | ac_header_dirent=$ac_hdr; break |
4195 | fi | |
ad6254c5 | 4196 | |
d0191583 JM |
4197 | done |
4198 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4199 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4200 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4201 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4202 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4203 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4204 | else |
d0191583 JM |
4205 | ac_func_search_save_LIBS=$LIBS |
4206 | cat >conftest.$ac_ext <<_ACEOF | |
4207 | /* confdefs.h. */ | |
4208 | _ACEOF | |
4209 | cat confdefs.h >>conftest.$ac_ext | |
4210 | cat >>conftest.$ac_ext <<_ACEOF | |
4211 | /* end confdefs.h. */ | |
ad6254c5 | 4212 | |
d0191583 JM |
4213 | /* Override any GCC internal prototype to avoid an error. |
4214 | Use char because int might match the return type of a GCC | |
4215 | builtin and then its argument prototype would still apply. */ | |
4216 | #ifdef __cplusplus | |
4217 | extern "C" | |
4218 | #endif | |
4219 | char opendir (); | |
4220 | int | |
4221 | main () | |
4222 | { | |
4223 | return opendir (); | |
4224 | ; | |
4225 | return 0; | |
4226 | } | |
4227 | _ACEOF | |
4228 | for ac_lib in '' dir; do | |
4229 | if test -z "$ac_lib"; then | |
4230 | ac_res="none required" | |
4231 | else | |
4232 | ac_res=-l$ac_lib | |
4233 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4234 | fi | |
4235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4236 | if { (ac_try="$ac_link" | |
4237 | case "(($ac_try" in | |
4238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4239 | *) ac_try_echo=$ac_try;; | |
4240 | esac | |
ec6a6fbe AK |
4241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4242 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4243 | (eval "$ac_link") 2>conftest.er1 |
4244 | ac_status=$? | |
4245 | grep -v '^ *+' conftest.er1 >conftest.err | |
4246 | rm -f conftest.er1 | |
4247 | cat conftest.err >&5 | |
ec6a6fbe | 4248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4249 | (exit $ac_status); } && { |
4250 | test -z "$ac_c_werror_flag" || | |
4251 | test ! -s conftest.err | |
ec6a6fbe AK |
4252 | } && test -s conftest$ac_exeext && { |
4253 | test "$cross_compiling" = yes || | |
4254 | $as_test_x conftest$ac_exeext | |
4255 | }; then | |
d0191583 JM |
4256 | ac_cv_search_opendir=$ac_res |
4257 | else | |
ec6a6fbe | 4258 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4259 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4260 | |
ad6254c5 | 4261 | |
795ca3e5 | 4262 | fi |
ad6254c5 | 4263 | |
ec6a6fbe | 4264 | rm -rf conftest.dSYM |
d0191583 JM |
4265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4266 | conftest$ac_exeext | |
4267 | if test "${ac_cv_search_opendir+set}" = set; then | |
4268 | break | |
7a197a62 | 4269 | fi |
d0191583 JM |
4270 | done |
4271 | if test "${ac_cv_search_opendir+set}" = set; then | |
4272 | : | |
7a197a62 | 4273 | else |
d0191583 | 4274 | ac_cv_search_opendir=no |
7a197a62 | 4275 | fi |
d0191583 JM |
4276 | rm conftest.$ac_ext |
4277 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4278 | fi |
ec6a6fbe AK |
4279 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4280 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4281 | ac_res=$ac_cv_search_opendir |
4282 | if test "$ac_res" != no; then | |
4283 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4284 | |
d0191583 | 4285 | fi |
7a197a62 | 4286 | |
7a197a62 | 4287 | else |
ec6a6fbe AK |
4288 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4289 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4290 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4291 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4292 | else |
d0191583 JM |
4293 | ac_func_search_save_LIBS=$LIBS |
4294 | cat >conftest.$ac_ext <<_ACEOF | |
4295 | /* confdefs.h. */ | |
4296 | _ACEOF | |
4297 | cat confdefs.h >>conftest.$ac_ext | |
4298 | cat >>conftest.$ac_ext <<_ACEOF | |
4299 | /* end confdefs.h. */ | |
7a197a62 | 4300 | |
d0191583 JM |
4301 | /* Override any GCC internal prototype to avoid an error. |
4302 | Use char because int might match the return type of a GCC | |
4303 | builtin and then its argument prototype would still apply. */ | |
4304 | #ifdef __cplusplus | |
4305 | extern "C" | |
4306 | #endif | |
4307 | char opendir (); | |
4308 | int | |
4309 | main () | |
4310 | { | |
4311 | return opendir (); | |
4312 | ; | |
4313 | return 0; | |
4314 | } | |
4315 | _ACEOF | |
4316 | for ac_lib in '' x; do | |
4317 | if test -z "$ac_lib"; then | |
4318 | ac_res="none required" | |
4319 | else | |
4320 | ac_res=-l$ac_lib | |
4321 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4322 | fi | |
4323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4324 | if { (ac_try="$ac_link" | |
4325 | case "(($ac_try" in | |
4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4327 | *) ac_try_echo=$ac_try;; | |
4328 | esac | |
ec6a6fbe AK |
4329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4330 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4331 | (eval "$ac_link") 2>conftest.er1 |
4332 | ac_status=$? | |
4333 | grep -v '^ *+' conftest.er1 >conftest.err | |
4334 | rm -f conftest.er1 | |
4335 | cat conftest.err >&5 | |
ec6a6fbe | 4336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4337 | (exit $ac_status); } && { |
4338 | test -z "$ac_c_werror_flag" || | |
4339 | test ! -s conftest.err | |
ec6a6fbe AK |
4340 | } && test -s conftest$ac_exeext && { |
4341 | test "$cross_compiling" = yes || | |
4342 | $as_test_x conftest$ac_exeext | |
4343 | }; then | |
d0191583 JM |
4344 | ac_cv_search_opendir=$ac_res |
4345 | else | |
ec6a6fbe | 4346 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4347 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4348 | |
4349 | ||
4350 | fi | |
4351 | ||
ec6a6fbe | 4352 | rm -rf conftest.dSYM |
d0191583 JM |
4353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4354 | conftest$ac_exeext | |
4355 | if test "${ac_cv_search_opendir+set}" = set; then | |
4356 | break | |
7a197a62 | 4357 | fi |
d0191583 JM |
4358 | done |
4359 | if test "${ac_cv_search_opendir+set}" = set; then | |
4360 | : | |
7a197a62 | 4361 | else |
d0191583 | 4362 | ac_cv_search_opendir=no |
7a197a62 | 4363 | fi |
d0191583 JM |
4364 | rm conftest.$ac_ext |
4365 | LIBS=$ac_func_search_save_LIBS | |
4366 | fi | |
ec6a6fbe AK |
4367 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4368 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4369 | ac_res=$ac_cv_search_opendir |
4370 | if test "$ac_res" != no; then | |
4371 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4372 | |
7a197a62 | 4373 | fi |
7a197a62 | 4374 | |
d0191583 | 4375 | fi |
7a197a62 | 4376 | |
ec6a6fbe AK |
4377 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4378 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4379 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4380 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4381 | else |
4382 | cat >conftest.$ac_ext <<_ACEOF | |
4383 | /* confdefs.h. */ | |
4384 | _ACEOF | |
4385 | cat confdefs.h >>conftest.$ac_ext | |
4386 | cat >>conftest.$ac_ext <<_ACEOF | |
4387 | /* end confdefs.h. */ | |
4388 | #include <stdlib.h> | |
4389 | #include <stdarg.h> | |
4390 | #include <string.h> | |
4391 | #include <float.h> | |
4392 | ||
4393 | int | |
4394 | main () | |
4395 | { | |
4396 | ||
4397 | ; | |
4398 | return 0; | |
4399 | } | |
4400 | _ACEOF | |
4401 | rm -f conftest.$ac_objext | |
4402 | if { (ac_try="$ac_compile" | |
4403 | case "(($ac_try" in | |
4404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4405 | *) ac_try_echo=$ac_try;; | |
4406 | esac | |
ec6a6fbe AK |
4407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4408 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4409 | (eval "$ac_compile") 2>conftest.er1 |
4410 | ac_status=$? | |
4411 | grep -v '^ *+' conftest.er1 >conftest.err | |
4412 | rm -f conftest.er1 | |
4413 | cat conftest.err >&5 | |
ec6a6fbe | 4414 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4415 | (exit $ac_status); } && { |
4416 | test -z "$ac_c_werror_flag" || | |
4417 | test ! -s conftest.err | |
4418 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4419 | ac_cv_header_stdc=yes |
4420 | else | |
ec6a6fbe | 4421 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4422 | sed 's/^/| /' conftest.$ac_ext >&5 |
4423 | ||
4424 | ac_cv_header_stdc=no | |
4425 | fi | |
4426 | ||
4427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4428 | ||
4429 | if test $ac_cv_header_stdc = yes; then | |
4430 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4431 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4432 | /* confdefs.h. */ |
4433 | _ACEOF | |
4434 | cat confdefs.h >>conftest.$ac_ext | |
4435 | cat >>conftest.$ac_ext <<_ACEOF | |
4436 | /* end confdefs.h. */ | |
4437 | #include <string.h> | |
8106cdd5 | 4438 | |
ad6254c5 AK |
4439 | _ACEOF |
4440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4441 | $EGREP "memchr" >/dev/null 2>&1; then | |
4442 | : | |
4443 | else | |
4444 | ac_cv_header_stdc=no | |
80992638 | 4445 | fi |
ad6254c5 | 4446 | rm -f conftest* |
795ca3e5 AK |
4447 | |
4448 | fi | |
4449 | ||
ad6254c5 AK |
4450 | if test $ac_cv_header_stdc = yes; then |
4451 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4452 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4453 | /* confdefs.h. */ |
4454 | _ACEOF | |
4455 | cat confdefs.h >>conftest.$ac_ext | |
4456 | cat >>conftest.$ac_ext <<_ACEOF | |
4457 | /* end confdefs.h. */ | |
80992638 | 4458 | #include <stdlib.h> |
ad6254c5 AK |
4459 | |
4460 | _ACEOF | |
80992638 | 4461 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4462 | $EGREP "free" >/dev/null 2>&1; then |
4463 | : | |
795ca3e5 | 4464 | else |
ad6254c5 | 4465 | ac_cv_header_stdc=no |
795ca3e5 | 4466 | fi |
80992638 | 4467 | rm -f conftest* |
8106cdd5 | 4468 | |
795ca3e5 AK |
4469 | fi |
4470 | ||
ad6254c5 AK |
4471 | if test $ac_cv_header_stdc = yes; then |
4472 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4473 | if test "$cross_compiling" = yes; then | |
4474 | : | |
795ca3e5 | 4475 | else |
ad6254c5 | 4476 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4477 | /* confdefs.h. */ |
4478 | _ACEOF | |
4479 | cat confdefs.h >>conftest.$ac_ext | |
4480 | cat >>conftest.$ac_ext <<_ACEOF | |
4481 | /* end confdefs.h. */ | |
4482 | #include <ctype.h> | |
7a197a62 | 4483 | #include <stdlib.h> |
ad6254c5 AK |
4484 | #if ((' ' & 0x0FF) == 0x020) |
4485 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4486 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4487 | #else | |
4488 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4489 | (('a' <= (c) && (c) <= 'i') \ |
4490 | || ('j' <= (c) && (c) <= 'r') \ | |
4491 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4492 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4493 | #endif |
ad6254c5 AK |
4494 | |
4495 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4496 | int | |
4497 | main () | |
4498 | { | |
4499 | int i; | |
4500 | for (i = 0; i < 256; i++) | |
4501 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4502 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4503 | return 2; |
4504 | return 0; | |
ad6254c5 AK |
4505 | } |
4506 | _ACEOF | |
4507 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4508 | if { (ac_try="$ac_link" |
4509 | case "(($ac_try" in | |
4510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4511 | *) ac_try_echo=$ac_try;; | |
4512 | esac | |
ec6a6fbe AK |
4513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4514 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4515 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4516 | ac_status=$? |
ec6a6fbe | 4517 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4518 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4519 | { (case "(($ac_try" in |
4520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4521 | *) ac_try_echo=$ac_try;; | |
4522 | esac | |
ec6a6fbe AK |
4523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4524 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4525 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4526 | ac_status=$? |
ec6a6fbe | 4527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4528 | (exit $ac_status); }; }; then |
4529 | : | |
795ca3e5 | 4530 | else |
ec6a6fbe AK |
4531 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4532 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4533 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4534 | |
ad6254c5 AK |
4535 | ( exit $ac_status ) |
4536 | ac_cv_header_stdc=no | |
80992638 | 4537 | fi |
ec6a6fbe | 4538 | rm -rf conftest.dSYM |
7a197a62 | 4539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4540 | fi |
7a197a62 AK |
4541 | |
4542 | ||
ad6254c5 AK |
4543 | fi |
4544 | fi | |
ec6a6fbe AK |
4545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4546 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4547 | if test $ac_cv_header_stdc = yes; then |
4548 | ||
4549 | cat >>confdefs.h <<\_ACEOF | |
4550 | #define STDC_HEADERS 1 | |
4551 | _ACEOF | |
795ca3e5 AK |
4552 | |
4553 | fi | |
4554 | ||
d911ec67 | 4555 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4556 | |
ad6254c5 | 4557 | |
7a197a62 | 4558 | |
8106cdd5 | 4559 | |
795ca3e5 | 4560 | |
795ca3e5 | 4561 | |
d911ec67 AK |
4562 | |
4563 | ||
4564 | ||
4565 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4566 | inttypes.h stdint.h unistd.h | |
4567 | do | |
4568 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4569 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4570 | $as_echo_n "checking for $ac_header... " >&6; } | |
4571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4572 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4573 | else |
ad6254c5 | 4574 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4575 | /* confdefs.h. */ |
4576 | _ACEOF | |
4577 | cat confdefs.h >>conftest.$ac_ext | |
4578 | cat >>conftest.$ac_ext <<_ACEOF | |
4579 | /* end confdefs.h. */ | |
d911ec67 | 4580 | $ac_includes_default |
ad6254c5 | 4581 | |
d911ec67 | 4582 | #include <$ac_header> |
ad6254c5 AK |
4583 | _ACEOF |
4584 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4585 | if { (ac_try="$ac_compile" |
4586 | case "(($ac_try" in | |
4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4588 | *) ac_try_echo=$ac_try;; | |
4589 | esac | |
ec6a6fbe AK |
4590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4591 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4592 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4593 | ac_status=$? |
8a2fc586 AK |
4594 | grep -v '^ *+' conftest.er1 >conftest.err |
4595 | rm -f conftest.er1 | |
4596 | cat conftest.err >&5 | |
ec6a6fbe | 4597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4598 | (exit $ac_status); } && { |
4599 | test -z "$ac_c_werror_flag" || | |
4600 | test ! -s conftest.err | |
4601 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4602 | eval "$as_ac_Header=yes" |
795ca3e5 | 4603 | else |
ec6a6fbe | 4604 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4605 | sed 's/^/| /' conftest.$ac_ext >&5 |
4606 | ||
d911ec67 | 4607 | eval "$as_ac_Header=no" |
795ca3e5 | 4608 | fi |
7a197a62 AK |
4609 | |
4610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4611 | fi |
d911ec67 AK |
4612 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4613 | $as_echo "$as_val"'` | |
4614 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4615 | $as_echo "$ac_res" >&6; } | |
4616 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4617 | $as_echo "$as_val"'` | |
4618 | if test "x$as_val" = x""yes; then | |
4619 | cat >>confdefs.h <<_ACEOF | |
4620 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4621 | _ACEOF |
b896caa1 | 4622 | |
8106cdd5 | 4623 | fi |
b896caa1 | 4624 | |
d911ec67 | 4625 | done |
d0191583 JM |
4626 | |
4627 | ||
d911ec67 AK |
4628 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4629 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4630 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4631 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4632 | else |
4633 | cat >conftest.$ac_ext <<_ACEOF | |
4634 | /* confdefs.h. */ | |
4635 | _ACEOF | |
4636 | cat confdefs.h >>conftest.$ac_ext | |
4637 | cat >>conftest.$ac_ext <<_ACEOF | |
4638 | /* end confdefs.h. */ | |
d911ec67 AK |
4639 | #include <sys/types.h> |
4640 | int | |
4641 | main () | |
4642 | { | |
4643 | return makedev(0, 0); | |
4644 | ; | |
4645 | return 0; | |
4646 | } | |
d0191583 | 4647 | _ACEOF |
d911ec67 AK |
4648 | rm -f conftest.$ac_objext conftest$ac_exeext |
4649 | if { (ac_try="$ac_link" | |
d0191583 JM |
4650 | case "(($ac_try" in |
4651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4652 | *) ac_try_echo=$ac_try;; | |
4653 | esac | |
ec6a6fbe AK |
4654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4655 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4656 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4657 | ac_status=$? |
4658 | grep -v '^ *+' conftest.er1 >conftest.err | |
4659 | rm -f conftest.er1 | |
4660 | cat conftest.err >&5 | |
ec6a6fbe | 4661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4662 | (exit $ac_status); } && { |
4663 | test -z "$ac_c_werror_flag" || | |
4664 | test ! -s conftest.err | |
d911ec67 AK |
4665 | } && test -s conftest$ac_exeext && { |
4666 | test "$cross_compiling" = yes || | |
4667 | $as_test_x conftest$ac_exeext | |
4668 | }; then | |
4669 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4670 | else |
ec6a6fbe | 4671 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4672 | sed 's/^/| /' conftest.$ac_ext >&5 |
4673 | ||
d911ec67 | 4674 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4675 | fi |
4676 | ||
d911ec67 AK |
4677 | rm -rf conftest.dSYM |
4678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4679 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4680 | |
4681 | fi | |
d911ec67 AK |
4682 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4683 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4684 | |
d911ec67 AK |
4685 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4686 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4687 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4688 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4689 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4690 | $as_echo_n "(cached) " >&6 |
d0191583 | 4691 | fi |
d911ec67 AK |
4692 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4693 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4694 | else |
d0191583 | 4695 | # Is the header compilable? |
d911ec67 AK |
4696 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4697 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4698 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4699 | /* confdefs.h. */ |
4700 | _ACEOF | |
4701 | cat confdefs.h >>conftest.$ac_ext | |
4702 | cat >>conftest.$ac_ext <<_ACEOF | |
4703 | /* end confdefs.h. */ | |
4704 | $ac_includes_default | |
d911ec67 | 4705 | #include <sys/mkdev.h> |
ad6254c5 AK |
4706 | _ACEOF |
4707 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4708 | if { (ac_try="$ac_compile" |
4709 | case "(($ac_try" in | |
4710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4711 | *) ac_try_echo=$ac_try;; | |
4712 | esac | |
ec6a6fbe AK |
4713 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4714 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4715 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4716 | ac_status=$? |
8a2fc586 AK |
4717 | grep -v '^ *+' conftest.er1 >conftest.err |
4718 | rm -f conftest.er1 | |
4719 | cat conftest.err >&5 | |
ec6a6fbe | 4720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4721 | (exit $ac_status); } && { |
4722 | test -z "$ac_c_werror_flag" || | |
4723 | test ! -s conftest.err | |
4724 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4725 | ac_header_compiler=yes |
ad6254c5 | 4726 | else |
ec6a6fbe | 4727 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4728 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4729 | |
d0191583 | 4730 | ac_header_compiler=no |
ad6254c5 | 4731 | fi |
7a197a62 AK |
4732 | |
4733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4734 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4735 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4736 | |
4737 | # Is the header present? | |
d911ec67 AK |
4738 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4739 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4740 | cat >conftest.$ac_ext <<_ACEOF |
4741 | /* confdefs.h. */ | |
4742 | _ACEOF | |
4743 | cat confdefs.h >>conftest.$ac_ext | |
4744 | cat >>conftest.$ac_ext <<_ACEOF | |
4745 | /* end confdefs.h. */ | |
d911ec67 | 4746 | #include <sys/mkdev.h> |
d0191583 JM |
4747 | _ACEOF |
4748 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4749 | case "(($ac_try" in | |
4750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4751 | *) ac_try_echo=$ac_try;; | |
4752 | esac | |
ec6a6fbe AK |
4753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4754 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4756 | ac_status=$? | |
4757 | grep -v '^ *+' conftest.er1 >conftest.err | |
4758 | rm -f conftest.er1 | |
4759 | cat conftest.err >&5 | |
ec6a6fbe | 4760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4761 | (exit $ac_status); } >/dev/null && { |
4762 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4763 | test ! -s conftest.err | |
4764 | }; then | |
4765 | ac_header_preproc=yes | |
4766 | else | |
ec6a6fbe | 4767 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4768 | sed 's/^/| /' conftest.$ac_ext >&5 |
4769 | ||
4770 | ac_header_preproc=no | |
4771 | fi | |
4772 | ||
4773 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4774 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4775 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4776 | |
4777 | # So? What about this header? | |
4778 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4779 | yes:no: ) | |
d911ec67 AK |
4780 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4781 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4782 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4783 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4784 | ac_header_preproc=yes |
4785 | ;; | |
4786 | no:yes:* ) | |
d911ec67 AK |
4787 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4788 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4789 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4790 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4791 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4792 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4793 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4794 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4795 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4796 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4797 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4798 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4799 | |
4800 | ;; | |
4801 | esac | |
d911ec67 AK |
4802 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4803 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4804 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4805 | $as_echo_n "(cached) " >&6 |
d0191583 | 4806 | else |
d911ec67 | 4807 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4808 | fi |
d911ec67 AK |
4809 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4810 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4811 | |
4812 | fi | |
d911ec67 AK |
4813 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4814 | ||
4815 | cat >>confdefs.h <<\_ACEOF | |
4816 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4817 | _ACEOF |
a38df97f | 4818 | |
80992638 AK |
4819 | fi |
4820 | ||
80992638 | 4821 | |
5a52dca9 | 4822 | |
d911ec67 AK |
4823 | if test $ac_cv_header_sys_mkdev_h = no; then |
4824 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4825 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4826 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4827 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4828 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4829 | fi |
d911ec67 AK |
4830 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4831 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4832 | else |
4833 | # Is the header compilable? | |
d911ec67 AK |
4834 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4835 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4836 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4837 | /* confdefs.h. */ |
4838 | _ACEOF | |
4839 | cat confdefs.h >>conftest.$ac_ext | |
4840 | cat >>conftest.$ac_ext <<_ACEOF | |
4841 | /* end confdefs.h. */ | |
4842 | $ac_includes_default | |
d911ec67 | 4843 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4844 | _ACEOF |
4845 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4846 | if { (ac_try="$ac_compile" |
4847 | case "(($ac_try" in | |
4848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4849 | *) ac_try_echo=$ac_try;; | |
4850 | esac | |
ec6a6fbe AK |
4851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4852 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4853 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4854 | ac_status=$? |
8a2fc586 AK |
4855 | grep -v '^ *+' conftest.er1 >conftest.err |
4856 | rm -f conftest.er1 | |
4857 | cat conftest.err >&5 | |
ec6a6fbe | 4858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4859 | (exit $ac_status); } && { |
4860 | test -z "$ac_c_werror_flag" || | |
4861 | test ! -s conftest.err | |
4862 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4863 | ac_header_compiler=yes |
4864 | else | |
ec6a6fbe | 4865 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4866 | sed 's/^/| /' conftest.$ac_ext >&5 |
4867 | ||
4868 | ac_header_compiler=no | |
4869 | fi | |
4870 | ||
4871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4872 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4873 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4874 | |
4875 | # Is the header present? | |
d911ec67 AK |
4876 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4877 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4878 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4879 | /* confdefs.h. */ |
4880 | _ACEOF | |
4881 | cat confdefs.h >>conftest.$ac_ext | |
4882 | cat >>conftest.$ac_ext <<_ACEOF | |
4883 | /* end confdefs.h. */ | |
d911ec67 | 4884 | #include <sys/sysmacros.h> |
ad6254c5 | 4885 | _ACEOF |
7a197a62 AK |
4886 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
ec6a6fbe AK |
4891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4892 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4893 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4894 | ac_status=$? |
4895 | grep -v '^ *+' conftest.er1 >conftest.err | |
4896 | rm -f conftest.er1 | |
4897 | cat conftest.err >&5 | |
ec6a6fbe | 4898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4899 | (exit $ac_status); } >/dev/null && { |
4900 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4901 | test ! -s conftest.err | |
4902 | }; then | |
ad6254c5 AK |
4903 | ac_header_preproc=yes |
4904 | else | |
ec6a6fbe | 4905 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4906 | sed 's/^/| /' conftest.$ac_ext >&5 |
4907 | ||
4908 | ac_header_preproc=no | |
4909 | fi | |
7a197a62 | 4910 | |
ad6254c5 | 4911 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4912 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4913 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4914 | |
4915 | # So? What about this header? | |
8a2fc586 AK |
4916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4917 | yes:no: ) | |
d911ec67 AK |
4918 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4919 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4920 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4921 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4922 | ac_header_preproc=yes |
ad6254c5 | 4923 | ;; |
8a2fc586 | 4924 | no:yes:* ) |
d911ec67 AK |
4925 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4926 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4927 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4928 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4929 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4930 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4931 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4932 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4933 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4934 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4935 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4936 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4937 | |
ad6254c5 AK |
4938 | ;; |
4939 | esac | |
d911ec67 AK |
4940 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4941 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4942 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4943 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4944 | else |
d911ec67 | 4945 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4946 | fi |
d911ec67 AK |
4947 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4948 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4949 | |
4950 | fi | |
d911ec67 AK |
4951 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4952 | ||
4953 | cat >>confdefs.h <<\_ACEOF | |
4954 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4955 | _ACEOF |
b896caa1 | 4956 | |
80992638 AK |
4957 | fi |
4958 | ||
d8ac0fbc | 4959 | |
d911ec67 AK |
4960 | fi |
4961 | fi | |
d8ac0fbc | 4962 | |
d911ec67 AK |
4963 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4964 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4965 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4966 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4967 | else |
d911ec67 | 4968 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4969 | /* confdefs.h. */ |
4970 | _ACEOF | |
4971 | cat confdefs.h >>conftest.$ac_ext | |
4972 | cat >>conftest.$ac_ext <<_ACEOF | |
4973 | /* end confdefs.h. */ | |
d911ec67 AK |
4974 | #include <stdlib.h> |
4975 | #include <stdarg.h> | |
4976 | #include <string.h> | |
4977 | #include <float.h> | |
4978 | ||
4979 | int | |
4980 | main () | |
4981 | { | |
4982 | ||
4983 | ; | |
4984 | return 0; | |
4985 | } | |
ad6254c5 AK |
4986 | _ACEOF |
4987 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4988 | if { (ac_try="$ac_compile" |
4989 | case "(($ac_try" in | |
4990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4991 | *) ac_try_echo=$ac_try;; | |
4992 | esac | |
ec6a6fbe AK |
4993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4994 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4995 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4996 | ac_status=$? |
8a2fc586 AK |
4997 | grep -v '^ *+' conftest.er1 >conftest.err |
4998 | rm -f conftest.er1 | |
4999 | cat conftest.err >&5 | |
ec6a6fbe | 5000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5001 | (exit $ac_status); } && { |
5002 | test -z "$ac_c_werror_flag" || | |
5003 | test ! -s conftest.err | |
5004 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 5005 | ac_cv_header_stdc=yes |
ad6254c5 | 5006 | else |
ec6a6fbe | 5007 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5008 | sed 's/^/| /' conftest.$ac_ext >&5 |
5009 | ||
d911ec67 | 5010 | ac_cv_header_stdc=no |
ad6254c5 | 5011 | fi |
7a197a62 AK |
5012 | |
5013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5014 | |
d911ec67 AK |
5015 | if test $ac_cv_header_stdc = yes; then |
5016 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5017 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5018 | /* confdefs.h. */ |
5019 | _ACEOF | |
5020 | cat confdefs.h >>conftest.$ac_ext | |
5021 | cat >>conftest.$ac_ext <<_ACEOF | |
5022 | /* end confdefs.h. */ | |
d911ec67 AK |
5023 | #include <string.h> |
5024 | ||
ad6254c5 | 5025 | _ACEOF |
d911ec67 AK |
5026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5027 | $EGREP "memchr" >/dev/null 2>&1; then | |
5028 | : | |
5029 | else | |
5030 | ac_cv_header_stdc=no | |
5031 | fi | |
5032 | rm -f conftest* | |
5033 | ||
5034 | fi | |
5035 | ||
5036 | if test $ac_cv_header_stdc = yes; then | |
5037 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5038 | cat >conftest.$ac_ext <<_ACEOF | |
5039 | /* confdefs.h. */ | |
5040 | _ACEOF | |
5041 | cat confdefs.h >>conftest.$ac_ext | |
5042 | cat >>conftest.$ac_ext <<_ACEOF | |
5043 | /* end confdefs.h. */ | |
5044 | #include <stdlib.h> | |
5045 | ||
5046 | _ACEOF | |
5047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5048 | $EGREP "free" >/dev/null 2>&1; then | |
5049 | : | |
5050 | else | |
5051 | ac_cv_header_stdc=no | |
5052 | fi | |
5053 | rm -f conftest* | |
5054 | ||
5055 | fi | |
5056 | ||
5057 | if test $ac_cv_header_stdc = yes; then | |
5058 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5059 | if test "$cross_compiling" = yes; then | |
5060 | : | |
5061 | else | |
5062 | cat >conftest.$ac_ext <<_ACEOF | |
5063 | /* confdefs.h. */ | |
5064 | _ACEOF | |
5065 | cat confdefs.h >>conftest.$ac_ext | |
5066 | cat >>conftest.$ac_ext <<_ACEOF | |
5067 | /* end confdefs.h. */ | |
5068 | #include <ctype.h> | |
5069 | #include <stdlib.h> | |
5070 | #if ((' ' & 0x0FF) == 0x020) | |
5071 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5072 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5073 | #else | |
5074 | # define ISLOWER(c) \ | |
5075 | (('a' <= (c) && (c) <= 'i') \ | |
5076 | || ('j' <= (c) && (c) <= 'r') \ | |
5077 | || ('s' <= (c) && (c) <= 'z')) | |
5078 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5079 | #endif | |
5080 | ||
5081 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5082 | int | |
5083 | main () | |
5084 | { | |
5085 | int i; | |
5086 | for (i = 0; i < 256; i++) | |
5087 | if (XOR (islower (i), ISLOWER (i)) | |
5088 | || toupper (i) != TOUPPER (i)) | |
5089 | return 2; | |
5090 | return 0; | |
5091 | } | |
5092 | _ACEOF | |
5093 | rm -f conftest$ac_exeext | |
5094 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5095 | case "(($ac_try" in |
5096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5097 | *) ac_try_echo=$ac_try;; | |
5098 | esac | |
ec6a6fbe AK |
5099 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5100 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5101 | (eval "$ac_link") 2>&5 |
5102 | ac_status=$? | |
5103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5104 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5105 | { (case "(($ac_try" in | |
5106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5107 | *) ac_try_echo=$ac_try;; | |
5108 | esac | |
5109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5110 | $as_echo "$ac_try_echo") >&5 | |
5111 | (eval "$ac_try") 2>&5 | |
5112 | ac_status=$? | |
5113 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5114 | (exit $ac_status); }; }; then | |
5115 | : | |
5116 | else | |
5117 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5118 | $as_echo "$as_me: failed program was:" >&5 | |
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5120 | ||
5121 | ( exit $ac_status ) | |
5122 | ac_cv_header_stdc=no | |
5123 | fi | |
5124 | rm -rf conftest.dSYM | |
5125 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5126 | fi | |
5127 | ||
5128 | ||
5129 | fi | |
5130 | fi | |
5131 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5132 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5133 | if test $ac_cv_header_stdc = yes; then | |
5134 | ||
5135 | cat >>confdefs.h <<\_ACEOF | |
5136 | #define STDC_HEADERS 1 | |
5137 | _ACEOF | |
5138 | ||
5139 | fi | |
5140 | ||
5141 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5142 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5143 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5144 | $as_echo_n "(cached) " >&6 | |
5145 | else | |
5146 | cat >conftest.$ac_ext <<_ACEOF | |
5147 | /* confdefs.h. */ | |
5148 | _ACEOF | |
5149 | cat confdefs.h >>conftest.$ac_ext | |
5150 | cat >>conftest.$ac_ext <<_ACEOF | |
5151 | /* end confdefs.h. */ | |
5152 | #include <sys/types.h> | |
5153 | #include <sys/wait.h> | |
5154 | #ifndef WEXITSTATUS | |
5155 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5156 | #endif | |
5157 | #ifndef WIFEXITED | |
5158 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5159 | #endif | |
5160 | ||
5161 | int | |
5162 | main () | |
5163 | { | |
5164 | int s; | |
5165 | wait (&s); | |
5166 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5167 | ; | |
5168 | return 0; | |
5169 | } | |
5170 | _ACEOF | |
5171 | rm -f conftest.$ac_objext | |
5172 | if { (ac_try="$ac_compile" | |
5173 | case "(($ac_try" in | |
5174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5175 | *) ac_try_echo=$ac_try;; | |
5176 | esac | |
5177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5178 | $as_echo "$ac_try_echo") >&5 | |
5179 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5180 | ac_status=$? |
5181 | grep -v '^ *+' conftest.er1 >conftest.err | |
5182 | rm -f conftest.er1 | |
5183 | cat conftest.err >&5 | |
ec6a6fbe | 5184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5185 | (exit $ac_status); } && { |
5186 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5187 | test ! -s conftest.err |
d911ec67 AK |
5188 | } && test -s conftest.$ac_objext; then |
5189 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5190 | else |
ec6a6fbe | 5191 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5192 | sed 's/^/| /' conftest.$ac_ext >&5 |
5193 | ||
d911ec67 | 5194 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5195 | fi |
7a197a62 | 5196 | |
d911ec67 AK |
5197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5198 | fi | |
5199 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5200 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5201 | if test $ac_cv_header_sys_wait_h = yes; then | |
5202 | ||
5203 | cat >>confdefs.h <<\_ACEOF | |
5204 | #define HAVE_SYS_WAIT_H 1 | |
5205 | _ACEOF | |
5206 | ||
5207 | fi | |
5208 | ||
5209 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5210 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5211 | if test "${ac_cv_header_time+set}" = set; then | |
5212 | $as_echo_n "(cached) " >&6 | |
5213 | else | |
5214 | cat >conftest.$ac_ext <<_ACEOF | |
5215 | /* confdefs.h. */ | |
5216 | _ACEOF | |
5217 | cat confdefs.h >>conftest.$ac_ext | |
5218 | cat >>conftest.$ac_ext <<_ACEOF | |
5219 | /* end confdefs.h. */ | |
5220 | #include <sys/types.h> | |
5221 | #include <sys/time.h> | |
5222 | #include <time.h> | |
5223 | ||
5224 | int | |
5225 | main () | |
5226 | { | |
5227 | if ((struct tm *) 0) | |
5228 | return 0; | |
5229 | ; | |
5230 | return 0; | |
5231 | } | |
5232 | _ACEOF | |
5233 | rm -f conftest.$ac_objext | |
5234 | if { (ac_try="$ac_compile" | |
5235 | case "(($ac_try" in | |
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5237 | *) ac_try_echo=$ac_try;; | |
5238 | esac | |
5239 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5240 | $as_echo "$ac_try_echo") >&5 | |
5241 | (eval "$ac_compile") 2>conftest.er1 | |
5242 | ac_status=$? | |
5243 | grep -v '^ *+' conftest.er1 >conftest.err | |
5244 | rm -f conftest.er1 | |
5245 | cat conftest.err >&5 | |
5246 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5247 | (exit $ac_status); } && { | |
5248 | test -z "$ac_c_werror_flag" || | |
5249 | test ! -s conftest.err | |
5250 | } && test -s conftest.$ac_objext; then | |
5251 | ac_cv_header_time=yes | |
5252 | else | |
5253 | $as_echo "$as_me: failed program was:" >&5 | |
5254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5255 | ||
5256 | ac_cv_header_time=no | |
5257 | fi | |
5258 | ||
5259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5260 | fi | |
5261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5262 | $as_echo "$ac_cv_header_time" >&6; } | |
5263 | if test $ac_cv_header_time = yes; then | |
5264 | ||
5265 | cat >>confdefs.h <<\_ACEOF | |
5266 | #define TIME_WITH_SYS_TIME 1 | |
5267 | _ACEOF | |
5268 | ||
5269 | fi | |
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5287 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5288 | sys/wait.h time.h | |
5289 | do | |
5290 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5291 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5292 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5293 | $as_echo_n "checking for $ac_header... " >&6; } | |
5294 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5295 | $as_echo_n "(cached) " >&6 | |
5296 | fi | |
5297 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5298 | $as_echo "$as_val"'` | |
5299 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5300 | $as_echo "$ac_res" >&6; } | |
5301 | else | |
5302 | # Is the header compilable? | |
5303 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5304 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5305 | cat >conftest.$ac_ext <<_ACEOF | |
5306 | /* confdefs.h. */ | |
5307 | _ACEOF | |
5308 | cat confdefs.h >>conftest.$ac_ext | |
5309 | cat >>conftest.$ac_ext <<_ACEOF | |
5310 | /* end confdefs.h. */ | |
5311 | $ac_includes_default | |
5312 | #include <$ac_header> | |
5313 | _ACEOF | |
5314 | rm -f conftest.$ac_objext | |
5315 | if { (ac_try="$ac_compile" | |
5316 | case "(($ac_try" in | |
5317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5318 | *) ac_try_echo=$ac_try;; | |
5319 | esac | |
5320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5321 | $as_echo "$ac_try_echo") >&5 | |
5322 | (eval "$ac_compile") 2>conftest.er1 | |
5323 | ac_status=$? | |
5324 | grep -v '^ *+' conftest.er1 >conftest.err | |
5325 | rm -f conftest.er1 | |
5326 | cat conftest.err >&5 | |
5327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5328 | (exit $ac_status); } && { | |
5329 | test -z "$ac_c_werror_flag" || | |
5330 | test ! -s conftest.err | |
5331 | } && test -s conftest.$ac_objext; then | |
5332 | ac_header_compiler=yes | |
5333 | else | |
5334 | $as_echo "$as_me: failed program was:" >&5 | |
5335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5336 | ||
5337 | ac_header_compiler=no | |
5338 | fi | |
5339 | ||
5340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5341 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5342 | $as_echo "$ac_header_compiler" >&6; } | |
5343 | ||
5344 | # Is the header present? | |
5345 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5346 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5347 | cat >conftest.$ac_ext <<_ACEOF | |
5348 | /* confdefs.h. */ | |
5349 | _ACEOF | |
5350 | cat confdefs.h >>conftest.$ac_ext | |
5351 | cat >>conftest.$ac_ext <<_ACEOF | |
5352 | /* end confdefs.h. */ | |
5353 | #include <$ac_header> | |
5354 | _ACEOF | |
5355 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5356 | case "(($ac_try" in | |
5357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5358 | *) ac_try_echo=$ac_try;; | |
5359 | esac | |
5360 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5361 | $as_echo "$ac_try_echo") >&5 | |
5362 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5363 | ac_status=$? | |
5364 | grep -v '^ *+' conftest.er1 >conftest.err | |
5365 | rm -f conftest.er1 | |
5366 | cat conftest.err >&5 | |
5367 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5368 | (exit $ac_status); } >/dev/null && { | |
5369 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5370 | test ! -s conftest.err | |
5371 | }; then | |
5372 | ac_header_preproc=yes | |
5373 | else | |
5374 | $as_echo "$as_me: failed program was:" >&5 | |
5375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5376 | ||
5377 | ac_header_preproc=no | |
5378 | fi | |
5379 | ||
5380 | rm -f conftest.err conftest.$ac_ext | |
5381 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5382 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5383 | |
5384 | # So? What about this header? | |
8a2fc586 AK |
5385 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5386 | yes:no: ) | |
ec6a6fbe AK |
5387 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5388 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5389 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5390 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5391 | ac_header_preproc=yes |
ad6254c5 | 5392 | ;; |
8a2fc586 | 5393 | no:yes:* ) |
ec6a6fbe AK |
5394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5395 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5397 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5399 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5401 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5403 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5405 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5406 | |
ad6254c5 AK |
5407 | ;; |
5408 | esac | |
d911ec67 AK |
5409 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5410 | $as_echo_n "checking for $ac_header... " >&6; } | |
5411 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5412 | $as_echo_n "(cached) " >&6 | |
5413 | else | |
5414 | eval "$as_ac_Header=\$ac_header_preproc" | |
5415 | fi | |
5416 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5417 | $as_echo "$as_val"'` | |
5418 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5419 | $as_echo "$ac_res" >&6; } | |
5420 | ||
5421 | fi | |
5422 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5423 | $as_echo "$as_val"'` | |
5424 | if test "x$as_val" = x""yes; then | |
5425 | cat >>confdefs.h <<_ACEOF | |
5426 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5427 | _ACEOF | |
5428 | ||
5429 | else | |
5430 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5431 | $as_echo "$as_me: error: bailing out" >&2;} | |
5432 | { (exit 1); exit 1; }; } | |
5433 | fi | |
5434 | ||
5435 | done | |
5436 | ||
5437 | ||
5438 | case "$host_os" in | |
5439 | linux*) | |
5440 | ||
5441 | ||
5442 | ||
5443 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5444 | do | |
5445 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5447 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5448 | $as_echo_n "checking for $ac_header... " >&6; } | |
5449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5450 | $as_echo_n "(cached) " >&6 | |
5451 | fi | |
5452 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5453 | $as_echo "$as_val"'` | |
5454 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5455 | $as_echo "$ac_res" >&6; } | |
5456 | else | |
5457 | # Is the header compilable? | |
5458 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5459 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5460 | cat >conftest.$ac_ext <<_ACEOF | |
5461 | /* confdefs.h. */ | |
5462 | _ACEOF | |
5463 | cat confdefs.h >>conftest.$ac_ext | |
5464 | cat >>conftest.$ac_ext <<_ACEOF | |
5465 | /* end confdefs.h. */ | |
5466 | $ac_includes_default | |
5467 | #include <$ac_header> | |
5468 | _ACEOF | |
5469 | rm -f conftest.$ac_objext | |
5470 | if { (ac_try="$ac_compile" | |
5471 | case "(($ac_try" in | |
5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5473 | *) ac_try_echo=$ac_try;; | |
5474 | esac | |
5475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5476 | $as_echo "$ac_try_echo") >&5 | |
5477 | (eval "$ac_compile") 2>conftest.er1 | |
5478 | ac_status=$? | |
5479 | grep -v '^ *+' conftest.er1 >conftest.err | |
5480 | rm -f conftest.er1 | |
5481 | cat conftest.err >&5 | |
5482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5483 | (exit $ac_status); } && { | |
5484 | test -z "$ac_c_werror_flag" || | |
5485 | test ! -s conftest.err | |
5486 | } && test -s conftest.$ac_objext; then | |
5487 | ac_header_compiler=yes | |
5488 | else | |
5489 | $as_echo "$as_me: failed program was:" >&5 | |
5490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5491 | ||
5492 | ac_header_compiler=no | |
5493 | fi | |
5494 | ||
5495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5496 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5497 | $as_echo "$ac_header_compiler" >&6; } | |
5498 | ||
5499 | # Is the header present? | |
5500 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5501 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5502 | cat >conftest.$ac_ext <<_ACEOF | |
5503 | /* confdefs.h. */ | |
5504 | _ACEOF | |
5505 | cat confdefs.h >>conftest.$ac_ext | |
5506 | cat >>conftest.$ac_ext <<_ACEOF | |
5507 | /* end confdefs.h. */ | |
5508 | #include <$ac_header> | |
5509 | _ACEOF | |
5510 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5511 | case "(($ac_try" in | |
5512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5513 | *) ac_try_echo=$ac_try;; | |
5514 | esac | |
5515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5516 | $as_echo "$ac_try_echo") >&5 | |
5517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5518 | ac_status=$? | |
5519 | grep -v '^ *+' conftest.er1 >conftest.err | |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
5522 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5523 | (exit $ac_status); } >/dev/null && { | |
5524 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5525 | test ! -s conftest.err | |
5526 | }; then | |
5527 | ac_header_preproc=yes | |
5528 | else | |
5529 | $as_echo "$as_me: failed program was:" >&5 | |
5530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5531 | ||
5532 | ac_header_preproc=no | |
5533 | fi | |
5534 | ||
5535 | rm -f conftest.err conftest.$ac_ext | |
5536 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5537 | $as_echo "$ac_header_preproc" >&6; } | |
5538 | ||
5539 | # So? What about this header? | |
5540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5541 | yes:no: ) | |
5542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5543 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5545 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5546 | ac_header_preproc=yes | |
5547 | ;; | |
5548 | no:yes:* ) | |
5549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5550 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5552 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5554 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5556 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5557 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5558 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5559 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5560 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5561 | ||
5562 | ;; | |
5563 | esac | |
5564 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5565 | $as_echo_n "checking for $ac_header... " >&6; } | |
5566 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5567 | $as_echo_n "(cached) " >&6 | |
5568 | else | |
5569 | eval "$as_ac_Header=\$ac_header_preproc" | |
5570 | fi | |
5571 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5572 | $as_echo "$as_val"'` | |
5573 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5574 | $as_echo "$ac_res" >&6; } | |
5575 | ||
5576 | fi | |
5577 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5578 | $as_echo "$as_val"'` | |
5579 | if test "x$as_val" = x""yes; then | |
5580 | cat >>confdefs.h <<_ACEOF | |
5581 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5582 | _ACEOF | |
5583 | ||
5584 | else | |
5585 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5586 | $as_echo "$as_me: error: bailing out" >&2;} | |
5587 | { (exit 1); exit 1; }; } | |
5588 | fi | |
5589 | ||
5590 | done | |
5591 | ;; | |
5592 | darwin*) | |
5593 | ||
5594 | ||
5595 | for ac_header in machine/endian.h sys/disk.h | |
5596 | do | |
5597 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5599 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5600 | $as_echo_n "checking for $ac_header... " >&6; } | |
5601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5602 | $as_echo_n "(cached) " >&6 | |
5603 | fi | |
5604 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5605 | $as_echo "$as_val"'` | |
5606 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5607 | $as_echo "$ac_res" >&6; } | |
5608 | else | |
5609 | # Is the header compilable? | |
5610 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5611 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5612 | cat >conftest.$ac_ext <<_ACEOF | |
5613 | /* confdefs.h. */ | |
5614 | _ACEOF | |
5615 | cat confdefs.h >>conftest.$ac_ext | |
5616 | cat >>conftest.$ac_ext <<_ACEOF | |
5617 | /* end confdefs.h. */ | |
5618 | $ac_includes_default | |
5619 | #include <$ac_header> | |
5620 | _ACEOF | |
5621 | rm -f conftest.$ac_objext | |
5622 | if { (ac_try="$ac_compile" | |
5623 | case "(($ac_try" in | |
5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5625 | *) ac_try_echo=$ac_try;; | |
5626 | esac | |
5627 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5628 | $as_echo "$ac_try_echo") >&5 | |
5629 | (eval "$ac_compile") 2>conftest.er1 | |
5630 | ac_status=$? | |
5631 | grep -v '^ *+' conftest.er1 >conftest.err | |
5632 | rm -f conftest.er1 | |
5633 | cat conftest.err >&5 | |
5634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5635 | (exit $ac_status); } && { | |
5636 | test -z "$ac_c_werror_flag" || | |
5637 | test ! -s conftest.err | |
5638 | } && test -s conftest.$ac_objext; then | |
5639 | ac_header_compiler=yes | |
5640 | else | |
5641 | $as_echo "$as_me: failed program was:" >&5 | |
5642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5643 | ||
5644 | ac_header_compiler=no | |
5645 | fi | |
5646 | ||
5647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5648 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5649 | $as_echo "$ac_header_compiler" >&6; } | |
5650 | ||
5651 | # Is the header present? | |
5652 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5653 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5654 | cat >conftest.$ac_ext <<_ACEOF | |
5655 | /* confdefs.h. */ | |
5656 | _ACEOF | |
5657 | cat confdefs.h >>conftest.$ac_ext | |
5658 | cat >>conftest.$ac_ext <<_ACEOF | |
5659 | /* end confdefs.h. */ | |
5660 | #include <$ac_header> | |
5661 | _ACEOF | |
5662 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5663 | case "(($ac_try" in | |
5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5665 | *) ac_try_echo=$ac_try;; | |
5666 | esac | |
5667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5668 | $as_echo "$ac_try_echo") >&5 | |
5669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5670 | ac_status=$? | |
5671 | grep -v '^ *+' conftest.er1 >conftest.err | |
5672 | rm -f conftest.er1 | |
5673 | cat conftest.err >&5 | |
5674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5675 | (exit $ac_status); } >/dev/null && { | |
5676 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5677 | test ! -s conftest.err | |
5678 | }; then | |
5679 | ac_header_preproc=yes | |
5680 | else | |
5681 | $as_echo "$as_me: failed program was:" >&5 | |
5682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5683 | ||
5684 | ac_header_preproc=no | |
5685 | fi | |
5686 | ||
5687 | rm -f conftest.err conftest.$ac_ext | |
5688 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5689 | $as_echo "$ac_header_preproc" >&6; } | |
5690 | ||
5691 | # So? What about this header? | |
5692 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5693 | yes:no: ) | |
5694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5695 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5697 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5698 | ac_header_preproc=yes | |
5699 | ;; | |
5700 | no:yes:* ) | |
5701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5702 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5704 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5706 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5707 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5708 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5710 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5712 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5713 | ||
5714 | ;; | |
5715 | esac | |
5716 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5717 | $as_echo_n "checking for $ac_header... " >&6; } | |
5718 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5719 | $as_echo_n "(cached) " >&6 | |
5720 | else | |
5721 | eval "$as_ac_Header=\$ac_header_preproc" | |
5722 | fi | |
5723 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5724 | $as_echo "$as_val"'` | |
5725 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5726 | $as_echo "$ac_res" >&6; } | |
5727 | ||
5728 | fi | |
5729 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5730 | $as_echo "$as_val"'` | |
5731 | if test "x$as_val" = x""yes; then | |
5732 | cat >>confdefs.h <<_ACEOF | |
5733 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5734 | _ACEOF | |
5735 | ||
5736 | else | |
5737 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5738 | $as_echo "$as_me: error: bailing out" >&2;} | |
5739 | { (exit 1); exit 1; }; } | |
5740 | fi | |
5741 | ||
5742 | done | |
5743 | ;; | |
5744 | esac | |
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | ||
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
5760 | ||
5761 | ||
5762 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5763 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5764 | sys/types.h unistd.h | |
5765 | do | |
5766 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5768 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5769 | $as_echo_n "checking for $ac_header... " >&6; } | |
5770 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5771 | $as_echo_n "(cached) " >&6 | |
5772 | fi | |
5773 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5774 | $as_echo "$as_val"'` | |
5775 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5776 | $as_echo "$ac_res" >&6; } | |
5777 | else | |
5778 | # Is the header compilable? | |
5779 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5780 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5781 | cat >conftest.$ac_ext <<_ACEOF | |
5782 | /* confdefs.h. */ | |
5783 | _ACEOF | |
5784 | cat confdefs.h >>conftest.$ac_ext | |
5785 | cat >>conftest.$ac_ext <<_ACEOF | |
5786 | /* end confdefs.h. */ | |
5787 | $ac_includes_default | |
5788 | #include <$ac_header> | |
5789 | _ACEOF | |
5790 | rm -f conftest.$ac_objext | |
5791 | if { (ac_try="$ac_compile" | |
5792 | case "(($ac_try" in | |
5793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5794 | *) ac_try_echo=$ac_try;; | |
5795 | esac | |
5796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5797 | $as_echo "$ac_try_echo") >&5 | |
5798 | (eval "$ac_compile") 2>conftest.er1 | |
5799 | ac_status=$? | |
5800 | grep -v '^ *+' conftest.er1 >conftest.err | |
5801 | rm -f conftest.er1 | |
5802 | cat conftest.err >&5 | |
5803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5804 | (exit $ac_status); } && { | |
5805 | test -z "$ac_c_werror_flag" || | |
5806 | test ! -s conftest.err | |
5807 | } && test -s conftest.$ac_objext; then | |
5808 | ac_header_compiler=yes | |
5809 | else | |
5810 | $as_echo "$as_me: failed program was:" >&5 | |
5811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5812 | ||
5813 | ac_header_compiler=no | |
5814 | fi | |
5815 | ||
5816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5817 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5818 | $as_echo "$ac_header_compiler" >&6; } | |
5819 | ||
5820 | # Is the header present? | |
5821 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5822 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5823 | cat >conftest.$ac_ext <<_ACEOF | |
5824 | /* confdefs.h. */ | |
5825 | _ACEOF | |
5826 | cat confdefs.h >>conftest.$ac_ext | |
5827 | cat >>conftest.$ac_ext <<_ACEOF | |
5828 | /* end confdefs.h. */ | |
5829 | #include <$ac_header> | |
5830 | _ACEOF | |
5831 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5832 | case "(($ac_try" in | |
5833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5834 | *) ac_try_echo=$ac_try;; | |
5835 | esac | |
5836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5837 | $as_echo "$ac_try_echo") >&5 | |
5838 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5839 | ac_status=$? | |
5840 | grep -v '^ *+' conftest.er1 >conftest.err | |
5841 | rm -f conftest.er1 | |
5842 | cat conftest.err >&5 | |
5843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5844 | (exit $ac_status); } >/dev/null && { | |
5845 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5846 | test ! -s conftest.err | |
5847 | }; then | |
5848 | ac_header_preproc=yes | |
5849 | else | |
5850 | $as_echo "$as_me: failed program was:" >&5 | |
5851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5852 | ||
5853 | ac_header_preproc=no | |
5854 | fi | |
5855 | ||
5856 | rm -f conftest.err conftest.$ac_ext | |
5857 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5858 | $as_echo "$ac_header_preproc" >&6; } | |
5859 | ||
5860 | # So? What about this header? | |
5861 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5862 | yes:no: ) | |
5863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5864 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5866 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5867 | ac_header_preproc=yes | |
5868 | ;; | |
5869 | no:yes:* ) | |
5870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5871 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5872 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5873 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5875 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5877 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5879 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5881 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5882 | ||
5883 | ;; | |
5884 | esac | |
5885 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5886 | $as_echo_n "checking for $ac_header... " >&6; } | |
5887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5888 | $as_echo_n "(cached) " >&6 | |
5889 | else | |
5890 | eval "$as_ac_Header=\$ac_header_preproc" | |
5891 | fi | |
5892 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5893 | $as_echo "$as_val"'` | |
5894 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5895 | $as_echo "$ac_res" >&6; } | |
5896 | ||
5897 | fi | |
5898 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5899 | $as_echo "$as_val"'` | |
5900 | if test "x$as_val" = x""yes; then | |
5901 | cat >>confdefs.h <<_ACEOF | |
5902 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5903 | _ACEOF | |
5904 | ||
5905 | else | |
5906 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5907 | $as_echo "$as_me: error: bailing out" >&2;} | |
5908 | { (exit 1); exit 1; }; } | |
5909 | fi | |
5910 | ||
5911 | done | |
5912 | ||
5913 | ||
5914 | ||
5915 | for ac_header in termios.h sys/statvfs.h | |
5916 | do | |
5917 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5919 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5920 | $as_echo_n "checking for $ac_header... " >&6; } | |
5921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5922 | $as_echo_n "(cached) " >&6 | |
5923 | fi | |
5924 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5925 | $as_echo "$as_val"'` | |
5926 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5927 | $as_echo "$ac_res" >&6; } | |
5928 | else | |
5929 | # Is the header compilable? | |
5930 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5931 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5932 | cat >conftest.$ac_ext <<_ACEOF | |
5933 | /* confdefs.h. */ | |
5934 | _ACEOF | |
5935 | cat confdefs.h >>conftest.$ac_ext | |
5936 | cat >>conftest.$ac_ext <<_ACEOF | |
5937 | /* end confdefs.h. */ | |
5938 | $ac_includes_default | |
5939 | #include <$ac_header> | |
5940 | _ACEOF | |
5941 | rm -f conftest.$ac_objext | |
5942 | if { (ac_try="$ac_compile" | |
5943 | case "(($ac_try" in | |
5944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5945 | *) ac_try_echo=$ac_try;; | |
5946 | esac | |
5947 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5948 | $as_echo "$ac_try_echo") >&5 | |
5949 | (eval "$ac_compile") 2>conftest.er1 | |
5950 | ac_status=$? | |
5951 | grep -v '^ *+' conftest.er1 >conftest.err | |
5952 | rm -f conftest.er1 | |
5953 | cat conftest.err >&5 | |
5954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5955 | (exit $ac_status); } && { | |
5956 | test -z "$ac_c_werror_flag" || | |
5957 | test ! -s conftest.err | |
5958 | } && test -s conftest.$ac_objext; then | |
5959 | ac_header_compiler=yes | |
5960 | else | |
5961 | $as_echo "$as_me: failed program was:" >&5 | |
5962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5963 | ||
5964 | ac_header_compiler=no | |
5965 | fi | |
5966 | ||
5967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5968 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5969 | $as_echo "$ac_header_compiler" >&6; } | |
5970 | ||
5971 | # Is the header present? | |
5972 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5973 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5974 | cat >conftest.$ac_ext <<_ACEOF | |
5975 | /* confdefs.h. */ | |
5976 | _ACEOF | |
5977 | cat confdefs.h >>conftest.$ac_ext | |
5978 | cat >>conftest.$ac_ext <<_ACEOF | |
5979 | /* end confdefs.h. */ | |
5980 | #include <$ac_header> | |
5981 | _ACEOF | |
5982 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5983 | case "(($ac_try" in | |
5984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5985 | *) ac_try_echo=$ac_try;; | |
5986 | esac | |
5987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5988 | $as_echo "$ac_try_echo") >&5 | |
5989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5990 | ac_status=$? | |
5991 | grep -v '^ *+' conftest.er1 >conftest.err | |
5992 | rm -f conftest.er1 | |
5993 | cat conftest.err >&5 | |
5994 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5995 | (exit $ac_status); } >/dev/null && { | |
5996 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5997 | test ! -s conftest.err | |
5998 | }; then | |
5999 | ac_header_preproc=yes | |
6000 | else | |
6001 | $as_echo "$as_me: failed program was:" >&5 | |
6002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6003 | ||
6004 | ac_header_preproc=no | |
6005 | fi | |
6006 | ||
6007 | rm -f conftest.err conftest.$ac_ext | |
6008 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6009 | $as_echo "$ac_header_preproc" >&6; } | |
6010 | ||
6011 | # So? What about this header? | |
6012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6013 | yes:no: ) | |
6014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6015 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6017 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6018 | ac_header_preproc=yes | |
6019 | ;; | |
6020 | no:yes:* ) | |
6021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6022 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6024 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6026 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6028 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6030 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6032 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6033 | ||
6034 | ;; | |
6035 | esac | |
6036 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6037 | $as_echo_n "checking for $ac_header... " >&6; } | |
6038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6039 | $as_echo_n "(cached) " >&6 | |
6040 | else | |
6041 | eval "$as_ac_Header=\$ac_header_preproc" | |
6042 | fi | |
6043 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6044 | $as_echo "$as_val"'` | |
6045 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6046 | $as_echo "$ac_res" >&6; } | |
6047 | ||
6048 | fi | |
6049 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6050 | $as_echo "$as_val"'` | |
6051 | if test "x$as_val" = x""yes; then | |
6052 | cat >>confdefs.h <<_ACEOF | |
6053 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6054 | _ACEOF | |
6055 | ||
6056 | fi | |
6057 | ||
6058 | done | |
6059 | ||
6060 | ||
6061 | ################################################################################ | |
6062 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6063 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6064 | if test "${ac_cv_c_const+set}" = set; then | |
6065 | $as_echo_n "(cached) " >&6 | |
6066 | else | |
6067 | cat >conftest.$ac_ext <<_ACEOF | |
6068 | /* confdefs.h. */ | |
6069 | _ACEOF | |
6070 | cat confdefs.h >>conftest.$ac_ext | |
6071 | cat >>conftest.$ac_ext <<_ACEOF | |
6072 | /* end confdefs.h. */ | |
6073 | ||
6074 | int | |
6075 | main () | |
6076 | { | |
6077 | /* FIXME: Include the comments suggested by Paul. */ | |
6078 | #ifndef __cplusplus | |
6079 | /* Ultrix mips cc rejects this. */ | |
6080 | typedef int charset[2]; | |
6081 | const charset cs; | |
6082 | /* SunOS 4.1.1 cc rejects this. */ | |
6083 | char const *const *pcpcc; | |
6084 | char **ppc; | |
6085 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6086 | struct point {int x, y;}; | |
6087 | static struct point const zero = {0,0}; | |
6088 | /* AIX XL C 1.02.0.0 rejects this. | |
6089 | It does not let you subtract one const X* pointer from another in | |
6090 | an arm of an if-expression whose if-part is not a constant | |
6091 | expression */ | |
6092 | const char *g = "string"; | |
6093 | pcpcc = &g + (g ? g-g : 0); | |
6094 | /* HPUX 7.0 cc rejects these. */ | |
6095 | ++pcpcc; | |
6096 | ppc = (char**) pcpcc; | |
6097 | pcpcc = (char const *const *) ppc; | |
6098 | { /* SCO 3.2v4 cc rejects this. */ | |
6099 | char *t; | |
6100 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6101 | ||
6102 | *t++ = 0; | |
6103 | if (s) return 0; | |
6104 | } | |
6105 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6106 | int x[] = {25, 17}; | |
6107 | const int *foo = &x[0]; | |
6108 | ++foo; | |
6109 | } | |
6110 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6111 | typedef const int *iptr; | |
6112 | iptr p = 0; | |
6113 | ++p; | |
6114 | } | |
6115 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6116 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6117 | struct s { int j; const int *ap[3]; }; | |
6118 | struct s *b; b->j = 5; | |
6119 | } | |
6120 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6121 | const int foo = 10; | |
6122 | if (!foo) return 0; | |
6123 | } | |
6124 | return !cs[0] && !zero.x; | |
6125 | #endif | |
6126 | ||
6127 | ; | |
6128 | return 0; | |
6129 | } | |
6130 | _ACEOF | |
6131 | rm -f conftest.$ac_objext | |
6132 | if { (ac_try="$ac_compile" | |
6133 | case "(($ac_try" in | |
6134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6135 | *) ac_try_echo=$ac_try;; | |
6136 | esac | |
6137 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6138 | $as_echo "$ac_try_echo") >&5 | |
6139 | (eval "$ac_compile") 2>conftest.er1 | |
6140 | ac_status=$? | |
6141 | grep -v '^ *+' conftest.er1 >conftest.err | |
6142 | rm -f conftest.er1 | |
6143 | cat conftest.err >&5 | |
6144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6145 | (exit $ac_status); } && { | |
6146 | test -z "$ac_c_werror_flag" || | |
6147 | test ! -s conftest.err | |
6148 | } && test -s conftest.$ac_objext; then | |
6149 | ac_cv_c_const=yes | |
6150 | else | |
6151 | $as_echo "$as_me: failed program was:" >&5 | |
6152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6153 | ||
6154 | ac_cv_c_const=no | |
6155 | fi | |
6156 | ||
6157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6158 | fi | |
6159 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6160 | $as_echo "$ac_cv_c_const" >&6; } | |
6161 | if test $ac_cv_c_const = no; then | |
6162 | ||
6163 | cat >>confdefs.h <<\_ACEOF | |
6164 | #define const /**/ | |
6165 | _ACEOF | |
6166 | ||
6167 | fi | |
6168 | ||
6169 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6170 | $as_echo_n "checking for inline... " >&6; } | |
6171 | if test "${ac_cv_c_inline+set}" = set; then | |
6172 | $as_echo_n "(cached) " >&6 | |
6173 | else | |
6174 | ac_cv_c_inline=no | |
6175 | for ac_kw in inline __inline__ __inline; do | |
6176 | cat >conftest.$ac_ext <<_ACEOF | |
6177 | /* confdefs.h. */ | |
6178 | _ACEOF | |
6179 | cat confdefs.h >>conftest.$ac_ext | |
6180 | cat >>conftest.$ac_ext <<_ACEOF | |
6181 | /* end confdefs.h. */ | |
6182 | #ifndef __cplusplus | |
6183 | typedef int foo_t; | |
6184 | static $ac_kw foo_t static_foo () {return 0; } | |
6185 | $ac_kw foo_t foo () {return 0; } | |
6186 | #endif | |
6187 | ||
6188 | _ACEOF | |
6189 | rm -f conftest.$ac_objext | |
6190 | if { (ac_try="$ac_compile" | |
6191 | case "(($ac_try" in | |
6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6193 | *) ac_try_echo=$ac_try;; | |
6194 | esac | |
6195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6196 | $as_echo "$ac_try_echo") >&5 | |
6197 | (eval "$ac_compile") 2>conftest.er1 | |
6198 | ac_status=$? | |
6199 | grep -v '^ *+' conftest.er1 >conftest.err | |
6200 | rm -f conftest.er1 | |
6201 | cat conftest.err >&5 | |
6202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6203 | (exit $ac_status); } && { | |
6204 | test -z "$ac_c_werror_flag" || | |
6205 | test ! -s conftest.err | |
6206 | } && test -s conftest.$ac_objext; then | |
6207 | ac_cv_c_inline=$ac_kw | |
6208 | else | |
6209 | $as_echo "$as_me: failed program was:" >&5 | |
6210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6211 | ||
6212 | ||
6213 | fi | |
6214 | ||
6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6216 | test "$ac_cv_c_inline" != no && break | |
6217 | done | |
6218 | ||
6219 | fi | |
6220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6221 | $as_echo "$ac_cv_c_inline" >&6; } | |
6222 | ||
6223 | ||
6224 | case $ac_cv_c_inline in | |
6225 | inline | yes) ;; | |
6226 | *) | |
6227 | case $ac_cv_c_inline in | |
6228 | no) ac_val=;; | |
6229 | *) ac_val=$ac_cv_c_inline;; | |
6230 | esac | |
6231 | cat >>confdefs.h <<_ACEOF | |
6232 | #ifndef __cplusplus | |
6233 | #define inline $ac_val | |
6234 | #endif | |
6235 | _ACEOF | |
6236 | ;; | |
6237 | esac | |
6238 | ||
6239 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6240 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6241 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6242 | $as_echo_n "(cached) " >&6 | |
6243 | else | |
6244 | cat >conftest.$ac_ext <<_ACEOF | |
6245 | /* confdefs.h. */ | |
6246 | _ACEOF | |
6247 | cat confdefs.h >>conftest.$ac_ext | |
6248 | cat >>conftest.$ac_ext <<_ACEOF | |
6249 | /* end confdefs.h. */ | |
6250 | $ac_includes_default | |
6251 | int | |
6252 | main () | |
6253 | { | |
6254 | static struct stat ac_aggr; | |
6255 | if (ac_aggr.st_rdev) | |
6256 | return 0; | |
6257 | ; | |
6258 | return 0; | |
6259 | } | |
6260 | _ACEOF | |
6261 | rm -f conftest.$ac_objext | |
6262 | if { (ac_try="$ac_compile" | |
6263 | case "(($ac_try" in | |
6264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6265 | *) ac_try_echo=$ac_try;; | |
6266 | esac | |
6267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6268 | $as_echo "$ac_try_echo") >&5 | |
6269 | (eval "$ac_compile") 2>conftest.er1 | |
6270 | ac_status=$? | |
6271 | grep -v '^ *+' conftest.er1 >conftest.err | |
6272 | rm -f conftest.er1 | |
6273 | cat conftest.err >&5 | |
6274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6275 | (exit $ac_status); } && { | |
6276 | test -z "$ac_c_werror_flag" || | |
6277 | test ! -s conftest.err | |
6278 | } && test -s conftest.$ac_objext; then | |
6279 | ac_cv_member_struct_stat_st_rdev=yes | |
6280 | else | |
6281 | $as_echo "$as_me: failed program was:" >&5 | |
6282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6283 | ||
6284 | cat >conftest.$ac_ext <<_ACEOF | |
6285 | /* confdefs.h. */ | |
6286 | _ACEOF | |
6287 | cat confdefs.h >>conftest.$ac_ext | |
6288 | cat >>conftest.$ac_ext <<_ACEOF | |
6289 | /* end confdefs.h. */ | |
6290 | $ac_includes_default | |
6291 | int | |
6292 | main () | |
6293 | { | |
6294 | static struct stat ac_aggr; | |
6295 | if (sizeof ac_aggr.st_rdev) | |
6296 | return 0; | |
6297 | ; | |
6298 | return 0; | |
6299 | } | |
6300 | _ACEOF | |
6301 | rm -f conftest.$ac_objext | |
6302 | if { (ac_try="$ac_compile" | |
6303 | case "(($ac_try" in | |
6304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6305 | *) ac_try_echo=$ac_try;; | |
6306 | esac | |
6307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6308 | $as_echo "$ac_try_echo") >&5 | |
6309 | (eval "$ac_compile") 2>conftest.er1 | |
6310 | ac_status=$? | |
6311 | grep -v '^ *+' conftest.er1 >conftest.err | |
6312 | rm -f conftest.er1 | |
6313 | cat conftest.err >&5 | |
6314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6315 | (exit $ac_status); } && { | |
6316 | test -z "$ac_c_werror_flag" || | |
6317 | test ! -s conftest.err | |
6318 | } && test -s conftest.$ac_objext; then | |
6319 | ac_cv_member_struct_stat_st_rdev=yes | |
6320 | else | |
6321 | $as_echo "$as_me: failed program was:" >&5 | |
6322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6323 | ||
6324 | ac_cv_member_struct_stat_st_rdev=no | |
6325 | fi | |
6326 | ||
6327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6328 | fi | |
6329 | ||
6330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6331 | fi | |
6332 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6333 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6334 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6335 | ||
6336 | cat >>confdefs.h <<_ACEOF | |
6337 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6338 | _ACEOF | |
6339 | ||
6340 | ||
6341 | fi | |
6342 | ||
6343 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6344 | $as_echo_n "checking for off_t... " >&6; } | |
6345 | if test "${ac_cv_type_off_t+set}" = set; then | |
6346 | $as_echo_n "(cached) " >&6 | |
6347 | else | |
6348 | ac_cv_type_off_t=no | |
6349 | cat >conftest.$ac_ext <<_ACEOF | |
6350 | /* confdefs.h. */ | |
6351 | _ACEOF | |
6352 | cat confdefs.h >>conftest.$ac_ext | |
6353 | cat >>conftest.$ac_ext <<_ACEOF | |
6354 | /* end confdefs.h. */ | |
6355 | $ac_includes_default | |
6356 | int | |
6357 | main () | |
6358 | { | |
6359 | if (sizeof (off_t)) | |
6360 | return 0; | |
6361 | ; | |
6362 | return 0; | |
6363 | } | |
6364 | _ACEOF | |
6365 | rm -f conftest.$ac_objext | |
6366 | if { (ac_try="$ac_compile" | |
6367 | case "(($ac_try" in | |
6368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6369 | *) ac_try_echo=$ac_try;; | |
6370 | esac | |
6371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6372 | $as_echo "$ac_try_echo") >&5 | |
6373 | (eval "$ac_compile") 2>conftest.er1 | |
6374 | ac_status=$? | |
6375 | grep -v '^ *+' conftest.er1 >conftest.err | |
6376 | rm -f conftest.er1 | |
6377 | cat conftest.err >&5 | |
6378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6379 | (exit $ac_status); } && { | |
6380 | test -z "$ac_c_werror_flag" || | |
6381 | test ! -s conftest.err | |
6382 | } && test -s conftest.$ac_objext; then | |
6383 | cat >conftest.$ac_ext <<_ACEOF | |
6384 | /* confdefs.h. */ | |
6385 | _ACEOF | |
6386 | cat confdefs.h >>conftest.$ac_ext | |
6387 | cat >>conftest.$ac_ext <<_ACEOF | |
6388 | /* end confdefs.h. */ | |
6389 | $ac_includes_default | |
6390 | int | |
6391 | main () | |
6392 | { | |
6393 | if (sizeof ((off_t))) | |
6394 | return 0; | |
6395 | ; | |
6396 | return 0; | |
6397 | } | |
6398 | _ACEOF | |
6399 | rm -f conftest.$ac_objext | |
6400 | if { (ac_try="$ac_compile" | |
6401 | case "(($ac_try" in | |
6402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6403 | *) ac_try_echo=$ac_try;; | |
6404 | esac | |
6405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6406 | $as_echo "$ac_try_echo") >&5 | |
6407 | (eval "$ac_compile") 2>conftest.er1 | |
6408 | ac_status=$? | |
6409 | grep -v '^ *+' conftest.er1 >conftest.err | |
6410 | rm -f conftest.er1 | |
6411 | cat conftest.err >&5 | |
6412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6413 | (exit $ac_status); } && { | |
6414 | test -z "$ac_c_werror_flag" || | |
6415 | test ! -s conftest.err | |
6416 | } && test -s conftest.$ac_objext; then | |
6417 | : | |
6418 | else | |
6419 | $as_echo "$as_me: failed program was:" >&5 | |
6420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6421 | ||
6422 | ac_cv_type_off_t=yes | |
6423 | fi | |
6424 | ||
6425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6426 | else | |
6427 | $as_echo "$as_me: failed program was:" >&5 | |
6428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6429 | ||
6430 | ||
6431 | fi | |
6432 | ||
6433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6434 | fi | |
6435 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6436 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6437 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6438 | : | |
6439 | else | |
6440 | ||
6441 | cat >>confdefs.h <<_ACEOF | |
6442 | #define off_t long int | |
6443 | _ACEOF | |
6444 | ||
6445 | fi | |
6446 | ||
6447 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6448 | $as_echo_n "checking for pid_t... " >&6; } | |
6449 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6450 | $as_echo_n "(cached) " >&6 | |
6451 | else | |
6452 | ac_cv_type_pid_t=no | |
6453 | cat >conftest.$ac_ext <<_ACEOF | |
6454 | /* confdefs.h. */ | |
6455 | _ACEOF | |
6456 | cat confdefs.h >>conftest.$ac_ext | |
6457 | cat >>conftest.$ac_ext <<_ACEOF | |
6458 | /* end confdefs.h. */ | |
6459 | $ac_includes_default | |
6460 | int | |
6461 | main () | |
6462 | { | |
6463 | if (sizeof (pid_t)) | |
6464 | return 0; | |
6465 | ; | |
6466 | return 0; | |
6467 | } | |
6468 | _ACEOF | |
6469 | rm -f conftest.$ac_objext | |
6470 | if { (ac_try="$ac_compile" | |
6471 | case "(($ac_try" in | |
6472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6473 | *) ac_try_echo=$ac_try;; | |
6474 | esac | |
6475 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6476 | $as_echo "$ac_try_echo") >&5 | |
6477 | (eval "$ac_compile") 2>conftest.er1 | |
6478 | ac_status=$? | |
6479 | grep -v '^ *+' conftest.er1 >conftest.err | |
6480 | rm -f conftest.er1 | |
6481 | cat conftest.err >&5 | |
6482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6483 | (exit $ac_status); } && { | |
6484 | test -z "$ac_c_werror_flag" || | |
6485 | test ! -s conftest.err | |
6486 | } && test -s conftest.$ac_objext; then | |
6487 | cat >conftest.$ac_ext <<_ACEOF | |
6488 | /* confdefs.h. */ | |
6489 | _ACEOF | |
6490 | cat confdefs.h >>conftest.$ac_ext | |
6491 | cat >>conftest.$ac_ext <<_ACEOF | |
6492 | /* end confdefs.h. */ | |
6493 | $ac_includes_default | |
6494 | int | |
6495 | main () | |
6496 | { | |
6497 | if (sizeof ((pid_t))) | |
6498 | return 0; | |
6499 | ; | |
6500 | return 0; | |
6501 | } | |
6502 | _ACEOF | |
6503 | rm -f conftest.$ac_objext | |
6504 | if { (ac_try="$ac_compile" | |
6505 | case "(($ac_try" in | |
6506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6507 | *) ac_try_echo=$ac_try;; | |
6508 | esac | |
6509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6510 | $as_echo "$ac_try_echo") >&5 | |
6511 | (eval "$ac_compile") 2>conftest.er1 | |
6512 | ac_status=$? | |
6513 | grep -v '^ *+' conftest.er1 >conftest.err | |
6514 | rm -f conftest.er1 | |
6515 | cat conftest.err >&5 | |
6516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6517 | (exit $ac_status); } && { | |
6518 | test -z "$ac_c_werror_flag" || | |
6519 | test ! -s conftest.err | |
6520 | } && test -s conftest.$ac_objext; then | |
6521 | : | |
6522 | else | |
6523 | $as_echo "$as_me: failed program was:" >&5 | |
6524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6525 | ||
6526 | ac_cv_type_pid_t=yes | |
6527 | fi | |
6528 | ||
6529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6530 | else | |
6531 | $as_echo "$as_me: failed program was:" >&5 | |
6532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6533 | ||
6534 | ||
6535 | fi | |
6536 | ||
6537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6538 | fi | |
6539 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6540 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6541 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6542 | : | |
6543 | else | |
6544 | ||
6545 | cat >>confdefs.h <<_ACEOF | |
6546 | #define pid_t int | |
6547 | _ACEOF | |
6548 | ||
6549 | fi | |
6550 | ||
6551 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6552 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6553 | if test "${ac_cv_type_signal+set}" = set; then | |
6554 | $as_echo_n "(cached) " >&6 | |
6555 | else | |
6556 | cat >conftest.$ac_ext <<_ACEOF | |
6557 | /* confdefs.h. */ | |
6558 | _ACEOF | |
6559 | cat confdefs.h >>conftest.$ac_ext | |
6560 | cat >>conftest.$ac_ext <<_ACEOF | |
6561 | /* end confdefs.h. */ | |
6562 | #include <sys/types.h> | |
6563 | #include <signal.h> | |
6564 | ||
6565 | int | |
6566 | main () | |
6567 | { | |
6568 | return *(signal (0, 0)) (0) == 1; | |
6569 | ; | |
6570 | return 0; | |
6571 | } | |
6572 | _ACEOF | |
6573 | rm -f conftest.$ac_objext | |
6574 | if { (ac_try="$ac_compile" | |
6575 | case "(($ac_try" in | |
6576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6577 | *) ac_try_echo=$ac_try;; | |
6578 | esac | |
6579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6580 | $as_echo "$ac_try_echo") >&5 | |
6581 | (eval "$ac_compile") 2>conftest.er1 | |
6582 | ac_status=$? | |
6583 | grep -v '^ *+' conftest.er1 >conftest.err | |
6584 | rm -f conftest.er1 | |
6585 | cat conftest.err >&5 | |
6586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6587 | (exit $ac_status); } && { | |
6588 | test -z "$ac_c_werror_flag" || | |
6589 | test ! -s conftest.err | |
6590 | } && test -s conftest.$ac_objext; then | |
6591 | ac_cv_type_signal=int | |
6592 | else | |
6593 | $as_echo "$as_me: failed program was:" >&5 | |
6594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6595 | ||
6596 | ac_cv_type_signal=void | |
6597 | fi | |
6598 | ||
6599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6600 | fi | |
6601 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6602 | $as_echo "$ac_cv_type_signal" >&6; } | |
6603 | ||
6604 | cat >>confdefs.h <<_ACEOF | |
6605 | #define RETSIGTYPE $ac_cv_type_signal | |
6606 | _ACEOF | |
6607 | ||
6608 | ||
6609 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6610 | $as_echo_n "checking for size_t... " >&6; } | |
6611 | if test "${ac_cv_type_size_t+set}" = set; then | |
6612 | $as_echo_n "(cached) " >&6 | |
6613 | else | |
6614 | ac_cv_type_size_t=no | |
6615 | cat >conftest.$ac_ext <<_ACEOF | |
6616 | /* confdefs.h. */ | |
6617 | _ACEOF | |
6618 | cat confdefs.h >>conftest.$ac_ext | |
6619 | cat >>conftest.$ac_ext <<_ACEOF | |
6620 | /* end confdefs.h. */ | |
6621 | $ac_includes_default | |
6622 | int | |
6623 | main () | |
6624 | { | |
6625 | if (sizeof (size_t)) | |
6626 | return 0; | |
6627 | ; | |
6628 | return 0; | |
6629 | } | |
6630 | _ACEOF | |
6631 | rm -f conftest.$ac_objext | |
6632 | if { (ac_try="$ac_compile" | |
6633 | case "(($ac_try" in | |
6634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6635 | *) ac_try_echo=$ac_try;; | |
6636 | esac | |
6637 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6638 | $as_echo "$ac_try_echo") >&5 | |
6639 | (eval "$ac_compile") 2>conftest.er1 | |
6640 | ac_status=$? | |
6641 | grep -v '^ *+' conftest.er1 >conftest.err | |
6642 | rm -f conftest.er1 | |
6643 | cat conftest.err >&5 | |
6644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6645 | (exit $ac_status); } && { | |
6646 | test -z "$ac_c_werror_flag" || | |
6647 | test ! -s conftest.err | |
6648 | } && test -s conftest.$ac_objext; then | |
6649 | cat >conftest.$ac_ext <<_ACEOF | |
6650 | /* confdefs.h. */ | |
6651 | _ACEOF | |
6652 | cat confdefs.h >>conftest.$ac_ext | |
6653 | cat >>conftest.$ac_ext <<_ACEOF | |
6654 | /* end confdefs.h. */ | |
6655 | $ac_includes_default | |
6656 | int | |
6657 | main () | |
6658 | { | |
6659 | if (sizeof ((size_t))) | |
6660 | return 0; | |
6661 | ; | |
6662 | return 0; | |
6663 | } | |
6664 | _ACEOF | |
6665 | rm -f conftest.$ac_objext | |
6666 | if { (ac_try="$ac_compile" | |
6667 | case "(($ac_try" in | |
6668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6669 | *) ac_try_echo=$ac_try;; | |
6670 | esac | |
6671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6672 | $as_echo "$ac_try_echo") >&5 | |
6673 | (eval "$ac_compile") 2>conftest.er1 | |
6674 | ac_status=$? | |
6675 | grep -v '^ *+' conftest.er1 >conftest.err | |
6676 | rm -f conftest.er1 | |
6677 | cat conftest.err >&5 | |
6678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6679 | (exit $ac_status); } && { | |
6680 | test -z "$ac_c_werror_flag" || | |
6681 | test ! -s conftest.err | |
6682 | } && test -s conftest.$ac_objext; then | |
6683 | : | |
ad6254c5 | 6684 | else |
d911ec67 AK |
6685 | $as_echo "$as_me: failed program was:" >&5 |
6686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6687 | |
d911ec67 | 6688 | ac_cv_type_size_t=yes |
ad6254c5 | 6689 | fi |
4922197a | 6690 | |
d911ec67 | 6691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6692 | else |
d911ec67 AK |
6693 | $as_echo "$as_me: failed program was:" >&5 |
6694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6695 | |
6696 | ||
d911ec67 | 6697 | fi |
d0191583 | 6698 | |
d911ec67 AK |
6699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6700 | fi | |
6701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6702 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6703 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6704 | : | |
6705 | else | |
d0191583 | 6706 | |
d911ec67 AK |
6707 | cat >>confdefs.h <<_ACEOF |
6708 | #define size_t unsigned int | |
6709 | _ACEOF | |
d0191583 | 6710 | |
d911ec67 | 6711 | fi |
d0191583 | 6712 | |
d911ec67 AK |
6713 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6714 | $as_echo_n "checking for mode_t... " >&6; } | |
6715 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6716 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6717 | else |
d911ec67 | 6718 | ac_cv_type_mode_t=no |
ad6254c5 | 6719 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6720 | /* confdefs.h. */ |
6721 | _ACEOF | |
6722 | cat confdefs.h >>conftest.$ac_ext | |
6723 | cat >>conftest.$ac_ext <<_ACEOF | |
6724 | /* end confdefs.h. */ | |
6725 | $ac_includes_default | |
d911ec67 AK |
6726 | int |
6727 | main () | |
6728 | { | |
6729 | if (sizeof (mode_t)) | |
6730 | return 0; | |
6731 | ; | |
6732 | return 0; | |
6733 | } | |
ad6254c5 AK |
6734 | _ACEOF |
6735 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6736 | if { (ac_try="$ac_compile" |
6737 | case "(($ac_try" in | |
6738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6739 | *) ac_try_echo=$ac_try;; | |
6740 | esac | |
ec6a6fbe AK |
6741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6742 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6743 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6744 | ac_status=$? |
8a2fc586 AK |
6745 | grep -v '^ *+' conftest.er1 >conftest.err |
6746 | rm -f conftest.er1 | |
6747 | cat conftest.err >&5 | |
ec6a6fbe | 6748 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6749 | (exit $ac_status); } && { |
6750 | test -z "$ac_c_werror_flag" || | |
6751 | test ! -s conftest.err | |
6752 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6753 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6754 | /* confdefs.h. */ |
6755 | _ACEOF | |
6756 | cat confdefs.h >>conftest.$ac_ext | |
6757 | cat >>conftest.$ac_ext <<_ACEOF | |
6758 | /* end confdefs.h. */ | |
d911ec67 AK |
6759 | $ac_includes_default |
6760 | int | |
6761 | main () | |
6762 | { | |
6763 | if (sizeof ((mode_t))) | |
6764 | return 0; | |
6765 | ; | |
6766 | return 0; | |
6767 | } | |
ad6254c5 | 6768 | _ACEOF |
d911ec67 AK |
6769 | rm -f conftest.$ac_objext |
6770 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6771 | case "(($ac_try" in |
6772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6773 | *) ac_try_echo=$ac_try;; | |
6774 | esac | |
ec6a6fbe AK |
6775 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6776 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6777 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6778 | ac_status=$? |
6779 | grep -v '^ *+' conftest.er1 >conftest.err | |
6780 | rm -f conftest.er1 | |
6781 | cat conftest.err >&5 | |
ec6a6fbe | 6782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6783 | (exit $ac_status); } && { |
6784 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6785 | test ! -s conftest.err |
d911ec67 AK |
6786 | } && test -s conftest.$ac_objext; then |
6787 | : | |
ad6254c5 | 6788 | else |
ec6a6fbe | 6789 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
6791 | ||
d911ec67 | 6792 | ac_cv_type_mode_t=yes |
ad6254c5 | 6793 | fi |
7a197a62 | 6794 | |
d911ec67 AK |
6795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6796 | else | |
6797 | $as_echo "$as_me: failed program was:" >&5 | |
6798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6799 | |
7a197a62 | 6800 | |
80992638 AK |
6801 | fi |
6802 | ||
d911ec67 | 6803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6804 | fi |
d911ec67 AK |
6805 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6806 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6807 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6808 | : | |
795ca3e5 | 6809 | else |
80992638 | 6810 | |
d911ec67 AK |
6811 | cat >>confdefs.h <<_ACEOF |
6812 | #define mode_t int | |
6813 | _ACEOF | |
ad6254c5 | 6814 | |
d911ec67 | 6815 | fi |
795ca3e5 | 6816 | |
d0191583 | 6817 | |
d911ec67 AK |
6818 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6819 | $as_echo_n "checking for int8_t... " >&6; } | |
6820 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6821 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6822 | else |
d911ec67 AK |
6823 | ac_cv_c_int8_t=no |
6824 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6825 | 'long long int' 'short int' 'signed char'; do | |
6826 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6827 | /* confdefs.h. */ |
6828 | _ACEOF | |
6829 | cat confdefs.h >>conftest.$ac_ext | |
6830 | cat >>conftest.$ac_ext <<_ACEOF | |
6831 | /* end confdefs.h. */ | |
6832 | $ac_includes_default | |
d911ec67 AK |
6833 | int |
6834 | main () | |
6835 | { | |
6836 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6837 | test_array [0] = 0 | |
6838 | ||
6839 | ; | |
6840 | return 0; | |
6841 | } | |
ad6254c5 AK |
6842 | _ACEOF |
6843 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6844 | if { (ac_try="$ac_compile" |
6845 | case "(($ac_try" in | |
6846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6847 | *) ac_try_echo=$ac_try;; | |
6848 | esac | |
ec6a6fbe AK |
6849 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6850 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6851 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6852 | ac_status=$? |
8a2fc586 AK |
6853 | grep -v '^ *+' conftest.er1 >conftest.err |
6854 | rm -f conftest.er1 | |
6855 | cat conftest.err >&5 | |
ec6a6fbe | 6856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6857 | (exit $ac_status); } && { |
6858 | test -z "$ac_c_werror_flag" || | |
6859 | test ! -s conftest.err | |
6860 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6861 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6862 | /* confdefs.h. */ |
6863 | _ACEOF | |
6864 | cat confdefs.h >>conftest.$ac_ext | |
6865 | cat >>conftest.$ac_ext <<_ACEOF | |
6866 | /* end confdefs.h. */ | |
d911ec67 AK |
6867 | $ac_includes_default |
6868 | int | |
6869 | main () | |
6870 | { | |
6871 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6872 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6873 | test_array [0] = 0 | |
6874 | ||
6875 | ; | |
6876 | return 0; | |
6877 | } | |
ad6254c5 | 6878 | _ACEOF |
d911ec67 AK |
6879 | rm -f conftest.$ac_objext |
6880 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6881 | case "(($ac_try" in |
6882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6883 | *) ac_try_echo=$ac_try;; | |
6884 | esac | |
ec6a6fbe AK |
6885 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6886 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6887 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6888 | ac_status=$? |
6889 | grep -v '^ *+' conftest.er1 >conftest.err | |
6890 | rm -f conftest.er1 | |
6891 | cat conftest.err >&5 | |
ec6a6fbe | 6892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6893 | (exit $ac_status); } && { |
6894 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6895 | test ! -s conftest.err |
d911ec67 AK |
6896 | } && test -s conftest.$ac_objext; then |
6897 | : | |
ad6254c5 | 6898 | else |
ec6a6fbe | 6899 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6900 | sed 's/^/| /' conftest.$ac_ext >&5 |
6901 | ||
d911ec67 AK |
6902 | case $ac_type in |
6903 | int8_t) ac_cv_c_int8_t=yes ;; | |
6904 | *) ac_cv_c_int8_t=$ac_type ;; | |
6905 | esac | |
ad6254c5 | 6906 | |
d911ec67 | 6907 | fi |
7a197a62 | 6908 | |
d911ec67 | 6909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6910 | else |
d911ec67 AK |
6911 | $as_echo "$as_me: failed program was:" >&5 |
6912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6913 | ||
b896caa1 | 6914 | |
ad6254c5 | 6915 | fi |
ad6254c5 | 6916 | |
d911ec67 AK |
6917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6918 | test "$ac_cv_c_int8_t" != no && break | |
6919 | done | |
80992638 | 6920 | fi |
d911ec67 AK |
6921 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6922 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6923 | case $ac_cv_c_int8_t in #( | |
6924 | no|yes) ;; #( | |
6925 | *) | |
80992638 | 6926 | |
d911ec67 AK |
6927 | cat >>confdefs.h <<_ACEOF |
6928 | #define int8_t $ac_cv_c_int8_t | |
6929 | _ACEOF | |
6930 | ;; | |
6931 | esac | |
d0191583 | 6932 | |
d3c8211f | 6933 | |
d911ec67 AK |
6934 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6935 | $as_echo_n "checking for int16_t... " >&6; } | |
6936 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6937 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6938 | else |
d911ec67 AK |
6939 | ac_cv_c_int16_t=no |
6940 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6941 | 'long long int' 'short int' 'signed char'; do | |
6942 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6943 | /* confdefs.h. */ |
6944 | _ACEOF | |
6945 | cat confdefs.h >>conftest.$ac_ext | |
6946 | cat >>conftest.$ac_ext <<_ACEOF | |
6947 | /* end confdefs.h. */ | |
d911ec67 | 6948 | $ac_includes_default |
ad6254c5 AK |
6949 | int |
6950 | main () | |
6951 | { | |
d911ec67 AK |
6952 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6953 | test_array [0] = 0 | |
ad6254c5 AK |
6954 | |
6955 | ; | |
6956 | return 0; | |
6957 | } | |
6958 | _ACEOF | |
6959 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6960 | if { (ac_try="$ac_compile" |
6961 | case "(($ac_try" in | |
6962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6963 | *) ac_try_echo=$ac_try;; | |
6964 | esac | |
ec6a6fbe AK |
6965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6966 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6967 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6968 | ac_status=$? |
8a2fc586 AK |
6969 | grep -v '^ *+' conftest.er1 >conftest.err |
6970 | rm -f conftest.er1 | |
6971 | cat conftest.err >&5 | |
ec6a6fbe | 6972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6973 | (exit $ac_status); } && { |
6974 | test -z "$ac_c_werror_flag" || | |
6975 | test ! -s conftest.err | |
6976 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6977 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6978 | /* confdefs.h. */ |
6979 | _ACEOF | |
6980 | cat confdefs.h >>conftest.$ac_ext | |
6981 | cat >>conftest.$ac_ext <<_ACEOF | |
6982 | /* end confdefs.h. */ | |
d911ec67 AK |
6983 | $ac_includes_default |
6984 | int | |
6985 | main () | |
6986 | { | |
6987 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6988 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6989 | test_array [0] = 0 | |
80992638 | 6990 | |
d911ec67 AK |
6991 | ; |
6992 | return 0; | |
6993 | } | |
ad6254c5 AK |
6994 | _ACEOF |
6995 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6996 | if { (ac_try="$ac_compile" |
6997 | case "(($ac_try" in | |
6998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6999 | *) ac_try_echo=$ac_try;; | |
7000 | esac | |
ec6a6fbe AK |
7001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7002 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7003 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7004 | ac_status=$? |
8a2fc586 AK |
7005 | grep -v '^ *+' conftest.er1 >conftest.err |
7006 | rm -f conftest.er1 | |
7007 | cat conftest.err >&5 | |
ec6a6fbe | 7008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7009 | (exit $ac_status); } && { |
7010 | test -z "$ac_c_werror_flag" || | |
7011 | test ! -s conftest.err | |
7012 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7013 | : |
ad6254c5 | 7014 | else |
ec6a6fbe | 7015 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 7016 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 7017 | |
d911ec67 AK |
7018 | case $ac_type in |
7019 | int16_t) ac_cv_c_int16_t=yes ;; | |
7020 | *) ac_cv_c_int16_t=$ac_type ;; | |
7021 | esac | |
7a197a62 | 7022 | |
8ce0cbda | 7023 | fi |
7a197a62 AK |
7024 | |
7025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7026 | else |
7027 | $as_echo "$as_me: failed program was:" >&5 | |
7028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7029 | |
8a2fc586 | 7030 | |
d911ec67 | 7031 | fi |
8a2fc586 | 7032 | |
d911ec67 AK |
7033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7034 | test "$ac_cv_c_int16_t" != no && break | |
7035 | done | |
7036 | fi | |
7037 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7038 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7039 | case $ac_cv_c_int16_t in #( | |
7040 | no|yes) ;; #( | |
8a2fc586 | 7041 | *) |
d911ec67 AK |
7042 | |
7043 | cat >>confdefs.h <<_ACEOF | |
7044 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7045 | _ACEOF |
d911ec67 AK |
7046 | ;; |
7047 | esac | |
d0191583 | 7048 | |
d911ec67 AK |
7049 | |
7050 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7051 | $as_echo_n "checking for int32_t... " >&6; } | |
7052 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7053 | $as_echo_n "(cached) " >&6 |
d0191583 | 7054 | else |
d911ec67 AK |
7055 | ac_cv_c_int32_t=no |
7056 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7057 | 'long long int' 'short int' 'signed char'; do | |
7058 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7059 | /* confdefs.h. */ |
7060 | _ACEOF | |
7061 | cat confdefs.h >>conftest.$ac_ext | |
7062 | cat >>conftest.$ac_ext <<_ACEOF | |
7063 | /* end confdefs.h. */ | |
7064 | $ac_includes_default | |
7065 | int | |
7066 | main () | |
7067 | { | |
d911ec67 AK |
7068 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7069 | test_array [0] = 0 | |
7070 | ||
d0191583 JM |
7071 | ; |
7072 | return 0; | |
7073 | } | |
7074 | _ACEOF | |
7075 | rm -f conftest.$ac_objext | |
7076 | if { (ac_try="$ac_compile" | |
7077 | case "(($ac_try" in | |
7078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7079 | *) ac_try_echo=$ac_try;; | |
7080 | esac | |
ec6a6fbe AK |
7081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7082 | $as_echo "$ac_try_echo") >&5 | |
7083 | (eval "$ac_compile") 2>conftest.er1 | |
7084 | ac_status=$? | |
7085 | grep -v '^ *+' conftest.er1 >conftest.err | |
7086 | rm -f conftest.er1 | |
7087 | cat conftest.err >&5 | |
7088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7089 | (exit $ac_status); } && { | |
7090 | test -z "$ac_c_werror_flag" || | |
7091 | test ! -s conftest.err | |
7092 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7093 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7094 | /* confdefs.h. */ |
7095 | _ACEOF | |
7096 | cat confdefs.h >>conftest.$ac_ext | |
7097 | cat >>conftest.$ac_ext <<_ACEOF | |
7098 | /* end confdefs.h. */ | |
7099 | $ac_includes_default | |
7100 | int | |
7101 | main () | |
7102 | { | |
d911ec67 AK |
7103 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7104 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7105 | test_array [0] = 0 | |
7106 | ||
ec6a6fbe AK |
7107 | ; |
7108 | return 0; | |
7109 | } | |
7110 | _ACEOF | |
7111 | rm -f conftest.$ac_objext | |
7112 | if { (ac_try="$ac_compile" | |
7113 | case "(($ac_try" in | |
7114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7115 | *) ac_try_echo=$ac_try;; | |
7116 | esac | |
7117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7118 | $as_echo "$ac_try_echo") >&5 | |
7119 | (eval "$ac_compile") 2>conftest.er1 | |
7120 | ac_status=$? | |
7121 | grep -v '^ *+' conftest.er1 >conftest.err | |
7122 | rm -f conftest.er1 | |
7123 | cat conftest.err >&5 | |
7124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7125 | (exit $ac_status); } && { | |
7126 | test -z "$ac_c_werror_flag" || | |
7127 | test ! -s conftest.err | |
7128 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7129 | : |
ec6a6fbe AK |
7130 | else |
7131 | $as_echo "$as_me: failed program was:" >&5 | |
7132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7133 | ||
d911ec67 AK |
7134 | case $ac_type in |
7135 | int32_t) ac_cv_c_int32_t=yes ;; | |
7136 | *) ac_cv_c_int32_t=$ac_type ;; | |
7137 | esac | |
7138 | ||
ec6a6fbe AK |
7139 | fi |
7140 | ||
7141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7142 | else |
7143 | $as_echo "$as_me: failed program was:" >&5 | |
7144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7145 | ||
7146 | ||
ec6a6fbe AK |
7147 | fi |
7148 | ||
7149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7150 | test "$ac_cv_c_int32_t" != no && break |
7151 | done | |
ec6a6fbe | 7152 | fi |
d911ec67 AK |
7153 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7154 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7155 | case $ac_cv_c_int32_t in #( | |
7156 | no|yes) ;; #( | |
7157 | *) | |
ec6a6fbe AK |
7158 | |
7159 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7160 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7161 | _ACEOF |
d911ec67 AK |
7162 | ;; |
7163 | esac | |
ec6a6fbe AK |
7164 | |
7165 | ||
d911ec67 AK |
7166 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7167 | $as_echo_n "checking for int64_t... " >&6; } | |
7168 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7169 | $as_echo_n "(cached) " >&6 |
7170 | else | |
d911ec67 AK |
7171 | ac_cv_c_int64_t=no |
7172 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7173 | 'long long int' 'short int' 'signed char'; do | |
7174 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7175 | /* confdefs.h. */ |
7176 | _ACEOF | |
7177 | cat confdefs.h >>conftest.$ac_ext | |
7178 | cat >>conftest.$ac_ext <<_ACEOF | |
7179 | /* end confdefs.h. */ | |
7180 | $ac_includes_default | |
7181 | int | |
7182 | main () | |
7183 | { | |
d911ec67 AK |
7184 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7185 | test_array [0] = 0 | |
7186 | ||
ec6a6fbe AK |
7187 | ; |
7188 | return 0; | |
7189 | } | |
7190 | _ACEOF | |
7191 | rm -f conftest.$ac_objext | |
7192 | if { (ac_try="$ac_compile" | |
7193 | case "(($ac_try" in | |
7194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7195 | *) ac_try_echo=$ac_try;; | |
7196 | esac | |
7197 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7198 | $as_echo "$ac_try_echo") >&5 | |
7199 | (eval "$ac_compile") 2>conftest.er1 | |
7200 | ac_status=$? | |
7201 | grep -v '^ *+' conftest.er1 >conftest.err | |
7202 | rm -f conftest.er1 | |
7203 | cat conftest.err >&5 | |
7204 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7205 | (exit $ac_status); } && { | |
7206 | test -z "$ac_c_werror_flag" || | |
7207 | test ! -s conftest.err | |
7208 | } && test -s conftest.$ac_objext; then | |
7209 | cat >conftest.$ac_ext <<_ACEOF | |
7210 | /* confdefs.h. */ | |
7211 | _ACEOF | |
7212 | cat confdefs.h >>conftest.$ac_ext | |
7213 | cat >>conftest.$ac_ext <<_ACEOF | |
7214 | /* end confdefs.h. */ | |
7215 | $ac_includes_default | |
7216 | int | |
7217 | main () | |
7218 | { | |
d911ec67 AK |
7219 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7220 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7221 | test_array [0] = 0 | |
7222 | ||
ec6a6fbe AK |
7223 | ; |
7224 | return 0; | |
7225 | } | |
7226 | _ACEOF | |
7227 | rm -f conftest.$ac_objext | |
7228 | if { (ac_try="$ac_compile" | |
7229 | case "(($ac_try" in | |
7230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7231 | *) ac_try_echo=$ac_try;; | |
7232 | esac | |
7233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7234 | $as_echo "$ac_try_echo") >&5 | |
7235 | (eval "$ac_compile") 2>conftest.er1 | |
7236 | ac_status=$? | |
7237 | grep -v '^ *+' conftest.er1 >conftest.err | |
7238 | rm -f conftest.er1 | |
7239 | cat conftest.err >&5 | |
7240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7241 | (exit $ac_status); } && { | |
7242 | test -z "$ac_c_werror_flag" || | |
7243 | test ! -s conftest.err | |
7244 | } && test -s conftest.$ac_objext; then | |
7245 | : | |
7246 | else | |
7247 | $as_echo "$as_me: failed program was:" >&5 | |
7248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7249 | ||
d911ec67 AK |
7250 | case $ac_type in |
7251 | int64_t) ac_cv_c_int64_t=yes ;; | |
7252 | *) ac_cv_c_int64_t=$ac_type ;; | |
7253 | esac | |
7254 | ||
ec6a6fbe AK |
7255 | fi |
7256 | ||
7257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7258 | else | |
7259 | $as_echo "$as_me: failed program was:" >&5 | |
7260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7261 | ||
7262 | ||
7263 | fi | |
7264 | ||
7265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7266 | test "$ac_cv_c_int64_t" != no && break |
7267 | done | |
ec6a6fbe | 7268 | fi |
d911ec67 AK |
7269 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7270 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7271 | case $ac_cv_c_int64_t in #( | |
7272 | no|yes) ;; #( | |
7273 | *) | |
ec6a6fbe AK |
7274 | |
7275 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7276 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7277 | _ACEOF |
d911ec67 AK |
7278 | ;; |
7279 | esac | |
ec6a6fbe | 7280 | |
d911ec67 AK |
7281 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7282 | $as_echo_n "checking for ssize_t... " >&6; } | |
7283 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7284 | $as_echo_n "(cached) " >&6 |
7285 | else | |
d911ec67 | 7286 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7287 | cat >conftest.$ac_ext <<_ACEOF |
7288 | /* confdefs.h. */ | |
7289 | _ACEOF | |
7290 | cat confdefs.h >>conftest.$ac_ext | |
7291 | cat >>conftest.$ac_ext <<_ACEOF | |
7292 | /* end confdefs.h. */ | |
7293 | $ac_includes_default | |
7294 | int | |
7295 | main () | |
7296 | { | |
d911ec67 | 7297 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7298 | return 0; |
7299 | ; | |
7300 | return 0; | |
7301 | } | |
7302 | _ACEOF | |
7303 | rm -f conftest.$ac_objext | |
7304 | if { (ac_try="$ac_compile" | |
7305 | case "(($ac_try" in | |
7306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7307 | *) ac_try_echo=$ac_try;; | |
7308 | esac | |
7309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7310 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7311 | (eval "$ac_compile") 2>conftest.er1 |
7312 | ac_status=$? | |
7313 | grep -v '^ *+' conftest.er1 >conftest.err | |
7314 | rm -f conftest.er1 | |
7315 | cat conftest.err >&5 | |
ec6a6fbe | 7316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7317 | (exit $ac_status); } && { |
7318 | test -z "$ac_c_werror_flag" || | |
7319 | test ! -s conftest.err | |
7320 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7321 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7322 | /* confdefs.h. */ |
7323 | _ACEOF | |
7324 | cat confdefs.h >>conftest.$ac_ext | |
7325 | cat >>conftest.$ac_ext <<_ACEOF | |
7326 | /* end confdefs.h. */ | |
7327 | $ac_includes_default | |
7328 | int | |
7329 | main () | |
7330 | { | |
d911ec67 | 7331 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7332 | return 0; |
d0191583 JM |
7333 | ; |
7334 | return 0; | |
7335 | } | |
7336 | _ACEOF | |
7337 | rm -f conftest.$ac_objext | |
7338 | if { (ac_try="$ac_compile" | |
7339 | case "(($ac_try" in | |
7340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7341 | *) ac_try_echo=$ac_try;; | |
7342 | esac | |
ec6a6fbe AK |
7343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7344 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7345 | (eval "$ac_compile") 2>conftest.er1 |
7346 | ac_status=$? | |
7347 | grep -v '^ *+' conftest.er1 >conftest.err | |
7348 | rm -f conftest.er1 | |
7349 | cat conftest.err >&5 | |
ec6a6fbe | 7350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7351 | (exit $ac_status); } && { |
7352 | test -z "$ac_c_werror_flag" || | |
7353 | test ! -s conftest.err | |
7354 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7355 | : |
d0191583 | 7356 | else |
ec6a6fbe | 7357 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7358 | sed 's/^/| /' conftest.$ac_ext >&5 |
7359 | ||
d911ec67 | 7360 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7361 | fi |
7362 | ||
7363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7364 | else |
7365 | $as_echo "$as_me: failed program was:" >&5 | |
7366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7367 | ||
7368 | ||
d0191583 JM |
7369 | fi |
7370 | ||
7371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7372 | fi | |
d911ec67 AK |
7373 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7374 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7375 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7376 | : |
7377 | else | |
d0191583 JM |
7378 | |
7379 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7380 | #define ssize_t int |
d0191583 JM |
7381 | _ACEOF |
7382 | ||
d0191583 | 7383 | fi |
8ce0cbda | 7384 | |
d911ec67 AK |
7385 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7386 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7387 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7388 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7389 | else |
b145d876 ZK |
7390 | cat >conftest.$ac_ext <<_ACEOF |
7391 | /* confdefs.h. */ | |
7392 | _ACEOF | |
7393 | cat confdefs.h >>conftest.$ac_ext | |
7394 | cat >>conftest.$ac_ext <<_ACEOF | |
7395 | /* end confdefs.h. */ | |
ec6a6fbe | 7396 | #include <sys/types.h> |
ec6a6fbe | 7397 | |
ad6254c5 | 7398 | _ACEOF |
d911ec67 AK |
7399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7400 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7401 | ac_cv_type_uid_t=yes | |
b145d876 | 7402 | else |
d911ec67 | 7403 | ac_cv_type_uid_t=no |
ad6254c5 | 7404 | fi |
d911ec67 | 7405 | rm -f conftest* |
b145d876 | 7406 | |
b145d876 | 7407 | fi |
d911ec67 AK |
7408 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7409 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7410 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7411 | |
d911ec67 AK |
7412 | cat >>confdefs.h <<\_ACEOF |
7413 | #define uid_t int | |
ad6254c5 | 7414 | _ACEOF |
199e490e | 7415 | |
b896caa1 | 7416 | |
d911ec67 AK |
7417 | cat >>confdefs.h <<\_ACEOF |
7418 | #define gid_t int | |
7419 | _ACEOF | |
7420 | ||
7421 | fi | |
7422 | ||
7423 | ||
7424 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7425 | $as_echo_n "checking for uint8_t... " >&6; } | |
7426 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7427 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7428 | else |
d911ec67 AK |
7429 | ac_cv_c_uint8_t=no |
7430 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7431 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7432 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7433 | /* confdefs.h. */ |
7434 | _ACEOF | |
7435 | cat confdefs.h >>conftest.$ac_ext | |
7436 | cat >>conftest.$ac_ext <<_ACEOF | |
7437 | /* end confdefs.h. */ | |
7438 | $ac_includes_default | |
7439 | int | |
7440 | main () | |
7441 | { | |
d911ec67 AK |
7442 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7443 | test_array [0] = 0 | |
7444 | ||
ad6254c5 AK |
7445 | ; |
7446 | return 0; | |
7447 | } | |
7448 | _ACEOF | |
7449 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7450 | if { (ac_try="$ac_compile" |
7451 | case "(($ac_try" in | |
7452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7453 | *) ac_try_echo=$ac_try;; | |
7454 | esac | |
ec6a6fbe AK |
7455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7456 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7457 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7458 | ac_status=$? |
8a2fc586 AK |
7459 | grep -v '^ *+' conftest.er1 >conftest.err |
7460 | rm -f conftest.er1 | |
7461 | cat conftest.err >&5 | |
ec6a6fbe | 7462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7463 | (exit $ac_status); } && { |
7464 | test -z "$ac_c_werror_flag" || | |
7465 | test ! -s conftest.err | |
7466 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7467 | case $ac_type in |
7468 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7469 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7470 | esac | |
7471 | ||
7472 | else | |
7473 | $as_echo "$as_me: failed program was:" >&5 | |
7474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7475 | ||
7476 | ||
7477 | fi | |
7478 | ||
7479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7480 | test "$ac_cv_c_uint8_t" != no && break | |
7481 | done | |
7482 | fi | |
7483 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7484 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7485 | case $ac_cv_c_uint8_t in #( | |
7486 | no|yes) ;; #( | |
7487 | *) | |
7488 | ||
7489 | cat >>confdefs.h <<\_ACEOF | |
7490 | #define _UINT8_T 1 | |
7491 | _ACEOF | |
7492 | ||
7493 | ||
7494 | cat >>confdefs.h <<_ACEOF | |
7495 | #define uint8_t $ac_cv_c_uint8_t | |
7496 | _ACEOF | |
7497 | ;; | |
7498 | esac | |
7499 | ||
7500 | ||
7501 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7502 | $as_echo_n "checking for uint16_t... " >&6; } | |
7503 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7504 | $as_echo_n "(cached) " >&6 | |
7505 | else | |
7506 | ac_cv_c_uint16_t=no | |
7507 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7508 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7509 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7510 | /* confdefs.h. */ |
7511 | _ACEOF | |
7512 | cat confdefs.h >>conftest.$ac_ext | |
7513 | cat >>conftest.$ac_ext <<_ACEOF | |
7514 | /* end confdefs.h. */ | |
ec6a6fbe | 7515 | $ac_includes_default |
d0191583 JM |
7516 | int |
7517 | main () | |
7518 | { | |
d911ec67 AK |
7519 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7520 | test_array [0] = 0 | |
7521 | ||
d0191583 JM |
7522 | ; |
7523 | return 0; | |
7524 | } | |
7525 | _ACEOF | |
7526 | rm -f conftest.$ac_objext | |
7527 | if { (ac_try="$ac_compile" | |
7528 | case "(($ac_try" in | |
7529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7530 | *) ac_try_echo=$ac_try;; | |
7531 | esac | |
ec6a6fbe AK |
7532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7533 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7534 | (eval "$ac_compile") 2>conftest.er1 |
7535 | ac_status=$? | |
7536 | grep -v '^ *+' conftest.er1 >conftest.err | |
7537 | rm -f conftest.er1 | |
7538 | cat conftest.err >&5 | |
ec6a6fbe | 7539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7540 | (exit $ac_status); } && { |
7541 | test -z "$ac_c_werror_flag" || | |
7542 | test ! -s conftest.err | |
7543 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7544 | case $ac_type in |
7545 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7546 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7547 | esac | |
ec6a6fbe | 7548 | |
ec6a6fbe AK |
7549 | else |
7550 | $as_echo "$as_me: failed program was:" >&5 | |
7551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7552 | ||
7553 | ||
d0191583 JM |
7554 | fi |
7555 | ||
7556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7557 | test "$ac_cv_c_uint16_t" != no && break |
7558 | done | |
d0191583 | 7559 | fi |
d911ec67 AK |
7560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7561 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7562 | case $ac_cv_c_uint16_t in #( | |
7563 | no|yes) ;; #( | |
7564 | *) | |
7565 | ||
d0191583 JM |
7566 | |
7567 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7568 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7569 | _ACEOF |
d911ec67 AK |
7570 | ;; |
7571 | esac | |
d0191583 JM |
7572 | |
7573 | ||
d911ec67 AK |
7574 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7575 | $as_echo_n "checking for uint32_t... " >&6; } | |
7576 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7577 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7578 | else |
d911ec67 AK |
7579 | ac_cv_c_uint32_t=no |
7580 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7581 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7582 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7583 | /* confdefs.h. */ |
7584 | _ACEOF | |
7585 | cat confdefs.h >>conftest.$ac_ext | |
7586 | cat >>conftest.$ac_ext <<_ACEOF | |
7587 | /* end confdefs.h. */ | |
7588 | $ac_includes_default | |
7589 | int | |
7590 | main () | |
7591 | { | |
d911ec67 AK |
7592 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7593 | test_array [0] = 0 | |
7594 | ||
ad6254c5 AK |
7595 | ; |
7596 | return 0; | |
7597 | } | |
7598 | _ACEOF | |
7599 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7600 | if { (ac_try="$ac_compile" |
7601 | case "(($ac_try" in | |
7602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7603 | *) ac_try_echo=$ac_try;; | |
7604 | esac | |
ec6a6fbe AK |
7605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7606 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7607 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7608 | ac_status=$? |
8a2fc586 AK |
7609 | grep -v '^ *+' conftest.er1 >conftest.err |
7610 | rm -f conftest.er1 | |
7611 | cat conftest.err >&5 | |
ec6a6fbe | 7612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7613 | (exit $ac_status); } && { |
7614 | test -z "$ac_c_werror_flag" || | |
7615 | test ! -s conftest.err | |
7616 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7617 | case $ac_type in |
7618 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7619 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7620 | esac | |
7621 | ||
7622 | else | |
7623 | $as_echo "$as_me: failed program was:" >&5 | |
7624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7625 | ||
7626 | ||
7627 | fi | |
7628 | ||
7629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7630 | test "$ac_cv_c_uint32_t" != no && break | |
7631 | done | |
7632 | fi | |
7633 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7634 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7635 | case $ac_cv_c_uint32_t in #( | |
7636 | no|yes) ;; #( | |
7637 | *) | |
7638 | ||
7639 | cat >>confdefs.h <<\_ACEOF | |
7640 | #define _UINT32_T 1 | |
7641 | _ACEOF | |
7642 | ||
7643 | ||
7644 | cat >>confdefs.h <<_ACEOF | |
7645 | #define uint32_t $ac_cv_c_uint32_t | |
7646 | _ACEOF | |
7647 | ;; | |
7648 | esac | |
7649 | ||
7650 | ||
7651 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7652 | $as_echo_n "checking for uint64_t... " >&6; } | |
7653 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7654 | $as_echo_n "(cached) " >&6 | |
7655 | else | |
7656 | ac_cv_c_uint64_t=no | |
7657 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7658 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7659 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7660 | /* confdefs.h. */ |
7661 | _ACEOF | |
7662 | cat confdefs.h >>conftest.$ac_ext | |
7663 | cat >>conftest.$ac_ext <<_ACEOF | |
7664 | /* end confdefs.h. */ | |
7665 | $ac_includes_default | |
7666 | int | |
7667 | main () | |
7668 | { | |
d911ec67 AK |
7669 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7670 | test_array [0] = 0 | |
7671 | ||
ad6254c5 AK |
7672 | ; |
7673 | return 0; | |
7674 | } | |
7675 | _ACEOF | |
7676 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7677 | if { (ac_try="$ac_compile" |
7678 | case "(($ac_try" in | |
7679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7680 | *) ac_try_echo=$ac_try;; | |
7681 | esac | |
ec6a6fbe AK |
7682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7683 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7684 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7685 | ac_status=$? |
8a2fc586 AK |
7686 | grep -v '^ *+' conftest.er1 >conftest.err |
7687 | rm -f conftest.er1 | |
7688 | cat conftest.err >&5 | |
ec6a6fbe | 7689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7690 | (exit $ac_status); } && { |
7691 | test -z "$ac_c_werror_flag" || | |
7692 | test ! -s conftest.err | |
7693 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7694 | case $ac_type in |
7695 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7696 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7697 | esac | |
ec6a6fbe | 7698 | |
fddafd51 | 7699 | else |
ec6a6fbe | 7700 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7701 | sed 's/^/| /' conftest.$ac_ext >&5 |
7702 | ||
ec6a6fbe | 7703 | |
80992638 | 7704 | fi |
7a197a62 AK |
7705 | |
7706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7707 | test "$ac_cv_c_uint64_t" != no && break |
7708 | done | |
ad6254c5 | 7709 | fi |
d911ec67 AK |
7710 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7711 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7712 | case $ac_cv_c_uint64_t in #( | |
7713 | no|yes) ;; #( | |
7714 | *) | |
80992638 | 7715 | |
d911ec67 AK |
7716 | cat >>confdefs.h <<\_ACEOF |
7717 | #define _UINT64_T 1 | |
ad6254c5 AK |
7718 | _ACEOF |
7719 | ||
d911ec67 AK |
7720 | |
7721 | cat >>confdefs.h <<_ACEOF | |
7722 | #define uint64_t $ac_cv_c_uint64_t | |
7723 | _ACEOF | |
7724 | ;; | |
7725 | esac | |
ad6254c5 | 7726 | |
ec6a6fbe AK |
7727 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7728 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7729 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7730 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7731 | else |
7732 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7733 | /* confdefs.h. */ |
7734 | _ACEOF | |
7735 | cat confdefs.h >>conftest.$ac_ext | |
7736 | cat >>conftest.$ac_ext <<_ACEOF | |
7737 | /* end confdefs.h. */ | |
7738 | $ac_includes_default | |
7739 | int | |
7740 | main () | |
7741 | { | |
7742 | static struct stat ac_aggr; | |
7743 | if (ac_aggr.st_rdev) | |
7744 | return 0; | |
7745 | ; | |
7746 | return 0; | |
7747 | } | |
7748 | _ACEOF | |
7749 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7750 | if { (ac_try="$ac_compile" |
7751 | case "(($ac_try" in | |
7752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7753 | *) ac_try_echo=$ac_try;; | |
7754 | esac | |
ec6a6fbe AK |
7755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7756 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7757 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7758 | ac_status=$? |
8a2fc586 AK |
7759 | grep -v '^ *+' conftest.er1 >conftest.err |
7760 | rm -f conftest.er1 | |
7761 | cat conftest.err >&5 | |
ec6a6fbe | 7762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7763 | (exit $ac_status); } && { |
7764 | test -z "$ac_c_werror_flag" || | |
7765 | test ! -s conftest.err | |
7766 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7767 | ac_cv_member_struct_stat_st_rdev=yes |
7768 | else | |
ec6a6fbe | 7769 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7770 | sed 's/^/| /' conftest.$ac_ext >&5 |
7771 | ||
7a197a62 | 7772 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7773 | /* confdefs.h. */ |
7774 | _ACEOF | |
7775 | cat confdefs.h >>conftest.$ac_ext | |
7776 | cat >>conftest.$ac_ext <<_ACEOF | |
7777 | /* end confdefs.h. */ | |
7778 | $ac_includes_default | |
7779 | int | |
7780 | main () | |
7781 | { | |
7782 | static struct stat ac_aggr; | |
7783 | if (sizeof ac_aggr.st_rdev) | |
7784 | return 0; | |
7785 | ; | |
7786 | return 0; | |
7787 | } | |
7788 | _ACEOF | |
7789 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7790 | if { (ac_try="$ac_compile" |
7791 | case "(($ac_try" in | |
7792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7793 | *) ac_try_echo=$ac_try;; | |
7794 | esac | |
ec6a6fbe AK |
7795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7796 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7797 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7798 | ac_status=$? |
8a2fc586 AK |
7799 | grep -v '^ *+' conftest.er1 >conftest.err |
7800 | rm -f conftest.er1 | |
7801 | cat conftest.err >&5 | |
ec6a6fbe | 7802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7803 | (exit $ac_status); } && { |
7804 | test -z "$ac_c_werror_flag" || | |
7805 | test ! -s conftest.err | |
7806 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7807 | ac_cv_member_struct_stat_st_rdev=yes |
7808 | else | |
ec6a6fbe | 7809 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7810 | sed 's/^/| /' conftest.$ac_ext >&5 |
7811 | ||
7a197a62 | 7812 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7813 | fi |
7a197a62 AK |
7814 | |
7815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7816 | fi |
7a197a62 AK |
7817 | |
7818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7819 | fi |
ec6a6fbe AK |
7820 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7821 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7822 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7823 | |
7824 | cat >>confdefs.h <<_ACEOF | |
7825 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7826 | _ACEOF | |
7827 | ||
7828 | ||
ad6254c5 AK |
7829 | fi |
7830 | ||
ec6a6fbe AK |
7831 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7832 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7833 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7834 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7835 | else |
7836 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7837 | /* confdefs.h. */ |
7838 | _ACEOF | |
7839 | cat confdefs.h >>conftest.$ac_ext | |
7840 | cat >>conftest.$ac_ext <<_ACEOF | |
7841 | /* end confdefs.h. */ | |
7842 | #include <sys/types.h> | |
7843 | #include <time.h> | |
7844 | ||
7845 | int | |
7846 | main () | |
7847 | { | |
25fbec5b AK |
7848 | struct tm tm; |
7849 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7850 | return !p; |
ad6254c5 AK |
7851 | ; |
7852 | return 0; | |
7853 | } | |
7854 | _ACEOF | |
7855 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7856 | if { (ac_try="$ac_compile" |
7857 | case "(($ac_try" in | |
7858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7859 | *) ac_try_echo=$ac_try;; | |
7860 | esac | |
ec6a6fbe AK |
7861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7862 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7863 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7864 | ac_status=$? |
8a2fc586 AK |
7865 | grep -v '^ *+' conftest.er1 >conftest.err |
7866 | rm -f conftest.er1 | |
7867 | cat conftest.err >&5 | |
ec6a6fbe | 7868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7869 | (exit $ac_status); } && { |
7870 | test -z "$ac_c_werror_flag" || | |
7871 | test ! -s conftest.err | |
d911ec67 AK |
7872 | } && test -s conftest.$ac_objext; then |
7873 | ac_cv_struct_tm=time.h | |
7874 | else | |
7875 | $as_echo "$as_me: failed program was:" >&5 | |
7876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7877 | ||
7878 | ac_cv_struct_tm=sys/time.h | |
7879 | fi | |
7880 | ||
7881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7882 | fi | |
7883 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7884 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7885 | if test $ac_cv_struct_tm = sys/time.h; then | |
7886 | ||
7887 | cat >>confdefs.h <<\_ACEOF | |
7888 | #define TM_IN_SYS_TIME 1 | |
7889 | _ACEOF | |
7890 | ||
7891 | fi | |
7892 | ||
7893 | ||
7894 | ################################################################################ | |
7895 | { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5 | |
7896 | $as_echo_n "checking for library containing floor... " >&6; } | |
7897 | if test "${ac_cv_search_floor+set}" = set; then | |
7898 | $as_echo_n "(cached) " >&6 | |
7899 | else | |
7900 | ac_func_search_save_LIBS=$LIBS | |
7901 | cat >conftest.$ac_ext <<_ACEOF | |
7902 | /* confdefs.h. */ | |
7903 | _ACEOF | |
7904 | cat confdefs.h >>conftest.$ac_ext | |
7905 | cat >>conftest.$ac_ext <<_ACEOF | |
7906 | /* end confdefs.h. */ | |
7907 | ||
7908 | /* Override any GCC internal prototype to avoid an error. | |
7909 | Use char because int might match the return type of a GCC | |
7910 | builtin and then its argument prototype would still apply. */ | |
7911 | #ifdef __cplusplus | |
7912 | extern "C" | |
7913 | #endif | |
7914 | char floor (); | |
7915 | int | |
7916 | main () | |
7917 | { | |
7918 | return floor (); | |
7919 | ; | |
7920 | return 0; | |
7921 | } | |
7922 | _ACEOF | |
7923 | for ac_lib in '' m; do | |
7924 | if test -z "$ac_lib"; then | |
7925 | ac_res="none required" | |
7926 | else | |
7927 | ac_res=-l$ac_lib | |
7928 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7929 | fi | |
7930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7931 | if { (ac_try="$ac_link" | |
7932 | case "(($ac_try" in | |
7933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7934 | *) ac_try_echo=$ac_try;; | |
7935 | esac | |
7936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7937 | $as_echo "$ac_try_echo") >&5 | |
7938 | (eval "$ac_link") 2>conftest.er1 | |
7939 | ac_status=$? | |
7940 | grep -v '^ *+' conftest.er1 >conftest.err | |
7941 | rm -f conftest.er1 | |
7942 | cat conftest.err >&5 | |
7943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7944 | (exit $ac_status); } && { | |
7945 | test -z "$ac_c_werror_flag" || | |
7946 | test ! -s conftest.err | |
7947 | } && test -s conftest$ac_exeext && { | |
7948 | test "$cross_compiling" = yes || | |
7949 | $as_test_x conftest$ac_exeext | |
7950 | }; then | |
7951 | ac_cv_search_floor=$ac_res | |
ad6254c5 | 7952 | else |
ec6a6fbe | 7953 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7954 | sed 's/^/| /' conftest.$ac_ext >&5 |
7955 | ||
7a197a62 | 7956 | |
ad6254c5 | 7957 | fi |
ad6254c5 | 7958 | |
d911ec67 AK |
7959 | rm -rf conftest.dSYM |
7960 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7961 | conftest$ac_exeext | |
7962 | if test "${ac_cv_search_floor+set}" = set; then | |
7963 | break | |
7964 | fi | |
7965 | done | |
7966 | if test "${ac_cv_search_floor+set}" = set; then | |
7967 | : | |
7968 | else | |
7969 | ac_cv_search_floor=no | |
7970 | fi | |
7971 | rm conftest.$ac_ext | |
7972 | LIBS=$ac_func_search_save_LIBS | |
7973 | fi | |
7974 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5 | |
7975 | $as_echo "$ac_cv_search_floor" >&6; } | |
7976 | ac_res=$ac_cv_search_floor | |
7977 | if test "$ac_res" != no; then | |
7978 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 | 7979 | |
d911ec67 AK |
7980 | else |
7981 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
7982 | $as_echo "$as_me: error: bailing out" >&2;} | |
7983 | { (exit 1); exit 1; }; } | |
ad6254c5 | 7984 | fi |
809fae91 | 7985 | |
795ca3e5 | 7986 | |
ad6254c5 AK |
7987 | |
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | ||
7999 | ||
8000 | ||
d0191583 JM |
8001 | |
8002 | ||
8003 | ||
d911ec67 AK |
8004 | |
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
8010 | ||
8011 | for ac_func in floor ftruncate gethostname getpagesize \ | |
8012 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
8013 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
8014 | strstr strtol strtoul uname | |
ad6254c5 | 8015 | do |
ec6a6fbe AK |
8016 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8017 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8018 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8019 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8020 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8021 | else |
ad6254c5 | 8022 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8023 | /* confdefs.h. */ |
8024 | _ACEOF | |
8025 | cat confdefs.h >>conftest.$ac_ext | |
8026 | cat >>conftest.$ac_ext <<_ACEOF | |
8027 | /* end confdefs.h. */ | |
8a2fc586 AK |
8028 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8029 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8030 | #define $ac_func innocuous_$ac_func | |
8031 | ||
ad6254c5 AK |
8032 | /* System header to define __stub macros and hopefully few prototypes, |
8033 | which can conflict with char $ac_func (); below. | |
8034 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8035 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8036 | |
ad6254c5 AK |
8037 | #ifdef __STDC__ |
8038 | # include <limits.h> | |
8039 | #else | |
8040 | # include <assert.h> | |
8041 | #endif | |
8a2fc586 AK |
8042 | |
8043 | #undef $ac_func | |
8044 | ||
7a197a62 AK |
8045 | /* Override any GCC internal prototype to avoid an error. |
8046 | Use char because int might match the return type of a GCC | |
8047 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8048 | #ifdef __cplusplus |
8049 | extern "C" | |
ad6254c5 | 8050 | #endif |
ad6254c5 AK |
8051 | char $ac_func (); |
8052 | /* The GNU C library defines this for functions which it implements | |
8053 | to always fail with ENOSYS. Some functions are actually named | |
8054 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8055 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8056 | choke me |
ad6254c5 AK |
8057 | #endif |
8058 | ||
8059 | int | |
8060 | main () | |
8061 | { | |
7a197a62 | 8062 | return $ac_func (); |
ad6254c5 AK |
8063 | ; |
8064 | return 0; | |
8065 | } | |
8066 | _ACEOF | |
8067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8068 | if { (ac_try="$ac_link" |
8069 | case "(($ac_try" in | |
8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8071 | *) ac_try_echo=$ac_try;; | |
8072 | esac | |
ec6a6fbe AK |
8073 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8074 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8075 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8076 | ac_status=$? |
8a2fc586 AK |
8077 | grep -v '^ *+' conftest.er1 >conftest.err |
8078 | rm -f conftest.er1 | |
8079 | cat conftest.err >&5 | |
ec6a6fbe | 8080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8081 | (exit $ac_status); } && { |
8082 | test -z "$ac_c_werror_flag" || | |
8083 | test ! -s conftest.err | |
ec6a6fbe AK |
8084 | } && test -s conftest$ac_exeext && { |
8085 | test "$cross_compiling" = yes || | |
8086 | $as_test_x conftest$ac_exeext | |
8087 | }; then | |
fc54be10 AK |
8088 | eval "$as_ac_var=yes" |
8089 | else | |
ec6a6fbe | 8090 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
8092 | ||
8093 | eval "$as_ac_var=no" | |
8094 | fi | |
8095 | ||
ec6a6fbe | 8096 | rm -rf conftest.dSYM |
25fbec5b | 8097 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8098 | conftest$ac_exeext conftest.$ac_ext |
8099 | fi | |
ec6a6fbe AK |
8100 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8101 | $as_echo "$as_val"'` | |
8102 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8103 | $as_echo "$ac_res" >&6; } | |
8104 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8105 | $as_echo "$as_val"'` | |
8106 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8107 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8108 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8109 | _ACEOF |
8110 | ||
8111 | else | |
ec6a6fbe AK |
8112 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8113 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8114 | { (exit 1); exit 1; }; } |
8115 | fi | |
8116 | done | |
795ca3e5 | 8117 | |
a0f9708e AK |
8118 | |
8119 | for ac_func in siginterrupt | |
8120 | do | |
8121 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8122 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8123 | $as_echo_n "checking for $ac_func... " >&6; } | |
8124 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8125 | $as_echo_n "(cached) " >&6 | |
8126 | else | |
8127 | cat >conftest.$ac_ext <<_ACEOF | |
8128 | /* confdefs.h. */ | |
8129 | _ACEOF | |
8130 | cat confdefs.h >>conftest.$ac_ext | |
8131 | cat >>conftest.$ac_ext <<_ACEOF | |
8132 | /* end confdefs.h. */ | |
8133 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8134 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8135 | #define $ac_func innocuous_$ac_func | |
8136 | ||
8137 | /* System header to define __stub macros and hopefully few prototypes, | |
8138 | which can conflict with char $ac_func (); below. | |
8139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8140 | <limits.h> exists even on freestanding compilers. */ | |
8141 | ||
8142 | #ifdef __STDC__ | |
8143 | # include <limits.h> | |
8144 | #else | |
8145 | # include <assert.h> | |
8146 | #endif | |
8147 | ||
8148 | #undef $ac_func | |
8149 | ||
8150 | /* Override any GCC internal prototype to avoid an error. | |
8151 | Use char because int might match the return type of a GCC | |
8152 | builtin and then its argument prototype would still apply. */ | |
8153 | #ifdef __cplusplus | |
8154 | extern "C" | |
8155 | #endif | |
8156 | char $ac_func (); | |
8157 | /* The GNU C library defines this for functions which it implements | |
8158 | to always fail with ENOSYS. Some functions are actually named | |
8159 | something starting with __ and the normal name is an alias. */ | |
8160 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8161 | choke me | |
8162 | #endif | |
8163 | ||
8164 | int | |
8165 | main () | |
8166 | { | |
8167 | return $ac_func (); | |
8168 | ; | |
8169 | return 0; | |
8170 | } | |
8171 | _ACEOF | |
8172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8173 | if { (ac_try="$ac_link" | |
8174 | case "(($ac_try" in | |
8175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8176 | *) ac_try_echo=$ac_try;; | |
8177 | esac | |
8178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8179 | $as_echo "$ac_try_echo") >&5 | |
8180 | (eval "$ac_link") 2>conftest.er1 | |
8181 | ac_status=$? | |
8182 | grep -v '^ *+' conftest.er1 >conftest.err | |
8183 | rm -f conftest.er1 | |
8184 | cat conftest.err >&5 | |
8185 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8186 | (exit $ac_status); } && { | |
8187 | test -z "$ac_c_werror_flag" || | |
8188 | test ! -s conftest.err | |
8189 | } && test -s conftest$ac_exeext && { | |
8190 | test "$cross_compiling" = yes || | |
8191 | $as_test_x conftest$ac_exeext | |
8192 | }; then | |
8193 | eval "$as_ac_var=yes" | |
8194 | else | |
8195 | $as_echo "$as_me: failed program was:" >&5 | |
8196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8197 | ||
8198 | eval "$as_ac_var=no" | |
8199 | fi | |
8200 | ||
8201 | rm -rf conftest.dSYM | |
8202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8203 | conftest$ac_exeext conftest.$ac_ext | |
8204 | fi | |
8205 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8206 | $as_echo "$as_val"'` | |
8207 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8208 | $as_echo "$ac_res" >&6; } | |
8209 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8210 | $as_echo "$as_val"'` | |
8211 | if test "x$as_val" = x""yes; then | |
8212 | cat >>confdefs.h <<_ACEOF | |
8213 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8214 | _ACEOF | |
8215 | ||
8216 | fi | |
8217 | done | |
8218 | ||
ad6254c5 AK |
8219 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8220 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8221 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8222 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8223 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8224 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8225 | else |
8226 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8227 | /* confdefs.h. */ |
8228 | _ACEOF | |
8229 | cat confdefs.h >>conftest.$ac_ext | |
8230 | cat >>conftest.$ac_ext <<_ACEOF | |
8231 | /* end confdefs.h. */ | |
8232 | #include <alloca.h> | |
8233 | int | |
8234 | main () | |
8235 | { | |
8236 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8237 | if (p) return 0; |
ad6254c5 AK |
8238 | ; |
8239 | return 0; | |
8240 | } | |
8241 | _ACEOF | |
8242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8243 | if { (ac_try="$ac_link" |
8244 | case "(($ac_try" in | |
8245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8246 | *) ac_try_echo=$ac_try;; | |
8247 | esac | |
ec6a6fbe AK |
8248 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8249 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8250 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8251 | ac_status=$? |
8a2fc586 AK |
8252 | grep -v '^ *+' conftest.er1 >conftest.err |
8253 | rm -f conftest.er1 | |
8254 | cat conftest.err >&5 | |
ec6a6fbe | 8255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8256 | (exit $ac_status); } && { |
8257 | test -z "$ac_c_werror_flag" || | |
8258 | test ! -s conftest.err | |
ec6a6fbe AK |
8259 | } && test -s conftest$ac_exeext && { |
8260 | test "$cross_compiling" = yes || | |
8261 | $as_test_x conftest$ac_exeext | |
8262 | }; then | |
ad6254c5 AK |
8263 | ac_cv_working_alloca_h=yes |
8264 | else | |
ec6a6fbe | 8265 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8266 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8267 | |
7a197a62 | 8268 | ac_cv_working_alloca_h=no |
ad6254c5 | 8269 | fi |
7a197a62 | 8270 | |
ec6a6fbe | 8271 | rm -rf conftest.dSYM |
25fbec5b | 8272 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8273 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8274 | fi |
ec6a6fbe AK |
8275 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8276 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8277 | if test $ac_cv_working_alloca_h = yes; then |
8278 | ||
8279 | cat >>confdefs.h <<\_ACEOF | |
8280 | #define HAVE_ALLOCA_H 1 | |
8281 | _ACEOF | |
8282 | ||
8283 | fi | |
8284 | ||
ec6a6fbe AK |
8285 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8286 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8287 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8288 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8289 | else |
8290 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8291 | /* confdefs.h. */ |
8292 | _ACEOF | |
8293 | cat confdefs.h >>conftest.$ac_ext | |
8294 | cat >>conftest.$ac_ext <<_ACEOF | |
8295 | /* end confdefs.h. */ | |
8296 | #ifdef __GNUC__ | |
8297 | # define alloca __builtin_alloca | |
8298 | #else | |
8299 | # ifdef _MSC_VER | |
8300 | # include <malloc.h> | |
8301 | # define alloca _alloca | |
8302 | # else | |
25fbec5b | 8303 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8304 | # include <alloca.h> |
8305 | # else | |
8306 | # ifdef _AIX | |
8307 | #pragma alloca | |
8308 | # else | |
8309 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8310 | char *alloca (); | |
8311 | # endif | |
8312 | # endif | |
8313 | # endif | |
8314 | # endif | |
8315 | #endif | |
8316 | ||
8317 | int | |
8318 | main () | |
8319 | { | |
8320 | char *p = (char *) alloca (1); | |
7a197a62 | 8321 | if (p) return 0; |
ad6254c5 AK |
8322 | ; |
8323 | return 0; | |
8324 | } | |
8325 | _ACEOF | |
8326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8327 | if { (ac_try="$ac_link" |
8328 | case "(($ac_try" in | |
8329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8330 | *) ac_try_echo=$ac_try;; | |
8331 | esac | |
ec6a6fbe AK |
8332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8333 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8334 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8335 | ac_status=$? |
8a2fc586 AK |
8336 | grep -v '^ *+' conftest.er1 >conftest.err |
8337 | rm -f conftest.er1 | |
8338 | cat conftest.err >&5 | |
ec6a6fbe | 8339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8340 | (exit $ac_status); } && { |
8341 | test -z "$ac_c_werror_flag" || | |
8342 | test ! -s conftest.err | |
ec6a6fbe AK |
8343 | } && test -s conftest$ac_exeext && { |
8344 | test "$cross_compiling" = yes || | |
8345 | $as_test_x conftest$ac_exeext | |
8346 | }; then | |
ad6254c5 AK |
8347 | ac_cv_func_alloca_works=yes |
8348 | else | |
ec6a6fbe | 8349 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8350 | sed 's/^/| /' conftest.$ac_ext >&5 |
8351 | ||
7a197a62 | 8352 | ac_cv_func_alloca_works=no |
ad6254c5 | 8353 | fi |
7a197a62 | 8354 | |
ec6a6fbe | 8355 | rm -rf conftest.dSYM |
25fbec5b | 8356 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8357 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8358 | fi |
ec6a6fbe AK |
8359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8360 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8361 | |
8362 | if test $ac_cv_func_alloca_works = yes; then | |
8363 | ||
8364 | cat >>confdefs.h <<\_ACEOF | |
8365 | #define HAVE_ALLOCA 1 | |
8366 | _ACEOF | |
8367 | ||
8368 | else | |
8369 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8370 | # that cause trouble. Some versions do not even contain alloca or | |
8371 | # contain a buggy version. If you still want to use their alloca, | |
8372 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8373 | ||
7a197a62 | 8374 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8375 | |
8376 | cat >>confdefs.h <<\_ACEOF | |
8377 | #define C_ALLOCA 1 | |
8378 | _ACEOF | |
8379 | ||
8380 | ||
ec6a6fbe AK |
8381 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8382 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8383 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8384 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8385 | else |
8386 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8387 | /* confdefs.h. */ |
8388 | _ACEOF | |
8389 | cat confdefs.h >>conftest.$ac_ext | |
8390 | cat >>conftest.$ac_ext <<_ACEOF | |
8391 | /* end confdefs.h. */ | |
7a197a62 | 8392 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8393 | webecray |
8394 | #else | |
8395 | wenotbecray | |
8396 | #endif | |
8397 | ||
8398 | _ACEOF | |
795ca3e5 | 8399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8400 | $EGREP "webecray" >/dev/null 2>&1; then |
8401 | ac_cv_os_cray=yes | |
8402 | else | |
8403 | ac_cv_os_cray=no | |
795ca3e5 AK |
8404 | fi |
8405 | rm -f conftest* | |
8406 | ||
795ca3e5 | 8407 | fi |
ec6a6fbe AK |
8408 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8409 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8410 | if test $ac_cv_os_cray = yes; then |
8411 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8412 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8413 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8414 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8415 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8416 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8417 | else |
8418 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8419 | /* confdefs.h. */ |
8420 | _ACEOF | |
8421 | cat confdefs.h >>conftest.$ac_ext | |
8422 | cat >>conftest.$ac_ext <<_ACEOF | |
8423 | /* end confdefs.h. */ | |
8a2fc586 AK |
8424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8426 | #define $ac_func innocuous_$ac_func | |
8427 | ||
ad6254c5 AK |
8428 | /* System header to define __stub macros and hopefully few prototypes, |
8429 | which can conflict with char $ac_func (); below. | |
8430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8431 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8432 | |
ad6254c5 AK |
8433 | #ifdef __STDC__ |
8434 | # include <limits.h> | |
8435 | #else | |
8436 | # include <assert.h> | |
8437 | #endif | |
8a2fc586 AK |
8438 | |
8439 | #undef $ac_func | |
8440 | ||
7a197a62 AK |
8441 | /* Override any GCC internal prototype to avoid an error. |
8442 | Use char because int might match the return type of a GCC | |
8443 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8444 | #ifdef __cplusplus |
8445 | extern "C" | |
ad6254c5 | 8446 | #endif |
ad6254c5 AK |
8447 | char $ac_func (); |
8448 | /* The GNU C library defines this for functions which it implements | |
8449 | to always fail with ENOSYS. Some functions are actually named | |
8450 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8451 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8452 | choke me |
ad6254c5 AK |
8453 | #endif |
8454 | ||
8455 | int | |
8456 | main () | |
8457 | { | |
7a197a62 | 8458 | return $ac_func (); |
ad6254c5 AK |
8459 | ; |
8460 | return 0; | |
8461 | } | |
8462 | _ACEOF | |
8463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8464 | if { (ac_try="$ac_link" |
8465 | case "(($ac_try" in | |
8466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8467 | *) ac_try_echo=$ac_try;; | |
8468 | esac | |
ec6a6fbe AK |
8469 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8470 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8471 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8472 | ac_status=$? |
8a2fc586 AK |
8473 | grep -v '^ *+' conftest.er1 >conftest.err |
8474 | rm -f conftest.er1 | |
8475 | cat conftest.err >&5 | |
ec6a6fbe | 8476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8477 | (exit $ac_status); } && { |
8478 | test -z "$ac_c_werror_flag" || | |
8479 | test ! -s conftest.err | |
ec6a6fbe AK |
8480 | } && test -s conftest$ac_exeext && { |
8481 | test "$cross_compiling" = yes || | |
8482 | $as_test_x conftest$ac_exeext | |
8483 | }; then | |
ad6254c5 AK |
8484 | eval "$as_ac_var=yes" |
8485 | else | |
ec6a6fbe | 8486 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8487 | sed 's/^/| /' conftest.$ac_ext >&5 |
8488 | ||
7a197a62 | 8489 | eval "$as_ac_var=no" |
ad6254c5 | 8490 | fi |
7a197a62 | 8491 | |
ec6a6fbe | 8492 | rm -rf conftest.dSYM |
25fbec5b | 8493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8494 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8495 | fi |
ec6a6fbe AK |
8496 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8497 | $as_echo "$as_val"'` | |
8498 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8499 | $as_echo "$ac_res" >&6; } | |
8500 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8501 | $as_echo "$as_val"'` | |
8502 | if test "x$as_val" = x""yes; then | |
80992638 | 8503 | |
ad6254c5 AK |
8504 | cat >>confdefs.h <<_ACEOF |
8505 | #define CRAY_STACKSEG_END $ac_func | |
8506 | _ACEOF | |
8507 | ||
8508 | break | |
8509 | fi | |
8510 | ||
8511 | done | |
8512 | fi | |
8513 | ||
ec6a6fbe AK |
8514 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8515 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8516 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8517 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8518 | else |
8519 | if test "$cross_compiling" = yes; then | |
8520 | ac_cv_c_stack_direction=0 | |
8521 | else | |
8522 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8523 | /* confdefs.h. */ |
8524 | _ACEOF | |
8525 | cat confdefs.h >>conftest.$ac_ext | |
8526 | cat >>conftest.$ac_ext <<_ACEOF | |
8527 | /* end confdefs.h. */ | |
7a197a62 | 8528 | $ac_includes_default |
ad6254c5 AK |
8529 | int |
8530 | find_stack_direction () | |
8531 | { | |
8532 | static char *addr = 0; | |
8533 | auto char dummy; | |
8534 | if (addr == 0) | |
8535 | { | |
8536 | addr = &dummy; | |
8537 | return find_stack_direction (); | |
8538 | } | |
8539 | else | |
8540 | return (&dummy > addr) ? 1 : -1; | |
8541 | } | |
8542 | ||
8543 | int | |
8544 | main () | |
8545 | { | |
7a197a62 | 8546 | return find_stack_direction () < 0; |
ad6254c5 AK |
8547 | } |
8548 | _ACEOF | |
8549 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8550 | if { (ac_try="$ac_link" |
8551 | case "(($ac_try" in | |
8552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8553 | *) ac_try_echo=$ac_try;; | |
8554 | esac | |
ec6a6fbe AK |
8555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8556 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8557 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8558 | ac_status=$? |
ec6a6fbe | 8559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8560 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8561 | { (case "(($ac_try" in |
8562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8563 | *) ac_try_echo=$ac_try;; | |
8564 | esac | |
ec6a6fbe AK |
8565 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8566 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8567 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8568 | ac_status=$? |
ec6a6fbe | 8569 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8570 | (exit $ac_status); }; }; then |
8571 | ac_cv_c_stack_direction=1 | |
8572 | else | |
ec6a6fbe AK |
8573 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8574 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8575 | sed 's/^/| /' conftest.$ac_ext >&5 |
8576 | ||
8577 | ( exit $ac_status ) | |
8578 | ac_cv_c_stack_direction=-1 | |
8579 | fi | |
ec6a6fbe | 8580 | rm -rf conftest.dSYM |
7a197a62 | 8581 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8582 | fi |
7a197a62 AK |
8583 | |
8584 | ||
ad6254c5 | 8585 | fi |
ec6a6fbe AK |
8586 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8587 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8588 | |
d911ec67 AK |
8589 | cat >>confdefs.h <<_ACEOF |
8590 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8591 | _ACEOF | |
8592 | ||
8593 | ||
8594 | fi | |
8595 | ||
8596 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8597 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8598 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8599 | $as_echo_n "(cached) " >&6 | |
8600 | else | |
8601 | if test "$cross_compiling" = yes; then | |
8602 | ac_cv_func_closedir_void=yes | |
8603 | else | |
8604 | cat >conftest.$ac_ext <<_ACEOF | |
8605 | /* confdefs.h. */ | |
8606 | _ACEOF | |
8607 | cat confdefs.h >>conftest.$ac_ext | |
8608 | cat >>conftest.$ac_ext <<_ACEOF | |
8609 | /* end confdefs.h. */ | |
8610 | $ac_includes_default | |
8611 | #include <$ac_header_dirent> | |
8612 | #ifndef __cplusplus | |
8613 | int closedir (); | |
8614 | #endif | |
8615 | ||
8616 | int | |
8617 | main () | |
8618 | { | |
8619 | return closedir (opendir (".")) != 0; | |
8620 | ; | |
8621 | return 0; | |
8622 | } | |
8623 | _ACEOF | |
8624 | rm -f conftest$ac_exeext | |
8625 | if { (ac_try="$ac_link" | |
8626 | case "(($ac_try" in | |
8627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8628 | *) ac_try_echo=$ac_try;; | |
8629 | esac | |
8630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8631 | $as_echo "$ac_try_echo") >&5 | |
8632 | (eval "$ac_link") 2>&5 | |
8633 | ac_status=$? | |
8634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8636 | { (case "(($ac_try" in | |
8637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8638 | *) ac_try_echo=$ac_try;; | |
8639 | esac | |
8640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8641 | $as_echo "$ac_try_echo") >&5 | |
8642 | (eval "$ac_try") 2>&5 | |
8643 | ac_status=$? | |
8644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8645 | (exit $ac_status); }; }; then | |
8646 | ac_cv_func_closedir_void=no | |
8647 | else | |
8648 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8649 | $as_echo "$as_me: failed program was:" >&5 | |
8650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8651 | ||
8652 | ( exit $ac_status ) | |
8653 | ac_cv_func_closedir_void=yes | |
8654 | fi | |
8655 | rm -rf conftest.dSYM | |
8656 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8657 | fi | |
8658 | ||
8659 | ||
8660 | fi | |
8661 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8662 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8663 | if test $ac_cv_func_closedir_void = yes; then | |
8664 | ||
8665 | cat >>confdefs.h <<\_ACEOF | |
8666 | #define CLOSEDIR_VOID 1 | |
8667 | _ACEOF | |
8668 | ||
8669 | fi | |
8670 | ||
8671 | ||
8672 | for ac_header in unistd.h | |
8673 | do | |
8674 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8675 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8676 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8677 | $as_echo_n "checking for $ac_header... " >&6; } | |
8678 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8679 | $as_echo_n "(cached) " >&6 | |
8680 | fi | |
8681 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8682 | $as_echo "$as_val"'` | |
8683 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8684 | $as_echo "$ac_res" >&6; } | |
8685 | else | |
8686 | # Is the header compilable? | |
8687 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8688 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8689 | cat >conftest.$ac_ext <<_ACEOF | |
8690 | /* confdefs.h. */ | |
8691 | _ACEOF | |
8692 | cat confdefs.h >>conftest.$ac_ext | |
8693 | cat >>conftest.$ac_ext <<_ACEOF | |
8694 | /* end confdefs.h. */ | |
8695 | $ac_includes_default | |
8696 | #include <$ac_header> | |
8697 | _ACEOF | |
8698 | rm -f conftest.$ac_objext | |
8699 | if { (ac_try="$ac_compile" | |
8700 | case "(($ac_try" in | |
8701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8702 | *) ac_try_echo=$ac_try;; | |
8703 | esac | |
8704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8705 | $as_echo "$ac_try_echo") >&5 | |
8706 | (eval "$ac_compile") 2>conftest.er1 | |
8707 | ac_status=$? | |
8708 | grep -v '^ *+' conftest.er1 >conftest.err | |
8709 | rm -f conftest.er1 | |
8710 | cat conftest.err >&5 | |
8711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8712 | (exit $ac_status); } && { | |
8713 | test -z "$ac_c_werror_flag" || | |
8714 | test ! -s conftest.err | |
8715 | } && test -s conftest.$ac_objext; then | |
8716 | ac_header_compiler=yes | |
8717 | else | |
8718 | $as_echo "$as_me: failed program was:" >&5 | |
8719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8720 | ||
8721 | ac_header_compiler=no | |
8722 | fi | |
8723 | ||
8724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8725 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8726 | $as_echo "$ac_header_compiler" >&6; } | |
8727 | ||
8728 | # Is the header present? | |
8729 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8730 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8731 | cat >conftest.$ac_ext <<_ACEOF | |
8732 | /* confdefs.h. */ | |
8733 | _ACEOF | |
8734 | cat confdefs.h >>conftest.$ac_ext | |
8735 | cat >>conftest.$ac_ext <<_ACEOF | |
8736 | /* end confdefs.h. */ | |
8737 | #include <$ac_header> | |
8738 | _ACEOF | |
8739 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8740 | case "(($ac_try" in | |
8741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8742 | *) ac_try_echo=$ac_try;; | |
8743 | esac | |
8744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8745 | $as_echo "$ac_try_echo") >&5 | |
8746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8747 | ac_status=$? | |
8748 | grep -v '^ *+' conftest.er1 >conftest.err | |
8749 | rm -f conftest.er1 | |
8750 | cat conftest.err >&5 | |
8751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8752 | (exit $ac_status); } >/dev/null && { | |
8753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8754 | test ! -s conftest.err | |
8755 | }; then | |
8756 | ac_header_preproc=yes | |
8757 | else | |
8758 | $as_echo "$as_me: failed program was:" >&5 | |
8759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8760 | ||
8761 | ac_header_preproc=no | |
8762 | fi | |
8763 | ||
8764 | rm -f conftest.err conftest.$ac_ext | |
8765 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8766 | $as_echo "$ac_header_preproc" >&6; } | |
8767 | ||
8768 | # So? What about this header? | |
8769 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8770 | yes:no: ) | |
8771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8772 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8773 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8774 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8775 | ac_header_preproc=yes | |
8776 | ;; | |
8777 | no:yes:* ) | |
8778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8779 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8781 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8782 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8783 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8784 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8785 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8786 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8787 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8788 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8789 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8790 | ||
8791 | ;; | |
8792 | esac | |
8793 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8794 | $as_echo_n "checking for $ac_header... " >&6; } | |
8795 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8796 | $as_echo_n "(cached) " >&6 | |
8797 | else | |
8798 | eval "$as_ac_Header=\$ac_header_preproc" | |
8799 | fi | |
8800 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8801 | $as_echo "$as_val"'` | |
8802 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8803 | $as_echo "$ac_res" >&6; } | |
8804 | ||
8805 | fi | |
8806 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8807 | $as_echo "$as_val"'` | |
8808 | if test "x$as_val" = x""yes; then | |
8809 | cat >>confdefs.h <<_ACEOF | |
8810 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8811 | _ACEOF |
8812 | ||
ad6254c5 AK |
8813 | fi |
8814 | ||
d911ec67 AK |
8815 | done |
8816 | ||
8817 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8818 | $as_echo_n "checking for working chown... " >&6; } | |
8819 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8820 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8821 | else |
8822 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8823 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8824 | else |
8825 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8826 | /* confdefs.h. */ |
8827 | _ACEOF | |
8828 | cat confdefs.h >>conftest.$ac_ext | |
8829 | cat >>conftest.$ac_ext <<_ACEOF | |
8830 | /* end confdefs.h. */ | |
8831 | $ac_includes_default | |
d911ec67 | 8832 | #include <fcntl.h> |
ad6254c5 AK |
8833 | |
8834 | int | |
8835 | main () | |
8836 | { | |
d911ec67 AK |
8837 | char *f = "conftest.chown"; |
8838 | struct stat before, after; | |
8839 | ||
8840 | if (creat (f, 0600) < 0) | |
8841 | return 1; | |
8842 | if (stat (f, &before) < 0) | |
8843 | return 1; | |
8844 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8845 | return 1; | |
8846 | if (stat (f, &after) < 0) | |
8847 | return 1; | |
8848 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8849 | ||
ad6254c5 AK |
8850 | ; |
8851 | return 0; | |
8852 | } | |
8853 | _ACEOF | |
8854 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8855 | if { (ac_try="$ac_link" |
8856 | case "(($ac_try" in | |
8857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8858 | *) ac_try_echo=$ac_try;; | |
8859 | esac | |
ec6a6fbe AK |
8860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8861 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8862 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8863 | ac_status=$? |
ec6a6fbe | 8864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8865 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8866 | { (case "(($ac_try" in |
8867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8868 | *) ac_try_echo=$ac_try;; | |
8869 | esac | |
ec6a6fbe AK |
8870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8871 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8872 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8873 | ac_status=$? |
ec6a6fbe | 8874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8875 | (exit $ac_status); }; }; then |
d911ec67 | 8876 | ac_cv_func_chown_works=yes |
ad6254c5 | 8877 | else |
ec6a6fbe AK |
8878 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8879 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8880 | sed 's/^/| /' conftest.$ac_ext >&5 |
8881 | ||
8882 | ( exit $ac_status ) | |
d911ec67 | 8883 | ac_cv_func_chown_works=no |
ad6254c5 | 8884 | fi |
ec6a6fbe | 8885 | rm -rf conftest.dSYM |
7a197a62 | 8886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8887 | fi |
7a197a62 AK |
8888 | |
8889 | ||
d911ec67 AK |
8890 | rm -f conftest.chown |
8891 | ||
ad6254c5 | 8892 | fi |
d911ec67 AK |
8893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8894 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8895 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8896 | |
8897 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8898 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8899 | _ACEOF |
8900 | ||
8901 | fi | |
8902 | ||
8903 | ||
7a197a62 | 8904 | for ac_header in vfork.h |
ad6254c5 | 8905 | do |
ec6a6fbe | 8906 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8908 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8909 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8910 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8911 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8912 | fi |
ec6a6fbe AK |
8913 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8914 | $as_echo "$as_val"'` | |
8915 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8916 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8917 | else |
8918 | # Is the header compilable? | |
ec6a6fbe AK |
8919 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8920 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8921 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8922 | /* confdefs.h. */ |
8923 | _ACEOF | |
8924 | cat confdefs.h >>conftest.$ac_ext | |
8925 | cat >>conftest.$ac_ext <<_ACEOF | |
8926 | /* end confdefs.h. */ | |
8927 | $ac_includes_default | |
8928 | #include <$ac_header> | |
8929 | _ACEOF | |
8930 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8931 | if { (ac_try="$ac_compile" |
8932 | case "(($ac_try" in | |
8933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8934 | *) ac_try_echo=$ac_try;; | |
8935 | esac | |
ec6a6fbe AK |
8936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8937 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8938 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8939 | ac_status=$? |
8a2fc586 AK |
8940 | grep -v '^ *+' conftest.er1 >conftest.err |
8941 | rm -f conftest.er1 | |
8942 | cat conftest.err >&5 | |
ec6a6fbe | 8943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8944 | (exit $ac_status); } && { |
8945 | test -z "$ac_c_werror_flag" || | |
8946 | test ! -s conftest.err | |
8947 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8948 | ac_header_compiler=yes |
8949 | else | |
ec6a6fbe | 8950 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8951 | sed 's/^/| /' conftest.$ac_ext >&5 |
8952 | ||
7a197a62 | 8953 | ac_header_compiler=no |
ad6254c5 | 8954 | fi |
7a197a62 AK |
8955 | |
8956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8957 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8958 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8959 | |
8960 | # Is the header present? | |
ec6a6fbe AK |
8961 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8962 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8963 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8964 | /* confdefs.h. */ |
8965 | _ACEOF | |
8966 | cat confdefs.h >>conftest.$ac_ext | |
8967 | cat >>conftest.$ac_ext <<_ACEOF | |
8968 | /* end confdefs.h. */ | |
8969 | #include <$ac_header> | |
8970 | _ACEOF | |
7a197a62 AK |
8971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8972 | case "(($ac_try" in | |
8973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8974 | *) ac_try_echo=$ac_try;; | |
8975 | esac | |
ec6a6fbe AK |
8976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8977 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8978 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8979 | ac_status=$? |
8980 | grep -v '^ *+' conftest.er1 >conftest.err | |
8981 | rm -f conftest.er1 | |
8982 | cat conftest.err >&5 | |
ec6a6fbe | 8983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8984 | (exit $ac_status); } >/dev/null && { |
8985 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8986 | test ! -s conftest.err | |
8987 | }; then | |
ad6254c5 AK |
8988 | ac_header_preproc=yes |
8989 | else | |
ec6a6fbe | 8990 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8991 | sed 's/^/| /' conftest.$ac_ext >&5 |
8992 | ||
8993 | ac_header_preproc=no | |
8994 | fi | |
7a197a62 | 8995 | |
ad6254c5 | 8996 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8997 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8998 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8999 | |
9000 | # So? What about this header? | |
8a2fc586 AK |
9001 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9002 | yes:no: ) | |
ec6a6fbe AK |
9003 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9004 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9006 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9007 | ac_header_preproc=yes |
ad6254c5 | 9008 | ;; |
8a2fc586 | 9009 | no:yes:* ) |
ec6a6fbe AK |
9010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9011 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9013 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9014 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9015 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9016 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9017 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9019 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9021 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9022 | |
ad6254c5 AK |
9023 | ;; |
9024 | esac | |
ec6a6fbe AK |
9025 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9026 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9027 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9028 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9029 | else |
8a2fc586 | 9030 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9031 | fi |
ec6a6fbe AK |
9032 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9033 | $as_echo "$as_val"'` | |
9034 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9035 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 9036 | |
795ca3e5 | 9037 | fi |
ec6a6fbe AK |
9038 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9039 | $as_echo "$as_val"'` | |
9040 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9041 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9042 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9043 | _ACEOF |
9044 | ||
9045 | fi | |
9046 | ||
9047 | done | |
795ca3e5 | 9048 | |
ad6254c5 AK |
9049 | |
9050 | ||
9051 | for ac_func in fork vfork | |
9052 | do | |
ec6a6fbe AK |
9053 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9054 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9055 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9056 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9057 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9058 | else |
ad6254c5 | 9059 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9060 | /* confdefs.h. */ |
9061 | _ACEOF | |
9062 | cat confdefs.h >>conftest.$ac_ext | |
9063 | cat >>conftest.$ac_ext <<_ACEOF | |
9064 | /* end confdefs.h. */ | |
8a2fc586 AK |
9065 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9066 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9067 | #define $ac_func innocuous_$ac_func | |
9068 | ||
ad6254c5 AK |
9069 | /* System header to define __stub macros and hopefully few prototypes, |
9070 | which can conflict with char $ac_func (); below. | |
9071 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9072 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9073 | |
ad6254c5 AK |
9074 | #ifdef __STDC__ |
9075 | # include <limits.h> | |
9076 | #else | |
9077 | # include <assert.h> | |
795ca3e5 | 9078 | #endif |
8a2fc586 AK |
9079 | |
9080 | #undef $ac_func | |
9081 | ||
7a197a62 AK |
9082 | /* Override any GCC internal prototype to avoid an error. |
9083 | Use char because int might match the return type of a GCC | |
9084 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 9085 | #ifdef __cplusplus |
ad6254c5 | 9086 | extern "C" |
ad6254c5 | 9087 | #endif |
ad6254c5 AK |
9088 | char $ac_func (); |
9089 | /* The GNU C library defines this for functions which it implements | |
9090 | to always fail with ENOSYS. Some functions are actually named | |
9091 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9092 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9093 | choke me |
795ca3e5 AK |
9094 | #endif |
9095 | ||
ad6254c5 AK |
9096 | int |
9097 | main () | |
9098 | { | |
7a197a62 | 9099 | return $ac_func (); |
ad6254c5 AK |
9100 | ; |
9101 | return 0; | |
9102 | } | |
9103 | _ACEOF | |
9104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9105 | if { (ac_try="$ac_link" |
9106 | case "(($ac_try" in | |
9107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9108 | *) ac_try_echo=$ac_try;; | |
9109 | esac | |
ec6a6fbe AK |
9110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9111 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9112 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9113 | ac_status=$? |
8a2fc586 AK |
9114 | grep -v '^ *+' conftest.er1 >conftest.err |
9115 | rm -f conftest.er1 | |
9116 | cat conftest.err >&5 | |
ec6a6fbe | 9117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9118 | (exit $ac_status); } && { |
9119 | test -z "$ac_c_werror_flag" || | |
9120 | test ! -s conftest.err | |
ec6a6fbe AK |
9121 | } && test -s conftest$ac_exeext && { |
9122 | test "$cross_compiling" = yes || | |
9123 | $as_test_x conftest$ac_exeext | |
9124 | }; then | |
ad6254c5 | 9125 | eval "$as_ac_var=yes" |
795ca3e5 | 9126 | else |
ec6a6fbe | 9127 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9128 | sed 's/^/| /' conftest.$ac_ext >&5 |
9129 | ||
7a197a62 | 9130 | eval "$as_ac_var=no" |
795ca3e5 | 9131 | fi |
7a197a62 | 9132 | |
ec6a6fbe | 9133 | rm -rf conftest.dSYM |
25fbec5b | 9134 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9135 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9136 | fi |
ec6a6fbe AK |
9137 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9138 | $as_echo "$as_val"'` | |
9139 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9140 | $as_echo "$ac_res" >&6; } | |
9141 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9142 | $as_echo "$as_val"'` | |
9143 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9144 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9145 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9146 | _ACEOF |
9147 | ||
9148 | fi | |
9149 | done | |
9150 | ||
9151 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9152 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9153 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9154 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9155 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9156 | else |
9157 | if test "$cross_compiling" = yes; then | |
9158 | ac_cv_func_fork_works=cross | |
9159 | else | |
9160 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9161 | /* confdefs.h. */ |
9162 | _ACEOF | |
9163 | cat confdefs.h >>conftest.$ac_ext | |
9164 | cat >>conftest.$ac_ext <<_ACEOF | |
9165 | /* end confdefs.h. */ | |
9166 | $ac_includes_default | |
9167 | int | |
9168 | main () | |
9169 | { | |
9170 | ||
9171 | /* By Ruediger Kuhlmann. */ | |
9172 | return fork () < 0; | |
9173 | ||
9174 | ; | |
9175 | return 0; | |
9176 | } | |
ad6254c5 AK |
9177 | _ACEOF |
9178 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9179 | if { (ac_try="$ac_link" |
9180 | case "(($ac_try" in | |
9181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9182 | *) ac_try_echo=$ac_try;; | |
9183 | esac | |
ec6a6fbe AK |
9184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9185 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9186 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9187 | ac_status=$? |
ec6a6fbe | 9188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9189 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9190 | { (case "(($ac_try" in |
9191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9192 | *) ac_try_echo=$ac_try;; | |
9193 | esac | |
ec6a6fbe AK |
9194 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9195 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9196 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9197 | ac_status=$? |
ec6a6fbe | 9198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9199 | (exit $ac_status); }; }; then |
9200 | ac_cv_func_fork_works=yes | |
9201 | else | |
ec6a6fbe AK |
9202 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9203 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9204 | sed 's/^/| /' conftest.$ac_ext >&5 |
9205 | ||
9206 | ( exit $ac_status ) | |
9207 | ac_cv_func_fork_works=no | |
9208 | fi | |
ec6a6fbe | 9209 | rm -rf conftest.dSYM |
7a197a62 | 9210 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9211 | fi |
7a197a62 AK |
9212 | |
9213 | ||
ad6254c5 | 9214 | fi |
ec6a6fbe AK |
9215 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9216 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9217 | |
9218 | else | |
9219 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9220 | fi | |
9221 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9222 | case $host in | |
9223 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9224 | # Override, as these systems have only a dummy fork() stub | |
9225 | ac_cv_func_fork_works=no | |
9226 | ;; | |
9227 | *) | |
9228 | ac_cv_func_fork_works=yes | |
9229 | ;; | |
9230 | esac | |
ec6a6fbe AK |
9231 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9232 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9233 | fi |
9234 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9235 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9236 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9237 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9238 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9239 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9240 | else |
9241 | if test "$cross_compiling" = yes; then | |
9242 | ac_cv_func_vfork_works=cross | |
9243 | else | |
9244 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9245 | /* confdefs.h. */ |
9246 | _ACEOF | |
9247 | cat confdefs.h >>conftest.$ac_ext | |
9248 | cat >>conftest.$ac_ext <<_ACEOF | |
9249 | /* end confdefs.h. */ | |
9250 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9251 | $ac_includes_default |
ad6254c5 | 9252 | #include <sys/wait.h> |
25fbec5b | 9253 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9254 | # include <vfork.h> |
9255 | #endif | |
9256 | /* On some sparc systems, changes by the child to local and incoming | |
9257 | argument registers are propagated back to the parent. The compiler | |
9258 | is told about this with #include <vfork.h>, but some compilers | |
9259 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9260 | static variable whose address is put into a register that is | |
9261 | clobbered by the vfork. */ | |
9262 | static void | |
9263 | #ifdef __cplusplus | |
9264 | sparc_address_test (int arg) | |
9265 | # else | |
9266 | sparc_address_test (arg) int arg; | |
9267 | #endif | |
9268 | { | |
9269 | static pid_t child; | |
9270 | if (!child) { | |
9271 | child = vfork (); | |
9272 | if (child < 0) { | |
9273 | perror ("vfork"); | |
9274 | _exit(2); | |
9275 | } | |
9276 | if (!child) { | |
9277 | arg = getpid(); | |
9278 | write(-1, "", 0); | |
9279 | _exit (arg); | |
9280 | } | |
9281 | } | |
9282 | } | |
9283 | ||
9284 | int | |
9285 | main () | |
9286 | { | |
9287 | pid_t parent = getpid (); | |
9288 | pid_t child; | |
9289 | ||
9290 | sparc_address_test (0); | |
9291 | ||
9292 | child = vfork (); | |
9293 | ||
9294 | if (child == 0) { | |
9295 | /* Here is another test for sparc vfork register problems. This | |
9296 | test uses lots of local variables, at least as many local | |
9297 | variables as main has allocated so far including compiler | |
9298 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9299 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9300 | reuse the register of parent for one of the local variables, | |
9301 | since it will think that parent can't possibly be used any more | |
9302 | in this routine. Assigning to the local variable will thus | |
9303 | munge parent in the parent process. */ | |
9304 | pid_t | |
9305 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9306 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9307 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9308 | use the same hardware register for all 8 local variables. */ | |
9309 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9310 | || p != p5 || p != p6 || p != p7) | |
9311 | _exit(1); | |
9312 | ||
9313 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9314 | from child file descriptors. If the child closes a descriptor | |
9315 | before it execs or exits, this munges the parent's descriptor | |
9316 | as well. Test for this by closing stdout in the child. */ | |
9317 | _exit(close(fileno(stdout)) != 0); | |
9318 | } else { | |
9319 | int status; | |
9320 | struct stat st; | |
9321 | ||
9322 | while (wait(&status) != child) | |
9323 | ; | |
7a197a62 | 9324 | return ( |
ad6254c5 AK |
9325 | /* Was there some problem with vforking? */ |
9326 | child < 0 | |
9327 | ||
9328 | /* Did the child fail? (This shouldn't happen.) */ | |
9329 | || status | |
9330 | ||
9331 | /* Did the vfork/compiler bug occur? */ | |
9332 | || parent != getpid() | |
9333 | ||
9334 | /* Did the file descriptor bug occur? */ | |
9335 | || fstat(fileno(stdout), &st) != 0 | |
9336 | ); | |
9337 | } | |
9338 | } | |
9339 | _ACEOF | |
9340 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9341 | if { (ac_try="$ac_link" |
9342 | case "(($ac_try" in | |
9343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9344 | *) ac_try_echo=$ac_try;; | |
9345 | esac | |
ec6a6fbe AK |
9346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9347 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9348 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9349 | ac_status=$? |
ec6a6fbe | 9350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9351 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9352 | { (case "(($ac_try" in |
9353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9354 | *) ac_try_echo=$ac_try;; | |
9355 | esac | |
ec6a6fbe AK |
9356 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9357 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9358 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9359 | ac_status=$? |
ec6a6fbe | 9360 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9361 | (exit $ac_status); }; }; then |
9362 | ac_cv_func_vfork_works=yes | |
9363 | else | |
ec6a6fbe AK |
9364 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9365 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9366 | sed 's/^/| /' conftest.$ac_ext >&5 |
9367 | ||
9368 | ( exit $ac_status ) | |
9369 | ac_cv_func_vfork_works=no | |
9370 | fi | |
ec6a6fbe | 9371 | rm -rf conftest.dSYM |
7a197a62 | 9372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9373 | fi |
7a197a62 AK |
9374 | |
9375 | ||
ad6254c5 | 9376 | fi |
ec6a6fbe AK |
9377 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9378 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9379 | |
9380 | fi; | |
9381 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9382 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9383 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9384 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9385 | fi |
9386 | ||
9387 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9388 | ||
9389 | cat >>confdefs.h <<\_ACEOF | |
9390 | #define HAVE_WORKING_VFORK 1 | |
9391 | _ACEOF | |
9392 | ||
9393 | else | |
9394 | ||
9395 | cat >>confdefs.h <<\_ACEOF | |
9396 | #define vfork fork | |
9397 | _ACEOF | |
9398 | ||
9399 | fi | |
9400 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9401 | ||
9402 | cat >>confdefs.h <<\_ACEOF | |
9403 | #define HAVE_WORKING_FORK 1 | |
9404 | _ACEOF | |
9405 | ||
9406 | fi | |
9407 | ||
ec6a6fbe AK |
9408 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9409 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9410 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9411 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9412 | else |
9413 | rm -f conftest.sym conftest.file | |
9414 | echo >conftest.file | |
9415 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9416 | if test "$cross_compiling" = yes; then | |
9417 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9418 | else | |
9419 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9420 | /* confdefs.h. */ |
9421 | _ACEOF | |
9422 | cat confdefs.h >>conftest.$ac_ext | |
9423 | cat >>conftest.$ac_ext <<_ACEOF | |
9424 | /* end confdefs.h. */ | |
9425 | $ac_includes_default | |
9426 | int | |
9427 | main () | |
9428 | { | |
9429 | struct stat sbuf; | |
9430 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9431 | That is better in the sense that it means we will not |
9432 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9433 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9434 | ; |
9435 | return 0; | |
9436 | } | |
9437 | _ACEOF | |
9438 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9439 | if { (ac_try="$ac_link" |
9440 | case "(($ac_try" in | |
9441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9442 | *) ac_try_echo=$ac_try;; | |
9443 | esac | |
ec6a6fbe AK |
9444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9445 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9446 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9447 | ac_status=$? |
ec6a6fbe | 9448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9449 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9450 | { (case "(($ac_try" in |
9451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9452 | *) ac_try_echo=$ac_try;; | |
9453 | esac | |
ec6a6fbe AK |
9454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9455 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9456 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9457 | ac_status=$? |
ec6a6fbe | 9458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9459 | (exit $ac_status); }; }; then |
9460 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9461 | else | |
ec6a6fbe AK |
9462 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9463 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9464 | sed 's/^/| /' conftest.$ac_ext >&5 |
9465 | ||
9466 | ( exit $ac_status ) | |
9467 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9468 | fi | |
ec6a6fbe | 9469 | rm -rf conftest.dSYM |
7a197a62 | 9470 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9471 | fi |
7a197a62 AK |
9472 | |
9473 | ||
ad6254c5 AK |
9474 | else |
9475 | # If the `ln -s' command failed, then we probably don't even | |
9476 | # have an lstat function. | |
9477 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9478 | fi | |
9479 | rm -f conftest.sym conftest.file | |
9480 | ||
9481 | fi | |
ec6a6fbe AK |
9482 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9483 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9484 | |
9485 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9486 | ||
9487 | cat >>confdefs.h <<_ACEOF | |
9488 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9489 | _ACEOF | |
9490 | ||
9491 | ||
9492 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9493 | case " $LIBOBJS " in |
8a2fc586 | 9494 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9495 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9496 | ;; | |
8a2fc586 AK |
9497 | esac |
9498 | ||
ad6254c5 AK |
9499 | fi |
9500 | ||
ec6a6fbe AK |
9501 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9502 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9503 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9504 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9505 | else |
9506 | if test "$cross_compiling" = yes; then | |
9507 | ac_cv_func_lstat_empty_string_bug=yes | |
9508 | else | |
9509 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9510 | /* confdefs.h. */ |
9511 | _ACEOF | |
9512 | cat confdefs.h >>conftest.$ac_ext | |
9513 | cat >>conftest.$ac_ext <<_ACEOF | |
9514 | /* end confdefs.h. */ | |
9515 | $ac_includes_default | |
9516 | int | |
9517 | main () | |
9518 | { | |
9519 | struct stat sbuf; | |
7a197a62 | 9520 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9521 | ; |
9522 | return 0; | |
9523 | } | |
9524 | _ACEOF | |
9525 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9526 | if { (ac_try="$ac_link" |
9527 | case "(($ac_try" in | |
9528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9529 | *) ac_try_echo=$ac_try;; | |
9530 | esac | |
ec6a6fbe AK |
9531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9532 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9533 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9534 | ac_status=$? |
ec6a6fbe | 9535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9537 | { (case "(($ac_try" in |
9538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9539 | *) ac_try_echo=$ac_try;; | |
9540 | esac | |
ec6a6fbe AK |
9541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9542 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9543 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9544 | ac_status=$? |
ec6a6fbe | 9545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9546 | (exit $ac_status); }; }; then |
7a197a62 | 9547 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9548 | else |
ec6a6fbe AK |
9549 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9550 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9551 | sed 's/^/| /' conftest.$ac_ext >&5 |
9552 | ||
9553 | ( exit $ac_status ) | |
7a197a62 | 9554 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9555 | fi |
ec6a6fbe | 9556 | rm -rf conftest.dSYM |
7a197a62 | 9557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9558 | fi |
7a197a62 AK |
9559 | |
9560 | ||
ad6254c5 | 9561 | fi |
ec6a6fbe AK |
9562 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9563 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9564 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 9565 | case " $LIBOBJS " in |
8a2fc586 | 9566 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9567 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9568 | ;; | |
8a2fc586 AK |
9569 | esac |
9570 | ||
ad6254c5 AK |
9571 | |
9572 | cat >>confdefs.h <<_ACEOF | |
9573 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9574 | _ACEOF | |
9575 | ||
9576 | fi | |
9577 | ||
9578 | ||
9579 | for ac_header in stdlib.h | |
9580 | do | |
ec6a6fbe | 9581 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9582 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9583 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9584 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9586 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9587 | fi |
ec6a6fbe AK |
9588 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9589 | $as_echo "$as_val"'` | |
9590 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9591 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9592 | else |
9593 | # Is the header compilable? | |
ec6a6fbe AK |
9594 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9595 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9596 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9597 | /* confdefs.h. */ |
9598 | _ACEOF | |
9599 | cat confdefs.h >>conftest.$ac_ext | |
9600 | cat >>conftest.$ac_ext <<_ACEOF | |
9601 | /* end confdefs.h. */ | |
9602 | $ac_includes_default | |
9603 | #include <$ac_header> | |
9604 | _ACEOF | |
9605 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9606 | if { (ac_try="$ac_compile" |
9607 | case "(($ac_try" in | |
9608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9609 | *) ac_try_echo=$ac_try;; | |
9610 | esac | |
ec6a6fbe AK |
9611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9612 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9613 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9614 | ac_status=$? |
8a2fc586 AK |
9615 | grep -v '^ *+' conftest.er1 >conftest.err |
9616 | rm -f conftest.er1 | |
9617 | cat conftest.err >&5 | |
ec6a6fbe | 9618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9619 | (exit $ac_status); } && { |
9620 | test -z "$ac_c_werror_flag" || | |
9621 | test ! -s conftest.err | |
9622 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9623 | ac_header_compiler=yes |
9624 | else | |
ec6a6fbe | 9625 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9626 | sed 's/^/| /' conftest.$ac_ext >&5 |
9627 | ||
7a197a62 | 9628 | ac_header_compiler=no |
ad6254c5 | 9629 | fi |
7a197a62 AK |
9630 | |
9631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9632 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9633 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9634 | |
9635 | # Is the header present? | |
ec6a6fbe AK |
9636 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9637 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9638 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9639 | /* confdefs.h. */ |
9640 | _ACEOF | |
9641 | cat confdefs.h >>conftest.$ac_ext | |
9642 | cat >>conftest.$ac_ext <<_ACEOF | |
9643 | /* end confdefs.h. */ | |
9644 | #include <$ac_header> | |
9645 | _ACEOF | |
7a197a62 AK |
9646 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9647 | case "(($ac_try" in | |
9648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9649 | *) ac_try_echo=$ac_try;; | |
9650 | esac | |
ec6a6fbe AK |
9651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9652 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9654 | ac_status=$? |
9655 | grep -v '^ *+' conftest.er1 >conftest.err | |
9656 | rm -f conftest.er1 | |
9657 | cat conftest.err >&5 | |
ec6a6fbe | 9658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9659 | (exit $ac_status); } >/dev/null && { |
9660 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9661 | test ! -s conftest.err | |
9662 | }; then | |
ad6254c5 AK |
9663 | ac_header_preproc=yes |
9664 | else | |
ec6a6fbe | 9665 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9666 | sed 's/^/| /' conftest.$ac_ext >&5 |
9667 | ||
9668 | ac_header_preproc=no | |
9669 | fi | |
7a197a62 | 9670 | |
ad6254c5 | 9671 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9672 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9673 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9674 | |
9675 | # So? What about this header? | |
8a2fc586 AK |
9676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9677 | yes:no: ) | |
ec6a6fbe AK |
9678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9679 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9681 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9682 | ac_header_preproc=yes |
ad6254c5 | 9683 | ;; |
8a2fc586 | 9684 | no:yes:* ) |
ec6a6fbe AK |
9685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9686 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9688 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9690 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9692 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9694 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9696 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9697 | |
ad6254c5 AK |
9698 | ;; |
9699 | esac | |
ec6a6fbe AK |
9700 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9701 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9703 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9704 | else |
8a2fc586 | 9705 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9706 | fi |
ec6a6fbe AK |
9707 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9708 | $as_echo "$as_val"'` | |
9709 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9710 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9711 | |
9712 | fi | |
ec6a6fbe AK |
9713 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9714 | $as_echo "$as_val"'` | |
9715 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9716 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9717 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9718 | _ACEOF |
9719 | ||
9720 | fi | |
9721 | ||
9722 | done | |
9723 | ||
ec6a6fbe AK |
9724 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9725 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9726 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9727 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9728 | else |
9729 | if test "$cross_compiling" = yes; then | |
9730 | ac_cv_func_malloc_0_nonnull=no | |
9731 | else | |
9732 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9733 | /* confdefs.h. */ |
9734 | _ACEOF | |
9735 | cat confdefs.h >>conftest.$ac_ext | |
9736 | cat >>conftest.$ac_ext <<_ACEOF | |
9737 | /* end confdefs.h. */ | |
25fbec5b | 9738 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9739 | # include <stdlib.h> |
9740 | #else | |
9741 | char *malloc (); | |
9742 | #endif | |
9743 | ||
9744 | int | |
9745 | main () | |
9746 | { | |
7a197a62 | 9747 | return ! malloc (0); |
ad6254c5 AK |
9748 | ; |
9749 | return 0; | |
9750 | } | |
9751 | _ACEOF | |
9752 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9753 | if { (ac_try="$ac_link" |
9754 | case "(($ac_try" in | |
9755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9756 | *) ac_try_echo=$ac_try;; | |
9757 | esac | |
ec6a6fbe AK |
9758 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9759 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9760 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9761 | ac_status=$? |
ec6a6fbe | 9762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9763 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9764 | { (case "(($ac_try" in |
9765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9766 | *) ac_try_echo=$ac_try;; | |
9767 | esac | |
ec6a6fbe AK |
9768 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9769 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9770 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9771 | ac_status=$? |
ec6a6fbe | 9772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9773 | (exit $ac_status); }; }; then |
9774 | ac_cv_func_malloc_0_nonnull=yes | |
9775 | else | |
ec6a6fbe AK |
9776 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9777 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9778 | sed 's/^/| /' conftest.$ac_ext >&5 |
9779 | ||
9780 | ( exit $ac_status ) | |
9781 | ac_cv_func_malloc_0_nonnull=no | |
9782 | fi | |
ec6a6fbe | 9783 | rm -rf conftest.dSYM |
7a197a62 | 9784 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9785 | fi |
7a197a62 AK |
9786 | |
9787 | ||
ad6254c5 | 9788 | fi |
ec6a6fbe AK |
9789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9790 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9791 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9792 | ||
9793 | cat >>confdefs.h <<\_ACEOF | |
9794 | #define HAVE_MALLOC 1 | |
9795 | _ACEOF | |
9796 | ||
9797 | else | |
9798 | cat >>confdefs.h <<\_ACEOF | |
9799 | #define HAVE_MALLOC 0 | |
9800 | _ACEOF | |
9801 | ||
7a197a62 | 9802 | case " $LIBOBJS " in |
8a2fc586 | 9803 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9804 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9805 | ;; | |
8a2fc586 AK |
9806 | esac |
9807 | ||
ad6254c5 AK |
9808 | |
9809 | cat >>confdefs.h <<\_ACEOF | |
9810 | #define malloc rpl_malloc | |
9811 | _ACEOF | |
9812 | ||
9813 | fi | |
9814 | ||
9815 | ||
9816 | ||
ec6a6fbe AK |
9817 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9818 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9819 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9820 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9821 | else |
9822 | if test "$cross_compiling" = yes; then | |
9823 | ac_cv_func_memcmp_working=no | |
9824 | else | |
9825 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9826 | /* confdefs.h. */ |
9827 | _ACEOF | |
9828 | cat confdefs.h >>conftest.$ac_ext | |
9829 | cat >>conftest.$ac_ext <<_ACEOF | |
9830 | /* end confdefs.h. */ | |
8a2fc586 | 9831 | $ac_includes_default |
ad6254c5 AK |
9832 | int |
9833 | main () | |
9834 | { | |
9835 | ||
9836 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9837 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9838 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9839 | return 1; |
ad6254c5 AK |
9840 | |
9841 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9842 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9843 | William Lewis provided this test program. */ | |
9844 | { | |
9845 | char foo[21]; | |
9846 | char bar[21]; | |
9847 | int i; | |
9848 | for (i = 0; i < 4; i++) | |
9849 | { | |
8a2fc586 AK |
9850 | char *a = foo + i; |
9851 | char *b = bar + i; | |
9852 | strcpy (a, "--------01111111"); | |
9853 | strcpy (b, "--------10000000"); | |
9854 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9855 | return 1; |
ad6254c5 | 9856 | } |
7a197a62 | 9857 | return 0; |
ad6254c5 AK |
9858 | } |
9859 | ||
9860 | ; | |
9861 | return 0; | |
9862 | } | |
9863 | _ACEOF | |
9864 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9865 | if { (ac_try="$ac_link" |
9866 | case "(($ac_try" in | |
9867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9868 | *) ac_try_echo=$ac_try;; | |
9869 | esac | |
ec6a6fbe AK |
9870 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9871 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9872 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9873 | ac_status=$? |
ec6a6fbe | 9874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9876 | { (case "(($ac_try" in |
9877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9878 | *) ac_try_echo=$ac_try;; | |
9879 | esac | |
ec6a6fbe AK |
9880 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9881 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9882 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9883 | ac_status=$? |
ec6a6fbe | 9884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9885 | (exit $ac_status); }; }; then |
9886 | ac_cv_func_memcmp_working=yes | |
9887 | else | |
ec6a6fbe AK |
9888 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9889 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9890 | sed 's/^/| /' conftest.$ac_ext >&5 |
9891 | ||
9892 | ( exit $ac_status ) | |
9893 | ac_cv_func_memcmp_working=no | |
9894 | fi | |
ec6a6fbe | 9895 | rm -rf conftest.dSYM |
7a197a62 | 9896 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9897 | fi |
7a197a62 AK |
9898 | |
9899 | ||
ad6254c5 | 9900 | fi |
ec6a6fbe AK |
9901 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9902 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9903 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9904 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9905 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9906 | ;; | |
8a2fc586 AK |
9907 | esac |
9908 | ||
ad6254c5 AK |
9909 | |
9910 | ||
9911 | ||
9912 | for ac_header in stdlib.h unistd.h | |
9913 | do | |
ec6a6fbe | 9914 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9916 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9917 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9919 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9920 | fi |
ec6a6fbe AK |
9921 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9922 | $as_echo "$as_val"'` | |
9923 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9924 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9925 | else |
9926 | # Is the header compilable? | |
ec6a6fbe AK |
9927 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9928 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9929 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9930 | /* confdefs.h. */ |
9931 | _ACEOF | |
9932 | cat confdefs.h >>conftest.$ac_ext | |
9933 | cat >>conftest.$ac_ext <<_ACEOF | |
9934 | /* end confdefs.h. */ | |
9935 | $ac_includes_default | |
9936 | #include <$ac_header> | |
9937 | _ACEOF | |
9938 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9939 | if { (ac_try="$ac_compile" |
9940 | case "(($ac_try" in | |
9941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9942 | *) ac_try_echo=$ac_try;; | |
9943 | esac | |
ec6a6fbe AK |
9944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9945 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9946 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9947 | ac_status=$? |
8a2fc586 AK |
9948 | grep -v '^ *+' conftest.er1 >conftest.err |
9949 | rm -f conftest.er1 | |
9950 | cat conftest.err >&5 | |
ec6a6fbe | 9951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9952 | (exit $ac_status); } && { |
9953 | test -z "$ac_c_werror_flag" || | |
9954 | test ! -s conftest.err | |
9955 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9956 | ac_header_compiler=yes |
9957 | else | |
ec6a6fbe | 9958 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9959 | sed 's/^/| /' conftest.$ac_ext >&5 |
9960 | ||
7a197a62 | 9961 | ac_header_compiler=no |
ad6254c5 | 9962 | fi |
7a197a62 AK |
9963 | |
9964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9965 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9966 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9967 | |
9968 | # Is the header present? | |
ec6a6fbe AK |
9969 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9970 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9971 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9972 | /* confdefs.h. */ |
9973 | _ACEOF | |
9974 | cat confdefs.h >>conftest.$ac_ext | |
9975 | cat >>conftest.$ac_ext <<_ACEOF | |
9976 | /* end confdefs.h. */ | |
9977 | #include <$ac_header> | |
9978 | _ACEOF | |
7a197a62 AK |
9979 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9980 | case "(($ac_try" in | |
9981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9982 | *) ac_try_echo=$ac_try;; | |
9983 | esac | |
ec6a6fbe AK |
9984 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9985 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9986 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9987 | ac_status=$? |
9988 | grep -v '^ *+' conftest.er1 >conftest.err | |
9989 | rm -f conftest.er1 | |
9990 | cat conftest.err >&5 | |
ec6a6fbe | 9991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9992 | (exit $ac_status); } >/dev/null && { |
9993 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9994 | test ! -s conftest.err | |
9995 | }; then | |
ad6254c5 AK |
9996 | ac_header_preproc=yes |
9997 | else | |
ec6a6fbe | 9998 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9999 | sed 's/^/| /' conftest.$ac_ext >&5 |
10000 | ||
10001 | ac_header_preproc=no | |
10002 | fi | |
7a197a62 | 10003 | |
ad6254c5 | 10004 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10005 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10006 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10007 | |
10008 | # So? What about this header? | |
8a2fc586 AK |
10009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10010 | yes:no: ) | |
ec6a6fbe AK |
10011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10012 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10014 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10015 | ac_header_preproc=yes |
ad6254c5 | 10016 | ;; |
8a2fc586 | 10017 | no:yes:* ) |
ec6a6fbe AK |
10018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10019 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10021 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10023 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10025 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10027 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10029 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10030 | |
ad6254c5 AK |
10031 | ;; |
10032 | esac | |
ec6a6fbe AK |
10033 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10034 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10036 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10037 | else |
8a2fc586 | 10038 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10039 | fi |
ec6a6fbe AK |
10040 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10041 | $as_echo "$as_val"'` | |
10042 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10043 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10044 | |
10045 | fi | |
ec6a6fbe AK |
10046 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10047 | $as_echo "$as_val"'` | |
10048 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10049 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10050 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10051 | _ACEOF |
10052 | ||
10053 | fi | |
10054 | ||
10055 | done | |
10056 | ||
10057 | ||
10058 | for ac_func in getpagesize | |
10059 | do | |
ec6a6fbe AK |
10060 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10061 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10062 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10063 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10064 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10065 | else |
10066 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10067 | /* confdefs.h. */ |
10068 | _ACEOF | |
10069 | cat confdefs.h >>conftest.$ac_ext | |
10070 | cat >>conftest.$ac_ext <<_ACEOF | |
10071 | /* end confdefs.h. */ | |
8a2fc586 AK |
10072 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10073 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10074 | #define $ac_func innocuous_$ac_func | |
10075 | ||
ad6254c5 AK |
10076 | /* System header to define __stub macros and hopefully few prototypes, |
10077 | which can conflict with char $ac_func (); below. | |
10078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10079 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10080 | |
ad6254c5 AK |
10081 | #ifdef __STDC__ |
10082 | # include <limits.h> | |
10083 | #else | |
10084 | # include <assert.h> | |
10085 | #endif | |
8a2fc586 AK |
10086 | |
10087 | #undef $ac_func | |
10088 | ||
7a197a62 AK |
10089 | /* Override any GCC internal prototype to avoid an error. |
10090 | Use char because int might match the return type of a GCC | |
10091 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10092 | #ifdef __cplusplus |
10093 | extern "C" | |
ad6254c5 | 10094 | #endif |
ad6254c5 AK |
10095 | char $ac_func (); |
10096 | /* The GNU C library defines this for functions which it implements | |
10097 | to always fail with ENOSYS. Some functions are actually named | |
10098 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10099 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10100 | choke me |
ad6254c5 AK |
10101 | #endif |
10102 | ||
10103 | int | |
10104 | main () | |
10105 | { | |
7a197a62 | 10106 | return $ac_func (); |
ad6254c5 AK |
10107 | ; |
10108 | return 0; | |
10109 | } | |
10110 | _ACEOF | |
10111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10112 | if { (ac_try="$ac_link" |
10113 | case "(($ac_try" in | |
10114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10115 | *) ac_try_echo=$ac_try;; | |
10116 | esac | |
ec6a6fbe AK |
10117 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10118 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10119 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10120 | ac_status=$? |
8a2fc586 AK |
10121 | grep -v '^ *+' conftest.er1 >conftest.err |
10122 | rm -f conftest.er1 | |
10123 | cat conftest.err >&5 | |
ec6a6fbe | 10124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10125 | (exit $ac_status); } && { |
10126 | test -z "$ac_c_werror_flag" || | |
10127 | test ! -s conftest.err | |
ec6a6fbe AK |
10128 | } && test -s conftest$ac_exeext && { |
10129 | test "$cross_compiling" = yes || | |
10130 | $as_test_x conftest$ac_exeext | |
10131 | }; then | |
ad6254c5 AK |
10132 | eval "$as_ac_var=yes" |
10133 | else | |
ec6a6fbe | 10134 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10135 | sed 's/^/| /' conftest.$ac_ext >&5 |
10136 | ||
7a197a62 | 10137 | eval "$as_ac_var=no" |
ad6254c5 | 10138 | fi |
7a197a62 | 10139 | |
ec6a6fbe | 10140 | rm -rf conftest.dSYM |
25fbec5b | 10141 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10142 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10143 | fi |
ec6a6fbe AK |
10144 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10145 | $as_echo "$as_val"'` | |
10146 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10147 | $as_echo "$ac_res" >&6; } | |
10148 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10149 | $as_echo "$as_val"'` | |
10150 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10151 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10152 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10153 | _ACEOF |
10154 | ||
10155 | fi | |
10156 | done | |
10157 | ||
ec6a6fbe AK |
10158 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10159 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10160 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10161 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10162 | else |
10163 | if test "$cross_compiling" = yes; then | |
10164 | ac_cv_func_mmap_fixed_mapped=no | |
10165 | else | |
10166 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10167 | /* confdefs.h. */ |
10168 | _ACEOF | |
10169 | cat confdefs.h >>conftest.$ac_ext | |
10170 | cat >>conftest.$ac_ext <<_ACEOF | |
10171 | /* end confdefs.h. */ | |
10172 | $ac_includes_default | |
10173 | /* malloc might have been renamed as rpl_malloc. */ | |
10174 | #undef malloc | |
10175 | ||
10176 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10177 | Here is a matrix of mmap possibilities: | |
10178 | mmap private not fixed | |
10179 | mmap private fixed at somewhere currently unmapped | |
10180 | mmap private fixed at somewhere already mapped | |
10181 | mmap shared not fixed | |
10182 | mmap shared fixed at somewhere currently unmapped | |
10183 | mmap shared fixed at somewhere already mapped | |
10184 | For private mappings, we should verify that changes cannot be read() | |
10185 | back from the file, nor mmap's back from the file at a different | |
10186 | address. (There have been systems where private was not correctly | |
10187 | implemented like the infamous i386 svr4.0, and systems where the | |
10188 | VM page cache was not coherent with the file system buffer cache | |
10189 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10190 | For shared mappings, we should conversely verify that changes get | |
10191 | propagated back to all the places they're supposed to be. | |
10192 | ||
10193 | Grep wants private fixed already mapped. | |
10194 | The main things grep needs to know about mmap are: | |
10195 | * does it exist and is it safe to write into the mmap'd area | |
10196 | * how to use it (BSD variants) */ | |
10197 | ||
10198 | #include <fcntl.h> | |
10199 | #include <sys/mman.h> | |
10200 | ||
25fbec5b | 10201 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10202 | char *malloc (); |
10203 | #endif | |
10204 | ||
10205 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10206 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10207 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10208 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10209 | # define HAVE_SYS_PARAM_H 1 |
10210 | # endif | |
10211 | ||
10212 | # ifdef _SC_PAGESIZE | |
10213 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10214 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10215 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10216 | # include <sys/param.h> |
10217 | # ifdef EXEC_PAGESIZE | |
10218 | # define getpagesize() EXEC_PAGESIZE | |
10219 | # else /* no EXEC_PAGESIZE */ | |
10220 | # ifdef NBPG | |
10221 | # define getpagesize() NBPG * CLSIZE | |
10222 | # ifndef CLSIZE | |
10223 | # define CLSIZE 1 | |
10224 | # endif /* no CLSIZE */ | |
10225 | # else /* no NBPG */ | |
10226 | # ifdef NBPC | |
10227 | # define getpagesize() NBPC | |
10228 | # else /* no NBPC */ | |
10229 | # ifdef PAGESIZE | |
10230 | # define getpagesize() PAGESIZE | |
10231 | # endif /* PAGESIZE */ | |
10232 | # endif /* no NBPC */ | |
10233 | # endif /* no NBPG */ | |
10234 | # endif /* no EXEC_PAGESIZE */ | |
10235 | # else /* no HAVE_SYS_PARAM_H */ | |
10236 | # define getpagesize() 8192 /* punt totally */ | |
10237 | # endif /* no HAVE_SYS_PARAM_H */ | |
10238 | # endif /* no _SC_PAGESIZE */ | |
10239 | ||
10240 | #endif /* no HAVE_GETPAGESIZE */ | |
10241 | ||
10242 | int | |
10243 | main () | |
10244 | { | |
10245 | char *data, *data2, *data3; | |
10246 | int i, pagesize; | |
10247 | int fd; | |
10248 | ||
10249 | pagesize = getpagesize (); | |
10250 | ||
10251 | /* First, make a file with some known garbage in it. */ | |
10252 | data = (char *) malloc (pagesize); | |
10253 | if (!data) | |
7a197a62 | 10254 | return 1; |
ad6254c5 AK |
10255 | for (i = 0; i < pagesize; ++i) |
10256 | *(data + i) = rand (); | |
10257 | umask (0); | |
10258 | fd = creat ("conftest.mmap", 0600); | |
10259 | if (fd < 0) | |
7a197a62 | 10260 | return 1; |
ad6254c5 | 10261 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10262 | return 1; |
ad6254c5 AK |
10263 | close (fd); |
10264 | ||
10265 | /* Next, try to mmap the file at a fixed address which already has | |
10266 | something else allocated at it. If we can, also make sure that | |
10267 | we see the same garbage. */ | |
10268 | fd = open ("conftest.mmap", O_RDWR); | |
10269 | if (fd < 0) | |
7a197a62 | 10270 | return 1; |
ad6254c5 AK |
10271 | data2 = (char *) malloc (2 * pagesize); |
10272 | if (!data2) | |
7a197a62 AK |
10273 | return 1; |
10274 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10275 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10276 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10277 | return 1; |
ad6254c5 AK |
10278 | for (i = 0; i < pagesize; ++i) |
10279 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10280 | return 1; |
ad6254c5 | 10281 | |
d911ec67 AK |
10282 | /* Finally, make sure that changes to the mapped area do not |
10283 | percolate back to the file as seen by read(). (This is a bug on | |
10284 | some variants of i386 svr4.0.) */ | |
10285 | for (i = 0; i < pagesize; ++i) | |
10286 | *(data2 + i) = *(data2 + i) + 1; | |
10287 | data3 = (char *) malloc (pagesize); | |
10288 | if (!data3) | |
10289 | return 1; | |
10290 | if (read (fd, data3, pagesize) != pagesize) | |
10291 | return 1; | |
10292 | for (i = 0; i < pagesize; ++i) | |
10293 | if (*(data + i) != *(data3 + i)) | |
10294 | return 1; | |
10295 | close (fd); | |
10296 | return 0; | |
10297 | } | |
10298 | _ACEOF | |
10299 | rm -f conftest$ac_exeext | |
10300 | if { (ac_try="$ac_link" | |
10301 | case "(($ac_try" in | |
10302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10303 | *) ac_try_echo=$ac_try;; | |
10304 | esac | |
10305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10306 | $as_echo "$ac_try_echo") >&5 | |
10307 | (eval "$ac_link") 2>&5 | |
10308 | ac_status=$? | |
10309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10310 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10311 | { (case "(($ac_try" in | |
10312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10313 | *) ac_try_echo=$ac_try;; | |
10314 | esac | |
10315 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10316 | $as_echo "$ac_try_echo") >&5 | |
10317 | (eval "$ac_try") 2>&5 | |
10318 | ac_status=$? | |
10319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10320 | (exit $ac_status); }; }; then | |
10321 | ac_cv_func_mmap_fixed_mapped=yes | |
10322 | else | |
10323 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10324 | $as_echo "$as_me: failed program was:" >&5 | |
10325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10326 | ||
10327 | ( exit $ac_status ) | |
10328 | ac_cv_func_mmap_fixed_mapped=no | |
10329 | fi | |
10330 | rm -rf conftest.dSYM | |
10331 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10332 | fi | |
10333 | ||
10334 | ||
10335 | fi | |
10336 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10337 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10338 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10339 | ||
10340 | cat >>confdefs.h <<\_ACEOF | |
10341 | #define HAVE_MMAP 1 | |
10342 | _ACEOF | |
10343 | ||
10344 | fi | |
10345 | rm -f conftest.mmap | |
10346 | ||
10347 | ||
10348 | for ac_header in stdlib.h | |
10349 | do | |
10350 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10352 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10353 | $as_echo_n "checking for $ac_header... " >&6; } | |
10354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10355 | $as_echo_n "(cached) " >&6 | |
10356 | fi | |
10357 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10358 | $as_echo "$as_val"'` | |
10359 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10360 | $as_echo "$ac_res" >&6; } | |
10361 | else | |
10362 | # Is the header compilable? | |
10363 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10364 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10365 | cat >conftest.$ac_ext <<_ACEOF | |
10366 | /* confdefs.h. */ | |
10367 | _ACEOF | |
10368 | cat confdefs.h >>conftest.$ac_ext | |
10369 | cat >>conftest.$ac_ext <<_ACEOF | |
10370 | /* end confdefs.h. */ | |
10371 | $ac_includes_default | |
10372 | #include <$ac_header> | |
10373 | _ACEOF | |
10374 | rm -f conftest.$ac_objext | |
10375 | if { (ac_try="$ac_compile" | |
10376 | case "(($ac_try" in | |
10377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10378 | *) ac_try_echo=$ac_try;; | |
10379 | esac | |
10380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10381 | $as_echo "$ac_try_echo") >&5 | |
10382 | (eval "$ac_compile") 2>conftest.er1 | |
10383 | ac_status=$? | |
10384 | grep -v '^ *+' conftest.er1 >conftest.err | |
10385 | rm -f conftest.er1 | |
10386 | cat conftest.err >&5 | |
10387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10388 | (exit $ac_status); } && { | |
10389 | test -z "$ac_c_werror_flag" || | |
10390 | test ! -s conftest.err | |
10391 | } && test -s conftest.$ac_objext; then | |
10392 | ac_header_compiler=yes | |
10393 | else | |
10394 | $as_echo "$as_me: failed program was:" >&5 | |
10395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10396 | ||
10397 | ac_header_compiler=no | |
10398 | fi | |
10399 | ||
10400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10401 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10402 | $as_echo "$ac_header_compiler" >&6; } | |
10403 | ||
10404 | # Is the header present? | |
10405 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10406 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10407 | cat >conftest.$ac_ext <<_ACEOF | |
10408 | /* confdefs.h. */ | |
10409 | _ACEOF | |
10410 | cat confdefs.h >>conftest.$ac_ext | |
10411 | cat >>conftest.$ac_ext <<_ACEOF | |
10412 | /* end confdefs.h. */ | |
10413 | #include <$ac_header> | |
10414 | _ACEOF | |
10415 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10416 | case "(($ac_try" in | |
10417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10418 | *) ac_try_echo=$ac_try;; | |
10419 | esac | |
10420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10421 | $as_echo "$ac_try_echo") >&5 | |
10422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10423 | ac_status=$? | |
10424 | grep -v '^ *+' conftest.er1 >conftest.err | |
10425 | rm -f conftest.er1 | |
10426 | cat conftest.err >&5 | |
10427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10428 | (exit $ac_status); } >/dev/null && { | |
10429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10430 | test ! -s conftest.err | |
10431 | }; then | |
10432 | ac_header_preproc=yes | |
10433 | else | |
10434 | $as_echo "$as_me: failed program was:" >&5 | |
10435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10436 | ||
10437 | ac_header_preproc=no | |
10438 | fi | |
10439 | ||
10440 | rm -f conftest.err conftest.$ac_ext | |
10441 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10442 | $as_echo "$ac_header_preproc" >&6; } | |
10443 | ||
10444 | # So? What about this header? | |
10445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10446 | yes:no: ) | |
10447 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10448 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10450 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10451 | ac_header_preproc=yes | |
10452 | ;; | |
10453 | no:yes:* ) | |
10454 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10455 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10456 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10457 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10458 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10459 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10460 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10461 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10462 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10463 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10464 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10465 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10466 | ||
10467 | ;; | |
10468 | esac | |
10469 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10470 | $as_echo_n "checking for $ac_header... " >&6; } | |
10471 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10472 | $as_echo_n "(cached) " >&6 | |
10473 | else | |
10474 | eval "$as_ac_Header=\$ac_header_preproc" | |
10475 | fi | |
10476 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10477 | $as_echo "$as_val"'` | |
10478 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10479 | $as_echo "$ac_res" >&6; } | |
10480 | ||
10481 | fi | |
10482 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10483 | $as_echo "$as_val"'` | |
10484 | if test "x$as_val" = x""yes; then | |
10485 | cat >>confdefs.h <<_ACEOF | |
10486 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10487 | _ACEOF | |
10488 | ||
10489 | fi | |
10490 | ||
10491 | done | |
10492 | ||
10493 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10494 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10495 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10496 | $as_echo_n "(cached) " >&6 | |
10497 | else | |
10498 | if test "$cross_compiling" = yes; then | |
10499 | ac_cv_func_realloc_0_nonnull=no | |
10500 | else | |
10501 | cat >conftest.$ac_ext <<_ACEOF | |
10502 | /* confdefs.h. */ | |
10503 | _ACEOF | |
10504 | cat confdefs.h >>conftest.$ac_ext | |
10505 | cat >>conftest.$ac_ext <<_ACEOF | |
10506 | /* end confdefs.h. */ | |
10507 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10508 | # include <stdlib.h> | |
10509 | #else | |
10510 | char *realloc (); | |
10511 | #endif | |
10512 | ||
10513 | int | |
10514 | main () | |
10515 | { | |
10516 | return ! realloc (0, 0); | |
10517 | ; | |
7a197a62 | 10518 | return 0; |
ad6254c5 AK |
10519 | } |
10520 | _ACEOF | |
10521 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10522 | if { (ac_try="$ac_link" |
10523 | case "(($ac_try" in | |
10524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10525 | *) ac_try_echo=$ac_try;; | |
10526 | esac | |
ec6a6fbe AK |
10527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10528 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10529 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10530 | ac_status=$? |
ec6a6fbe | 10531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10532 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10533 | { (case "(($ac_try" in |
10534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10535 | *) ac_try_echo=$ac_try;; | |
10536 | esac | |
ec6a6fbe AK |
10537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10538 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10539 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10540 | ac_status=$? |
ec6a6fbe | 10541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10542 | (exit $ac_status); }; }; then |
d911ec67 | 10543 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10544 | else |
ec6a6fbe AK |
10545 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10546 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10547 | sed 's/^/| /' conftest.$ac_ext >&5 |
10548 | ||
10549 | ( exit $ac_status ) | |
d911ec67 | 10550 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10551 | fi |
ec6a6fbe | 10552 | rm -rf conftest.dSYM |
7a197a62 | 10553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10554 | fi |
7a197a62 AK |
10555 | |
10556 | ||
ad6254c5 | 10557 | fi |
d911ec67 AK |
10558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10559 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10560 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10561 | |
10562 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10563 | #define HAVE_REALLOC 1 |
10564 | _ACEOF | |
10565 | ||
10566 | else | |
10567 | cat >>confdefs.h <<\_ACEOF | |
10568 | #define HAVE_REALLOC 0 | |
10569 | _ACEOF | |
10570 | ||
10571 | case " $LIBOBJS " in | |
10572 | *" realloc.$ac_objext "* ) ;; | |
10573 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10574 | ;; | |
10575 | esac | |
10576 | ||
10577 | ||
10578 | cat >>confdefs.h <<\_ACEOF | |
10579 | #define realloc rpl_realloc | |
ad6254c5 AK |
10580 | _ACEOF |
10581 | ||
10582 | fi | |
d911ec67 AK |
10583 | |
10584 | ||
ad6254c5 | 10585 | |
ec6a6fbe AK |
10586 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10587 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10588 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10589 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10590 | else |
10591 | if test "$cross_compiling" = yes; then | |
10592 | ac_cv_func_stat_empty_string_bug=yes | |
10593 | else | |
10594 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10595 | /* confdefs.h. */ |
10596 | _ACEOF | |
10597 | cat confdefs.h >>conftest.$ac_ext | |
10598 | cat >>conftest.$ac_ext <<_ACEOF | |
10599 | /* end confdefs.h. */ | |
10600 | $ac_includes_default | |
10601 | int | |
10602 | main () | |
10603 | { | |
10604 | struct stat sbuf; | |
7a197a62 | 10605 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10606 | ; |
10607 | return 0; | |
10608 | } | |
10609 | _ACEOF | |
10610 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10611 | if { (ac_try="$ac_link" |
10612 | case "(($ac_try" in | |
10613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10614 | *) ac_try_echo=$ac_try;; | |
10615 | esac | |
ec6a6fbe AK |
10616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10617 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10618 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10619 | ac_status=$? |
ec6a6fbe | 10620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10622 | { (case "(($ac_try" in |
10623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10624 | *) ac_try_echo=$ac_try;; | |
10625 | esac | |
ec6a6fbe AK |
10626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10627 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10628 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10629 | ac_status=$? |
ec6a6fbe | 10630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10631 | (exit $ac_status); }; }; then |
7a197a62 | 10632 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10633 | else |
ec6a6fbe AK |
10634 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10635 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10636 | sed 's/^/| /' conftest.$ac_ext >&5 |
10637 | ||
10638 | ( exit $ac_status ) | |
7a197a62 | 10639 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10640 | fi |
ec6a6fbe | 10641 | rm -rf conftest.dSYM |
7a197a62 | 10642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10643 | fi |
7a197a62 AK |
10644 | |
10645 | ||
ad6254c5 | 10646 | fi |
ec6a6fbe AK |
10647 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10648 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10649 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10650 | case " $LIBOBJS " in |
8a2fc586 | 10651 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10652 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10653 | ;; | |
8a2fc586 AK |
10654 | esac |
10655 | ||
ad6254c5 AK |
10656 | |
10657 | cat >>confdefs.h <<_ACEOF | |
10658 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10659 | _ACEOF | |
10660 | ||
10661 | fi | |
10662 | ||
ec6a6fbe AK |
10663 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10664 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10665 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10666 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10667 | else |
10668 | if test "$cross_compiling" = yes; then | |
10669 | ac_cv_func_strtod=no | |
10670 | else | |
10671 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10672 | /* confdefs.h. */ |
10673 | _ACEOF | |
10674 | cat confdefs.h >>conftest.$ac_ext | |
10675 | cat >>conftest.$ac_ext <<_ACEOF | |
10676 | /* end confdefs.h. */ | |
10677 | ||
7a197a62 AK |
10678 | $ac_includes_default |
10679 | #ifndef strtod | |
ad6254c5 | 10680 | double strtod (); |
7a197a62 | 10681 | #endif |
ad6254c5 AK |
10682 | int |
10683 | main() | |
10684 | { | |
10685 | { | |
10686 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10687 | char *string = " +69"; | |
10688 | char *term; | |
10689 | double value; | |
10690 | value = strtod (string, &term); | |
10691 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10692 | return 1; |
ad6254c5 AK |
10693 | } |
10694 | ||
10695 | { | |
10696 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10697 | terminating character under some conditions. */ | |
10698 | char *string = "NaN"; | |
10699 | char *term; | |
10700 | strtod (string, &term); | |
10701 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10702 | return 1; |
ad6254c5 | 10703 | } |
7a197a62 | 10704 | return 0; |
ad6254c5 AK |
10705 | } |
10706 | ||
10707 | _ACEOF | |
10708 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10709 | if { (ac_try="$ac_link" |
10710 | case "(($ac_try" in | |
10711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10712 | *) ac_try_echo=$ac_try;; | |
10713 | esac | |
ec6a6fbe AK |
10714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10715 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10716 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10717 | ac_status=$? |
ec6a6fbe | 10718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10719 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10720 | { (case "(($ac_try" in |
10721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10722 | *) ac_try_echo=$ac_try;; | |
10723 | esac | |
ec6a6fbe AK |
10724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10725 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10726 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10727 | ac_status=$? |
ec6a6fbe | 10728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10729 | (exit $ac_status); }; }; then |
10730 | ac_cv_func_strtod=yes | |
10731 | else | |
ec6a6fbe AK |
10732 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10733 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10734 | sed 's/^/| /' conftest.$ac_ext >&5 |
10735 | ||
10736 | ( exit $ac_status ) | |
10737 | ac_cv_func_strtod=no | |
10738 | fi | |
ec6a6fbe | 10739 | rm -rf conftest.dSYM |
7a197a62 | 10740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10741 | fi |
7a197a62 AK |
10742 | |
10743 | ||
ad6254c5 | 10744 | fi |
ec6a6fbe AK |
10745 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10746 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10747 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10748 | case " $LIBOBJS " in |
8a2fc586 | 10749 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10750 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10751 | ;; | |
8a2fc586 AK |
10752 | esac |
10753 | ||
ec6a6fbe AK |
10754 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10755 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10756 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10757 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10758 | else |
10759 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10760 | /* confdefs.h. */ |
10761 | _ACEOF | |
10762 | cat confdefs.h >>conftest.$ac_ext | |
10763 | cat >>conftest.$ac_ext <<_ACEOF | |
10764 | /* end confdefs.h. */ | |
8a2fc586 AK |
10765 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10766 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10767 | #define pow innocuous_pow | |
10768 | ||
ad6254c5 AK |
10769 | /* System header to define __stub macros and hopefully few prototypes, |
10770 | which can conflict with char pow (); below. | |
10771 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10772 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10773 | |
ad6254c5 AK |
10774 | #ifdef __STDC__ |
10775 | # include <limits.h> | |
10776 | #else | |
10777 | # include <assert.h> | |
10778 | #endif | |
8a2fc586 AK |
10779 | |
10780 | #undef pow | |
10781 | ||
7a197a62 AK |
10782 | /* Override any GCC internal prototype to avoid an error. |
10783 | Use char because int might match the return type of a GCC | |
10784 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10785 | #ifdef __cplusplus |
10786 | extern "C" | |
ad6254c5 | 10787 | #endif |
ad6254c5 AK |
10788 | char pow (); |
10789 | /* The GNU C library defines this for functions which it implements | |
10790 | to always fail with ENOSYS. Some functions are actually named | |
10791 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10792 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10793 | choke me |
ad6254c5 AK |
10794 | #endif |
10795 | ||
10796 | int | |
10797 | main () | |
10798 | { | |
7a197a62 | 10799 | return pow (); |
ad6254c5 AK |
10800 | ; |
10801 | return 0; | |
10802 | } | |
10803 | _ACEOF | |
10804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10805 | if { (ac_try="$ac_link" |
10806 | case "(($ac_try" in | |
10807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10808 | *) ac_try_echo=$ac_try;; | |
10809 | esac | |
ec6a6fbe AK |
10810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10811 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10812 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10813 | ac_status=$? |
8a2fc586 AK |
10814 | grep -v '^ *+' conftest.er1 >conftest.err |
10815 | rm -f conftest.er1 | |
10816 | cat conftest.err >&5 | |
ec6a6fbe | 10817 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10818 | (exit $ac_status); } && { |
10819 | test -z "$ac_c_werror_flag" || | |
10820 | test ! -s conftest.err | |
ec6a6fbe AK |
10821 | } && test -s conftest$ac_exeext && { |
10822 | test "$cross_compiling" = yes || | |
10823 | $as_test_x conftest$ac_exeext | |
10824 | }; then | |
ad6254c5 AK |
10825 | ac_cv_func_pow=yes |
10826 | else | |
ec6a6fbe | 10827 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10828 | sed 's/^/| /' conftest.$ac_ext >&5 |
10829 | ||
7a197a62 | 10830 | ac_cv_func_pow=no |
ad6254c5 | 10831 | fi |
7a197a62 | 10832 | |
ec6a6fbe | 10833 | rm -rf conftest.dSYM |
25fbec5b | 10834 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10835 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10836 | fi |
ec6a6fbe AK |
10837 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10838 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10839 | |
10840 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10841 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10842 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10843 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10844 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10845 | else |
10846 | ac_check_lib_save_LIBS=$LIBS | |
10847 | LIBS="-lm $LIBS" | |
10848 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10849 | /* confdefs.h. */ |
10850 | _ACEOF | |
10851 | cat confdefs.h >>conftest.$ac_ext | |
10852 | cat >>conftest.$ac_ext <<_ACEOF | |
10853 | /* end confdefs.h. */ | |
10854 | ||
7a197a62 AK |
10855 | /* Override any GCC internal prototype to avoid an error. |
10856 | Use char because int might match the return type of a GCC | |
10857 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10858 | #ifdef __cplusplus |
10859 | extern "C" | |
10860 | #endif | |
ad6254c5 AK |
10861 | char pow (); |
10862 | int | |
10863 | main () | |
10864 | { | |
7a197a62 | 10865 | return pow (); |
ad6254c5 AK |
10866 | ; |
10867 | return 0; | |
10868 | } | |
10869 | _ACEOF | |
10870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10871 | if { (ac_try="$ac_link" |
10872 | case "(($ac_try" in | |
10873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10874 | *) ac_try_echo=$ac_try;; | |
10875 | esac | |
ec6a6fbe AK |
10876 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10877 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10878 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10879 | ac_status=$? |
8a2fc586 AK |
10880 | grep -v '^ *+' conftest.er1 >conftest.err |
10881 | rm -f conftest.er1 | |
10882 | cat conftest.err >&5 | |
ec6a6fbe | 10883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10884 | (exit $ac_status); } && { |
10885 | test -z "$ac_c_werror_flag" || | |
10886 | test ! -s conftest.err | |
ec6a6fbe AK |
10887 | } && test -s conftest$ac_exeext && { |
10888 | test "$cross_compiling" = yes || | |
10889 | $as_test_x conftest$ac_exeext | |
10890 | }; then | |
ad6254c5 AK |
10891 | ac_cv_lib_m_pow=yes |
10892 | else | |
ec6a6fbe | 10893 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10894 | sed 's/^/| /' conftest.$ac_ext >&5 |
10895 | ||
7a197a62 | 10896 | ac_cv_lib_m_pow=no |
ad6254c5 | 10897 | fi |
7a197a62 | 10898 | |
ec6a6fbe | 10899 | rm -rf conftest.dSYM |
25fbec5b | 10900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10901 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10902 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10903 | fi |
ec6a6fbe AK |
10904 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10905 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10906 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10907 | POW_LIB=-lm |
10908 | else | |
ec6a6fbe AK |
10909 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10910 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10911 | fi |
72b2cb61 | 10912 | |
d0191583 | 10913 | fi |
72b2cb61 | 10914 | |
ad6254c5 AK |
10915 | fi |
10916 | ||
ad6254c5 | 10917 | |
d0191583 JM |
10918 | for ac_func in vprintf |
10919 | do | |
ec6a6fbe AK |
10920 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10921 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10922 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10923 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10924 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10925 | else |
d0191583 JM |
10926 | cat >conftest.$ac_ext <<_ACEOF |
10927 | /* confdefs.h. */ | |
10928 | _ACEOF | |
10929 | cat confdefs.h >>conftest.$ac_ext | |
10930 | cat >>conftest.$ac_ext <<_ACEOF | |
10931 | /* end confdefs.h. */ | |
10932 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10933 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10934 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10935 | |
d0191583 JM |
10936 | /* System header to define __stub macros and hopefully few prototypes, |
10937 | which can conflict with char $ac_func (); below. | |
10938 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10939 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10940 | |
d0191583 JM |
10941 | #ifdef __STDC__ |
10942 | # include <limits.h> | |
10943 | #else | |
10944 | # include <assert.h> | |
10945 | #endif | |
ad6254c5 | 10946 | |
d0191583 | 10947 | #undef $ac_func |
72b2cb61 | 10948 | |
d0191583 JM |
10949 | /* Override any GCC internal prototype to avoid an error. |
10950 | Use char because int might match the return type of a GCC | |
10951 | builtin and then its argument prototype would still apply. */ | |
10952 | #ifdef __cplusplus | |
10953 | extern "C" | |
10954 | #endif | |
10955 | char $ac_func (); | |
10956 | /* The GNU C library defines this for functions which it implements | |
10957 | to always fail with ENOSYS. Some functions are actually named | |
10958 | something starting with __ and the normal name is an alias. */ | |
10959 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10960 | choke me | |
10961 | #endif | |
10962 | ||
10963 | int | |
10964 | main () | |
10965 | { | |
10966 | return $ac_func (); | |
10967 | ; | |
10968 | return 0; | |
10969 | } | |
72b2cb61 | 10970 | _ACEOF |
d0191583 JM |
10971 | rm -f conftest.$ac_objext conftest$ac_exeext |
10972 | if { (ac_try="$ac_link" | |
10973 | case "(($ac_try" in | |
10974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10975 | *) ac_try_echo=$ac_try;; | |
10976 | esac | |
ec6a6fbe AK |
10977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10978 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10979 | (eval "$ac_link") 2>conftest.er1 |
10980 | ac_status=$? | |
10981 | grep -v '^ *+' conftest.er1 >conftest.err | |
10982 | rm -f conftest.er1 | |
10983 | cat conftest.err >&5 | |
ec6a6fbe | 10984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10985 | (exit $ac_status); } && { |
10986 | test -z "$ac_c_werror_flag" || | |
10987 | test ! -s conftest.err | |
ec6a6fbe AK |
10988 | } && test -s conftest$ac_exeext && { |
10989 | test "$cross_compiling" = yes || | |
10990 | $as_test_x conftest$ac_exeext | |
10991 | }; then | |
d0191583 JM |
10992 | eval "$as_ac_var=yes" |
10993 | else | |
ec6a6fbe | 10994 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10995 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10996 | |
d0191583 | 10997 | eval "$as_ac_var=no" |
ad6254c5 AK |
10998 | fi |
10999 | ||
ec6a6fbe | 11000 | rm -rf conftest.dSYM |
d0191583 JM |
11001 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11002 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11003 | fi |
ec6a6fbe AK |
11004 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11005 | $as_echo "$as_val"'` | |
11006 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11007 | $as_echo "$ac_res" >&6; } | |
11008 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11009 | $as_echo "$as_val"'` | |
11010 | if test "x$as_val" = x""yes; then | |
d0191583 | 11011 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11012 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 11013 | _ACEOF |
7a197a62 | 11014 | |
ec6a6fbe AK |
11015 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
11016 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 11017 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 11018 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11019 | else |
d0191583 JM |
11020 | cat >conftest.$ac_ext <<_ACEOF |
11021 | /* confdefs.h. */ | |
11022 | _ACEOF | |
11023 | cat confdefs.h >>conftest.$ac_ext | |
11024 | cat >>conftest.$ac_ext <<_ACEOF | |
11025 | /* end confdefs.h. */ | |
11026 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
11027 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11028 | #define _doprnt innocuous__doprnt | |
7a197a62 | 11029 | |
d0191583 JM |
11030 | /* System header to define __stub macros and hopefully few prototypes, |
11031 | which can conflict with char _doprnt (); below. | |
11032 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11033 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 11034 | |
d0191583 JM |
11035 | #ifdef __STDC__ |
11036 | # include <limits.h> | |
11037 | #else | |
11038 | # include <assert.h> | |
11039 | #endif | |
72b2cb61 | 11040 | |
d0191583 JM |
11041 | #undef _doprnt |
11042 | ||
11043 | /* Override any GCC internal prototype to avoid an error. | |
11044 | Use char because int might match the return type of a GCC | |
11045 | builtin and then its argument prototype would still apply. */ | |
11046 | #ifdef __cplusplus | |
11047 | extern "C" | |
11048 | #endif | |
11049 | char _doprnt (); | |
11050 | /* The GNU C library defines this for functions which it implements | |
11051 | to always fail with ENOSYS. Some functions are actually named | |
11052 | something starting with __ and the normal name is an alias. */ | |
11053 | #if defined __stub__doprnt || defined __stub____doprnt | |
11054 | choke me | |
11055 | #endif | |
11056 | ||
11057 | int | |
11058 | main () | |
11059 | { | |
11060 | return _doprnt (); | |
11061 | ; | |
11062 | return 0; | |
11063 | } | |
72b2cb61 | 11064 | _ACEOF |
d0191583 JM |
11065 | rm -f conftest.$ac_objext conftest$ac_exeext |
11066 | if { (ac_try="$ac_link" | |
11067 | case "(($ac_try" in | |
11068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11069 | *) ac_try_echo=$ac_try;; | |
11070 | esac | |
ec6a6fbe AK |
11071 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11072 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
11073 | (eval "$ac_link") 2>conftest.er1 |
11074 | ac_status=$? | |
11075 | grep -v '^ *+' conftest.er1 >conftest.err | |
11076 | rm -f conftest.er1 | |
11077 | cat conftest.err >&5 | |
ec6a6fbe | 11078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
11079 | (exit $ac_status); } && { |
11080 | test -z "$ac_c_werror_flag" || | |
11081 | test ! -s conftest.err | |
ec6a6fbe AK |
11082 | } && test -s conftest$ac_exeext && { |
11083 | test "$cross_compiling" = yes || | |
11084 | $as_test_x conftest$ac_exeext | |
11085 | }; then | |
d0191583 JM |
11086 | ac_cv_func__doprnt=yes |
11087 | else | |
ec6a6fbe | 11088 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11089 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11090 | |
d0191583 | 11091 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11092 | fi |
11093 | ||
ec6a6fbe | 11094 | rm -rf conftest.dSYM |
d0191583 JM |
11095 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11096 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11097 | fi |
ec6a6fbe AK |
11098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11099 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11100 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11101 | |
d0191583 JM |
11102 | cat >>confdefs.h <<\_ACEOF |
11103 | #define HAVE_DOPRNT 1 | |
11104 | _ACEOF | |
ad6254c5 | 11105 | |
7a197a62 AK |
11106 | fi |
11107 | ||
d0191583 JM |
11108 | fi |
11109 | done | |
8b1a3214 | 11110 | |
ad6254c5 | 11111 | |
7a197a62 | 11112 | |
9c961554 | 11113 | ################################################################################ |
ec6a6fbe AK |
11114 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11115 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11116 | # Check whether --enable-static_link was given. |
11117 | if test "${enable_static_link+set}" = set; then | |
11118 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11119 | else | |
11120 | STATIC_LINK=no | |
11121 | fi | |
11122 | ||
ec6a6fbe AK |
11123 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11124 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11125 | |
d0191583 | 11126 | ################################################################################ |
ad6254c5 | 11127 | |
ad6254c5 AK |
11128 | |
11129 | ################################################################################ | |
ec6a6fbe AK |
11130 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11131 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11132 | |
11133 | # Check whether --with-user was given. | |
11134 | if test "${with_user+set}" = set; then | |
71082be4 | 11135 | withval=$with_user; OWNER=$withval |
7a197a62 AK |
11136 | fi |
11137 | ||
ec6a6fbe AK |
11138 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11139 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11140 | |
d0191583 | 11141 | if test x$OWNER != x; then |
23b059e7 | 11142 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11143 | fi |
11144 | ||
11145 | ################################################################################ | |
ec6a6fbe AK |
11146 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11147 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11148 | |
d0191583 JM |
11149 | # Check whether --with-group was given. |
11150 | if test "${with_group+set}" = set; then | |
71082be4 | 11151 | withval=$with_group; GROUP=$withval |
7a197a62 AK |
11152 | fi |
11153 | ||
ec6a6fbe AK |
11154 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11155 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11156 | |
11157 | if test x$GROUP != x; then | |
23b059e7 | 11158 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11159 | fi |
ad6254c5 | 11160 | |
24bbc4d7 | 11161 | ################################################################################ |
ec6a6fbe AK |
11162 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11163 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11164 | |
11165 | ||
11166 | # Check whether --with-device-uid was given. | |
11167 | if test "${with_device_uid+set}" = set; then | |
71082be4 | 11168 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
24bbc4d7 | 11169 | else |
71082be4 | 11170 | DM_DEVICE_UID=0 |
24bbc4d7 AK |
11171 | fi |
11172 | ||
ec6a6fbe AK |
11173 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11174 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11175 | |
11176 | ################################################################################ | |
ec6a6fbe AK |
11177 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11178 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11179 | |
11180 | ||
11181 | # Check whether --with-device-gid was given. | |
11182 | if test "${with_device_gid+set}" = set; then | |
71082be4 | 11183 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
24bbc4d7 | 11184 | else |
71082be4 | 11185 | DM_DEVICE_GID=0 |
24bbc4d7 AK |
11186 | fi |
11187 | ||
ec6a6fbe AK |
11188 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11189 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11190 | |
93bd259b | 11191 | ################################################################################ |
ec6a6fbe AK |
11192 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11193 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11194 | |
11195 | ||
11196 | # Check whether --with-device-mode was given. | |
11197 | if test "${with_device_mode+set}" = set; then | |
71082be4 | 11198 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
93bd259b | 11199 | else |
71082be4 | 11200 | DM_DEVICE_MODE=0600 |
93bd259b AK |
11201 | fi |
11202 | ||
ec6a6fbe AK |
11203 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11204 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11205 | |
ad6254c5 | 11206 | ################################################################################ |
ec6a6fbe AK |
11207 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11208 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11209 | # Check whether --enable-lvm1_fallback was given. |
11210 | if test "${enable_lvm1_fallback+set}" = set; then | |
11211 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11212 | else | |
11213 | LVM1_FALLBACK=no | |
7a197a62 AK |
11214 | fi |
11215 | ||
ec6a6fbe AK |
11216 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11217 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11218 | |
d0191583 | 11219 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11220 | |
11221 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11222 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11223 | _ACEOF |
11224 | ||
ad6254c5 AK |
11225 | fi |
11226 | ||
11227 | ################################################################################ | |
ec6a6fbe AK |
11228 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11229 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11230 | |
11231 | # Check whether --with-lvm1 was given. | |
11232 | if test "${with_lvm1+set}" = set; then | |
71082be4 | 11233 | withval=$with_lvm1; LVM1=$withval |
d0191583 | 11234 | else |
71082be4 | 11235 | LVM1=internal |
7a197a62 AK |
11236 | fi |
11237 | ||
ec6a6fbe AK |
11238 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11239 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11240 | |
d0191583 | 11241 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11242 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11243 | " >&5 |
ec6a6fbe | 11244 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11245 | " >&2;} |
11246 | { (exit 1); exit 1; }; } | |
11247 | fi; | |
11248 | ||
11249 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11250 | |
11251 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11252 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11253 | _ACEOF |
11254 | ||
ad6254c5 AK |
11255 | fi |
11256 | ||
11257 | ################################################################################ | |
ec6a6fbe AK |
11258 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11259 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11260 | |
11261 | # Check whether --with-pool was given. | |
11262 | if test "${with_pool+set}" = set; then | |
71082be4 | 11263 | withval=$with_pool; POOL=$withval |
ad6254c5 | 11264 | else |
71082be4 | 11265 | POOL=internal |
7a197a62 AK |
11266 | fi |
11267 | ||
ec6a6fbe AK |
11268 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11269 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11270 | |
d0191583 | 11271 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11272 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11273 | " >&5 |
ec6a6fbe | 11274 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11275 | " >&2;} |
11276 | { (exit 1); exit 1; }; } | |
11277 | fi; | |
7a197a62 | 11278 | |
d0191583 JM |
11279 | if test x$POOL = xinternal; then |
11280 | ||
11281 | cat >>confdefs.h <<\_ACEOF | |
11282 | #define POOL_INTERNAL 1 | |
11283 | _ACEOF | |
11284 | ||
11285 | fi | |
ad6254c5 | 11286 | |
06f62ad1 | 11287 | ################################################################################ |
ec6a6fbe AK |
11288 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11289 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11290 | |
11291 | # Check whether --with-cluster was given. | |
11292 | if test "${with_cluster+set}" = set; then | |
71082be4 | 11293 | withval=$with_cluster; CLUSTER=$withval |
7a197a62 AK |
11294 | fi |
11295 | ||
ec6a6fbe AK |
11296 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11297 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11298 | |
d0191583 | 11299 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11300 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11301 | " >&5 |
ec6a6fbe | 11302 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11303 | " >&2;} |
11304 | { (exit 1); exit 1; }; } | |
d0191583 | 11305 | fi; |
06f62ad1 | 11306 | |
d0191583 | 11307 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11308 | |
11309 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11310 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11311 | _ACEOF |
11312 | ||
15d91f5a | 11313 | fi |
ad6254c5 AK |
11314 | |
11315 | ################################################################################ | |
ec6a6fbe AK |
11316 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11317 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11318 | |
d0191583 JM |
11319 | # Check whether --with-snapshots was given. |
11320 | if test "${with_snapshots+set}" = set; then | |
71082be4 | 11321 | withval=$with_snapshots; SNAPSHOTS=$withval |
d0191583 | 11322 | else |
71082be4 | 11323 | SNAPSHOTS=internal |
ad6254c5 AK |
11324 | fi |
11325 | ||
ec6a6fbe AK |
11326 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11327 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11328 | |
d0191583 | 11329 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11330 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11331 | " >&5 |
ec6a6fbe | 11332 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11333 | " >&2;} |
11334 | { (exit 1); exit 1; }; } | |
11335 | fi; | |
11336 | ||
11337 | if test x$SNAPSHOTS = xinternal; then | |
11338 | ||
11339 | cat >>confdefs.h <<\_ACEOF | |
11340 | #define SNAPSHOT_INTERNAL 1 | |
11341 | _ACEOF | |
ad6254c5 | 11342 | |
ad6254c5 | 11343 | fi |
7a197a62 | 11344 | |
d0191583 | 11345 | ################################################################################ |
ec6a6fbe AK |
11346 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11347 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11348 | |
11349 | # Check whether --with-mirrors was given. | |
11350 | if test "${with_mirrors+set}" = set; then | |
71082be4 | 11351 | withval=$with_mirrors; MIRRORS=$withval |
d0191583 | 11352 | else |
71082be4 | 11353 | MIRRORS=internal |
ad6254c5 | 11354 | fi |
ad6254c5 | 11355 | |
ec6a6fbe AK |
11356 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11357 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11358 | |
d0191583 | 11359 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11360 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11361 | " >&5 |
ec6a6fbe | 11362 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11363 | " >&2;} |
11364 | { (exit 1); exit 1; }; } | |
11365 | fi; | |
ad6254c5 | 11366 | |
d0191583 | 11367 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11368 | |
d0191583 JM |
11369 | cat >>confdefs.h <<\_ACEOF |
11370 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11371 | _ACEOF |
8a2fc586 | 11372 | |
d0191583 | 11373 | fi |
8a2fc586 | 11374 | |
8fea97b7 ZK |
11375 | ################################################################################ |
11376 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11377 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11378 | ||
11379 | # Check whether --with-replicators was given. | |
11380 | if test "${with_replicators+set}" = set; then | |
11381 | withval=$with_replicators; REPLICATORS=$withval | |
11382 | else | |
71082be4 | 11383 | REPLICATORS=none |
8fea97b7 ZK |
11384 | fi |
11385 | ||
11386 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11387 | $as_echo "$REPLICATORS" >&6; } | |
11388 | ||
11389 | case "$REPLICATORS" in | |
11390 | none|shared) ;; | |
11391 | internal) | |
11392 | cat >>confdefs.h <<\_ACEOF | |
11393 | #define REPLICATOR_INTERNAL 1 | |
11394 | _ACEOF | |
11395 | ;; | |
11396 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11397 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11398 | { (exit 1); exit 1; }; } ;; | |
11399 | esac | |
11400 | ||
d0191583 | 11401 | ################################################################################ |
ec6a6fbe AK |
11402 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11403 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11404 | # Check whether --enable-readline was given. |
11405 | if test "${enable_readline+set}" = set; then | |
11406 | enableval=$enable_readline; READLINE=$enableval | |
11407 | else | |
06e459df | 11408 | READLINE=maybe |
d0191583 | 11409 | fi |
8a2fc586 | 11410 | |
ec6a6fbe AK |
11411 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11412 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11413 | |
d0191583 | 11414 | ################################################################################ |
ec6a6fbe AK |
11415 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11416 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11417 | # Check whether --enable-realtime was given. |
11418 | if test "${enable_realtime+set}" = set; then | |
11419 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11420 | fi |
ad6254c5 | 11421 | |
ec6a6fbe AK |
11422 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11423 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
11424 | |
11425 | ################################################################################ | |
90c80887 | 11426 | pkg_config_init() { |
e2997b73 AK |
11427 | |
11428 | ||
11429 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11430 | if test -n "$ac_tool_prefix"; then | |
11431 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11432 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11433 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11434 | $as_echo_n "checking for $ac_word... " >&6; } | |
11435 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11436 | $as_echo_n "(cached) " >&6 | |
11437 | else | |
11438 | case $PKG_CONFIG in | |
11439 | [\\/]* | ?:[\\/]*) | |
11440 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11441 | ;; | |
11442 | *) | |
11443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11444 | for as_dir in $PATH | |
11445 | do | |
11446 | IFS=$as_save_IFS | |
11447 | test -z "$as_dir" && as_dir=. | |
11448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11450 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11451 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11452 | break 2 | |
11453 | fi | |
11454 | done | |
11455 | done | |
11456 | IFS=$as_save_IFS | |
11457 | ||
11458 | ;; | |
11459 | esac | |
11460 | fi | |
11461 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11462 | if test -n "$PKG_CONFIG"; then | |
11463 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11464 | $as_echo "$PKG_CONFIG" >&6; } | |
11465 | else | |
11466 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11467 | $as_echo "no" >&6; } | |
11468 | fi | |
11469 | ||
11470 | ||
11471 | fi | |
11472 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11473 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11474 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11475 | set dummy pkg-config; ac_word=$2 | |
11476 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11477 | $as_echo_n "checking for $ac_word... " >&6; } | |
11478 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11479 | $as_echo_n "(cached) " >&6 | |
11480 | else | |
11481 | case $ac_pt_PKG_CONFIG in | |
11482 | [\\/]* | ?:[\\/]*) | |
11483 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11484 | ;; | |
11485 | *) | |
11486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11487 | for as_dir in $PATH | |
11488 | do | |
11489 | IFS=$as_save_IFS | |
11490 | test -z "$as_dir" && as_dir=. | |
11491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11493 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11494 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11495 | break 2 | |
11496 | fi | |
11497 | done | |
11498 | done | |
11499 | IFS=$as_save_IFS | |
11500 | ||
11501 | ;; | |
11502 | esac | |
11503 | fi | |
11504 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11505 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11506 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11507 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11508 | else | |
11509 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11510 | $as_echo "no" >&6; } | |
11511 | fi | |
11512 | ||
11513 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11514 | PKG_CONFIG="" | |
11515 | else | |
11516 | case $cross_compiling:$ac_tool_warned in | |
11517 | yes:) | |
11518 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11519 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11520 | ac_tool_warned=yes ;; | |
11521 | esac | |
11522 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11523 | fi | |
11524 | else | |
11525 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11526 | fi | |
11527 | ||
11528 | fi | |
11529 | if test -n "$PKG_CONFIG"; then | |
11530 | _pkg_min_version=0.9.0 | |
11531 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11532 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11533 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11534 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11535 | $as_echo "yes" >&6; } | |
11536 | else | |
11537 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11538 | $as_echo "no" >&6; } | |
11539 | PKG_CONFIG="" | |
11540 | fi | |
8c4e8a18 | 11541 | |
e2997b73 AK |
11542 | fi |
11543 | ||
11544 | pkg_failed=no | |
a946372e AK |
11545 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11546 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11547 | |
a946372e AK |
11548 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11549 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11550 | elif test -n "$PKG_CONFIG"; then |
11551 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11552 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11553 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11554 | ac_status=$? |
11555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11556 | (exit $ac_status); }; then | |
a946372e | 11557 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11558 | else |
11559 | pkg_failed=yes | |
11560 | fi | |
11561 | else | |
11562 | pkg_failed=untried | |
11563 | fi | |
a946372e AK |
11564 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11565 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11566 | elif test -n "$PKG_CONFIG"; then |
11567 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11568 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11569 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11570 | ac_status=$? |
11571 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11572 | (exit $ac_status); }; then | |
a946372e | 11573 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11574 | else |
11575 | pkg_failed=yes | |
11576 | fi | |
11577 | else | |
11578 | pkg_failed=untried | |
11579 | fi | |
11580 | ||
11581 | ||
11582 | ||
11583 | if test $pkg_failed = yes; then | |
11584 | ||
11585 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11586 | _pkg_short_errors_supported=yes | |
11587 | else | |
11588 | _pkg_short_errors_supported=no | |
11589 | fi | |
11590 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11591 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11592 | else |
a946372e | 11593 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11594 | fi |
11595 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11596 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11597 | |
8c4e8a18 FDN |
11598 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11599 | $as_echo "no" >&6; } | |
11600 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 | |
a946372e | 11601 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11602 | elif test $pkg_failed = untried; then |
a946372e AK |
11603 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11604 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11605 | else |
a946372e AK |
11606 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11607 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11608 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11609 | $as_echo "yes" >&6; } | |
8c4e8a18 | 11610 | : |
e2997b73 | 11611 | fi |
90c80887 AK |
11612 | PKGCONFIG_INIT=1 |
11613 | } | |
11614 | ||
11615 | ################################################################################ | |
11616 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11617 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11618 | ||
11619 | # Check whether --with-clvmd was given. | |
11620 | if test "${with_clvmd+set}" = set; then | |
71082be4 | 11621 | withval=$with_clvmd; CLVMD=$withval |
90c80887 | 11622 | else |
71082be4 | 11623 | CLVMD=none |
90c80887 AK |
11624 | fi |
11625 | ||
11626 | if test x$CLVMD = xyes; then | |
11627 | CLVMD=all | |
11628 | fi | |
11629 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11630 | $as_echo "$CLVMD" >&6; } | |
11631 | ||
11632 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11633 | CLUSTER=internal | |
11634 | fi | |
11635 | ||
c89bc357 | 11636 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
90c80887 AK |
11637 | pkg_config_init |
11638 | fi | |
11639 | ||
c89bc357 MB |
11640 | CLVMD_CMANAGERS="" |
11641 | CLVMD_NEEDS_QDISKD=no | |
90c80887 AK |
11642 | |
11643 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11644 | BUILDGULM=yes | |
c89bc357 MB |
11645 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" |
11646 | CLVMD_NEEDS_QDISKD=yes | |
11647 | fi | |
11648 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11649 | BUILDCMAN=yes | |
11650 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
11651 | CLVMD_NEEDS_QDISKD=yes | |
90c80887 AK |
11652 | fi |
11653 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11654 | BUILDCOROSYNC=yes | |
c89bc357 | 11655 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" |
90c80887 AK |
11656 | fi |
11657 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11658 | BUILDOPENAIS=yes | |
c89bc357 | 11659 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" |
90c80887 | 11660 | fi |
c89bc357 MB |
11661 | if test x$CLVMD_NEEDS_QDISKD != xno; then |
11662 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
90c80887 AK |
11663 | fi |
11664 | ||
11665 | if test x$BUILDGULM = xyes; then | |
11666 | if test x$BUILDCOROSYNC = xyes || \ | |
11667 | test x$BUILDOPENAIS = xyes; then | |
11668 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11669 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11670 | { (exit 1); exit 1; }; } | |
11671 | fi | |
a946372e | 11672 | fi |
e2997b73 | 11673 | |
a946372e AK |
11674 | soft_bailout() { |
11675 | NOTFOUND=1 | |
11676 | } | |
e2997b73 | 11677 | |
a946372e AK |
11678 | hard_bailout() { |
11679 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11680 | $as_echo "$as_me: error: bailing out" >&2;} | |
11681 | { (exit 1); exit 1; }; } | |
11682 | } | |
11683 | ||
11684 | if test x$CLVMD = xall; then | |
11685 | bailout=soft_bailout | |
11686 | BUILDGULM=yes | |
11687 | BUILDCMAN=yes | |
11688 | BUILDCOROSYNC=yes | |
11689 | BUILDOPENAIS=yes | |
e2997b73 | 11690 | else |
a946372e | 11691 | bailout=hard_bailout |
e2997b73 | 11692 | fi |
a946372e AK |
11693 | |
11694 | check_lib_no_libs() { | |
11695 | lib_no_libs_arg1=$1 | |
11696 | shift | |
11697 | lib_no_libs_arg2=$1 | |
11698 | shift | |
11699 | lib_no_libs_args=$@ | |
11700 | ||
11701 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11702 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11703 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11704 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11705 | $as_echo_n "(cached) " >&6 | |
11706 | else | |
11707 | ac_check_lib_save_LIBS=$LIBS | |
11708 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11709 | cat >conftest.$ac_ext <<_ACEOF | |
11710 | /* confdefs.h. */ | |
11711 | _ACEOF | |
11712 | cat confdefs.h >>conftest.$ac_ext | |
11713 | cat >>conftest.$ac_ext <<_ACEOF | |
11714 | /* end confdefs.h. */ | |
11715 | ||
11716 | /* Override any GCC internal prototype to avoid an error. | |
11717 | Use char because int might match the return type of a GCC | |
11718 | builtin and then its argument prototype would still apply. */ | |
11719 | #ifdef __cplusplus | |
11720 | extern "C" | |
11721 | #endif | |
11722 | char $lib_no_libs_arg2 (); | |
11723 | int | |
11724 | main () | |
11725 | { | |
11726 | return $lib_no_libs_arg2 (); | |
11727 | ; | |
11728 | return 0; | |
11729 | } | |
11730 | _ACEOF | |
11731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11732 | if { (ac_try="$ac_link" | |
11733 | case "(($ac_try" in | |
11734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11735 | *) ac_try_echo=$ac_try;; | |
11736 | esac | |
11737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11738 | $as_echo "$ac_try_echo") >&5 | |
11739 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11740 | ac_status=$? |
a946372e AK |
11741 | grep -v '^ *+' conftest.er1 >conftest.err |
11742 | rm -f conftest.er1 | |
11743 | cat conftest.err >&5 | |
e2997b73 | 11744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11745 | (exit $ac_status); } && { |
11746 | test -z "$ac_c_werror_flag" || | |
11747 | test ! -s conftest.err | |
11748 | } && test -s conftest$ac_exeext && { | |
11749 | test "$cross_compiling" = yes || | |
11750 | $as_test_x conftest$ac_exeext | |
11751 | }; then | |
11752 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11753 | else |
a946372e AK |
11754 | $as_echo "$as_me: failed program was:" >&5 |
11755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11756 | |
a946372e AK |
11757 | eval "$as_ac_Lib=no" |
11758 | fi | |
e2997b73 | 11759 | |
a946372e AK |
11760 | rm -rf conftest.dSYM |
11761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11762 | conftest$ac_exeext conftest.$ac_ext | |
11763 | LIBS=$ac_check_lib_save_LIBS | |
11764 | fi | |
11765 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11766 | $as_echo "$as_val"'` | |
11767 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11768 | $as_echo "$ac_res" >&6; } | |
11769 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11770 | $as_echo "$as_val"'` | |
11771 | if test "x$as_val" = x""yes; then | |
11772 | cat >>confdefs.h <<_ACEOF | |
11773 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11774 | _ACEOF | |
e2997b73 | 11775 | |
a946372e | 11776 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11777 | |
e2997b73 | 11778 | else |
a946372e | 11779 | $bailout |
e2997b73 | 11780 | fi |
e2997b73 | 11781 | |
a946372e AK |
11782 | LIBS=$ac_check_lib_save_LIBS |
11783 | } | |
11784 | ||
11785 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11786 | |
11787 | pkg_failed=no | |
a946372e AK |
11788 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11789 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11790 | |
a946372e AK |
11791 | if test -n "$CCS_CFLAGS"; then |
11792 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11793 | elif test -n "$PKG_CONFIG"; then |
11794 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11795 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11796 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11797 | ac_status=$? |
11798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11799 | (exit $ac_status); }; then | |
a946372e | 11800 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11801 | else |
11802 | pkg_failed=yes | |
11803 | fi | |
11804 | else | |
11805 | pkg_failed=untried | |
11806 | fi | |
a946372e AK |
11807 | if test -n "$CCS_LIBS"; then |
11808 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11809 | elif test -n "$PKG_CONFIG"; then |
11810 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11811 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11812 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11813 | ac_status=$? |
11814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11815 | (exit $ac_status); }; then | |
a946372e | 11816 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11817 | else |
11818 | pkg_failed=yes | |
11819 | fi | |
11820 | else | |
11821 | pkg_failed=untried | |
11822 | fi | |
11823 | ||
11824 | ||
11825 | ||
11826 | if test $pkg_failed = yes; then | |
11827 | ||
11828 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11829 | _pkg_short_errors_supported=yes | |
11830 | else | |
11831 | _pkg_short_errors_supported=no | |
11832 | fi | |
11833 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11834 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11835 | else |
a946372e | 11836 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11837 | fi |
11838 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11839 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11840 | |
8c4e8a18 FDN |
11841 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11842 | $as_echo "no" >&6; } | |
11843 | NOTFOUND=0 | |
e2997b73 | 11844 | |
a946372e AK |
11845 | for ac_header in ccs.h |
11846 | do | |
11847 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11849 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11850 | $as_echo_n "checking for $ac_header... " >&6; } | |
11851 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11852 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11853 | fi |
a946372e AK |
11854 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11855 | $as_echo "$as_val"'` | |
11856 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11857 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11858 | else |
a946372e AK |
11859 | # Is the header compilable? |
11860 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11861 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11862 | cat >conftest.$ac_ext <<_ACEOF | |
11863 | /* confdefs.h. */ | |
11864 | _ACEOF | |
11865 | cat confdefs.h >>conftest.$ac_ext | |
11866 | cat >>conftest.$ac_ext <<_ACEOF | |
11867 | /* end confdefs.h. */ | |
11868 | $ac_includes_default | |
11869 | #include <$ac_header> | |
11870 | _ACEOF | |
11871 | rm -f conftest.$ac_objext | |
11872 | if { (ac_try="$ac_compile" | |
11873 | case "(($ac_try" in | |
11874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11875 | *) ac_try_echo=$ac_try;; | |
11876 | esac | |
11877 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11878 | $as_echo "$ac_try_echo") >&5 | |
11879 | (eval "$ac_compile") 2>conftest.er1 | |
11880 | ac_status=$? | |
11881 | grep -v '^ *+' conftest.er1 >conftest.err | |
11882 | rm -f conftest.er1 | |
11883 | cat conftest.err >&5 | |
11884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11885 | (exit $ac_status); } && { | |
11886 | test -z "$ac_c_werror_flag" || | |
11887 | test ! -s conftest.err | |
11888 | } && test -s conftest.$ac_objext; then | |
11889 | ac_header_compiler=yes | |
11890 | else | |
11891 | $as_echo "$as_me: failed program was:" >&5 | |
11892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11893 | |
a946372e | 11894 | ac_header_compiler=no |
d0191583 JM |
11895 | fi |
11896 | ||
a946372e AK |
11897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11898 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11899 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11900 | |
a946372e AK |
11901 | # Is the header present? |
11902 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11903 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11904 | cat >conftest.$ac_ext <<_ACEOF | |
11905 | /* confdefs.h. */ | |
11906 | _ACEOF | |
11907 | cat confdefs.h >>conftest.$ac_ext | |
11908 | cat >>conftest.$ac_ext <<_ACEOF | |
11909 | /* end confdefs.h. */ | |
11910 | #include <$ac_header> | |
11911 | _ACEOF | |
11912 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11913 | case "(($ac_try" in | |
11914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11915 | *) ac_try_echo=$ac_try;; | |
11916 | esac | |
11917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11918 | $as_echo "$ac_try_echo") >&5 | |
11919 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11920 | ac_status=$? | |
11921 | grep -v '^ *+' conftest.er1 >conftest.err | |
11922 | rm -f conftest.er1 | |
11923 | cat conftest.err >&5 | |
11924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11925 | (exit $ac_status); } >/dev/null && { | |
11926 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11927 | test ! -s conftest.err | |
11928 | }; then | |
11929 | ac_header_preproc=yes | |
11930 | else | |
11931 | $as_echo "$as_me: failed program was:" >&5 | |
11932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11933 | ||
11934 | ac_header_preproc=no | |
11935 | fi | |
11936 | ||
11937 | rm -f conftest.err conftest.$ac_ext | |
11938 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11939 | $as_echo "$ac_header_preproc" >&6; } | |
11940 | ||
11941 | # So? What about this header? | |
11942 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11943 | yes:no: ) | |
11944 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11945 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11946 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11947 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11948 | ac_header_preproc=yes | |
11949 | ;; | |
11950 | no:yes:* ) | |
11951 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11952 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11953 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11954 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11955 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11956 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11957 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11958 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11959 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11960 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11961 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11962 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11963 | ||
11964 | ;; | |
11965 | esac | |
11966 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11967 | $as_echo_n "checking for $ac_header... " >&6; } | |
11968 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11969 | $as_echo_n "(cached) " >&6 | |
11970 | else | |
11971 | eval "$as_ac_Header=\$ac_header_preproc" | |
11972 | fi | |
11973 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11974 | $as_echo "$as_val"'` | |
11975 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11976 | $as_echo "$ac_res" >&6; } | |
11977 | ||
11978 | fi | |
11979 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11980 | $as_echo "$as_val"'` | |
11981 | if test "x$as_val" = x""yes; then | |
11982 | cat >>confdefs.h <<_ACEOF | |
11983 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11984 | _ACEOF | |
11985 | ||
11986 | else | |
11987 | $bailout | |
11988 | fi | |
11989 | ||
11990 | done | |
11991 | ||
11992 | check_lib_no_libs ccs ccs_connect | |
11993 | if test $NOTFOUND = 0; then | |
11994 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11995 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11996 | CCS_LIBS="-lccs" | |
11997 | HAVE_CCS=yes | |
11998 | fi | |
11999 | elif test $pkg_failed = untried; then | |
12000 | NOTFOUND=0 | |
12001 | ||
12002 | for ac_header in ccs.h | |
12003 | do | |
12004 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12006 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12007 | $as_echo_n "checking for $ac_header... " >&6; } | |
12008 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12009 | $as_echo_n "(cached) " >&6 | |
12010 | fi | |
12011 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12012 | $as_echo "$as_val"'` | |
12013 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12014 | $as_echo "$ac_res" >&6; } | |
12015 | else | |
12016 | # Is the header compilable? | |
12017 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12018 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12019 | cat >conftest.$ac_ext <<_ACEOF | |
12020 | /* confdefs.h. */ | |
12021 | _ACEOF | |
12022 | cat confdefs.h >>conftest.$ac_ext | |
12023 | cat >>conftest.$ac_ext <<_ACEOF | |
12024 | /* end confdefs.h. */ | |
12025 | $ac_includes_default | |
12026 | #include <$ac_header> | |
12027 | _ACEOF | |
12028 | rm -f conftest.$ac_objext | |
12029 | if { (ac_try="$ac_compile" | |
12030 | case "(($ac_try" in | |
12031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12032 | *) ac_try_echo=$ac_try;; | |
12033 | esac | |
12034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12035 | $as_echo "$ac_try_echo") >&5 | |
12036 | (eval "$ac_compile") 2>conftest.er1 | |
12037 | ac_status=$? | |
12038 | grep -v '^ *+' conftest.er1 >conftest.err | |
12039 | rm -f conftest.er1 | |
12040 | cat conftest.err >&5 | |
12041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12042 | (exit $ac_status); } && { | |
12043 | test -z "$ac_c_werror_flag" || | |
12044 | test ! -s conftest.err | |
12045 | } && test -s conftest.$ac_objext; then | |
12046 | ac_header_compiler=yes | |
12047 | else | |
12048 | $as_echo "$as_me: failed program was:" >&5 | |
12049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12050 | ||
12051 | ac_header_compiler=no | |
12052 | fi | |
12053 | ||
12054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12055 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12056 | $as_echo "$ac_header_compiler" >&6; } | |
12057 | ||
12058 | # Is the header present? | |
12059 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12060 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12061 | cat >conftest.$ac_ext <<_ACEOF | |
12062 | /* confdefs.h. */ | |
12063 | _ACEOF | |
12064 | cat confdefs.h >>conftest.$ac_ext | |
12065 | cat >>conftest.$ac_ext <<_ACEOF | |
12066 | /* end confdefs.h. */ | |
12067 | #include <$ac_header> | |
12068 | _ACEOF | |
12069 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12070 | case "(($ac_try" in | |
12071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12072 | *) ac_try_echo=$ac_try;; | |
12073 | esac | |
12074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12075 | $as_echo "$ac_try_echo") >&5 | |
12076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12077 | ac_status=$? | |
12078 | grep -v '^ *+' conftest.er1 >conftest.err | |
12079 | rm -f conftest.er1 | |
12080 | cat conftest.err >&5 | |
12081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12082 | (exit $ac_status); } >/dev/null && { | |
12083 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12084 | test ! -s conftest.err | |
12085 | }; then | |
12086 | ac_header_preproc=yes | |
12087 | else | |
12088 | $as_echo "$as_me: failed program was:" >&5 | |
12089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12090 | ||
12091 | ac_header_preproc=no | |
12092 | fi | |
12093 | ||
12094 | rm -f conftest.err conftest.$ac_ext | |
12095 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12096 | $as_echo "$ac_header_preproc" >&6; } | |
12097 | ||
12098 | # So? What about this header? | |
12099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12100 | yes:no: ) | |
12101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12102 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12104 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12105 | ac_header_preproc=yes | |
12106 | ;; | |
12107 | no:yes:* ) | |
12108 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12109 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12110 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12111 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12112 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12113 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12114 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12115 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12116 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12117 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12118 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12119 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12120 | ||
12121 | ;; | |
12122 | esac | |
12123 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12124 | $as_echo_n "checking for $ac_header... " >&6; } | |
12125 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12126 | $as_echo_n "(cached) " >&6 | |
12127 | else | |
12128 | eval "$as_ac_Header=\$ac_header_preproc" | |
12129 | fi | |
12130 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12131 | $as_echo "$as_val"'` | |
12132 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12133 | $as_echo "$ac_res" >&6; } | |
12134 | ||
12135 | fi | |
12136 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12137 | $as_echo "$as_val"'` | |
12138 | if test "x$as_val" = x""yes; then | |
12139 | cat >>confdefs.h <<_ACEOF | |
12140 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12141 | _ACEOF | |
12142 | ||
12143 | else | |
12144 | $bailout | |
12145 | fi | |
12146 | ||
12147 | done | |
12148 | ||
12149 | check_lib_no_libs ccs ccs_connect | |
12150 | if test $NOTFOUND = 0; then | |
12151 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12152 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12153 | CCS_LIBS="-lccs" | |
12154 | HAVE_CCS=yes | |
12155 | fi | |
12156 | else | |
12157 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12158 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12159 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12160 | $as_echo "yes" >&6; } | |
12161 | HAVE_CCS=yes | |
12162 | fi | |
12163 | ||
12164 | pkg_failed=no | |
12165 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12166 | $as_echo_n "checking for GULM... " >&6; } | |
12167 | ||
12168 | if test -n "$GULM_CFLAGS"; then | |
12169 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12170 | elif test -n "$PKG_CONFIG"; then | |
12171 | if test -n "$PKG_CONFIG" && \ | |
12172 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12173 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12174 | ac_status=$? | |
12175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12176 | (exit $ac_status); }; then | |
12177 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12178 | else | |
12179 | pkg_failed=yes | |
12180 | fi | |
12181 | else | |
12182 | pkg_failed=untried | |
12183 | fi | |
12184 | if test -n "$GULM_LIBS"; then | |
12185 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12186 | elif test -n "$PKG_CONFIG"; then | |
12187 | if test -n "$PKG_CONFIG" && \ | |
12188 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12189 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12190 | ac_status=$? | |
12191 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12192 | (exit $ac_status); }; then | |
12193 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12194 | else | |
12195 | pkg_failed=yes | |
12196 | fi | |
12197 | else | |
12198 | pkg_failed=untried | |
12199 | fi | |
12200 | ||
12201 | ||
12202 | ||
12203 | if test $pkg_failed = yes; then | |
12204 | ||
12205 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12206 | _pkg_short_errors_supported=yes | |
12207 | else | |
12208 | _pkg_short_errors_supported=no | |
12209 | fi | |
12210 | if test $_pkg_short_errors_supported = yes; then | |
12211 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12212 | else | |
12213 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12214 | fi | |
12215 | # Put the nasty error message in config.log where it belongs | |
12216 | echo "$GULM_PKG_ERRORS" >&5 | |
12217 | ||
8c4e8a18 FDN |
12218 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12219 | $as_echo "no" >&6; } | |
12220 | NOTFOUND=0 | |
a946372e AK |
12221 | |
12222 | for ac_header in libgulm.h | |
12223 | do | |
12224 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12225 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12226 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12227 | $as_echo_n "checking for $ac_header... " >&6; } | |
12228 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12229 | $as_echo_n "(cached) " >&6 | |
12230 | fi | |
12231 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12232 | $as_echo "$as_val"'` | |
12233 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12234 | $as_echo "$ac_res" >&6; } | |
12235 | else | |
12236 | # Is the header compilable? | |
12237 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12238 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12239 | cat >conftest.$ac_ext <<_ACEOF | |
12240 | /* confdefs.h. */ | |
12241 | _ACEOF | |
12242 | cat confdefs.h >>conftest.$ac_ext | |
12243 | cat >>conftest.$ac_ext <<_ACEOF | |
12244 | /* end confdefs.h. */ | |
12245 | $ac_includes_default | |
12246 | #include <$ac_header> | |
12247 | _ACEOF | |
12248 | rm -f conftest.$ac_objext | |
12249 | if { (ac_try="$ac_compile" | |
12250 | case "(($ac_try" in | |
12251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12252 | *) ac_try_echo=$ac_try;; | |
12253 | esac | |
12254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12255 | $as_echo "$ac_try_echo") >&5 | |
12256 | (eval "$ac_compile") 2>conftest.er1 | |
12257 | ac_status=$? | |
12258 | grep -v '^ *+' conftest.er1 >conftest.err | |
12259 | rm -f conftest.er1 | |
12260 | cat conftest.err >&5 | |
12261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12262 | (exit $ac_status); } && { | |
12263 | test -z "$ac_c_werror_flag" || | |
12264 | test ! -s conftest.err | |
12265 | } && test -s conftest.$ac_objext; then | |
12266 | ac_header_compiler=yes | |
12267 | else | |
12268 | $as_echo "$as_me: failed program was:" >&5 | |
12269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12270 | ||
12271 | ac_header_compiler=no | |
12272 | fi | |
12273 | ||
12274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12275 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12276 | $as_echo "$ac_header_compiler" >&6; } | |
12277 | ||
12278 | # Is the header present? | |
12279 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12280 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12281 | cat >conftest.$ac_ext <<_ACEOF | |
12282 | /* confdefs.h. */ | |
12283 | _ACEOF | |
12284 | cat confdefs.h >>conftest.$ac_ext | |
12285 | cat >>conftest.$ac_ext <<_ACEOF | |
12286 | /* end confdefs.h. */ | |
12287 | #include <$ac_header> | |
12288 | _ACEOF | |
12289 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12290 | case "(($ac_try" in | |
12291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12292 | *) ac_try_echo=$ac_try;; | |
12293 | esac | |
12294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12295 | $as_echo "$ac_try_echo") >&5 | |
12296 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12297 | ac_status=$? | |
12298 | grep -v '^ *+' conftest.er1 >conftest.err | |
12299 | rm -f conftest.er1 | |
12300 | cat conftest.err >&5 | |
12301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12302 | (exit $ac_status); } >/dev/null && { | |
12303 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12304 | test ! -s conftest.err | |
12305 | }; then | |
12306 | ac_header_preproc=yes | |
12307 | else | |
12308 | $as_echo "$as_me: failed program was:" >&5 | |
12309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12310 | ||
12311 | ac_header_preproc=no | |
12312 | fi | |
12313 | ||
12314 | rm -f conftest.err conftest.$ac_ext | |
12315 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12316 | $as_echo "$ac_header_preproc" >&6; } | |
12317 | ||
12318 | # So? What about this header? | |
12319 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12320 | yes:no: ) | |
12321 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12322 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12323 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12324 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12325 | ac_header_preproc=yes | |
12326 | ;; | |
12327 | no:yes:* ) | |
12328 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12329 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12330 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12331 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12332 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12333 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12334 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12335 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12336 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12337 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12338 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12339 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12340 | ||
12341 | ;; | |
12342 | esac | |
12343 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12344 | $as_echo_n "checking for $ac_header... " >&6; } | |
12345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12346 | $as_echo_n "(cached) " >&6 | |
12347 | else | |
12348 | eval "$as_ac_Header=\$ac_header_preproc" | |
12349 | fi | |
12350 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12351 | $as_echo "$as_val"'` | |
12352 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12353 | $as_echo "$ac_res" >&6; } | |
12354 | ||
12355 | fi | |
12356 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12357 | $as_echo "$as_val"'` | |
12358 | if test "x$as_val" = x""yes; then | |
12359 | cat >>confdefs.h <<_ACEOF | |
12360 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12361 | _ACEOF | |
12362 | ||
12363 | else | |
12364 | $bailout | |
12365 | fi | |
12366 | ||
12367 | done | |
12368 | ||
12369 | check_lib_no_libs gulm lg_core_login | |
12370 | if test $NOTFOUND = 0; then | |
12371 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12372 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12373 | GULM_LIBS="-lgulm" | |
12374 | HAVE_GULM=yes | |
12375 | fi | |
12376 | elif test $pkg_failed = untried; then | |
12377 | NOTFOUND=0 | |
12378 | ||
12379 | for ac_header in libgulm.h | |
12380 | do | |
12381 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12383 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12384 | $as_echo_n "checking for $ac_header... " >&6; } | |
12385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12386 | $as_echo_n "(cached) " >&6 | |
12387 | fi | |
12388 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12389 | $as_echo "$as_val"'` | |
12390 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12391 | $as_echo "$ac_res" >&6; } | |
12392 | else | |
12393 | # Is the header compilable? | |
12394 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12395 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12396 | cat >conftest.$ac_ext <<_ACEOF | |
12397 | /* confdefs.h. */ | |
12398 | _ACEOF | |
12399 | cat confdefs.h >>conftest.$ac_ext | |
12400 | cat >>conftest.$ac_ext <<_ACEOF | |
12401 | /* end confdefs.h. */ | |
12402 | $ac_includes_default | |
12403 | #include <$ac_header> | |
12404 | _ACEOF | |
12405 | rm -f conftest.$ac_objext | |
12406 | if { (ac_try="$ac_compile" | |
12407 | case "(($ac_try" in | |
12408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12409 | *) ac_try_echo=$ac_try;; | |
12410 | esac | |
12411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12412 | $as_echo "$ac_try_echo") >&5 | |
12413 | (eval "$ac_compile") 2>conftest.er1 | |
12414 | ac_status=$? | |
12415 | grep -v '^ *+' conftest.er1 >conftest.err | |
12416 | rm -f conftest.er1 | |
12417 | cat conftest.err >&5 | |
12418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12419 | (exit $ac_status); } && { | |
12420 | test -z "$ac_c_werror_flag" || | |
12421 | test ! -s conftest.err | |
12422 | } && test -s conftest.$ac_objext; then | |
12423 | ac_header_compiler=yes | |
12424 | else | |
12425 | $as_echo "$as_me: failed program was:" >&5 | |
12426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12427 | ||
12428 | ac_header_compiler=no | |
12429 | fi | |
12430 | ||
12431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12432 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12433 | $as_echo "$ac_header_compiler" >&6; } | |
12434 | ||
12435 | # Is the header present? | |
12436 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12437 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12438 | cat >conftest.$ac_ext <<_ACEOF | |
12439 | /* confdefs.h. */ | |
12440 | _ACEOF | |
12441 | cat confdefs.h >>conftest.$ac_ext | |
12442 | cat >>conftest.$ac_ext <<_ACEOF | |
12443 | /* end confdefs.h. */ | |
12444 | #include <$ac_header> | |
12445 | _ACEOF | |
12446 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12447 | case "(($ac_try" in | |
12448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12449 | *) ac_try_echo=$ac_try;; | |
12450 | esac | |
12451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12452 | $as_echo "$ac_try_echo") >&5 | |
12453 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12454 | ac_status=$? | |
12455 | grep -v '^ *+' conftest.er1 >conftest.err | |
12456 | rm -f conftest.er1 | |
12457 | cat conftest.err >&5 | |
12458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12459 | (exit $ac_status); } >/dev/null && { | |
12460 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12461 | test ! -s conftest.err | |
12462 | }; then | |
12463 | ac_header_preproc=yes | |
12464 | else | |
12465 | $as_echo "$as_me: failed program was:" >&5 | |
12466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12467 | ||
12468 | ac_header_preproc=no | |
12469 | fi | |
12470 | ||
12471 | rm -f conftest.err conftest.$ac_ext | |
12472 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12473 | $as_echo "$ac_header_preproc" >&6; } | |
12474 | ||
12475 | # So? What about this header? | |
12476 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12477 | yes:no: ) | |
12478 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12479 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12481 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12482 | ac_header_preproc=yes | |
12483 | ;; | |
12484 | no:yes:* ) | |
12485 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12486 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12488 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12489 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12490 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12491 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12492 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12493 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12494 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12495 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12496 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12497 | ||
12498 | ;; | |
12499 | esac | |
12500 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12501 | $as_echo_n "checking for $ac_header... " >&6; } | |
12502 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12503 | $as_echo_n "(cached) " >&6 | |
12504 | else | |
12505 | eval "$as_ac_Header=\$ac_header_preproc" | |
12506 | fi | |
12507 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12508 | $as_echo "$as_val"'` | |
12509 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12510 | $as_echo "$ac_res" >&6; } | |
12511 | ||
12512 | fi | |
12513 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12514 | $as_echo "$as_val"'` | |
12515 | if test "x$as_val" = x""yes; then | |
12516 | cat >>confdefs.h <<_ACEOF | |
12517 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12518 | _ACEOF | |
12519 | ||
12520 | else | |
12521 | $bailout | |
12522 | fi | |
12523 | ||
12524 | done | |
12525 | ||
12526 | check_lib_no_libs gulm lg_core_login | |
12527 | if test $NOTFOUND = 0; then | |
12528 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12529 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12530 | GULM_LIBS="-lgulm" | |
12531 | HAVE_GULM=yes | |
12532 | fi | |
12533 | else | |
12534 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12535 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12536 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12537 | $as_echo "yes" >&6; } | |
12538 | HAVE_GULM=yes | |
12539 | fi | |
12540 | fi | |
12541 | ||
12542 | if test x$BUILDCMAN = xyes; then | |
12543 | ||
12544 | pkg_failed=no | |
12545 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12546 | $as_echo_n "checking for CMAN... " >&6; } | |
12547 | ||
12548 | if test -n "$CMAN_CFLAGS"; then | |
12549 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12550 | elif test -n "$PKG_CONFIG"; then | |
12551 | if test -n "$PKG_CONFIG" && \ | |
12552 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12553 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12554 | ac_status=$? | |
12555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12556 | (exit $ac_status); }; then | |
12557 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12558 | else | |
12559 | pkg_failed=yes | |
12560 | fi | |
12561 | else | |
12562 | pkg_failed=untried | |
12563 | fi | |
12564 | if test -n "$CMAN_LIBS"; then | |
12565 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12566 | elif test -n "$PKG_CONFIG"; then | |
12567 | if test -n "$PKG_CONFIG" && \ | |
12568 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12569 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12570 | ac_status=$? | |
12571 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12572 | (exit $ac_status); }; then | |
12573 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12574 | else | |
12575 | pkg_failed=yes | |
12576 | fi | |
12577 | else | |
12578 | pkg_failed=untried | |
12579 | fi | |
12580 | ||
12581 | ||
12582 | ||
12583 | if test $pkg_failed = yes; then | |
12584 | ||
12585 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12586 | _pkg_short_errors_supported=yes | |
12587 | else | |
12588 | _pkg_short_errors_supported=no | |
12589 | fi | |
12590 | if test $_pkg_short_errors_supported = yes; then | |
12591 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12592 | else | |
12593 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12594 | fi | |
12595 | # Put the nasty error message in config.log where it belongs | |
12596 | echo "$CMAN_PKG_ERRORS" >&5 | |
12597 | ||
8c4e8a18 FDN |
12598 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12599 | $as_echo "no" >&6; } | |
12600 | NOTFOUND=0 | |
a946372e AK |
12601 | |
12602 | for ac_header in libcman.h | |
12603 | do | |
12604 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12606 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12607 | $as_echo_n "checking for $ac_header... " >&6; } | |
12608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12609 | $as_echo_n "(cached) " >&6 | |
12610 | fi | |
12611 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12612 | $as_echo "$as_val"'` | |
12613 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12614 | $as_echo "$ac_res" >&6; } | |
12615 | else | |
12616 | # Is the header compilable? | |
12617 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12618 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12619 | cat >conftest.$ac_ext <<_ACEOF | |
12620 | /* confdefs.h. */ | |
12621 | _ACEOF | |
12622 | cat confdefs.h >>conftest.$ac_ext | |
12623 | cat >>conftest.$ac_ext <<_ACEOF | |
12624 | /* end confdefs.h. */ | |
12625 | $ac_includes_default | |
12626 | #include <$ac_header> | |
12627 | _ACEOF | |
12628 | rm -f conftest.$ac_objext | |
12629 | if { (ac_try="$ac_compile" | |
12630 | case "(($ac_try" in | |
12631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12632 | *) ac_try_echo=$ac_try;; | |
12633 | esac | |
12634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12635 | $as_echo "$ac_try_echo") >&5 | |
12636 | (eval "$ac_compile") 2>conftest.er1 | |
12637 | ac_status=$? | |
12638 | grep -v '^ *+' conftest.er1 >conftest.err | |
12639 | rm -f conftest.er1 | |
12640 | cat conftest.err >&5 | |
12641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12642 | (exit $ac_status); } && { | |
12643 | test -z "$ac_c_werror_flag" || | |
12644 | test ! -s conftest.err | |
12645 | } && test -s conftest.$ac_objext; then | |
12646 | ac_header_compiler=yes | |
12647 | else | |
12648 | $as_echo "$as_me: failed program was:" >&5 | |
12649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12650 | ||
12651 | ac_header_compiler=no | |
12652 | fi | |
12653 | ||
12654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12655 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12656 | $as_echo "$ac_header_compiler" >&6; } | |
12657 | ||
12658 | # Is the header present? | |
12659 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12660 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12661 | cat >conftest.$ac_ext <<_ACEOF | |
12662 | /* confdefs.h. */ | |
12663 | _ACEOF | |
12664 | cat confdefs.h >>conftest.$ac_ext | |
12665 | cat >>conftest.$ac_ext <<_ACEOF | |
12666 | /* end confdefs.h. */ | |
12667 | #include <$ac_header> | |
12668 | _ACEOF | |
12669 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12670 | case "(($ac_try" in | |
12671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12672 | *) ac_try_echo=$ac_try;; | |
12673 | esac | |
12674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12675 | $as_echo "$ac_try_echo") >&5 | |
12676 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12677 | ac_status=$? | |
12678 | grep -v '^ *+' conftest.er1 >conftest.err | |
12679 | rm -f conftest.er1 | |
12680 | cat conftest.err >&5 | |
12681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12682 | (exit $ac_status); } >/dev/null && { | |
12683 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12684 | test ! -s conftest.err | |
12685 | }; then | |
12686 | ac_header_preproc=yes | |
12687 | else | |
12688 | $as_echo "$as_me: failed program was:" >&5 | |
12689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12690 | ||
12691 | ac_header_preproc=no | |
12692 | fi | |
12693 | ||
12694 | rm -f conftest.err conftest.$ac_ext | |
12695 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12696 | $as_echo "$ac_header_preproc" >&6; } | |
12697 | ||
12698 | # So? What about this header? | |
12699 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12700 | yes:no: ) | |
12701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12702 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12704 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12705 | ac_header_preproc=yes | |
12706 | ;; | |
12707 | no:yes:* ) | |
12708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12709 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12711 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12712 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12713 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12714 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12715 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12716 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12717 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12718 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12719 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12720 | ||
12721 | ;; | |
12722 | esac | |
12723 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12724 | $as_echo_n "checking for $ac_header... " >&6; } | |
12725 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12726 | $as_echo_n "(cached) " >&6 | |
12727 | else | |
12728 | eval "$as_ac_Header=\$ac_header_preproc" | |
12729 | fi | |
12730 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12731 | $as_echo "$as_val"'` | |
12732 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12733 | $as_echo "$ac_res" >&6; } | |
12734 | ||
12735 | fi | |
12736 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12737 | $as_echo "$as_val"'` | |
12738 | if test "x$as_val" = x""yes; then | |
12739 | cat >>confdefs.h <<_ACEOF | |
12740 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12741 | _ACEOF | |
12742 | ||
12743 | else | |
12744 | $bailout | |
12745 | fi | |
12746 | ||
12747 | done | |
12748 | ||
12749 | check_lib_no_libs cman cman_init | |
12750 | if test $NOTFOUND = 0; then | |
12751 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12752 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12753 | CMAN_LIBS="-lcman" | |
12754 | HAVE_CMAN=yes | |
12755 | fi | |
12756 | elif test $pkg_failed = untried; then | |
12757 | NOTFOUND=0 | |
12758 | ||
12759 | for ac_header in libcman.h | |
12760 | do | |
12761 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12763 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12764 | $as_echo_n "checking for $ac_header... " >&6; } | |
12765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12766 | $as_echo_n "(cached) " >&6 | |
12767 | fi | |
12768 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12769 | $as_echo "$as_val"'` | |
12770 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12771 | $as_echo "$ac_res" >&6; } | |
12772 | else | |
12773 | # Is the header compilable? | |
12774 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12775 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12776 | cat >conftest.$ac_ext <<_ACEOF | |
12777 | /* confdefs.h. */ | |
12778 | _ACEOF | |
12779 | cat confdefs.h >>conftest.$ac_ext | |
12780 | cat >>conftest.$ac_ext <<_ACEOF | |
12781 | /* end confdefs.h. */ | |
12782 | $ac_includes_default | |
12783 | #include <$ac_header> | |
12784 | _ACEOF | |
12785 | rm -f conftest.$ac_objext | |
12786 | if { (ac_try="$ac_compile" | |
12787 | case "(($ac_try" in | |
12788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12789 | *) ac_try_echo=$ac_try;; | |
12790 | esac | |
12791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12792 | $as_echo "$ac_try_echo") >&5 | |
12793 | (eval "$ac_compile") 2>conftest.er1 | |
12794 | ac_status=$? | |
12795 | grep -v '^ *+' conftest.er1 >conftest.err | |
12796 | rm -f conftest.er1 | |
12797 | cat conftest.err >&5 | |
12798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12799 | (exit $ac_status); } && { | |
12800 | test -z "$ac_c_werror_flag" || | |
12801 | test ! -s conftest.err | |
12802 | } && test -s conftest.$ac_objext; then | |
12803 | ac_header_compiler=yes | |
12804 | else | |
12805 | $as_echo "$as_me: failed program was:" >&5 | |
12806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12807 | ||
12808 | ac_header_compiler=no | |
12809 | fi | |
12810 | ||
12811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12812 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12813 | $as_echo "$ac_header_compiler" >&6; } | |
12814 | ||
12815 | # Is the header present? | |
12816 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12817 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12818 | cat >conftest.$ac_ext <<_ACEOF | |
12819 | /* confdefs.h. */ | |
12820 | _ACEOF | |
12821 | cat confdefs.h >>conftest.$ac_ext | |
12822 | cat >>conftest.$ac_ext <<_ACEOF | |
12823 | /* end confdefs.h. */ | |
12824 | #include <$ac_header> | |
12825 | _ACEOF | |
12826 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12827 | case "(($ac_try" in | |
12828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12829 | *) ac_try_echo=$ac_try;; | |
12830 | esac | |
12831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12832 | $as_echo "$ac_try_echo") >&5 | |
12833 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12834 | ac_status=$? | |
12835 | grep -v '^ *+' conftest.er1 >conftest.err | |
12836 | rm -f conftest.er1 | |
12837 | cat conftest.err >&5 | |
12838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12839 | (exit $ac_status); } >/dev/null && { | |
12840 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12841 | test ! -s conftest.err | |
12842 | }; then | |
12843 | ac_header_preproc=yes | |
12844 | else | |
12845 | $as_echo "$as_me: failed program was:" >&5 | |
12846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12847 | ||
12848 | ac_header_preproc=no | |
12849 | fi | |
12850 | ||
12851 | rm -f conftest.err conftest.$ac_ext | |
12852 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12853 | $as_echo "$ac_header_preproc" >&6; } | |
12854 | ||
12855 | # So? What about this header? | |
12856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12857 | yes:no: ) | |
12858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12859 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12861 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12862 | ac_header_preproc=yes | |
12863 | ;; | |
12864 | no:yes:* ) | |
12865 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12866 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12868 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12870 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12872 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12874 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12876 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12877 | ||
12878 | ;; | |
12879 | esac | |
12880 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12881 | $as_echo_n "checking for $ac_header... " >&6; } | |
12882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12883 | $as_echo_n "(cached) " >&6 | |
12884 | else | |
12885 | eval "$as_ac_Header=\$ac_header_preproc" | |
12886 | fi | |
12887 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12888 | $as_echo "$as_val"'` | |
12889 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12890 | $as_echo "$ac_res" >&6; } | |
12891 | ||
12892 | fi | |
12893 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12894 | $as_echo "$as_val"'` | |
12895 | if test "x$as_val" = x""yes; then | |
12896 | cat >>confdefs.h <<_ACEOF | |
12897 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12898 | _ACEOF | |
12899 | ||
12900 | else | |
12901 | $bailout | |
12902 | fi | |
12903 | ||
12904 | done | |
12905 | ||
12906 | check_lib_no_libs cman cman_init | |
12907 | if test $NOTFOUND = 0; then | |
12908 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12909 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12910 | CMAN_LIBS="-lcman" | |
12911 | HAVE_CMAN=yes | |
12912 | fi | |
12913 | else | |
12914 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12915 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12916 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12917 | $as_echo "yes" >&6; } | |
12918 | HAVE_CMAN=yes | |
12919 | fi | |
12920 | CHECKCONFDB=yes | |
12921 | CHECKDLM=yes | |
12922 | fi | |
12923 | ||
12924 | if test x$BUILDCOROSYNC = xyes || \ | |
12925 | test x$BUILDOPENAIS = xyes; then | |
12926 | ||
12927 | pkg_failed=no | |
12928 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12929 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12930 | ||
12931 | if test -n "$COROSYNC_CFLAGS"; then | |
12932 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12933 | elif test -n "$PKG_CONFIG"; then | |
12934 | if test -n "$PKG_CONFIG" && \ | |
12935 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12936 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12937 | ac_status=$? | |
12938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12939 | (exit $ac_status); }; then | |
12940 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12941 | else | |
12942 | pkg_failed=yes | |
12943 | fi | |
12944 | else | |
12945 | pkg_failed=untried | |
12946 | fi | |
12947 | if test -n "$COROSYNC_LIBS"; then | |
12948 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12949 | elif test -n "$PKG_CONFIG"; then | |
12950 | if test -n "$PKG_CONFIG" && \ | |
12951 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12952 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12953 | ac_status=$? | |
12954 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12955 | (exit $ac_status); }; then | |
12956 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12957 | else | |
12958 | pkg_failed=yes | |
12959 | fi | |
12960 | else | |
12961 | pkg_failed=untried | |
12962 | fi | |
12963 | ||
12964 | ||
12965 | ||
12966 | if test $pkg_failed = yes; then | |
12967 | ||
12968 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12969 | _pkg_short_errors_supported=yes | |
12970 | else | |
12971 | _pkg_short_errors_supported=no | |
12972 | fi | |
12973 | if test $_pkg_short_errors_supported = yes; then | |
12974 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12975 | else | |
12976 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12977 | fi | |
12978 | # Put the nasty error message in config.log where it belongs | |
12979 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12980 | ||
8c4e8a18 | 12981 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 12982 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
12983 | $bailout |
12984 | elif test $pkg_failed = untried; then | |
a946372e AK |
12985 | $bailout |
12986 | else | |
12987 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12988 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12989 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12990 | $as_echo "yes" >&6; } | |
12991 | HAVE_COROSYNC=yes | |
12992 | fi | |
12993 | CHECKCONFDB=yes | |
12994 | fi | |
12995 | ||
12996 | if test x$BUILDCOROSYNC = xyes; then | |
12997 | ||
12998 | pkg_failed=no | |
12999 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
13000 | $as_echo_n "checking for QUORUM... " >&6; } | |
13001 | ||
13002 | if test -n "$QUORUM_CFLAGS"; then | |
13003 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
13004 | elif test -n "$PKG_CONFIG"; then | |
13005 | if test -n "$PKG_CONFIG" && \ | |
13006 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
13007 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
13008 | ac_status=$? | |
13009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13010 | (exit $ac_status); }; then | |
13011 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
13012 | else | |
13013 | pkg_failed=yes | |
13014 | fi | |
13015 | else | |
13016 | pkg_failed=untried | |
13017 | fi | |
13018 | if test -n "$QUORUM_LIBS"; then | |
13019 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
13020 | elif test -n "$PKG_CONFIG"; then | |
13021 | if test -n "$PKG_CONFIG" && \ | |
13022 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
13023 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
13024 | ac_status=$? | |
13025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13026 | (exit $ac_status); }; then | |
13027 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
13028 | else | |
13029 | pkg_failed=yes | |
13030 | fi | |
13031 | else | |
13032 | pkg_failed=untried | |
13033 | fi | |
13034 | ||
13035 | ||
13036 | ||
13037 | if test $pkg_failed = yes; then | |
13038 | ||
13039 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13040 | _pkg_short_errors_supported=yes | |
13041 | else | |
13042 | _pkg_short_errors_supported=no | |
13043 | fi | |
13044 | if test $_pkg_short_errors_supported = yes; then | |
13045 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
13046 | else | |
13047 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
13048 | fi | |
13049 | # Put the nasty error message in config.log where it belongs | |
13050 | echo "$QUORUM_PKG_ERRORS" >&5 | |
13051 | ||
8c4e8a18 | 13052 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13053 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13054 | $bailout |
13055 | elif test $pkg_failed = untried; then | |
a946372e AK |
13056 | $bailout |
13057 | else | |
13058 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
13059 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
13060 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13061 | $as_echo "yes" >&6; } | |
13062 | HAVE_QUORUM=yes | |
13063 | fi | |
13064 | CHECKCPG=yes | |
13065 | CHECKDLM=yes | |
13066 | fi | |
13067 | ||
13068 | if test x$BUILDOPENAIS = xyes; then | |
13069 | ||
13070 | pkg_failed=no | |
13071 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
13072 | $as_echo_n "checking for SALCK... " >&6; } | |
13073 | ||
13074 | if test -n "$SALCK_CFLAGS"; then | |
13075 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13076 | elif test -n "$PKG_CONFIG"; then | |
13077 | if test -n "$PKG_CONFIG" && \ | |
13078 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13079 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13080 | ac_status=$? | |
13081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13082 | (exit $ac_status); }; then | |
13083 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13084 | else | |
13085 | pkg_failed=yes | |
13086 | fi | |
13087 | else | |
13088 | pkg_failed=untried | |
13089 | fi | |
13090 | if test -n "$SALCK_LIBS"; then | |
13091 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13092 | elif test -n "$PKG_CONFIG"; then | |
13093 | if test -n "$PKG_CONFIG" && \ | |
13094 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13095 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13096 | ac_status=$? | |
13097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13098 | (exit $ac_status); }; then | |
13099 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13100 | else | |
13101 | pkg_failed=yes | |
13102 | fi | |
13103 | else | |
13104 | pkg_failed=untried | |
13105 | fi | |
13106 | ||
13107 | ||
13108 | ||
13109 | if test $pkg_failed = yes; then | |
13110 | ||
13111 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13112 | _pkg_short_errors_supported=yes | |
13113 | else | |
13114 | _pkg_short_errors_supported=no | |
13115 | fi | |
13116 | if test $_pkg_short_errors_supported = yes; then | |
13117 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13118 | else | |
13119 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13120 | fi | |
13121 | # Put the nasty error message in config.log where it belongs | |
13122 | echo "$SALCK_PKG_ERRORS" >&5 | |
13123 | ||
8c4e8a18 | 13124 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13125 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13126 | $bailout |
13127 | elif test $pkg_failed = untried; then | |
a946372e AK |
13128 | $bailout |
13129 | else | |
13130 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13131 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13132 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13133 | $as_echo "yes" >&6; } | |
13134 | HAVE_SALCK=yes | |
13135 | fi | |
13136 | CHECKCPG=yes | |
13137 | fi | |
13138 | ||
13139 | ||
13140 | ||
13141 | if test x$CHECKCONFDB = xyes; then | |
13142 | ||
13143 | pkg_failed=no | |
13144 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13145 | $as_echo_n "checking for CONFDB... " >&6; } | |
13146 | ||
13147 | if test -n "$CONFDB_CFLAGS"; then | |
13148 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13149 | elif test -n "$PKG_CONFIG"; then | |
13150 | if test -n "$PKG_CONFIG" && \ | |
13151 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13152 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13153 | ac_status=$? | |
13154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13155 | (exit $ac_status); }; then | |
13156 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13157 | else | |
13158 | pkg_failed=yes | |
13159 | fi | |
13160 | else | |
13161 | pkg_failed=untried | |
13162 | fi | |
13163 | if test -n "$CONFDB_LIBS"; then | |
13164 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13165 | elif test -n "$PKG_CONFIG"; then | |
13166 | if test -n "$PKG_CONFIG" && \ | |
13167 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13168 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13169 | ac_status=$? | |
13170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13171 | (exit $ac_status); }; then | |
13172 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13173 | else | |
13174 | pkg_failed=yes | |
13175 | fi | |
13176 | else | |
13177 | pkg_failed=untried | |
13178 | fi | |
13179 | ||
13180 | ||
13181 | ||
13182 | if test $pkg_failed = yes; then | |
13183 | ||
13184 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13185 | _pkg_short_errors_supported=yes | |
13186 | else | |
13187 | _pkg_short_errors_supported=no | |
13188 | fi | |
13189 | if test $_pkg_short_errors_supported = yes; then | |
13190 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13191 | else | |
13192 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13193 | fi | |
13194 | # Put the nasty error message in config.log where it belongs | |
13195 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13196 | ||
8c4e8a18 | 13197 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13198 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13199 | HAVE_CONFDB=no |
13200 | elif test $pkg_failed = untried; then | |
a946372e AK |
13201 | HAVE_CONFDB=no |
13202 | else | |
13203 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13204 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13205 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13206 | $as_echo "yes" >&6; } | |
13207 | HAVE_CONFDB=yes | |
13208 | fi | |
13209 | ||
13210 | ||
13211 | for ac_header in corosync/confdb.h | |
13212 | do | |
13213 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13214 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13215 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13216 | $as_echo_n "checking for $ac_header... " >&6; } | |
13217 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13218 | $as_echo_n "(cached) " >&6 | |
13219 | fi | |
13220 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13221 | $as_echo "$as_val"'` | |
13222 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13223 | $as_echo "$ac_res" >&6; } | |
13224 | else | |
13225 | # Is the header compilable? | |
13226 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13227 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13228 | cat >conftest.$ac_ext <<_ACEOF | |
13229 | /* confdefs.h. */ | |
13230 | _ACEOF | |
13231 | cat confdefs.h >>conftest.$ac_ext | |
13232 | cat >>conftest.$ac_ext <<_ACEOF | |
13233 | /* end confdefs.h. */ | |
13234 | $ac_includes_default | |
13235 | #include <$ac_header> | |
13236 | _ACEOF | |
13237 | rm -f conftest.$ac_objext | |
13238 | if { (ac_try="$ac_compile" | |
13239 | case "(($ac_try" in | |
13240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13241 | *) ac_try_echo=$ac_try;; | |
13242 | esac | |
13243 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13244 | $as_echo "$ac_try_echo") >&5 | |
13245 | (eval "$ac_compile") 2>conftest.er1 | |
13246 | ac_status=$? | |
13247 | grep -v '^ *+' conftest.er1 >conftest.err | |
13248 | rm -f conftest.er1 | |
13249 | cat conftest.err >&5 | |
13250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); } && { | |
13252 | test -z "$ac_c_werror_flag" || | |
13253 | test ! -s conftest.err | |
13254 | } && test -s conftest.$ac_objext; then | |
13255 | ac_header_compiler=yes | |
13256 | else | |
13257 | $as_echo "$as_me: failed program was:" >&5 | |
13258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13259 | ||
13260 | ac_header_compiler=no | |
13261 | fi | |
13262 | ||
13263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13264 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13265 | $as_echo "$ac_header_compiler" >&6; } | |
13266 | ||
13267 | # Is the header present? | |
13268 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13269 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13270 | cat >conftest.$ac_ext <<_ACEOF | |
13271 | /* confdefs.h. */ | |
13272 | _ACEOF | |
13273 | cat confdefs.h >>conftest.$ac_ext | |
13274 | cat >>conftest.$ac_ext <<_ACEOF | |
13275 | /* end confdefs.h. */ | |
13276 | #include <$ac_header> | |
13277 | _ACEOF | |
13278 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13279 | case "(($ac_try" in | |
13280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13281 | *) ac_try_echo=$ac_try;; | |
13282 | esac | |
13283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13284 | $as_echo "$ac_try_echo") >&5 | |
13285 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13286 | ac_status=$? | |
13287 | grep -v '^ *+' conftest.er1 >conftest.err | |
13288 | rm -f conftest.er1 | |
13289 | cat conftest.err >&5 | |
13290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13291 | (exit $ac_status); } >/dev/null && { | |
13292 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13293 | test ! -s conftest.err | |
13294 | }; then | |
13295 | ac_header_preproc=yes | |
13296 | else | |
13297 | $as_echo "$as_me: failed program was:" >&5 | |
13298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13299 | ||
13300 | ac_header_preproc=no | |
13301 | fi | |
13302 | ||
13303 | rm -f conftest.err conftest.$ac_ext | |
13304 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13305 | $as_echo "$ac_header_preproc" >&6; } | |
13306 | ||
13307 | # So? What about this header? | |
13308 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13309 | yes:no: ) | |
13310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13311 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13313 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13314 | ac_header_preproc=yes | |
13315 | ;; | |
13316 | no:yes:* ) | |
13317 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13318 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13319 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13320 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13321 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13322 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13323 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13324 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13325 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13326 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13327 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13328 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13329 | ||
13330 | ;; | |
13331 | esac | |
13332 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13333 | $as_echo_n "checking for $ac_header... " >&6; } | |
13334 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13335 | $as_echo_n "(cached) " >&6 | |
13336 | else | |
13337 | eval "$as_ac_Header=\$ac_header_preproc" | |
13338 | fi | |
13339 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13340 | $as_echo "$as_val"'` | |
13341 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13342 | $as_echo "$ac_res" >&6; } | |
13343 | ||
13344 | fi | |
13345 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13346 | $as_echo "$as_val"'` | |
13347 | if test "x$as_val" = x""yes; then | |
13348 | cat >>confdefs.h <<_ACEOF | |
13349 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13350 | _ACEOF | |
13351 | HAVE_CONFDB_H=yes | |
13352 | else | |
13353 | HAVE_CONFDB_H=no | |
13354 | fi | |
13355 | ||
13356 | done | |
13357 | ||
13358 | ||
13359 | if test x$HAVE_CONFDB != xyes && \ | |
13360 | test x$HAVE_CONFDB_H = xyes; then | |
13361 | check_lib_no_libs confdb confdb_initialize | |
13362 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13363 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13364 | CONFDB_LIBS="-lconfdb" | |
13365 | HAVE_CONFDB=yes | |
13366 | fi | |
13367 | ||
13368 | if test x$BUILDCOROSYNC = xyes && \ | |
13369 | test x$HAVE_CONFDB != xyes && | |
13370 | test x$CLVMD != xall; then | |
13371 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13372 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13373 | { (exit 1); exit 1; }; } | |
13374 | fi | |
13375 | fi | |
13376 | ||
13377 | if test x$CHECKCPG = xyes; then | |
13378 | ||
13379 | pkg_failed=no | |
13380 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13381 | $as_echo_n "checking for CPG... " >&6; } | |
13382 | ||
13383 | if test -n "$CPG_CFLAGS"; then | |
13384 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13385 | elif test -n "$PKG_CONFIG"; then | |
13386 | if test -n "$PKG_CONFIG" && \ | |
13387 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13388 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13389 | ac_status=$? | |
13390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13391 | (exit $ac_status); }; then | |
13392 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13393 | else | |
13394 | pkg_failed=yes | |
13395 | fi | |
13396 | else | |
13397 | pkg_failed=untried | |
13398 | fi | |
13399 | if test -n "$CPG_LIBS"; then | |
13400 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13401 | elif test -n "$PKG_CONFIG"; then | |
13402 | if test -n "$PKG_CONFIG" && \ | |
13403 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13404 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13405 | ac_status=$? | |
13406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13407 | (exit $ac_status); }; then | |
13408 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13409 | else | |
13410 | pkg_failed=yes | |
13411 | fi | |
13412 | else | |
13413 | pkg_failed=untried | |
13414 | fi | |
13415 | ||
13416 | ||
13417 | ||
13418 | if test $pkg_failed = yes; then | |
13419 | ||
13420 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13421 | _pkg_short_errors_supported=yes | |
13422 | else | |
13423 | _pkg_short_errors_supported=no | |
13424 | fi | |
13425 | if test $_pkg_short_errors_supported = yes; then | |
13426 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13427 | else | |
13428 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13429 | fi | |
13430 | # Put the nasty error message in config.log where it belongs | |
13431 | echo "$CPG_PKG_ERRORS" >&5 | |
13432 | ||
8c4e8a18 | 13433 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13434 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13435 | $bailout |
13436 | elif test $pkg_failed = untried; then | |
a946372e AK |
13437 | $bailout |
13438 | else | |
13439 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13440 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13441 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13442 | $as_echo "yes" >&6; } | |
13443 | HAVE_CPG=yes | |
13444 | fi | |
13445 | fi | |
13446 | ||
13447 | if test x$CHECKDLM = xyes; then | |
13448 | ||
13449 | pkg_failed=no | |
13450 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13451 | $as_echo_n "checking for DLM... " >&6; } | |
13452 | ||
13453 | if test -n "$DLM_CFLAGS"; then | |
13454 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13455 | elif test -n "$PKG_CONFIG"; then | |
13456 | if test -n "$PKG_CONFIG" && \ | |
13457 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13458 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13459 | ac_status=$? | |
13460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13461 | (exit $ac_status); }; then | |
13462 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13463 | else | |
13464 | pkg_failed=yes | |
13465 | fi | |
13466 | else | |
13467 | pkg_failed=untried | |
13468 | fi | |
13469 | if test -n "$DLM_LIBS"; then | |
13470 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13471 | elif test -n "$PKG_CONFIG"; then | |
13472 | if test -n "$PKG_CONFIG" && \ | |
13473 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13474 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13475 | ac_status=$? | |
13476 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13477 | (exit $ac_status); }; then | |
13478 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13479 | else | |
13480 | pkg_failed=yes | |
13481 | fi | |
13482 | else | |
13483 | pkg_failed=untried | |
13484 | fi | |
13485 | ||
13486 | ||
13487 | ||
13488 | if test $pkg_failed = yes; then | |
13489 | ||
13490 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13491 | _pkg_short_errors_supported=yes | |
13492 | else | |
13493 | _pkg_short_errors_supported=no | |
13494 | fi | |
13495 | if test $_pkg_short_errors_supported = yes; then | |
13496 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13497 | else | |
13498 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13499 | fi | |
13500 | # Put the nasty error message in config.log where it belongs | |
13501 | echo "$DLM_PKG_ERRORS" >&5 | |
13502 | ||
8c4e8a18 FDN |
13503 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13504 | $as_echo "no" >&6; } | |
13505 | NOTFOUND=0 | |
a946372e AK |
13506 | |
13507 | for ac_header in libdlm.h | |
13508 | do | |
13509 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13510 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13511 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13512 | $as_echo_n "checking for $ac_header... " >&6; } | |
13513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13514 | $as_echo_n "(cached) " >&6 | |
13515 | fi | |
13516 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13517 | $as_echo "$as_val"'` | |
13518 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13519 | $as_echo "$ac_res" >&6; } | |
13520 | else | |
13521 | # Is the header compilable? | |
13522 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13523 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13524 | cat >conftest.$ac_ext <<_ACEOF | |
13525 | /* confdefs.h. */ | |
13526 | _ACEOF | |
13527 | cat confdefs.h >>conftest.$ac_ext | |
13528 | cat >>conftest.$ac_ext <<_ACEOF | |
13529 | /* end confdefs.h. */ | |
13530 | $ac_includes_default | |
13531 | #include <$ac_header> | |
13532 | _ACEOF | |
13533 | rm -f conftest.$ac_objext | |
13534 | if { (ac_try="$ac_compile" | |
13535 | case "(($ac_try" in | |
13536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13537 | *) ac_try_echo=$ac_try;; | |
13538 | esac | |
13539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13540 | $as_echo "$ac_try_echo") >&5 | |
13541 | (eval "$ac_compile") 2>conftest.er1 | |
13542 | ac_status=$? | |
13543 | grep -v '^ *+' conftest.er1 >conftest.err | |
13544 | rm -f conftest.er1 | |
13545 | cat conftest.err >&5 | |
13546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13547 | (exit $ac_status); } && { | |
13548 | test -z "$ac_c_werror_flag" || | |
13549 | test ! -s conftest.err | |
13550 | } && test -s conftest.$ac_objext; then | |
13551 | ac_header_compiler=yes | |
13552 | else | |
13553 | $as_echo "$as_me: failed program was:" >&5 | |
13554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13555 | ||
13556 | ac_header_compiler=no | |
13557 | fi | |
13558 | ||
13559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13560 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13561 | $as_echo "$ac_header_compiler" >&6; } | |
13562 | ||
13563 | # Is the header present? | |
13564 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13565 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13566 | cat >conftest.$ac_ext <<_ACEOF | |
13567 | /* confdefs.h. */ | |
13568 | _ACEOF | |
13569 | cat confdefs.h >>conftest.$ac_ext | |
13570 | cat >>conftest.$ac_ext <<_ACEOF | |
13571 | /* end confdefs.h. */ | |
13572 | #include <$ac_header> | |
13573 | _ACEOF | |
13574 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13575 | case "(($ac_try" in | |
13576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13577 | *) ac_try_echo=$ac_try;; | |
13578 | esac | |
13579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13580 | $as_echo "$ac_try_echo") >&5 | |
13581 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13582 | ac_status=$? | |
13583 | grep -v '^ *+' conftest.er1 >conftest.err | |
13584 | rm -f conftest.er1 | |
13585 | cat conftest.err >&5 | |
13586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13587 | (exit $ac_status); } >/dev/null && { | |
13588 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13589 | test ! -s conftest.err | |
13590 | }; then | |
13591 | ac_header_preproc=yes | |
13592 | else | |
13593 | $as_echo "$as_me: failed program was:" >&5 | |
13594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13595 | ||
13596 | ac_header_preproc=no | |
13597 | fi | |
13598 | ||
13599 | rm -f conftest.err conftest.$ac_ext | |
13600 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13601 | $as_echo "$ac_header_preproc" >&6; } | |
13602 | ||
13603 | # So? What about this header? | |
13604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13605 | yes:no: ) | |
13606 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13607 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13608 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13609 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13610 | ac_header_preproc=yes | |
13611 | ;; | |
13612 | no:yes:* ) | |
13613 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13614 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13615 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13616 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13617 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13618 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13619 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13620 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13621 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13622 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13623 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13624 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13625 | ||
13626 | ;; | |
13627 | esac | |
13628 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13629 | $as_echo_n "checking for $ac_header... " >&6; } | |
13630 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13631 | $as_echo_n "(cached) " >&6 | |
13632 | else | |
13633 | eval "$as_ac_Header=\$ac_header_preproc" | |
13634 | fi | |
13635 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13636 | $as_echo "$as_val"'` | |
13637 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13638 | $as_echo "$ac_res" >&6; } | |
13639 | ||
13640 | fi | |
13641 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13642 | $as_echo "$as_val"'` | |
13643 | if test "x$as_val" = x""yes; then | |
13644 | cat >>confdefs.h <<_ACEOF | |
13645 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13646 | _ACEOF | |
13647 | ||
13648 | else | |
13649 | $bailout | |
13650 | fi | |
13651 | ||
13652 | done | |
13653 | ||
13654 | check_lib_no_libs dlm dlm_lock -lpthread | |
13655 | if test $NOTFOUND = 0; then | |
13656 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13657 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13658 | DLM_LIBS="-ldlm -lpthread" | |
13659 | HAVE_DLM=yes | |
13660 | fi | |
13661 | elif test $pkg_failed = untried; then | |
13662 | NOTFOUND=0 | |
13663 | ||
13664 | for ac_header in libdlm.h | |
13665 | do | |
13666 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13667 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13668 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13669 | $as_echo_n "checking for $ac_header... " >&6; } | |
13670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13671 | $as_echo_n "(cached) " >&6 | |
13672 | fi | |
13673 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13674 | $as_echo "$as_val"'` | |
13675 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13676 | $as_echo "$ac_res" >&6; } | |
13677 | else | |
13678 | # Is the header compilable? | |
13679 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13680 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13681 | cat >conftest.$ac_ext <<_ACEOF | |
13682 | /* confdefs.h. */ | |
13683 | _ACEOF | |
13684 | cat confdefs.h >>conftest.$ac_ext | |
13685 | cat >>conftest.$ac_ext <<_ACEOF | |
13686 | /* end confdefs.h. */ | |
13687 | $ac_includes_default | |
13688 | #include <$ac_header> | |
13689 | _ACEOF | |
13690 | rm -f conftest.$ac_objext | |
13691 | if { (ac_try="$ac_compile" | |
13692 | case "(($ac_try" in | |
13693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13694 | *) ac_try_echo=$ac_try;; | |
13695 | esac | |
13696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13697 | $as_echo "$ac_try_echo") >&5 | |
13698 | (eval "$ac_compile") 2>conftest.er1 | |
13699 | ac_status=$? | |
13700 | grep -v '^ *+' conftest.er1 >conftest.err | |
13701 | rm -f conftest.er1 | |
13702 | cat conftest.err >&5 | |
13703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13704 | (exit $ac_status); } && { | |
13705 | test -z "$ac_c_werror_flag" || | |
13706 | test ! -s conftest.err | |
13707 | } && test -s conftest.$ac_objext; then | |
13708 | ac_header_compiler=yes | |
13709 | else | |
13710 | $as_echo "$as_me: failed program was:" >&5 | |
13711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13712 | ||
13713 | ac_header_compiler=no | |
13714 | fi | |
13715 | ||
13716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13717 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13718 | $as_echo "$ac_header_compiler" >&6; } | |
13719 | ||
13720 | # Is the header present? | |
13721 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13722 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13723 | cat >conftest.$ac_ext <<_ACEOF | |
13724 | /* confdefs.h. */ | |
13725 | _ACEOF | |
13726 | cat confdefs.h >>conftest.$ac_ext | |
13727 | cat >>conftest.$ac_ext <<_ACEOF | |
13728 | /* end confdefs.h. */ | |
13729 | #include <$ac_header> | |
13730 | _ACEOF | |
13731 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13732 | case "(($ac_try" in | |
13733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13734 | *) ac_try_echo=$ac_try;; | |
13735 | esac | |
13736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13737 | $as_echo "$ac_try_echo") >&5 | |
13738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13739 | ac_status=$? | |
13740 | grep -v '^ *+' conftest.er1 >conftest.err | |
13741 | rm -f conftest.er1 | |
13742 | cat conftest.err >&5 | |
13743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13744 | (exit $ac_status); } >/dev/null && { | |
13745 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13746 | test ! -s conftest.err | |
13747 | }; then | |
13748 | ac_header_preproc=yes | |
13749 | else | |
13750 | $as_echo "$as_me: failed program was:" >&5 | |
13751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13752 | ||
13753 | ac_header_preproc=no | |
13754 | fi | |
13755 | ||
13756 | rm -f conftest.err conftest.$ac_ext | |
13757 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13758 | $as_echo "$ac_header_preproc" >&6; } | |
13759 | ||
13760 | # So? What about this header? | |
13761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13762 | yes:no: ) | |
13763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13764 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13766 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13767 | ac_header_preproc=yes | |
13768 | ;; | |
13769 | no:yes:* ) | |
13770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13771 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13773 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13775 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13777 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13780 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13781 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13782 | ||
13783 | ;; | |
13784 | esac | |
13785 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13786 | $as_echo_n "checking for $ac_header... " >&6; } | |
13787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13788 | $as_echo_n "(cached) " >&6 | |
13789 | else | |
13790 | eval "$as_ac_Header=\$ac_header_preproc" | |
13791 | fi | |
13792 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13793 | $as_echo "$as_val"'` | |
13794 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13795 | $as_echo "$ac_res" >&6; } | |
13796 | ||
13797 | fi | |
13798 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13799 | $as_echo "$as_val"'` | |
13800 | if test "x$as_val" = x""yes; then | |
13801 | cat >>confdefs.h <<_ACEOF | |
13802 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13803 | _ACEOF | |
13804 | ||
13805 | else | |
13806 | $bailout | |
13807 | fi | |
13808 | ||
13809 | done | |
13810 | ||
13811 | check_lib_no_libs dlm dlm_lock -lpthread | |
13812 | if test $NOTFOUND = 0; then | |
13813 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13814 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13815 | DLM_LIBS="-ldlm -lpthread" | |
13816 | HAVE_DLM=yes | |
13817 | fi | |
13818 | else | |
13819 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13820 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13821 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13822 | $as_echo "yes" >&6; } | |
13823 | HAVE_DLM=yes | |
13824 | fi | |
13825 | fi | |
13826 | ||
13827 | if test x$CLVMD = xall; then | |
8c222979 | 13828 | CLVMD=none |
c89bc357 MB |
13829 | CLVMD_CMANAGERS="" |
13830 | CLVMD_NEEDS_QDISKD=no | |
a946372e AK |
13831 | if test x$HAVE_CCS = xyes && \ |
13832 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13833 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13834 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13835 | CLVMD="$CLVMD,gulm" | |
c89bc357 MB |
13836 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" |
13837 | CLVMD_NEEDS_QDISKD=yes | |
a946372e AK |
13838 | fi |
13839 | if test x$HAVE_CMAN = xyes && \ | |
13840 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13841 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13842 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13843 | CLVMD="$CLVMD,cman" | |
c89bc357 MB |
13844 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" |
13845 | CLVMD_NEEDS_QDISKD=yes | |
a946372e AK |
13846 | fi |
13847 | if test x$HAVE_COROSYNC = xyes && \ | |
13848 | test x$HAVE_QUORUM = xyes && \ | |
13849 | test x$HAVE_CPG = xyes && \ | |
13850 | test x$HAVE_DLM = xyes && \ | |
13851 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13852 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13853 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13854 | CLVMD="$CLVMD,corosync" | |
c89bc357 | 13855 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" |
a946372e AK |
13856 | fi |
13857 | if test x$HAVE_COROSYNC = xyes && \ | |
13858 | test x$HAVE_CPG = xyes && \ | |
13859 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13860 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13861 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13862 | CLVMD="$CLVMD,openais" | |
c89bc357 MB |
13863 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" |
13864 | fi | |
13865 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
13866 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8c222979 FDN |
13867 | fi |
13868 | if test x$CLVMD = xnone; then | |
13869 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13870 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13871 | fi |
a946372e AK |
13872 | fi |
13873 | ||
8c4e8a18 FDN |
13874 | ################################################################################ |
13875 | if test "x$CLVMD" != xnone; then | |
13876 | ||
13877 | # Check whether --with-clvmd-pidfile was given. | |
13878 | if test "${with_clvmd_pidfile+set}" = set; then | |
13879 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
13880 | else | |
13881 | CLVMD_PIDFILE="/var/run/clvmd.pid" | |
13882 | fi | |
13883 | ||
13884 | ||
13885 | cat >>confdefs.h <<_ACEOF | |
13886 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
13887 | _ACEOF | |
13888 | ||
13889 | fi | |
13890 | ||
a946372e | 13891 | ################################################################################ |
66fd4529 AK |
13892 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13893 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13894 | # Check whether --enable-cmirrord was given. | |
13895 | if test "${enable_cmirrord+set}" = set; then | |
13896 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13897 | else | |
13898 | CMIRRORD=no | |
13899 | fi | |
13900 | ||
13901 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13902 | $as_echo "$CMIRRORD" >&6; } | |
13903 | ||
13904 | BUILD_CMIRRORD=$CMIRRORD | |
13905 | ||
13906 | ################################################################################ | |
66fd4529 AK |
13907 | if test "x$BUILD_CMIRRORD" = xyes; then |
13908 | ||
13909 | # Check whether --with-cmirrord-pidfile was given. | |
13910 | if test "${with_cmirrord_pidfile+set}" = set; then | |
71082be4 | 13911 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval |
66fd4529 | 13912 | else |
71082be4 | 13913 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
a946372e AK |
13914 | fi |
13915 | ||
71082be4 ZK |
13916 | |
13917 | cat >>confdefs.h <<_ACEOF | |
13918 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
13919 | _ACEOF | |
13920 | ||
66fd4529 | 13921 | fi |
a946372e | 13922 | |
66fd4529 AK |
13923 | ################################################################################ |
13924 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13925 | if test x$PKGCONFIG_INIT != x1; then |
13926 | pkg_config_init | |
13927 | fi | |
13928 | ||
13929 | pkg_failed=no | |
13930 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13931 | $as_echo_n "checking for SACKPT... " >&6; } | |
13932 | ||
13933 | if test -n "$SACKPT_CFLAGS"; then | |
13934 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13935 | elif test -n "$PKG_CONFIG"; then | |
13936 | if test -n "$PKG_CONFIG" && \ | |
13937 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13938 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13939 | ac_status=$? | |
13940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13941 | (exit $ac_status); }; then | |
13942 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13943 | else | |
13944 | pkg_failed=yes | |
13945 | fi | |
13946 | else | |
13947 | pkg_failed=untried | |
13948 | fi | |
13949 | if test -n "$SACKPT_LIBS"; then | |
13950 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13951 | elif test -n "$PKG_CONFIG"; then | |
13952 | if test -n "$PKG_CONFIG" && \ | |
13953 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13954 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13955 | ac_status=$? | |
13956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13957 | (exit $ac_status); }; then | |
13958 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13959 | else | |
13960 | pkg_failed=yes | |
13961 | fi | |
13962 | else | |
13963 | pkg_failed=untried | |
13964 | fi | |
13965 | ||
13966 | ||
13967 | ||
13968 | if test $pkg_failed = yes; then | |
13969 | ||
13970 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13971 | _pkg_short_errors_supported=yes | |
13972 | else | |
13973 | _pkg_short_errors_supported=no | |
13974 | fi | |
13975 | if test $_pkg_short_errors_supported = yes; then | |
13976 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13977 | else | |
13978 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13979 | fi | |
13980 | # Put the nasty error message in config.log where it belongs | |
13981 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13982 | ||
13983 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13984 | ||
13985 | $SACKPT_PKG_ERRORS | |
13986 | ||
13987 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13988 | installed software in a non-standard prefix. | |
13989 | ||
13990 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13991 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13992 | See the pkg-config man page for more details. |
13993 | " >&5 | |
90c80887 AK |
13994 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13995 | ||
13996 | $SACKPT_PKG_ERRORS | |
13997 | ||
13998 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13999 | installed software in a non-standard prefix. | |
14000 | ||
14001 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
14002 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14003 | See the pkg-config man page for more details. |
14004 | " >&2;} | |
90c80887 AK |
14005 | { (exit 1); exit 1; }; } |
14006 | elif test $pkg_failed = untried; then | |
14007 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
14008 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14009 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14010 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14011 | path to pkg-config. | |
14012 | ||
14013 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
14014 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
14015 | See the pkg-config man page for more details. | |
14016 | ||
14017 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14018 | See \`config.log' for more details." >&5 | |
14019 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14020 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14021 | path to pkg-config. | |
14022 | ||
14023 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
14024 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
14025 | See the pkg-config man page for more details. | |
14026 | ||
14027 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14028 | See \`config.log' for more details." >&2;} | |
14029 | { (exit 1); exit 1; }; }; } | |
14030 | else | |
14031 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
14032 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
14033 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14034 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14035 | : |
90c80887 AK |
14036 | fi |
14037 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
14038 | |
14039 | pkg_failed=no | |
14040 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
14041 | $as_echo_n "checking for CPG... " >&6; } | |
14042 | ||
14043 | if test -n "$CPG_CFLAGS"; then | |
14044 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
14045 | elif test -n "$PKG_CONFIG"; then | |
14046 | if test -n "$PKG_CONFIG" && \ | |
14047 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14048 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14049 | ac_status=$? | |
14050 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14051 | (exit $ac_status); }; then | |
14052 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
14053 | else | |
14054 | pkg_failed=yes | |
14055 | fi | |
14056 | else | |
14057 | pkg_failed=untried | |
14058 | fi | |
14059 | if test -n "$CPG_LIBS"; then | |
14060 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
14061 | elif test -n "$PKG_CONFIG"; then | |
14062 | if test -n "$PKG_CONFIG" && \ | |
14063 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14064 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14065 | ac_status=$? | |
14066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14067 | (exit $ac_status); }; then | |
14068 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
14069 | else | |
14070 | pkg_failed=yes | |
14071 | fi | |
14072 | else | |
14073 | pkg_failed=untried | |
14074 | fi | |
14075 | ||
14076 | ||
14077 | ||
14078 | if test $pkg_failed = yes; then | |
14079 | ||
14080 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14081 | _pkg_short_errors_supported=yes | |
14082 | else | |
14083 | _pkg_short_errors_supported=no | |
14084 | fi | |
14085 | if test $_pkg_short_errors_supported = yes; then | |
14086 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14087 | else | |
14088 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14089 | fi | |
14090 | # Put the nasty error message in config.log where it belongs | |
14091 | echo "$CPG_PKG_ERRORS" >&5 | |
14092 | ||
90c80887 AK |
14093 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14094 | ||
14095 | $CPG_PKG_ERRORS | |
14096 | ||
14097 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14098 | installed software in a non-standard prefix. | |
14099 | ||
14100 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14101 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14102 | See the pkg-config man page for more details. |
14103 | " >&5 | |
90c80887 AK |
14104 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14105 | ||
14106 | $CPG_PKG_ERRORS | |
14107 | ||
14108 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14109 | installed software in a non-standard prefix. | |
14110 | ||
14111 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14112 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14113 | See the pkg-config man page for more details. |
14114 | " >&2;} | |
90c80887 | 14115 | { (exit 1); exit 1; }; } |
a946372e | 14116 | elif test $pkg_failed = untried; then |
90c80887 AK |
14117 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14118 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14119 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14120 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14121 | path to pkg-config. | |
14122 | ||
14123 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14124 | and CPG_LIBS to avoid the need to call pkg-config. | |
14125 | See the pkg-config man page for more details. | |
14126 | ||
14127 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14128 | See \`config.log' for more details." >&5 | |
14129 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14130 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14131 | path to pkg-config. | |
14132 | ||
14133 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14134 | and CPG_LIBS to avoid the need to call pkg-config. | |
14135 | See the pkg-config man page for more details. | |
14136 | ||
14137 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14138 | See \`config.log' for more details." >&2;} | |
14139 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14140 | else |
14141 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14142 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14143 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14144 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14145 | : |
a946372e | 14146 | fi |
90c80887 | 14147 | fi |
a946372e AK |
14148 | fi |
14149 | ||
14150 | ################################################################################ | |
14151 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14152 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14153 | # Check whether --enable-debug was given. | |
14154 | if test "${enable_debug+set}" = set; then | |
14155 | enableval=$enable_debug; DEBUG=$enableval | |
14156 | else | |
14157 | DEBUG=no | |
14158 | fi | |
14159 | ||
14160 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14161 | $as_echo "$DEBUG" >&6; } | |
14162 | ||
14163 | if test x$DEBUG = xyes; then | |
14164 | COPTIMISE_FLAG= | |
14165 | else | |
14166 | CSCOPE_CMD= | |
14167 | fi | |
14168 | ||
14169 | ################################################################################ | |
14170 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14171 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14172 | ||
14173 | # Check whether --with-optimisation was given. | |
14174 | if test "${with_optimisation+set}" = set; then | |
71082be4 | 14175 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
a946372e AK |
14176 | fi |
14177 | ||
14178 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14179 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14180 | ||
14181 | ################################################################################ | |
14182 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14183 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14184 | # Check whether --enable-profiling was given. | |
14185 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14186 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14187 | else |
5556819a | 14188 | PROFILING=no |
fddafd51 ZK |
14189 | fi |
14190 | ||
ec6a6fbe AK |
14191 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14192 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14193 | |
14194 | if test "x$PROFILING" = xyes; then | |
14195 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14196 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14197 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14198 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14199 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14200 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14201 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14202 | else |
14203 | case $LCOV in | |
14204 | [\\/]* | ?:[\\/]*) | |
14205 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14206 | ;; | |
14207 | *) | |
14208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14209 | for as_dir in $PATH | |
14210 | do | |
14211 | IFS=$as_save_IFS | |
14212 | test -z "$as_dir" && as_dir=. | |
14213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14215 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14216 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14217 | break 2 |
14218 | fi | |
14219 | done | |
14220 | done | |
14221 | IFS=$as_save_IFS | |
14222 | ||
14223 | ;; | |
14224 | esac | |
14225 | fi | |
14226 | LCOV=$ac_cv_path_LCOV | |
14227 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14228 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14229 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14230 | else |
ec6a6fbe AK |
14231 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14232 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14233 | fi |
14234 | ||
14235 | ||
5556819a | 14236 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14237 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14238 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14239 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14240 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14241 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14242 | else |
14243 | case $GENHTML in | |
14244 | [\\/]* | ?:[\\/]*) | |
14245 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14246 | ;; | |
14247 | *) | |
14248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14249 | for as_dir in $PATH | |
14250 | do | |
14251 | IFS=$as_save_IFS | |
14252 | test -z "$as_dir" && as_dir=. | |
14253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14255 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14256 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14257 | break 2 |
14258 | fi | |
14259 | done | |
14260 | done | |
14261 | IFS=$as_save_IFS | |
14262 | ||
14263 | ;; | |
14264 | esac | |
14265 | fi | |
14266 | GENHTML=$ac_cv_path_GENHTML | |
14267 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14268 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14269 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14270 | else |
ec6a6fbe AK |
14271 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14272 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14273 | fi |
14274 | ||
14275 | ||
fd4728e1 | 14276 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14277 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14278 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14279 | { (exit 1); exit 1; }; } |
14280 | fi | |
fd4728e1 ZK |
14281 | # Extract the first word of "genpng", so it can be a program name with args. |
14282 | set dummy genpng; ac_word=$2 | |
14283 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14284 | $as_echo_n "checking for $ac_word... " >&6; } | |
14285 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14286 | $as_echo_n "(cached) " >&6 | |
14287 | else | |
14288 | case $GENPNG in | |
14289 | [\\/]* | ?:[\\/]*) | |
14290 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14291 | ;; | |
14292 | *) | |
14293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14294 | for as_dir in $PATH | |
14295 | do | |
14296 | IFS=$as_save_IFS | |
14297 | test -z "$as_dir" && as_dir=. | |
14298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14300 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14301 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14302 | break 2 | |
14303 | fi | |
14304 | done | |
14305 | done | |
14306 | IFS=$as_save_IFS | |
14307 | ||
14308 | ;; | |
14309 | esac | |
14310 | fi | |
14311 | GENPNG=$ac_cv_path_GENPNG | |
14312 | if test -n "$GENPNG"; then | |
14313 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14314 | $as_echo "$GENPNG" >&6; } | |
14315 | else | |
14316 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14317 | $as_echo "no" >&6; } | |
14318 | fi | |
14319 | ||
14320 | ||
14321 | if test -n "$GENPNG"; then | |
14322 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14323 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14324 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14325 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14326 | $as_echo "ok" >&6; } | |
14327 | GENHTML="$GENHTML --frames" | |
14328 | else | |
14329 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14330 | $as_echo "not supported" >&6; } | |
14331 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14332 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14333 | GENPNG= | |
14334 | fi | |
14335 | fi | |
5556819a | 14336 | fi |
d0191583 | 14337 | |
54b362f9 AK |
14338 | ################################################################################ |
14339 | { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5 | |
14340 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
14341 | # Check whether --enable-testing was given. | |
14342 | if test "${enable_testing+set}" = set; then | |
14343 | enableval=$enable_testing; TESTING=$enableval | |
14344 | else | |
14345 | TESTING=no | |
14346 | fi | |
14347 | ||
14348 | { $as_echo "$as_me:$LINENO: result: $TESTING" >&5 | |
14349 | $as_echo "$TESTING" >&6; } | |
14350 | ||
14351 | if test "$TESTING" = yes; then | |
14352 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
14353 | set dummy ruby1.9; ac_word=$2 | |
14354 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14355 | $as_echo_n "checking for $ac_word... " >&6; } | |
14356 | if test "${ac_cv_path_RUBY19+set}" = set; then | |
14357 | $as_echo_n "(cached) " >&6 | |
14358 | else | |
14359 | case $RUBY19 in | |
14360 | [\\/]* | ?:[\\/]*) | |
14361 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
14362 | ;; | |
14363 | *) | |
14364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14365 | for as_dir in $PATH | |
14366 | do | |
14367 | IFS=$as_save_IFS | |
14368 | test -z "$as_dir" && as_dir=. | |
14369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14371 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
14372 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14373 | break 2 | |
14374 | fi | |
14375 | done | |
14376 | done | |
14377 | IFS=$as_save_IFS | |
14378 | ||
14379 | ;; | |
14380 | esac | |
14381 | fi | |
14382 | RUBY19=$ac_cv_path_RUBY19 | |
14383 | if test -n "$RUBY19"; then | |
14384 | { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5 | |
14385 | $as_echo "$RUBY19" >&6; } | |
14386 | else | |
14387 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14388 | $as_echo "no" >&6; } | |
14389 | fi | |
14390 | ||
14391 | ||
14392 | # Extract the first word of "valgrind", so it can be a program name with args. | |
14393 | set dummy valgrind; ac_word=$2 | |
14394 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14395 | $as_echo_n "checking for $ac_word... " >&6; } | |
14396 | if test "${ac_cv_path_VALGRIND+set}" = set; then | |
14397 | $as_echo_n "(cached) " >&6 | |
14398 | else | |
14399 | case $VALGRIND in | |
14400 | [\\/]* | ?:[\\/]*) | |
14401 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. | |
14402 | ;; | |
14403 | *) | |
14404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14405 | for as_dir in $PATH | |
14406 | do | |
14407 | IFS=$as_save_IFS | |
14408 | test -z "$as_dir" && as_dir=. | |
14409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14411 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" | |
14412 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14413 | break 2 | |
14414 | fi | |
14415 | done | |
14416 | done | |
14417 | IFS=$as_save_IFS | |
14418 | ||
14419 | ;; | |
14420 | esac | |
14421 | fi | |
14422 | VALGRIND=$ac_cv_path_VALGRIND | |
14423 | if test -n "$VALGRIND"; then | |
14424 | { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5 | |
14425 | $as_echo "$VALGRIND" >&6; } | |
14426 | else | |
14427 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14428 | $as_echo "no" >&6; } | |
14429 | fi | |
14430 | ||
14431 | ||
14432 | if test -z "$RUBY19" -o -z "$VALGRIND"; then | |
14433 | { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5 | |
14434 | $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;} | |
14435 | { (exit 1); exit 1; }; } | |
14436 | fi | |
14437 | fi | |
14438 | ||
d1e8046f AK |
14439 | ################################################################################ |
14440 | { $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5 | |
14441 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
14442 | # Check whether --enable-valgrind_pool was given. | |
14443 | if test "${enable_valgrind_pool+set}" = set; then | |
14444 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
14445 | else | |
14446 | VALGRIND_POOL=no | |
14447 | fi | |
14448 | ||
14449 | { $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5 | |
14450 | $as_echo "$VALGRIND_POOL" >&6; } | |
14451 | ||
14452 | if test "$VALGRIND_POOL" = yes; then | |
14453 | ||
14454 | for ac_header in valgrind/memcheck.h | |
14455 | do | |
14456 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14458 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14459 | $as_echo_n "checking for $ac_header... " >&6; } | |
14460 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14461 | $as_echo_n "(cached) " >&6 | |
14462 | fi | |
14463 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14464 | $as_echo "$as_val"'` | |
14465 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14466 | $as_echo "$ac_res" >&6; } | |
14467 | else | |
14468 | # Is the header compilable? | |
14469 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14470 | $as_echo_n "checking $ac_header usability... " >&6; } | |
14471 | cat >conftest.$ac_ext <<_ACEOF | |
14472 | /* confdefs.h. */ | |
14473 | _ACEOF | |
14474 | cat confdefs.h >>conftest.$ac_ext | |
14475 | cat >>conftest.$ac_ext <<_ACEOF | |
14476 | /* end confdefs.h. */ | |
14477 | $ac_includes_default | |
14478 | #include <$ac_header> | |
14479 | _ACEOF | |
14480 | rm -f conftest.$ac_objext | |
14481 | if { (ac_try="$ac_compile" | |
14482 | case "(($ac_try" in | |
14483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14484 | *) ac_try_echo=$ac_try;; | |
14485 | esac | |
14486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14487 | $as_echo "$ac_try_echo") >&5 | |
14488 | (eval "$ac_compile") 2>conftest.er1 | |
14489 | ac_status=$? | |
14490 | grep -v '^ *+' conftest.er1 >conftest.err | |
14491 | rm -f conftest.er1 | |
14492 | cat conftest.err >&5 | |
14493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14494 | (exit $ac_status); } && { | |
14495 | test -z "$ac_c_werror_flag" || | |
14496 | test ! -s conftest.err | |
14497 | } && test -s conftest.$ac_objext; then | |
14498 | ac_header_compiler=yes | |
14499 | else | |
14500 | $as_echo "$as_me: failed program was:" >&5 | |
14501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14502 | ||
14503 | ac_header_compiler=no | |
14504 | fi | |
14505 | ||
14506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14507 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14508 | $as_echo "$ac_header_compiler" >&6; } | |
14509 | ||
14510 | # Is the header present? | |
14511 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14512 | $as_echo_n "checking $ac_header presence... " >&6; } | |
14513 | cat >conftest.$ac_ext <<_ACEOF | |
14514 | /* confdefs.h. */ | |
14515 | _ACEOF | |
14516 | cat confdefs.h >>conftest.$ac_ext | |
14517 | cat >>conftest.$ac_ext <<_ACEOF | |
14518 | /* end confdefs.h. */ | |
14519 | #include <$ac_header> | |
14520 | _ACEOF | |
14521 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14522 | case "(($ac_try" in | |
14523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14524 | *) ac_try_echo=$ac_try;; | |
14525 | esac | |
14526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14527 | $as_echo "$ac_try_echo") >&5 | |
14528 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14529 | ac_status=$? | |
14530 | grep -v '^ *+' conftest.er1 >conftest.err | |
14531 | rm -f conftest.er1 | |
14532 | cat conftest.err >&5 | |
14533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14534 | (exit $ac_status); } >/dev/null && { | |
14535 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14536 | test ! -s conftest.err | |
14537 | }; then | |
14538 | ac_header_preproc=yes | |
14539 | else | |
14540 | $as_echo "$as_me: failed program was:" >&5 | |
14541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14542 | ||
14543 | ac_header_preproc=no | |
14544 | fi | |
14545 | ||
14546 | rm -f conftest.err conftest.$ac_ext | |
14547 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14548 | $as_echo "$ac_header_preproc" >&6; } | |
14549 | ||
14550 | # So? What about this header? | |
14551 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14552 | yes:no: ) | |
14553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14554 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14556 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14557 | ac_header_preproc=yes | |
14558 | ;; | |
14559 | no:yes:* ) | |
14560 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14561 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14562 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14563 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14564 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14565 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14566 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14567 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14568 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14569 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14570 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14571 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14572 | ||
14573 | ;; | |
14574 | esac | |
14575 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14576 | $as_echo_n "checking for $ac_header... " >&6; } | |
14577 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14578 | $as_echo_n "(cached) " >&6 | |
14579 | else | |
14580 | eval "$as_ac_Header=\$ac_header_preproc" | |
14581 | fi | |
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; } | |
14586 | ||
14587 | fi | |
14588 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
14589 | $as_echo "$as_val"'` | |
14590 | if test "x$as_val" = x""yes; then | |
14591 | cat >>confdefs.h <<_ACEOF | |
14592 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14593 | _ACEOF | |
14594 | ||
14595 | else | |
14596 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
14597 | $as_echo "$as_me: error: bailing out" >&2;} | |
14598 | { (exit 1); exit 1; }; } | |
14599 | fi | |
14600 | ||
14601 | done | |
14602 | ||
14603 | ||
14604 | cat >>confdefs.h <<\_ACEOF | |
14605 | #define VALGRIND_POOL 1 | |
14606 | _ACEOF | |
14607 | ||
14608 | fi | |
14609 | ||
d0191583 | 14610 | ################################################################################ |
ec6a6fbe AK |
14611 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14612 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14613 | # Check whether --enable-devmapper was given. |
14614 | if test "${enable_devmapper+set}" = set; then | |
14615 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14616 | fi |
14617 | ||
ec6a6fbe AK |
14618 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14619 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14620 | |
14621 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14622 | |
14623 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14624 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14625 | _ACEOF |
14626 | ||
14627 | fi | |
14628 | ||
a5f46f6a AK |
14629 | ################################################################################ |
14630 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14631 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14632 | # Check whether --enable-udev_sync was given. | |
14633 | if test "${enable_udev_sync+set}" = set; then | |
14634 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14635 | else | |
14636 | UDEV_SYNC=no | |
14637 | fi | |
14638 | ||
14639 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14640 | $as_echo "$UDEV_SYNC" >&6; } | |
14641 | ||
90c80887 AK |
14642 | if test x$UDEV_SYNC = xyes; then |
14643 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14644 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14645 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14646 | $as_echo_n "(cached) " >&6 | |
14647 | else | |
14648 | ac_check_lib_save_LIBS=$LIBS | |
14649 | LIBS="-ludev $LIBS" | |
14650 | cat >conftest.$ac_ext <<_ACEOF | |
14651 | /* confdefs.h. */ | |
14652 | _ACEOF | |
14653 | cat confdefs.h >>conftest.$ac_ext | |
14654 | cat >>conftest.$ac_ext <<_ACEOF | |
14655 | /* end confdefs.h. */ | |
14656 | ||
14657 | /* Override any GCC internal prototype to avoid an error. | |
14658 | Use char because int might match the return type of a GCC | |
14659 | builtin and then its argument prototype would still apply. */ | |
14660 | #ifdef __cplusplus | |
14661 | extern "C" | |
14662 | #endif | |
14663 | char udev_queue_get_udev_is_active (); | |
14664 | int | |
14665 | main () | |
14666 | { | |
14667 | return udev_queue_get_udev_is_active (); | |
14668 | ; | |
14669 | return 0; | |
14670 | } | |
14671 | _ACEOF | |
14672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14673 | if { (ac_try="$ac_link" | |
14674 | case "(($ac_try" in | |
14675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14676 | *) ac_try_echo=$ac_try;; | |
14677 | esac | |
14678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14679 | $as_echo "$ac_try_echo") >&5 | |
14680 | (eval "$ac_link") 2>conftest.er1 | |
14681 | ac_status=$? | |
14682 | grep -v '^ *+' conftest.er1 >conftest.err | |
14683 | rm -f conftest.er1 | |
14684 | cat conftest.err >&5 | |
14685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14686 | (exit $ac_status); } && { | |
14687 | test -z "$ac_c_werror_flag" || | |
14688 | test ! -s conftest.err | |
14689 | } && test -s conftest$ac_exeext && { | |
14690 | test "$cross_compiling" = yes || | |
14691 | $as_test_x conftest$ac_exeext | |
14692 | }; then | |
14693 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14694 | else | |
14695 | $as_echo "$as_me: failed program was:" >&5 | |
14696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14697 | ||
14698 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14699 | fi | |
14700 | ||
14701 | rm -rf conftest.dSYM | |
14702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14703 | conftest$ac_exeext conftest.$ac_ext | |
14704 | LIBS=$ac_check_lib_save_LIBS | |
14705 | fi | |
14706 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14707 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14708 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14709 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14710 | else |
5161ecb9 PR |
14711 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14712 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14713 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14714 | fi |
14715 | ||
14716 | ||
90c80887 | 14717 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14718 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14719 | _ACEOF |
14720 | ||
90c80887 AK |
14721 | fi |
14722 | ||
5161ecb9 PR |
14723 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14724 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14725 | # Check whether --enable-udev_rules was given. | |
14726 | if test "${enable_udev_rules+set}" = set; then | |
14727 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14728 | else | |
14729 | UDEV_RULES=$UDEV_SYNC | |
14730 | fi | |
14731 | ||
14732 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14733 | $as_echo "$UDEV_RULES" >&6; } | |
14734 | ||
93bd259b AK |
14735 | ################################################################################ |
14736 | # Check whether --enable-compat was given. | |
14737 | if test "${enable_compat+set}" = set; then | |
14738 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14739 | else | |
14740 | DM_COMPAT=no | |
14741 | fi | |
14742 | ||
14743 | ||
95eaa683 AK |
14744 | ################################################################################ |
14745 | # Check whether --enable-units-compat was given. | |
14746 | if test "${enable_units_compat+set}" = set; then | |
14747 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14748 | else | |
14749 | UNITS_COMPAT=no | |
14750 | fi | |
14751 | ||
14752 | ||
14753 | if test x$UNITS_COMPAT = xyes; then | |
14754 | ||
14755 | cat >>confdefs.h <<\_ACEOF | |
14756 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14757 | _ACEOF | |
14758 | ||
14759 | fi | |
14760 | ||
93bd259b AK |
14761 | ################################################################################ |
14762 | # Check whether --enable-ioctl was given. | |
14763 | if test "${enable_ioctl+set}" = set; then | |
14764 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14765 | fi | |
14766 | ||
14767 | ||
d0191583 | 14768 | ################################################################################ |
ec6a6fbe AK |
14769 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14770 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14771 | # Check whether --enable-o_direct was given. |
14772 | if test "${enable_o_direct+set}" = set; then | |
14773 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14774 | fi |
ad6254c5 | 14775 | |
ec6a6fbe AK |
14776 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14777 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14778 | |
d0191583 | 14779 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14780 | |
d0191583 JM |
14781 | cat >>confdefs.h <<\_ACEOF |
14782 | #define O_DIRECT_SUPPORT 1 | |
14783 | _ACEOF | |
ad6254c5 | 14784 | |
d0191583 | 14785 | fi |
ad6254c5 | 14786 | |
572fefeb AK |
14787 | ################################################################################ |
14788 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14789 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14790 | # Check whether --enable-applib was given. | |
14791 | if test "${enable_applib+set}" = set; then | |
14792 | enableval=$enable_applib; APPLIB=$enableval | |
14793 | else | |
14794 | APPLIB=no | |
14795 | fi | |
14796 | ||
14797 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14798 | $as_echo "$APPLIB" >&6; } | |
14799 | ||
14800 | test x$APPLIB = xyes \ | |
14801 | && LVM2APP_LIB=-llvm2app \ | |
14802 | || LVM2APP_LIB= | |
14803 | ||
d0191583 | 14804 | ################################################################################ |
ec6a6fbe AK |
14805 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14806 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14807 | # Check whether --enable-cmdlib was given. |
14808 | if test "${enable_cmdlib+set}" = set; then | |
14809 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14810 | else |
d0191583 JM |
14811 | CMDLIB=no |
14812 | fi | |
8a2fc586 | 14813 | |
ec6a6fbe AK |
14814 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14815 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14816 | |
2a9a80c9 | 14817 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14818 | && LVM2CMD_LIB=-llvm2cmd \ |
14819 | || LVM2CMD_LIB= | |
14820 | ||
93bd259b AK |
14821 | ################################################################################ |
14822 | # Check whether --enable-pkgconfig was given. | |
14823 | if test "${enable_pkgconfig+set}" = set; then | |
14824 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14825 | else | |
14826 | PKGCONFIG=no | |
14827 | fi | |
14828 | ||
2a9a80c9 | 14829 | |
23b059e7 ZK |
14830 | ################################################################################ |
14831 | # Check whether --enable-write_install was given. | |
14832 | if test "${enable_write_install+set}" = set; then | |
14833 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14834 | else | |
14835 | WRITE_INSTALL=no | |
14836 | fi | |
14837 | ||
14838 | ||
d0191583 | 14839 | ################################################################################ |
ec6a6fbe AK |
14840 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14841 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14842 | # Check whether --enable-fsadm was given. |
14843 | if test "${enable_fsadm+set}" = set; then | |
14844 | enableval=$enable_fsadm; FSADM=$enableval | |
14845 | fi | |
8a2fc586 | 14846 | |
ec6a6fbe AK |
14847 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14848 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14849 | |
d0191583 | 14850 | ################################################################################ |
ec6a6fbe AK |
14851 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14852 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14853 | # Check whether --enable-dmeventd was given. |
14854 | if test "${enable_dmeventd+set}" = set; then | |
14855 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14856 | fi | |
ad6254c5 | 14857 | |
ec6a6fbe AK |
14858 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14859 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14860 | |
93bd259b AK |
14861 | BUILD_DMEVENTD=$DMEVENTD |
14862 | ||
2a9a80c9 PR |
14863 | if test x$DMEVENTD = xyes; then |
14864 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14865 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14866 | " >&5 |
ec6a6fbe | 14867 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14868 | " >&2;} |
d0191583 | 14869 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14870 | fi |
14871 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14872 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14873 | " >&5 |
ec6a6fbe | 14874 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14875 | " >&2;} |
14876 | { (exit 1); exit 1; }; } | |
14877 | fi | |
ad6254c5 | 14878 | fi |
7a197a62 | 14879 | |
d0191583 JM |
14880 | if test x$DMEVENTD = xyes; then |
14881 | ||
14882 | cat >>confdefs.h <<\_ACEOF | |
14883 | #define DMEVENTD 1 | |
ad6254c5 AK |
14884 | _ACEOF |
14885 | ||
ad6254c5 | 14886 | fi |
93bd259b AK |
14887 | |
14888 | ################################################################################ | |
14889 | ||
ec6a6fbe AK |
14890 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14891 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14892 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14893 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14894 | else |
14895 | ac_check_lib_save_LIBS=$LIBS | |
14896 | LIBS="-lc $LIBS" | |
14897 | cat >conftest.$ac_ext <<_ACEOF | |
14898 | /* confdefs.h. */ | |
14899 | _ACEOF | |
14900 | cat confdefs.h >>conftest.$ac_ext | |
14901 | cat >>conftest.$ac_ext <<_ACEOF | |
14902 | /* end confdefs.h. */ | |
14903 | ||
14904 | /* Override any GCC internal prototype to avoid an error. | |
14905 | Use char because int might match the return type of a GCC | |
14906 | builtin and then its argument prototype would still apply. */ | |
14907 | #ifdef __cplusplus | |
14908 | extern "C" | |
14909 | #endif | |
14910 | char getline (); | |
14911 | int | |
14912 | main () | |
14913 | { | |
14914 | return getline (); | |
14915 | ; | |
14916 | return 0; | |
14917 | } | |
14918 | _ACEOF | |
14919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14920 | if { (ac_try="$ac_link" | |
14921 | case "(($ac_try" in | |
14922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14923 | *) ac_try_echo=$ac_try;; | |
14924 | esac | |
ec6a6fbe AK |
14925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14926 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14927 | (eval "$ac_link") 2>conftest.er1 |
14928 | ac_status=$? | |
14929 | grep -v '^ *+' conftest.er1 >conftest.err | |
14930 | rm -f conftest.er1 | |
14931 | cat conftest.err >&5 | |
ec6a6fbe | 14932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14933 | (exit $ac_status); } && { |
14934 | test -z "$ac_c_werror_flag" || | |
14935 | test ! -s conftest.err | |
ec6a6fbe AK |
14936 | } && test -s conftest$ac_exeext && { |
14937 | test "$cross_compiling" = yes || | |
14938 | $as_test_x conftest$ac_exeext | |
14939 | }; then | |
93bd259b AK |
14940 | ac_cv_lib_c_getline=yes |
14941 | else | |
ec6a6fbe | 14942 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14943 | sed 's/^/| /' conftest.$ac_ext >&5 |
14944 | ||
14945 | ac_cv_lib_c_getline=no | |
14946 | fi | |
14947 | ||
ec6a6fbe | 14948 | rm -rf conftest.dSYM |
93bd259b AK |
14949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14950 | conftest$ac_exeext conftest.$ac_ext | |
14951 | LIBS=$ac_check_lib_save_LIBS | |
14952 | fi | |
ec6a6fbe AK |
14953 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14954 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14955 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14956 | |
14957 | cat >>confdefs.h <<\_ACEOF | |
14958 | #define HAVE_GETLINE 1 | |
14959 | _ACEOF | |
14960 | ||
14961 | fi | |
14962 | ||
14963 | ||
14964 | ################################################################################ | |
14965 | ||
ec6a6fbe AK |
14966 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14967 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14968 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14969 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14970 | else |
14971 | ac_check_lib_save_LIBS=$LIBS | |
14972 | LIBS="-lc $LIBS" | |
14973 | cat >conftest.$ac_ext <<_ACEOF | |
14974 | /* confdefs.h. */ | |
14975 | _ACEOF | |
14976 | cat confdefs.h >>conftest.$ac_ext | |
14977 | cat >>conftest.$ac_ext <<_ACEOF | |
14978 | /* end confdefs.h. */ | |
14979 | ||
14980 | /* Override any GCC internal prototype to avoid an error. | |
14981 | Use char because int might match the return type of a GCC | |
14982 | builtin and then its argument prototype would still apply. */ | |
14983 | #ifdef __cplusplus | |
14984 | extern "C" | |
14985 | #endif | |
14986 | char canonicalize_file_name (); | |
14987 | int | |
14988 | main () | |
14989 | { | |
14990 | return canonicalize_file_name (); | |
14991 | ; | |
14992 | return 0; | |
14993 | } | |
14994 | _ACEOF | |
14995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14996 | if { (ac_try="$ac_link" | |
14997 | case "(($ac_try" in | |
14998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14999 | *) ac_try_echo=$ac_try;; | |
15000 | esac | |
ec6a6fbe AK |
15001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15002 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
15003 | (eval "$ac_link") 2>conftest.er1 |
15004 | ac_status=$? | |
15005 | grep -v '^ *+' conftest.er1 >conftest.err | |
15006 | rm -f conftest.er1 | |
15007 | cat conftest.err >&5 | |
ec6a6fbe | 15008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
15009 | (exit $ac_status); } && { |
15010 | test -z "$ac_c_werror_flag" || | |
15011 | test ! -s conftest.err | |
ec6a6fbe AK |
15012 | } && test -s conftest$ac_exeext && { |
15013 | test "$cross_compiling" = yes || | |
15014 | $as_test_x conftest$ac_exeext | |
15015 | }; then | |
93bd259b AK |
15016 | ac_cv_lib_c_canonicalize_file_name=yes |
15017 | else | |
ec6a6fbe | 15018 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
15019 | sed 's/^/| /' conftest.$ac_ext >&5 |
15020 | ||
15021 | ac_cv_lib_c_canonicalize_file_name=no | |
15022 | fi | |
15023 | ||
ec6a6fbe | 15024 | rm -rf conftest.dSYM |
93bd259b AK |
15025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
15026 | conftest$ac_exeext conftest.$ac_ext | |
15027 | LIBS=$ac_check_lib_save_LIBS | |
15028 | fi | |
ec6a6fbe AK |
15029 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
15030 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
15031 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
15032 | |
15033 | cat >>confdefs.h <<\_ACEOF | |
15034 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
15035 | _ACEOF | |
15036 | ||
15037 | fi | |
15038 | ||
15039 | ||
d0191583 JM |
15040 | ################################################################################ |
15041 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
15042 | then exec_prefix=""; | |
15043 | fi; | |
ad6254c5 | 15044 | |
ad6254c5 | 15045 | ################################################################################ |
ec6a6fbe AK |
15046 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
15047 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 15048 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 15049 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15050 | else |
15051 | ac_check_lib_save_LIBS=$LIBS | |
15052 | LIBS="-ldl $LIBS" | |
15053 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15054 | /* confdefs.h. */ |
15055 | _ACEOF | |
15056 | cat confdefs.h >>conftest.$ac_ext | |
15057 | cat >>conftest.$ac_ext <<_ACEOF | |
15058 | /* end confdefs.h. */ | |
15059 | ||
7a197a62 AK |
15060 | /* Override any GCC internal prototype to avoid an error. |
15061 | Use char because int might match the return type of a GCC | |
15062 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15063 | #ifdef __cplusplus |
15064 | extern "C" | |
15065 | #endif | |
ad6254c5 AK |
15066 | char dlopen (); |
15067 | int | |
15068 | main () | |
15069 | { | |
7a197a62 | 15070 | return dlopen (); |
ad6254c5 AK |
15071 | ; |
15072 | return 0; | |
15073 | } | |
15074 | _ACEOF | |
15075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15076 | if { (ac_try="$ac_link" |
15077 | case "(($ac_try" in | |
15078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15079 | *) ac_try_echo=$ac_try;; | |
15080 | esac | |
ec6a6fbe AK |
15081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15082 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15083 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15084 | ac_status=$? |
8a2fc586 AK |
15085 | grep -v '^ *+' conftest.er1 >conftest.err |
15086 | rm -f conftest.er1 | |
15087 | cat conftest.err >&5 | |
ec6a6fbe | 15088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15089 | (exit $ac_status); } && { |
15090 | test -z "$ac_c_werror_flag" || | |
15091 | test ! -s conftest.err | |
ec6a6fbe AK |
15092 | } && test -s conftest$ac_exeext && { |
15093 | test "$cross_compiling" = yes || | |
15094 | $as_test_x conftest$ac_exeext | |
15095 | }; then | |
ad6254c5 AK |
15096 | ac_cv_lib_dl_dlopen=yes |
15097 | else | |
ec6a6fbe | 15098 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15099 | sed 's/^/| /' conftest.$ac_ext >&5 |
15100 | ||
7a197a62 | 15101 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 15102 | fi |
7a197a62 | 15103 | |
ec6a6fbe | 15104 | rm -rf conftest.dSYM |
25fbec5b | 15105 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15106 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15107 | LIBS=$ac_check_lib_save_LIBS |
15108 | fi | |
ec6a6fbe AK |
15109 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
15110 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
15111 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 15112 | |
72b2cb61 AK |
15113 | |
15114 | cat >>confdefs.h <<\_ACEOF | |
15115 | #define HAVE_LIBDL 1 | |
15116 | _ACEOF | |
15117 | ||
19a2c6e0 ZK |
15118 | DL_LIBS="-ldl" |
15119 | HAVE_LIBDL=yes | |
ad6254c5 | 15120 | else |
19a2c6e0 ZK |
15121 | |
15122 | DL_LIBS= | |
ad6254c5 AK |
15123 | HAVE_LIBDL=no |
15124 | fi | |
15125 | ||
19a2c6e0 | 15126 | |
ad6254c5 AK |
15127 | ################################################################################ |
15128 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
15129 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
15130 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 15131 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 15132 | " >&5 |
ec6a6fbe | 15133 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
15134 | " >&2;} |
15135 | { (exit 1); exit 1; }; } | |
15136 | fi | |
15137 | ||
f30875db ZK |
15138 | ################################################################################ |
15139 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
15140 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
15141 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
15142 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
15143 | $as_echo_n "(cached) " >&6 | |
15144 | else | |
15145 | ac_check_lib_save_LIBS=$LIBS | |
15146 | LIBS="-lpthread $LIBS" | |
15147 | cat >conftest.$ac_ext <<_ACEOF | |
15148 | /* confdefs.h. */ | |
15149 | _ACEOF | |
15150 | cat confdefs.h >>conftest.$ac_ext | |
15151 | cat >>conftest.$ac_ext <<_ACEOF | |
15152 | /* end confdefs.h. */ | |
15153 | ||
15154 | /* Override any GCC internal prototype to avoid an error. | |
15155 | Use char because int might match the return type of a GCC | |
15156 | builtin and then its argument prototype would still apply. */ | |
15157 | #ifdef __cplusplus | |
15158 | extern "C" | |
15159 | #endif | |
15160 | char pthread_mutex_lock (); | |
15161 | int | |
15162 | main () | |
15163 | { | |
15164 | return pthread_mutex_lock (); | |
15165 | ; | |
15166 | return 0; | |
15167 | } | |
15168 | _ACEOF | |
15169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15170 | if { (ac_try="$ac_link" | |
15171 | case "(($ac_try" in | |
15172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15173 | *) ac_try_echo=$ac_try;; | |
15174 | esac | |
15175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15176 | $as_echo "$ac_try_echo") >&5 | |
15177 | (eval "$ac_link") 2>conftest.er1 | |
15178 | ac_status=$? | |
15179 | grep -v '^ *+' conftest.er1 >conftest.err | |
15180 | rm -f conftest.er1 | |
15181 | cat conftest.err >&5 | |
15182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15183 | (exit $ac_status); } && { | |
15184 | test -z "$ac_c_werror_flag" || | |
15185 | test ! -s conftest.err | |
15186 | } && test -s conftest$ac_exeext && { | |
15187 | test "$cross_compiling" = yes || | |
15188 | $as_test_x conftest$ac_exeext | |
15189 | }; then | |
15190 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
15191 | else | |
15192 | $as_echo "$as_me: failed program was:" >&5 | |
15193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15194 | ||
15195 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
15196 | fi | |
15197 | ||
15198 | rm -rf conftest.dSYM | |
15199 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15200 | conftest$ac_exeext conftest.$ac_ext | |
15201 | LIBS=$ac_check_lib_save_LIBS | |
15202 | fi | |
15203 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
15204 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
15205 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
15206 | PTHREAD_LIBS="-lpthread" | |
15207 | else | |
15208 | hard_bailout | |
15209 | fi | |
15210 | ||
15211 | fi | |
15212 | ||
d0191583 | 15213 | ################################################################################ |
ec6a6fbe AK |
15214 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
15215 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
15216 | # Check whether --enable-selinux was given. |
15217 | if test "${enable_selinux+set}" = set; then | |
15218 | enableval=$enable_selinux; SELINUX=$enableval | |
15219 | fi | |
15220 | ||
ec6a6fbe AK |
15221 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
15222 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 15223 | |
ad6254c5 AK |
15224 | ################################################################################ |
15225 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
15226 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
15227 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 15228 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 15229 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
15230 | else |
15231 | ac_check_lib_save_LIBS=$LIBS | |
15232 | LIBS="-lsepol $LIBS" | |
15233 | cat >conftest.$ac_ext <<_ACEOF | |
15234 | /* confdefs.h. */ | |
15235 | _ACEOF | |
15236 | cat confdefs.h >>conftest.$ac_ext | |
15237 | cat >>conftest.$ac_ext <<_ACEOF | |
15238 | /* end confdefs.h. */ | |
15239 | ||
7a197a62 AK |
15240 | /* Override any GCC internal prototype to avoid an error. |
15241 | Use char because int might match the return type of a GCC | |
15242 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
15243 | #ifdef __cplusplus |
15244 | extern "C" | |
15245 | #endif | |
8a2fc586 AK |
15246 | char sepol_check_context (); |
15247 | int | |
15248 | main () | |
15249 | { | |
7a197a62 | 15250 | return sepol_check_context (); |
8a2fc586 AK |
15251 | ; |
15252 | return 0; | |
15253 | } | |
15254 | _ACEOF | |
15255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15256 | if { (ac_try="$ac_link" |
15257 | case "(($ac_try" in | |
15258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15259 | *) ac_try_echo=$ac_try;; | |
15260 | esac | |
ec6a6fbe AK |
15261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15262 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15263 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
15264 | ac_status=$? |
15265 | grep -v '^ *+' conftest.er1 >conftest.err | |
15266 | rm -f conftest.er1 | |
15267 | cat conftest.err >&5 | |
ec6a6fbe | 15268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15269 | (exit $ac_status); } && { |
15270 | test -z "$ac_c_werror_flag" || | |
15271 | test ! -s conftest.err | |
ec6a6fbe AK |
15272 | } && test -s conftest$ac_exeext && { |
15273 | test "$cross_compiling" = yes || | |
15274 | $as_test_x conftest$ac_exeext | |
15275 | }; then | |
8a2fc586 AK |
15276 | ac_cv_lib_sepol_sepol_check_context=yes |
15277 | else | |
ec6a6fbe | 15278 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
15279 | sed 's/^/| /' conftest.$ac_ext >&5 |
15280 | ||
7a197a62 | 15281 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 15282 | fi |
7a197a62 | 15283 | |
ec6a6fbe | 15284 | rm -rf conftest.dSYM |
25fbec5b | 15285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
15286 | conftest$ac_exeext conftest.$ac_ext |
15287 | LIBS=$ac_check_lib_save_LIBS | |
15288 | fi | |
ec6a6fbe AK |
15289 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
15290 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
15291 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 15292 | |
d0191583 JM |
15293 | |
15294 | cat >>confdefs.h <<\_ACEOF | |
15295 | #define HAVE_SEPOL 1 | |
15296 | _ACEOF | |
15297 | ||
f8f6ec92 ZK |
15298 | SELINUX_LIBS="-lsepol" |
15299 | fi | |
15300 | ||
8a2fc586 | 15301 | |
ec6a6fbe AK |
15302 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
15303 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 15304 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 15305 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15306 | else |
15307 | ac_check_lib_save_LIBS=$LIBS | |
15308 | LIBS="-lselinux $LIBS" | |
15309 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15310 | /* confdefs.h. */ |
15311 | _ACEOF | |
15312 | cat confdefs.h >>conftest.$ac_ext | |
15313 | cat >>conftest.$ac_ext <<_ACEOF | |
15314 | /* end confdefs.h. */ | |
15315 | ||
7a197a62 AK |
15316 | /* Override any GCC internal prototype to avoid an error. |
15317 | Use char because int might match the return type of a GCC | |
15318 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15319 | #ifdef __cplusplus |
15320 | extern "C" | |
15321 | #endif | |
ad6254c5 AK |
15322 | char is_selinux_enabled (); |
15323 | int | |
15324 | main () | |
15325 | { | |
7a197a62 | 15326 | return is_selinux_enabled (); |
ad6254c5 AK |
15327 | ; |
15328 | return 0; | |
15329 | } | |
15330 | _ACEOF | |
15331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15332 | if { (ac_try="$ac_link" |
15333 | case "(($ac_try" in | |
15334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15335 | *) ac_try_echo=$ac_try;; | |
15336 | esac | |
ec6a6fbe AK |
15337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15338 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15339 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15340 | ac_status=$? |
8a2fc586 AK |
15341 | grep -v '^ *+' conftest.er1 >conftest.err |
15342 | rm -f conftest.er1 | |
15343 | cat conftest.err >&5 | |
ec6a6fbe | 15344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15345 | (exit $ac_status); } && { |
15346 | test -z "$ac_c_werror_flag" || | |
15347 | test ! -s conftest.err | |
ec6a6fbe AK |
15348 | } && test -s conftest$ac_exeext && { |
15349 | test "$cross_compiling" = yes || | |
15350 | $as_test_x conftest$ac_exeext | |
15351 | }; then | |
ad6254c5 AK |
15352 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15353 | else | |
ec6a6fbe | 15354 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15355 | sed 's/^/| /' conftest.$ac_ext >&5 |
15356 | ||
7a197a62 | 15357 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15358 | fi |
7a197a62 | 15359 | |
ec6a6fbe | 15360 | rm -rf conftest.dSYM |
25fbec5b | 15361 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15362 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15363 | LIBS=$ac_check_lib_save_LIBS |
15364 | fi | |
ec6a6fbe AK |
15365 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15366 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15367 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15368 | |
72b2cb61 | 15369 | |
f8f6ec92 ZK |
15370 | for ac_header in selinux/selinux.h |
15371 | do | |
15372 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15373 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15374 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15375 | $as_echo_n "checking for $ac_header... " >&6; } | |
15376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15377 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15378 | fi |
15379 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15380 | $as_echo "$as_val"'` | |
15381 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15382 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15383 | else |
f8f6ec92 ZK |
15384 | # Is the header compilable? |
15385 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15386 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
15387 | cat >conftest.$ac_ext <<_ACEOF |
15388 | /* confdefs.h. */ | |
15389 | _ACEOF | |
15390 | cat confdefs.h >>conftest.$ac_ext | |
15391 | cat >>conftest.$ac_ext <<_ACEOF | |
15392 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
15393 | $ac_includes_default |
15394 | #include <$ac_header> | |
66e941e8 | 15395 | _ACEOF |
f8f6ec92 ZK |
15396 | rm -f conftest.$ac_objext |
15397 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15398 | case "(($ac_try" in |
15399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15400 | *) ac_try_echo=$ac_try;; | |
15401 | esac | |
ec6a6fbe AK |
15402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15403 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15404 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15405 | ac_status=$? |
15406 | grep -v '^ *+' conftest.er1 >conftest.err | |
15407 | rm -f conftest.er1 | |
15408 | cat conftest.err >&5 | |
ec6a6fbe | 15409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15410 | (exit $ac_status); } && { |
15411 | test -z "$ac_c_werror_flag" || | |
15412 | test ! -s conftest.err | |
f8f6ec92 ZK |
15413 | } && test -s conftest.$ac_objext; then |
15414 | ac_header_compiler=yes | |
15415 | else | |
15416 | $as_echo "$as_me: failed program was:" >&5 | |
15417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15418 | ||
15419 | ac_header_compiler=no | |
15420 | fi | |
15421 | ||
15422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15423 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15424 | $as_echo "$ac_header_compiler" >&6; } | |
15425 | ||
15426 | # Is the header present? | |
15427 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15428 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15429 | cat >conftest.$ac_ext <<_ACEOF | |
15430 | /* confdefs.h. */ | |
15431 | _ACEOF | |
15432 | cat confdefs.h >>conftest.$ac_ext | |
15433 | cat >>conftest.$ac_ext <<_ACEOF | |
15434 | /* end confdefs.h. */ | |
15435 | #include <$ac_header> | |
15436 | _ACEOF | |
15437 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15438 | case "(($ac_try" in | |
15439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15440 | *) ac_try_echo=$ac_try;; | |
15441 | esac | |
15442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15443 | $as_echo "$ac_try_echo") >&5 | |
15444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15445 | ac_status=$? | |
15446 | grep -v '^ *+' conftest.er1 >conftest.err | |
15447 | rm -f conftest.er1 | |
15448 | cat conftest.err >&5 | |
15449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15450 | (exit $ac_status); } >/dev/null && { | |
15451 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15452 | test ! -s conftest.err | |
ec6a6fbe | 15453 | }; then |
f8f6ec92 | 15454 | ac_header_preproc=yes |
66e941e8 | 15455 | else |
ec6a6fbe | 15456 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15457 | sed 's/^/| /' conftest.$ac_ext >&5 |
15458 | ||
f8f6ec92 ZK |
15459 | ac_header_preproc=no |
15460 | fi | |
15461 | ||
15462 | rm -f conftest.err conftest.$ac_ext | |
15463 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15464 | $as_echo "$ac_header_preproc" >&6; } | |
15465 | ||
15466 | # So? What about this header? | |
15467 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15468 | yes:no: ) | |
15469 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15470 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15471 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15472 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15473 | ac_header_preproc=yes | |
15474 | ;; | |
15475 | no:yes:* ) | |
15476 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15477 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15478 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15479 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15481 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15482 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15483 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15484 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15485 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15486 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15487 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15488 | |
f8f6ec92 ZK |
15489 | ;; |
15490 | esac | |
15491 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15492 | $as_echo_n "checking for $ac_header... " >&6; } | |
15493 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15494 | $as_echo_n "(cached) " >&6 | |
15495 | else | |
15496 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15497 | fi |
f8f6ec92 ZK |
15498 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15499 | $as_echo "$as_val"'` | |
15500 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15501 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15502 | |
66e941e8 | 15503 | fi |
f8f6ec92 ZK |
15504 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15505 | $as_echo "$as_val"'` | |
15506 | if test "x$as_val" = x""yes; then | |
15507 | cat >>confdefs.h <<_ACEOF | |
15508 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15509 | _ACEOF | |
15510 | ||
66e941e8 | 15511 | else |
f8f6ec92 | 15512 | hard_bailout |
66e941e8 | 15513 | fi |
f8f6ec92 ZK |
15514 | |
15515 | done | |
15516 | ||
15517 | ||
15518 | cat >>confdefs.h <<\_ACEOF | |
15519 | #define HAVE_SELINUX 1 | |
15520 | _ACEOF | |
15521 | ||
15522 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15523 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15524 | HAVE_SELINUX=yes |
15525 | else | |
15526 | ||
15527 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15528 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15529 | SELINUX_LIBS= | |
f7f0854e | 15530 | SELINUX_PC= |
f8f6ec92 | 15531 | HAVE_SELINUX=no |
66e941e8 JM |
15532 | fi |
15533 | ||
ad6254c5 AK |
15534 | fi |
15535 | ||
8b1a3214 AK |
15536 | ################################################################################ |
15537 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15538 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15539 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15540 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15541 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15542 | else |
15543 | ac_check_lib_save_LIBS=$LIBS | |
15544 | LIBS="-lrt $LIBS" | |
15545 | cat >conftest.$ac_ext <<_ACEOF | |
15546 | /* confdefs.h. */ | |
15547 | _ACEOF | |
15548 | cat confdefs.h >>conftest.$ac_ext | |
15549 | cat >>conftest.$ac_ext <<_ACEOF | |
15550 | /* end confdefs.h. */ | |
15551 | ||
7a197a62 AK |
15552 | /* Override any GCC internal prototype to avoid an error. |
15553 | Use char because int might match the return type of a GCC | |
15554 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15555 | #ifdef __cplusplus |
15556 | extern "C" | |
15557 | #endif | |
8b1a3214 AK |
15558 | char clock_gettime (); |
15559 | int | |
15560 | main () | |
15561 | { | |
7a197a62 | 15562 | return clock_gettime (); |
8b1a3214 AK |
15563 | ; |
15564 | return 0; | |
15565 | } | |
15566 | _ACEOF | |
15567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15568 | if { (ac_try="$ac_link" |
15569 | case "(($ac_try" in | |
15570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15571 | *) ac_try_echo=$ac_try;; | |
15572 | esac | |
ec6a6fbe AK |
15573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15574 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15575 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15576 | ac_status=$? |
15577 | grep -v '^ *+' conftest.er1 >conftest.err | |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
ec6a6fbe | 15580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15581 | (exit $ac_status); } && { |
15582 | test -z "$ac_c_werror_flag" || | |
15583 | test ! -s conftest.err | |
ec6a6fbe AK |
15584 | } && test -s conftest$ac_exeext && { |
15585 | test "$cross_compiling" = yes || | |
15586 | $as_test_x conftest$ac_exeext | |
15587 | }; then | |
8b1a3214 AK |
15588 | ac_cv_lib_rt_clock_gettime=yes |
15589 | else | |
ec6a6fbe | 15590 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15591 | sed 's/^/| /' conftest.$ac_ext >&5 |
15592 | ||
7a197a62 | 15593 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15594 | fi |
7a197a62 | 15595 | |
ec6a6fbe | 15596 | rm -rf conftest.dSYM |
25fbec5b | 15597 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15598 | conftest$ac_exeext conftest.$ac_ext |
15599 | LIBS=$ac_check_lib_save_LIBS | |
15600 | fi | |
ec6a6fbe AK |
15601 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15602 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15603 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15604 | HAVE_REALTIME=yes |
15605 | else | |
15606 | HAVE_REALTIME=no | |
15607 | fi | |
15608 | ||
8b1a3214 AK |
15609 | |
15610 | if test x$HAVE_REALTIME = xyes; then | |
15611 | ||
15612 | cat >>confdefs.h <<\_ACEOF | |
15613 | #define HAVE_REALTIME 1 | |
15614 | _ACEOF | |
15615 | ||
15616 | LIBS="-lrt $LIBS" | |
15617 | else | |
ec6a6fbe AK |
15618 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15619 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15620 | fi |
15621 | fi | |
15622 | ||
ad6254c5 AK |
15623 | ################################################################################ |
15624 | ||
15625 | for ac_header in getopt.h | |
15626 | do | |
ec6a6fbe | 15627 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15628 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15629 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15630 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15631 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15632 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15633 | fi |
ec6a6fbe AK |
15634 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15635 | $as_echo "$as_val"'` | |
15636 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15637 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15638 | else |
15639 | # Is the header compilable? | |
ec6a6fbe AK |
15640 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15641 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15642 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15643 | /* confdefs.h. */ |
15644 | _ACEOF | |
15645 | cat confdefs.h >>conftest.$ac_ext | |
15646 | cat >>conftest.$ac_ext <<_ACEOF | |
15647 | /* end confdefs.h. */ | |
15648 | $ac_includes_default | |
15649 | #include <$ac_header> | |
15650 | _ACEOF | |
15651 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15652 | if { (ac_try="$ac_compile" |
15653 | case "(($ac_try" in | |
15654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15655 | *) ac_try_echo=$ac_try;; | |
15656 | esac | |
ec6a6fbe AK |
15657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15658 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15659 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15660 | ac_status=$? |
8a2fc586 AK |
15661 | grep -v '^ *+' conftest.er1 >conftest.err |
15662 | rm -f conftest.er1 | |
15663 | cat conftest.err >&5 | |
ec6a6fbe | 15664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15665 | (exit $ac_status); } && { |
15666 | test -z "$ac_c_werror_flag" || | |
15667 | test ! -s conftest.err | |
15668 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15669 | ac_header_compiler=yes |
15670 | else | |
ec6a6fbe | 15671 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15672 | sed 's/^/| /' conftest.$ac_ext >&5 |
15673 | ||
7a197a62 | 15674 | ac_header_compiler=no |
ad6254c5 | 15675 | fi |
7a197a62 AK |
15676 | |
15677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15678 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15679 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15680 | |
15681 | # Is the header present? | |
ec6a6fbe AK |
15682 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15683 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15684 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15685 | /* confdefs.h. */ |
15686 | _ACEOF | |
15687 | cat confdefs.h >>conftest.$ac_ext | |
15688 | cat >>conftest.$ac_ext <<_ACEOF | |
15689 | /* end confdefs.h. */ | |
15690 | #include <$ac_header> | |
15691 | _ACEOF | |
7a197a62 AK |
15692 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15693 | case "(($ac_try" in | |
15694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15695 | *) ac_try_echo=$ac_try;; | |
15696 | esac | |
ec6a6fbe AK |
15697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15698 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15700 | ac_status=$? |
15701 | grep -v '^ *+' conftest.er1 >conftest.err | |
15702 | rm -f conftest.er1 | |
15703 | cat conftest.err >&5 | |
ec6a6fbe | 15704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15705 | (exit $ac_status); } >/dev/null && { |
15706 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15707 | test ! -s conftest.err | |
15708 | }; then | |
ad6254c5 AK |
15709 | ac_header_preproc=yes |
15710 | else | |
ec6a6fbe | 15711 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15712 | sed 's/^/| /' conftest.$ac_ext >&5 |
15713 | ||
15714 | ac_header_preproc=no | |
15715 | fi | |
7a197a62 | 15716 | |
ad6254c5 | 15717 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15718 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15719 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15720 | |
15721 | # So? What about this header? | |
8a2fc586 AK |
15722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15723 | yes:no: ) | |
ec6a6fbe AK |
15724 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15725 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15726 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15727 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15728 | ac_header_preproc=yes |
ad6254c5 | 15729 | ;; |
8a2fc586 | 15730 | no:yes:* ) |
ec6a6fbe AK |
15731 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15732 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15733 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15734 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15736 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15737 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15738 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15739 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15740 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15742 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15743 | |
ad6254c5 AK |
15744 | ;; |
15745 | esac | |
ec6a6fbe AK |
15746 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15747 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15748 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15749 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15750 | else |
8a2fc586 | 15751 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15752 | fi |
ec6a6fbe AK |
15753 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15754 | $as_echo "$as_val"'` | |
15755 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15756 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15757 | |
15758 | fi | |
ec6a6fbe AK |
15759 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15760 | $as_echo "$as_val"'` | |
15761 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15762 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15763 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15764 | _ACEOF |
72b2cb61 AK |
15765 | |
15766 | cat >>confdefs.h <<\_ACEOF | |
15767 | #define HAVE_GETOPTLONG 1 | |
15768 | _ACEOF | |
15769 | ||
ad6254c5 AK |
15770 | fi |
15771 | ||
15772 | done | |
15773 | ||
15774 | ||
15775 | ################################################################################ | |
06e459df | 15776 | if test x$READLINE != xno; then |
539f4a77 ZK |
15777 | lvm_saved_libs=$LIBS |
15778 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15779 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15780 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15781 | $as_echo_n "(cached) " >&6 | |
15782 | else | |
15783 | ac_func_search_save_LIBS=$LIBS | |
15784 | cat >conftest.$ac_ext <<_ACEOF | |
15785 | /* confdefs.h. */ | |
15786 | _ACEOF | |
15787 | cat confdefs.h >>conftest.$ac_ext | |
15788 | cat >>conftest.$ac_ext <<_ACEOF | |
15789 | /* end confdefs.h. */ | |
bc1024f8 | 15790 | |
539f4a77 ZK |
15791 | /* Override any GCC internal prototype to avoid an error. |
15792 | Use char because int might match the return type of a GCC | |
15793 | builtin and then its argument prototype would still apply. */ | |
15794 | #ifdef __cplusplus | |
15795 | extern "C" | |
15796 | #endif | |
15797 | char tgetent (); | |
15798 | int | |
15799 | main () | |
15800 | { | |
15801 | return tgetent (); | |
15802 | ; | |
15803 | return 0; | |
15804 | } | |
15805 | _ACEOF | |
15806 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15807 | if test -z "$ac_lib"; then | |
15808 | ac_res="none required" | |
15809 | else | |
15810 | ac_res=-l$ac_lib | |
15811 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15812 | fi | |
15813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15814 | if { (ac_try="$ac_link" | |
15815 | case "(($ac_try" in | |
15816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15817 | *) ac_try_echo=$ac_try;; | |
15818 | esac | |
15819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15820 | $as_echo "$ac_try_echo") >&5 | |
15821 | (eval "$ac_link") 2>conftest.er1 | |
15822 | ac_status=$? | |
15823 | grep -v '^ *+' conftest.er1 >conftest.err | |
15824 | rm -f conftest.er1 | |
15825 | cat conftest.err >&5 | |
15826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15827 | (exit $ac_status); } && { | |
15828 | test -z "$ac_c_werror_flag" || | |
15829 | test ! -s conftest.err | |
15830 | } && test -s conftest$ac_exeext && { | |
15831 | test "$cross_compiling" = yes || | |
15832 | $as_test_x conftest$ac_exeext | |
15833 | }; then | |
15834 | ac_cv_search_tgetent=$ac_res | |
15835 | else | |
15836 | $as_echo "$as_me: failed program was:" >&5 | |
15837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15838 | ||
15839 | ||
15840 | fi | |
15841 | ||
15842 | rm -rf conftest.dSYM | |
15843 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15844 | conftest$ac_exeext | |
15845 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15846 | break | |
15847 | fi | |
15848 | done | |
15849 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15850 | : | |
15851 | else | |
15852 | ac_cv_search_tgetent=no | |
15853 | fi | |
15854 | rm conftest.$ac_ext | |
15855 | LIBS=$ac_func_search_save_LIBS | |
15856 | fi | |
15857 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15858 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15859 | ac_res=$ac_cv_search_tgetent | |
15860 | if test "$ac_res" != no; then | |
15861 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15862 | READLINE_LIBS=$ac_cv_search_tgetent | |
15863 | else | |
15864 | ||
15865 | if test "$READLINE" = yes; then | |
15866 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15867 | --enable-readline option (which is enabled by default). Either disable readline | |
15868 | support with --disable-readline or download and install termcap from: | |
15869 | ftp.gnu.org/gnu/termcap | |
15870 | Note: if you are using precompiled packages you will also need the development | |
15871 | package as well (which may be called termcap-devel or something similar). | |
15872 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15873 | not found either - but you could try installing that as well." >&5 | |
15874 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15875 | --enable-readline option (which is enabled by default). Either disable readline | |
15876 | support with --disable-readline or download and install termcap from: | |
15877 | ftp.gnu.org/gnu/termcap | |
15878 | Note: if you are using precompiled packages you will also need the development | |
15879 | package as well (which may be called termcap-devel or something similar). | |
15880 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15881 | not found either - but you could try installing that as well." >&2;} | |
15882 | { (exit 1); exit 1; }; } | |
15883 | fi | |
15884 | fi | |
15885 | ||
15886 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15887 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15888 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15889 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15890 | else |
15891 | ac_check_lib_save_LIBS=$LIBS | |
15892 | LIBS="-lreadline $LIBS" | |
15893 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15894 | /* confdefs.h. */ |
15895 | _ACEOF | |
15896 | cat confdefs.h >>conftest.$ac_ext | |
15897 | cat >>conftest.$ac_ext <<_ACEOF | |
15898 | /* end confdefs.h. */ | |
15899 | ||
7a197a62 AK |
15900 | /* Override any GCC internal prototype to avoid an error. |
15901 | Use char because int might match the return type of a GCC | |
15902 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15903 | #ifdef __cplusplus |
15904 | extern "C" | |
15905 | #endif | |
ad6254c5 AK |
15906 | char readline (); |
15907 | int | |
15908 | main () | |
15909 | { | |
7a197a62 | 15910 | return readline (); |
ad6254c5 AK |
15911 | ; |
15912 | return 0; | |
15913 | } | |
15914 | _ACEOF | |
15915 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15916 | if { (ac_try="$ac_link" |
15917 | case "(($ac_try" in | |
15918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15919 | *) ac_try_echo=$ac_try;; | |
15920 | esac | |
ec6a6fbe AK |
15921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15922 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15923 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15924 | ac_status=$? |
8a2fc586 AK |
15925 | grep -v '^ *+' conftest.er1 >conftest.err |
15926 | rm -f conftest.er1 | |
15927 | cat conftest.err >&5 | |
ec6a6fbe | 15928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15929 | (exit $ac_status); } && { |
15930 | test -z "$ac_c_werror_flag" || | |
15931 | test ! -s conftest.err | |
ec6a6fbe AK |
15932 | } && test -s conftest$ac_exeext && { |
15933 | test "$cross_compiling" = yes || | |
15934 | $as_test_x conftest$ac_exeext | |
15935 | }; then | |
ad6254c5 AK |
15936 | ac_cv_lib_readline_readline=yes |
15937 | else | |
ec6a6fbe | 15938 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15939 | sed 's/^/| /' conftest.$ac_ext >&5 |
15940 | ||
7a197a62 | 15941 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15942 | fi |
7a197a62 | 15943 | |
ec6a6fbe | 15944 | rm -rf conftest.dSYM |
25fbec5b | 15945 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15946 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15947 | LIBS=$ac_check_lib_save_LIBS |
15948 | fi | |
ec6a6fbe AK |
15949 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15950 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15951 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15952 | |
15953 | ||
15954 | cat >>confdefs.h <<\_ACEOF | |
15955 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15956 | _ACEOF |
15957 | ||
539f4a77 ZK |
15958 | LIBS=$lvm_saved_libs |
15959 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15960 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15961 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15962 | $as_echo_n "(cached) " >&6 | |
15963 | else | |
15964 | ac_check_lib_save_LIBS=$LIBS | |
15965 | LIBS="-lreadline $LIBS" | |
15966 | cat >conftest.$ac_ext <<_ACEOF | |
15967 | /* confdefs.h. */ | |
15968 | _ACEOF | |
15969 | cat confdefs.h >>conftest.$ac_ext | |
15970 | cat >>conftest.$ac_ext <<_ACEOF | |
15971 | /* end confdefs.h. */ | |
bc1024f8 | 15972 | |
539f4a77 ZK |
15973 | /* Override any GCC internal prototype to avoid an error. |
15974 | Use char because int might match the return type of a GCC | |
15975 | builtin and then its argument prototype would still apply. */ | |
15976 | #ifdef __cplusplus | |
15977 | extern "C" | |
15978 | #endif | |
15979 | char rl_line_buffer (); | |
15980 | int | |
15981 | main () | |
15982 | { | |
15983 | return rl_line_buffer (); | |
15984 | ; | |
15985 | return 0; | |
15986 | } | |
15987 | _ACEOF | |
15988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15989 | if { (ac_try="$ac_link" | |
15990 | case "(($ac_try" in | |
15991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15992 | *) ac_try_echo=$ac_try;; | |
15993 | esac | |
15994 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15995 | $as_echo "$ac_try_echo") >&5 | |
15996 | (eval "$ac_link") 2>conftest.er1 | |
15997 | ac_status=$? | |
15998 | grep -v '^ *+' conftest.er1 >conftest.err | |
15999 | rm -f conftest.er1 | |
16000 | cat conftest.err >&5 | |
16001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16002 | (exit $ac_status); } && { | |
16003 | test -z "$ac_c_werror_flag" || | |
16004 | test ! -s conftest.err | |
16005 | } && test -s conftest$ac_exeext && { | |
16006 | test "$cross_compiling" = yes || | |
16007 | $as_test_x conftest$ac_exeext | |
16008 | }; then | |
16009 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 16010 | else |
539f4a77 ZK |
16011 | $as_echo "$as_me: failed program was:" >&5 |
16012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16013 | ||
16014 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
16015 | fi |
16016 | ||
539f4a77 ZK |
16017 | rm -rf conftest.dSYM |
16018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16019 | conftest$ac_exeext conftest.$ac_ext | |
16020 | LIBS=$ac_check_lib_save_LIBS | |
16021 | fi | |
16022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
16023 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
16024 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
16025 | READLINE_LIBS="-lreadline" | |
16026 | else | |
16027 | ||
16028 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
16029 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
16030 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
16031 | ||
16032 | fi | |
16033 | ||
16034 | else | |
16035 | ||
16036 | READLINE_LIBS= | |
16037 | if test "$READLINE" = yes; then | |
16038 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
16039 | --enable-readline option (which is enabled by default). Either disable readline |
16040 | support with --disable-readline or download and install readline from: | |
16041 | ftp.gnu.org/gnu/readline | |
16042 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 16043 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 16044 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
16045 | --enable-readline option (which is enabled by default). Either disable readline |
16046 | support with --disable-readline or download and install readline from: | |
16047 | ftp.gnu.org/gnu/readline | |
16048 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 16049 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 16050 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
16051 | fi |
16052 | fi | |
16053 | ||
16054 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
16055 | |
16056 | for ac_func in rl_completion_matches | |
16057 | do | |
ec6a6fbe AK |
16058 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16059 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16060 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 16061 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16062 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
16063 | else |
16064 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16065 | /* confdefs.h. */ |
16066 | _ACEOF | |
16067 | cat confdefs.h >>conftest.$ac_ext | |
16068 | cat >>conftest.$ac_ext <<_ACEOF | |
16069 | /* end confdefs.h. */ | |
bc1024f8 | 16070 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 16071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 16072 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 16073 | |
ad6254c5 | 16074 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 16075 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
16076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
16077 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16078 | |
ad6254c5 AK |
16079 | #ifdef __STDC__ |
16080 | # include <limits.h> | |
16081 | #else | |
16082 | # include <assert.h> | |
16083 | #endif | |
8a2fc586 | 16084 | |
bc1024f8 | 16085 | #undef $ac_func |
8a2fc586 | 16086 | |
7a197a62 AK |
16087 | /* Override any GCC internal prototype to avoid an error. |
16088 | Use char because int might match the return type of a GCC | |
16089 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16090 | #ifdef __cplusplus |
16091 | extern "C" | |
ad6254c5 | 16092 | #endif |
bc1024f8 | 16093 | char $ac_func (); |
ad6254c5 AK |
16094 | /* The GNU C library defines this for functions which it implements |
16095 | to always fail with ENOSYS. Some functions are actually named | |
16096 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 16097 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 16098 | choke me |
ad6254c5 AK |
16099 | #endif |
16100 | ||
16101 | int | |
16102 | main () | |
16103 | { | |
bc1024f8 | 16104 | return $ac_func (); |
ad6254c5 AK |
16105 | ; |
16106 | return 0; | |
16107 | } | |
16108 | _ACEOF | |
16109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16110 | if { (ac_try="$ac_link" |
16111 | case "(($ac_try" in | |
16112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16113 | *) ac_try_echo=$ac_try;; | |
16114 | esac | |
ec6a6fbe AK |
16115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16116 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16117 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16118 | ac_status=$? |
8a2fc586 AK |
16119 | grep -v '^ *+' conftest.er1 >conftest.err |
16120 | rm -f conftest.er1 | |
16121 | cat conftest.err >&5 | |
ec6a6fbe | 16122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16123 | (exit $ac_status); } && { |
16124 | test -z "$ac_c_werror_flag" || | |
16125 | test ! -s conftest.err | |
ec6a6fbe AK |
16126 | } && test -s conftest$ac_exeext && { |
16127 | test "$cross_compiling" = yes || | |
16128 | $as_test_x conftest$ac_exeext | |
16129 | }; then | |
bc1024f8 | 16130 | eval "$as_ac_var=yes" |
ad6254c5 | 16131 | else |
ec6a6fbe | 16132 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16133 | sed 's/^/| /' conftest.$ac_ext >&5 |
16134 | ||
bc1024f8 | 16135 | eval "$as_ac_var=no" |
ad6254c5 | 16136 | fi |
7a197a62 | 16137 | |
ec6a6fbe | 16138 | rm -rf conftest.dSYM |
25fbec5b | 16139 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16140 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 16141 | fi |
ec6a6fbe AK |
16142 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16143 | $as_echo "$as_val"'` | |
16144 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16145 | $as_echo "$ac_res" >&6; } | |
16146 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16147 | $as_echo "$as_val"'` | |
16148 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 16149 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16150 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
16151 | _ACEOF |
16152 | ||
16153 | fi | |
bc1024f8 | 16154 | done |
ad6254c5 | 16155 | |
539f4a77 | 16156 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
16157 | fi |
16158 | ||
16159 | ################################################################################ | |
ec6a6fbe AK |
16160 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
16161 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 16162 | # Check whether --enable-nls was given. |
ad6254c5 | 16163 | if test "${enable_nls+set}" = set; then |
7a197a62 | 16164 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
16165 | else |
16166 | INTL=no | |
7a197a62 AK |
16167 | fi |
16168 | ||
ec6a6fbe AK |
16169 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
16170 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
16171 | |
16172 | if test x$INTL = xyes; then | |
93bd259b | 16173 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
16174 | INTL_PACKAGE="lvm2" |
16175 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
16176 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
16177 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
16178 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 16179 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 16180 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
16181 | else |
16182 | case $MSGFMT in | |
16183 | [\\/]* | ?:[\\/]*) | |
16184 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
16185 | ;; | |
16186 | *) | |
16187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16188 | for as_dir in $PATH | |
16189 | do | |
16190 | IFS=$as_save_IFS | |
16191 | test -z "$as_dir" && as_dir=. | |
16192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 16193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 16194 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 16195 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
16196 | break 2 |
16197 | fi | |
16198 | done | |
16199 | done | |
7a197a62 | 16200 | IFS=$as_save_IFS |
ad6254c5 AK |
16201 | |
16202 | ;; | |
16203 | esac | |
16204 | fi | |
16205 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 16206 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
16207 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
16208 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 16209 | else |
ec6a6fbe AK |
16210 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16211 | $as_echo "no" >&6; } | |
ad6254c5 AK |
16212 | fi |
16213 | ||
7a197a62 | 16214 | |
ad6254c5 | 16215 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 16216 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 16217 | " >&5 |
ec6a6fbe | 16218 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
16219 | " >&2;} |
16220 | { (exit 1); exit 1; }; } | |
16221 | fi; | |
16222 | ||
16223 | ||
7a197a62 | 16224 | # Check whether --with-localedir was given. |
ad6254c5 | 16225 | if test "${with_localedir+set}" = set; then |
71082be4 | 16226 | withval=$with_localedir; LOCALEDIR=$withval |
ad6254c5 | 16227 | else |
71082be4 | 16228 | LOCALEDIR='${prefix}/share/locale' |
7a197a62 AK |
16229 | fi |
16230 | ||
ad6254c5 AK |
16231 | fi |
16232 | ||
16233 | ################################################################################ | |
16234 | ||
7a197a62 | 16235 | # Check whether --with-confdir was given. |
ad6254c5 | 16236 | if test "${with_confdir+set}" = set; then |
71082be4 | 16237 | withval=$with_confdir; CONFDIR=$withval |
ad6254c5 | 16238 | else |
71082be4 | 16239 | CONFDIR="/etc" |
7a197a62 AK |
16240 | fi |
16241 | ||
ad6254c5 AK |
16242 | |
16243 | ||
7a197a62 | 16244 | # Check whether --with-staticdir was given. |
ad6254c5 | 16245 | if test "${with_staticdir+set}" = set; then |
71082be4 | 16246 | withval=$with_staticdir; STATICDIR=$withval |
ad6254c5 | 16247 | else |
71082be4 | 16248 | STATICDIR='${exec_prefix}/sbin' |
7a197a62 | 16249 | fi |
ad6254c5 | 16250 | |
33f732c5 | 16251 | |
7a197a62 | 16252 | |
68f2de6d AK |
16253 | # Check whether --with-usrlibdir was given. |
16254 | if test "${with_usrlibdir+set}" = set; then | |
71082be4 | 16255 | withval=$with_usrlibdir; usrlibdir=$withval |
68f2de6d | 16256 | else |
71082be4 | 16257 | usrlibdir='${prefix}/lib' |
68f2de6d AK |
16258 | fi |
16259 | ||
16260 | ||
16261 | ||
16262 | # Check whether --with-usrsbindir was given. | |
16263 | if test "${with_usrsbindir+set}" = set; then | |
71082be4 | 16264 | withval=$with_usrsbindir; usrsbindir=$withval |
68f2de6d | 16265 | else |
71082be4 | 16266 | usrsbindir='${prefix}/sbin' |
68f2de6d AK |
16267 | fi |
16268 | ||
16269 | ||
a5f46f6a AK |
16270 | ################################################################################ |
16271 | ||
16272 | # Check whether --with-udev_prefix was given. | |
16273 | if test "${with_udev_prefix+set}" = set; then | |
71082be4 | 16274 | withval=$with_udev_prefix; udev_prefix=$withval |
a5f46f6a | 16275 | else |
71082be4 | 16276 | udev_prefix='${exec_prefix}' |
a5f46f6a AK |
16277 | fi |
16278 | ||
16279 | ||
78ce7acc AK |
16280 | |
16281 | # Check whether --with-udevdir was given. | |
16282 | if test "${with_udevdir+set}" = set; then | |
71082be4 | 16283 | withval=$with_udevdir; udevdir=$withval |
78ce7acc | 16284 | else |
71082be4 | 16285 | udevdir='${udev_prefix}/lib/udev/rules.d' |
78ce7acc AK |
16286 | fi |
16287 | ||
a5f46f6a | 16288 | |
ad6254c5 AK |
16289 | ################################################################################ |
16290 | if test x$READLINE = xyes; then | |
16291 | ||
16292 | ||
16293 | for ac_header in readline/readline.h readline/history.h | |
16294 | do | |
ec6a6fbe | 16295 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16297 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16298 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16300 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16301 | fi |
ec6a6fbe AK |
16302 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16303 | $as_echo "$as_val"'` | |
16304 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16305 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16306 | else |
16307 | # Is the header compilable? | |
ec6a6fbe AK |
16308 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16309 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16310 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16311 | /* confdefs.h. */ |
16312 | _ACEOF | |
16313 | cat confdefs.h >>conftest.$ac_ext | |
16314 | cat >>conftest.$ac_ext <<_ACEOF | |
16315 | /* end confdefs.h. */ | |
16316 | $ac_includes_default | |
16317 | #include <$ac_header> | |
16318 | _ACEOF | |
16319 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16320 | if { (ac_try="$ac_compile" |
16321 | case "(($ac_try" in | |
16322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16323 | *) ac_try_echo=$ac_try;; | |
16324 | esac | |
ec6a6fbe AK |
16325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16326 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16327 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16328 | ac_status=$? |
8a2fc586 AK |
16329 | grep -v '^ *+' conftest.er1 >conftest.err |
16330 | rm -f conftest.er1 | |
16331 | cat conftest.err >&5 | |
ec6a6fbe | 16332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16333 | (exit $ac_status); } && { |
16334 | test -z "$ac_c_werror_flag" || | |
16335 | test ! -s conftest.err | |
16336 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16337 | ac_header_compiler=yes |
16338 | else | |
ec6a6fbe | 16339 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16340 | sed 's/^/| /' conftest.$ac_ext >&5 |
16341 | ||
7a197a62 | 16342 | ac_header_compiler=no |
ad6254c5 | 16343 | fi |
7a197a62 AK |
16344 | |
16345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16346 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16347 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16348 | |
16349 | # Is the header present? | |
ec6a6fbe AK |
16350 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16351 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16352 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16353 | /* confdefs.h. */ |
16354 | _ACEOF | |
16355 | cat confdefs.h >>conftest.$ac_ext | |
16356 | cat >>conftest.$ac_ext <<_ACEOF | |
16357 | /* end confdefs.h. */ | |
16358 | #include <$ac_header> | |
16359 | _ACEOF | |
7a197a62 AK |
16360 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16361 | case "(($ac_try" in | |
16362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16363 | *) ac_try_echo=$ac_try;; | |
16364 | esac | |
ec6a6fbe AK |
16365 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16366 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16367 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16368 | ac_status=$? |
16369 | grep -v '^ *+' conftest.er1 >conftest.err | |
16370 | rm -f conftest.er1 | |
16371 | cat conftest.err >&5 | |
ec6a6fbe | 16372 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16373 | (exit $ac_status); } >/dev/null && { |
16374 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16375 | test ! -s conftest.err | |
16376 | }; then | |
ad6254c5 AK |
16377 | ac_header_preproc=yes |
16378 | else | |
ec6a6fbe | 16379 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16380 | sed 's/^/| /' conftest.$ac_ext >&5 |
16381 | ||
16382 | ac_header_preproc=no | |
16383 | fi | |
7a197a62 | 16384 | |
ad6254c5 | 16385 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16386 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16387 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16388 | |
16389 | # So? What about this header? | |
8a2fc586 AK |
16390 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16391 | yes:no: ) | |
ec6a6fbe AK |
16392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16393 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16395 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16396 | ac_header_preproc=yes |
ad6254c5 | 16397 | ;; |
8a2fc586 | 16398 | no:yes:* ) |
ec6a6fbe AK |
16399 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16400 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16401 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16402 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16404 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16406 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16408 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16410 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16411 | |
ad6254c5 AK |
16412 | ;; |
16413 | esac | |
ec6a6fbe AK |
16414 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16415 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16416 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16417 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16418 | else |
8a2fc586 | 16419 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16420 | fi |
ec6a6fbe AK |
16421 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16422 | $as_echo "$as_val"'` | |
16423 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16424 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16425 | |
16426 | fi | |
ec6a6fbe AK |
16427 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16428 | $as_echo "$as_val"'` | |
16429 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16430 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16431 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16432 | _ACEOF |
16433 | ||
16434 | else | |
ec6a6fbe AK |
16435 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16436 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16437 | { (exit 1); exit 1; }; } |
16438 | fi | |
16439 | ||
16440 | done | |
16441 | ||
16442 | fi | |
16443 | ||
5c7fc7c4 | 16444 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16445 | |
16446 | ||
16447 | ||
16448 | ||
16449 | ||
16450 | ||
16451 | ||
16452 | ||
16453 | ||
16454 | ||
16455 | 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 | |
16456 | do | |
ec6a6fbe | 16457 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16459 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16460 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16461 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16462 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16463 | fi |
ec6a6fbe AK |
16464 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16465 | $as_echo "$as_val"'` | |
16466 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16467 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16468 | else |
16469 | # Is the header compilable? | |
ec6a6fbe AK |
16470 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16471 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16472 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16473 | /* confdefs.h. */ |
16474 | _ACEOF | |
16475 | cat confdefs.h >>conftest.$ac_ext | |
16476 | cat >>conftest.$ac_ext <<_ACEOF | |
16477 | /* end confdefs.h. */ | |
16478 | $ac_includes_default | |
16479 | #include <$ac_header> | |
16480 | _ACEOF | |
16481 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16482 | if { (ac_try="$ac_compile" |
16483 | case "(($ac_try" in | |
16484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16485 | *) ac_try_echo=$ac_try;; | |
16486 | esac | |
ec6a6fbe AK |
16487 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16488 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16489 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16490 | ac_status=$? |
8a2fc586 AK |
16491 | grep -v '^ *+' conftest.er1 >conftest.err |
16492 | rm -f conftest.er1 | |
16493 | cat conftest.err >&5 | |
ec6a6fbe | 16494 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16495 | (exit $ac_status); } && { |
16496 | test -z "$ac_c_werror_flag" || | |
16497 | test ! -s conftest.err | |
16498 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16499 | ac_header_compiler=yes |
16500 | else | |
ec6a6fbe | 16501 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16502 | sed 's/^/| /' conftest.$ac_ext >&5 |
16503 | ||
7a197a62 | 16504 | ac_header_compiler=no |
ad6254c5 | 16505 | fi |
7a197a62 AK |
16506 | |
16507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16508 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16509 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16510 | |
16511 | # Is the header present? | |
ec6a6fbe AK |
16512 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16513 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16514 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16515 | /* confdefs.h. */ |
16516 | _ACEOF | |
16517 | cat confdefs.h >>conftest.$ac_ext | |
16518 | cat >>conftest.$ac_ext <<_ACEOF | |
16519 | /* end confdefs.h. */ | |
16520 | #include <$ac_header> | |
16521 | _ACEOF | |
7a197a62 AK |
16522 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16523 | case "(($ac_try" in | |
16524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16525 | *) ac_try_echo=$ac_try;; | |
16526 | esac | |
ec6a6fbe AK |
16527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16528 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16529 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16530 | ac_status=$? |
16531 | grep -v '^ *+' conftest.er1 >conftest.err | |
16532 | rm -f conftest.er1 | |
16533 | cat conftest.err >&5 | |
ec6a6fbe | 16534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16535 | (exit $ac_status); } >/dev/null && { |
16536 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16537 | test ! -s conftest.err | |
16538 | }; then | |
ad6254c5 AK |
16539 | ac_header_preproc=yes |
16540 | else | |
ec6a6fbe | 16541 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16542 | sed 's/^/| /' conftest.$ac_ext >&5 |
16543 | ||
16544 | ac_header_preproc=no | |
16545 | fi | |
7a197a62 | 16546 | |
ad6254c5 | 16547 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16548 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16549 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16550 | |
16551 | # So? What about this header? | |
8a2fc586 AK |
16552 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16553 | yes:no: ) | |
ec6a6fbe AK |
16554 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16555 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16556 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16557 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16558 | ac_header_preproc=yes |
ad6254c5 | 16559 | ;; |
8a2fc586 | 16560 | no:yes:* ) |
ec6a6fbe AK |
16561 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16562 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16564 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16565 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16566 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16567 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16568 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16569 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16570 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16571 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16572 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16573 | |
ad6254c5 AK |
16574 | ;; |
16575 | esac | |
ec6a6fbe AK |
16576 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16577 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16579 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16580 | else |
8a2fc586 | 16581 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16582 | fi |
ec6a6fbe AK |
16583 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16584 | $as_echo "$as_val"'` | |
16585 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16586 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16587 | |
16588 | fi | |
ec6a6fbe AK |
16589 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16590 | $as_echo "$as_val"'` | |
16591 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16592 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16593 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16594 | _ACEOF |
16595 | ||
16596 | else | |
ec6a6fbe AK |
16597 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16598 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16599 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16600 | fi |
16601 | ||
ad6254c5 AK |
16602 | done |
16603 | ||
16604 | ||
795ca3e5 | 16605 | |
8106cdd5 | 16606 | |
ad6254c5 AK |
16607 | |
16608 | ||
16609 | for ac_func in dup2 getmntent memmove select socket | |
16610 | do | |
ec6a6fbe AK |
16611 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16612 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16613 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16614 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16615 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16616 | else |
ad6254c5 | 16617 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16618 | /* confdefs.h. */ |
16619 | _ACEOF | |
16620 | cat confdefs.h >>conftest.$ac_ext | |
16621 | cat >>conftest.$ac_ext <<_ACEOF | |
16622 | /* end confdefs.h. */ | |
8a2fc586 AK |
16623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16625 | #define $ac_func innocuous_$ac_func | |
16626 | ||
795ca3e5 | 16627 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16628 | which can conflict with char $ac_func (); below. |
16629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16630 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16631 | |
ad6254c5 AK |
16632 | #ifdef __STDC__ |
16633 | # include <limits.h> | |
16634 | #else | |
16635 | # include <assert.h> | |
16636 | #endif | |
8a2fc586 AK |
16637 | |
16638 | #undef $ac_func | |
16639 | ||
7a197a62 AK |
16640 | /* Override any GCC internal prototype to avoid an error. |
16641 | Use char because int might match the return type of a GCC | |
16642 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16643 | #ifdef __cplusplus |
16644 | extern "C" | |
ad6254c5 | 16645 | #endif |
ad6254c5 | 16646 | char $ac_func (); |
795ca3e5 AK |
16647 | /* The GNU C library defines this for functions which it implements |
16648 | to always fail with ENOSYS. Some functions are actually named | |
16649 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16650 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16651 | choke me |
795ca3e5 AK |
16652 | #endif |
16653 | ||
ad6254c5 AK |
16654 | int |
16655 | main () | |
16656 | { | |
7a197a62 | 16657 | return $ac_func (); |
ad6254c5 AK |
16658 | ; |
16659 | return 0; | |
16660 | } | |
16661 | _ACEOF | |
16662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16663 | if { (ac_try="$ac_link" |
16664 | case "(($ac_try" in | |
16665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16666 | *) ac_try_echo=$ac_try;; | |
16667 | esac | |
ec6a6fbe AK |
16668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16669 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16670 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16671 | ac_status=$? |
8a2fc586 AK |
16672 | grep -v '^ *+' conftest.er1 >conftest.err |
16673 | rm -f conftest.er1 | |
16674 | cat conftest.err >&5 | |
ec6a6fbe | 16675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16676 | (exit $ac_status); } && { |
16677 | test -z "$ac_c_werror_flag" || | |
16678 | test ! -s conftest.err | |
ec6a6fbe AK |
16679 | } && test -s conftest$ac_exeext && { |
16680 | test "$cross_compiling" = yes || | |
16681 | $as_test_x conftest$ac_exeext | |
16682 | }; then | |
ad6254c5 | 16683 | eval "$as_ac_var=yes" |
795ca3e5 | 16684 | else |
ec6a6fbe | 16685 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16686 | sed 's/^/| /' conftest.$ac_ext >&5 |
16687 | ||
7a197a62 | 16688 | eval "$as_ac_var=no" |
80992638 | 16689 | fi |
7a197a62 | 16690 | |
ec6a6fbe | 16691 | rm -rf conftest.dSYM |
25fbec5b | 16692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16693 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16694 | fi |
ec6a6fbe AK |
16695 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16696 | $as_echo "$as_val"'` | |
16697 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16698 | $as_echo "$ac_res" >&6; } | |
16699 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16700 | $as_echo "$as_val"'` | |
16701 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16702 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16703 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16704 | _ACEOF |
80992638 AK |
16705 | |
16706 | else | |
ec6a6fbe AK |
16707 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16708 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16709 | { (exit 1); exit 1; }; } |
8106cdd5 | 16710 | fi |
ad6254c5 | 16711 | done |
795ca3e5 | 16712 | |
25fbec5b AK |
16713 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16714 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16715 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16716 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16717 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16718 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16719 | else |
16720 | ac_func_search_save_LIBS=$LIBS | |
16721 | cat >conftest.$ac_ext <<_ACEOF | |
16722 | /* confdefs.h. */ | |
16723 | _ACEOF | |
16724 | cat confdefs.h >>conftest.$ac_ext | |
16725 | cat >>conftest.$ac_ext <<_ACEOF | |
16726 | /* end confdefs.h. */ | |
80992638 | 16727 | |
7a197a62 AK |
16728 | /* Override any GCC internal prototype to avoid an error. |
16729 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16730 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16731 | #ifdef __cplusplus |
16732 | extern "C" | |
16733 | #endif | |
25fbec5b | 16734 | char getmntent (); |
ad6254c5 AK |
16735 | int |
16736 | main () | |
16737 | { | |
25fbec5b | 16738 | return getmntent (); |
ad6254c5 AK |
16739 | ; |
16740 | return 0; | |
16741 | } | |
16742 | _ACEOF | |
25fbec5b AK |
16743 | for ac_lib in '' sun seq gen; do |
16744 | if test -z "$ac_lib"; then | |
16745 | ac_res="none required" | |
16746 | else | |
16747 | ac_res=-l$ac_lib | |
16748 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16749 | fi | |
16750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16751 | if { (ac_try="$ac_link" |
16752 | case "(($ac_try" in | |
16753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16754 | *) ac_try_echo=$ac_try;; | |
16755 | esac | |
ec6a6fbe AK |
16756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16757 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16758 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16759 | ac_status=$? |
8a2fc586 AK |
16760 | grep -v '^ *+' conftest.er1 >conftest.err |
16761 | rm -f conftest.er1 | |
16762 | cat conftest.err >&5 | |
ec6a6fbe | 16763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16764 | (exit $ac_status); } && { |
16765 | test -z "$ac_c_werror_flag" || | |
16766 | test ! -s conftest.err | |
ec6a6fbe AK |
16767 | } && test -s conftest$ac_exeext && { |
16768 | test "$cross_compiling" = yes || | |
16769 | $as_test_x conftest$ac_exeext | |
16770 | }; then | |
25fbec5b | 16771 | ac_cv_search_getmntent=$ac_res |
80992638 | 16772 | else |
ec6a6fbe | 16773 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16774 | sed 's/^/| /' conftest.$ac_ext >&5 |
16775 | ||
25fbec5b | 16776 | |
795ca3e5 AK |
16777 | fi |
16778 | ||
ec6a6fbe | 16779 | rm -rf conftest.dSYM |
25fbec5b AK |
16780 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16781 | conftest$ac_exeext | |
16782 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16783 | break | |
795ca3e5 | 16784 | fi |
25fbec5b AK |
16785 | done |
16786 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16787 | : | |
16788 | else | |
16789 | ac_cv_search_getmntent=no | |
16790 | fi | |
16791 | rm conftest.$ac_ext | |
16792 | LIBS=$ac_func_search_save_LIBS | |
16793 | fi | |
ec6a6fbe AK |
16794 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16795 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16796 | ac_res=$ac_cv_search_getmntent |
16797 | if test "$ac_res" != no; then | |
16798 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16799 | ac_cv_func_getmntent=yes | |
16800 | ||
16801 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16802 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16803 | _ACEOF |
795ca3e5 | 16804 | |
25fbec5b AK |
16805 | else |
16806 | ac_cv_func_getmntent=no | |
795ca3e5 | 16807 | fi |
795ca3e5 AK |
16808 | |
16809 | ||
ad6254c5 AK |
16810 | |
16811 | ||
16812 | for ac_header in sys/select.h sys/socket.h | |
16813 | do | |
ec6a6fbe | 16814 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16815 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16816 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16817 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16818 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16819 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16820 | fi |
ec6a6fbe AK |
16821 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16822 | $as_echo "$as_val"'` | |
16823 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16824 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16825 | else |
ad6254c5 | 16826 | # Is the header compilable? |
ec6a6fbe AK |
16827 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16828 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16829 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16830 | /* confdefs.h. */ |
16831 | _ACEOF | |
16832 | cat confdefs.h >>conftest.$ac_ext | |
16833 | cat >>conftest.$ac_ext <<_ACEOF | |
16834 | /* end confdefs.h. */ | |
16835 | $ac_includes_default | |
16836 | #include <$ac_header> | |
16837 | _ACEOF | |
16838 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16839 | if { (ac_try="$ac_compile" |
16840 | case "(($ac_try" in | |
16841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16842 | *) ac_try_echo=$ac_try;; | |
16843 | esac | |
ec6a6fbe AK |
16844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16845 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16846 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16847 | ac_status=$? |
8a2fc586 AK |
16848 | grep -v '^ *+' conftest.er1 >conftest.err |
16849 | rm -f conftest.er1 | |
16850 | cat conftest.err >&5 | |
ec6a6fbe | 16851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16852 | (exit $ac_status); } && { |
16853 | test -z "$ac_c_werror_flag" || | |
16854 | test ! -s conftest.err | |
16855 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16856 | ac_header_compiler=yes |
80992638 | 16857 | else |
ec6a6fbe | 16858 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16859 | sed 's/^/| /' conftest.$ac_ext >&5 |
16860 | ||
7a197a62 | 16861 | ac_header_compiler=no |
ad6254c5 | 16862 | fi |
7a197a62 AK |
16863 | |
16864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16865 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16866 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16867 | |
16868 | # Is the header present? | |
ec6a6fbe AK |
16869 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16870 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16871 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16872 | /* confdefs.h. */ |
16873 | _ACEOF | |
16874 | cat confdefs.h >>conftest.$ac_ext | |
16875 | cat >>conftest.$ac_ext <<_ACEOF | |
16876 | /* end confdefs.h. */ | |
16877 | #include <$ac_header> | |
16878 | _ACEOF | |
7a197a62 AK |
16879 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16880 | case "(($ac_try" in | |
16881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16882 | *) ac_try_echo=$ac_try;; | |
16883 | esac | |
ec6a6fbe AK |
16884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16885 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16886 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16887 | ac_status=$? |
16888 | grep -v '^ *+' conftest.er1 >conftest.err | |
16889 | rm -f conftest.er1 | |
16890 | cat conftest.err >&5 | |
ec6a6fbe | 16891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16892 | (exit $ac_status); } >/dev/null && { |
16893 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16894 | test ! -s conftest.err | |
16895 | }; then | |
ad6254c5 AK |
16896 | ac_header_preproc=yes |
16897 | else | |
ec6a6fbe | 16898 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16899 | sed 's/^/| /' conftest.$ac_ext >&5 |
16900 | ||
16901 | ac_header_preproc=no | |
16902 | fi | |
7a197a62 | 16903 | |
ad6254c5 | 16904 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16905 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16906 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16907 | |
16908 | # So? What about this header? | |
8a2fc586 AK |
16909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16910 | yes:no: ) | |
ec6a6fbe AK |
16911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16912 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16913 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16914 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16915 | ac_header_preproc=yes |
ad6254c5 | 16916 | ;; |
8a2fc586 | 16917 | no:yes:* ) |
ec6a6fbe AK |
16918 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16919 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16920 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16921 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16922 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16923 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16924 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16925 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16926 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16927 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16928 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16929 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16930 | |
ad6254c5 AK |
16931 | ;; |
16932 | esac | |
ec6a6fbe AK |
16933 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16934 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16935 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16936 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16937 | else |
8a2fc586 | 16938 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16939 | fi |
ec6a6fbe AK |
16940 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16941 | $as_echo "$as_val"'` | |
16942 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16943 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16944 | |
795ca3e5 | 16945 | fi |
ec6a6fbe AK |
16946 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16947 | $as_echo "$as_val"'` | |
16948 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16949 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16950 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16951 | _ACEOF |
16952 | ||
795ca3e5 AK |
16953 | fi |
16954 | ||
ad6254c5 AK |
16955 | done |
16956 | ||
ec6a6fbe AK |
16957 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16958 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16959 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16960 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16961 | else |
ad6254c5 | 16962 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16963 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16964 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
16965 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16966 | /* confdefs.h. */ |
16967 | _ACEOF | |
16968 | cat confdefs.h >>conftest.$ac_ext | |
16969 | cat >>conftest.$ac_ext <<_ACEOF | |
16970 | /* end confdefs.h. */ | |
16971 | $ac_includes_default | |
25fbec5b | 16972 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16973 | # include <sys/select.h> |
16974 | #endif | |
25fbec5b | 16975 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16976 | # include <sys/socket.h> |
16977 | #endif | |
16978 | ||
16979 | int | |
16980 | main () | |
16981 | { | |
16982 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16983 | $ac_arg234, $ac_arg234, $ac_arg234, |
16984 | $ac_arg5); | |
ad6254c5 AK |
16985 | ; |
16986 | return 0; | |
16987 | } | |
16988 | _ACEOF | |
16989 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16990 | if { (ac_try="$ac_compile" |
16991 | case "(($ac_try" in | |
16992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16993 | *) ac_try_echo=$ac_try;; | |
16994 | esac | |
ec6a6fbe AK |
16995 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16996 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16997 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16998 | ac_status=$? |
8a2fc586 AK |
16999 | grep -v '^ *+' conftest.er1 >conftest.err |
17000 | rm -f conftest.er1 | |
17001 | cat conftest.err >&5 | |
ec6a6fbe | 17002 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17003 | (exit $ac_status); } && { |
17004 | test -z "$ac_c_werror_flag" || | |
17005 | test ! -s conftest.err | |
17006 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17007 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
17008 | else | |
ec6a6fbe | 17009 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17010 | sed 's/^/| /' conftest.$ac_ext >&5 |
17011 | ||
7a197a62 | 17012 | |
ad6254c5 | 17013 | fi |
7a197a62 AK |
17014 | |
17015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
17016 | done |
17017 | done | |
17018 | done | |
17019 | # Provide a safe default value. | |
17020 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
17021 | ||
26e7f2e0 | 17022 | fi |
ec6a6fbe AK |
17023 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
17024 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
17025 | ac_save_IFS=$IFS; IFS=',' |
17026 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
17027 | IFS=$ac_save_IFS | |
17028 | shift | |
17029 | ||
17030 | cat >>confdefs.h <<_ACEOF | |
17031 | #define SELECT_TYPE_ARG1 $1 | |
17032 | _ACEOF | |
17033 | ||
17034 | ||
17035 | cat >>confdefs.h <<_ACEOF | |
17036 | #define SELECT_TYPE_ARG234 ($2) | |
17037 | _ACEOF | |
17038 | ||
17039 | ||
17040 | cat >>confdefs.h <<_ACEOF | |
17041 | #define SELECT_TYPE_ARG5 ($3) | |
17042 | _ACEOF | |
17043 | ||
80992638 | 17044 | rm -f conftest* |
80992638 | 17045 | |
8106cdd5 | 17046 | fi |
ad6254c5 | 17047 | |
ad6254c5 AK |
17048 | if test x$CLUSTER != xnone; then |
17049 | ||
17050 | ||
17051 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 17052 | do |
ec6a6fbe | 17053 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17055 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17056 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17057 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17058 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17059 | fi |
ec6a6fbe AK |
17060 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17061 | $as_echo "$as_val"'` | |
17062 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17063 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17064 | else |
17065 | # Is the header compilable? | |
ec6a6fbe AK |
17066 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17067 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17068 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17069 | /* confdefs.h. */ |
17070 | _ACEOF | |
17071 | cat confdefs.h >>conftest.$ac_ext | |
17072 | cat >>conftest.$ac_ext <<_ACEOF | |
17073 | /* end confdefs.h. */ | |
17074 | $ac_includes_default | |
17075 | #include <$ac_header> | |
17076 | _ACEOF | |
17077 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17078 | if { (ac_try="$ac_compile" |
17079 | case "(($ac_try" in | |
17080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17081 | *) ac_try_echo=$ac_try;; | |
17082 | esac | |
ec6a6fbe AK |
17083 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17084 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17085 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17086 | ac_status=$? |
8a2fc586 AK |
17087 | grep -v '^ *+' conftest.er1 >conftest.err |
17088 | rm -f conftest.er1 | |
17089 | cat conftest.err >&5 | |
ec6a6fbe | 17090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17091 | (exit $ac_status); } && { |
17092 | test -z "$ac_c_werror_flag" || | |
17093 | test ! -s conftest.err | |
17094 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17095 | ac_header_compiler=yes |
17096 | else | |
ec6a6fbe | 17097 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17098 | sed 's/^/| /' conftest.$ac_ext >&5 |
17099 | ||
7a197a62 | 17100 | ac_header_compiler=no |
ad6254c5 | 17101 | fi |
7a197a62 AK |
17102 | |
17103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17104 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17105 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17106 | |
17107 | # Is the header present? | |
ec6a6fbe AK |
17108 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17109 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17110 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17111 | /* confdefs.h. */ |
17112 | _ACEOF | |
17113 | cat confdefs.h >>conftest.$ac_ext | |
17114 | cat >>conftest.$ac_ext <<_ACEOF | |
17115 | /* end confdefs.h. */ | |
17116 | #include <$ac_header> | |
17117 | _ACEOF | |
7a197a62 AK |
17118 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17119 | case "(($ac_try" in | |
17120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17121 | *) ac_try_echo=$ac_try;; | |
17122 | esac | |
ec6a6fbe AK |
17123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17124 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17125 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17126 | ac_status=$? |
17127 | grep -v '^ *+' conftest.er1 >conftest.err | |
17128 | rm -f conftest.er1 | |
17129 | cat conftest.err >&5 | |
ec6a6fbe | 17130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17131 | (exit $ac_status); } >/dev/null && { |
17132 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17133 | test ! -s conftest.err | |
17134 | }; then | |
ad6254c5 AK |
17135 | ac_header_preproc=yes |
17136 | else | |
ec6a6fbe | 17137 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17138 | sed 's/^/| /' conftest.$ac_ext >&5 |
17139 | ||
17140 | ac_header_preproc=no | |
17141 | fi | |
7a197a62 | 17142 | |
ad6254c5 | 17143 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17144 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17145 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17146 | |
17147 | # So? What about this header? | |
8a2fc586 AK |
17148 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17149 | yes:no: ) | |
ec6a6fbe AK |
17150 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17151 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17152 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17153 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17154 | ac_header_preproc=yes |
ad6254c5 | 17155 | ;; |
8a2fc586 | 17156 | no:yes:* ) |
ec6a6fbe AK |
17157 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17158 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17159 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17160 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17161 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17162 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17163 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17164 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17165 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17166 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17167 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17168 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17169 | |
ad6254c5 AK |
17170 | ;; |
17171 | esac | |
ec6a6fbe AK |
17172 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17173 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17175 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17176 | else |
8a2fc586 | 17177 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 17178 | fi |
ec6a6fbe AK |
17179 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17180 | $as_echo "$as_val"'` | |
17181 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17182 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17183 | |
17184 | fi | |
ec6a6fbe AK |
17185 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17186 | $as_echo "$as_val"'` | |
17187 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17188 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17189 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
17190 | _ACEOF |
17191 | ||
80992638 | 17192 | else |
ec6a6fbe AK |
17193 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17194 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17195 | { (exit 1); exit 1; }; } |
b896caa1 | 17196 | fi |
ad6254c5 | 17197 | |
b896caa1 AK |
17198 | done |
17199 | ||
17200 | ||
ad6254c5 AK |
17201 | for ac_func in socket |
17202 | do | |
ec6a6fbe AK |
17203 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17204 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17205 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 17206 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17207 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 17208 | else |
ad6254c5 | 17209 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17210 | /* confdefs.h. */ |
17211 | _ACEOF | |
17212 | cat confdefs.h >>conftest.$ac_ext | |
17213 | cat >>conftest.$ac_ext <<_ACEOF | |
17214 | /* end confdefs.h. */ | |
8a2fc586 AK |
17215 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17216 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17217 | #define $ac_func innocuous_$ac_func | |
17218 | ||
ad6254c5 AK |
17219 | /* System header to define __stub macros and hopefully few prototypes, |
17220 | which can conflict with char $ac_func (); below. | |
17221 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17222 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 17223 | |
ad6254c5 AK |
17224 | #ifdef __STDC__ |
17225 | # include <limits.h> | |
17226 | #else | |
17227 | # include <assert.h> | |
17228 | #endif | |
8a2fc586 AK |
17229 | |
17230 | #undef $ac_func | |
17231 | ||
7a197a62 AK |
17232 | /* Override any GCC internal prototype to avoid an error. |
17233 | Use char because int might match the return type of a GCC | |
17234 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
17235 | #ifdef __cplusplus |
17236 | extern "C" | |
ad6254c5 | 17237 | #endif |
ad6254c5 AK |
17238 | char $ac_func (); |
17239 | /* The GNU C library defines this for functions which it implements | |
17240 | to always fail with ENOSYS. Some functions are actually named | |
17241 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 17242 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 17243 | choke me |
ad6254c5 AK |
17244 | #endif |
17245 | ||
17246 | int | |
17247 | main () | |
17248 | { | |
7a197a62 | 17249 | return $ac_func (); |
ad6254c5 AK |
17250 | ; |
17251 | return 0; | |
17252 | } | |
17253 | _ACEOF | |
17254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
17255 | if { (ac_try="$ac_link" |
17256 | case "(($ac_try" in | |
17257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17258 | *) ac_try_echo=$ac_try;; | |
17259 | esac | |
ec6a6fbe AK |
17260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17261 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17262 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 17263 | ac_status=$? |
8a2fc586 AK |
17264 | grep -v '^ *+' conftest.er1 >conftest.err |
17265 | rm -f conftest.er1 | |
17266 | cat conftest.err >&5 | |
ec6a6fbe | 17267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17268 | (exit $ac_status); } && { |
17269 | test -z "$ac_c_werror_flag" || | |
17270 | test ! -s conftest.err | |
ec6a6fbe AK |
17271 | } && test -s conftest$ac_exeext && { |
17272 | test "$cross_compiling" = yes || | |
17273 | $as_test_x conftest$ac_exeext | |
17274 | }; then | |
ad6254c5 AK |
17275 | eval "$as_ac_var=yes" |
17276 | else | |
ec6a6fbe | 17277 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17278 | sed 's/^/| /' conftest.$ac_ext >&5 |
17279 | ||
7a197a62 | 17280 | eval "$as_ac_var=no" |
ad6254c5 | 17281 | fi |
7a197a62 | 17282 | |
ec6a6fbe | 17283 | rm -rf conftest.dSYM |
25fbec5b | 17284 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 17285 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 17286 | fi |
ec6a6fbe AK |
17287 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17288 | $as_echo "$as_val"'` | |
17289 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17290 | $as_echo "$ac_res" >&6; } | |
17291 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17292 | $as_echo "$as_val"'` | |
17293 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17294 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17295 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
17296 | _ACEOF |
17297 | ||
17298 | else | |
ec6a6fbe AK |
17299 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17300 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
17301 | { (exit 1); exit 1; }; } |
17302 | fi | |
17303 | done | |
17304 | ||
17305 | fi | |
17306 | ||
d911ec67 AK |
17307 | if test x$DMEVENTD = xyes; then |
17308 | ||
17309 | for ac_header in arpa/inet.h | |
17310 | do | |
17311 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17312 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17313 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17314 | $as_echo_n "checking for $ac_header... " >&6; } | |
17315 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17316 | $as_echo_n "(cached) " >&6 | |
17317 | fi | |
17318 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17319 | $as_echo "$as_val"'` | |
17320 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17321 | $as_echo "$ac_res" >&6; } | |
17322 | else | |
17323 | # Is the header compilable? | |
17324 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17325 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17326 | cat >conftest.$ac_ext <<_ACEOF | |
17327 | /* confdefs.h. */ | |
17328 | _ACEOF | |
17329 | cat confdefs.h >>conftest.$ac_ext | |
17330 | cat >>conftest.$ac_ext <<_ACEOF | |
17331 | /* end confdefs.h. */ | |
17332 | $ac_includes_default | |
17333 | #include <$ac_header> | |
17334 | _ACEOF | |
17335 | rm -f conftest.$ac_objext | |
17336 | if { (ac_try="$ac_compile" | |
17337 | case "(($ac_try" in | |
17338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17339 | *) ac_try_echo=$ac_try;; | |
17340 | esac | |
17341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17342 | $as_echo "$ac_try_echo") >&5 | |
17343 | (eval "$ac_compile") 2>conftest.er1 | |
17344 | ac_status=$? | |
17345 | grep -v '^ *+' conftest.er1 >conftest.err | |
17346 | rm -f conftest.er1 | |
17347 | cat conftest.err >&5 | |
17348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17349 | (exit $ac_status); } && { | |
17350 | test -z "$ac_c_werror_flag" || | |
17351 | test ! -s conftest.err | |
17352 | } && test -s conftest.$ac_objext; then | |
17353 | ac_header_compiler=yes | |
17354 | else | |
17355 | $as_echo "$as_me: failed program was:" >&5 | |
17356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17357 | ||
17358 | ac_header_compiler=no | |
17359 | fi | |
17360 | ||
17361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17362 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17363 | $as_echo "$ac_header_compiler" >&6; } | |
17364 | ||
17365 | # Is the header present? | |
17366 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17367 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17368 | cat >conftest.$ac_ext <<_ACEOF | |
17369 | /* confdefs.h. */ | |
17370 | _ACEOF | |
17371 | cat confdefs.h >>conftest.$ac_ext | |
17372 | cat >>conftest.$ac_ext <<_ACEOF | |
17373 | /* end confdefs.h. */ | |
17374 | #include <$ac_header> | |
17375 | _ACEOF | |
17376 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17377 | case "(($ac_try" in | |
17378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17379 | *) ac_try_echo=$ac_try;; | |
17380 | esac | |
17381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17382 | $as_echo "$ac_try_echo") >&5 | |
17383 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17384 | ac_status=$? | |
17385 | grep -v '^ *+' conftest.er1 >conftest.err | |
17386 | rm -f conftest.er1 | |
17387 | cat conftest.err >&5 | |
17388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17389 | (exit $ac_status); } >/dev/null && { | |
17390 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17391 | test ! -s conftest.err | |
17392 | }; then | |
17393 | ac_header_preproc=yes | |
17394 | else | |
17395 | $as_echo "$as_me: failed program was:" >&5 | |
17396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17397 | ||
17398 | ac_header_preproc=no | |
17399 | fi | |
17400 | ||
17401 | rm -f conftest.err conftest.$ac_ext | |
17402 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17403 | $as_echo "$ac_header_preproc" >&6; } | |
17404 | ||
17405 | # So? What about this header? | |
17406 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17407 | yes:no: ) | |
17408 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17409 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17410 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17411 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17412 | ac_header_preproc=yes | |
17413 | ;; | |
17414 | no:yes:* ) | |
17415 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17416 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17417 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17418 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17420 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17422 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17423 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17424 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17425 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17426 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17427 | ||
17428 | ;; | |
17429 | esac | |
17430 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17431 | $as_echo_n "checking for $ac_header... " >&6; } | |
17432 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17433 | $as_echo_n "(cached) " >&6 | |
17434 | else | |
17435 | eval "$as_ac_Header=\$ac_header_preproc" | |
17436 | fi | |
17437 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17438 | $as_echo "$as_val"'` | |
17439 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17440 | $as_echo "$ac_res" >&6; } | |
17441 | ||
17442 | fi | |
17443 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17444 | $as_echo "$as_val"'` | |
17445 | if test "x$as_val" = x""yes; then | |
17446 | cat >>confdefs.h <<_ACEOF | |
17447 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17448 | _ACEOF | |
17449 | ||
17450 | else | |
17451 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17452 | $as_echo "$as_me: error: bailing out" >&2;} | |
17453 | { (exit 1); exit 1; }; } | |
17454 | fi | |
17455 | ||
17456 | done | |
17457 | ||
17458 | fi | |
17459 | ||
ad6254c5 AK |
17460 | if test x$HAVE_LIBDL = xyes; then |
17461 | ||
17462 | for ac_header in dlfcn.h | |
17463 | do | |
ec6a6fbe | 17464 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17466 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17467 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17469 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17470 | fi |
ec6a6fbe AK |
17471 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17472 | $as_echo "$as_val"'` | |
17473 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17474 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17475 | else |
17476 | # Is the header compilable? | |
ec6a6fbe AK |
17477 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17478 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17479 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17480 | /* confdefs.h. */ |
17481 | _ACEOF | |
17482 | cat confdefs.h >>conftest.$ac_ext | |
17483 | cat >>conftest.$ac_ext <<_ACEOF | |
17484 | /* end confdefs.h. */ | |
17485 | $ac_includes_default | |
17486 | #include <$ac_header> | |
17487 | _ACEOF | |
17488 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17489 | if { (ac_try="$ac_compile" |
17490 | case "(($ac_try" in | |
17491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17492 | *) ac_try_echo=$ac_try;; | |
17493 | esac | |
ec6a6fbe AK |
17494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17495 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17496 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17497 | ac_status=$? |
8a2fc586 AK |
17498 | grep -v '^ *+' conftest.er1 >conftest.err |
17499 | rm -f conftest.er1 | |
17500 | cat conftest.err >&5 | |
ec6a6fbe | 17501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17502 | (exit $ac_status); } && { |
17503 | test -z "$ac_c_werror_flag" || | |
17504 | test ! -s conftest.err | |
17505 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17506 | ac_header_compiler=yes |
17507 | else | |
ec6a6fbe | 17508 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17509 | sed 's/^/| /' conftest.$ac_ext >&5 |
17510 | ||
7a197a62 | 17511 | ac_header_compiler=no |
ad6254c5 | 17512 | fi |
7a197a62 AK |
17513 | |
17514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17515 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17516 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17517 | |
17518 | # Is the header present? | |
ec6a6fbe AK |
17519 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17520 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17521 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17522 | /* confdefs.h. */ |
17523 | _ACEOF | |
17524 | cat confdefs.h >>conftest.$ac_ext | |
17525 | cat >>conftest.$ac_ext <<_ACEOF | |
17526 | /* end confdefs.h. */ | |
17527 | #include <$ac_header> | |
17528 | _ACEOF | |
7a197a62 AK |
17529 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17530 | case "(($ac_try" in | |
17531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17532 | *) ac_try_echo=$ac_try;; | |
17533 | esac | |
ec6a6fbe AK |
17534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17535 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17536 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17537 | ac_status=$? |
17538 | grep -v '^ *+' conftest.er1 >conftest.err | |
17539 | rm -f conftest.er1 | |
17540 | cat conftest.err >&5 | |
ec6a6fbe | 17541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17542 | (exit $ac_status); } >/dev/null && { |
17543 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17544 | test ! -s conftest.err | |
17545 | }; then | |
ad6254c5 AK |
17546 | ac_header_preproc=yes |
17547 | else | |
ec6a6fbe | 17548 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17549 | sed 's/^/| /' conftest.$ac_ext >&5 |
17550 | ||
17551 | ac_header_preproc=no | |
17552 | fi | |
7a197a62 | 17553 | |
ad6254c5 | 17554 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17555 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17556 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17557 | |
17558 | # So? What about this header? | |
8a2fc586 AK |
17559 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17560 | yes:no: ) | |
ec6a6fbe AK |
17561 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17562 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17564 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17565 | ac_header_preproc=yes |
ad6254c5 | 17566 | ;; |
8a2fc586 | 17567 | no:yes:* ) |
ec6a6fbe AK |
17568 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17569 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17570 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17571 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17572 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17573 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17574 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17575 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17576 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17577 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17578 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17579 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17580 | |
ad6254c5 AK |
17581 | ;; |
17582 | esac | |
ec6a6fbe AK |
17583 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17584 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17586 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17587 | else |
8a2fc586 | 17588 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17589 | fi |
ec6a6fbe AK |
17590 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17591 | $as_echo "$as_val"'` | |
17592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17593 | $as_echo "$ac_res" >&6; } | |
80992638 | 17594 | |
8106cdd5 | 17595 | fi |
ec6a6fbe AK |
17596 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17597 | $as_echo "$as_val"'` | |
17598 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17599 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17600 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17601 | _ACEOF |
795ca3e5 AK |
17602 | |
17603 | else | |
ec6a6fbe AK |
17604 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17605 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17606 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17607 | fi |
17608 | ||
ad6254c5 | 17609 | done |
80992638 | 17610 | |
ad6254c5 | 17611 | fi |
80992638 | 17612 | |
ad6254c5 | 17613 | if test x$INTL = xyes; then |
83912faa | 17614 | |
ad6254c5 AK |
17615 | for ac_header in libintl.h |
17616 | do | |
ec6a6fbe | 17617 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17618 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17619 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17620 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17621 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17622 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17623 | fi |
ec6a6fbe AK |
17624 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17625 | $as_echo "$as_val"'` | |
17626 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17627 | $as_echo "$ac_res" >&6; } | |
83912faa | 17628 | else |
ad6254c5 | 17629 | # Is the header compilable? |
ec6a6fbe AK |
17630 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17631 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17632 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17633 | /* confdefs.h. */ |
17634 | _ACEOF | |
17635 | cat confdefs.h >>conftest.$ac_ext | |
17636 | cat >>conftest.$ac_ext <<_ACEOF | |
17637 | /* end confdefs.h. */ | |
17638 | $ac_includes_default | |
17639 | #include <$ac_header> | |
17640 | _ACEOF | |
17641 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17642 | if { (ac_try="$ac_compile" |
17643 | case "(($ac_try" in | |
17644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17645 | *) ac_try_echo=$ac_try;; | |
17646 | esac | |
ec6a6fbe AK |
17647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17648 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17649 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17650 | ac_status=$? |
8a2fc586 AK |
17651 | grep -v '^ *+' conftest.er1 >conftest.err |
17652 | rm -f conftest.er1 | |
17653 | cat conftest.err >&5 | |
ec6a6fbe | 17654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17655 | (exit $ac_status); } && { |
17656 | test -z "$ac_c_werror_flag" || | |
17657 | test ! -s conftest.err | |
17658 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17659 | ac_header_compiler=yes |
17660 | else | |
ec6a6fbe | 17661 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17662 | sed 's/^/| /' conftest.$ac_ext >&5 |
17663 | ||
7a197a62 | 17664 | ac_header_compiler=no |
ad6254c5 | 17665 | fi |
7a197a62 AK |
17666 | |
17667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17668 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17669 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17670 | |
17671 | # Is the header present? | |
ec6a6fbe AK |
17672 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17673 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17674 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17675 | /* confdefs.h. */ |
17676 | _ACEOF | |
17677 | cat confdefs.h >>conftest.$ac_ext | |
17678 | cat >>conftest.$ac_ext <<_ACEOF | |
17679 | /* end confdefs.h. */ | |
17680 | #include <$ac_header> | |
17681 | _ACEOF | |
7a197a62 AK |
17682 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17683 | case "(($ac_try" in | |
17684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17685 | *) ac_try_echo=$ac_try;; | |
17686 | esac | |
ec6a6fbe AK |
17687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17688 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17689 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17690 | ac_status=$? |
17691 | grep -v '^ *+' conftest.er1 >conftest.err | |
17692 | rm -f conftest.er1 | |
17693 | cat conftest.err >&5 | |
ec6a6fbe | 17694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17695 | (exit $ac_status); } >/dev/null && { |
17696 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17697 | test ! -s conftest.err | |
17698 | }; then | |
ad6254c5 AK |
17699 | ac_header_preproc=yes |
17700 | else | |
ec6a6fbe | 17701 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17702 | sed 's/^/| /' conftest.$ac_ext >&5 |
17703 | ||
17704 | ac_header_preproc=no | |
17705 | fi | |
7a197a62 | 17706 | |
ad6254c5 | 17707 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17708 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17709 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17710 | |
17711 | # So? What about this header? | |
8a2fc586 AK |
17712 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17713 | yes:no: ) | |
ec6a6fbe AK |
17714 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17715 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17716 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17717 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17718 | ac_header_preproc=yes |
ad6254c5 | 17719 | ;; |
8a2fc586 | 17720 | no:yes:* ) |
ec6a6fbe AK |
17721 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17722 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17723 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17724 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17725 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17726 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17727 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17728 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17729 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17730 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17731 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17732 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17733 | |
ad6254c5 AK |
17734 | ;; |
17735 | esac | |
ec6a6fbe AK |
17736 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17737 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17738 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17739 | $as_echo_n "(cached) " >&6 |
80992638 | 17740 | else |
8a2fc586 | 17741 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17742 | fi |
ec6a6fbe AK |
17743 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17744 | $as_echo "$as_val"'` | |
17745 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17746 | $as_echo "$ac_res" >&6; } | |
83912faa | 17747 | |
69792976 | 17748 | fi |
ec6a6fbe AK |
17749 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17750 | $as_echo "$as_val"'` | |
17751 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17752 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17753 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17754 | _ACEOF |
69792976 | 17755 | |
69792976 | 17756 | else |
ec6a6fbe AK |
17757 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17758 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17759 | { (exit 1); exit 1; }; } |
80992638 AK |
17760 | fi |
17761 | ||
ad6254c5 | 17762 | done |
69792976 | 17763 | |
ad6254c5 AK |
17764 | fi |
17765 | ||
a5f46f6a AK |
17766 | if test x$UDEV_SYNC = xyes; then |
17767 | ||
17768 | ||
17769 | for ac_header in sys/ipc.h sys/sem.h | |
17770 | do | |
17771 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17772 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17773 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17774 | $as_echo_n "checking for $ac_header... " >&6; } | |
17775 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17776 | $as_echo_n "(cached) " >&6 | |
17777 | fi | |
17778 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17779 | $as_echo "$as_val"'` | |
17780 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17781 | $as_echo "$ac_res" >&6; } | |
17782 | else | |
17783 | # Is the header compilable? | |
17784 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17785 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17786 | cat >conftest.$ac_ext <<_ACEOF | |
17787 | /* confdefs.h. */ | |
17788 | _ACEOF | |
17789 | cat confdefs.h >>conftest.$ac_ext | |
17790 | cat >>conftest.$ac_ext <<_ACEOF | |
17791 | /* end confdefs.h. */ | |
17792 | $ac_includes_default | |
17793 | #include <$ac_header> | |
17794 | _ACEOF | |
17795 | rm -f conftest.$ac_objext | |
17796 | if { (ac_try="$ac_compile" | |
17797 | case "(($ac_try" in | |
17798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17799 | *) ac_try_echo=$ac_try;; | |
17800 | esac | |
17801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17802 | $as_echo "$ac_try_echo") >&5 | |
17803 | (eval "$ac_compile") 2>conftest.er1 | |
17804 | ac_status=$? | |
17805 | grep -v '^ *+' conftest.er1 >conftest.err | |
17806 | rm -f conftest.er1 | |
17807 | cat conftest.err >&5 | |
17808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17809 | (exit $ac_status); } && { | |
17810 | test -z "$ac_c_werror_flag" || | |
17811 | test ! -s conftest.err | |
17812 | } && test -s conftest.$ac_objext; then | |
17813 | ac_header_compiler=yes | |
17814 | else | |
17815 | $as_echo "$as_me: failed program was:" >&5 | |
17816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17817 | ||
17818 | ac_header_compiler=no | |
17819 | fi | |
17820 | ||
17821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17822 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17823 | $as_echo "$ac_header_compiler" >&6; } | |
17824 | ||
17825 | # Is the header present? | |
17826 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17827 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17828 | cat >conftest.$ac_ext <<_ACEOF | |
17829 | /* confdefs.h. */ | |
17830 | _ACEOF | |
17831 | cat confdefs.h >>conftest.$ac_ext | |
17832 | cat >>conftest.$ac_ext <<_ACEOF | |
17833 | /* end confdefs.h. */ | |
17834 | #include <$ac_header> | |
17835 | _ACEOF | |
17836 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17837 | case "(($ac_try" in | |
17838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17839 | *) ac_try_echo=$ac_try;; | |
17840 | esac | |
17841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17842 | $as_echo "$ac_try_echo") >&5 | |
17843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17844 | ac_status=$? | |
17845 | grep -v '^ *+' conftest.er1 >conftest.err | |
17846 | rm -f conftest.er1 | |
17847 | cat conftest.err >&5 | |
17848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); } >/dev/null && { | |
17850 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17851 | test ! -s conftest.err | |
17852 | }; then | |
17853 | ac_header_preproc=yes | |
17854 | else | |
17855 | $as_echo "$as_me: failed program was:" >&5 | |
17856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17857 | ||
17858 | ac_header_preproc=no | |
17859 | fi | |
17860 | ||
17861 | rm -f conftest.err conftest.$ac_ext | |
17862 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17863 | $as_echo "$ac_header_preproc" >&6; } | |
17864 | ||
17865 | # So? What about this header? | |
17866 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17867 | yes:no: ) | |
17868 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17869 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17870 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17871 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17872 | ac_header_preproc=yes | |
17873 | ;; | |
17874 | no:yes:* ) | |
17875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17876 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17878 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17880 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17881 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17882 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17883 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17884 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17885 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17886 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17887 | ||
17888 | ;; | |
17889 | esac | |
17890 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17891 | $as_echo_n "checking for $ac_header... " >&6; } | |
17892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17893 | $as_echo_n "(cached) " >&6 | |
17894 | else | |
17895 | eval "$as_ac_Header=\$ac_header_preproc" | |
17896 | fi | |
17897 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17898 | $as_echo "$as_val"'` | |
17899 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17900 | $as_echo "$ac_res" >&6; } | |
17901 | ||
17902 | fi | |
17903 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17904 | $as_echo "$as_val"'` | |
17905 | if test "x$as_val" = x""yes; then | |
17906 | cat >>confdefs.h <<_ACEOF | |
17907 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17908 | _ACEOF | |
17909 | ||
17910 | else | |
17911 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17912 | $as_echo "$as_me: error: bailing out" >&2;} | |
17913 | { (exit 1); exit 1; }; } | |
17914 | fi | |
17915 | ||
17916 | done | |
17917 | ||
17918 | fi | |
17919 | ||
a653923f AK |
17920 | ################################################################################ |
17921 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17922 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17923 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17924 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17925 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17926 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17927 | else |
17928 | case $MODPROBE_CMD in | |
17929 | [\\/]* | ?:[\\/]*) | |
17930 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17931 | ;; | |
17932 | *) | |
17933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17934 | for as_dir in $PATH | |
17935 | do | |
17936 | IFS=$as_save_IFS | |
17937 | test -z "$as_dir" && as_dir=. | |
17938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17940 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17941 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17942 | break 2 |
17943 | fi | |
17944 | done | |
17945 | done | |
7a197a62 | 17946 | IFS=$as_save_IFS |
72b2cb61 AK |
17947 | |
17948 | ;; | |
17949 | esac | |
17950 | fi | |
17951 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17952 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17953 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17954 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17955 | else |
ec6a6fbe AK |
17956 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17957 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17958 | fi |
17959 | ||
a653923f | 17960 | |
7a197a62 | 17961 | |
a653923f | 17962 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17963 | |
17964 | cat >>confdefs.h <<_ACEOF | |
17965 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17966 | _ACEOF | |
17967 | ||
a653923f AK |
17968 | fi |
17969 | ||
b5c2529b | 17970 | |
a9b601e2 ZK |
17971 | lvm_exec_prefix=$exec_prefix |
17972 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17973 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17974 | ||
b5c2529b | 17975 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17976 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17977 | _ACEOF |
17978 | ||
17979 | ||
17980 | if test "$CLVMD" != none; then | |
17981 | clvmd_prefix=$ac_default_prefix | |
17982 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17983 | ||
17984 | cat >>confdefs.h <<_ACEOF | |
17985 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17986 | _ACEOF | |
17987 | ||
17988 | fi | |
17989 | ||
80992638 | 17990 | ################################################################################ |
93bd259b AK |
17991 | if test "$BUILD_DMEVENTD" = yes; then |
17992 | ||
17993 | # Check whether --with-dmeventd-pidfile was given. | |
17994 | if test "${with_dmeventd_pidfile+set}" = set; then | |
71082be4 | 17995 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 17996 | else |
71082be4 | 17997 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
17998 | fi |
17999 | ||
93bd259b | 18000 | |
71082be4 ZK |
18001 | cat >>confdefs.h <<_ACEOF |
18002 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
18003 | _ACEOF | |
93bd259b | 18004 | |
71082be4 | 18005 | fi |
93bd259b AK |
18006 | |
18007 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
18008 | |
18009 | # Check whether --with-dmeventd-path was given. | |
18010 | if test "${with_dmeventd_path+set}" = set; then | |
71082be4 | 18011 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 18012 | else |
71082be4 | 18013 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
18014 | fi |
18015 | ||
93bd259b | 18016 | |
71082be4 ZK |
18017 | cat >>confdefs.h <<_ACEOF |
18018 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
18019 | _ACEOF | |
3399ae32 | 18020 | |
71082be4 | 18021 | fi |
3399ae32 | 18022 | |
8bae0a1e AK |
18023 | |
18024 | ||
18025 | ||
18026 | # Check whether --with-default-run-dir was given. | |
18027 | if test "${with_default_run_dir+set}" = set; then | |
18028 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
18029 | else | |
18030 | DEFAULT_RUN_DIR="/var/run/lvm" | |
18031 | fi | |
18032 | ||
18033 | cat >>confdefs.h <<_ACEOF | |
18034 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
18035 | _ACEOF | |
18036 | ||
18037 | ||
71082be4 | 18038 | ################################################################################ |
3399ae32 AK |
18039 | |
18040 | # Check whether --with-default-system-dir was given. | |
18041 | if test "${with_default_system_dir+set}" = set; then | |
71082be4 | 18042 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 18043 | else |
71082be4 | 18044 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
18045 | fi |
18046 | ||
71082be4 | 18047 | |
3399ae32 AK |
18048 | cat >>confdefs.h <<_ACEOF |
18049 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
18050 | _ACEOF | |
18051 | ||
18052 | ||
18053 | ||
3399ae32 AK |
18054 | # Check whether --with-default-archive-subdir was given. |
18055 | if test "${with_default_archive_subdir+set}" = set; then | |
71082be4 | 18056 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 18057 | else |
71082be4 | 18058 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
18059 | fi |
18060 | ||
71082be4 | 18061 | |
3399ae32 AK |
18062 | cat >>confdefs.h <<_ACEOF |
18063 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
18064 | _ACEOF | |
18065 | ||
18066 | ||
18067 | ||
3399ae32 AK |
18068 | # Check whether --with-default-backup-subdir was given. |
18069 | if test "${with_default_backup_subdir+set}" = set; then | |
71082be4 | 18070 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 18071 | else |
71082be4 | 18072 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
18073 | fi |
18074 | ||
71082be4 | 18075 | |
3399ae32 AK |
18076 | cat >>confdefs.h <<_ACEOF |
18077 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
18078 | _ACEOF | |
18079 | ||
18080 | ||
18081 | ||
3399ae32 AK |
18082 | # Check whether --with-default-cache-subdir was given. |
18083 | if test "${with_default_cache_subdir+set}" = set; then | |
71082be4 | 18084 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 18085 | else |
71082be4 | 18086 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
18087 | fi |
18088 | ||
71082be4 | 18089 | |
3399ae32 AK |
18090 | cat >>confdefs.h <<_ACEOF |
18091 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
18092 | _ACEOF | |
18093 | ||
18094 | ||
18095 | ||
3399ae32 AK |
18096 | # Check whether --with-default-locking-dir was given. |
18097 | if test "${with_default_locking_dir+set}" = set; then | |
71082be4 | 18098 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 18099 | else |
71082be4 | 18100 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
18101 | fi |
18102 | ||
71082be4 | 18103 | |
3399ae32 AK |
18104 | cat >>confdefs.h <<_ACEOF |
18105 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
18106 | _ACEOF | |
18107 | ||
18108 | ||
fea55602 DW |
18109 | ################################################################################ |
18110 | ||
18111 | # Check whether --with-default-data-alignment was given. | |
18112 | if test "${with_default_data_alignment+set}" = set; then | |
18113 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval | |
18114 | else | |
18115 | DEFAULT_DATA_ALIGNMENT=1 | |
18116 | fi | |
18117 | ||
18118 | ||
18119 | cat >>confdefs.h <<_ACEOF | |
18120 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
18121 | _ACEOF | |
18122 | ||
18123 | ||
93bd259b | 18124 | ################################################################################ |
ec6a6fbe AK |
18125 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
18126 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
18127 | |
18128 | # Check whether --with-interface was given. | |
18129 | if test "${with_interface+set}" = set; then | |
71082be4 | 18130 | withval=$with_interface; interface=$withval |
93bd259b | 18131 | else |
71082be4 | 18132 | interface=ioctl |
93bd259b AK |
18133 | fi |
18134 | ||
18135 | if [ "x$interface" != xioctl ]; | |
18136 | then | |
ec6a6fbe AK |
18137 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
18138 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
18139 | { (exit 1); exit 1; }; } |
18140 | fi | |
ec6a6fbe AK |
18141 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
18142 | $as_echo "$interface" >&6; } | |
93bd259b AK |
18143 | |
18144 | ################################################################################ | |
db8b5af9 | 18145 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
18146 | |
18147 | cat >>confdefs.h <<_ACEOF | |
18148 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
18149 | _ACEOF | |
18150 | ||
18151 | ||
db8b5af9 | 18152 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 18153 | |
db8b5af9 | 18154 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 18155 | |
db8b5af9 | 18156 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 18157 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
18158 | VER=`echo "$VER" | $AWK '{print $1}'` |
18159 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
18160 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
18161 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
18162 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
18163 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
18164 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 18165 | |
80992638 | 18166 | ################################################################################ |
fae0c576 | 18167 | |
83912faa | 18168 | |
795ca3e5 AK |
18169 | |
18170 | ||
18171 | ||
18172 | ||
18173 | ||
18174 | ||
5a52dca9 | 18175 | |
8ef2b021 | 18176 | |
199e490e | 18177 | |
69792976 AK |
18178 | |
18179 | ||
18180 | ||
d0191583 | 18181 | |
69792976 | 18182 | |
8106cdd5 AK |
18183 | |
18184 | ||
18185 | ||
18186 | ||
18187 | ||
d68a82ec | 18188 | |
036f273a | 18189 | |
7d1552c9 | 18190 | |
8106cdd5 | 18191 | |
0a62c911 | 18192 | |
8106cdd5 | 18193 | |
4a7f3eb2 | 18194 | |
4922197a AK |
18195 | |
18196 | ||
d8ac0fbc | 18197 | |
1a9ea74d | 18198 | |
8a2fc586 AK |
18199 | |
18200 | ||
d0191583 | 18201 | |
93bd259b AK |
18202 | |
18203 | ||
18204 | ||
18205 | ||
18206 | ||
d0191583 JM |
18207 | |
18208 | ||
18209 | ||
18210 | ||
18211 | ||
8a2fc586 | 18212 | |
19a2c6e0 | 18213 | |
f7f0854e ZK |
18214 | |
18215 | ||
3ceb7608 | 18216 | |
8ce0cbda | 18217 | |
8b1a3214 | 18218 | |
ec6a6fbe AK |
18219 | |
18220 | ||
18221 | ||
18222 | ||
e2997b73 AK |
18223 | |
18224 | ||
18225 | ||
18226 | ||
18227 | ||
18228 | ||
a946372e AK |
18229 | |
18230 | ||
18231 | ||
18232 | ||
18233 | ||
18234 | ||
18235 | ||
18236 | ||
18237 | ||
18238 | ||
18239 | ||
ec6a6fbe | 18240 | |
33f732c5 | 18241 | |
66e941e8 | 18242 | |
d3c8211f | 18243 | |
7e3fe830 | 18244 | |
a5f46f6a AK |
18245 | |
18246 | ||
18247 | ||
572fefeb | 18248 | |
90c80887 | 18249 | |
3399ae32 AK |
18250 | |
18251 | ||
18252 | ||
18253 | ||
18254 | ||
90c80887 | 18255 | |
bf456146 | 18256 | |
e1b8a236 | 18257 | |
0878503f | 18258 | |
8fea97b7 | 18259 | |
54b362f9 | 18260 | |
b1f08e51 | 18261 | |
d1e8046f | 18262 | |
fea55602 | 18263 | |
c89bc357 | 18264 | |
68f2de6d AK |
18265 | |
18266 | ||
80992638 | 18267 | ################################################################################ |
d1e8046f | 18268 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 18269 | |
ad6254c5 | 18270 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
18271 | # This file is a shell script that caches the results of configure |
18272 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
18273 | # scripts and configure runs, see configure's option --config-cache. |
18274 | # It is not useful on other systems. If it contains results you don't | |
18275 | # want to keep, you may remove or edit it. | |
795ca3e5 | 18276 | # |
ad6254c5 AK |
18277 | # config.status only pays attention to the cache file if you give it |
18278 | # the --recheck option to rerun configure. | |
795ca3e5 | 18279 | # |
ad6254c5 AK |
18280 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18281 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18282 | # following values. | |
18283 | ||
18284 | _ACEOF | |
18285 | ||
795ca3e5 AK |
18286 | # The following way of writing the cache mishandles newlines in values, |
18287 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 18288 | # So, we kill variables containing newlines. |
795ca3e5 AK |
18289 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18290 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
18291 | ( |
18292 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18293 | eval ac_val=\$$ac_var | |
18294 | case $ac_val in #( | |
18295 | *${as_nl}*) | |
18296 | case $ac_var in #( | |
ec6a6fbe AK |
18297 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
18298 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
18299 | esac |
18300 | case $ac_var in #( | |
18301 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 18302 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
18303 | *) $as_unset $ac_var ;; |
18304 | esac ;; | |
18305 | esac | |
18306 | done | |
18307 | ||
ad6254c5 | 18308 | (set) 2>&1 | |
7a197a62 AK |
18309 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18310 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
18311 | # `set' does not quote correctly, so add quotes (double-quote |
18312 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18313 | sed -n \ | |
8a2fc586 AK |
18314 | "s/'/'\\\\''/g; |
18315 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 18316 | ;; #( |
ad6254c5 AK |
18317 | *) |
18318 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 18319 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 18320 | ;; |
7a197a62 AK |
18321 | esac | |
18322 | sort | |
18323 | ) | | |
ad6254c5 | 18324 | sed ' |
7a197a62 | 18325 | /^ac_cv_env_/b end |
ad6254c5 | 18326 | t clear |
7a197a62 | 18327 | :clear |
ad6254c5 AK |
18328 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18329 | t end | |
7a197a62 AK |
18330 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18331 | :end' >>confcache | |
18332 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18333 | if test -w "$cache_file"; then | |
18334 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
18335 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
18336 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 18337 | cat confcache >$cache_file |
795ca3e5 | 18338 | else |
ec6a6fbe AK |
18339 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
18340 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
18341 | fi |
18342 | fi | |
18343 | rm -f confcache | |
18344 | ||
795ca3e5 AK |
18345 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18346 | # Let make expand exec_prefix. | |
18347 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18348 | ||
72b2cb61 | 18349 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
18350 | |
18351 | ac_libobjs= | |
18352 | ac_ltlibobjs= | |
18353 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18354 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 18355 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 18356 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
18357 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18358 | # will be set to the directory where LIBOBJS objects are built. | |
18359 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18360 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18361 | done |
18362 | LIBOBJS=$ac_libobjs | |
80992638 | 18363 | |
ad6254c5 AK |
18364 | LTLIBOBJS=$ac_ltlibobjs |
18365 | ||
18366 | ||
18367 | ||
18368 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18369 | ac_write_fail=0 |
ad6254c5 AK |
18370 | ac_clean_files_save=$ac_clean_files |
18371 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18372 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18373 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18374 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18375 | #! $SHELL |
18376 | # Generated by $as_me. | |
795ca3e5 | 18377 | # Run this file to recreate the current configuration. |
795ca3e5 | 18378 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18379 | # configure, is in config.log if it exists. |
18380 | ||
18381 | debug=false | |
18382 | ac_cs_recheck=false | |
18383 | ac_cs_silent=false | |
18384 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18385 | _ACEOF | |
18386 | ||
ec6a6fbe | 18387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18388 | ## --------------------- ## |
18389 | ## M4sh Initialization. ## | |
18390 | ## --------------------- ## | |
18391 | ||
25fbec5b AK |
18392 | # Be more Bourne compatible |
18393 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18394 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18395 | emulate sh | |
18396 | NULLCMD=: | |
ec6a6fbe | 18397 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18398 | # is contrary to our usage. Disable this feature. |
18399 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18400 | setopt NO_GLOB_SUBST |
18401 | else | |
25fbec5b AK |
18402 | case `(set -o) 2>/dev/null` in |
18403 | *posix*) set -o posix ;; | |
18404 | esac | |
18405 | ||
7a197a62 | 18406 | fi |
25fbec5b AK |
18407 | |
18408 | ||
7a197a62 AK |
18409 | |
18410 | ||
18411 | # PATH needs CR | |
18412 | # Avoid depending upon Character Ranges. | |
18413 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18414 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18415 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18416 | as_cr_digits='0123456789' | |
18417 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18418 | ||
ec6a6fbe AK |
18419 | as_nl=' |
18420 | ' | |
18421 | export as_nl | |
18422 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18423 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18424 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18425 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18426 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18427 | as_echo='printf %s\n' | |
18428 | as_echo_n='printf %s' | |
18429 | else | |
18430 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18431 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18432 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18433 | else |
ec6a6fbe AK |
18434 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18435 | as_echo_n_body='eval | |
18436 | arg=$1; | |
18437 | case $arg in | |
18438 | *"$as_nl"*) | |
18439 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18440 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18441 | esac; | |
18442 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18443 | ' | |
18444 | export as_echo_n_body | |
18445 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18446 | fi |
ec6a6fbe AK |
18447 | export as_echo_body |
18448 | as_echo='sh -c $as_echo_body as_echo' | |
18449 | fi | |
18450 | ||
18451 | # The user is always right. | |
18452 | if test "${PATH_SEPARATOR+set}" != set; then | |
18453 | PATH_SEPARATOR=: | |
18454 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18455 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18456 | PATH_SEPARATOR=';' | |
18457 | } | |
ad6254c5 AK |
18458 | fi |
18459 | ||
18460 | # Support unset when possible. | |
8a2fc586 | 18461 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18462 | as_unset=unset |
18463 | else | |
18464 | as_unset=false | |
18465 | fi | |
8106cdd5 | 18466 | |
ad6254c5 | 18467 | |
7a197a62 AK |
18468 | # IFS |
18469 | # We need space, tab and new line, in precisely that order. Quoting is | |
18470 | # there to prevent editors from complaining about space-tab. | |
18471 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18472 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18473 | IFS=" "" $as_nl" |
18474 | ||
18475 | # Find who we are. Look in the path if we contain no directory separator. | |
18476 | case $0 in | |
18477 | *[\\/]* ) as_myself=$0 ;; | |
18478 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18479 | for as_dir in $PATH | |
18480 | do | |
18481 | IFS=$as_save_IFS | |
18482 | test -z "$as_dir" && as_dir=. | |
18483 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18484 | done | |
18485 | IFS=$as_save_IFS | |
18486 | ||
18487 | ;; | |
18488 | esac | |
18489 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18490 | # in which case we are not to be found in the path. | |
18491 | if test "x$as_myself" = x; then | |
18492 | as_myself=$0 | |
18493 | fi | |
18494 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18495 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18496 | { (exit 1); exit 1; } |
18497 | fi | |
18498 | ||
ad6254c5 | 18499 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18500 | for as_var in ENV MAIL MAILPATH |
18501 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18502 | done | |
ad6254c5 AK |
18503 | PS1='$ ' |
18504 | PS2='> ' | |
18505 | PS4='+ ' | |
18506 | ||
18507 | # NLS nuisances. | |
ec6a6fbe AK |
18508 | LC_ALL=C |
18509 | export LC_ALL | |
18510 | LANGUAGE=C | |
18511 | export LANGUAGE | |
8106cdd5 | 18512 | |
ad6254c5 | 18513 | # Required to use basename. |
7a197a62 AK |
18514 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18515 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18516 | as_expr=expr |
18517 | else | |
18518 | as_expr=false | |
18519 | fi | |
8106cdd5 | 18520 | |
7a197a62 | 18521 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18522 | as_basename=basename |
18523 | else | |
18524 | as_basename=false | |
18525 | fi | |
18526 | ||
18527 | ||
18528 | # Name of the executable. | |
7a197a62 | 18529 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18530 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18531 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18532 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18533 | $as_echo X/"$0" | |
7a197a62 AK |
18534 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18535 | s//\1/ | |
18536 | q | |
18537 | } | |
18538 | /^X\/\(\/\/\)$/{ | |
18539 | s//\1/ | |
18540 | q | |
18541 | } | |
18542 | /^X\/\(\/\).*/{ | |
18543 | s//\1/ | |
18544 | q | |
18545 | } | |
18546 | s/.*/./; q'` | |
ad6254c5 | 18547 | |
7a197a62 AK |
18548 | # CDPATH. |
18549 | $as_unset CDPATH | |
ad6254c5 AK |
18550 | |
18551 | ||
ad6254c5 | 18552 | |
ad6254c5 AK |
18553 | as_lineno_1=$LINENO |
18554 | as_lineno_2=$LINENO | |
ad6254c5 | 18555 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18556 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18557 | |
ad6254c5 AK |
18558 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18559 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18560 | # line-number line after each line using $LINENO; the second 'sed' |
18561 | # does the real work. The second script uses 'N' to pair each | |
18562 | # line-number line with the line containing $LINENO, and appends | |
18563 | # trailing '-' during substitution so that $LINENO is not a special | |
18564 | # case at line end. | |
ad6254c5 | 18565 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18566 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18567 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18568 | sed -n ' | |
18569 | p | |
18570 | /[$]LINENO/= | |
18571 | ' <$as_myself | | |
ad6254c5 | 18572 | sed ' |
7a197a62 AK |
18573 | s/[$]LINENO.*/&-/ |
18574 | t lineno | |
18575 | b | |
18576 | :lineno | |
ad6254c5 | 18577 | N |
7a197a62 AK |
18578 | :loop |
18579 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18580 | t loop |
7a197a62 | 18581 | s/-\n.*// |
ad6254c5 | 18582 | ' >$as_me.lineno && |
7a197a62 | 18583 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18584 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18585 | { (exit 1); exit 1; }; } |
18586 | ||
18587 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18588 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18589 | # original and so on. Autoconf is especially sensitive to this). |
18590 | . "./$as_me.lineno" | |
ad6254c5 AK |
18591 | # Exit status is that of the last command. |
18592 | exit | |
18593 | } | |
18594 | ||
18595 | ||
7a197a62 AK |
18596 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18597 | as_dirname=dirname | |
18598 | else | |
18599 | as_dirname=false | |
18600 | fi | |
18601 | ||
18602 | ECHO_C= ECHO_N= ECHO_T= | |
18603 | case `echo -n x` in | |
18604 | -n*) | |
18605 | case `echo 'x\c'` in | |
18606 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18607 | *) ECHO_C='\c';; | |
18608 | esac;; | |
18609 | *) | |
18610 | ECHO_N='-n';; | |
ad6254c5 | 18611 | esac |
7a197a62 AK |
18612 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18613 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18614 | as_expr=expr |
18615 | else | |
18616 | as_expr=false | |
18617 | fi | |
80992638 | 18618 | |
ad6254c5 | 18619 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18620 | if test -d conf$$.dir; then |
18621 | rm -f conf$$.dir/conf$$.file | |
18622 | else | |
18623 | rm -f conf$$.dir | |
ec6a6fbe AK |
18624 | mkdir conf$$.dir 2>/dev/null |
18625 | fi | |
18626 | if (echo >conf$$.file) 2>/dev/null; then | |
18627 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18628 | as_ln_s='ln -s' | |
18629 | # ... but there are two gotchas: | |
18630 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18631 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18632 | # In both cases, we have to default to `cp -p'. | |
18633 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18634 | as_ln_s='cp -p' | |
18635 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18636 | as_ln_s=ln | |
18637 | else | |
ad6254c5 | 18638 | as_ln_s='cp -p' |
ec6a6fbe | 18639 | fi |
ad6254c5 AK |
18640 | else |
18641 | as_ln_s='cp -p' | |
18642 | fi | |
7a197a62 AK |
18643 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18644 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18645 | |
ad6254c5 AK |
18646 | if mkdir -p . 2>/dev/null; then |
18647 | as_mkdir_p=: | |
18648 | else | |
8a2fc586 | 18649 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18650 | as_mkdir_p=false |
18651 | fi | |
18652 | ||
25fbec5b AK |
18653 | if test -x / >/dev/null 2>&1; then |
18654 | as_test_x='test -x' | |
7a197a62 | 18655 | else |
25fbec5b AK |
18656 | if ls -dL / >/dev/null 2>&1; then |
18657 | as_ls_L_option=L | |
18658 | else | |
18659 | as_ls_L_option= | |
18660 | fi | |
18661 | as_test_x=' | |
18662 | eval sh -c '\'' | |
18663 | if test -d "$1"; then | |
ec6a6fbe | 18664 | test -d "$1/."; |
25fbec5b AK |
18665 | else |
18666 | case $1 in | |
ec6a6fbe | 18667 | -*)set "./$1";; |
25fbec5b AK |
18668 | esac; |
18669 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18670 | ???[sx]*):;;*)false;;esac;fi | |
18671 | '\'' sh | |
18672 | ' | |
7a197a62 | 18673 | fi |
25fbec5b | 18674 | as_executable_p=$as_test_x |
ad6254c5 AK |
18675 | |
18676 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18677 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18678 | |
18679 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18680 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18681 | |
18682 | ||
ad6254c5 AK |
18683 | exec 6>&1 |
18684 | ||
7a197a62 | 18685 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18686 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18687 | # values after options handling. |
18688 | ac_log=" | |
ad6254c5 | 18689 | This file was extended by $as_me, which was |
ec6a6fbe | 18690 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18691 | |
18692 | CONFIG_FILES = $CONFIG_FILES | |
18693 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18694 | CONFIG_LINKS = $CONFIG_LINKS | |
18695 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18696 | $ $0 $@ | |
18697 | ||
7a197a62 AK |
18698 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18699 | " | |
18700 | ||
ad6254c5 AK |
18701 | _ACEOF |
18702 | ||
ec6a6fbe AK |
18703 | case $ac_config_files in *" |
18704 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18705 | esac | |
18706 | ||
18707 | case $ac_config_headers in *" | |
18708 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18709 | esac | |
18710 | ||
18711 | ||
18712 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18713 | # Files that config.status was made for. |
68f2de6d AK |
18714 | config_files="$ac_config_files" |
18715 | config_headers="$ac_config_headers" | |
ad6254c5 | 18716 | |
7a197a62 | 18717 | _ACEOF |
ad6254c5 | 18718 | |
ec6a6fbe | 18719 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18720 | ac_cs_usage="\ |
18721 | \`$as_me' instantiates files from templates according to the | |
18722 | current configuration. | |
18723 | ||
ec6a6fbe | 18724 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18725 | |
18726 | -h, --help print this help, then exit | |
25fbec5b | 18727 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18728 | -q, --quiet, --silent |
18729 | do not print progress messages | |
ad6254c5 AK |
18730 | -d, --debug don't remove temporary files |
18731 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18732 | --file=FILE[:TEMPLATE] |
18733 | instantiate the configuration file FILE | |
18734 | --header=FILE[:TEMPLATE] | |
18735 | instantiate the configuration header FILE | |
ad6254c5 AK |
18736 | |
18737 | Configuration files: | |
18738 | $config_files | |
18739 | ||
72b2cb61 AK |
18740 | Configuration headers: |
18741 | $config_headers | |
18742 | ||
ad6254c5 | 18743 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18744 | |
7a197a62 | 18745 | _ACEOF |
ec6a6fbe | 18746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18747 | ac_cs_version="\\ |
18748 | config.status | |
ec6a6fbe AK |
18749 | configured by $0, generated by GNU Autoconf 2.63, |
18750 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18751 | |
ec6a6fbe | 18752 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18753 | This config.status script is free software; the Free Software Foundation |
18754 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18755 | |
18756 | ac_pwd='$ac_pwd' | |
18757 | srcdir='$srcdir' | |
18758 | INSTALL='$INSTALL' | |
fddafd51 | 18759 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18760 | AWK='$AWK' |
18761 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18762 | _ACEOF |
18763 | ||
ec6a6fbe AK |
18764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18765 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18766 | ac_need_defaults=: |
18767 | while test $# != 0 | |
18768 | do | |
18769 | case $1 in | |
18770 | --*=*) | |
7a197a62 AK |
18771 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18772 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18773 | ac_shift=: |
18774 | ;; | |
7a197a62 | 18775 | *) |
ad6254c5 AK |
18776 | ac_option=$1 |
18777 | ac_optarg=$2 | |
18778 | ac_shift=shift | |
18779 | ;; | |
ad6254c5 AK |
18780 | esac |
18781 | ||
18782 | case $ac_option in | |
18783 | # Handling of the options. | |
ad6254c5 AK |
18784 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18785 | ac_cs_recheck=: ;; | |
7a197a62 | 18786 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18787 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18788 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18789 | debug=: ;; |
18790 | --file | --fil | --fi | --f ) | |
18791 | $ac_shift | |
ec6a6fbe AK |
18792 | case $ac_optarg in |
18793 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18794 | esac | |
18795 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18796 | ac_need_defaults=false;; |
18797 | --header | --heade | --head | --hea ) | |
18798 | $ac_shift | |
ec6a6fbe AK |
18799 | case $ac_optarg in |
18800 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18801 | esac | |
18802 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18803 | ac_need_defaults=false;; |
7a197a62 AK |
18804 | --he | --h) |
18805 | # Conflict between --help and --header | |
ec6a6fbe | 18806 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18807 | Try \`$0 --help' for more information." >&2 |
18808 | { (exit 1); exit 1; }; };; | |
18809 | --help | --hel | -h ) | |
ec6a6fbe | 18810 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18811 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18812 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18813 | ac_cs_silent=: ;; | |
18814 | ||
18815 | # This is an error. | |
ec6a6fbe | 18816 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18817 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18818 | { (exit 1); exit 1; }; } ;; |
18819 | ||
7a197a62 AK |
18820 | *) ac_config_targets="$ac_config_targets $1" |
18821 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18822 | |
18823 | esac | |
18824 | shift | |
18825 | done | |
18826 | ||
18827 | ac_configure_extra_args= | |
18828 | ||
18829 | if $ac_cs_silent; then | |
18830 | exec 6>/dev/null | |
18831 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18832 | fi | |
18833 | ||
18834 | _ACEOF | |
ec6a6fbe | 18835 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18836 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18837 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18838 | shift | |
18839 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18840 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18841 | export CONFIG_SHELL |
ec6a6fbe | 18842 | exec "\$@" |
ad6254c5 AK |
18843 | fi |
18844 | ||
18845 | _ACEOF | |
ec6a6fbe | 18846 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18847 | exec 5>>config.log |
18848 | { | |
18849 | echo | |
18850 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18851 | ## Running $as_me. ## | |
18852 | _ASBOX | |
ec6a6fbe | 18853 | $as_echo "$ac_log" |
7a197a62 | 18854 | } >&5 |
ad6254c5 | 18855 | |
7a197a62 | 18856 | _ACEOF |
ec6a6fbe | 18857 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18858 | _ACEOF |
ad6254c5 | 18859 | |
ec6a6fbe | 18860 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18861 | |
18862 | # Handling of arguments. | |
ad6254c5 AK |
18863 | for ac_config_target in $ac_config_targets |
18864 | do | |
7a197a62 AK |
18865 | case $ac_config_target in |
18866 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18867 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18868 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18869 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18870 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18871 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18872 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18873 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18874 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18875 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18876 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18877 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18878 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18879 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18880 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18881 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18882 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18883 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18884 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18885 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18886 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18887 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18888 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18889 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18890 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18891 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18892 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18893 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18894 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18895 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18896 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18897 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18898 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18899 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18900 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18901 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18902 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18903 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
18904 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
18905 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 18906 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 18907 | |
ec6a6fbe AK |
18908 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18909 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18910 | { (exit 1); exit 1; }; };; |
80992638 | 18911 | esac |
ad6254c5 AK |
18912 | done |
18913 | ||
7a197a62 | 18914 | |
ad6254c5 AK |
18915 | # If the user did not use the arguments to specify the items to instantiate, |
18916 | # then the envvar interface is used. Set only those that are not. | |
18917 | # We use the long form for the default assignment because of an extremely | |
18918 | # bizarre bug on SunOS 4.1.3. | |
18919 | if $ac_need_defaults; then | |
18920 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18921 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18922 | fi |
18923 | ||
18924 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18925 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18926 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18927 | # Hook for its removal unless debugging. |
18928 | # Note that there is a small window in which the directory will not be cleaned: | |
18929 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18930 | $debug || |
18931 | { | |
7a197a62 AK |
18932 | tmp= |
18933 | trap 'exit_status=$? | |
18934 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18935 | ' 0 | |
ad6254c5 AK |
18936 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18937 | } | |
ad6254c5 AK |
18938 | # Create a (secure) tmp directory for tmp files. |
18939 | ||
18940 | { | |
7a197a62 | 18941 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18942 | test -n "$tmp" && test -d "$tmp" |
18943 | } || | |
18944 | { | |
7a197a62 AK |
18945 | tmp=./conf$$-$RANDOM |
18946 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18947 | } || |
18948 | { | |
ec6a6fbe | 18949 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18950 | { (exit 1); exit 1; } |
18951 | } | |
18952 | ||
ec6a6fbe AK |
18953 | # Set up the scripts for CONFIG_FILES section. |
18954 | # No need to generate them if there are no CONFIG_FILES. | |
18955 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18956 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18957 | |
68f2de6d | 18958 | |
ec6a6fbe AK |
18959 | ac_cr='\r' |
18960 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18961 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18962 | ac_cs_awk_cr='\\r' | |
18963 | else | |
18964 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18965 | fi |
7a197a62 | 18966 | |
ec6a6fbe | 18967 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18968 | _ACEOF |
7a197a62 | 18969 | |
8106cdd5 | 18970 | |
ec6a6fbe AK |
18971 | { |
18972 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18973 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18974 | echo "_ACEOF" | |
18975 | } >conf$$subs.sh || | |
18976 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18977 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18978 | { (exit 1); exit 1; }; } | |
18979 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18980 | ac_delim='%!_!# ' |
18981 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18982 | . ./conf$$subs.sh || |
18983 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18984 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18985 | { (exit 1); exit 1; }; } | |
18986 | ||
18987 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18988 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18989 | break |
18990 | elif $ac_last_try; then | |
ec6a6fbe AK |
18991 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18992 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18993 | { (exit 1); exit 1; }; } |
18994 | else | |
18995 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18996 | fi | |
18997 | done | |
ec6a6fbe AK |
18998 | rm -f conf$$subs.sh |
18999 | ||
19000 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19001 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
19002 | _ACEOF | |
19003 | sed -n ' | |
19004 | h | |
19005 | s/^/S["/; s/!.*/"]=/ | |
19006 | p | |
19007 | g | |
19008 | s/^[^!]*!// | |
19009 | :repl | |
19010 | t repl | |
19011 | s/'"$ac_delim"'$// | |
19012 | t delim | |
19013 | :nl | |
19014 | h | |
19015 | s/\(.\{148\}\).*/\1/ | |
19016 | t more1 | |
19017 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19018 | p | |
19019 | n | |
19020 | b repl | |
19021 | :more1 | |
19022 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19023 | p | |
19024 | g | |
19025 | s/.\{148\}// | |
19026 | t nl | |
19027 | :delim | |
19028 | h | |
19029 | s/\(.\{148\}\).*/\1/ | |
19030 | t more2 | |
19031 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19032 | p | |
19033 | b | |
19034 | :more2 | |
19035 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19036 | p | |
19037 | g | |
19038 | s/.\{148\}// | |
19039 | t delim | |
19040 | ' <conf$$subs.awk | sed ' | |
19041 | /^[^""]/{ | |
19042 | N | |
19043 | s/\n// | |
19044 | } | |
19045 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19046 | rm -f conf$$subs.awk | |
19047 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19048 | _ACAWK | |
19049 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
19050 | for (key in S) S_is_set[key] = 1 | |
19051 | FS = "\a" | |
7a197a62 | 19052 | |
ec6a6fbe AK |
19053 | } |
19054 | { | |
19055 | line = $ 0 | |
19056 | nfields = split(line, field, "@") | |
19057 | substed = 0 | |
19058 | len = length(field[1]) | |
19059 | for (i = 2; i < nfields; i++) { | |
19060 | key = field[i] | |
19061 | keylen = length(key) | |
19062 | if (S_is_set[key]) { | |
19063 | value = S[key] | |
19064 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19065 | len += length(value) + length(field[++i]) | |
19066 | substed = 1 | |
19067 | } else | |
19068 | len += 1 + keylen | |
19069 | } | |
19070 | ||
19071 | print line | |
19072 | } | |
fddafd51 | 19073 | |
ec6a6fbe | 19074 | _ACAWK |
1995c9ff | 19075 | _ACEOF |
ec6a6fbe AK |
19076 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19077 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19078 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19079 | else | |
19080 | cat | |
19081 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
19082 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
19083 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
19084 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19085 | _ACEOF |
19086 | ||
7a197a62 AK |
19087 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19088 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
19089 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19090 | # (actually we leave an empty line to preserve line numbers). | |
19091 | if test "x$srcdir" = x.; then | |
19092 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
19093 | s/:*\$(srcdir):*/:/ | |
19094 | s/:*\${srcdir}:*/:/ | |
19095 | s/:*@srcdir@:*/:/ | |
19096 | s/^\([^=]*=[ ]*\):*/\1/ | |
19097 | s/:*$// | |
19098 | s/^[^=]*=[ ]*$// | |
19099 | }' | |
19100 | fi | |
19101 | ||
ec6a6fbe | 19102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19103 | fi # test -n "$CONFIG_FILES" |
19104 | ||
ec6a6fbe AK |
19105 | # Set up the scripts for CONFIG_HEADERS section. |
19106 | # No need to generate them if there are no CONFIG_HEADERS. | |
19107 | # This happens for instance with `./config.status Makefile'. | |
19108 | if test -n "$CONFIG_HEADERS"; then | |
19109 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
19110 | BEGIN { | |
19111 | _ACEOF | |
19112 | ||
19113 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19114 | # here-document in config.status, that substitutes the proper values into | |
19115 | # config.h.in to produce config.h. | |
19116 | ||
19117 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19118 | # handling of long lines. | |
19119 | ac_delim='%!_!# ' | |
19120 | for ac_last_try in false false :; do | |
19121 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
19122 | if test -z "$ac_t"; then | |
19123 | break | |
19124 | elif $ac_last_try; then | |
19125 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
19126 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
19127 | { (exit 1); exit 1; }; } | |
19128 | else | |
19129 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19130 | fi | |
19131 | done | |
19132 | ||
19133 | # For the awk script, D is an array of macro values keyed by name, | |
19134 | # likewise P contains macro parameters if any. Preserve backslash | |
19135 | # newline sequences. | |
19136 | ||
19137 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19138 | sed -n ' | |
19139 | s/.\{148\}/&'"$ac_delim"'/g | |
19140 | t rset | |
19141 | :rset | |
19142 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19143 | t def | |
19144 | d | |
19145 | :def | |
19146 | s/\\$// | |
19147 | t bsnl | |
19148 | s/["\\]/\\&/g | |
19149 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19150 | D["\1"]=" \3"/p | |
19151 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19152 | d | |
19153 | :bsnl | |
19154 | s/["\\]/\\&/g | |
19155 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19156 | D["\1"]=" \3\\\\\\n"\\/p | |
19157 | t cont | |
19158 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19159 | t cont | |
19160 | d | |
19161 | :cont | |
19162 | n | |
19163 | s/.\{148\}/&'"$ac_delim"'/g | |
19164 | t clear | |
19165 | :clear | |
19166 | s/\\$// | |
19167 | t bsnlc | |
19168 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19169 | d | |
19170 | :bsnlc | |
19171 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19172 | b cont | |
19173 | ' <confdefs.h | sed ' | |
19174 | s/'"$ac_delim"'/"\\\ | |
19175 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19176 | ||
19177 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19178 | for (key in D) D_is_set[key] = 1 | |
19179 | FS = "\a" | |
19180 | } | |
19181 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19182 | line = \$ 0 | |
19183 | split(line, arg, " ") | |
19184 | if (arg[1] == "#") { | |
19185 | defundef = arg[2] | |
19186 | mac1 = arg[3] | |
19187 | } else { | |
19188 | defundef = substr(arg[1], 2) | |
19189 | mac1 = arg[2] | |
19190 | } | |
19191 | split(mac1, mac2, "(") #) | |
19192 | macro = mac2[1] | |
19193 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19194 | if (D_is_set[macro]) { | |
19195 | # Preserve the white space surrounding the "#". | |
19196 | print prefix "define", macro P[macro] D[macro] | |
19197 | next | |
19198 | } else { | |
19199 | # Replace #undef with comments. This is necessary, for example, | |
19200 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19201 | # on some systems where configure will not decide to define it. | |
19202 | if (defundef == "undef") { | |
19203 | print "/*", prefix defundef, macro, "*/" | |
19204 | next | |
19205 | } | |
19206 | } | |
19207 | } | |
19208 | { print } | |
19209 | _ACAWK | |
19210 | _ACEOF | |
19211 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19212 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
19213 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
19214 | { (exit 1); exit 1; }; } | |
19215 | fi # test -n "$CONFIG_HEADERS" | |
19216 | ||
7a197a62 | 19217 | |
ec6a6fbe AK |
19218 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
19219 | shift | |
19220 | for ac_tag | |
7a197a62 AK |
19221 | do |
19222 | case $ac_tag in | |
19223 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19224 | esac | |
19225 | case $ac_mode$ac_tag in | |
19226 | :[FHL]*:*);; | |
ec6a6fbe AK |
19227 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
19228 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
19229 | { (exit 1); exit 1; }; };; |
19230 | :[FH]-) ac_tag=-:-;; | |
19231 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19232 | esac | |
19233 | ac_save_IFS=$IFS | |
19234 | IFS=: | |
19235 | set x $ac_tag | |
19236 | IFS=$ac_save_IFS | |
19237 | shift | |
19238 | ac_file=$1 | |
19239 | shift | |
19240 | ||
19241 | case $ac_mode in | |
19242 | :L) ac_source=$1;; | |
19243 | :[FH]) | |
19244 | ac_file_inputs= | |
19245 | for ac_f | |
19246 | do | |
19247 | case $ac_f in | |
19248 | -) ac_f="$tmp/stdin";; | |
19249 | *) # Look for the file first in the build tree, then in the source tree | |
19250 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19251 | # because $ac_f cannot contain `:'. | |
19252 | test -f "$ac_f" || | |
19253 | case $ac_f in | |
19254 | [\\/$]*) false;; | |
19255 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19256 | esac || | |
ec6a6fbe AK |
19257 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
19258 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
19259 | { (exit 1); exit 1; }; };; |
19260 | esac | |
ec6a6fbe AK |
19261 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19262 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
19263 | done |
19264 | ||
19265 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19266 | # use $as_me), people would be surprised to read: | |
19267 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
19268 | configure_input='Generated from '` |
19269 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19270 | `' by configure.' | |
7a197a62 AK |
19271 | if test x"$ac_file" != x-; then |
19272 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
19273 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
19274 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 19275 | fi |
ec6a6fbe AK |
19276 | # Neutralize special characters interpreted by sed in replacement strings. |
19277 | case $configure_input in #( | |
19278 | *\&* | *\|* | *\\* ) | |
19279 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19280 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19281 | *) ac_sed_conf_input=$configure_input;; | |
19282 | esac | |
7a197a62 AK |
19283 | |
19284 | case $ac_tag in | |
ec6a6fbe AK |
19285 | *:-:* | *:-) cat >"$tmp/stdin" \ |
19286 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19287 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19288 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
19289 | esac |
19290 | ;; | |
80992638 | 19291 | esac |
8106cdd5 | 19292 | |
7a197a62 | 19293 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 19294 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19295 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19296 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 19297 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19298 | $as_echo X"$ac_file" | |
7a197a62 AK |
19299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19300 | s//\1/ | |
19301 | q | |
19302 | } | |
19303 | /^X\(\/\/\)[^/].*/{ | |
19304 | s//\1/ | |
19305 | q | |
19306 | } | |
19307 | /^X\(\/\/\)$/{ | |
19308 | s//\1/ | |
19309 | q | |
19310 | } | |
19311 | /^X\(\/\).*/{ | |
19312 | s//\1/ | |
19313 | q | |
19314 | } | |
19315 | s/.*/./; q'` | |
19316 | { as_dir="$ac_dir" | |
19317 | case $as_dir in #( | |
19318 | -*) as_dir=./$as_dir;; | |
19319 | esac | |
19320 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 19321 | as_dirs= |
7a197a62 AK |
19322 | while :; do |
19323 | case $as_dir in #( | |
ec6a6fbe | 19324 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
19325 | *) as_qdir=$as_dir;; |
19326 | esac | |
19327 | as_dirs="'$as_qdir' $as_dirs" | |
19328 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 19329 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19330 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19331 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 19332 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19333 | $as_echo X"$as_dir" | |
7a197a62 AK |
19334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19335 | s//\1/ | |
19336 | q | |
19337 | } | |
19338 | /^X\(\/\/\)[^/].*/{ | |
19339 | s//\1/ | |
19340 | q | |
19341 | } | |
19342 | /^X\(\/\/\)$/{ | |
19343 | s//\1/ | |
19344 | q | |
19345 | } | |
19346 | /^X\(\/\).*/{ | |
19347 | s//\1/ | |
19348 | q | |
19349 | } | |
19350 | s/.*/./; q'` | |
19351 | test -d "$as_dir" && break | |
ad6254c5 | 19352 | done |
7a197a62 | 19353 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
19354 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
19355 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 19356 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
19357 | ac_builddir=. |
19358 | ||
7a197a62 AK |
19359 | case "$ac_dir" in |
19360 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19361 | *) | |
ec6a6fbe | 19362 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 19363 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19364 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19365 | case $ac_top_builddir_sub in |
19366 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19367 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19368 | esac ;; | |
19369 | esac | |
19370 | ac_abs_top_builddir=$ac_pwd | |
19371 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19372 | # for backward compatibility: | |
19373 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19374 | |
19375 | case $srcdir in | |
7a197a62 | 19376 | .) # We are building in place. |
ad6254c5 | 19377 | ac_srcdir=. |
7a197a62 AK |
19378 | ac_top_srcdir=$ac_top_builddir_sub |
19379 | ac_abs_top_srcdir=$ac_pwd ;; | |
19380 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19381 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19382 | ac_top_srcdir=$srcdir |
19383 | ac_abs_top_srcdir=$srcdir ;; | |
19384 | *) # Relative name. | |
19385 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19386 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19387 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19388 | esac |
7a197a62 | 19389 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19390 | |
ad6254c5 | 19391 | |
7a197a62 AK |
19392 | case $ac_mode in |
19393 | :F) | |
19394 | # | |
19395 | # CONFIG_FILE | |
19396 | # | |
ad6254c5 AK |
19397 | |
19398 | case $INSTALL in | |
19399 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19400 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19401 | esac |
fddafd51 ZK |
19402 | ac_MKDIR_P=$MKDIR_P |
19403 | case $MKDIR_P in | |
19404 | [\\/$]* | ?:[\\/]* ) ;; | |
19405 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19406 | esac | |
7a197a62 | 19407 | _ACEOF |
795ca3e5 | 19408 | |
ec6a6fbe | 19409 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19410 | # If the template does not know about datarootdir, expand it. |
19411 | # FIXME: This hack should be removed a few years after 2.60. | |
19412 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19413 | ||
ec6a6fbe AK |
19414 | ac_sed_dataroot=' |
19415 | /datarootdir/ { | |
7a197a62 AK |
19416 | p |
19417 | q | |
19418 | } | |
19419 | /@datadir@/p | |
19420 | /@docdir@/p | |
19421 | /@infodir@/p | |
19422 | /@localedir@/p | |
19423 | /@mandir@/p | |
ec6a6fbe AK |
19424 | ' |
19425 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19426 | *datarootdir*) ac_datarootdir_seen=yes;; |
19427 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19428 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19429 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19430 | _ACEOF |
ec6a6fbe | 19431 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19432 | ac_datarootdir_hack=' |
19433 | s&@datadir@&$datadir&g | |
19434 | s&@docdir@&$docdir&g | |
19435 | s&@infodir@&$infodir&g | |
19436 | s&@localedir@&$localedir&g | |
19437 | s&@mandir@&$mandir&g | |
19438 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19439 | esac | |
19440 | _ACEOF | |
19441 | ||
19442 | # Neutralize VPATH when `$srcdir' = `.'. | |
19443 | # Shell code in configure.ac might set extrasub. | |
19444 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19446 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19447 | $extrasub |
19448 | _ACEOF | |
ec6a6fbe | 19449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19450 | :t |
19451 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19452 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19453 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19454 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19455 | s&@srcdir@&$ac_srcdir&;t t |
19456 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19457 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19458 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19459 | s&@builddir@&$ac_builddir&;t t | |
19460 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19461 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19462 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19463 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19464 | $ac_datarootdir_hack |
ec6a6fbe AK |
19465 | " |
19466 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19467 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19468 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19469 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19470 | |
19471 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19472 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19473 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19474 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19475 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19476 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19477 | which seems to be undefined. Please make sure it is defined." >&2;} |
19478 | ||
19479 | rm -f "$tmp/stdin" | |
72b2cb61 | 19480 | case $ac_file in |
ec6a6fbe AK |
19481 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19482 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19483 | esac \ | |
19484 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19485 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19486 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19487 | ;; |
19488 | :H) | |
19489 | # | |
19490 | # CONFIG_HEADER | |
19491 | # | |
72b2cb61 | 19492 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19493 | { |
19494 | $as_echo "/* $configure_input */" \ | |
19495 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19496 | } >"$tmp/config.h" \ | |
19497 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19498 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19499 | { (exit 1); exit 1; }; } | |
19500 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19501 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19502 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19503 | else |
ec6a6fbe AK |
19504 | rm -f "$ac_file" |
19505 | mv "$tmp/config.h" "$ac_file" \ | |
19506 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19507 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19508 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19509 | fi |
19510 | else | |
ec6a6fbe AK |
19511 | $as_echo "/* $configure_input */" \ |
19512 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19513 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19514 | $as_echo "$as_me: error: could not create -" >&2;} | |
19515 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19516 | fi |
7a197a62 AK |
19517 | ;; |
19518 | ||
19519 | ||
19520 | esac | |
19521 | ||
19522 | done # for ac_tag | |
795ca3e5 | 19523 | |
795ca3e5 | 19524 | |
ad6254c5 AK |
19525 | { (exit 0); exit 0; } |
19526 | _ACEOF | |
795ca3e5 | 19527 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19528 | ac_clean_files=$ac_clean_files_save |
19529 | ||
ec6a6fbe AK |
19530 | test $ac_write_fail = 0 || |
19531 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19532 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19533 | { (exit 1); exit 1; }; } | |
19534 | ||
ad6254c5 AK |
19535 | |
19536 | # configure is writing to config.log, and then calls config.status. | |
19537 | # config.status does its own redirection, appending to config.log. | |
19538 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19539 | # by configure, so config.status won't be able to write to it; its | |
19540 | # output is simply discarded. So we exec the FD to /dev/null, | |
19541 | # effectively closing config.log, so it can be properly (re)opened and | |
19542 | # appended to by config.status. When coming back to configure, we | |
19543 | # need to make the FD available again. | |
19544 | if test "$no_create" != yes; then | |
19545 | ac_cs_success=: | |
19546 | ac_config_status_args= | |
19547 | test "$silent" = yes && | |
19548 | ac_config_status_args="$ac_config_status_args --quiet" | |
19549 | exec 5>/dev/null | |
19550 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19551 | exec 5>>config.log | |
19552 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19553 | # would make configure fail if this is the last instruction. | |
19554 | $ac_cs_success || { (exit 1); exit 1; } | |
19555 | fi | |
ec6a6fbe AK |
19556 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19557 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19558 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19559 | fi | |
795ca3e5 | 19560 | |
2dc95e1c AK |
19561 | |
19562 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19563 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19564 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19565 | fi |